|
|
!(function(){var lc=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[9647],{70557:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={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"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},89489:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},59477:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},40001:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={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"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},49198:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={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"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},84105:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={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"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},18785:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={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"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},73331:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={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"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},15277:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={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"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},52671:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},8657:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},56082:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},33853:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={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"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},15075:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},62772:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},43531:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},61485:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},47472:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(60499),K=u(59301),L={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"},he=L,Z=u(7657),g=function(x,N){return K.createElement(Z.Z,(0,i.Z)({},x,{ref:N,icon:he}))},W=K.forwardRef(g),Y=W},68196:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return pt}});var i=u(85899),K=u(72190),L=u(42244),he=u(43403),Z=u(92310),g=u.n(Z),W=u(29301),Y=u(76846),l=u(96452),x=u(6089),N=u(80402),y=u(34280),T=u(49658),A=u(59301),$=u(60499),H=u(77900),X=u(8654);function V(Qe){var Ne=Qe.prefixCls,le=Qe.align,Pe=Qe.arrow,Ge=Qe.arrowPos,j=Pe||{},P=j.className,_e=j.content,Ie=Ge.x,Te=Ie===void 0?0:Ie,ze=Ge.y,Ue=ze===void 0?0:ze,ft=A.useRef();if(!le||!le.points)return null;var de={position:"absolute"};if(le.autoArrow!==!1){var xe=le.points[0],Ot=le.points[1],_t=xe[0],Pt=xe[1],kt=Ot[0],mt=Ot[1];_t===kt||!["t","b"].includes(_t)?de.top=Ue:_t==="t"?de.top=0:de.bottom=0,Pt===mt||!["l","r"].includes(Pt)?de.left=Te:Pt==="l"?de.left=0:de.right=0}return A.createElement("div",{ref:ft,className:g()("".concat(Ne,"-arrow"),P),style:de},_e)}function R(Qe){var Ne=Qe.prefixCls,le=Qe.open,Pe=Qe.zIndex,Ge=Qe.mask,j=Qe.motion;return Ge?A.createElement(H.default,(0,$.Z)({},j,{motionAppear:!0,visible:le,removeOnLeave:!0}),function(P){var _e=P.className;return A.createElement("div",{style:{zIndex:Pe},className:g()("".concat(Ne,"-mask"),_e)})}):null}var Q=A.memo(function(Qe){var Ne=Qe.children;return Ne},function(Qe,Ne){return Ne.cache}),O=Q,I=A.forwardRef(function(Qe,Ne){var le=Qe.popup,Pe=Qe.className,Ge=Qe.prefixCls,j=Qe.style,P=Qe.target,_e=Qe.onVisibleChanged,Ie=Qe.open,Te=Qe.keepDom,ze=Qe.fresh,Ue=Qe.onClick,ft=Qe.mask,de=Qe.arrow,xe=Qe.arrowPos,Ot=Qe.align,_t=Qe.motion,Pt=Qe.maskMotion,kt=Qe.forceRender,mt=Qe.getPopupContainer,Vt=Qe.autoDestroy,Nt=Qe.portal,De=Qe.zIndex,gt=Qe.onMouseEnter,E=Qe.onMouseLeave,S=Qe.onPointerEnter,je=Qe.onPointerDownCapture,G=Qe.ready,Ce=Qe.offsetX,en=Qe.offsetY,rt=Qe.offsetR,st=Qe.offsetB,xt=Qe.onAlign,pe=Qe.onPrepare,Ee=Qe.stretch,nt=Qe.targetWidth,Ze=Qe.targetHeight,z=typeof le=="function"?le():le,St=Ie||Te,fe=(mt==null?void 0:mt.length)>0,Kt=A.useState(!mt||!fe),dn=(0,K.Z)(Kt,2),Bt=dn[0],J=dn[1];if((0,y.Z)(function(){!Bt&&fe&&P&&J(!0)},[Bt,fe,P]),!Bt)return null;var we="auto",M={left:"-1000vw",top:"-1000vh",right:we,bottom:we};if(G||!Ie){var Ct,ot=Ot.points,dt=Ot.dynamicInset||((Ct=Ot._experimental)===null||Ct===void 0?void 0:Ct.dynamicInset),$t=dt&&ot[0][1]==="r",Ft=dt&&ot[0][0]==="b";$t?(M.right=rt,M.left=we):(M.left=Ce,M.right=we),Ft?(M.bottom=st,M.top=we):(M.top=en,M.bottom=we)}var Mt={};return Ee&&(Ee.includes("height")&&Ze?Mt.height=Ze:Ee.includes("minHeight")&&Ze&&(Mt.minHeight=Ze),Ee.includes("width")&&nt?Mt.width=nt:Ee.includes("minWidth")&&nt&&(Mt.minWidth=nt)),Ie||(Mt.pointerEvents="none"),A.createElement(Nt,{open:kt||St,getContainer:mt&&function(){return mt(P)},autoDestroy:Vt},A.createElement(R,{prefixCls:Ge,open:Ie,zIndex:De,mask:ft,motion:Pt}),A.createElement(W.Z,{onResize:xt,disabled:!Ie},function(ie){return A.createElement(H.default,(0,$.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:kt,leavedClassName:"".concat(Ge,"-hidden")},_t,{onAppearPrepare:pe,onEnterPrepare:pe,visible:Ie,onVisibleChanged:function(At){var Be;_t==null||(Be=_t.onVisibleChanged)===null||Be===void 0||Be.call(_t,At),_e(At)}}),function(ve,At){var Be=ve.className,Le=ve.style,ae=g()(Ge,Be,Pe);return A.createElement("div",{ref:(0,X.sQ)(ie,Ne,At),className:ae,style:(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({"--arrow-x":"".concat(xe.x||0,"px"),"--arrow-y":"".concat(xe.y||0,"px")},M),Mt),Le),{},{boxSizing:"border-box",zIndex:De},j),onMouseEnter:gt,onMouseLeave:E,onPointerEnter:S,onClick:Ue,onPointerDownCapture:je},de&&A.createElement(V,{prefixCls:Ge,arrow:de,arrowPos:xe,align:Ot}),A.createElement(O,{cache:!Ie&&!ze},z))})}))}),ue=I,Se=A.forwardRef(function(Qe,Ne){var le=Qe.children,Pe=Qe.getTriggerDOMNode,Ge=(0,X.Yr)(le),j=A.useCallback(function(_e){(0,X.mH)(Ne,Pe?Pe(_e):_e)},[Pe]),P=(0,X.x1)(j,(0,X.C4)(le));return Ge?A.cloneElement(le,{ref:P}):le}),me=Se,Ke=A.createContext(null),Je=Ke;function ke(Qe){return Qe?Array.isArray(Qe)?Qe:[Qe]:[]}function We(Qe,Ne,le,Pe){return A.useMemo(function(){var Ge=ke(le!=null?le:Ne),j=ke(Pe!=null?Pe:Ne),P=new Set(Ge),_e=new Set(j);return Qe&&(P.has("hover")&&(P.delete("hover"),P.add("click")),_e.has("hover")&&(_e.delete("hover"),_e.add("click"))),[P,_e]},[Qe,Ne,le,Pe])}var oe=u(29194);function k(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],le=arguments.length>2?arguments[2]:void 0;return le?Qe[0]===Ne[0]:Qe[0]===Ne[0]&&Qe[1]===Ne[1]}function _(Qe,Ne,le,Pe){for(var Ge=le.points,j=Object.keys(Qe),P=0;P<j.length;P+=1){var _e,Ie=j[P];if(k((_e=Qe[Ie])===null||_e===void 0?void 0:_e.points,Ge,Pe))return"".concat(Ne,"-placement-").concat(Ie)}return""}function ee(Qe,Ne,le,Pe){return Ne||(le?{motionName:"".concat(Qe,"-").concat(le)}:Pe?{motionName:Pe}:null)}function ne(Qe){return Qe.ownerDocument.defaultView}function se(Qe){for(var Ne=[],le=Qe==null?void 0:Qe.parentElement,Pe=["hidden","scroll","clip","auto"];le;){var Ge=ne(le).getComputedStyle(le),j=Ge.overflowX,P=Ge.overflowY,_e=Ge.overflow;[j,P,_e].some(function(Ie){return Pe.includes(Ie)})&&Ne.push(le),le=le.parentElement}return Ne}function w(Qe){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Qe)?Ne:Qe}function D(Qe){return w(parseFloat(Qe),0)}function ce(Qe,Ne){var le=(0,i.Z)({},Qe);return(Ne||[]).forEach(function(Pe){if(!(Pe instanceof HTMLBodyElement||Pe instanceof HTMLHtmlElement)){var Ge=ne(Pe).getComputedStyle(Pe),j=Ge.overflow,P=Ge.overflowClipMargin,_e=Ge.borderTopWidth,Ie=Ge.borderBottomWidth,Te=Ge.borderLeftWidth,ze=Ge.borderRightWidth,Ue=Pe.getBoundingClientRect(),ft=Pe.offsetHeight,de=Pe.clientHeight,xe=Pe.offsetWidth,Ot=Pe.clientWidth,_t=D(_e),Pt=D(Ie),kt=D(Te),mt=D(ze),Vt=w(Math.round(Ue.width/xe*1e3)/1e3),Nt=w(Math.round(Ue.height/ft*1e3)/1e3),De=(xe-Ot-kt-mt)*Vt,gt=(ft-de-_t-Pt)*Nt,E=_t*Nt,S=Pt*Nt,je=kt*Vt,G=mt*Vt,Ce=0,en=0;if(j==="clip"){var rt=D(P);Ce=rt*Vt,en=rt*Nt}var st=Ue.x+je-Ce,xt=Ue.y+E-en,pe=st+Ue.width+2*Ce-je-G-De,Ee=xt+Ue.height+2*en-E-S-gt;le.left=Math.max(le.left,st),le.top=Math.max(le.top,xt),le.right=Math.min(le.right,pe),le.bottom=Math.min(le.bottom,Ee)}}),le}function Oe(Qe){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,le="".concat(Ne),Pe=le.match(/^(.*)\%$/);return Pe?Qe*(parseFloat(Pe[1])/100):parseFloat(le)}function ct(Qe,Ne){var le=Ne||[],Pe=(0,K.Z)(le,2),Ge=Pe[0],j=Pe[1];return[Oe(Qe.width,Ge),Oe(Qe.height,j)]}function Tt(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Qe[0],Qe[1]]}function Ae(Qe,Ne){var le=Ne[0],Pe=Ne[1],Ge,j;return le==="t"?j=Qe.y:le==="b"?j=Qe.y+Qe.height:j=Qe.y+Qe.height/2,Pe==="l"?Ge=Qe.x:Pe==="r"?Ge=Qe.x+Qe.width:Ge=Qe.x+Qe.width/2,{x:Ge,y:j}}function qe(Qe,Ne){var le={t:"b",b:"t",l:"r",r:"l"};return Qe.map(function(Pe,Ge){return Ge===Ne?le[Pe]||"c":Pe}).join("")}function ht(Qe,Ne,le,Pe,Ge,j,P){var _e=A.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Ge[Pe]||{}}),Ie=(0,K.Z)(_e,2),Te=Ie[0],ze=Ie[1],Ue=A.useRef(0),ft=A.useMemo(function(){return Ne?se(Ne):[]},[Ne]),de=A.useRef({}),xe=function(){de.current={}};Qe||xe();var Ot=(0,x.Z)(function(){if(Ne&&le&&Qe){let hi=function(Zi,Br){var ei=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ut,pr=St.x+Zi,vr=St.y+Br,Pr=pr+Ft,Wr=vr+$t,Ci=Math.max(pr,ei.left),br=Math.max(vr,ei.top),Rr=Math.min(Pr,ei.right),Mr=Math.min(Wr,ei.bottom);return Math.max(0,(Rr-Ci)*(Mr-br))},ki=function(){Ar=St.y+zn,Sr=Ar+$t,Vn=St.x+In,An=Vn+Ft};var kt,mt,Vt,Nt,De=Ne,gt=De.ownerDocument,E=ne(De),S=E.getComputedStyle(De),je=S.position,G=De.style.left,Ce=De.style.top,en=De.style.right,rt=De.style.bottom,st=De.style.overflow,xt=(0,i.Z)((0,i.Z)({},Ge[Pe]),j),pe=gt.createElement("div");(kt=De.parentElement)===null||kt===void 0||kt.appendChild(pe),pe.style.left="".concat(De.offsetLeft,"px"),pe.style.top="".concat(De.offsetTop,"px"),pe.style.position=je,pe.style.height="".concat(De.offsetHeight,"px"),pe.style.width="".concat(De.offsetWidth,"px"),De.style.left="0",De.style.top="0",De.style.right="auto",De.style.bottom="auto",De.style.overflow="hidden";var Ee;if(Array.isArray(le))Ee={x:le[0],y:le[1],width:0,height:0};else{var nt,Ze,z=le.getBoundingClientRect();z.x=(nt=z.x)!==null&&nt!==void 0?nt:z.left,z.y=(Ze=z.y)!==null&&Ze!==void 0?Ze:z.top,Ee={x:z.x,y:z.y,width:z.width,height:z.height}}var St=De.getBoundingClientRect(),fe=E.getComputedStyle(De),Kt=fe.height,dn=fe.width;St.x=(mt=St.x)!==null&&mt!==void 0?mt:St.left,St.y=(Vt=St.y)!==null&&Vt!==void 0?Vt:St.top;var Bt=gt.documentElement,J=Bt.clientWidth,we=Bt.clientHeight,M=Bt.scrollWidth,Ct=Bt.scrollHeight,ot=Bt.scrollTop,dt=Bt.scrollLeft,$t=St.height,Ft=St.width,Mt=Ee.height,ie=Ee.width,ve={left:0,top:0,right:J,bottom:we},At={left:-dt,top:-ot,right:M-dt,bottom:Ct-ot},Be=xt.htmlRegion,Le="visible",ae="visibleFirst";Be!=="scroll"&&Be!==ae&&(Be=Le);var Re=Be===ae,$e=ce(At,ft),He=ce(ve,ft),ut=Be===Le?He:$e,rn=Re?He:ut;De.style.left="auto",De.style.top="auto",De.style.right="0",De.style.bottom="0";var on=De.getBoundingClientRect();De.style.left=G,De.style.top=Ce,De.style.right=en,De.style.bottom=rt,De.style.overflow=st,(Nt=De.parentElement)===null||Nt===void 0||Nt.removeChild(pe);var Ve=w(Math.round(Ft/parseFloat(dn)*1e3)/1e3),lt=w(Math.round($t/parseFloat(Kt)*1e3)/1e3);if(Ve===0||lt===0||(0,Y.Sh)(le)&&!(0,oe.Z)(le))return;var wt=xt.offset,Qt=xt.targetOffset,Yt=ct(St,wt),ye=(0,K.Z)(Yt,2),at=ye[0],Lt=ye[1],Dt=ct(Ee,Qt),zt=(0,K.Z)(Dt,2),an=zt[0],un=zt[1];Ee.x-=an,Ee.y-=un;var sn=xt.points||[],vn=(0,K.Z)(sn,2),En=vn[0],Rn=vn[1],bn=Tt(Rn),Cn=Tt(En),Bn=Ae(Ee,bn),Pn=Ae(St,Cn),ir=(0,i.Z)({},xt),In=Bn.x-Pn.x+at,zn=Bn.y-Pn.y+Lt,Yn=hi(In,zn),tr=hi(In,zn,He),Jn=Ae(Ee,["t","l"]),qt=Ae(St,["t","l"]),tn=Ae(Ee,["b","r"]),yn=Ae(St,["b","r"]),Zn=xt.overflow||{},Ht=Zn.adjustX,Un=Zn.adjustY,er=Zn.shiftX,lr=Zn.shiftY,_r=function(Br){return typeof Br=="boolean"?Br:Br>=0},Ar,Sr,Vn,An;ki();var pn=_r(Un),Tn=Cn[0]===bn[0];if(pn&&Cn[0]==="t"&&(Sr>rn.bottom||de.current.bt)){var Xn=zn;Tn?Xn-=$t-Mt:Xn=Jn.y-yn.y-Lt;var nr=hi(In,Xn),gr=hi(In,Xn,He);nr>Yn||nr===Yn&&(!Re||gr>=tr)?(de.current.bt=!0,zn=Xn,Lt=-Lt,ir.points=[qe(Cn,0),qe(bn,0)]):de.current.bt=!1}if(pn&&Cn[0]==="b"&&(Ar<rn.top||de.current.tb)){var Er=zn;Tn?Er+=$t-Mt:Er=tn.y-qt.y-Lt;var Fn=hi(In,Er),yr=hi(In,Er,He);Fn>Yn||Fn===Yn&&(!Re||yr>=tr)?(de.current.tb=!0,zn=Er,Lt=-Lt,ir.points=[qe(Cn,0),qe(bn,0)]):de.current.tb=!1}var Ir=_r(Ht),Zr=Cn[1]===bn[1];if(Ir&&Cn[1]==="l"&&(An>rn.right||de.current.rl)){var Nr=In;Zr?Nr-=Ft-ie:Nr=Jn.x-yn.x-at;var Lr=hi(Nr,zn),Cr=hi(Nr,zn,He);Lr>Yn||Lr===Yn&&(!Re||Cr>=tr)?(de.current.rl=!0,In=Nr,at=-at,ir.points=[qe(Cn,1),qe(bn,1)]):de.current.rl=!1}if(Ir&&Cn[1]==="r"&&(Vn<rn.left||de.current.lr)){var Fr=In;Zr?Fr+=Ft-ie:Fr=tn.x-qt.x-at;var Jt=hi(Fr,zn),On=hi(Fr,zn,He);Jt>Yn||Jt===Yn&&(!Re||On>=tr)?(de.current.lr=!0,In=Fr,at=-at,ir.points=[qe(Cn,1),qe(bn,1)]):de.current.lr=!1}ki();var Gn=er===!0?0:er;typeof Gn=="number"&&(Vn<He.left&&(In-=Vn-He.left-at,Ee.x+ie<He.left+Gn&&(In+=Ee.x-He.left+ie-Gn)),An>He.right&&(In-=An-He.right-at,Ee.x>He.right-Gn&&(In+=Ee.x-He.right+Gn)));var ur=lr===!0?0:lr;typeof ur=="number"&&(Ar<He.top&&(zn-=Ar-He.top-Lt,Ee.y+Mt<He.top+ur&&(zn+=Ee.y-He.top+Mt-ur)),Sr>He.bottom&&(zn-=Sr-He.bottom-Lt,Ee.y>He.bottom-ur&&(zn+=Ee.y-He.bottom+ur)));var xr=St.x+In,jr=xr+Ft,wr=St.y+zn,ni=wr+$t,di=Ee.x,Ei=di+ie,Dr=Ee.y,fr=Dr+Mt,yi=Math.max(xr,di),sr=Math.min(jr,Ei),wi=(yi+sr)/2,Yi=wi-xr,Wi=Math.max(wr,Dr),Mi=Math.min(ni,fr),Ni=(Wi+Mi)/2,Vr=Ni-wr;P==null||P(Ne,ir);var Di=on.right-St.x-(In+St.width),ra=on.bottom-St.y-(zn+St.height);Ve===1&&(In=Math.floor(In),Di=Math.floor(Di)),lt===1&&(zn=Math.floor(zn),ra=Math.floor(ra));var zi={ready:!0,offsetX:In/Ve,offsetY:zn/lt,offsetR:Di/Ve,offsetB:ra/lt,arrowX:Yi/Ve,arrowY:Vr/lt,scaleX:Ve,scaleY:lt,align:ir};ze(zi)}}),_t=function(){Ue.current+=1;var mt=Ue.current;Promise.resolve().then(function(){Ue.current===mt&&Ot()})},Pt=function(){ze(function(mt){return(0,i.Z)((0,i.Z)({},mt),{},{ready:!1})})};return(0,y.Z)(Pt,[Pe]),(0,y.Z)(function(){Qe||Pt()},[Qe]),[Te.ready,Te.offsetX,Te.offsetY,Te.offsetR,Te.offsetB,Te.arrowX,Te.arrowY,Te.scaleX,Te.scaleY,Te.align,_t]}var tt=u(77654);function Fe(Qe,Ne,le,Pe,Ge){(0,y.Z)(function(){if(Qe&&Ne&&le){let Ue=function(){Pe(),Ge()};var j=Ne,P=le,_e=se(j),Ie=se(P),Te=ne(P),ze=new Set([Te].concat((0,tt.Z)(_e),(0,tt.Z)(Ie)));return ze.forEach(function(ft){ft.addEventListener("scroll",Ue,{passive:!0})}),Te.addEventListener("resize",Ue,{passive:!0}),Pe(),function(){ze.forEach(function(ft){ft.removeEventListener("scroll",Ue),Te.removeEventListener("resize",Ue)})}}},[Qe,Ne,le])}var jt=u(48736);function bt(Qe,Ne,le,Pe,Ge,j,P,_e){var Ie=A.useRef(Qe);Ie.current=Qe;var Te=A.useRef(!1);A.useEffect(function(){if(Ne&&Pe&&(!Ge||j)){var Ue=function(){Te.current=!1},ft=function(Vt){var Nt;Ie.current&&!P(((Nt=Vt.composedPath)===null||Nt===void 0||(Nt=Nt.call(Vt))===null||Nt===void 0?void 0:Nt[0])||Vt.target)&&!Te.current&&_e(!1)},de=ne(Pe);de.addEventListener("pointerdown",Ue,!0),de.addEventListener("mousedown",ft,!0),de.addEventListener("contextmenu",ft,!0);var xe=(0,l.A)(le);if(xe&&(xe.addEventListener("mousedown",ft,!0),xe.addEventListener("contextmenu",ft,!0)),0)var Ot,_t,Pt,kt;return function(){de.removeEventListener("pointerdown",Ue,!0),de.removeEventListener("mousedown",ft,!0),de.removeEventListener("contextmenu",ft,!0),xe&&(xe.removeEventListener("mousedown",ft,!0),xe.removeEventListener("contextmenu",ft,!0))}}},[Ne,le,Pe,Ge,j]);function ze(){Te.current=!0}return ze}var cn=["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 vt(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:he.Z,Ne=A.forwardRef(function(le,Pe){var Ge=le.prefixCls,j=Ge===void 0?"rc-trigger-popup":Ge,P=le.children,_e=le.action,Ie=_e===void 0?"hover":_e,Te=le.showAction,ze=le.hideAction,Ue=le.popupVisible,ft=le.defaultPopupVisible,de=le.onPopupVisibleChange,xe=le.afterPopupVisibleChange,Ot=le.mouseEnterDelay,_t=le.mouseLeaveDelay,Pt=_t===void 0?.1:_t,kt=le.focusDelay,mt=le.blurDelay,Vt=le.mask,Nt=le.maskClosable,De=Nt===void 0?!0:Nt,gt=le.getPopupContainer,E=le.forceRender,S=le.autoDestroy,je=le.destroyPopupOnHide,G=le.popup,Ce=le.popupClassName,en=le.popupStyle,rt=le.popupPlacement,st=le.builtinPlacements,xt=st===void 0?{}:st,pe=le.popupAlign,Ee=le.zIndex,nt=le.stretch,Ze=le.getPopupClassNameFromAlign,z=le.fresh,St=le.alignPoint,fe=le.onPopupClick,Kt=le.onPopupAlign,dn=le.arrow,Bt=le.popupMotion,J=le.maskMotion,we=le.popupTransitionName,M=le.popupAnimation,Ct=le.maskTransitionName,ot=le.maskAnimation,dt=le.className,$t=le.getTriggerDOMNode,Ft=(0,L.Z)(le,cn),Mt=S||je||!1,ie=A.useState(!1),ve=(0,K.Z)(ie,2),At=ve[0],Be=ve[1];(0,y.Z)(function(){Be((0,T.Z)())},[]);var Le=A.useRef({}),ae=A.useContext(Je),Re=A.useMemo(function(){return{registerSubPopup:function(Rr,Mr){Le.current[Rr]=Mr,ae==null||ae.registerSubPopup(Rr,Mr)}}},[ae]),$e=(0,N.Z)(),He=A.useState(null),ut=(0,K.Z)(He,2),rn=ut[0],on=ut[1],Ve=A.useRef(null),lt=(0,x.Z)(function(br){Ve.current=br,(0,Y.Sh)(br)&&rn!==br&&on(br),ae==null||ae.registerSubPopup($e,br)}),wt=A.useState(null),Qt=(0,K.Z)(wt,2),Yt=Qt[0],ye=Qt[1],at=A.useRef(null),Lt=(0,x.Z)(function(br){(0,Y.Sh)(br)&&Yt!==br&&(ye(br),at.current=br)}),Dt=A.Children.only(P),zt=(Dt==null?void 0:Dt.props)||{},an={},un=(0,x.Z)(function(br){var Rr,Mr,$r=Yt;return($r==null?void 0:$r.contains(br))||((Rr=(0,l.A)($r))===null||Rr===void 0?void 0:Rr.host)===br||br===$r||(rn==null?void 0:rn.contains(br))||((Mr=(0,l.A)(rn))===null||Mr===void 0?void 0:Mr.host)===br||br===rn||Object.values(Le.current).some(function(ti){return(ti==null?void 0:ti.contains(br))||br===ti})}),sn=ee(j,Bt,M,we),vn=ee(j,J,ot,Ct),En=A.useState(ft||!1),Rn=(0,K.Z)(En,2),bn=Rn[0],Cn=Rn[1],Bn=Ue!=null?Ue:bn,Pn=(0,x.Z)(function(br){Ue===void 0&&Cn(br)});(0,y.Z)(function(){Cn(Ue||!1)},[Ue]);var ir=A.useRef(Bn);ir.current=Bn;var In=A.useRef([]);In.current=[];var zn=(0,x.Z)(function(br){var Rr;Pn(br),((Rr=In.current[In.current.length-1])!==null&&Rr!==void 0?Rr:Bn)!==br&&(In.current.push(br),de==null||de(br))}),Yn=A.useRef(),tr=function(){clearTimeout(Yn.current)},Jn=function(Rr){var Mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;tr(),Mr===0?zn(Rr):Yn.current=setTimeout(function(){zn(Rr)},Mr*1e3)};A.useEffect(function(){return tr},[]);var qt=A.useState(!1),tn=(0,K.Z)(qt,2),yn=tn[0],Zn=tn[1];(0,y.Z)(function(br){(!br||Bn)&&Zn(!0)},[Bn]);var Ht=A.useState(null),Un=(0,K.Z)(Ht,2),er=Un[0],lr=Un[1],_r=A.useState(null),Ar=(0,K.Z)(_r,2),Sr=Ar[0],Vn=Ar[1],An=function(Rr){Vn([Rr.clientX,Rr.clientY])},pn=ht(Bn,rn,St&&Sr!==null?Sr:Yt,rt,xt,pe,Kt),Tn=(0,K.Z)(pn,11),Xn=Tn[0],nr=Tn[1],gr=Tn[2],Er=Tn[3],Fn=Tn[4],yr=Tn[5],Ir=Tn[6],Zr=Tn[7],Nr=Tn[8],Lr=Tn[9],Cr=Tn[10],Fr=We(At,Ie,Te,ze),Jt=(0,K.Z)(Fr,2),On=Jt[0],Gn=Jt[1],ur=On.has("click"),xr=Gn.has("click")||Gn.has("contextMenu"),jr=(0,x.Z)(function(){yn||Cr()}),wr=function(){ir.current&&St&&xr&&Jn(!1)};Fe(Bn,Yt,rn,jr,wr),(0,y.Z)(function(){jr()},[Sr,rt]),(0,y.Z)(function(){Bn&&!(xt!=null&&xt[rt])&&jr()},[JSON.stringify(pe)]);var ni=A.useMemo(function(){var br=_(xt,j,Lr,St);return g()(br,Ze==null?void 0:Ze(Lr))},[Lr,Ze,xt,j,St]);A.useImperativeHandle(Pe,function(){return{nativeElement:at.current,popupElement:Ve.current,forceAlign:jr}});var di=A.useState(0),Ei=(0,K.Z)(di,2),Dr=Ei[0],fr=Ei[1],yi=A.useState(0),sr=(0,K.Z)(yi,2),wi=sr[0],Yi=sr[1],Wi=function(){if(nt&&Yt){var Rr=Yt.getBoundingClientRect();fr(Rr.width),Yi(Rr.height)}},Mi=function(){Wi(),jr()},Ni=function(Rr){Zn(!1),Cr(),xe==null||xe(Rr)},Vr=function(){return new Promise(function(Rr){Wi(),lr(function(){return Rr})})};(0,y.Z)(function(){er&&(Cr(),er(),lr(null))},[er]);function Di(br,Rr,Mr,$r){an[br]=function(ti){var ma;$r==null||$r(ti),Jn(Rr,Mr);for(var Xi=arguments.length,ua=new Array(Xi>1?Xi-1:0),fi=1;fi<Xi;fi++)ua[fi-1]=arguments[fi];(ma=zt[br])===null||ma===void 0||ma.call.apply(ma,[zt,ti].concat(ua))}}(ur||xr)&&(an.onClick=function(br){var Rr;ir.current&&xr?Jn(!1):!ir.current&&ur&&(An(br),Jn(!0));for(var Mr=arguments.length,$r=new Array(Mr>1?Mr-1:0),ti=1;ti<Mr;ti++)$r[ti-1]=arguments[ti];(Rr=zt.onClick)===null||Rr===void 0||Rr.call.apply(Rr,[zt,br].concat($r))});var ra=bt(Bn,xr,Yt,rn,Vt,De,un,Jn),zi=On.has("hover"),hi=Gn.has("hover"),ki,Zi;zi&&(Di("onMouseEnter",!0,Ot,function(br){An(br)}),Di("onPointerEnter",!0,Ot,function(br){An(br)}),ki=function(Rr){(Bn||yn)&&rn!==null&&rn!==void 0&&rn.contains(Rr.target)&&Jn(!0,Ot)},St&&(an.onMouseMove=function(br){var Rr;(Rr=zt.onMouseMove)===null||Rr===void 0||Rr.call(zt,br)})),hi&&(Di("onMouseLeave",!1,Pt),Di("onPointerLeave",!1,Pt),Zi=function(){Jn(!1,Pt)}),On.has("focus")&&Di("onFocus",!0,kt),Gn.has("focus")&&Di("onBlur",!1,mt),On.has("contextMenu")&&(an.onContextMenu=function(br){var Rr;ir.current&&Gn.has("contextMenu")?Jn(!1):(An(br),Jn(!0)),br.preventDefault();for(var Mr=arguments.length,$r=new Array(Mr>1?Mr-1:0),ti=1;ti<Mr;ti++)$r[ti-1]=arguments[ti];(Rr=zt.onContextMenu)===null||Rr===void 0||Rr.call.apply(Rr,[zt,br].concat($r))}),dt&&(an.className=g()(zt.className,dt));var Br=A.useRef(!1);Br.current||(Br.current=E||Bn||yn);var ei=(0,i.Z)((0,i.Z)({},zt),an),pr={},vr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];vr.forEach(function(br){Ft[br]&&(pr[br]=function(){for(var Rr,Mr=arguments.length,$r=new Array(Mr),ti=0;ti<Mr;ti++)$r[ti]=arguments[ti];(Rr=ei[br])===null||Rr===void 0||Rr.call.apply(Rr,[ei].concat($r)),Ft[br].apply(Ft,$r)})});var Pr=A.cloneElement(Dt,(0,i.Z)((0,i.Z)({},ei),pr)),Wr={x:yr,y:Ir},Ci=dn?(0,i.Z)({},dn!==!0?dn:{}):null;return A.createElement(A.Fragment,null,A.createElement(W.Z,{disabled:!Bn,ref:Lt,onResize:Mi},A.createElement(me,{getTriggerDOMNode:$t},Pr)),Br.current&&A.createElement(Je.Provider,{value:Re},A.createElement(ue,{portal:Qe,ref:lt,prefixCls:j,popup:G,className:g()(Ce,ni),style:en,target:Yt,onMouseEnter:ki,onMouseLeave:Zi,onPointerEnter:ki,zIndex:Ee,open:Bn,keepDom:yn,fresh:z,onClick:fe,onPointerDownCapture:ra,mask:Vt,motion:sn,maskMotion:vn,onVisibleChanged:Ni,onPrepare:Vr,forceRender:E,autoDestroy:Mt,getPopupContainer:gt,align:Lr,arrow:Ci,arrowPos:Wr,ready:Xn,offsetX:nr,offsetY:gr,offsetR:Er,offsetB:Fn,onAlign:jr,stretch:nt,targetWidth:Dr/Zr,targetHeight:wi/Nr})))});return Ne}var pt=vt(he.Z)},46214:function(){"use strict"},59435:function($n,Rt,u){"use strict";var i=u(59301),K=Object.defineProperty,L=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,g=(l,x,N)=>x in l?K(l,x,{enumerable:!0,configurable:!0,writable:!0,value:N}):l[x]=N,W=(l,x)=>{for(var N in x||(x={}))he.call(x,N)&&g(l,N,x[N]);if(L)for(var N of L(x))Z.call(x,N)&&g(l,N,x[N]);return l};const Y=l=>React.createElement("svg",W({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},l),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Rt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},77264:function($n,Rt,u){"use strict";var i=u(59301),K=Object.defineProperty,L=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,g=(l,x,N)=>x in l?K(l,x,{enumerable:!0,configurable:!0,writable:!0,value:N}):l[x]=N,W=(l,x)=>{for(var N in x||(x={}))he.call(x,N)&&g(l,N,x[N]);if(L)for(var N of L(x))Z.call(x,N)&&g(l,N,x[N]);return l};const Y=l=>React.createElement("svg",W({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},l),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Rt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},44240:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return g}});var i=u(37639),K={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},L=u(32637),he=u(59301),g=({type:W,style:Y})=>{const l=he.createElement("div",{className:K.wrap,onClick:x=>{x.preventDefault(),x.stopPropagation()}},he.createElement("p",null,W==="shixun"||W==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",he.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",W==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),he.createElement("div",{className:K.contact},he.createElement("div",{className:K.img},he.createElement("img",{src:L,width:"124px",height:"124px"})),he.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return he.createElement(i.Z,{content:l},he.createElement("span",{className:K.text,style:Y},"\u9AD8\u6D88\u8017"))}},90736:function($n,Rt,u){"use strict";var i=u(59301),K=u(4977),L=u(7939),he=Object.defineProperty,Z=Object.defineProperties,g=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,x=(A,$,H)=>$ in A?he(A,$,{enumerable:!0,configurable:!0,writable:!0,value:H}):A[$]=H,N=(A,$)=>{for(var H in $||($={}))Y.call($,H)&&x(A,H,$[H]);if(W)for(var H of W($))l.call($,H)&&x(A,H,$[H]);return A},y=(A,$)=>Z(A,g($));const T=({img:A,buttonProps:$={},styles:H={},customText:X,ButtonText:V,ButtonClick:R,Buttonclass:Q,ButtonTwo:O,imgStyles:I,loading:ue=!1,className:Se=""})=>i.createElement("section",{className:`tc animated fadeIn ${Se}`,style:N({color:"#999",margin:"100px auto",visibility:ue?"hidden":"visible"},H)},i.createElement("img",{src:A||K,style:y(N({},I),{pointerEvents:"none",userSelect:"none"})}),i.createElement("p",{className:"mt20 font14"},X||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),V&&i.createElement(L.ZP,N({className:Q,onClick:R},$),V),O&&O);Rt.Z=T},86974:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Q}});var i=u(59301),K={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},L=u(7939),he=u(70557),Z=u(34728),g=u(25399),W=u(76406),Y=u(84849),l=u(90736),x=u(14185),N=u(52078),y=u(59301),T=Object.defineProperty,A=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,X=(O,I,ue)=>I in O?T(O,I,{enumerable:!0,configurable:!0,writable:!0,value:ue}):O[I]=ue,V=(O,I)=>{for(var ue in I||(I={}))$.call(I,ue)&&X(O,ue,I[ue]);if(A)for(var ue of A(I))H.call(I,ue)&&X(O,ue,I[ue]);return O},R=(O,I,ue)=>new Promise((Se,me)=>{var Ke=We=>{try{ke(ue.next(We))}catch(oe){me(oe)}},Je=We=>{try{ke(ue.throw(We))}catch(oe){me(oe)}},ke=We=>We.done?Se(We.value):Promise.resolve(We.value).then(Ke,Je);ke((ue=ue.apply(O,I)).next())}),Q=({editOffice:O="view",data:I,issaver:ue,onSaver:Se,theme:me,type:Ke,filename:Je,monacoEditor:ke,className:We,style:oe,close:k,onClose:_,hasMask:ee,disabledDownload:ne,onImgDimensions:se,showNodata:w,recordInfo:D})=>{const[ce,Oe]=(0,i.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ct,Tt]=(0,i.useState)(""),[Ae,qe]=(0,i.useState)(),ht=window.ENV==="build"?"/react/build":"",tt=location.host.startsWith("localhost")?x.Z.PROXY_SERVER:x.Z.API_SERVER,jt=10*(1024*1024),bt=(0,i.useRef)();I!=null&&I.startsWith("/api")&&Ke!=="txt"&&(I=x.Z.API_SERVER+I);const cn=Pe=>Pe.substring(Pe.lastIndexOf("/")+1).split(".").pop();Je&&ke&&(ke.filename=Je),(0,i.useEffect)(()=>{var Pe,Ge;const j=(Ge=(Pe=document.cookie)==null?void 0:Pe.replace(/\s/g,""))==null?void 0:Ge.split(";");j==null||j.map(P=>{let _e=P.split("=");_e[0]==="_educoder_session"&&Tt(_e[1])})},[]),(0,i.useEffect)(()=>{Ke==="office"&&(I.indexOf("bigfilescdn.")>-1||I.indexOf("bigfiles1")>-1?qe({url:I,fileType:cn(I),model:I.indexOf("model=edit")?"edit":"view"}):I.indexOf("coze")>-1?qe({url:I,fileType:"doc",model:"view"}):pt())},[Ke,I]);function vt(Pe){return R(this,null,function*(){Pe.data.type==="pdfdata"&&(Se(Pe.data.data),window.removeEventListener("message",vt,!1)),console.log("mess---:",Pe.data)})}const pt=()=>R(void 0,null,function*(){console.log("data:",I);let Pe=I;I.startsWith("http")||(Pe=location.origin+Pe);let Ge=new URL(Pe).pathname.split("/").pop();const j=yield(0,Y.gJ)({attachment_id:Ge});j.url=tt+j.url,qe(j)}),Qe=()=>{if(I.startsWith("http")||I.startsWith("blob:")){Ne();return}(0,W.Sv)(Je||"educoder",I,Je)},Ne=()=>{D&&(0,N.fc)({id:D==null?void 0:D.id,watch_type:1,course_id:D==null?void 0:D.course_id}),(0,W.Nd)(Je||"educoder",decodeURIComponent(I))};(0,i.useEffect)(()=>(window.addEventListener("message",le),()=>{window.removeEventListener("message",le)}),[]);const le=Pe=>{var Ge;((Ge=Pe==null?void 0:Pe.data)==null?void 0:Ge.type)==="closePop"&&_()};return y.createElement("div",{style:V({},oe||{}),className:`${ee&&K.bgBlack} ${Ke?K.wrp:"hide"}`},!!Ke&&k&&y.createElement("div",{id:"closePop",className:K.close,ref:bt},!!se&&y.createElement(g.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>bt.current},y.createElement("span",{onClick:()=>{_(),se()}},y.createElement("i",{className:"icon-yulanpizhu"}))),!ne&&window.parent===window&&y.createElement(g.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>bt.current},y.createElement("span",{onClick:Ne},y.createElement("i",{className:"icon-quxiaozhiding"}))),ue&&y.createElement(g.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>bt.current},y.createElement("span",{className:"",onClick:()=>{const Pe=document.getElementById("pdfiframe");window.addEventListener("message",vt,!1),setTimeout(()=>{Pe.contentWindow.postMessage("getData","*")},300)}},y.createElement("i",{className:"icon-baocun"}))),y.createElement(g.Z,{title:"\u5173\u95ED",getPopupContainer:()=>bt.current},y.createElement("span",{className:"",onClick:()=>{_()}},y.createElement("i",{className:"icon-guanbi1"})))),y.createElement("div",{className:`${K[We]} ${We} ${K.monaco} ${Ke==="txt"?"show":"hide"}`},Ke==="txt"&&y.createElement(y.Fragment,null,y.createElement(Z.ZP,V({},ke)))),Ke==="audio"&&y.createElement("audio",{controls:!0,src:`${(I==null?void 0:I.indexOf("http://"))>-1||(I==null?void 0:I.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${I}`,autoPlay:!0}),Ke==="video"&&y.createElement(y.Fragment,null,(I==null?void 0:I.indexOf("http"))>-1?y.createElement("video",{controls:!0,src:`${I}`,autoPlay:!0}):y.createElement("video",{controls:!0,src:`data:video/mp4;base64,${I}`,autoPlay:!0})),Ke==="office"&&Ae&&y.createElement("iframe",{src:`${ht}/office.html?key=${Ae.key}&url=${btoa(Ae.url)}&callbackUrl=${tt+(Ae.callbackUrl||"")}&fileType=${Ae.fileType}&title=${Ae.title||""}&model=${O}&officeServer=${x.Z.ONLYOFFICE}&disabledDownload=${!!ne}`}),Ke==="html"&&y.createElement("iframe",{src:I+"&disposition=inline"}),Ke==="pdf"&&y.createElement("iframe",{id:"pdfiframe",src:`${ht}/js/pdf/index.html?filename=${Je||"educoder.pdf"}&url=${encodeURIComponent(I)}&disabledDownload=${!!ne}&model=${O}`}),Ke==="image"&&y.createElement("img",{src:`${(I==null?void 0:I.indexOf("http://"))>-1||(I==null?void 0:I.indexOf("https://"))>-1?"":"data:image/png;base64,"}${I}`}),(Ke==="other"||Ke==="download")&&y.createElement(y.Fragment,null,w?y.createElement(l.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:y.createElement(L.ZP,{icon:y.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Qe,disabled:ne},"\u4E0B\u8F7D")}):y.createElement(L.ZP,{type:"primary",size:"middle",onClick:Qe,disabled:ne},y.createElement(he.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Ke==="flowChart"&&y.createElement("div",{className:"embed"},y.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${I||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function($n,Rt,u){"use strict";u.d(Rt,{z:function(){return ke},Z:function(){return We}});var i=u(59301),K=u(46214),L=u(20047),he=u(64018),Z=u(16471),g=u(14185),W=u(76406),Y=u(15342),l=u(44104),x=u(7939),N=u(1012),y=u(86974),T=u(59301),$=({html:oe})=>{const k=(0,i.useRef)(null),_=(0,i.useRef)(null),ee=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 56px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,i.useEffect)(()=>{const ne=k.current.attachShadow({mode:"open"});_.current=document.createElement("div"),_.current.className="markdown-body",_.current.innerHTML=oe,ne.appendChild(_.current);const se=document.createElement("style");return se.textContent=ee,ne.appendChild(se),()=>{ne.innerHTML=""}},[]),(0,i.useEffect)(()=>{_.current&&(_.current.innerHTML=oe)},[oe]),T.createElement("div",{ref:k})};function H(oe){const k=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],_=new RegExp(`\\b(${k.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),ee=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return oe.replace(_,"").replace(ee,"").trim()}var X={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},V=Object.defineProperty,R=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,I=(oe,k,_)=>k in oe?V(oe,k,{enumerable:!0,configurable:!0,writable:!0,value:_}):oe[k]=_,ue=(oe,k)=>{for(var _ in k||(k={}))Q.call(k,_)&&I(oe,_,k[_]);if(R)for(var _ of R(k))O.call(k,_)&&I(oe,_,k[_]);return oe};const Se="@\u2581\u2581@",me="@\u2581@",Ke=/<pre[^>]*>/g;function Je(oe){let k=document.createElement("div");return k.innerHTML=oe,k.childNodes.length===0?"":k.childNodes[0].nodeValue}const ke=(oe,k)=>{oe=oe||"";const _=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ee=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ne=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,se=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return k?oe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(_,(w,D,ce,Oe,ct,Tt,Ae)=>{const qe=D||Oe||Tt,ht=ce||ct||Ae||"?";return g.Z.API_SERVER+"/api/attachments/"+qe+ht+"&t="+(0,W.Jn)(qe,Date.now())+(w.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(oe=oe.replace(se,(w,D,ce,Oe,ct,Tt,Ae)=>{const qe=D||Oe||Tt,ht=ce||ct||Ae||"?";return g.Z.API_SERVER+"/attachments/download/"+qe+ht+"&t="+(0,W.Jn)(qe,Date.now())+(w.indexOf(")")>-1?")":"&")}).replace(_,(w,D,ce,Oe,ct,Tt,Ae)=>{const qe=D||Oe||Tt,ht=ce||ct||Ae||"?";return g.Z.API_SERVER+"/api/attachments/"+qe+ht+"&t="+(0,W.Jn)(qe,Date.now())+(w.indexOf(")")>-1?")":"&")}).replace(ee,(w,D,ce,Oe,ct)=>{const Tt=D||Oe,Ae=ce||ct||"";return'"'+g.Z.API_SERVER+"/api/attachments/"+Tt+Ae+Tt+Ae+"&t="+(0,W.Jn)(Tt,Date.now())}).replace(ne,(w,D,ce,Oe,ct)=>{const Tt=D||Oe,Ae=ce||ct||"";return"("+g.Z.API_SERVER+"/files/uploads/"+Tt+Ae+Tt+Ae+"&t="+(0,W.Jn)(Tt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),oe)};var We=({value:oe="",edit:k=!1,className:_,showTextOnly:ee,showLines:ne,style:se={},stylesPrev:w={},highlightKeywords:D,showProgramFill:ce,isProgramFill:Oe,disabledFill:ct=!1,programFillValue:Tt,openEditor:Ae=()=>{},onFillChange:qe=Fe=>{},onFillBlur:ht=()=>{},onFillFocus:tt=()=>{}})=>{let Fe=H(String(oe||""));const jt=(0,i.useRef)(),bt=(0,i.useRef)(),[cn,vt]=(0,i.useState)(""),[pt,Qe]=(0,i.useState)("office"),[Ne,le]=(0,i.useState)([]),Pe=(0,i.useRef)("a"+(0,N.Z)()),Ge={},j=mt=>/<style[\s\S]*?>/i.test(mt||""),P=(mt,Vt,Nt)=>{const De=document.createElement(mt===me?"input":"textarea");De.style.width="100%",De.style.height=mt===me?"40px":"151px",De.rows=5,De.spellcheck=!1,De.name="edu-program-fill",De.placeholder="\u8BF7\u8F93\u5165",De.dataset.id=Vt;const gt=Object.keys(Ge).length;return Ge[gt]=De,`<span class="edu-program-fill-wrap ${mt===me?"":"show"}" style="width:${mt===me?"600px":"100%"}" title=${Nt||""}><span>${De.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function _e(mt){return mt=mt.replace(/!\[.*?\]\(.*?\)/g,""),mt=mt.replace(/\[.*?\]\(.*?\)/g,""),mt=mt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),mt=mt.replace(/<embed.*?>/g,""),mt=mt.replace(/<img.*?>/g,""),mt=mt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),mt=mt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),mt=mt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),mt=mt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),mt}const Ie=mt=>!ee&&j(Fe)?mt:mt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Vt,Nt){let De=Nt.replace(/(\n|\r)/g,"").split("}"),gt=[];return De.map(E=>{E!=""&>.push(`.${Pe.current} ${E}`)}),`<style>${gt.join("}")}</style>`}),Te=(0,i.useMemo)(()=>{(0,L.Iy)();try{const De=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,gt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,E=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,S=/\(\/attachments\/download\//g;Fe=Fe.replace(S,"("+g.Z.API_SERVER+"/attachments/download/").replace(De,"("+g.Z.API_SERVER+"/api/attachments/").replace(gt,'"'+g.Z.API_SERVER+"/api/attachments/").replace(E,'"'+g.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),jt.current.style.display="none"}catch(De){}if(ce){let De=-1;return Fe=Fe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(gt,E,S){var je;return++De,P(gt,De,(je=Tt==null?void 0:Tt[De])==null?void 0:je.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Ie(Fe||"")}</pre>`}let mt=Ie(Fe);mt=(0,L.ZP)(mt);const Vt=(0,L.ez)();Fe.match(/\[TOC\]/)&&(mt=mt.replace("<p>[TOC]</p>",(0,L.Qv)()),(0,L.Iy)()),mt=mt.replace(/(__special_katext_id_\d+__)/g,(De,gt)=>{const{type:E,expression:S}=Vt[gt];return(0,Y.renderToString)(Je(S)||"",{displayMode:E==="block",throwOnError:!1,output:"html"})}),mt=mt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,L.AL)();const Nt=document.createElement("div");if(Nt.innerHTML=mt,ee)return Nt.innerText;if(D){const De=D.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return de(Nt,De),Nt.innerHTML}return setTimeout(()=>_t(),500),Nt.innerHTML},[Fe,D]);(0,i.useEffect)(()=>{xe.current&&xe.current.querySelectorAll(["input","textarea"]).forEach(Vt=>{Vt.oninput=ze,Vt.onblur=Ue,Vt.onfocus=ft})},[Ne]),(0,i.useEffect)(()=>{var mt,Vt,Nt,De,gt;if(Tt!=null&&Tt.length)try{const E=xe.current.querySelectorAll(".edu-program-fill-score"),S=xe.current.querySelectorAll('[name="edu-program-fill"]');for(const[je,G]of S.entries())G.value=((mt=Tt==null?void 0:Tt[je])==null?void 0:mt.value)||"",((Vt=Tt==null?void 0:Tt[je])==null?void 0:Vt.type)==="warning"?G.className="program-fill-warning":((Nt=Tt==null?void 0:Tt[je])==null?void 0:Nt.type)==="success"?G.className="program-fill-success":G.className="";for(const[je,G]of E.entries())G.innerHTML=(De=Tt==null?void 0:Tt[je])!=null&&De.score?`${(gt=Tt==null?void 0:Tt[je])==null?void 0:gt.score}\u5206`:"";le(Tt)}catch(E){console.log(E,"error")}},[Tt]);const ze=mt=>{Ne[mt.target.dataset.id]=Ne[mt.target.dataset.id]||{},Ne[mt.target.dataset.id].value=mt.target.value,le([...Ne]),qe(Ne,mt.target.dataset.id)},Ue=mt=>{Ne[mt.target.dataset.id]=Ne[mt.target.dataset.id]||{},Ne[mt.target.dataset.id].value=mt.target.value,le([...Ne]),ht(Ne,mt.target.dataset.id)},ft=mt=>{Ne[mt.target.dataset.id]=Ne[mt.target.dataset.id]||{},Ne[mt.target.dataset.id].value=mt.target.value,le([...Ne]),tt(Ne,mt.target.dataset.id)};function de(mt,Vt){return mt.childNodes.forEach(Nt=>{var De;if(Nt.childNodes.length>0)de(Nt,Vt);else if(Nt.nodeName!=="IMG")if(Nt.innerHTML)Nt.innerHTML=(De=Nt.innerHTML)==null?void 0:De.replace(new RegExp(Vt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const gt=document.createElement("span");gt.innerHTML=Nt.textContent.replace(new RegExp(Vt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Nt.replaceWith(gt)}})}const xe=(0,i.useRef)();L.jb.WebkitLineClamp=ne,ne&&(se=ue(ue({},se),L.jb));function Ot(mt){let Vt=mt.target;if(Vt.tagName.toUpperCase()==="A"){let Nt=Vt.getAttribute("href");if(Nt.indexOf("office")>-1)mt.preventDefault(),vt(Nt),Qe("office");else if(Nt.indexOf("application/pdf")>-1)mt.preventDefault(),vt(Nt),Qe("pdf");else if(Nt.indexOf("text/html")>-1)mt.preventDefault(),vt(Nt),Qe("html");else if(Nt.startsWith("#")){mt.preventDefault();let De=document.getElementById(Nt.replace("#",""));De&&De.scrollIntoView(!0)}}}const _t=()=>{var mt;const Vt=(mt=xe.current)==null?void 0:mt.querySelectorAll("video");Vt==null||Vt.forEach(Nt=>{if(Nt.oncontextmenu=()=>!1,Nt.src.indexOf(".m3u8")>-1&&!Nt.canPlayType("application/vnd.apple.mpegurl")){if(Z.ZP.isSupported()){var De=new Z.ZP;De.loadSource(Nt.src),De.attachMedia(Nt)}}})};(0,i.useEffect)(()=>{if(xe.current&&Te&&Te.match(Ke)&&window.PR.prettyPrint(),xe.current)return xe.current.addEventListener("click",Ot),()=>{var mt;(mt=xe.current)==null||mt.removeEventListener("click",Ot),(0,L.AL)(),(0,L.Iy)()}},[Te,xe.current,Ot]);const Pt=mt=>{mt.target.nodeName==="IMG"&&mt.target.className.indexOf("draw-flowchart")>-1?(jt.current.style.zIndex=1,jt.current.style.display="flex",jt.current.style.width=mt.target.clientWidth+"px",jt.current.style.height=mt.target.clientHeight+"px",jt.current.style.top=mt.target.offsetTop+"px",jt.current.style.left=mt.target.offsetLeft+"px",mt.target.id&&(bt.current=mt.target.id)):jt.current.style.display="none"},kt=()=>{jt.current.style.display="none"};return(0,i.useEffect)(()=>{var mt;const Vt=Nt=>{Nt.preventDefault(),Nt.clipboardData.setData("text",window.getSelection().toString())};return(mt=xe.current)==null||mt.addEventListener("copy",Vt),()=>{var Nt;(Nt=xe.current)==null||Nt.removeEventListener("copy",Vt)}},[xe.current]),i.createElement("div",{style:{position:"relative"},onMouseLeave:kt},ee&&i.createElement("div",{ref:xe,className:`${X.mdBody} `},Te),!ee&&!j(Te)&&i.createElement("div",{ref:xe,style:ue({},se),onMouseOver:Pt,className:`${_||""} ${ct?"disabled-fill":""} markdown-body ${X.mdBody} ${Pe.current}`,dangerouslySetInnerHTML:{__html:Te}}),!ee&&j(Te)&&i.createElement($,{html:Te}),i.createElement("div",{ref:jt,className:`${X.button} ${k?"":X.previewFlowChart}`},i.createElement(l.Z,null,i.createElement(x.ZP,{onClick:()=>{k?Ae(bt.current):(vt(bt.current),Qe("flowChart"))}},k?"\u7F16\u8F91":"\u9884\u89C8"))),i.createElement(y.Z,{close:!0,data:cn,type:cn!=null&&cn.length?pt:"",style:ue({},w),onClose:()=>vt("")}))}},34728:function($n,Rt,u){"use strict";u.d(Rt,{SV:function(){return jt},ZP:function(){return Fe}});var i=u(59301),K=u(76374);const L={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"]},he={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"]},Z={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(`
|
|
|
`)}]},g={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(`
|
|
|
`)}]},W={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 Y=u(53184),l=u.n(Y),x=(bt,cn,vt)=>new Promise((pt,Qe)=>{var Ne=Ge=>{try{Pe(vt.next(Ge))}catch(j){Qe(j)}},le=Ge=>{try{Pe(vt.throw(Ge))}catch(j){Qe(j)}},Pe=Ge=>Ge.done?pt(Ge.value):Promise.resolve(Ge.value).then(Ne,le);Pe((vt=vt.apply(bt,cn)).next())});const N={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"]}},y=(bt,cn,vt,pt)=>{const Qe=cn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:vt.lineNumber,endColumn:vt.column});return Array.from(new Set(Qe.match(/\b\w{2,}\b/g)||[])).map(le=>({label:le,kind:bt.languages.CompletionItemKind.Text,insertText:le,range:pt}))},T=(bt,cn,vt,pt)=>{bt.languages.registerCompletionItemProvider(cn,{provideCompletionItems(Qe,Ne){const le=Qe.getWordUntilPosition(Ne),Pe={startLineNumber:Ne.lineNumber,endLineNumber:Ne.lineNumber,startColumn:le.startColumn,endColumn:le.endColumn},Ge=Qe.getLineContent(Ne.lineNumber).substring(le.startColumn-2,le.endColumn);return{suggestions:[...y(bt,Qe,Ne,Pe),...vt.map(P=>({label:P,kind:bt.languages.CompletionItemKind.Keyword,documentation:P,insertText:P,insertTextRules:bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pe})),...pt.map(P=>({label:P.label,kind:bt.languages.CompletionItemKind.Snippet,documentation:P.content,insertText:Ge.startsWith("#")?P.content.replace(/#/,""):P.content,insertTextRules:bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pe}))]}}})};var A=bt=>{N.languages.forEach(cn=>{bt.languages.registerDocumentFormattingEditProvider(cn,{provideDocumentFormattingEdits(vt){return x(this,null,function*(){const pt=l()(vt.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:vt.getFullModelRange(),text:pt}]})}})}),T(bt,"java",he.keywords,he.quickKey),T(bt,"cpp",Z.keywords,Z.quickKey),T(bt,"c",L.keywords,[]),T(bt,"python",g.keywords,g.quickKey),T(bt,"scala",W.keywords,W.quickKey)};const $="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var H=Object.defineProperty,X=(bt,cn,vt)=>cn in bt?H(bt,cn,{enumerable:!0,configurable:!0,writable:!0,value:vt}):bt[cn]=vt,V=(bt,cn,vt)=>X(bt,typeof cn!="symbol"?cn+"":cn,vt);const R=class uc{constructor(cn,vt,pt){this.placeholder=cn,this.editor=vt,this.monaco=pt,vt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return uc.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)}};V(R,"ID","editor.widget.placeholderHint");var O=R,I=u(96236),ue=u(6767),Se=u(25399),me=u(78267),Ke=u(33156),Je=u(56102),ke=Object.defineProperty,We=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(bt,cn,vt)=>cn in bt?ke(bt,cn,{enumerable:!0,configurable:!0,writable:!0,value:vt}):bt[cn]=vt,se=(bt,cn)=>{for(var vt in cn||(cn={}))_.call(cn,vt)&&ne(bt,vt,cn[vt]);if(k)for(var vt of k(cn))ee.call(cn,vt)&&ne(bt,vt,cn[vt]);return bt},w=(bt,cn)=>We(bt,oe(cn)),D=(bt,cn)=>{var vt={};for(var pt in bt)_.call(bt,pt)&&cn.indexOf(pt)<0&&(vt[pt]=bt[pt]);if(bt!=null&&k)for(var pt of k(bt))cn.indexOf(pt)<0&&ee.call(bt,pt)&&(vt[pt]=bt[pt]);return vt},ce=(bt,cn,vt)=>new Promise((pt,Qe)=>{var Ne=Ge=>{try{Pe(vt.next(Ge))}catch(j){Qe(j)}},le=Ge=>{try{Pe(vt.throw(Ge))}catch(j){Qe(j)}},Pe=Ge=>Ge.done?pt(Ge.value):Promise.resolve(Ge.value).then(Ne,le);Pe((vt=vt.apply(bt,cn)).next())});function Oe(bt){return/^\d+$/.test(bt)?`${bt}px`:bt}function ct(){}let Tt=!1;const Ae={"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 qe(bt=[]){let cn=bt;if(Array.isArray(bt)){for(let vt=0;vt<bt.length;vt++){let pt=Ae[bt[vt]];if(pt)return pt}return cn[0]}return Ae[cn]||cn}let ht=null;const tt=()=>ce(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(bt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",bt)}});var Fe=bt=>{var cn=bt,{width:vt="100%",height:pt="100%",value:Qe,language:Ne="javascript",style:le={},options:Pe={},overrideServices:Ge={},theme:j="vs-dark",onEditBlur:P,isCopy:_e=!1,onSave:Ie,autoHeight:Te=!1,forbidCopy:ze=!1,forbidCopyTips:Ue,onChange:ft=ct,editorDidMount:de=ct,onFocus:xe=ct,onBreakPoint:Ot=ct,breakPointValue:_t=[],filename:Pt="educoder.txt",errorLine:kt,errorContent:mt="",highlightLine:Vt,openBreakPoint:Nt=!1,placeholder:De="",showMiniMap:gt=!0}=cn,E=D(cn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const S=(0,i.useRef)(),je=(0,i.useRef)({}),G=(0,i.useRef)(),Ce=(0,i.useRef)(),en=(0,i.useRef)([]),rt=(0,i.useRef)(!1),st=(0,i.useRef)(),xt=(0,i.useRef)(),pe=(0,i.useRef)(!1),[Ee,nt]=(0,i.useState)(!1);function Ze(){let Mt;return S.current&&(Mt=new K.Z(ie=>{for(let ve of ie)(ve.target.offsetHeight>0||ve.target.offsetWidth>0)&&je.current.instance.layout()}),Mt.observe(S.current)),Mt}function z(){ue.ZP.warning({content:decodeURIComponent(Ue||$),key:"monaco-editor-tip"})}const St=()=>{let Mt=je.current.instance;if(Qe!=null&&Mt&&Ee){const ie=Mt.getModel();ie&&Qe!==ie.getValue()&&(Tt=!0,ie.setValue(Qe),Mt.layout(),Tt=!1)}};(0,i.useEffect)(()=>{const Mt=Ke.Z.subscribe("formatDocument",ie=>{var ve;let At=je.current.instance;(ve=At==null?void 0:At.getAction)==null||ve.call(At,"editor.action.formatDocument").run()});return window.updateMonacoValue=ie=>{ft(ie)},Mt},[]),(0,i.useEffect)(()=>{var Mt;let ie=je.current.instance;Ce.current&&clearTimeout(Ce.current),Ce.current=setTimeout(()=>{St()},500),Qe&&(Qe!=null&&Qe.length)&&((Mt=ie==null?void 0:ie.updateOptions)==null||Mt.call(ie,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Qe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Qe,Ee,je.current]),(0,i.useEffect)(()=>{if(kt&&je.current&&je.current.instance){let ie=je.current.instance;ie.changeViewZones(function(ve){var At=document.createElement("div");At.style.padding="10px 20px",At.style.width="calc(100% - 20px)",At.className="my-error-line-wrp",At.innerHTML=mt,ve.addZone({afterLineNumber:kt||11,heightInLines:3,domNode:At})});var Mt={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}};ie.addOverlayWidget(Mt),ie.revealPositionInCenter({lineNumber:20,column:1})}},[kt,je.current,Ee]);const fe=(Mt="",ie)=>{if(!Mt||Mt.trim()==="")return!0;const At=je.current.instance.getModel().getLineTokens(ie);let Be=!1;for(let Le=0;Le<2;Le++)At.getStandardTokenType(Le)===1&&(Be=!0);return Be};(0,i.useEffect)(()=>{var Mt;const ie=(Mt=je.current)==null?void 0:Mt.instance;if(ie&&Ee&&ze){const ve=ie.onDidBlurEditorWidget(()=>{pe.current=!1}),At=ie.onDidFocusEditorText(()=>{pe.current=!0});return()=>{ve.dispose(),At.dispose()}}},[je.current,Ee,ze]),(0,i.useEffect)(()=>{var Mt;if((Mt=je.current)!=null&&Mt.instance&&Ee&&Nt){let ie=je.current.instance,ve=ie.getModel();if(!ve)return;(()=>{var lt;let wt=[],Qt=[];const Yt=ve.getAllDecorations();for(let at of Yt)at.options.className==="highlighted-line"&&(wt.push((lt=at==null?void 0:at.range)==null?void 0:lt.startLineNumber),Qt.push(at==null?void 0:at.id));if(Vt===wt[0])return;ve.deltaDecorations(Qt,[]);const ye=ve.getLineCount();Vt&&Vt<=ye&&(ie.deltaDecorations([],[{range:new ht.Range(Vt,1,Vt,ve.getLineMaxColumn(Vt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),ie.revealLineInCenter(Vt))})();const Be=(lt=!1)=>{var wt;let Qt=[],Yt=[];const ye=ve.getAllDecorations();for(let at of ye)at.options.linesDecorationsClassName==="breakpoints-select"&&(Qt.push((wt=at==null?void 0:at.range)==null?void 0:wt.startLineNumber),Yt.push(at==null?void 0:at.id));if(lt)return{lines:Qt,ids:Yt};Ot(Qt)},Le=lt=>ce(void 0,null,function*(){let wt={range:new ht.Range(lt,1,lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield ve.deltaDecorations([],[wt]),Be()}),ae=lt=>ce(void 0,null,function*(){let wt=[];const Qt=ie.getLineDecorations(lt);for(let Yt of Qt)Yt.options.linesDecorationsClassName==="breakpoints-select"&&wt.push(Yt.id);yield ve.deltaDecorations(wt,[]),Be()}),Re=lt=>{let wt=ie.getLineDecorations(lt);for(let Qt of wt)if(Qt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,me.isEqual)(_t,Be(!0).lines)){ve.deltaDecorations(Be(!0).ids,[]);const lt=_t.map(wt=>({range:new ht.Range(wt,1,wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));ve.deltaDecorations([],lt)}const $e=ie.onDidChangeModelContent(lt=>{let wt=ie.getPosition();if(wt){let Qt=wt.lineNumber;clearTimeout(xt.current),xt.current=setTimeout(()=>{fe(ve.getLineContent(Qt),Qt)?ae(Qt):Re(Qt)?(ae(Qt),Le(Qt)):Be()},100)}}),He=ie.onMouseDown(lt=>{var wt,Qt,Yt;if(lt.target.detail&&((Yt=(Qt=(wt=lt.target)==null?void 0:wt.element)==null?void 0:Qt.className)!=null&&Yt.includes("line-numbers"))){let ye=lt.target.position.lineNumber;if(fe(ve.getLineContent(ye),ye))return;Re(ye)?ae(ye):Le(ye)}}),ut=lt=>{let wt={range:new ht.Range(lt,1,lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};en.current=ie.deltaDecorations(en.current,[wt])},rn=()=>{en.current=ie.deltaDecorations(en.current,[])},on=ie.onMouseMove(lt=>{var wt,Qt,Yt;if(rn(),lt.target.detail&&((Yt=(Qt=(wt=lt.target)==null?void 0:wt.element)==null?void 0:Qt.className)!=null&&Yt.includes("line-numbers"))){let ye=lt.target.position.lineNumber;if(fe(ve.getLineContent(ye),ye))return;ut(ye)}}),Ve=ie.onMouseLeave(()=>{rn()});return()=>{$e.dispose(),He.dispose(),on.dispose(),Ve.dispose()}}},[je.current,Ee,_t,Vt,Nt,Ne]),(0,i.useEffect)(()=>{var Mt;(Mt=je.current)!=null&&Mt.instance&&Nt&&je.current.instance.setPosition({lineNumber:0,column:0})},[Vt]);function Kt(){let Mt=je.current.instance;if(Mt){const ie=Mt.getSelection(),ve=je.current.pastePos||{},At=new ht.Range(ve.startLineNumber||ie.endLineNumber,ve.startColumn||ie.endColumn,ve.endLineNumber||ie.endLineNumber,ve.endColumn||ie.endColumn);setTimeout(()=>{Mt.executeEdits("",[{range:At,text:""}])},300)}}function dn(Mt){(window.navigator.platform.match("Mac")?Mt.metaKey:Mt.ctrlKey)&&Mt.keyCode==83&&(Mt.preventDefault(),Ie())}const Bt=()=>{if(Te&&je.current.instance){const Mt=je.current.instance.getContentHeight();$t(Mt<pt?pt:Mt)}else $t(pt)};function J(Mt){var ie=document.createEvent("MouseEvents");ie.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Mt.dispatchEvent(ie)}const we=Mt=>{if(!pe.current)return;const{keyCode:ie,ctrlKey:ve,metaKey:At,target:Be,type:Le}=Mt;return(Le==="paste"||(ie===67||ie===86)&&(At||ve))&&Be.nodeName==="TEXTAREA"&&(z(),Mt.preventDefault()),!1};function M(Mt,ie){var ve=window.URL||window.webkitURL||window,At=new Blob([ie]),Be=document.createElementNS("http://www.w3.org/1999/xhtml","a");Be.href=ve.createObjectURL(At),Be.download=Mt,J(Be)}(0,i.useEffect)(()=>{Bt()},[Bt]),(0,i.useEffect)(()=>{S.current&&!Ee&&Promise.all([u.e(8909),u.e(5977)]).then(u.bind(u,71448)).then(Mt=>{try{ht=Mt,je.current.instance=ht.editor.create(S.current,{value:Qe,language:qe(Ne),theme:j,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:gt||!1}},Ge);const ie=je.current.instance;let Be=[...I.BH._menuItems].find($e=>$e[0]._debugName=="EditorContext")[1],Le=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ae=($e,He)=>{var ut,rn;let on=$e._first;do He.includes((rn=(ut=on.element)==null?void 0:ut.command)==null?void 0:rn.id)&&$e._remove(on);while(on=on.next)};if(de(ie,ht),setTimeout(()=>{Bt(),je.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{M(Pt||"educoder.txt",ie.getValue())}})},500),je.current.subscription=ie.onDidChangeModelContent($e=>{rt.current?clearTimeout(st.current):(Bt(),ft(ie.getValue(),$e)),st.current=setTimeout(()=>{rt.current=!1},500)}),window.Monaco||A(ht,qe(Ne)),ze&&(ae(Be,Le),S.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",we),window.removeEventListener("paste",we),window.addEventListener("keydown",we),window.addEventListener("paste",we)),window.Monaco=ht,P&&ie.onDidBlurEditorWidget(()=>{P(ie.getValue())}),xe&&ie.onDidFocusEditorText(()=>{ze&&tt(),xe(ie.getValue())}),ze){tt();try{ie.onDidPaste($e=>{const He=ie.getSelection(),ut=je.current.pastePos||{},rn=new ht.Range(ut.startLineNumber||He.endLineNumber,ut.startColumn||He.endColumn,ut.endLineNumber||He.endLineNumber,ut.endColumn||He.endColumn);ie.executeEdits("",[{range:$e.range,text:""}])})}catch($e){}}let Re=Ze();return De&&typeof De=="string"&&new O(De,ie,ht),nt(!0),()=>{const $e=je.current.instance;$e.dispose();const He=$e.getModel();He&&He.dispose(),je.current.subscription&&je.current.subscription.dispose(),Re.unobserve(S.current)}}catch(ie){}})},[]),(0,i.useEffect)(()=>{if(je.current.instance&&Ee)return document.addEventListener("keydown",dn,!1),()=>{document.removeEventListener("keydown",dn)}},[Ie,Ee]),(0,i.useEffect)(()=>{let Mt=je.current.instance;if(Mt&&Ee){let ie=qe(Ne);ht.editor.setModelLanguage(Mt.getModel(),ie)}},[Ne,Ee]),(0,i.useEffect)(()=>{je.current.instance&&Ee&&ht.editor.setTheme(j)},[j,Ee]),(0,i.useEffect)(()=>{let Mt=je.current.instance;G.current=Pe,Mt&&Ee&&(Mt.updateOptions(se({},Pe)),setTimeout(()=>{Mt.getModel().updateOptions(se({},Pe))},200))},[JSON.stringify(Pe),Ee]),(0,i.useEffect)(()=>{let Mt=je.current.instance;Mt&&Ee&&Mt.layout()},[vt,pt,Ee]);const[Ct,ot]=(0,i.useState)(Oe(vt)),[dt,$t]=(0,i.useState)(Oe(pt)),Ft=w(se({},le),{width:Ct,height:dt,position:"relative"});return i.createElement("div",{className:"my-monaco-editor",ref:S,style:Ft,onFocus:()=>{ze&&tt()}},_e&&i.createElement(Je.CopyToClipboard,{text:Qe,onCopy:()=>ue.ZP.success("\u590D\u5236\u6210\u529F")},i.createElement(Se.Z,{title:"\u590D\u5236\u4EE3\u7801"},i.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},i.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function jt({width:bt="100%",height:cn="100%",original:vt,modified:pt,language:Qe,options:Ne={}}){const le=(0,i.useRef)(),[Pe,Ge]=(0,i.useState)(null);function j(Te){let ze;return le.current&&(ze=new K.Z(Ue=>{for(let ft of Ue)(ft.target.offsetHeight>0||ft.target.offsetWidth>0)&&Te.layout()}),ze.observe(le.current)),ze}(0,i.useEffect)(()=>(le.current&&Promise.all([u.e(8909),u.e(9404)]).then(u.bind(u,2550)).then(Te=>{ht=Te;const ze=ht.editor.createDiffEditor(le.current,w(se({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},Ne),{wordWrap:!0}));Ge(ze);let Ue=j(ze);return()=>{ze.dispose();const ft=ze.getModel();ft&&ft.dispose(),Ue.unobserve(le.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,i.useEffect)(()=>{Pe&&Pe.setModel({original:ht.editor.createModel(vt,Qe),modified:ht.editor.createModel(pt,Qe)})},[vt,pt,Qe,Pe]);const P=Oe(bt),_e=Oe(cn),Ie={width:P,height:_e};return i.createElement("div",{className:"my-diff-editor",ref:le,style:Ie})}},54077:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return N}});var i={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},K=u(29787),L=u(25399),he=u(89787),Z=u(92310),g=u.n(Z),W=u(76406),Y=u(90736),l=u(59301),N=({className:y,dataSource:T=[],col:A=4,right:$,bottom:H=23,precision:X=0,wrapWidth:V=1200,trackEventItems:R,loading:Q,onRemove:O=()=>{},isCurrent:I=!0,showProgress:ue=!1,showAlias:Se=!1,category:me="notDisplay",hiddenClick:Ke=()=>{}})=>{const Je=Math.floor((V-(A-1)*$)/A),ke=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return l.createElement(K.Z,{spinning:Q},l.createElement("div",{className:g()(i.list,y)},!!(T!=null&&T.length)&&(T==null?void 0:T.map((We,oe)=>{var k,_,ee,ne,se,w,D;const{name:ce,id:Oe,identifier:ct,featured:Tt,school_name:Ae,image_url:qe,excellent:ht,is_plan:tt}=We;return l.createElement("div",{key:Oe,className:I&&ue?i.wrapisCurrent:i.wrap,style:{width:Je,marginRight:(1+oe)%A===0?0:$+X,marginBottom:H}},l.createElement("a",{className:i.li,onClick:Fe=>{Fe.preventDefault(),Fe.stopPropagation(),R&&(0,W.L9)([R]),(0,W.xg)(`/paths/${ct}`)}},l.createElement("div",{className:i.img},l.createElement("img",{className:i.cover,src:`${qe}`}),(k=We==null?void 0:We.subject_tags)==null?void 0:k.map((Fe,jt)=>{var bt,cn;if(jt===0){const pt=(bt=ke.find(Qe=>Qe.name==Fe))==null?void 0:bt.swclass;return l.createElement("span",{className:`sprite ${pt} ${i.sign}`,style:{left:"-4px"}})}const vt=(cn=ke.find(pt=>pt.name==Fe))==null?void 0:cn.ptclass;return l.createElement("span",{className:`sprite ${vt} ${i.sign}`,style:{left:`${48+52*(jt-1)+2*jt}px`}})}),l.createElement("div",{className:i.tagsDom},l.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(We==null?void 0:We.excellent)&&l.createElement("div",{className:i.bq},"\u5F00\u653E\u8BFE\u7A0B"),((_=We==null?void 0:We.custom_tags)==null?void 0:_.length)>0&&(We==null?void 0:We.custom_tags.map((Fe,jt)=>{var bt;return l.createElement(L.Z,{title:Fe==null?void 0:Fe.tag_name,key:jt},l.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((bt=We==null?void 0:We.custom_tags)==null?void 0:bt.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},l.createElement("span",{className:"multi-llipsis1e"},Fe==null?void 0:Fe.tag_name)))})))),me=="hide"&&(We==null?void 0:We.studying)&&I&&l.createElement("div",{className:`${i.movebq} user-path-items`,onClick:Fe=>{Fe.stopPropagation(),O(We)}},l.createElement("i",{className:"iconfont icon-yichu1 font12"}),l.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(me)&&I&&l.createElement("div",{className:`${i.hiddenbq} user-path-items`,onClick:Fe=>{Fe.stopPropagation(),Ke(We)}},l.createElement("i",{className:`iconfont ${me=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),l.createElement("span",null,me=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),l.createElement("div",{className:i.name},l.createElement(L.Z,{title:Se&&(We!=null&&We.excellent_alias_name)?l.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ce}`,l.createElement("br",null),l.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${We==null?void 0:We.excellent_alias_name}`)):ce},l.createElement("span",{className:i.e},Se&&(We==null?void 0:We.excellent_alias_name)||ce))),I&&ue&&((ee=We==null?void 0:We.progress)==null?void 0:ee.all_score)!=0&&l.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},l.createElement(he.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((ne=We==null?void 0:We.progress)==null?void 0:ne.my_score)/((se=We==null?void 0:We.progress)==null?void 0:se.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(w=We==null?void 0:We.progress)==null?void 0:w.my_score,"/",(D=We==null?void 0:We.progress)==null?void 0:D.all_score),(!I||!ue)&&l.createElement(L.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ae}`},l.createElement("div",{className:i.unit},l.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ae)),(!I||!ue)&&l.createElement("div",{className:i.tags},l.createElement("div",null,l.createElement(L.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},l.createElement("span",null,l.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),l.createElement("span",null,We.stages_count))),l.createElement(L.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},l.createElement("span",null,l.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),l.createElement("span",null,We.members_count)))))))})),!T.length&&l.createElement(Y.Z,null)))}},70467:function($n,Rt,u){"use strict";u.d(Rt,{jL:function(){return he},w9:function(){return ce},QD:function(){return _t},cQ:function(){return oe.Z},op:function(){return ze},O5:function(){return Ze},_b:function(){return De},t7:function(){return X},Gi:function(){return ht},YG:function(){return Ae},qp:function(){return x},vr:function(){return mt},qE:function(){return de},Je:function(){return Q},wb:function(){return We},cq:function(){return vt},tp:function(){return T}});var i=u(59301),K={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"},he=({dataSource:z=[],img:St,imgWidth:fe=346,title:Kt,sunTitle:dn,bannerExtraContent:Bt})=>i.createElement("div",{className:K.banner},i.createElement("div",{className:K.content},i.createElement("aside",null,i.createElement("p",null,i.createElement("b",null,Kt),i.createElement("span",null,dn)),z.length>0&&i.createElement("div",{className:K.btns},z.map((J,we)=>i.createElement("div",{key:we,onClick:J.click},J.name,J.sign?i.createElement("span",{className:"sprite sprite-33"}):null))),Bt),St&&i.createElement("img",{style:{marginTop:33,marginRight:38},src:St,width:fe}))),Z={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"},g=u(92310),W=u.n(g),Y=u(78267),x=({dataSource:z=[],value:St,onChange:fe,onTitleChange:Kt,className:dn,title:Bt,titleWidth:J=41,style:we={},fontColor:M="#6A7283",showCount:Ct})=>{const[ot,dt]=(0,i.useState)(1),[$t,Ft]=(0,i.useState)(!1),Mt=(0,i.useRef)(null),ie=(0,i.useRef)(null);return(0,i.useEffect)(()=>{var ve;z.length!==0&&(((ve=Mt==null?void 0:Mt.current)==null?void 0:ve.clientHeight)>97?dt(1):dt(0)),z.length===0&&dt(0),Ft(!1)},[z]),i.createElement("div",{className:W()(Z.row,dn,"fadeIn","animated"),style:we},i.createElement("div",{onClick:(0,Y.throttle)(()=>Kt==null?void 0:Kt(),2e3),style:{width:J,marginTop:$t?12:4},className:`${Z.title} ${Kt?"current":""}`},Bt),i.createElement("div",{className:$t?`${Z.tagsWrap} ${Z.tagsBorderWrap}`:Z.tagsWrap},i.createElement("div",{className:Z.bar,ref:ie,style:ot>0?{height:ot===1?97:"auto",overflow:ot===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},i.createElement("div",{className:Z.tag,ref:Mt},z==null?void 0:z.map(ve=>i.createElement("span",{onClick:()=>fe(ve.id),key:ve.id,style:{color:M},className:St===ve.id?Z.active:""},i.createElement("span",{title:ve.name,className:Z.name},ve.name),!!Ct&&i.createElement("span",{className:Z.num},ve.count))))),!!ot&&i.createElement(i.Fragment,null,ot===1?i.createElement("div",{onClick:()=>{var ve;dt(2),((ve=Mt==null?void 0:Mt.current)==null?void 0:ve.clientHeight)>245?Ft(!0):Ft(!1)},className:Z.action},"\u5C55\u5F00",i.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):i.createElement("div",{onClick:()=>{ie.current.scrollTop=0,dt(1),Ft(!1)},className:Z.action},"\u6536\u8D77",i.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},N={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"},T=({dataSource:z=[],value:St,onChange:fe,className:Kt,style:dn={}})=>i.createElement("div",{style:dn,className:W()(N.tabs,Kt)},z.map(Bt=>i.createElement("span",{onClick:()=>fe(Bt.id),className:St===Bt.id?N.active:"",key:Bt.id},Bt.name))),A={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},$=u(37568),X=({dataSource:z=[],value:St="",onChange:fe,onInputChange:Kt=()=>{},className:dn,style:Bt={},placeholder:J,allowClear:we=!1})=>{var M;const[Ct,ot]=(0,i.useState)(""),[dt,$t]=(0,i.useState)("");(0,i.useEffect)(()=>{var ie;let ve=St;(ie=JSON.stringify(St))!=null&&ie.includes("{")&&(ot(St.id),ve=St.value||"");try{$t(decodeURIComponent(ve||""))}catch(At){$t(decodeURIComponent(ve||""))}},[St]);const Ft=()=>{fe(encodeURIComponent(dt),Ct||null)},Mt=ie=>{ie!==Ct&&(ot(ie),fe(encodeURIComponent(dt),ie))};return i.createElement("div",{className:W()(A.input,dn),style:Bt},!!z.length&&i.createElement("div",{className:A.dropdown},i.createElement("div",{className:A.text},(M=z.find(ie=>ie.id===Ct))==null?void 0:M.name,i.createElement("i",{className:"iconfont icon-zhankai4"}),i.createElement("b",{className:A.b1}),i.createElement("b",{className:A.b2})),i.createElement("div",{className:A.menu},z.map((ie,ve)=>i.createElement("div",{key:ve,onClick:()=>Mt(ie.id)},ie.name)))),i.createElement($.default,{onPressEnter:Ft,value:dt,onChange:ie=>{$t(ie.target.value),Kt(encodeURIComponent(ie.target.value),Ct||null)},placeholder:J,variant:"borderless",allowClear:we,onClear:()=>fe("",Ct||null)}),i.createElement("i",{onClick:Ft,className:"iconfont icon-sousuo9 font14 current"}))},V={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"},Q=({value:z,onChange:St,className:fe,total:Kt,pageSize:dn,style:Bt={}})=>{const J=z<2,we=z>=Math.ceil(Kt/dn);return Kt<=dn?i.createElement(i.Fragment,null):i.createElement("div",{className:W()(V.quickPager,fe),style:Bt},i.createElement("div",{onClick:()=>{J||St(z-1,"prev")},className:J?V.disabled:""},"\u4E0A\u4E00\u9875"),i.createElement("div",{onClick:()=>{we||St(z+1,"next")},className:we?V.disabled:""},"\u4E0B\u4E00\u9875"))},O={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"},I=u(29787),ue=u(25399),Se=u(63139),me=u(14185),Ke=u(76406),Je=u(90736),We=({className:z,dataSource:St=[],col:fe=4,right:Kt,bottom:dn=23,precision:Bt=0,wrapWidth:J=1200,trackEventItems:we,loading:M})=>{const Ct=Math.floor((J-(fe-1)*Kt)/fe);return i.createElement(I.Z,{spinning:M},i.createElement("div",{className:W()(O.list,z)},!!St.length&&St.map((ot,dt)=>{const{name:$t,id:Ft,identifier:Mt,power:ie,cover_image_id:ve,pic:At}=ot;return i.createElement("div",{className:O.wrap,key:Ft,style:{width:Ct,marginRight:(1+dt)%fe===0?0:Kt+Bt,marginBottom:dn}},i.createElement("a",{target:"_blank",href:`/shixuns/${Mt}/challenges`,className:O.li,onClick:Be=>{Be.preventDefault(),we&&(0,Ke.L9)([we]),ie&&(0,Ke.xg)(`/shixuns/${Mt}/challenges`)}},i.createElement("div",{className:O.img},i.createElement("img",{className:O.cover,src:`${At}`}),ot.is_jupyter&&i.createElement("span",{className:`sprite sprite-43 ${O.sign}`}),ot.is_jupyter_lab&&i.createElement("span",{className:`sprite sprite-42 ${O.sign}`}),ot.is_unity_3d&&i.createElement("span",{className:`sprite sprite-44 ${O.sign}`})),i.createElement("div",{className:O.name},i.createElement(ue.Z,{title:$t||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},i.createElement("span",{className:O.e},$t||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),i.createElement("div",{className:O.tags},i.createElement(ue.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},i.createElement("span",null,i.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),i.createElement("span",null,ot.challenges_count))),!!ot.myshixuns_count&&i.createElement(ue.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},i.createElement("span",null,i.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),i.createElement("span",null,ot.myshixuns_count))),i.createElement(ue.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},i.createElement("span",null,i.createElement("span",null,ot.level))),i.createElement("div",{className:O.rate},i.createElement(Se.Z,{allowHalf:!0,disabled:!0,defaultValue:ot.score_info}),i.createElement("span",null,"\xA0",ot.score_info?`${ot.score_info}\u5206`:"5\u5206")))),!ie&&i.createElement("div",{className:O.lockWrap},i.createElement("img",{src:`${me.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),i.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!St.length&&i.createElement(Je.Z,null)))},oe=u(54077),k={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},_=u(62957),ee=u(96599),ne="data:image/png;base64,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",se=u(59301),w=(z,St,fe)=>new Promise((Kt,dn)=>{var Bt=M=>{try{we(fe.next(M))}catch(Ct){dn(Ct)}},J=M=>{try{we(fe.throw(M))}catch(Ct){dn(Ct)}},we=M=>M.done?Kt(M.value):Promise.resolve(M.value).then(Bt,J);we((fe=fe.apply(z,St)).next())}),ce=({className:z,dataSource:St=[],col:fe=4,right:Kt,bottom:dn=23,precision:Bt=0,wrapWidth:J=1200,trackEventItems:we,loading:M,category:Ct,hiddenClick:ot,handleVery:dt=()=>!0,isCurrent:$t})=>{const[Ft,Mt]=_.default.useModal(),ie=Math.floor((J-(fe-1)*Kt)/fe),ve=At=>w(void 0,null,function*(){Ft.confirm({title:"\u7F6E\u9876",width:500,content:se.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",se.createElement("span",{className:"c-blue"},"\u201C",At.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return se.createElement(I.Z,{spinning:M},Mt,se.createElement("div",{className:W()(k.list,z)},!!St.length&&St.map((At,Be)=>{const{subject_identifier:Le,id:ae,identifier:Re,power:$e}=At,He=At.is_public!=0&&At.is_public;return se.createElement("div",{className:k.wrap,key:ae,style:{width:ie,marginRight:(1+Be)%fe===0?0:Kt+Bt,marginBottom:dn}},At.homepage_show&&se.createElement("div",{className:k.btnsTop},se.createElement(ee.default,{color:"red"},"\u7F6E\u9876")),se.createElement("a",{className:k.li,onClick:ut=>{ut.preventDefault(),dt(At==null?void 0:At.first_category_url)&&(we&&(0,Ke.L9)([we]),(0,Ke.xg)(At.first_category_url))}},se.createElement("div",{className:k.top},se.createElement(ue.Z,{title:At.name},se.createElement("div",{className:k.name},At.name)),se.createElement("img",{className:k.img,src:me.Z.IMG_SERVER+"/images/"+At.avatar_url}),se.createElement("div",{className:k.text,title:At.creator},At.creator),Le&&se.createElement("div",{className:k.btns},se.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),se.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),He&&se.createElement("div",{className:k.sign},"\u516C\u5F00"),$t&&se.createElement("div",{className:k.hidden,onClick:ut=>{ut.stopPropagation(),ot(At)}},se.createElement("i",{className:`iconfont ${Ct=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ct=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),se.createElement("div",{className:k.bottom},At.visits>0&&se.createElement(ue.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-liulanyan"}),se.createElement("span",null,At.visits))),At.course_members_count>0&&se.createElement(ue.Z,{title:"\u6210\u5458",placement:"bottom"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-chengyuan"}),At.course_members_count)),At.tasks_count>0&&se.createElement(ue.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-zuoye"}),At.tasks_count)),At.is_end?se.createElement("div",{style:{color:"#6B758B"}}):se.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!At.is_accessible&&se.createElement("div",{className:k.lockWrap},se.createElement("img",{src:`${me.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),se.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!St.length&&se.createElement(Je.Z,null)))},Oe={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"},ct=u(44283),Ae=({dataSource:z=[],value:St,onChange:fe,className:Kt,style:dn={},tabBarExtraContent:Bt})=>i.createElement("div",{className:W()(Oe.tabs,Kt),style:dn},i.createElement("div",{className:Oe.tabsWrap},z.map((J,we)=>!(J!=null&&J.hide)&&i.createElement("aside",{className:Oe.tab,onClick:()=>{fe(J.id),J.link&&ct.history.push(J.link)},key:we},i.createElement("div",{className:St===J.id?Oe.active:""},J.name),(J==null?void 0:J.resetCount)==null&&(J==null?void 0:J.total)!==void 0&&i.createElement("span",null,"\uFF08",J==null?void 0:J.total,"\uFF09"),(J==null?void 0:J.resetCount)!==void 0&&(J==null?void 0:J.total)!==void 0&&i.createElement(ue.Z,{title:(J==null?void 0:J.tip)!=null?J==null?void 0:J.tip:""},i.createElement("span",{style:{color:"#9096A3"}},"\uFF08",i.createElement("span",{style:{color:"#000"}},J==null?void 0:J.resetCount),"/",i.createElement("span",null,J==null?void 0:J.total),"\uFF09"))))),i.createElement("div",{className:Oe.tabBar},Bt)),ht=({className:z,style:St={},children:fe})=>i.createElement("div",{className:W()(z),style:St},fe),tt={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"},Fe=u(75727),jt=u(93041);const bt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var vt=({sortValue:z,dropValue:St,className:fe,onSort:Kt,onDrop:dn,dataSource:Bt=bt})=>{var J;return i.createElement("div",{className:W()(tt.orderWrap,fe)},i.createElement(Fe.Z,{dropdownRender:()=>i.createElement(jt.default,null,Bt.map((we,M)=>i.createElement(jt.default.Item,{key:M,onClick:()=>dn(we.id)},we.name)))},i.createElement("span",{className:tt.orderTextWrap},(J=Bt.find(we=>St===we.id))==null?void 0:J.name)),i.createElement("span",{className:tt.orderIconWrap},i.createElement("span",{className:tt.orderAsc},i.createElement("i",{className:z==="asc"?`iconfont icon-sanjiaoxing-up font12 ${tt.cursorPointer} ${tt.active}`:`iconfont icon-sanjiaoxing-up font12 ${tt.cursorPointer}`,onClick:()=>Kt(z==="asc"?"desc":"asc")})),i.createElement("span",{className:tt.orderDesc},i.createElement("i",{className:z==="desc"?`iconfont icon-sanjiaoxing-down font12 ${tt.cursorPointer} ${tt.active}`:`iconfont icon-sanjiaoxing-down font12 ${tt.cursorPointer}`,onClick:()=>Kt(z==="asc"?"desc":"asc")}))))},pt={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"},Qe=u(7939),Ne=Object.defineProperty,le=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,j=(z,St,fe)=>St in z?Ne(z,St,{enumerable:!0,configurable:!0,writable:!0,value:fe}):z[St]=fe,P=(z,St)=>{for(var fe in St||(St={}))Pe.call(St,fe)&&j(z,fe,St[fe]);if(le)for(var fe of le(St))Ge.call(St,fe)&&j(z,fe,St[fe]);return z},_e=(z,St)=>{var fe={};for(var Kt in z)Pe.call(z,Kt)&&St.indexOf(Kt)<0&&(fe[Kt]=z[Kt]);if(z!=null&&le)for(var Kt of le(z))St.indexOf(Kt)<0&&Ge.call(z,Kt)&&(fe[Kt]=z[Kt]);return fe},Ie=(z,St,fe)=>new Promise((Kt,dn)=>{var Bt=M=>{try{we(fe.next(M))}catch(Ct){dn(Ct)}},J=M=>{try{we(fe.throw(M))}catch(Ct){dn(Ct)}},we=M=>M.done?Kt(M.value):Promise.resolve(M.value).then(Bt,J);we((fe=fe.apply(z,St)).next())}),ze=z=>{var St=z,{className:fe,style:Kt,children:dn,loading:Bt=!1,openLoading:J,onClick:we=()=>{},size:M="middle",shape:Ct="round"}=St,ot=_e(St,["className","style","children","loading","openLoading","onClick","size","shape"]);const[dt,$t]=(0,i.useState)(!1);return i.createElement(Qe.ZP,P({onClick:(0,Y.throttle)(Ft=>Ie(void 0,null,function*(){J&&$t(!0);try{yield we(Ft)}catch(Mt){console.log("error",Mt)}J&&$t(!1)}),2e3,{leading:!0,trailing:!1}),className:W()(pt.btn,pt[`${M}-${Ct}`],fe),style:Kt,size:M,shape:Ct,loading:dt||Bt},ot),dn)},Ue={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"},de=({className:z,style:St,children:fe=null,onClick:Kt,title:dn})=>i.createElement("div",{className:W()(Ue.head,z),style:St},i.createElement("span",{className:"primary-hover",onClick:Kt},i.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),i.createElement("b",{title:dn},dn),i.createElement("div",{className:Ue.node},fe)),xe={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"},_t=({confirmShow:z=!0,confirmTitle:St,confirmClick:fe,cancelShow:Kt=!0,cancelTitle:dn,cancelClick:Bt,className:J,style:we,confirmLoading:M=!1})=>i.createElement("div",{className:W()(xe.btns,J),style:we},z&&i.createElement(Qe.ZP,{loading:M,onClick:fe,type:"primary",className:xe.confirm},St),Kt&&i.createElement(Qe.ZP,{onClick:Bt,className:xe.cancel},dn)),Pt={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"},mt=({className:z,style:St={},LeftContent:fe,children:Kt,RightContent:dn})=>i.createElement("div",{className:W()(Pt.fixedBottom,z),style:St},i.createElement("div",{className:Pt.wrap},i.createElement("div",{className:Pt.left},fe),i.createElement("div",{className:Pt.center},Kt),i.createElement("div",{className:Pt.right},dn))),Vt={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"},De=({className:z,style:St={},dataSource:fe=[]})=>i.createElement("div",{className:W()(Vt.crumbs,z),style:St},fe.map((Kt,dn)=>dn<fe.length-1?i.createElement(i.Fragment,{key:dn},Kt.path||Kt.onClick?i.createElement("span",{className:Vt.hover,onClick:Kt!=null&&Kt.onClick?Kt.onClick:()=>ct.history.push(Kt.path)},Kt.name):i.createElement("span",null,Kt.name),i.createElement("span",null,"\xA0",">","\xA0")):i.createElement("span",{key:dn,style:{color:"#5F6368"}},Kt.name))),gt=u(11938),E=Object.defineProperty,S=Object.defineProperties,je=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,rt=(z,St,fe)=>St in z?E(z,St,{enumerable:!0,configurable:!0,writable:!0,value:fe}):z[St]=fe,st=(z,St)=>{for(var fe in St||(St={}))Ce.call(St,fe)&&rt(z,fe,St[fe]);if(G)for(var fe of G(St))en.call(St,fe)&&rt(z,fe,St[fe]);return z},xt=(z,St)=>S(z,je(St)),pe=(z,St)=>{var fe={};for(var Kt in z)Ce.call(z,Kt)&&St.indexOf(Kt)<0&&(fe[Kt]=z[Kt]);if(z!=null&&G)for(var Kt of G(z))St.indexOf(Kt)<0&&en.call(z,Kt)&&(fe[Kt]=z[Kt]);return fe};const{Countdown:Ee}=gt.default;var Ze=z=>{var St=z,{onChange:fe}=St,Kt=pe(St,["onChange"]);const[dn,Bt]=(0,i.useState)(null);(0,i.useEffect)(()=>{typeof dn=="number"&&dn>=0&&fe(dn)},[dn]);const J=we=>{const M=Math.floor(we/1e3);Bt(M)};return i.createElement(Ee,xt(st({},Kt),{onChange:J}))}},70285:function($n,Rt,u){"use strict";u.r(Rt),u.d(Rt,{default:function(){return E}});var i=u(59301),K=u(44283),L=u(35883),he=u(66649),Z=u.n(he),g=u(75727),W=u(7939),Y=u(6767),l=u(62957),x=u(93041),N=u(62673),y=u(77019),T=u(5269),A=u(82326),$=u(37568),H=u(31691),X=u(70858),V=u(84022),R=u(25399),Q=u(14185),O=u(49317),I={flex_box_center:"flex_box_center___OrR9_",flex_space_between:"flex_space_between___MJLUJ",flex_box_vertical_center:"flex_box_vertical_center___nb0jX",flex_box_center_end:"flex_box_center_end___SMTBe",flex_box_column:"flex_box_column___Utap_",wrap:"wrap___Pp5cX",addQuestion:"addQuestion___LsICJ",content:"content___pWPew",left:"left___axtqk",filterPoint:"filterPoint___rCDO_",filterType:"filterType___NeU0D",btnWarp:"btnWarp___dKZiG",btn:"btn___TqjCT",count:"count___OntqW",btnActive:"btnActive___l_zfx",fold:"fold___KAWcj",action:"action___zMEjv",filterOrigin:"filterOrigin___DneuH",control:"control___qchb1",search:"search___Yb8rf",searchIcon:"searchIcon___ybtbn",table:"table___uHpVy",tabWarp:"tabWarp___Pi38U",customTable:"customTable___WYwKK","btn-style-1":"btn-style-1___Knznb","btn-style-2":"btn-style-2___fEs_r","btn-style-3":"btn-style-3___CeM25",right:"right___ZJhZN",statistics:"statistics___cjSkW",title:"title___P79dp",statisticItem:"statisticItem___qmDRE",rate:"rate___H3sZf",dataName:"dataName___N7Uqb",sort:"sort___N1oiD",rankHeader:"rankHeader___LGNPx",rankIcon:"rankIcon___hbm2T",li:"li___vVOqz",myRecord:"myRecord___qv6iJ",recordPrefix:"recordPrefix____bO3_",mine:"mine___fhCrG",avatar:"avatar___vwT8k",nickname:"nickname___QA_sN",myRank:"myRank___QUd2y",questionNumber:"questionNumber___j4tJF",titleWarp:"titleWarp___Hhoy_",hov:"hov___L_H5a",statusText:"statusText___okgdj",hovBtn:"hovBtn___reyI4",tag:"tag___zifqR",problemsclose:"problemsclose___cfp5y",imgsrc:"imgsrc___E905q",sendModal:"sendModal___jrx6y",bottom:"bottom___pKnLQ",line:"line___kNxnj",del:"del___kXkXv"},ue=u(15267),Se=Object.defineProperty,me=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,ke=(S,je,G)=>je in S?Se(S,je,{enumerable:!0,configurable:!0,writable:!0,value:G}):S[je]=G,We=(S,je)=>{for(var G in je||(je={}))Ke.call(je,G)&&ke(S,G,je[G]);if(me)for(var G of me(je))Je.call(je,G)&&ke(S,G,je[G]);return S};const oe=S=>React.createElement("svg",We({width:14,height:10,xmlns:"http://www.w3.org/2000/svg"},S),React.createElement("title",null,"\u89C6\u9891"),React.createElement("g",{fill:"#C1E2FF",fillRule:"nonzero"},React.createElement("path",{d:"M7.836 9.913H2.297c-.593.072-1.185-.145-1.624-.596a2.444 2.444 0 0 1-.666-1.759v-5.17A2.47 2.47 0 0 1 .679.636c.437-.45 1.025-.671 1.617-.608h5.592c.589-.072 1.176.148 1.607.603.43.454.661 1.096.63 1.757v5.17a2.443 2.443 0 0 1-.664 1.759c-.44.451-1.032.668-1.625.596ZM2.297 1.44c-.468 0-1.026.165-1.026.948v5.17c0 .258 0 .942 1.026.942h5.54c1.024 0 1.024-.684 1.024-.942v-5.17c0-.47-.116-.948-.973-.948h-5.59Z"}),React.createElement("path",{d:"M12.476 9.207a1.781 1.781 0 0 1-1.043-.382L8.86 6.93V3.003l2.575-1.891a1.78 1.78 0 0 1 1.04-.379c.367-.034.73.102 1.003.377.274.275.433.664.44 1.075v5.57c-.007.411-.166.8-.44 1.075a1.248 1.248 0 0 1-1.003.377Zm-2.35-3.036 2.01 1.48c.1.082.218.131.34.143a.29.29 0 0 0 .186-.045l-.007-5.564a.315.315 0 0 0-.179-.04.64.64 0 0 0-.339.144l-2.012 1.475v2.407Zm-5.06.212c-.698 0-1.264-.633-1.264-1.412 0-.78.566-1.411 1.265-1.412.698 0 1.264.632 1.264 1.411 0 .78-.567 1.411-1.265 1.412Z"})));var k="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNNy44MzYgOS45MTNIMi4yOTdjLS41OTMuMDcyLTEuMTg1LS4xNDUtMS42MjQtLjU5NmEyLjQ0NCAyLjQ0NCAwIDAgMS0uNjY2LTEuNzU5di01LjE3QTIuNDcgMi40NyAwIDAgMSAuNjc5LjYzNmMuNDM3LS40NSAxLjAyNS0uNjcxIDEuNjE3LS42MDhoNS41OTJjLjU4OS0uMDcyIDEuMTc2LjE0OCAxLjYwNy42MDMuNDMuNDU0LjY2MSAxLjA5Ni42MyAxLjc1N3Y1LjE3YTIuNDQzIDIuNDQzIDAgMCAxLS42NjQgMS43NTljLS40NC40NTEtMS4wMzIuNjY4LTEuNjI1LjU5NlpNMi4yOTcgMS40NGMtLjQ2OCAwLTEuMDI2LjE2NS0xLjAyNi45NDh2NS4xN2MwIC4yNTggMCAuOTQyIDEuMDI2Ljk0Mmg1LjU0YzEuMDI0IDAgMS4wMjQtLjY4NCAxLjAyNC0uOTQydi01LjE3YzAtLjQ3LS4xMTYtLjk0OC0uOTczLS45NDhoLTUuNTlaIi8+PHBhdGggZD0iTTEyLjQ3NiA5LjIwN2ExLjc4MSAxLjc4MSAwIDAgMS0xLjA0My0uMzgyTDguODYgNi45M1YzLjAwM2wyLjU3NS0xLjg5MWExLjc4IDEuNzggMCAwIDEgMS4wNC0uMzc5Yy4zNjctLjAzNC43My4xMDIgMS4wMDMuMzc3LjI3NC4yNzUuNDMzLjY2NC40NCAxLjA3NXY1LjU3Yy0uMDA3LjQxMS0uMTY2LjgtLjQ0IDEuMDc1YTEuMjQ4IDEuMjQ4IDAgMCAxLTEuMDAzLjM3N1ptLTIuMzUtMy4wMzYgMi4wMSAxLjQ4Yy4xLjA4Mi4yMTguMTMxLjM0LjE0M2EuMjkuMjkgMCAwIDAgLjE4Ni0uMDQ1bC0uMDA3LTUuNTY0YS4zMTUuMzE1IDAgMCAwLS4xNzktLjA0LjY0LjY0IDAgMCAwLS4zMzkuMTQ0bC0yLjAxMiAxLjQ3NXYyLjQwN1ptLTUuMDYuMjEyYy0uNjk4IDAtMS4yNjQtLjYzMy0xLjI2NC0xLjQxMiAwLS43OC41NjYtMS40MTEgMS4yNjUtMS40MTIuNjk4IDAgMS4yNjQuNjMyIDEuMjY0IDEuNDExIDAgLjc4LS41NjcgMS40MTEtMS4yNjUgMS40MTJaIi8+PC9nPjwvc3ZnPg==",_="data:image/png;base64,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",ee=u(70467),ne=u(78267),se=u.n(ne),w=u(76406),D="data:image/png;base64,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",ce=u(88627),Oe=u(28284),ct=u(79939),Tt=u(53420),Ae=u(31709),qe={flex_box_center:"flex_box_center___bce7B",flex_space_between:"flex_space_between____RQOw",flex_box_vertical_center:"flex_box_vertical_center___AjElL",flex_box_center_end:"flex_box_center_end___ygYIN",flex_box_column:"flex_box_column___lF_tQ",scoremodal:"scoremodal___rmaM8",selectWrapper:"selectWrapper___mvLB7",selectWrappers:"selectWrappers___eCA2w",allqingchu:"allqingchu___qrQxW",title:"title___uaw5Z",score:"score___uJAQp",close:"close___uQVq5",content:"content___JN0bk",items:"items___foPGY",bottom:"bottom___h0Pda",yes:"yes___Et867",no:"no___lWWYt",titlecount:"titlecount___MgcDd",add:"add___NJkmt",search:"search___lc68N",searchIcon:"searchIcon___BUJdX",tabWrap:"tabWrap___KEQVE",previewModal:"previewModal___i8Vh9",q_title:"q_title___k3hA1"},ht=u(44192),tt={flex_box_center:"flex_box_center___IzcTw",flex_space_between:"flex_space_between___TfxiX",flex_box_vertical_center:"flex_box_vertical_center___nDt60",flex_box_center_end:"flex_box_center_end___vHxrY",flex_box_column:"flex_box_column___N9hFV",warp:"warp___CY8df",shixunbutton:"shixunbutton___tmPbr",redio:"redio___mNtYw",redioitem:"redioitem___N2pTb",redioitemyes:"redioitemyes___ooLYK",title:"title___r3t31",titleyes:"titleyes___JiOuB",yestag:"yestag___Yj1nT",qcount:"qcount___b_Lg3",score:"score___Iq_OQ",qtitle:"qtitle___E0xrA",checkbox:"checkbox___p5WZq",checkboxitem:"checkboxitem___Kja1N",checkboxitemyes:"checkboxitemyes___zCxhF",bottom:"bottom___Dg53A",bottomitem:"bottomitem___mx8gr",left:"left___GO9h4",right:"right___IIyn8",completion:"completion___puFVe",content:"content___QCTZ8",items:"items___DN6om",simple:"simple___CjHXs",shixun:"shixun___I_Hrz",combination:"combination___xkm7F",program:"program___FiUNV"},Fe=u(24334);const jt=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var cn=({qitem:S})=>{var je,G,Ce,en,rt,st,xt,pe,Ee,nt;return i.createElement("div",{className:tt.warp},i.createElement("div",{className:tt.mainPart},i.createElement("div",{className:tt.qcount},(S==null?void 0:S.question_type)===8&&i.createElement(L.Z,{className:tt.content,showProgramFill:!0,value:(je=S==null?void 0:S.program_attr)==null?void 0:je.description}),(S==null?void 0:S.question_type)!=8&&i.createElement(L.Z,{className:tt.qtitle,value:(S==null?void 0:S.name)||(S==null?void 0:S.title)})),((S==null?void 0:S.question_type)===0||(S==null?void 0:S.question_type)===2)&&i.createElement("div",null,(G=S==null?void 0:S.choices)==null?void 0:G.map((Ze,z)=>i.createElement("div",{className:tt.redio},!(Ze!=null&&Ze.is_answer)&&i.createElement("span",{className:tt.redioitem}),(Ze==null?void 0:Ze.is_answer)&&i.createElement("i",{className:`${tt.redioitemyes} icon-duigou1`}),i.createElement(L.Z,{className:Ze!=null&&Ze.is_answer?tt.titleyes:tt.title,value:jt[z]+(Ze==null?void 0:Ze.choice_text)}),(Ze==null?void 0:Ze.is_answer)&&i.createElement("div",{className:tt.yestag},"\u6B63\u786E\u7B54\u6848")))),(S==null?void 0:S.question_type)===1&&i.createElement("div",null,(Ce=S==null?void 0:S.choices)==null?void 0:Ce.map((Ze,z)=>i.createElement("div",{className:tt.checkbox},!(Ze!=null&&Ze.is_answer)&&i.createElement("span",{className:tt.checkboxitem}),(Ze==null?void 0:Ze.is_answer)&&i.createElement("i",{className:`${tt.checkboxitemyes} icon-duigou1`}),i.createElement(L.Z,{className:Ze!=null&&Ze.is_answer?tt.titleyes:tt.title,value:jt[z]+(Ze==null?void 0:Ze.choice_text)}),(Ze==null?void 0:Ze.is_answer)&&i.createElement("div",{className:tt.yestag},"\u6B63\u786E\u7B54\u6848")))),(S==null?void 0:S.question_type)===3&&i.createElement("div",{className:tt.completion},(en=S==null?void 0:S.standard_answer)==null?void 0:en.map((Ze,z)=>{var St;return i.createElement("div",{style:{display:"flex"}},i.createElement("span",{className:tt.title},"\u586B\u7A7A\u9879",z+1),i.createElement("div",{className:tt.content},(St=Ze==null?void 0:Ze.answer_text)==null?void 0:St.map((fe,Kt)=>i.createElement("div",{className:tt.items},fe))))})),(S==null?void 0:S.question_type)===4&&i.createElement("div",{className:tt.simple},i.createElement("div",{className:tt.title},"\u53C2\u8003\u7B54\u6848"),i.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(rt=S==null?void 0:S.answer_texts)!=null&&rt[0]?i.createElement(L.Z,{className:tt.content,value:(st=S==null?void 0:S.answer_texts)==null?void 0:st[0]}):i.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(S==null?void 0:S.question_type)===5&&((xt=S==null?void 0:S.challenge_names)==null?void 0:xt.map((Ze,z)=>i.createElement("div",{className:tt.shixun},i.createElement("span",{className:tt.qtitle},i.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,w.EM)(z+1),"\u9898"),Ze)))),(S==null?void 0:S.question_type)===6&&i.createElement("div",{className:tt.program},i.createElement(L.Z,{className:tt.content,value:((pe=S==null?void 0:S.program_attr)==null?void 0:pe.description)||"- -"})),(S==null?void 0:S.question_type)===7&&((Ee=S==null?void 0:S.sub_item_banks)==null?void 0:Ee.map((Ze,z)=>{var St,fe,Kt,dn,Bt;return i.createElement("div",null,i.createElement("div",{className:tt.combination},i.createElement("span",{className:tt.qtitle},Ze==null?void 0:Ze.name)),i.createElement("div",{className:tt.warp,style:{padding:"0px",paddingTop:20}},i.createElement("div",null,((Ze==null?void 0:Ze.item_type)=="SINGLE"||(Ze==null?void 0:Ze.item_type)=="JUDGMENT")&&((St=Ze==null?void 0:Ze.choices)==null?void 0:St.map((J,we)=>i.createElement("div",{className:tt.redio},!(J!=null&&J.is_answer)&&i.createElement("span",{className:tt.redioitem}),(J==null?void 0:J.is_answer)&&i.createElement("i",{className:`${tt.redioitemyes} icon-duigou1`}),i.createElement(L.Z,{className:J!=null&&J.is_answer?tt.titleyes:tt.title,value:jt[we]+(J==null?void 0:J.choice_text)}),(J==null?void 0:J.is_answer)&&i.createElement("div",{className:tt.yestag},"\u6B63\u786E\u7B54\u6848")))),(Ze==null?void 0:Ze.item_type)=="MULTIPLE"&&((fe=Ze==null?void 0:Ze.choices)==null?void 0:fe.map((J,we)=>i.createElement("div",{className:tt.checkbox},!(J!=null&&J.is_answer)&&i.createElement("span",{className:tt.checkboxitem}),(J==null?void 0:J.is_answer)&&i.createElement("i",{className:`${tt.checkboxitemyes} icon-duigou1`}),i.createElement(L.Z,{className:J!=null&&J.is_answer?tt.titleyes:tt.title,value:jt[we]+(J==null?void 0:J.choice_text)}),(J==null?void 0:J.is_answer)&&i.createElement("div",{className:tt.yestag},"\u6B63\u786E\u7B54\u6848")))),(Ze==null?void 0:Ze.item_type)=="COMPLETION"&&i.createElement("div",{className:tt.completion},(Kt=Ze==null?void 0:Ze.standard_answer)==null?void 0:Kt.map((J,we)=>{var M;return i.createElement("div",{style:{display:"flex"}},i.createElement("span",{className:tt.title},"\u586B\u7A7A\u9879",we+1),i.createElement("div",{className:tt.content},(M=J==null?void 0:J.answer_text)==null?void 0:M.map((Ct,ot)=>i.createElement("div",{className:tt.items},Ct))))})),(Ze==null?void 0:Ze.item_type)=="SUBJECTIVE"&&i.createElement("div",{className:tt.simple},i.createElement("div",{className:tt.title},"\u53C2\u8003\u7B54\u6848"),i.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(dn=Ze==null?void 0:Ze.answer_texts)!=null&&dn[0]?i.createElement(L.Z,{className:tt.content,value:(Bt=Ze==null?void 0:Ze.answer_texts)==null?void 0:Bt[0]}):i.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(S==null?void 0:S.question_type)===8&&i.createElement("div",null,i.createElement(L.Z,{disabledFill:!0,className:tt.content,showProgramFill:!0,value:Fe.Base64.decode(((nt=S==null?void 0:S.program_attr)==null?void 0:nt.code)||"")})),(S==null?void 0:S.question_type)===5&&i.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},i.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},i.createElement("div",{style:{marginRight:30}},i.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),i.createElement("span",{style:{color:"#000000"}},(S==null?void 0:S.author_name)||"- -")),i.createElement("div",{style:{marginRight:30}},i.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),i.createElement("span",{style:{color:"#000000"}},(S==null?void 0:S.author_school_name)||"- -")),i.createElement("div",{style:{marginRight:30}},i.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),i.createElement("span",{style:{color:"#000000"}},(S==null?void 0:S.study_count)||"0"))),i.createElement("a",{className:tt.shixunbutton,href:`/shixuns/${S==null?void 0:S.identifier}/challenges?exercise=true`,target:"_blank"},i.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((S==null?void 0:S.question_type)<=4||[6,8].includes(S==null?void 0:S.question_type))&&i.createElement("div",{className:tt.bottom},i.createElement("div",{className:tt.bottomitem},i.createElement("span",{className:tt.left},"\u89E3\u6790"),i.createElement("span",{className:tt.right},S!=null&&S.analysis?i.createElement(L.Z,{value:S==null?void 0:S.analysis}):i.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),i.createElement("div",{className:tt.bottomitem},i.createElement("span",{className:tt.left},"\u96BE\u5EA6"),i.createElement("span",{className:tt.right},(S==null?void 0:S.difficulty)===1?"\u7B80\u5355":(S==null?void 0:S.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),i.createElement("div",{className:tt.bottomitem},i.createElement("span",{className:tt.left},"\u77E5\u8BC6\u70B9"),i.createElement("span",{className:tt.right},S!=null&&S.tag_discipline?S==null?void 0:S.tag_discipline:i.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},vt=u(77264),pt=u(59435),Qe=u(61485),Ne=u(44240),le=u(46861),Pe=u(59301),Ge=Object.defineProperty,j=Object.defineProperties,P=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,ze=(S,je,G)=>je in S?Ge(S,je,{enumerable:!0,configurable:!0,writable:!0,value:G}):S[je]=G,Ue=(S,je)=>{for(var G in je||(je={}))Ie.call(je,G)&&ze(S,G,je[G]);if(_e)for(var G of _e(je))Te.call(je,G)&&ze(S,G,je[G]);return S},ft=(S,je)=>j(S,P(je)),de=(S,je,G)=>new Promise((Ce,en)=>{var rt=pe=>{try{xt(G.next(pe))}catch(Ee){en(Ee)}},st=pe=>{try{xt(G.throw(pe))}catch(Ee){en(Ee)}},xt=pe=>pe.done?Ce(pe.value):Promise.resolve(pe.value).then(rt,st);xt((G=G.apply(S,je)).next())});const xe=({setScoreShow:S,ScoreShow:je,onOk:G,isshixuns:Ce,isloadings:en,dispatch:rt,isIntelligentAssistant:st=!1,ispptModal:xt=!1,isChangeQuestion:pe=!1,newExercisePaper:Ee,shixunsDetail:nt})=>{var Ze,z,St;let[fe,Kt]=(0,i.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:"PROGRAM",per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:st,is_smart_plan:xt,group_id:[]}),[dn,Bt]=(0,i.useState)([]),[J,we]=(0,i.useState)([]),[M,Ct]=(0,i.useState)([]),[ot,dt]=(0,i.useState)([]);const[$t,Ft]=(0,i.useState)(!1),[Mt]=Oe.default.useForm(),[ie,ve]=(0,i.useState)(),[At,Be]=(0,i.useState)(!1);let[Le,ae]=(0,i.useState)(Ce);const[Re,$e]=(0,i.useState)([]),[He,ut]=(0,i.useState)(0),[rn,on]=(0,i.useState)(!0),[Ve,lt]=(0,i.useState)([]),[wt,Qt]=(0,i.useState)([]),Yt=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],ye=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6}];let[at,Lt]=(0,i.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const Dt=(0,i.useRef)(new Set),zt=(0,i.useRef)(new Set),an=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],un=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],sn=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[vn,En]=(0,i.useState)(!1),Rn=()=>{Mt.resetFields(),Le=!1,ae(!1),En(!1),Mt.submit()};(0,i.useEffect)(()=>{var qt,tn,yn,Zn,Ht,Un,er,lr,_r,Ar;(((yn=(tn=(qt=Ee==null?void 0:Ee.editData)==null?void 0:qt.exercise)==null?void 0:tn.exist_item_bank_ids)==null?void 0:yn.length)>0||((Un=(Ht=(Zn=Ee==null?void 0:Ee.editData)==null?void 0:Zn.exercise)==null?void 0:Ht.exist_item_bank_shixun_ids)==null?void 0:Un.length)>0)&&Qt([...(lr=(er=Ee==null?void 0:Ee.editData)==null?void 0:er.exercise)==null?void 0:lr.exist_item_bank_ids,...(Ar=(_r=Ee==null?void 0:Ee.editData)==null?void 0:_r.exercise)==null?void 0:Ar.exist_item_bank_shixun_ids])},[(z=(Ze=Ee==null?void 0:Ee.editData)==null?void 0:Ze.exercise)==null?void 0:z.exist_item_bank_ids]),(0,i.useEffect)(()=>{je&&(Mt.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),rn&&Le&&(Mt.setFieldsValue({item_type:"SHIXUN"}),fe.item_type="SHIXUN",Kt(Ue({},fe)),on(!1)),bn(fe),Cn(),Bn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[je]),(0,i.useEffect)(()=>{He>0&&setTimeout(()=>{ut(0)},2e3)},[He]);function bn(qt){return de(this,null,function*(){var tn,yn,Zn;if(Ft(!0),Kt(Ue({},qt)),(M==null?void 0:M.length)<=0&&qt.type==="5"){dt([]),Ft(!1);return}console.log("----",M,Re);let Ht=qt.type==="5"?M==null?void 0:M.filter(lr=>!Re.includes(lr)):null,Un=qt.type==="5"?M==null?void 0:M.filter(lr=>Re.includes(lr)):null,er=yield(0,O.ZP)("/api/item_banks.json",{method:"get",params:ft(Ue({},qt),{discipline_id:((tn=qt==null?void 0:qt.courseid)==null?void 0:tn[0])||null,sub_discipline_id:((yn=qt==null?void 0:qt.courseid)==null?void 0:yn[1])||null,ids:Ht,shixun_ids:Un,include_shixuns:!st,group_id:((Zn=qt.group_id)==null?void 0:Zn.map(lr=>lr==null?void 0:lr.value))||null,keyword:qt.keyword?encodeURIComponent(qt.keyword):qt.keyword,type:qt.type==="5"?null:qt.type,clazz:qt.type==="3"?"ItemBanksGroup":null})});dt(er),Ft(!1)})}function Cn(){return de(this,null,function*(){let qt=yield(0,O.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:fe.type==="5"?null:fe.type,clazz:"ItemBanksGroup"}});Bt((0,ht.L)(qt==null?void 0:qt.disciplines))})}function Bn(qt){return de(this,null,function*(){var tn;let yn=yield(0,O.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:qt}),Zn=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(tn=yn==null?void 0:yn.data)==null?void 0:tn.map(Ht=>({title:Ht.name,id:Ht.id,pid:Ht.id,value:Ht.id,key:Ht.id,isLeaf:!Ht.have_child}))}];lt(Zn)})}function Pn(qt){return de(this,null,function*(){var tn,yn,Zn,Ht;Ft(!0);let Un=(tn=qt.list)==null?void 0:tn.filter(_r=>!Re.includes(_r)),er=(yn=qt.list)==null?void 0:yn.filter(_r=>Re.includes(_r));if(Un.length===0&&er.length===0){Ft(!1),dt([]);return}let lr=yield(0,O.ZP)("/api/item_banks.json",{method:"get",params:ft(Ue({},qt),{discipline_id:((Zn=qt==null?void 0:qt.courseid)==null?void 0:Zn[0])||null,sub_discipline_id:((Ht=qt==null?void 0:qt.courseid)==null?void 0:Ht[1])||null,ids:Un,shixun_ids:er,type:qt.type==="5"?null:qt.type,clazz:qt.type==="3"?"ItemBanksGroup":null})});Ft(!1),dt(lr)})}const ir=qt=>de(void 0,null,function*(){const tn=yield rt({type:"shixunsDetail/release",payload:{id:qt}});let yn=tn==null?void 0:tn.tag_position,Zn=(tn==null?void 0:tn.evaluation_set_position)||[],Ht=tn.status;return Ht===0?(Y.ZP.success("\u53D1\u5E03\u6210\u529F"),bn(fe),!0):(Ht===2?Y.ZP.error(`\u7B2C${Zn.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Ht===3?Y.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${yn.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):Y.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),In=qt=>(qt==null?void 0:qt.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",zn=(qt,tn,yn)=>qt.map(Zn=>Zn.key===tn?Ue(Ue({},Zn),yn):Zn.children?ft(Ue({},Zn),{children:zn(Zn.children,tn,yn)}):Zn),Yn=qt=>de(void 0,null,function*(){const{key:tn}=qt;let yn=fe.type;const Zn=yield(0,le.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(tn),type:yn}),{data:Ht,total_count:Un}=Zn||{};Un>0&<(er=>zn(er,tn,{children:Ht.map(lr=>({title:lr.name,id:lr.id,pid:lr.id,value:lr.id,key:lr.id,isLeaf:!lr.have_child}))}))});function tr(qt){qt==="0"&&(at.wcjd=Ue({},fe)),qt==="5"&&(at.yx=Ue({},fe)),Lt(Ue({},at))}function Jn(){fe.type==="1"&&(fe=at.gg),fe.type==="2"&&(fe=at.scj),fe.type==="3"&&(fe=at.ttgx),fe.type==="0"&&(fe=at.wcjd),fe.type==="5"&&(fe=at.yx),Le=!1,ae(!1),Mt.setFieldsValue(Ue({},fe)),Kt(Ue({},fe)),bn(Ue({},fe))}return Pe.createElement("div",null,Pe.createElement(l.default,{title:!1,footer:!1,open:je,width:1200,centered:!0,className:qe.scoremodal,onCancel:()=>{S(!1)}},Pe.createElement("div",{style:{display:"flex",alignItems:"center"}},Pe.createElement("div",{className:qe.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),Pe.createElement(H.default,{className:qe.tabWrap,activeKey:fe.type,onChange:qt=>{fe.show_all_share=null,qt==="0"&&Bn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),tr(fe.type),fe.type=qt,En(!1),fe.type==="5"&&(Le=!1,ae(!1)),Jn(),Cn()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:Pe.createElement("div",null,"\u5DF2\u9009",M.length>0&&Pe.createElement("span",{className:qe.titlecount},M.length),He>0&&Pe.createElement("span",{className:qe.add},"+",He)),key:"5"}]}),Pe.createElement(Oe.default,{layout:"inline",form:Mt,onValuesChange:(qt,tn)=>{const yn=Object.values(tn).some(Ht=>Ht!==null&&Ht!==""&&Ht!==void 0),Zn=tn.keyword==="";En(yn||!Zn),fe.page=1,qt!=null&&qt.courseid&&Mt.setFieldsValue({tag_discipline_id:""}),ae(!1),!(qt.keyword||qt.keyword==="")&&Mt.submit()},onFinish:qt=>{var tn;fe.type==="3"&&(!qt.group_id||((tn=qt==null?void 0:qt.group_id)==null?void 0:tn.length)===0)?fe.show_all_share=!0:fe.show_all_share=null,Kt(Ue(Ue({},fe),qt)),bn(Ue(Ue({},fe),qt))}},Pe.createElement(Oe.default.Item,{name:"courseid"},Pe.createElement(ct.Z,{className:qe.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:dn})),!Le&&Pe.createElement(Oe.default.Item,{name:"tag_discipline_id"},Pe.createElement(A.default,{className:qe.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(St=ot==null?void 0:ot.tag_disciplines)==null?void 0:St.map(qt=>Pe.createElement(A.default.Option,{key:qt.id},qt.name)))),Pe.createElement(Oe.default.Item,{name:Le?"diff":"difficulty"},Pe.createElement(A.default,{className:qe.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},an.map(qt=>Pe.createElement(A.default.Option,{key:qt.value},qt.name)))),Le&&Pe.createElement(Oe.default.Item,{name:"shixun_publish_status"},Pe.createElement(A.default,{className:qe.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},sn.map(qt=>Pe.createElement(A.default.Option,{key:qt.value},qt.name)))),(fe.type==="3"||fe.type==="0")&&!Le&&Pe.createElement(Oe.default.Item,{name:"group_id"},Pe.createElement(Tt.default,{treeDataSimpleMode:!0,style:{width:118},className:qe.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(qt,tn)=>tn.title.toUpperCase().indexOf(qt.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Yn,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Ve})),vn&&Pe.createElement("span",{className:qe.allqingchu,onClick:Rn},Pe.createElement("i",{className:"iconfont icon-guanbi4"}),Pe.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Pe.createElement(Oe.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Pe.createElement($.default.Search,{className:qe.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Pe.createElement("i",{className:`iconfont icon-sousuo9 font14 ${qe.searchIcon}`,onClick:()=>Mt.submit()}),onSearch:qt=>{Mt.submit()}}))),Pe.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Pe.createElement("div",{onClick:()=>{fe.updated_at==="asc"?fe.updated_at="desc":fe.updated_at="asc",Kt(ft(Ue({},fe),{page:1})),bn(ft(Ue({},fe),{page:1}))}}," ",fe.updated_at?Pe.createElement("img",{src:fe.updated_at==="asc"?vt.Z:pt.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Pe.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Pe.createElement("div",{onClick:()=>{fe.quotes==="asc"?fe.quotes="desc":fe.quotes="asc",Kt(ft(Ue({},fe),{page:1})),bn(ft(Ue({},fe),{page:1}))},style:{marginLeft:20}}," ",fe.quotes?Pe.createElement("img",{src:fe.quotes==="asc"?vt.Z:pt.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Pe.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Pe.createElement(X.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(ot==null?void 0:ot.items)||(ot==null?void 0:ot.shixun_list),pagination:!1,loading:$t,rowKey:qt=>qt.id,rowSelection:{type:"checkbox",selectedRowKeys:J,getCheckboxProps:qt=>({disabled:qt==null?void 0:qt.added_to_practice}),onSelect(qt,tn,yn){if(tn)(Le||qt!=null&&qt.challenge_names)&&$e([...Re,qt.id]),we([...J,qt.id]),qt.identifier?Dt.current.add(qt.id):zt.current.add(qt.id),ut(1),Ct([...M,qt.id]);else{qt.identifier?Dt.current.delete(qt.id):zt.current.delete(qt.id);let Zn=M.filter(Ht=>Ht!==qt.id);if(we(Zn),Ct(Zn),Le||qt!=null&&qt.challenge_names){let Ht=Re.filter(Un=>Un!==qt.id);$e([...Ht])}if(fe.type==="5"){Pn(ft(Ue({},fe),{list:[...Zn]}));return}}},onSelectAll(qt,tn,yn){var Zn,Ht;if(qt){const Un=yn.map(lr=>lr.id),er=(Ht=yn==null?void 0:yn.filter(lr=>lr==null?void 0:lr.challenge_names))==null?void 0:Ht.map(lr=>lr.id);$e([...Re,...er]),we([...J,...Un]),Ct([...M,...Un]);for(const lr of yn)lr.identifier?Dt.current.add(lr.id):zt.current.add(lr.id)}else{const Un=yn.map(Ar=>Ar.id),er=J.filter(Ar=>!Un.some(Sr=>Sr===Ar)),lr=(Zn=yn==null?void 0:yn.filter(Ar=>Ar==null?void 0:Ar.challenge_names))==null?void 0:Zn.map(Ar=>Ar.id);we([...er]),Ct([...er]);let _r=Re.filter(Ar=>!lr.some(Sr=>Sr===Ar.id));$e([..._r]),fe.type==="5"&&Pn(ft(Ue({},fe),{list:[...er]}));for(const Ar of Un)Ar.identifier?Dt.current.delete(Ar):zt.current.delete(Ar)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(qt,tn,yn)=>{var Zn,Ht;return Pe.createElement(R.Z,{title:In(tn)},Pe.createElement("div",null,Le||tn!=null&&tn.challenge_names?"\u5B9E\u8BAD\u9898":(Ht=(Zn=Yt==null?void 0:Yt.filter(Un=>Un.value===qt))==null?void 0:Zn[0])==null?void 0:Ht.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Le?"30%":"60%",key:"name",render:(qt,tn,yn)=>{var Zn;return Pe.createElement("div",{style:{display:"flex",alignItems:"center"}},Pe.createElement(R.Z,{title:In(tn)},Pe.createElement("div",{className:tn!=null&&tn.high_resources_consume?qe.q_title:""},Pe.createElement(L.Z,{key:1,showLines:1,showTextOnly:!0,value:Le||tn!=null&&tn.challenge_names?tn!=null&&tn.title||qt===null?"--":qt:(tn==null?void 0:tn.item_type)=="BPROGRAM"?(Zn=tn==null?void 0:tn.program_attr)==null?void 0:Zn.description:qt}))),(tn==null?void 0:tn.high_resources_consume)&&Pe.createElement(Ne.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Le,render:(qt,tn,yn)=>{var Zn;return Pe.createElement(R.Z,{title:In(tn)},Pe.createElement("span",null,qt?(Zn=qt==null?void 0:qt.split("\u3001"))==null?void 0:Zn[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Le,render:(qt,tn,yn)=>Pe.createElement(R.Z,{title:In(tn)},Pe.createElement("span",null,qt||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(qt,tn,yn)=>{var Zn,Ht,Un,er;return Pe.createElement(R.Z,{title:In(tn)},Pe.createElement("div",null,Le||tn!=null&&tn.challenge_names?(tn==null?void 0:tn.level)||((Ht=(Zn=an==null?void 0:an.filter(lr=>lr.value===qt))==null?void 0:Zn[0])==null?void 0:Ht.name):(er=(Un=an==null?void 0:an.filter(lr=>lr.value===qt))==null?void 0:Un[0])==null?void 0:er.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Le,render:(qt,tn,yn)=>Pe.createElement(R.Z,{title:In(tn)},Pe.createElement("div",null,qt||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(qt,tn,yn)=>Pe.createElement(R.Z,{title:In(tn)},Pe.createElement("div",null,Le||tn!=null&&tn.challenge_names?(tn==null?void 0:tn.study_count)||(tn==null?void 0:tn.stu_num):qt))},{title:Pe.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Pe.createElement(R.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Pe.createElement(Qe.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Le,render:(qt,tn,yn)=>Pe.createElement(R.Z,{title:In(tn)},Pe.createElement("div",null,qt||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(qt,tn,yn)=>Pe.createElement(R.Z,{title:In(tn)},Pe.createElement("div",{style:{flex:1,textAlign:"start"}},Pe.createElement("a",{onClick:()=>{var Zn,Ht;ve(ft(Ue({},tn),{question_type:Le||tn!=null&&tn.challenge_names?5:(Ht=(Zn=Yt==null?void 0:Yt.filter(Un=>Un.value===(tn==null?void 0:tn.item_type)))==null?void 0:Zn[0])==null?void 0:Ht.question_type})),Be(!0)}},"\u67E5\u770B"),(tn==null?void 0:tn.shixun_tag_num)===1&&Pe.createElement("a",{style:{marginLeft:10},onClick:()=>{l.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Pe.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Pe.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${tn==null?void 0:tn.identifier}/challenges`)}},(tn==null?void 0:tn.shixun_name)||"--"),"\uFF1F"),onOk:()=>de(void 0,null,function*(){if(!ir(tn==null?void 0:tn.identifier))return new Promise((Zn,Ht)=>{Ht()})})})}},"\u53D1\u5E03")))}].filter(qt=>!qt.hidden)}),Pe.createElement(Ae.Z,{current:fe.page,total:(ot==null?void 0:ot.items_count)||(ot==null?void 0:ot.shixuns_count),style:{marginBottom:20},defaultPageSize:fe.per_page,showTotal:qt=>Pe.createElement("span",null,"\u5171\xA0",Pe.createElement("span",{style:{color:"#165DFF"}},qt),"\xA0\u6761\u6570\u636E"),pageSize:fe.per_page,onChange:(qt,tn)=>{fe.page=qt,fe.per_page=tn,Kt(Ue({},fe)),bn(Ue({},fe))}}),Pe.createElement("div",{className:qe.bottom},Pe.createElement(W.ZP,{className:qe.no,onClick:()=>{S(!1)}},"\u53D6\u6D88"),Pe.createElement(W.ZP,{loading:en,style:{width:en&&75},className:qe.yes,onClick:()=>de(void 0,null,function*(){if((M==null?void 0:M.length)<=0){Y.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}G([...zt.current],[...Dt.current],!0,M==null?void 0:M.length)})},"\u786E\u8BA4"))),Pe.createElement(l.default,{open:At,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:qe.previewModal,width:1e3,centered:!0,onCancel:()=>{Be(!1)},onOk:()=>{Be(!1)}},Pe.createElement(cn,{qitem:ie})))};var Ot=(0,K.connect)(({shixunsDetail:S,newExercisePaper:je})=>({shixunsDetail:S,newExercisePaper:je}))(xe),_t=Object.defineProperty,Pt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,Vt=(S,je,G)=>je in S?_t(S,je,{enumerable:!0,configurable:!0,writable:!0,value:G}):S[je]=G,Nt=(S,je)=>{for(var G in je||(je={}))kt.call(je,G)&&Vt(S,G,je[G]);if(Pt)for(var G of Pt(je))mt.call(je,G)&&Vt(S,G,je[G]);return S},De=(S,je,G)=>new Promise((Ce,en)=>{var rt=pe=>{try{xt(G.next(pe))}catch(Ee){en(Ee)}},st=pe=>{try{xt(G.throw(pe))}catch(Ee){en(Ee)}},xt=pe=>pe.done?Ce(pe.value):Promise.resolve(pe.value).then(rt,st);xt((G=G.apply(S,je)).next())});const gt=({globalSetting:S,user:je,dispatch:G})=>{var Ce,en,rt,st,xt,pe,Ee,nt,Ze,z,St,fe,Kt,dn,Bt,J,we,M;const[Ct]=(0,K.useSearchParams)(),ot=(0,K.useLocation)(),dt={page:1,per_page:30,tag_discipline_id:[-1],source_discipline_id:[-1],status:null,difficulty:null,search:"",save_search:"",sort_by:null,sort_direction:null,filter:Ct.get("tab")||"public"},[$t,Ft]=(0,i.useState)(0),[Mt,ie]=(0,i.useState)(0),[ve,At]=(0,i.useState)(0),[Be,Le]=(0,i.useState)([]),[ae,Re]=(0,i.useState)([]),[$e,He]=(0,i.useState)({}),[ut,rn]=(0,i.useState)(!1),[on,Ve]=(0,i.useState)([]),[lt,wt]=(0,i.useState)(!0),[Qt,Yt]=(0,i.useState)(null);let[ye,at]=(0,i.useState)(dt);const Lt=(0,i.useRef)(null),Dt=(0,i.useRef)(null),[zt,an]=(0,i.useState)([]),un=(0,i.useMemo)(()=>["not_reviewed","under_review","review_finished"].includes(ye.filter),[ye.filter]),[sn,vn]=(0,i.useState)(!1),[En,Rn]=(0,i.useState)(!1),[bn,Cn]=(0,i.useState)(""),[Bn,Pn]=(0,i.useState)([]),[ir,In]=(0,i.useState)(!1),[zn,Yn]=(0,i.useState)([]),[tr,Jn]=(0,i.useState)(!1),[qt,tn]=(0,i.useState)(!1),[yn,Zn]=(0,i.useState)(null),Ht=je.userInfo.identity==="teacher",Un=(Jt,On,Gn)=>De(void 0,null,function*(){var ur,xr,jr,wr;Jt.persist(),(xr=(ur=Jt==null?void 0:Jt.target)==null?void 0:ur.style)!=null&&xr.pointerEvents&&(Jt.target.style.pointerEvents="none");const ni=yield(0,O.ZP)(`/api/practices/${On.identifier}/start`,{method:"get"});if((ni==null?void 0:ni.status)===0){if(Gn){(0,w.xg)(`/problems/${ni==null?void 0:ni.identifier}/oj/${On==null?void 0:On.identifier}?tab=3`);return}(0,w.xg)(`/problems/${ni==null?void 0:ni.identifier}/oj/${On==null?void 0:On.identifier}`)}(wr=(jr=Jt==null?void 0:Jt.target)==null?void 0:jr.style)!=null&&wr.pointerEvents&&(Jt.target.style.pointerEvents="auto")});(0,i.useEffect)(()=>{let Jt=Z()().add(0,"days").unix(),On=localStorage.getItem("problemsclose");if(!On){In(!0);return}Jt>parseInt(On)&&In(!0)},[]);const er=["\u672A\u53D1\u5E03","\u5DF2\u516C\u5F00","\u672A\u5BA1\u6838","\u5BA1\u6838\u4E2D","\u672A\u516C\u5F00","\u672A\u901A\u8FC7"],lr=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(Jt,On)=>i.createElement("div",{className:I.titleWarp},(ye==null?void 0:ye.filter)==="mine"?i.createElement("span",{className:I.tag},er[On.practice_status]):null,i.createElement("span",{title:Jt,className:I.hov,onClick:Gn=>Un(Gn,On)},Jt))},(ye==null?void 0:ye.filter)==="public"?{title:"\u9898\u89E3",dataIndex:"solution_count",width:100,sorter:!0,render:(Jt,On)=>i.createElement("span",{style:{display:"flex"}},i.createElement("span",{onClick:Gn=>Un(Gn,On,!0),className:"current"},Jt),(On==null?void 0:On.has_video_solution)&&i.createElement("img",{style:{objectFit:"contain"},className:"ml5",src:k}))}:null,(ye==null?void 0:ye.filter)==="public"?{title:"\u901A\u8FC7\u7387",dataIndex:"pass_ratio",sorter:!0,width:90}:null,{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:Jt=>i.createElement(i.Fragment,null,Jt===1&&i.createElement("span",{className:I["btn-style-1"]},"\u7B80\u5355"),Jt===2&&i.createElement("span",{className:I["btn-style-2"]},"\u9002\u4E2D"),Jt===3&&i.createElement("span",{className:I["btn-style-3"]},"\u56F0\u96BE"))},(ye==null?void 0:ye.filter)==="public"?{title:"\u4EBA\u6570",dataIndex:"user_count",align:"center",sorter:!0,width:80}:null,(ye==null?void 0:ye.filter)==="public"?{title:"\u72B6\u6001",dataIndex:"status",width:94,render:(Jt,On)=>(0,ue.bg)()?i.createElement(i.Fragment,null,Qt===(On==null?void 0:On.identifier)?i.createElement("span",{className:I.hovBtn,onClick:Gn=>Un(Gn,On)},"\u5F00\u542F\u5237\u9898"):i.createElement(i.Fragment,null,Jt===0&&i.createElement("span",{className:I.statusText},"\u672A\u5F00\u542F"),Jt===1&&i.createElement("span",{className:I.statusText},"\u8FDB\u884C\u4E2D"),Jt===2&&i.createElement("span",{className:I.statusText},"\u5DF2\u901A\u8FC7"))):"-"}:null,(ye==null?void 0:ye.filter)!=="public"?{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_disciplines_name",ellipsis:!0,width:200,render:Jt=>i.createElement("span",null,Jt==null?void 0:Jt.join("\u3001"))}:null,(ye==null?void 0:ye.filter)==="all"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:null,(ye==null?void 0:ye.filter)!=="public"?{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",sorter:!0,width:180}:null,(0,ue.Ny)()?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(Jt,On)=>i.createElement(g.Z,{className:"ml10",dropdownRender:()=>Zr(On==null?void 0:On.identifier,On)},i.createElement("span",{style:{cursor:"default"},onClick:Gn=>Gn.preventDefault()},i.createElement("span",null,"\u66F4\u591A"),i.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"})))}:ut&&(ye==null?void 0:ye.filter)!=="public"?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(Jt,On)=>On!=null&&On.is_self&&(On==null?void 0:On.practice_status)!==1?i.createElement(g.Z,{className:"ml10",dropdownRender:()=>Nr(On==null?void 0:On.identifier,On)},i.createElement("span",{style:{cursor:"default"},onClick:Gn=>Gn.preventDefault()},i.createElement("span",null,"\u66F4\u591A"),i.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"}))):"-"}:null].filter(Jt=>!!Jt),_r=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(Jt,On)=>i.createElement("span",{className:I.hov,onClick:Gn=>Un(Gn,On)},Jt)},{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:Jt=>i.createElement(i.Fragment,null,Jt===1&&i.createElement("span",{className:I["btn-style-1"]},"\u7B80\u5355"),Jt===2&&i.createElement("span",{className:I["btn-style-2"]},"\u9002\u4E2D"),Jt===3&&i.createElement("span",{className:I["btn-style-3"]},"\u56F0\u96BE"))},(ye==null?void 0:ye.filter)==="not_reviewed"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",ellipsis:!0,width:100},(ye==null?void 0:ye.filter)==="not_reviewed"?{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"submit_time",width:180}:null,(ye==null?void 0:ye.filter)==="under_review"?{title:"\u5F00\u59CB\u5BA1\u6838\u65F6\u95F4",dataIndex:"start_review_time",width:180}:null,(ye==null?void 0:ye.filter)==="review_finished"?{title:"\u6700\u540E\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",width:180}:null,{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"center",width:120,render:(Jt,On)=>{let Gn;switch(ye==null?void 0:ye.filter){case"under_review":Gn=i.createElement("div",{style:{display:"flex"}},i.createElement(W.ZP,{type:"link",size:"small",onClick:ur=>Un(ur,On)},"\u5BA1\u6838"),i.createElement(W.ZP,{type:"link",style:{color:"#666"},size:"small",onClick:ur=>An({e:ur,record:On,op:"release"})},"\u79FB\u51FA"));break;case"review_finished":Gn=i.createElement(W.ZP,{type:"link",size:"small",onClick:ur=>{vn(!0),Ar(On)}},"\u5BA1\u6838\u8BB0\u5F55");break;default:Gn=i.createElement(W.ZP,{type:"link",block:!0,onClick:ur=>An({e:ur,record:On,op:"claim"})},"\u5F00\u59CB\u5BA1\u6838");break}return Gn}}].filter(Jt=>!!Jt),Ar=Jt=>De(void 0,null,function*(){Pn([]);const On=yield(0,O.ZP)(`/api/practices/${Jt.identifier}/review_list`,{method:"get"});Pn(On==null?void 0:On.reviews_list)}),Sr=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",key:"review_time",render:(Jt,On)=>i.createElement("span",null,Z()(Jt).format("YYYY-MM-DD HH:mm:ss"))},{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",key:"reviewer"},{title:"\u5BA1\u6838\u7ED3\u679C",dataIndex:"status",width:120,key:"status",render:(Jt,On)=>Jt==="5"||Jt===5?i.createElement("div",{style:{display:"flex",alignItems:"center"}},i.createElement("div",{style:{color:"#333333",marginRight:"5px",whiteSpace:"nowrap"}},"\u672A\u901A\u8FC7"),i.createElement("div",{style:{color:"#0152d9",whiteSpace:"nowrap",cursor:"pointer"},onClick:()=>{Cn(On.description),Rn(!0)}},"\u67E5\u770B\u539F\u56E0")):i.createElement("span",null,"\u5DF2\u901A\u8FC7")}];(0,i.useEffect)(()=>{Tn(),Vn(ye)},[]),(0,i.useEffect)(()=>{var Jt;Be.length!==0&&((Jt=Lt==null?void 0:Lt.current)==null?void 0:Jt.clientHeight)>98&&Ft(1)},[Be]),(0,i.useEffect)(()=>{var Jt;ae.length!==0&&((Jt=Dt==null?void 0:Dt.current)==null?void 0:Jt.clientHeight)>98&&ie(1)},[ae]),(0,i.useEffect)(()=>(G({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),()=>{G({type:"globalSetting/onlyShowBackTopToggle",payload:!0})}),[]),(0,i.useEffect)(()=>{var Jt;(document.title==="\u4EBA\u5DE5\u667A\u80FD\u79D1\u7814\u670D\u52A1\u5E73\u53F0"||document.title==="\u9996\u9875"||document.title==="\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0"||(Jt=document.title)!=null&&Jt.includes("img"))&&(document.title="\u5728\u7EBF\u5237\u9898")},[S]),(0,i.useEffect)(()=>(document.body.setAttribute("data-custom","initial"),()=>{document.body.removeAttribute("data-custom")}),[]);const Vn=Jt=>De(void 0,null,function*(){var On,Gn;Jt.search=encodeURIComponent(Jt.search);const ur=se().cloneDeep(Jt);ur.tag_discipline_id=(On=ur.tag_discipline_id)!=null&&On.includes(-1)?[]:ur.tag_discipline_id,ur.source_discipline_id=(Gn=ur.source_discipline_id)!=null&&Gn.includes(-1)?[]:ur.source_discipline_id,console.log(ur,"sendData"),wt(!0),Ve([]);const xr=yield(0,O.ZP)("/api/practices.json",{method:"get",params:ur});an([]),wt(!1),At(xr==null?void 0:xr.practices_count),Ve(xr==null?void 0:xr.practices_list),Yn((xr==null?void 0:xr.recommend_subjects)||[])}),An=Jt=>De(void 0,[Jt],function*({op:On,description:Gn,record:ur,e:xr}){const jr={op:On,description:Gn};wt(!0);const wr=yield(0,O.ZP)(`/api/practices/${ur.identifier}/review`,{method:"post",body:jr});wt(!1),On==="claim"&&(wr.status===0||wr.status==="0")&&Un(xr,ur),Vn(ye)}),pn=Jt=>De(void 0,null,function*(){wt(!0);const On=yield(0,O.ZP)(`/api/practices/${Jt.identifier}/publish`,{method:"post"});wt(!1),Vn(ye)}),Tn=()=>De(void 0,null,function*(){var Jt;const On=yield(0,O.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}}),Gn=yield(0,O.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source",position:"index"}}),ur=yield(0,O.ZP)("/api/mypractices/rank_list",{method:"get",params:{}});if(On!=null&&On.tag_disciplines){const xr=[{id:-1,name:"\u5168\u90E8",count:On==null?void 0:On.totalCount},...On==null?void 0:On.tag_disciplines];Le(xr)}if(Gn!=null&&Gn.tag_disciplines){const xr=[{id:-1,name:"\u5168\u90E8",count:Gn==null?void 0:Gn.totalCount},...Gn==null?void 0:Gn.tag_disciplines];Re(xr)}He(ur||{}),rn((Jt=ur==null?void 0:ur.my_record)==null?void 0:Jt.outsource)}),Xn=(Jt,On)=>{var Gn;ye.page=1;let ur=ye[`${On}_discipline_id`];(Gn=ye[`${On}_discipline_id`])!=null&&Gn.includes(Jt)?ur=ur.filter(xr=>xr!==Jt):ur.push(Jt),Jt===-1?ur=[-1]:(ur=ur.filter(xr=>xr!==-1),ur.length||(ur=[-1])),ye[`${On}_discipline_id`]=ur,at(Nt({},ye)),Vn(ye)},nr=(Jt,On)=>{ye.page=1,ye[On]=typeof Jt=="number"?Jt:null,at(Nt({},ye)),Vn(ye)},gr=Jt=>{ye.page=1,ye.save_search=Jt,at(Nt({},ye))},Er=(Jt,On,Gn)=>{ye.page=Jt==null?void 0:Jt.current,ye.per_page=Jt==null?void 0:Jt.pageSize,Gn!=null&&Gn.order?(ye.sort_by=Gn==null?void 0:Gn.field,ye.sort_direction=(Gn==null?void 0:Gn.order)==="ascend"?"asc":"desc"):(ye.sort_by=null,ye.sort_direction=null),at(Nt({},ye)),Vn(ye)},Fn=Jt=>{ye.page=1,ye.filter=Jt,ye.status=null,ye.practice_status=null,at(Nt({},ye)),Vn(ye)},yr=(Jt,On)=>{if((On==null?void 0:On.length)===0){Y.ZP.warning("\u8BF7\u9009\u62E9\u8BD5\u9898");return}const Gn=()=>De(void 0,null,function*(){const ur=yield(0,O.ZP)("/api/practices/batch_op.json",{method:"post",body:{identifier:On,op:Jt}});if((ur==null?void 0:ur.status)===0){const xr=on.length===1&&ye.page!==1?ye.page-1:ye.page;ye.page=xr,at(Nt({},ye)),Vn(ye)}});if(Jt===-1){l.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5220\u9664\u786E\u8BA4",icon:null,className:"custom-modal-divider",content:"\u5220\u9664\u540E\u9898\u76EE\u5C06\u4E0D\u53EF\u518D\u627E\u56DE\u3002",onOk:Gn});return}Gn()},Ir=i.createElement(x.default,null,(ye==null?void 0:ye.filter)==="public"?i.createElement(x.default.Item,{onClick:()=>yr(0,zt)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171"):[i.createElement(x.default.Item,{key:2,onClick:()=>yr(1,zt)},"\u6279\u91CF\u79FB\u5165\u516C\u5171"),i.createElement(x.default.Item,{key:1,onClick:()=>yr(0,zt)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171")],(0,ue.Ny)()&&i.createElement(x.default.Item,{onClick:()=>Cr()},"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93"),(ye==null?void 0:ye.filter)!=="public"&&i.createElement(x.default.Item,{onClick:()=>yr(-1,zt)},"\u6279\u91CF\u5220\u9664")),Zr=(Jt,On)=>i.createElement(x.default,null,(On==null?void 0:On.practice_status)===1?i.createElement(x.default.Item,{onClick:()=>yr(0,[Jt])},"\u79FB\u51FA\u516C\u5171"):i.createElement(x.default.Item,{onClick:()=>yr(1,[Jt])},"\u79FB\u5165\u516C\u5171"),(ye==null?void 0:ye.filter)==="mine"?i.createElement(x.default.Item,{onClick:()=>pn(On),disabled:![0,4,5].includes(On.practice_status)},[0,4,5].includes(On.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"):null,i.createElement(x.default.Item,{onClick:()=>(0,w.xg)(`/problems/${Jt}/ojedit`)},"\u7F16\u8F91"),(ye==null?void 0:ye.filter)!=="public"&&i.createElement(x.default.Item,{onClick:()=>yr(-1,[Jt])},"\u5220\u9664")),Nr=(Jt,On)=>i.createElement(x.default,null,i.createElement(x.default.Item,{onClick:()=>pn(On),disabled:![0,4,5].includes(On.practice_status)},[0,4,5].includes(On.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"),i.createElement(x.default.Item,{onClick:()=>(0,w.xg)(`/problems/${Jt}/ojedit`)},"\u7F16\u8F91"),i.createElement(x.default.Item,{onClick:()=>yr(-1,[Jt])},"\u5220\u9664")),Lr=Jt=>{an(Jt)},Cr=()=>{if(!zt.length){Y.ZP.warning("\u8BF7\u9009\u62E9\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u7684\u7F16\u7A0B\u5237\u9898");return}let Jt=null;l.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93",icon:null,className:"custom-modal-divider",content:i.createElement("div",null,i.createElement("p",{className:"mt20"},"\u5DF2\u9009",i.createElement("span",{className:"c-light-primary"},zt.length),"\u4E2D\u4E2A\u7F16\u7A0B\u5237\u9898\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u6210\u4E3A\u7F16\u7A0B\u9898"),i.createElement("div",null,"\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898\u7684\u8BED\u8A00\uFF1A"),i.createElement(N.default.Group,{className:"mt3",onChange:On=>{Jt=On,document.getElementById("send-to-modal").style.display="none"}},i.createElement(N.default,{value:"c"},"C\u8BED\u8A00"),i.createElement(N.default,{value:"c++"},"C++\u8BED\u8A00"),i.createElement(N.default,{value:"java"},"Java\u8BED\u8A00"),i.createElement(N.default,{value:"python"},"Python\u8BED\u8A00")),i.createElement("div",{id:"send-to-modal",style:{color:"#E30000",display:"none"}},"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00")),onOk:()=>De(void 0,null,function*(){if(!(Jt!=null&&Jt.length))return document.getElementById("send-to-modal").style.display="block",Promise.reject();const On=yield(0,O.ZP)("/api/practices/send_to_item_bank.json",{method:"post",body:{identifiers:zt,language:Jt}});(On==null?void 0:On.status)===0&&Y.ZP.success("\u53D1\u9001\u6210\u529F")})})},Fr={selectedRowKeys:zt,columnWidth:40,onChange:Lr};return i.createElement("section",{className:I.wrap},i.createElement(ee.jL,{img:_,title:"\u7F16\u7A0B\u5237\u9898",sunTitle:"\u5FEB\u901F\u63D0\u9AD8\u7F16\u7A0B\u80FD\u529B",bannerExtraContent:i.createElement(g.Z,{dropdownRender:()=>{var Jt,On;return i.createElement(x.default,null,i.createElement(x.default.Item,{key:1,onClick:()=>{K.history.push("/problems/add")}},"\u65B0\u5EFA\u9898\u76EE"),i.createElement(x.default.Item,{key:2,onClick:()=>{K.history.push("/problems/batchAdd")}},"\u6279\u91CF\u5BFC\u5165\u9898\u76EE"),!((Jt=S==null?void 0:S.setting)!=null&&Jt.main_site)&&!((On=S==null?void 0:S.setting)!=null&&On.is_local)&&i.createElement(x.default.Item,{key:3,onClick:()=>{Zn(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u9898"))}},i.createElement("div",{className:I.addQuestion,style:{visibility:(0,ue.Ny)()||ut||!((Ce=S==null?void 0:S.setting)!=null&&Ce.main_site)&&!((en=S==null?void 0:S.setting)!=null&&en.is_local)&&(0,ue.EO)()?"visible":"hidden"}},i.createElement("span",null,"\u65B0\u5EFA\u9898\u76EE")))}),i.createElement("div",{className:I.content},i.createElement("div",{className:I.left},i.createElement(y.Z,{className:`${I.filterPoint} mb10`,align:"top"},i.createElement(T.Z,{className:I.filterType},"\u77E5\u8BC6\u70B9"),i.createElement(T.Z,{className:I.btnWarp,ref:Lt,style:$t>0?{height:$t===1?76:"auto"}:{}},Be==null?void 0:Be.map(Jt=>{var On;return i.createElement("div",{onClick:()=>Xn(Jt.id,"tag"),key:Jt.id,className:(On=ye==null?void 0:ye.tag_discipline_id)!=null&&On.includes(Jt.id)?`${I.btn} ${I.btnActive}`:I.btn},i.createElement("span",{title:Jt.name},Jt.name),i.createElement("span",{className:I.count,style:{display:Jt.count?"block":"none"}},Jt.count))})),!!$t&&i.createElement(T.Z,{className:I.fold},$t===1?i.createElement("div",{onClick:()=>Ft(2),className:I.action},"\u5C55\u5F00",i.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):i.createElement("div",{onClick:()=>Ft(1),className:I.action},"\u6536\u8D77",i.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"})))),!!ae.length&&i.createElement(y.Z,{className:I.filterPoint,align:"top",style:{marginBottom:22}},i.createElement(T.Z,{className:I.filterType},"\u6765\u6E90"),i.createElement(T.Z,{className:I.btnWarp,ref:Dt,style:Mt>0?{height:Mt===1?76:"auto"}:{}},ae==null?void 0:ae.map(Jt=>{var On;return i.createElement("div",{onClick:()=>Xn(Jt.id,"source"),key:Jt.id,className:(On=ye==null?void 0:ye.source_discipline_id)!=null&&On.includes(Jt.id)?`${I.btn} ${I.btnActive}`:I.btn},i.createElement("span",{title:Jt.name},Jt.name),i.createElement("span",{className:I.count},Jt.count))}),!!Mt&&i.createElement(T.Z,{className:I.fold},Mt===1?i.createElement("div",{onClick:()=>ie(2),className:I.action},"\u5C55\u5F00",i.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):i.createElement("div",{onClick:()=>ie(1),className:I.action},"\u6536\u8D77",i.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"}))))),i.createElement("div",{className:I.control},i.createElement(A.default,{suffixIcon:i.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u96BE\u5EA6",value:ye==null?void 0:ye.difficulty,onChange:Jt=>nr(Jt,"difficulty")},i.createElement(A.default.Option,{value:1},"\u7B80\u5355"),i.createElement(A.default.Option,{value:2},"\u9002\u4E2D"),i.createElement(A.default.Option,{value:3},"\u56F0\u96BE")),(0,ue.bg)()&&ye.filter==="public"&&i.createElement(A.default,{suffixIcon:i.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:ye==null?void 0:ye.status,onChange:Jt=>nr(Jt,"status")},i.createElement(A.default.Option,{value:0},"\u672A\u5F00\u542F"),i.createElement(A.default.Option,{value:1},"\u8FDB\u884C\u4E2D"),i.createElement(A.default.Option,{value:2},"\u5DF2\u901A\u8FC7")),(0,ue.bg)()&&ye.filter==="mine"&&i.createElement(A.default,{suffixIcon:i.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:ye==null?void 0:ye.practice_status,onChange:Jt=>nr(Jt,"practice_status")},i.createElement(A.default.Option,{value:0},"\u672A\u53D1\u5E03"),i.createElement(A.default.Option,{value:1},"\u5DF2\u516C\u5F00"),i.createElement(A.default.Option,{value:2},"\u672A\u5BA1\u6838"),i.createElement(A.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),i.createElement(A.default.Option,{value:4},"\u672A\u516C\u5F00"),i.createElement(A.default.Option,{value:5},"\u672A\u901A\u8FC7")),(0,ue.bg)()&&ye.filter==="all"&&i.createElement(A.default,{suffixIcon:i.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:ye==null?void 0:ye.practice_status,onChange:Jt=>nr(Jt,"practice_status")},i.createElement(A.default.Option,{value:0},"\u672A\u53D1\u5E03"),i.createElement(A.default.Option,{value:1},"\u5DF2\u516C\u5F00"),i.createElement(A.default.Option,{value:2},"\u672A\u5BA1\u6838"),i.createElement(A.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),i.createElement(A.default.Option,{value:4},"\u672A\u516C\u5F00"),i.createElement(A.default.Option,{value:5},"\u672A\u901A\u8FC7")),i.createElement($.default.Search,{className:I.search,size:"large",suffix:i.createElement("i",{className:`iconfont icon-sousuo9 font14 ${I.searchIcon}`,onClick:()=>{ye.page=1,ye.search=ye.save_search,at(Nt({},ye)),ye.save_search&&(0,ce.tk)({name:ye.save_search,copywriting:ye.save_search,position:"Practice"}),Vn(ye)}}),placeholder:(0,ue.Ny)()?"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u3001\u521B\u5EFA\u8005\u641C\u7D22":"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",value:ye==null?void 0:ye.save_search,onChange:Jt=>gr(Jt.target.value),onSearch:Jt=>{ye.page=1,ye.search=ye.save_search,at(Nt({},ye)),Jt&&(0,ce.tk)({name:Jt,copywriting:Jt,position:"Practice"}),Vn(ye)}})),i.createElement("div",{className:I.table},i.createElement("div",{className:I.tabWarp,style:(0,ue.Ny)()||ut?{}:{height:10,border:0}},(0,ue.Ny)()?i.createElement(H.default,{className:I.tab,activeKey:un?"not_reviewed":ye.filter,onChange:Fn,tabBarExtraContent:!un&&i.createElement(g.Z,{dropdownRender:()=>Ir},i.createElement("span",{className:"ant-dropdown-link font14 current",onClick:Jt=>Jt.preventDefault()},"\u6279\u91CF\u64CD\u4F5C ",i.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"iconfont icon-xiajiantou1"})))},i.createElement(H.default.TabPane,{tab:"\u516C\u5171",key:"public"}),i.createElement(H.default.TabPane,{tab:"\u5168\u90E8",key:"all"}),i.createElement(H.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),i.createElement(H.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):ut?i.createElement(H.default,{className:I.tab,activeKey:un?"not_reviewed":ye.filter,onChange:Fn},i.createElement(H.default.TabPane,{tab:"\u516C\u5171",key:"public"}),i.createElement(H.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),i.createElement(H.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):null),un?i.createElement("div",{className:I.tabWarp,style:(0,ue.Ny)()||ut?{}:{height:10,border:0}},i.createElement(H.default,{className:I.tab,activeKey:ye.filter,onChange:Fn},i.createElement(H.default.TabPane,{tab:"\u5F85\u5BA1\u6838",key:"not_reviewed"}),i.createElement(H.default.TabPane,{tab:"\u5BA1\u6838\u4E2D",key:"under_review"}),i.createElement(H.default.TabPane,{tab:"\u5DF2\u5BA1\u6838",key:"review_finished"}))):null,!((0,ue.Ny)()||ut)&&Ht&&i.createElement("div",{className:I.tabWarp2,style:{justifyContent:"end"}},tr?i.createElement(y.Z,{align:"middle"},i.createElement(y.Z,{onClick:()=>tn(!0),align:"middle",className:"current"},i.createElement("i",{className:"iconfont icon-yixuan mr10 c-light-primary font20"}),i.createElement("span",null,"\u5DF2\u9009",i.createElement("span",{className:"c-light-primary"},zt.length),"\u4E2A")),i.createElement(W.ZP,{className:"mr20 ml40",ghost:!0,onClick:()=>{Jn(!1),an([])},type:"primary"},"\u53D6\u6D88"),i.createElement(W.ZP,{onClick:Cr,ghost:!0,type:"primary"},"\u786E\u8BA4\u53D1\u9001")):i.createElement(W.ZP,{onClick:()=>Jn(!0),type:"primary"},i.createElement("i",{className:"iconfont icon-fasong mr5"}),"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93")),i.createElement(X.default,{rowSelection:(0,ue.Ny)()||tr?Fr:void 0,className:I.customTable,dataSource:on,bordered:!1,rowKey:Jt=>Jt.identifier,columns:un?_r:lr,rowClassName:I.row,loading:lt,onRow:Jt=>({onMouseEnter:On=>{Yt(Jt==null?void 0:Jt.identifier)},onMouseLeave:On=>{Yt(null)}}),onChange:Er,pagination:{pageSize:ye.per_page,total:ve,current:ye.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,size:"default",position:["bottomCenter"],showTotal:Jt=>i.createElement("span",{className:"mr10"},"\u5171",i.createElement("span",{className:"c-orange"},Jt),"\u6761\u6570\u636E")}}))),i.createElement("div",{className:I.right},i.createElement("div",{className:I.statistics},i.createElement("span",{className:"sprite sprite-45"}),i.createElement("div",{className:I.title},"\u6211\u7684\u5237\u9898\u7EDF\u8BA1"),i.createElement(y.Z,{justify:"space-between"},i.createElement(T.Z,{className:I.statisticItem},i.createElement("div",{className:I.rate},(0,ue.bg)()?((rt=$e==null?void 0:$e.my_record)==null?void 0:rt.passed_ratio)||0:"-"),i.createElement("div",{className:I.dataName},"\u901A\u8FC7\u7387(%)")),i.createElement(T.Z,{className:I.statisticItem},i.createElement("div",{className:I.rate},(0,ue.bg)()?((st=$e==null?void 0:$e.my_record)==null?void 0:st.passed_count)||0:"-"),i.createElement("div",{className:I.dataName},"\u5237\u9898\u6570")),i.createElement(T.Z,{className:I.statisticItem},i.createElement("div",{className:I.rate},(0,ue.bg)()?(pe=(xt=$e==null?void 0:$e.my_record)==null?void 0:xt.time_count)==null?void 0:pe.toFixed(2):"-"),i.createElement("div",{className:I.dataName},"\u7D2F\u8BA1\u65F6\u957F(h)")))),!!((Ee=$e==null?void 0:$e.rank_list)!=null&&Ee.length)&&i.createElement(i.Fragment,null,((nt=je.userInfo)==null?void 0:nt.user_id)!=2&&(0,ue.JA)()&&((Ze=S==null?void 0:S.setting)==null?void 0:Ze.main_site)&&ir&&(zn==null?void 0:zn.length)>0&&i.createElement("div",{className:I.problemsclose,style:{position:"relative"}},i.createElement(V.Z,{autoplay:!0,pauseOnDotsHover:!0,style:{width:292,height:170,marginBottom:"10px",overflow:"hidden"}},zn==null?void 0:zn.map((Jt,On)=>i.createElement("div",{style:{display:"flex"},key:On},i.createElement("a",{href:`/paths/${Jt.identifier}`},i.createElement("img",{style:{width:"292px",height:"170px",borderRadius:"4px"},src:Q.Z.IMG_SERVER+"/"+Jt.image_url}))))),i.createElement("img",{className:I.imgsrc,onClick:()=>{localStorage.setItem("problemsclose",Z()().add(1,"days").unix()+""),In(!1)},src:D})),i.createElement("div",{className:I.sort},i.createElement("div",{className:I.rankHeader},i.createElement("span",{className:`sprite sprite-46 ${I.rankIcon}`})),!!((z=$e==null?void 0:$e.my_record)!=null&&z.rank)&&i.createElement("div",{className:`${I.myRecord} ${I.li}`},i.createElement("span",{className:`${I.recordPrefix} ${I.mine}`},"\u6211\u7684"),i.createElement("img",{className:I.avatar,src:Q.Z.IMG_SERVER+"/images/"+((St=$e==null?void 0:$e.my_record)==null?void 0:St.image_url)}),i.createElement("span",{title:(fe=$e==null?void 0:$e.my_record)==null?void 0:fe.nickname,className:I.nickname},(Kt=$e==null?void 0:$e.my_record)==null?void 0:Kt.nickname),i.createElement("span",{className:I.myRank},((dn=$e==null?void 0:$e.my_record)==null?void 0:dn.rank)>999?"\u7B2C999+\u540D":`\u7B2C${(Bt=$e==null?void 0:$e.my_record)==null?void 0:Bt.rank}\u540D`),i.createElement("span",{className:I.questionNumber},(J=$e==null?void 0:$e.my_record)==null?void 0:J.passed_count,"\u9898")),(we=$e==null?void 0:$e.rank_list)==null?void 0:we.map((Jt,On)=>{let Gn=On+1;return On===0&&(Gn="sprite sprite-47"),On===1&&(Gn="sprite sprite-48"),On===2&&(Gn="sprite sprite-49"),i.createElement("div",{className:I.li,key:On},typeof Gn=="number"?i.createElement("span",{className:I.recordPrefix},Gn):i.createElement("span",{className:I.recordPrefix},i.createElement("span",{className:Gn})),i.createElement("img",{className:I.avatar,src:Q.Z.IMG_SERVER+"/images/"+(Jt==null?void 0:Jt.image_url)}),i.createElement("span",{title:Jt==null?void 0:Jt.nickname,className:I.nickname},Jt==null?void 0:Jt.nickname),i.createElement("span",{className:I.questionNumber},Jt.passed_count,"\u9898"))}))))),yn&&i.createElement(Ot,{setScoreShow:Zn,isshixuns:!1,ScoreShow:!!yn,isloadings:!1,onOk:Jt=>De(void 0,null,function*(){if(!Jt.length){Y.ZP.warning("\u8BF7\u9009\u62E9\u8BD5\u9898");return}const On=yield(0,O.ZP)(`/api/item_banks/${Jt==null?void 0:Jt[0]}/send_to_practice`,{method:"post",body:{ids:Jt}});(On==null?void 0:On.status)==0&&(Y.ZP.success("\u64CD\u4F5C\u6210\u529F"),ye.filter="mine",at(Nt({},ye)),Zn(!1),Vn(ye))})}),i.createElement(l.default,{title:"\u5BA1\u6838\u8BB0\u5F55",open:sn,onOk:()=>{},onCancel:()=>{vn(!1)},footer:null,closable:!0},i.createElement(X.default,{dataSource:Bn,columns:Sr})),i.createElement(l.default,{title:"\u672A\u901A\u8FC7\u539F\u56E0",open:En,onOk:()=>{},onCancel:()=>{Rn(!1)},footer:null,closable:!0},i.createElement(L.Z,{value:bn})),i.createElement(l.default,{open:qt,centered:!0,width:1e3,okText:"\u786E\u5B9A\u53D1\u9001",onCancel:()=>tn(!1),cancelText:"\u8FD4\u56DE\u5217\u8868",onOk:()=>De(void 0,null,function*(){tn(!1),Cr()}),title:"\u67E5\u770B\u5DF2\u9009"},i.createElement("div",{className:"font14 c-light-primary mb10"},"\u5DF2\u9009",zt==null?void 0:zt.length,"\u4E2A"),i.createElement("div",{style:{height:400,overflow:"auto"}},(M=on==null?void 0:on.filter(Jt=>zt.includes(Jt.identifier)))==null?void 0:M.map((Jt,On)=>{var Gn,ur;return i.createElement("div",{key:On,className:I.sendModal},i.createElement("div",{className:I.li},i.createElement("p",null,Jt==null?void 0:Jt.name),i.createElement("div",{className:I.bottom},i.createElement("span",{className:"c-grey-333"},"\u7F16\u7A0B\u9898"),i.createElement("i",{className:I.line}),i.createElement("span",{className:"c-grey-333"},Jt.difficulty===1&&"\u7B80\u5355",Jt.difficulty===2&&"\u9002\u4E2D",Jt.difficulty===3&&"\u56F0\u96BE"),i.createElement("i",{className:I.line}),i.createElement("span",null,"\u521B\u5EFA\u8005\xA0",i.createElement(R.Z,{title:Jt==null?void 0:Jt.creator},i.createElement("span",{className:"c-grey-333"},((Gn=Jt==null?void 0:Jt.creator)==null?void 0:Gn.length)>6?((ur=Jt==null?void 0:Jt.creator)==null?void 0:ur.substr(0,3))+"...":Jt==null?void 0:Jt.creator))),i.createElement("i",{className:I.line}),i.createElement("span",{className:I.des},"\u66F4\u65B0\xA0",i.createElement("span",{className:"c-grey-333"},Jt==null?void 0:Jt.updated_at)))),i.createElement("div",{className:I.del,onClick:()=>{an(zt.filter(xr=>xr!==Jt.identifier))}},"\u5220\u9664"))}))))};var E=(0,K.connect)(({user:S,globalSetting:je})=>({user:S,globalSetting:je}))(gt)},20047:function($n,Rt,u){"use strict";u.d(Rt,{AL:function(){return O},Iy:function(){return N},Qv:function(){return A},ez:function(){return Q},jb:function(){return y}});var i=u(32834),K=u.n(i),L=u(11690),he=u.n(L);let Z=1;function g(Ke,Je){const ke=Ke.match(/^(\s+)(?:```)/);if(ke===null)return Je;const We=ke[1];return Je.split(`
|
|
|
`).map(oe=>{const k=oe.match(/^\s+/);if(k===null)return oe;const[_]=k;return _.length>=We.length?oe.slice(We.length):oe}).join(`
|
|
|
`)}let W=[],Y=["<ul>"];const l=new(K()).Renderer,x=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function N(){W.length=0,Y=["<ul>"]}const y={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function T(Ke,Je,ke,We){if(Je>=Ke.length||Ke[Je].level<=ke)return Je;var oe=Ke[Je];We.push("<li><a href='#"+Z+oe.anchor+"'>"+oe.text+"</a>"),Je++;var k=[];return Je=T(Ke,Je,oe.level,k),k.length>0&&(We.push("<ul>"),k.forEach(function(_){We.push(_)}),We.push("</ul>")),We.push("</li>"),Je=T(Ke,Je,ke,We),Je}function A(){return T(W,0,0,Y),Y.push("</ul>"),Y.join("")}const $={heading(Ke){const Je=x.exec(Ke);if(Z+=1,Je)return{type:"heading",raw:Je[0],depth:Je[1].length,text:Je[2]}},fences(Ke){const Je=this.rules.block.fences.exec(Ke);if(Je){const ke=Je[0];let We=g(ke,Je[3]||"");const oe=Je[2]?Je[2].trim():Je[2];if(["latex","katex","math"].indexOf(oe)>=0){const k=V(),_=We;We=k,R[k]={type:"block",expression:_}}return{type:"code",raw:ke,lang:oe,text:We}}}},H=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let X=0;const V=()=>`__special_katext_id_${X++}__`;let R={};function Q(){return R}function O(){X=0,R={}}function I(Ke){return Ke=Ke.replace(H,(Je,ke)=>{const We=V();return R[We]={type:"inline",expression:ke},We}),Ke}const ue=l.listitem;l.listitem=function(Ke){return ue(I(Ke))};const Se=l.paragraph;l.paragraph=function(Ke){return Se(I(Ke))};const me=l.tablecell;l.tablecell=function(Ke,Je){return me(I(Ke),Je)},l.code=function(Ke,Je,ke){const We=(Je||"").match(/\S*/)[0];return We?["latex","katex","math"].indexOf(We)>=0?`<p class='editormd-tex'>${Ke}</p>`:`<pre class="prettyprint linenums"><code class="language-${Je}">${ke?Ke:(0,L.escape)(Ke,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(ke?Ke:(0,L.escape)(Ke,!0))+"</code></pre>"},l.heading=function(Ke,Je,ke){let We=this.options.headerPrefix+ke.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return W.push({anchor:We,level:Je,text:Ke}),"<h"+Je+' id="'+Z+We+'">'+Ke+"</h"+Je+">"},K().setOptions({silent:!0,gfm:!0,pedantic:!1}),K().use({tokenizer:$,renderer:l}),Rt.ZP=K()},29509:function($n,Rt,u){"use strict";u.d(Rt,{o2:function(){return Z},yT:function(){return g}});var i=u(77654),K=u(34998);const L=K.i.map(W=>`${W}-inverse`),he=["success","processing","error","default","warning"];function Z(W){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,i.Z)(L),(0,i.Z)(K.i)).includes(W):K.i.includes(W)}function g(W){return he.includes(W)}},9981:function($n,Rt){"use strict";const u=function(){const i=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let K=1;K<arguments.length;K++){const L=K<0||arguments.length<=K?void 0:arguments[K];L&&Object.keys(L).forEach(he=>{const Z=L[he];Z!==void 0&&(i[he]=Z)})}return i};Rt.Z=u},99402:function($n,Rt,u){"use strict";u.d(Rt,{T:function(){return K},n:function(){return i}});function i(L){return["small","middle","large"].includes(L)}function K(L){return L?typeof L=="number"&&!Number.isNaN(L):!1}},86013:function($n,Rt,u){"use strict";var i=u(59301),K=u(19248);const L=he=>{let Z;return typeof he=="object"&&(he!=null&&he.clearIcon)?Z=he:he&&(Z={clearIcon:i.createElement(K.Z,null)}),Z};Rt.Z=L},54500:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return i}});const i=K=>K?typeof K=="function"?K():K:null},97224:function($n,Rt,u){"use strict";u.d(Rt,{F:function(){return i}});function i(L){return L!=null&&L===L.window}const K=L=>{var he,Z;if(typeof window=="undefined")return 0;let g=0;return i(L)?g=L.pageYOffset:L instanceof Document?g=L.documentElement.scrollTop:(L instanceof HTMLElement||L)&&(g=L.scrollTop),L&&!i(L)&&typeof g!="number"&&(g=(Z=((he=L.ownerDocument)!==null&&he!==void 0?he:L).documentElement)===null||Z===void 0?void 0:Z.scrollTop),g};Rt.Z=K},52838:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return g}});var i=u(37645);function K(W,Y,l,x){if(x===!1)return{adjustX:!1,adjustY:!1};const N=x&&typeof x=="object"?x:{},y={};switch(W){case"top":case"bottom":y.shiftX=Y.arrowOffsetHorizontal*2+l,y.shiftY=!0,y.adjustY=!0;break;case"left":case"right":y.shiftY=Y.arrowOffsetVertical*2+l,y.shiftX=!0,y.adjustX=!0;break}const T=Object.assign(Object.assign({},y),N);return T.shiftX||(T.adjustX=!0),T.shiftY||(T.adjustY=!0),T}const L={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"]}},he={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"]}},Z=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function g(W){const{arrowWidth:Y,autoAdjustOverflow:l,arrowPointAtCenter:x,offset:N,borderRadius:y,visibleFirst:T}=W,A=Y/2,$={};return Object.keys(L).forEach(H=>{const X=x&&he[H]||L[H],V=Object.assign(Object.assign({},X),{offset:[0,0],dynamicInset:!0});switch($[H]=V,Z.has(H)&&(V.autoArrow=!1),H){case"top":case"topLeft":case"topRight":V.offset[1]=-A-N;break;case"bottom":case"bottomLeft":case"bottomRight":V.offset[1]=A+N;break;case"left":case"leftTop":case"leftBottom":V.offset[0]=-A-N;break;case"right":case"rightTop":case"rightBottom":V.offset[0]=A+N;break}const R=(0,i.wZ)({contentRadius:y,limitVerticalRadius:!0});if(x)switch(H){case"topLeft":case"bottomLeft":V.offset[0]=-R.arrowOffsetHorizontal-A;break;case"topRight":case"bottomRight":V.offset[0]=R.arrowOffsetHorizontal+A;break;case"leftTop":case"rightTop":V.offset[1]=-R.arrowOffsetHorizontal*2+A;break;case"leftBottom":case"rightBottom":V.offset[1]=R.arrowOffsetHorizontal*2-A;break}V.overflow=K(H,R,Y,l),T&&(V.htmlRegion="visibleFirst")}),$}},83010:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return he}});var i=u(16089);function K(Z,g,W,Y){const l=W-g;return Z/=Y/2,Z<1?l/2*Z*Z*Z+g:l/2*((Z-=2)*Z*Z+2)+g}var L=u(97224);function he(Z){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:W=()=>window,callback:Y,duration:l=450}=g,x=W(),N=(0,L.Z)(x),y=Date.now(),T=()=>{const $=Date.now()-y,H=K($>l?l:$,N,Z,l);(0,L.F)(x)?x.scrollTo(window.pageXOffset,H):x instanceof Document||x.constructor.name==="HTMLDocument"?x.documentElement.scrollTop=H:x.scrollTop=H,$<l?(0,i.Z)(T):typeof Y=="function"&&Y()};(0,i.Z)(T)}},82855:function($n,Rt,u){"use strict";u.d(Rt,{F:function(){return Z},Z:function(){return he}});var i=u(92310),K=u.n(i);const L=null;function he(g,W,Y){return K()({[`${g}-status-success`]:W==="success",[`${g}-status-warning`]:W==="warning",[`${g}-status-error`]:W==="error",[`${g}-status-validating`]:W==="validating",[`${g}-has-feedback`]:Y})}const Z=(g,W)=>W||g},84022:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return dn}});var i=u(59301),K=u(60499),L=u(85899),he=u(38705),Z=u(17212),g=u(51296),W=u(54628),Y=u(38882),l=u(39153),x=u(18642),N=u(43749),y=u(42244),T={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},A=T,$=u(53280),H=u(92310),X=u.n(H),V={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(J){return i.createElement("ul",{style:{display:"block"}},J)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(J){return i.createElement("button",null,J+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null},R=V;function Q(Bt,J,we){return Math.max(J,Math.min(Bt,we))}var O=function(J){var we=["onTouchStart","onTouchMove","onWheel"];we.includes(J._reactName)||J.preventDefault()},I=function(J){for(var we=[],M=Se(J),Ct=me(J),ot=M;ot<Ct;ot++)J.lazyLoadedList.indexOf(ot)<0&&we.push(ot);return we},ue=function(J){for(var we=[],M=Se(J),Ct=me(J),ot=M;ot<Ct;ot++)we.push(ot);return we},Se=function(J){return J.currentSlide-Ke(J)},me=function(J){return J.currentSlide+Je(J)},Ke=function(J){return J.centerMode?Math.floor(J.slidesToShow/2)+(parseInt(J.centerPadding)>0?1:0):0},Je=function(J){return J.centerMode?Math.floor((J.slidesToShow-1)/2)+1+(parseInt(J.centerPadding)>0?1:0):J.slidesToShow},ke=function(J){return J&&J.offsetWidth||0},We=function(J){return J&&J.offsetHeight||0},oe=function(J){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,M,Ct,ot,dt;return M=J.startX-J.curX,Ct=J.startY-J.curY,ot=Math.atan2(Ct,M),dt=Math.round(ot*180/Math.PI),dt<0&&(dt=360-Math.abs(dt)),dt<=45&&dt>=0||dt<=360&&dt>=315?"left":dt>=135&&dt<=225?"right":we===!0?dt>=35&&dt<=135?"up":"down":"vertical"},k=function(J){var we=!0;return J.infinite||(J.centerMode&&J.currentSlide>=J.slideCount-1||J.slideCount<=J.slidesToShow||J.currentSlide>=J.slideCount-J.slidesToShow)&&(we=!1),we},_=function(J,we){var M={};return we.forEach(function(Ct){return M[Ct]=J[Ct]}),M},ee=function(J){var we=i.Children.count(J.children),M=J.listRef,Ct=Math.ceil(ke(M)),ot=J.trackRef&&J.trackRef.node,dt=Math.ceil(ke(ot)),$t;if(J.vertical)$t=Ct;else{var Ft=J.centerMode&&parseInt(J.centerPadding)*2;typeof J.centerPadding=="string"&&J.centerPadding.slice(-1)==="%"&&(Ft*=Ct/100),$t=Math.ceil((Ct-Ft)/J.slidesToShow)}var Mt=M&&We(M.querySelector('[data-index="0"]')),ie=Mt*J.slidesToShow,ve=J.currentSlide===void 0?J.initialSlide:J.currentSlide;J.rtl&&J.currentSlide===void 0&&(ve=we-1-J.initialSlide);var At=J.lazyLoadedList||[],Be=I((0,L.Z)((0,L.Z)({},J),{},{currentSlide:ve,lazyLoadedList:At}));At=At.concat(Be);var Le={slideCount:we,slideWidth:$t,listWidth:Ct,trackWidth:dt,currentSlide:ve,slideHeight:Mt,listHeight:ie,lazyLoadedList:At};return J.autoplaying===null&&J.autoplay&&(Le.autoplaying="playing"),Le},ne=function(J){var we=J.waitForAnimate,M=J.animating,Ct=J.fade,ot=J.infinite,dt=J.index,$t=J.slideCount,Ft=J.lazyLoad,Mt=J.currentSlide,ie=J.centerMode,ve=J.slidesToScroll,At=J.slidesToShow,Be=J.useCSS,Le=J.lazyLoadedList;if(we&&M)return{};var ae=dt,Re,$e,He,ut={},rn={},on=ot?dt:Q(dt,0,$t-1);if(Ct){if(!ot&&(dt<0||dt>=$t))return{};dt<0?ae=dt+$t:dt>=$t&&(ae=dt-$t),Ft&&Le.indexOf(ae)<0&&(Le=Le.concat(ae)),ut={animating:!0,currentSlide:ae,lazyLoadedList:Le,targetSlide:ae},rn={animating:!1,targetSlide:ae}}else Re=ae,ae<0?(Re=ae+$t,ot?$t%ve!==0&&(Re=$t-$t%ve):Re=0):!k(J)&&ae>Mt?ae=Re=Mt:ie&&ae>=$t?(ae=ot?$t:$t-1,Re=ot?0:$t-1):ae>=$t&&(Re=ae-$t,ot?$t%ve!==0&&(Re=0):Re=$t-At),!ot&&ae+At>=$t&&(Re=$t-At),$e=Fe((0,L.Z)((0,L.Z)({},J),{},{slideIndex:ae})),He=Fe((0,L.Z)((0,L.Z)({},J),{},{slideIndex:Re})),ot||($e===He&&(ae=Re),$e=He),Ft&&(Le=Le.concat(I((0,L.Z)((0,L.Z)({},J),{},{currentSlide:ae})))),Be?(ut={animating:!0,currentSlide:Re,trackStyle:tt((0,L.Z)((0,L.Z)({},J),{},{left:$e})),lazyLoadedList:Le,targetSlide:on},rn={animating:!1,currentSlide:Re,trackStyle:ht((0,L.Z)((0,L.Z)({},J),{},{left:He})),swipeLeft:null,targetSlide:on}):ut={currentSlide:Re,trackStyle:ht((0,L.Z)((0,L.Z)({},J),{},{left:He})),lazyLoadedList:Le,targetSlide:on};return{state:ut,nextState:rn}},se=function(J,we){var M,Ct,ot,dt,$t,Ft=J.slidesToScroll,Mt=J.slidesToShow,ie=J.slideCount,ve=J.currentSlide,At=J.targetSlide,Be=J.lazyLoad,Le=J.infinite;if(dt=ie%Ft!==0,M=dt?0:(ie-ve)%Ft,we.message==="previous")ot=M===0?Ft:Mt-M,$t=ve-ot,Be&&!Le&&(Ct=ve-ot,$t=Ct===-1?ie-1:Ct),Le||($t=At-Ft);else if(we.message==="next")ot=M===0?Ft:M,$t=ve+ot,Be&&!Le&&($t=(ve+Ft)%ie+M),Le||($t=At+Ft);else if(we.message==="dots")$t=we.index*we.slidesToScroll;else if(we.message==="children"){if($t=we.index,Le){var ae=vt((0,L.Z)((0,L.Z)({},J),{},{targetSlide:$t}));$t>we.currentSlide&&ae==="left"?$t=$t-ie:$t<we.currentSlide&&ae==="right"&&($t=$t+ie)}}else we.message==="index"&&($t=Number(we.index));return $t},w=function(J,we,M){return J.target.tagName.match("TEXTAREA|INPUT|SELECT")||!we?"":J.keyCode===37?M?"next":"previous":J.keyCode===39?M?"previous":"next":""},D=function(J,we,M){return J.target.tagName==="IMG"&&O(J),!we||!M&&J.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:J.touches?J.touches[0].pageX:J.clientX,startY:J.touches?J.touches[0].pageY:J.clientY,curX:J.touches?J.touches[0].pageX:J.clientX,curY:J.touches?J.touches[0].pageY:J.clientY}}},ce=function(J,we){var M=we.scrolling,Ct=we.animating,ot=we.vertical,dt=we.swipeToSlide,$t=we.verticalSwiping,Ft=we.rtl,Mt=we.currentSlide,ie=we.edgeFriction,ve=we.edgeDragged,At=we.onEdge,Be=we.swiped,Le=we.swiping,ae=we.slideCount,Re=we.slidesToScroll,$e=we.infinite,He=we.touchObject,ut=we.swipeEvent,rn=we.listHeight,on=we.listWidth;if(!M){if(Ct)return O(J);ot&&dt&&$t&&O(J);var Ve,lt={},wt=Fe(we);He.curX=J.touches?J.touches[0].pageX:J.clientX,He.curY=J.touches?J.touches[0].pageY:J.clientY,He.swipeLength=Math.round(Math.sqrt(Math.pow(He.curX-He.startX,2)));var Qt=Math.round(Math.sqrt(Math.pow(He.curY-He.startY,2)));if(!$t&&!Le&&Qt>10)return{scrolling:!0};$t&&(He.swipeLength=Qt);var Yt=(Ft?-1:1)*(He.curX>He.startX?1:-1);$t&&(Yt=He.curY>He.startY?1:-1);var ye=Math.ceil(ae/Re),at=oe(we.touchObject,$t),Lt=He.swipeLength;return $e||(Mt===0&&(at==="right"||at==="down")||Mt+1>=ye&&(at==="left"||at==="up")||!k(we)&&(at==="left"||at==="up"))&&(Lt=He.swipeLength*ie,ve===!1&&At&&(At(at),lt.edgeDragged=!0)),!Be&&ut&&(ut(at),lt.swiped=!0),ot?Ve=wt+Lt*(rn/on)*Yt:Ft?Ve=wt-Lt*Yt:Ve=wt+Lt*Yt,$t&&(Ve=wt+Lt*Yt),lt=(0,L.Z)((0,L.Z)({},lt),{},{touchObject:He,swipeLeft:Ve,trackStyle:ht((0,L.Z)((0,L.Z)({},we),{},{left:Ve}))}),Math.abs(He.curX-He.startX)<Math.abs(He.curY-He.startY)*.8||He.swipeLength>10&&(lt.swiping=!0,O(J)),lt}},Oe=function(J,we){var M=we.dragging,Ct=we.swipe,ot=we.touchObject,dt=we.listWidth,$t=we.touchThreshold,Ft=we.verticalSwiping,Mt=we.listHeight,ie=we.swipeToSlide,ve=we.scrolling,At=we.onSwipe,Be=we.targetSlide,Le=we.currentSlide,ae=we.infinite;if(!M)return Ct&&O(J),{};var Re=Ft?Mt/$t:dt/$t,$e=oe(ot,Ft),He={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(ve||!ot.swipeLength)return He;if(ot.swipeLength>Re){O(J),At&&At($e);var ut,rn,on=ae?Le:Be;switch($e){case"left":case"up":rn=on+Ae(we),ut=ie?Tt(we,rn):rn,He.currentDirection=0;break;case"right":case"down":rn=on-Ae(we),ut=ie?Tt(we,rn):rn,He.currentDirection=1;break;default:ut=on}He.triggerSlideHandler=ut}else{var Ve=Fe(we);He.trackStyle=tt((0,L.Z)((0,L.Z)({},we),{},{left:Ve}))}return He},ct=function(J){for(var we=J.infinite?J.slideCount*2:J.slideCount,M=J.infinite?J.slidesToShow*-1:0,Ct=J.infinite?J.slidesToShow*-1:0,ot=[];M<we;)ot.push(M),M=Ct+J.slidesToScroll,Ct+=Math.min(J.slidesToScroll,J.slidesToShow);return ot},Tt=function(J,we){var M=ct(J),Ct=0;if(we>M[M.length-1])we=M[M.length-1];else for(var ot in M){if(we<M[ot]){we=Ct;break}Ct=M[ot]}return we},Ae=function(J){var we=J.centerMode?J.slideWidth*Math.floor(J.slidesToShow/2):0;if(J.swipeToSlide){var M,Ct=J.listRef,ot=Ct.querySelectorAll&&Ct.querySelectorAll(".slick-slide")||[];if(Array.from(ot).every(function(Ft){if(J.vertical){if(Ft.offsetTop+We(Ft)/2>J.swipeLeft*-1)return M=Ft,!1}else if(Ft.offsetLeft-we+ke(Ft)/2>J.swipeLeft*-1)return M=Ft,!1;return!0}),!M)return 0;var dt=J.rtl===!0?J.slideCount-J.currentSlide:J.currentSlide,$t=Math.abs(M.dataset.index-dt)||1;return $t}else return J.slidesToScroll},qe=function(J,we){return we.reduce(function(M,Ct){return M&&J.hasOwnProperty(Ct)},!0)?null:console.error("Keys Missing:",J)},ht=function(J){qe(J,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var we,M;if(!J.vertical)we=cn(J)*J.slideWidth;else{var Ct=J.unslick?J.slideCount:J.slideCount+2*J.slidesToShow;M=Ct*J.slideHeight}var ot={opacity:1,transition:"",WebkitTransition:""};if(J.useTransform){var dt=J.vertical?"translate3d(0px, "+J.left+"px, 0px)":"translate3d("+J.left+"px, 0px, 0px)",$t=J.vertical?"translate3d(0px, "+J.left+"px, 0px)":"translate3d("+J.left+"px, 0px, 0px)",Ft=J.vertical?"translateY("+J.left+"px)":"translateX("+J.left+"px)";ot=(0,L.Z)((0,L.Z)({},ot),{},{WebkitTransform:dt,transform:$t,msTransform:Ft})}else J.vertical?ot.top=J.left:ot.left=J.left;return J.fade&&(ot={opacity:1}),we&&(ot.width=we),M&&(ot.height=M),window&&!window.addEventListener&&window.attachEvent&&(J.vertical?ot.marginTop=J.left+"px":ot.marginLeft=J.left+"px"),ot},tt=function(J){qe(J,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var we=ht(J);return J.useTransform?(we.WebkitTransition="-webkit-transform "+J.speed+"ms "+J.cssEase,we.transition="transform "+J.speed+"ms "+J.cssEase):J.vertical?we.transition="top "+J.speed+"ms "+J.cssEase:we.transition="left "+J.speed+"ms "+J.cssEase,we},Fe=function(J){if(J.unslick)return 0;qe(J,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var we=J.slideIndex,M=J.trackRef,Ct=J.infinite,ot=J.centerMode,dt=J.slideCount,$t=J.slidesToShow,Ft=J.slidesToScroll,Mt=J.slideWidth,ie=J.listWidth,ve=J.variableWidth,At=J.slideHeight,Be=J.fade,Le=J.vertical,ae=0,Re,$e,He=0;if(Be||J.slideCount===1)return 0;var ut=0;if(Ct?(ut=-jt(J),dt%Ft!==0&&we+Ft>dt&&(ut=-(we>dt?$t-(we-dt):dt%Ft)),ot&&(ut+=parseInt($t/2))):(dt%Ft!==0&&we+Ft>dt&&(ut=$t-dt%Ft),ot&&(ut=parseInt($t/2))),ae=ut*Mt,He=ut*At,Le?Re=we*At*-1+He:Re=we*Mt*-1+ae,ve===!0){var rn,on=M&&M.node;if(rn=we+jt(J),$e=on&&on.childNodes[rn],Re=$e?$e.offsetLeft*-1:0,ot===!0){rn=Ct?we+jt(J):we,$e=on&&on.children[rn],Re=0;for(var Ve=0;Ve<rn;Ve++)Re-=on&&on.children[Ve]&&on.children[Ve].offsetWidth;Re-=parseInt(J.centerPadding),Re+=$e&&(ie-$e.offsetWidth)/2}}return Re},jt=function(J){return J.unslick||!J.infinite?0:J.variableWidth?J.slideCount:J.slidesToShow+(J.centerMode?1:0)},bt=function(J){return J.unslick||!J.infinite?0:J.slideCount},cn=function(J){return J.slideCount===1?1:jt(J)+J.slideCount+bt(J)},vt=function(J){return J.targetSlide>J.currentSlide?J.targetSlide>J.currentSlide+pt(J)?"left":"right":J.targetSlide<J.currentSlide-Qe(J)?"right":"left"},pt=function(J){var we=J.slidesToShow,M=J.centerMode,Ct=J.rtl,ot=J.centerPadding;if(M){var dt=(we-1)/2+1;return parseInt(ot)>0&&(dt+=1),Ct&&we%2===0&&(dt+=1),dt}return Ct?0:we-1},Qe=function(J){var we=J.slidesToShow,M=J.centerMode,Ct=J.rtl,ot=J.centerPadding;if(M){var dt=(we-1)/2+1;return parseInt(ot)>0&&(dt+=1),!Ct&&we%2===0&&(dt+=1),dt}return Ct?we-1:0},Ne=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},le=Object.keys(R);function Pe(Bt){return le.reduce(function(J,we){return Bt.hasOwnProperty(we)&&(J[we]=Bt[we]),J},{})}function Ge(Bt,J,we){return J=(0,Y.Z)(J),(0,g.Z)(Bt,(0,W.Z)()?Reflect.construct(J,we||[],(0,Y.Z)(Bt).constructor):J.apply(Bt,we))}var j=function(J){var we,M,Ct,ot,dt;J.rtl?dt=J.slideCount-1-J.index:dt=J.index,Ct=dt<0||dt>=J.slideCount,J.centerMode?(ot=Math.floor(J.slidesToShow/2),M=(dt-J.currentSlide)%J.slideCount===0,dt>J.currentSlide-ot-1&&dt<=J.currentSlide+ot&&(we=!0)):we=J.currentSlide<=dt&&dt<J.currentSlide+J.slidesToShow;var $t;J.targetSlide<0?$t=J.targetSlide+J.slideCount:J.targetSlide>=J.slideCount?$t=J.targetSlide-J.slideCount:$t=J.targetSlide;var Ft=dt===$t;return{"slick-slide":!0,"slick-active":we,"slick-center":M,"slick-cloned":Ct,"slick-current":Ft}},P=function(J){var we={};return(J.variableWidth===void 0||J.variableWidth===!1)&&(we.width=J.slideWidth),J.fade&&(we.position="relative",J.vertical&&J.slideHeight?we.top=-J.index*parseInt(J.slideHeight):we.left=-J.index*parseInt(J.slideWidth),we.opacity=J.currentSlide===J.index?1:0,we.zIndex=J.currentSlide===J.index?999:998,J.useCSS&&(we.transition="opacity "+J.speed+"ms "+J.cssEase+", visibility "+J.speed+"ms "+J.cssEase)),we},_e=function(J,we){return J.key+"-"+we},Ie=function(J){var we,M=[],Ct=[],ot=[],dt=i.Children.count(J.children),$t=Se(J),Ft=me(J);return i.Children.forEach(J.children,function(Mt,ie){var ve,At={message:"children",index:ie,slidesToScroll:J.slidesToScroll,currentSlide:J.currentSlide};!J.lazyLoad||J.lazyLoad&&J.lazyLoadedList.indexOf(ie)>=0?ve=Mt:ve=i.createElement("div",null);var Be=P((0,L.Z)((0,L.Z)({},J),{},{index:ie})),Le=ve.props.className||"",ae=j((0,L.Z)((0,L.Z)({},J),{},{index:ie}));if(M.push(i.cloneElement(ve,{key:"original"+_e(ve,ie),"data-index":ie,className:X()(ae,Le),tabIndex:"-1","aria-hidden":!ae["slick-active"],style:(0,L.Z)((0,L.Z)({outline:"none"},ve.props.style||{}),Be),onClick:function(He){ve.props&&ve.props.onClick&&ve.props.onClick(He),J.focusOnSelect&&J.focusOnSelect(At)}})),J.infinite&&dt>1&&J.fade===!1&&!J.unslick){var Re=dt-ie;Re<=jt(J)&&(we=-Re,we>=$t&&(ve=Mt),ae=j((0,L.Z)((0,L.Z)({},J),{},{index:we})),Ct.push(i.cloneElement(ve,{key:"precloned"+_e(ve,we),"data-index":we,tabIndex:"-1",className:X()(ae,Le),"aria-hidden":!ae["slick-active"],style:(0,L.Z)((0,L.Z)({},ve.props.style||{}),Be),onClick:function(He){ve.props&&ve.props.onClick&&ve.props.onClick(He),J.focusOnSelect&&J.focusOnSelect(At)}}))),we=dt+ie,we<Ft&&(ve=Mt),ae=j((0,L.Z)((0,L.Z)({},J),{},{index:we})),ot.push(i.cloneElement(ve,{key:"postcloned"+_e(ve,we),"data-index":we,tabIndex:"-1",className:X()(ae,Le),"aria-hidden":!ae["slick-active"],style:(0,L.Z)((0,L.Z)({},ve.props.style||{}),Be),onClick:function(He){ve.props&&ve.props.onClick&&ve.props.onClick(He),J.focusOnSelect&&J.focusOnSelect(At)}}))}}),J.rtl?Ct.concat(M,ot).reverse():Ct.concat(M,ot)},Te=function(Bt){function J(){var we;(0,he.Z)(this,J);for(var M=arguments.length,Ct=new Array(M),ot=0;ot<M;ot++)Ct[ot]=arguments[ot];return we=Ge(this,J,[].concat(Ct)),(0,x.Z)(we,"node",null),(0,x.Z)(we,"handleRef",function(dt){we.node=dt}),we}return(0,l.Z)(J,Bt),(0,Z.Z)(J,[{key:"render",value:function(){var M=Ie(this.props),Ct=this.props,ot=Ct.onMouseEnter,dt=Ct.onMouseOver,$t=Ct.onMouseLeave,Ft={onMouseEnter:ot,onMouseOver:dt,onMouseLeave:$t};return i.createElement("div",(0,K.Z)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},Ft),M)}}])}(i.PureComponent);function ze(Bt,J,we){return J=(0,Y.Z)(J),(0,g.Z)(Bt,(0,W.Z)()?Reflect.construct(J,we||[],(0,Y.Z)(Bt).constructor):J.apply(Bt,we))}var Ue=function(J){var we;return J.infinite?we=Math.ceil(J.slideCount/J.slidesToScroll):we=Math.ceil((J.slideCount-J.slidesToShow)/J.slidesToScroll)+1,we},ft=function(Bt){function J(){return(0,he.Z)(this,J),ze(this,J,arguments)}return(0,l.Z)(J,Bt),(0,Z.Z)(J,[{key:"clickHandler",value:function(M,Ct){Ct.preventDefault(),this.props.clickHandler(M)}},{key:"render",value:function(){for(var M=this.props,Ct=M.onMouseEnter,ot=M.onMouseOver,dt=M.onMouseLeave,$t=M.infinite,Ft=M.slidesToScroll,Mt=M.slidesToShow,ie=M.slideCount,ve=M.currentSlide,At=Ue({slideCount:ie,slidesToScroll:Ft,slidesToShow:Mt,infinite:$t}),Be={onMouseEnter:Ct,onMouseOver:ot,onMouseLeave:dt},Le=[],ae=0;ae<At;ae++){var Re=(ae+1)*Ft-1,$e=$t?Re:Q(Re,0,ie-1),He=$e-(Ft-1),ut=$t?He:Q(He,0,ie-1),rn=X()({"slick-active":$t?ve>=ut&&ve<=$e:ve===ut}),on={message:"dots",index:ae,slidesToScroll:Ft,currentSlide:ve},Ve=this.clickHandler.bind(this,on);Le=Le.concat(i.createElement("li",{key:ae,className:rn},i.cloneElement(this.props.customPaging(ae),{onClick:Ve})))}return i.cloneElement(this.props.appendDots(Le),(0,L.Z)({className:this.props.dotsClass},Be))}}])}(i.PureComponent);function de(Bt,J,we){return J=(0,Y.Z)(J),(0,g.Z)(Bt,(0,W.Z)()?Reflect.construct(J,we||[],(0,Y.Z)(Bt).constructor):J.apply(Bt,we))}var xe=function(Bt){function J(){return(0,he.Z)(this,J),de(this,J,arguments)}return(0,l.Z)(J,Bt),(0,Z.Z)(J,[{key:"clickHandler",value:function(M,Ct){Ct&&Ct.preventDefault(),this.props.clickHandler(M,Ct)}},{key:"render",value:function(){var M={"slick-arrow":!0,"slick-prev":!0},Ct=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(M["slick-disabled"]=!0,Ct=null);var ot={key:"0","data-role":"none",className:X()(M),style:{display:"block"},onClick:Ct},dt={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},$t;return this.props.prevArrow?$t=i.cloneElement(this.props.prevArrow,(0,L.Z)((0,L.Z)({},ot),dt)):$t=i.createElement("button",(0,K.Z)({key:"0",type:"button"},ot)," ","Previous"),$t}}])}(i.PureComponent),Ot=function(Bt){function J(){return(0,he.Z)(this,J),de(this,J,arguments)}return(0,l.Z)(J,Bt),(0,Z.Z)(J,[{key:"clickHandler",value:function(M,Ct){Ct&&Ct.preventDefault(),this.props.clickHandler(M,Ct)}},{key:"render",value:function(){var M={"slick-arrow":!0,"slick-next":!0},Ct=this.clickHandler.bind(this,{message:"next"});k(this.props)||(M["slick-disabled"]=!0,Ct=null);var ot={key:"1","data-role":"none",className:X()(M),style:{display:"block"},onClick:Ct},dt={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},$t;return this.props.nextArrow?$t=i.cloneElement(this.props.nextArrow,(0,L.Z)((0,L.Z)({},ot),dt)):$t=i.createElement("button",(0,K.Z)({key:"1",type:"button"},ot)," ","Next"),$t}}])}(i.PureComponent),_t=u(76374),Pt=["animating"];function kt(Bt,J,we){return J=(0,Y.Z)(J),(0,g.Z)(Bt,(0,W.Z)()?Reflect.construct(J,we||[],(0,Y.Z)(Bt).constructor):J.apply(Bt,we))}var mt=function(Bt){function J(we){var M;(0,he.Z)(this,J),M=kt(this,J,[we]),(0,x.Z)(M,"listRefHandler",function(ot){return M.list=ot}),(0,x.Z)(M,"trackRefHandler",function(ot){return M.track=ot}),(0,x.Z)(M,"adaptHeight",function(){if(M.props.adaptiveHeight&&M.list){var ot=M.list.querySelector('[data-index="'.concat(M.state.currentSlide,'"]'));M.list.style.height=We(ot)+"px"}}),(0,x.Z)(M,"componentDidMount",function(){if(M.props.onInit&&M.props.onInit(),M.props.lazyLoad){var ot=I((0,L.Z)((0,L.Z)({},M.props),M.state));ot.length>0&&(M.setState(function($t){return{lazyLoadedList:$t.lazyLoadedList.concat(ot)}}),M.props.onLazyLoad&&M.props.onLazyLoad(ot))}var dt=(0,L.Z)({listRef:M.list,trackRef:M.track},M.props);M.updateState(dt,!0,function(){M.adaptHeight(),M.props.autoplay&&M.autoPlay("playing")}),M.props.lazyLoad==="progressive"&&(M.lazyLoadTimer=setInterval(M.progressiveLazyLoad,1e3)),M.ro=new _t.Z(function(){M.state.animating?(M.onWindowResized(!1),M.callbackTimers.push(setTimeout(function(){return M.onWindowResized()},M.props.speed))):M.onWindowResized()}),M.ro.observe(M.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function($t){$t.onfocus=M.props.pauseOnFocus?M.onSlideFocus:null,$t.onblur=M.props.pauseOnFocus?M.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",M.onWindowResized):window.attachEvent("onresize",M.onWindowResized)}),(0,x.Z)(M,"componentWillUnmount",function(){M.animationEndCallback&&clearTimeout(M.animationEndCallback),M.lazyLoadTimer&&clearInterval(M.lazyLoadTimer),M.callbackTimers.length&&(M.callbackTimers.forEach(function(ot){return clearTimeout(ot)}),M.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",M.onWindowResized):window.detachEvent("onresize",M.onWindowResized),M.autoplayTimer&&clearInterval(M.autoplayTimer),M.ro.disconnect()}),(0,x.Z)(M,"componentDidUpdate",function(ot){if(M.checkImagesLoad(),M.props.onReInit&&M.props.onReInit(),M.props.lazyLoad){var dt=I((0,L.Z)((0,L.Z)({},M.props),M.state));dt.length>0&&(M.setState(function(Mt){return{lazyLoadedList:Mt.lazyLoadedList.concat(dt)}}),M.props.onLazyLoad&&M.props.onLazyLoad(dt))}M.adaptHeight();var $t=(0,L.Z)((0,L.Z)({listRef:M.list,trackRef:M.track},M.props),M.state),Ft=M.didPropsChange(ot);Ft&&M.updateState($t,Ft,function(){M.state.currentSlide>=i.Children.count(M.props.children)&&M.changeSlide({message:"index",index:i.Children.count(M.props.children)-M.props.slidesToShow,currentSlide:M.state.currentSlide}),(ot.autoplay!==M.props.autoplay||ot.autoplaySpeed!==M.props.autoplaySpeed)&&(!ot.autoplay&&M.props.autoplay?M.autoPlay("playing"):M.props.autoplay?M.autoPlay("update"):M.pause("paused"))})}),(0,x.Z)(M,"onWindowResized",function(ot){M.debouncedResize&&M.debouncedResize.cancel(),M.debouncedResize=(0,$.D)(50,function(){return M.resizeWindow(ot)}),M.debouncedResize()}),(0,x.Z)(M,"resizeWindow",function(){var ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,dt=!!(M.track&&M.track.node);if(dt){var $t=(0,L.Z)((0,L.Z)({listRef:M.list,trackRef:M.track},M.props),M.state);M.updateState($t,ot,function(){M.props.autoplay?M.autoPlay("update"):M.pause("paused")}),M.setState({animating:!1}),clearTimeout(M.animationEndCallback),delete M.animationEndCallback}}),(0,x.Z)(M,"updateState",function(ot,dt,$t){var Ft=ee(ot);ot=(0,L.Z)((0,L.Z)((0,L.Z)({},ot),Ft),{},{slideIndex:Ft.currentSlide});var Mt=Fe(ot);ot=(0,L.Z)((0,L.Z)({},ot),{},{left:Mt});var ie=ht(ot);(dt||i.Children.count(M.props.children)!==i.Children.count(ot.children))&&(Ft.trackStyle=ie),M.setState(Ft,$t)}),(0,x.Z)(M,"ssrInit",function(){if(M.props.variableWidth){var ot=0,dt=0,$t=[],Ft=jt((0,L.Z)((0,L.Z)((0,L.Z)({},M.props),M.state),{},{slideCount:M.props.children.length})),Mt=bt((0,L.Z)((0,L.Z)((0,L.Z)({},M.props),M.state),{},{slideCount:M.props.children.length}));M.props.children.forEach(function(Ve){$t.push(Ve.props.style.width),ot+=Ve.props.style.width});for(var ie=0;ie<Ft;ie++)dt+=$t[$t.length-1-ie],ot+=$t[$t.length-1-ie];for(var ve=0;ve<Mt;ve++)ot+=$t[ve];for(var At=0;At<M.state.currentSlide;At++)dt+=$t[At];var Be={width:ot+"px",left:-dt+"px"};if(M.props.centerMode){var Le="".concat($t[M.state.currentSlide],"px");Be.left="calc(".concat(Be.left," + (100% - ").concat(Le,") / 2 ) ")}return{trackStyle:Be}}var ae=i.Children.count(M.props.children),Re=(0,L.Z)((0,L.Z)((0,L.Z)({},M.props),M.state),{},{slideCount:ae}),$e=jt(Re)+bt(Re)+ae,He=100/M.props.slidesToShow*$e,ut=100/$e,rn=-ut*(jt(Re)+M.state.currentSlide)*He/100;M.props.centerMode&&(rn+=(100-ut*He/100)/2);var on={width:He+"%",left:rn+"%"};return{slideWidth:ut+"%",trackStyle:on}}),(0,x.Z)(M,"checkImagesLoad",function(){var ot=M.list&&M.list.querySelectorAll&&M.list.querySelectorAll(".slick-slide img")||[],dt=ot.length,$t=0;Array.prototype.forEach.call(ot,function(Ft){var Mt=function(){return++$t&&$t>=dt&&M.onWindowResized()};if(!Ft.onclick)Ft.onclick=function(){return Ft.parentNode.focus()};else{var ie=Ft.onclick;Ft.onclick=function(ve){ie(ve),Ft.parentNode.focus()}}Ft.onload||(M.props.lazyLoad?Ft.onload=function(){M.adaptHeight(),M.callbackTimers.push(setTimeout(M.onWindowResized,M.props.speed))}:(Ft.onload=Mt,Ft.onerror=function(){Mt(),M.props.onLazyLoadError&&M.props.onLazyLoadError()}))})}),(0,x.Z)(M,"progressiveLazyLoad",function(){for(var ot=[],dt=(0,L.Z)((0,L.Z)({},M.props),M.state),$t=M.state.currentSlide;$t<M.state.slideCount+bt(dt);$t++)if(M.state.lazyLoadedList.indexOf($t)<0){ot.push($t);break}for(var Ft=M.state.currentSlide-1;Ft>=-jt(dt);Ft--)if(M.state.lazyLoadedList.indexOf(Ft)<0){ot.push(Ft);break}ot.length>0?(M.setState(function(Mt){return{lazyLoadedList:Mt.lazyLoadedList.concat(ot)}}),M.props.onLazyLoad&&M.props.onLazyLoad(ot)):M.lazyLoadTimer&&(clearInterval(M.lazyLoadTimer),delete M.lazyLoadTimer)}),(0,x.Z)(M,"slideHandler",function(ot){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$t=M.props,Ft=$t.asNavFor,Mt=$t.beforeChange,ie=$t.onLazyLoad,ve=$t.speed,At=$t.afterChange,Be=M.state.currentSlide,Le=ne((0,L.Z)((0,L.Z)((0,L.Z)({index:ot},M.props),M.state),{},{trackRef:M.track,useCSS:M.props.useCSS&&!dt})),ae=Le.state,Re=Le.nextState;if(ae){Mt&&Mt(Be,ae.currentSlide);var $e=ae.lazyLoadedList.filter(function(He){return M.state.lazyLoadedList.indexOf(He)<0});ie&&$e.length>0&&ie($e),!M.props.waitForAnimate&&M.animationEndCallback&&(clearTimeout(M.animationEndCallback),At&&At(Be),delete M.animationEndCallback),M.setState(ae,function(){Ft&&M.asNavForIndex!==ot&&(M.asNavForIndex=ot,Ft.innerSlider.slideHandler(ot)),Re&&(M.animationEndCallback=setTimeout(function(){var He=Re.animating,ut=(0,y.Z)(Re,Pt);M.setState(ut,function(){M.callbackTimers.push(setTimeout(function(){return M.setState({animating:He})},10)),At&&At(ae.currentSlide),delete M.animationEndCallback})},ve))})}}),(0,x.Z)(M,"changeSlide",function(ot){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$t=(0,L.Z)((0,L.Z)({},M.props),M.state),Ft=se($t,ot);if(!(Ft!==0&&!Ft)&&(dt===!0?M.slideHandler(Ft,dt):M.slideHandler(Ft),M.props.autoplay&&M.autoPlay("update"),M.props.focusOnSelect)){var Mt=M.list.querySelectorAll(".slick-current");Mt[0]&&Mt[0].focus()}}),(0,x.Z)(M,"clickHandler",function(ot){M.clickable===!1&&(ot.stopPropagation(),ot.preventDefault()),M.clickable=!0}),(0,x.Z)(M,"keyHandler",function(ot){var dt=w(ot,M.props.accessibility,M.props.rtl);dt!==""&&M.changeSlide({message:dt})}),(0,x.Z)(M,"selectHandler",function(ot){M.changeSlide(ot)}),(0,x.Z)(M,"disableBodyScroll",function(){var ot=function($t){$t=$t||window.event,$t.preventDefault&&$t.preventDefault(),$t.returnValue=!1};window.ontouchmove=ot}),(0,x.Z)(M,"enableBodyScroll",function(){window.ontouchmove=null}),(0,x.Z)(M,"swipeStart",function(ot){M.props.verticalSwiping&&M.disableBodyScroll();var dt=D(ot,M.props.swipe,M.props.draggable);dt!==""&&M.setState(dt)}),(0,x.Z)(M,"swipeMove",function(ot){var dt=ce(ot,(0,L.Z)((0,L.Z)((0,L.Z)({},M.props),M.state),{},{trackRef:M.track,listRef:M.list,slideIndex:M.state.currentSlide}));dt&&(dt.swiping&&(M.clickable=!1),M.setState(dt))}),(0,x.Z)(M,"swipeEnd",function(ot){var dt=Oe(ot,(0,L.Z)((0,L.Z)((0,L.Z)({},M.props),M.state),{},{trackRef:M.track,listRef:M.list,slideIndex:M.state.currentSlide}));if(dt){var $t=dt.triggerSlideHandler;delete dt.triggerSlideHandler,M.setState(dt),$t!==void 0&&(M.slideHandler($t),M.props.verticalSwiping&&M.enableBodyScroll())}}),(0,x.Z)(M,"touchEnd",function(ot){M.swipeEnd(ot),M.clickable=!0}),(0,x.Z)(M,"slickPrev",function(){M.callbackTimers.push(setTimeout(function(){return M.changeSlide({message:"previous"})},0))}),(0,x.Z)(M,"slickNext",function(){M.callbackTimers.push(setTimeout(function(){return M.changeSlide({message:"next"})},0))}),(0,x.Z)(M,"slickGoTo",function(ot){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ot=Number(ot),isNaN(ot))return"";M.callbackTimers.push(setTimeout(function(){return M.changeSlide({message:"index",index:ot,currentSlide:M.state.currentSlide},dt)},0))}),(0,x.Z)(M,"play",function(){var ot;if(M.props.rtl)ot=M.state.currentSlide-M.props.slidesToScroll;else if(k((0,L.Z)((0,L.Z)({},M.props),M.state)))ot=M.state.currentSlide+M.props.slidesToScroll;else return!1;M.slideHandler(ot)}),(0,x.Z)(M,"autoPlay",function(ot){M.autoplayTimer&&clearInterval(M.autoplayTimer);var dt=M.state.autoplaying;if(ot==="update"){if(dt==="hovered"||dt==="focused"||dt==="paused")return}else if(ot==="leave"){if(dt==="paused"||dt==="focused")return}else if(ot==="blur"&&(dt==="paused"||dt==="hovered"))return;M.autoplayTimer=setInterval(M.play,M.props.autoplaySpeed+50),M.setState({autoplaying:"playing"})}),(0,x.Z)(M,"pause",function(ot){M.autoplayTimer&&(clearInterval(M.autoplayTimer),M.autoplayTimer=null);var dt=M.state.autoplaying;ot==="paused"?M.setState({autoplaying:"paused"}):ot==="focused"?(dt==="hovered"||dt==="playing")&&M.setState({autoplaying:"focused"}):dt==="playing"&&M.setState({autoplaying:"hovered"})}),(0,x.Z)(M,"onDotsOver",function(){return M.props.autoplay&&M.pause("hovered")}),(0,x.Z)(M,"onDotsLeave",function(){return M.props.autoplay&&M.state.autoplaying==="hovered"&&M.autoPlay("leave")}),(0,x.Z)(M,"onTrackOver",function(){return M.props.autoplay&&M.pause("hovered")}),(0,x.Z)(M,"onTrackLeave",function(){return M.props.autoplay&&M.state.autoplaying==="hovered"&&M.autoPlay("leave")}),(0,x.Z)(M,"onSlideFocus",function(){return M.props.autoplay&&M.pause("focused")}),(0,x.Z)(M,"onSlideBlur",function(){return M.props.autoplay&&M.state.autoplaying==="focused"&&M.autoPlay("blur")}),(0,x.Z)(M,"render",function(){var ot=X()("slick-slider",M.props.className,{"slick-vertical":M.props.vertical,"slick-initialized":!0}),dt=(0,L.Z)((0,L.Z)({},M.props),M.state),$t=_(dt,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),Ft=M.props.pauseOnHover;$t=(0,L.Z)((0,L.Z)({},$t),{},{onMouseEnter:Ft?M.onTrackOver:null,onMouseLeave:Ft?M.onTrackLeave:null,onMouseOver:Ft?M.onTrackOver:null,focusOnSelect:M.props.focusOnSelect&&M.clickable?M.selectHandler:null});var Mt;if(M.props.dots===!0&&M.state.slideCount>=M.props.slidesToShow){var ie=_(dt,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),ve=M.props.pauseOnDotsHover;ie=(0,L.Z)((0,L.Z)({},ie),{},{clickHandler:M.changeSlide,onMouseEnter:ve?M.onDotsLeave:null,onMouseOver:ve?M.onDotsOver:null,onMouseLeave:ve?M.onDotsLeave:null}),Mt=i.createElement(ft,ie)}var At,Be,Le=_(dt,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Le.clickHandler=M.changeSlide,M.props.arrows&&(At=i.createElement(xe,Le),Be=i.createElement(Ot,Le));var ae=null;M.props.vertical&&(ae={height:M.state.listHeight});var Re=null;M.props.vertical===!1?M.props.centerMode===!0&&(Re={padding:"0px "+M.props.centerPadding}):M.props.centerMode===!0&&(Re={padding:M.props.centerPadding+" 0px"});var $e=(0,L.Z)((0,L.Z)({},ae),Re),He=M.props.touchMove,ut={className:"slick-list",style:$e,onClick:M.clickHandler,onMouseDown:He?M.swipeStart:null,onMouseMove:M.state.dragging&&He?M.swipeMove:null,onMouseUp:He?M.swipeEnd:null,onMouseLeave:M.state.dragging&&He?M.swipeEnd:null,onTouchStart:He?M.swipeStart:null,onTouchMove:M.state.dragging&&He?M.swipeMove:null,onTouchEnd:He?M.touchEnd:null,onTouchCancel:M.state.dragging&&He?M.swipeEnd:null,onKeyDown:M.props.accessibility?M.keyHandler:null},rn={className:ot,dir:"ltr",style:M.props.style};return M.props.unslick&&(ut={className:"slick-list"},rn={className:ot,style:M.props.style}),i.createElement("div",rn,M.props.unslick?"":At,i.createElement("div",(0,K.Z)({ref:M.listRefHandler},ut),i.createElement(Te,(0,K.Z)({ref:M.trackRefHandler},$t),M.props.children)),M.props.unslick?"":Be,M.props.unslick?"":Mt)}),M.list=null,M.track=null,M.state=(0,L.Z)((0,L.Z)({},A),{},{currentSlide:M.props.initialSlide,targetSlide:M.props.initialSlide?M.props.initialSlide:0,slideCount:i.Children.count(M.props.children)}),M.callbackTimers=[],M.clickable=!0,M.debouncedResize=null;var Ct=M.ssrInit();return M.state=(0,L.Z)((0,L.Z)({},M.state),Ct),M}return(0,l.Z)(J,Bt),(0,Z.Z)(J,[{key:"didPropsChange",value:function(M){for(var Ct=!1,ot=0,dt=Object.keys(this.props);ot<dt.length;ot++){var $t=dt[ot];if(!M.hasOwnProperty($t)){Ct=!0;break}if(!((0,N.Z)(M[$t])==="object"||typeof M[$t]=="function"||isNaN(M[$t]))&&M[$t]!==this.props[$t]){Ct=!0;break}}return Ct||i.Children.count(this.props.children)!==i.Children.count(M.children)}}])}(i.Component),Vt=u(7861),Nt=u.n(Vt);function De(Bt,J,we){return J=(0,Y.Z)(J),(0,g.Z)(Bt,(0,W.Z)()?Reflect.construct(J,we||[],(0,Y.Z)(Bt).constructor):J.apply(Bt,we))}var gt=function(Bt){function J(we){var M;return(0,he.Z)(this,J),M=De(this,J,[we]),(0,x.Z)(M,"innerSliderRefHandler",function(Ct){return M.innerSlider=Ct}),(0,x.Z)(M,"slickPrev",function(){return M.innerSlider.slickPrev()}),(0,x.Z)(M,"slickNext",function(){return M.innerSlider.slickNext()}),(0,x.Z)(M,"slickGoTo",function(Ct){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return M.innerSlider.slickGoTo(Ct,ot)}),(0,x.Z)(M,"slickPause",function(){return M.innerSlider.pause("paused")}),(0,x.Z)(M,"slickPlay",function(){return M.innerSlider.autoPlay("play")}),M.state={breakpoint:null},M._responsiveMediaHandlers=[],M}return(0,l.Z)(J,Bt),(0,Z.Z)(J,[{key:"media",value:function(M,Ct){var ot=window.matchMedia(M),dt=function(Ft){var Mt=Ft.matches;Mt&&Ct()};ot.addListener(dt),dt(ot),this._responsiveMediaHandlers.push({mql:ot,query:M,listener:dt})}},{key:"componentDidMount",value:function(){var M=this;if(this.props.responsive){var Ct=this.props.responsive.map(function(dt){return dt.breakpoint});Ct.sort(function(dt,$t){return dt-$t}),Ct.forEach(function(dt,$t){var Ft;$t===0?Ft=Nt()({minWidth:0,maxWidth:dt}):Ft=Nt()({minWidth:Ct[$t-1]+1,maxWidth:dt}),Ne()&&M.media(Ft,function(){M.setState({breakpoint:dt})})});var ot=Nt()({minWidth:Ct.slice(-1)[0]});Ne()&&this.media(ot,function(){M.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(M){M.mql.removeListener(M.listener)})}},{key:"render",value:function(){var M=this,Ct,ot;this.state.breakpoint?(ot=this.props.responsive.filter(function(ae){return ae.breakpoint===M.state.breakpoint}),Ct=ot[0].settings==="unslick"?"unslick":(0,L.Z)((0,L.Z)((0,L.Z)({},R),this.props),ot[0].settings)):Ct=(0,L.Z)((0,L.Z)({},R),this.props),Ct.centerMode&&(Ct.slidesToScroll>1,Ct.slidesToScroll=1),Ct.fade&&(Ct.slidesToShow>1,Ct.slidesToScroll>1,Ct.slidesToShow=1,Ct.slidesToScroll=1);var dt=i.Children.toArray(this.props.children);dt=dt.filter(function(ae){return typeof ae=="string"?!!ae.trim():!!ae}),Ct.variableWidth&&(Ct.rows>1||Ct.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),Ct.variableWidth=!1);for(var $t=[],Ft=null,Mt=0;Mt<dt.length;Mt+=Ct.rows*Ct.slidesPerRow){for(var ie=[],ve=Mt;ve<Mt+Ct.rows*Ct.slidesPerRow;ve+=Ct.slidesPerRow){for(var At=[],Be=ve;Be<ve+Ct.slidesPerRow&&(Ct.variableWidth&&dt[Be].props.style&&(Ft=dt[Be].props.style.width),!(Be>=dt.length));Be+=1)At.push(i.cloneElement(dt[Be],{key:100*Mt+10*ve+Be,tabIndex:-1,style:{width:"".concat(100/Ct.slidesPerRow,"%"),display:"inline-block"}}));ie.push(i.createElement("div",{key:10*Mt+ve},At))}Ct.variableWidth?$t.push(i.createElement("div",{key:Mt,style:{width:Ft}},ie)):$t.push(i.createElement("div",{key:Mt},ie))}if(Ct==="unslick"){var Le="regular slider "+(this.props.className||"");return i.createElement("div",{className:Le},dt)}else $t.length<=Ct.slidesToShow&&!Ct.infinite&&(Ct.unslick=!0);return i.createElement(mt,(0,K.Z)({style:this.props.style,ref:this.innerSliderRefHandler},Pe(Ct)),$t)}}])}(i.Component),E=gt,S=u(48755),je=u(36237),G=u(63356),Ce=u(16931);const en="--dot-duration",rt=Bt=>{const{componentCls:J,antCls:we}=Bt;return{[J]:Object.assign(Object.assign({},(0,G.Wf)(Bt)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${we}-radio-input, input${we}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${we}-radio-input, input${we}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},st=Bt=>{const{componentCls:J,motionDurationSlow:we,arrowSize:M,arrowOffset:Ct}=Bt,ot=Bt.calc(M).div(Math.SQRT2).equal();return{[J]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:M,height:M,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${we}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:Bt.calc(M).sub(ot).div(2).equal(),insetInlineStart:Bt.calc(M).sub(ot).div(2).equal(),display:"inline-block",width:ot,height:ot,border:"0 solid currentcolor",borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:Ct,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:Ct,"&::after":{transform:"rotate(135deg)"}}}}},xt=Bt=>{const{componentCls:J,dotOffset:we,dotWidth:M,dotHeight:Ct,dotGap:ot,colorBgContainer:dt,motionDurationSlow:$t}=Bt;return{[J]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:we},"&-top":{top:we,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:M,height:Ct,marginInline:ot,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${$t}`,borderRadius:Ct,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:"100%",height:Ct,content:'""',background:dt,borderRadius:Ct,opacity:1,outline:"none",cursor:"pointer",overflow:"hidden",transform:"translate3d(-100%, 0, 0)"},button:{position:"relative",display:"block",width:"100%",height:Ct,padding:0,color:"transparent",fontSize:0,background:dt,border:0,borderRadius:Ct,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${$t}`,overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:Bt.calc(ot).mul(-1).equal(),content:'""'}},"&.slick-active":{width:Bt.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{transform:"translate3d(0, 0, 0)",transition:`transform var(${en}) ease-out`}}}}}}},pe=Bt=>{const{componentCls:J,dotOffset:we,arrowOffset:M,marginXXS:Ct}=Bt,ot={width:Bt.dotHeight,height:Bt.dotWidth};return{[`${J}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:M,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:M,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:Bt.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:we},"&-right":{insetInlineEnd:we,insetInlineStart:"auto"},li:Object.assign(Object.assign({},ot),{margin:`${(0,je.unit)(Ct)} 0`,verticalAlign:"baseline",button:ot,"&::after":Object.assign(Object.assign({},ot),{height:0}),"&.slick-active":Object.assign(Object.assign({},ot),{button:ot,"&::after":Object.assign(Object.assign({},ot),{transition:`height var(${en}) ease-out`})})})}}}},Ee=Bt=>{const{componentCls:J}=Bt;return[{[`${J}-rtl`]:{direction:"rtl",".slick-dots":{[`${J}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${J}-vertical`]:{".slick-dots":{[`${J}-rtl&`]:{flexDirection:"column"}}}}]},nt=Bt=>({arrowSize:16,arrowOffset:Bt.marginXS,dotWidth:16,dotHeight:3,dotGap:Bt.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24});var Ze=(0,Ce.I$)("Carousel",Bt=>[rt(Bt),st(Bt),xt(Bt),pe(Bt),Ee(Bt)],nt,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),z=function(Bt,J){var we={};for(var M in Bt)Object.prototype.hasOwnProperty.call(Bt,M)&&J.indexOf(M)<0&&(we[M]=Bt[M]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,M=Object.getOwnPropertySymbols(Bt);Ct<M.length;Ct++)J.indexOf(M[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Bt,M[Ct])&&(we[M[Ct]]=Bt[M[Ct]]);return we};const St="slick-dots",fe=Bt=>{var{currentSlide:J,slideCount:we}=Bt,M=z(Bt,["currentSlide","slideCount"]);return i.createElement("button",Object.assign({type:"button"},M))};var dn=i.forwardRef((Bt,J)=>{const{dots:we=!0,arrows:M=!1,prevArrow:Ct=i.createElement(fe,{"aria-label":"prev"}),nextArrow:ot=i.createElement(fe,{"aria-label":"next"}),draggable:dt=!1,waitForAnimate:$t=!1,dotPosition:Ft="bottom",vertical:Mt=Ft==="left"||Ft==="right",rootClassName:ie,className:ve,style:At,id:Be,autoplay:Le=!1,autoplaySpeed:ae=3e3}=Bt,Re=z(Bt,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id","autoplay","autoplaySpeed"]),{getPrefixCls:$e,direction:He,className:ut,style:rn}=(0,S.dj)("carousel"),on=i.useRef(null),Ve=function(sn){let vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;on.current.slickGoTo(sn,vn)};i.useImperativeHandle(J,()=>({goTo:Ve,autoPlay:on.current.innerSlider.autoPlay,innerSlider:on.current.innerSlider,prev:on.current.slickPrev,next:on.current.slickNext}),[on.current]);const lt=i.useRef(i.Children.count(Bt.children));i.useEffect(()=>{lt.current!==i.Children.count(Bt.children)&&(Ve(Bt.initialSlide||0,!1),lt.current=i.Children.count(Bt.children))},[Bt.children]);const wt=Object.assign({vertical:Mt,className:X()(ve,ut),style:Object.assign(Object.assign({},rn),At),autoplay:!!Le},Re);wt.effect==="fade"&&(wt.fade=!0);const Qt=$e("carousel",wt.prefixCls),Yt=!!we,ye=X()(St,`${St}-${Ft}`,typeof we=="boolean"?!1:we==null?void 0:we.className),[at,Lt,Dt]=Ze(Qt),zt=X()(Qt,{[`${Qt}-rtl`]:He==="rtl",[`${Qt}-vertical`]:wt.vertical},Lt,Dt,ie),un=Le&&(typeof Le=="object"?Le.dotDuration:!1)?{[en]:`${ae}ms`}:{};return at(i.createElement("div",{className:zt,id:Be,style:un},i.createElement(E,Object.assign({ref:on},wt,{dots:Yt,dotsClass:ye,arrows:M,prevArrow:Ct,nextArrow:ot,draggable:dt,verticalSwiping:Mt,autoplaySpeed:ae,waitForAnimate:$t}))))})},79939:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return on}});var i=u(77654),K=u(59301),L=u(92310),he=u.n(L),Z=u(60499),g=u(85899),W=u(72190),Y=u(42244),l=u(37463),x=u(6551),N=u(6089),y=u(18929),T=K.createContext({}),A=T,$=u(43749),H=u(18642),X="__rc_cascader_search_mark__",V=function(lt,wt,Qt){var Yt=Qt.label,ye=Yt===void 0?"":Yt;return wt.some(function(at){return String(at[ye]).toLowerCase().includes(lt.toLowerCase())})},R=function(lt,wt,Qt,Yt){return wt.map(function(ye){return ye[Yt.label]}).join(" / ")},Q=function(lt,wt,Qt,Yt,ye,at){var Lt=ye.filter,Dt=Lt===void 0?V:Lt,zt=ye.render,an=zt===void 0?R:zt,un=ye.limit,sn=un===void 0?50:un,vn=ye.sort;return K.useMemo(function(){var En=[];if(!lt)return[];function Rn(bn,Cn){var Bn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;bn.forEach(function(Pn){if(!(!vn&&sn!==!1&&sn>0&&En.length>=sn)){var ir=[].concat((0,i.Z)(Cn),[Pn]),In=Pn[Qt.children],zn=Bn||Pn.disabled;if((!In||In.length===0||at)&&Dt(lt,ir,{label:Qt.label})){var Yn;En.push((0,g.Z)((0,g.Z)({},Pn),{},(Yn={disabled:zn},(0,H.Z)(Yn,Qt.label,an(lt,ir,Yt,Qt)),(0,H.Z)(Yn,X,ir),(0,H.Z)(Yn,Qt.children,void 0),Yn)))}In&&Rn(Pn[Qt.children],ir,zn)}})}return Rn(wt,[]),vn&&En.sort(function(bn,Cn){return vn(bn[X],Cn[X],lt,Qt)}),sn!==!1&&sn>0?En.slice(0,sn):En},[lt,wt,Qt,Yt,an,at,Dt,vn,sn])},O=Q,I="__RC_CASCADER_SPLIT__",ue="SHOW_PARENT",Se="SHOW_CHILD";function me(Ve){return Ve.join(I)}function Ke(Ve){return Ve.map(me)}function Je(Ve){return Ve.split(I)}function ke(Ve){var lt=Ve||{},wt=lt.label,Qt=lt.value,Yt=lt.children,ye=Qt||"value";return{label:wt||"label",value:ye,key:ye,children:Yt||"children"}}function We(Ve,lt){var wt,Qt;return(wt=Ve.isLeaf)!==null&&wt!==void 0?wt:!((Qt=Ve[lt.children])!==null&&Qt!==void 0&&Qt.length)}function oe(Ve){var lt=Ve.parentElement;if(lt){var wt=Ve.offsetTop-lt.offsetTop;wt-lt.scrollTop<0?lt.scrollTo({top:wt}):wt+Ve.offsetHeight-lt.scrollTop>lt.offsetHeight&<.scrollTo({top:wt+Ve.offsetHeight-lt.offsetHeight})}}function k(Ve,lt){return Ve.map(function(wt){var Qt;return(Qt=wt[X])===null||Qt===void 0?void 0:Qt.map(function(Yt){return Yt[lt.value]})})}function _(Ve){return Array.isArray(Ve)&&Array.isArray(Ve[0])}function ee(Ve){return Ve?_(Ve)?Ve:(Ve.length===0?[]:[Ve]).map(function(lt){return Array.isArray(lt)?lt:[lt]}):[]}function ne(Ve,lt,wt){var Qt=new Set(Ve),Yt=lt();return Ve.filter(function(ye){var at=Yt[ye],Lt=at?at.parent:null,Dt=at?at.children:null;return at&&at.node.disabled?!0:wt===Se?!(Dt&&Dt.some(function(zt){return zt.key&&Qt.has(zt.key)})):!(Lt&&!Lt.node.disabled&&Qt.has(Lt.key))})}function se(Ve,lt,wt){for(var Qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Yt=lt,ye=[],at=function(){var zt,an,un,sn=Ve[Lt],vn=(zt=Yt)===null||zt===void 0?void 0:zt.findIndex(function(Rn){var bn=Rn[wt.value];return Qt?String(bn)===String(sn):bn===sn}),En=vn!==-1?(an=Yt)===null||an===void 0?void 0:an[vn]:null;ye.push({value:(un=En==null?void 0:En[wt.value])!==null&&un!==void 0?un:sn,index:vn,option:En}),Yt=En==null?void 0:En[wt.children]},Lt=0;Lt<Ve.length;Lt+=1)at();return ye}var w=function(Ve,lt,wt,Qt,Yt){return K.useMemo(function(){var ye=Yt||function(at){var Lt=Qt?at.slice(-1):at,Dt=" / ";return Lt.every(function(zt){return["string","number"].includes((0,$.Z)(zt))})?Lt.join(Dt):Lt.reduce(function(zt,an,un){var sn=K.isValidElement(an)?K.cloneElement(an,{key:un}):an;return un===0?[sn]:[].concat((0,i.Z)(zt),[Dt,sn])},[])};return Ve.map(function(at){var Lt,Dt=se(at,lt,wt),zt=ye(Dt.map(function(un){var sn,vn=un.option,En=un.value;return(sn=vn==null?void 0:vn[wt.label])!==null&&sn!==void 0?sn:En}),Dt.map(function(un){var sn=un.option;return sn})),an=me(at);return{label:zt,value:an,key:an,valueCells:at,disabled:(Lt=Dt[Dt.length-1])===null||Lt===void 0||(Lt=Lt.option)===null||Lt===void 0?void 0:Lt.disabled}})},[Ve,lt,wt,Yt,Qt])};function D(Ve,lt){return K.useCallback(function(wt){var Qt=[],Yt=[];return wt.forEach(function(ye){var at=se(ye,Ve,lt);at.every(function(Lt){return Lt.option})?Yt.push(ye):Qt.push(ye)}),[Yt,Qt]},[Ve,lt])}var ce=u(34061),Oe=function(Ve,lt){var wt=K.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),Qt=K.useCallback(function(){return wt.current.options!==Ve&&(wt.current.options=Ve,wt.current.info=(0,ce.I8)(Ve,{fieldNames:lt,initWrapper:function(ye){return(0,g.Z)((0,g.Z)({},ye),{},{pathKeyEntities:{}})},processEntity:function(ye,at){var Lt=ye.nodes.map(function(Dt){return Dt[lt.value]}).join(I);at.pathKeyEntities[Lt]=ye,ye.key=Lt}})),wt.current.info.pathKeyEntities},[lt,Ve]);return Qt};function ct(Ve,lt){var wt=K.useMemo(function(){return lt||[]},[lt]),Qt=Oe(wt,Ve),Yt=K.useCallback(function(ye){var at=Qt();return ye.map(function(Lt){var Dt=at[Lt].nodes;return Dt.map(function(zt){return zt[Ve.value]})})},[Qt,Ve]);return[wt,Qt,Yt]}var Tt=u(48736);function Ae(Ve){return K.useMemo(function(){if(!Ve)return[!1,{}];var lt={matchInputWidth:!0,limit:50};return Ve&&(0,$.Z)(Ve)==="object"&&(lt=(0,g.Z)((0,g.Z)({},lt),Ve)),lt.limit<=0&&(lt.limit=!1),[!0,lt]},[Ve])}var qe=u(34643);function ht(Ve,lt,wt,Qt,Yt,ye,at,Lt){return function(Dt){if(!Ve)lt(Dt);else{var zt=me(Dt),an=Ke(wt),un=Ke(Qt),sn=an.includes(zt),vn=Yt.some(function(zn){return me(zn)===zt}),En=wt,Rn=Yt;if(vn&&!sn)Rn=Yt.filter(function(zn){return me(zn)!==zt});else{var bn=sn?an.filter(function(zn){return zn!==zt}):[].concat((0,i.Z)(an),[zt]),Cn=ye(),Bn;if(sn){var Pn=(0,qe.S)(bn,{checked:!1,halfCheckedKeys:un},Cn);Bn=Pn.checkedKeys}else{var ir=(0,qe.S)(bn,!0,Cn);Bn=ir.checkedKeys}var In=ne(Bn,ye,Lt);En=at(In)}lt([].concat((0,i.Z)(Rn),(0,i.Z)(En)))}}}function tt(Ve,lt,wt,Qt,Yt){return K.useMemo(function(){var ye=Yt(lt),at=(0,W.Z)(ye,2),Lt=at[0],Dt=at[1];if(!Ve||!lt.length)return[Lt,[],Dt];var zt=Ke(Lt),an=wt(),un=(0,qe.S)(zt,!0,an),sn=un.checkedKeys,vn=un.halfCheckedKeys;return[Qt(sn),Qt(vn),Dt]},[Ve,lt,wt,Qt,Yt])}var Fe=K.memo(function(Ve){var lt=Ve.children;return lt},function(Ve,lt){return!lt.open}),jt=Fe;function bt(Ve){var lt,wt=Ve.prefixCls,Qt=Ve.checked,Yt=Ve.halfChecked,ye=Ve.disabled,at=Ve.onClick,Lt=Ve.disableCheckbox,Dt=K.useContext(A),zt=Dt.checkable,an=typeof zt!="boolean"?zt:null;return K.createElement("span",{className:he()("".concat(wt),(lt={},(0,H.Z)(lt,"".concat(wt,"-checked"),Qt),(0,H.Z)(lt,"".concat(wt,"-indeterminate"),!Qt&&Yt),(0,H.Z)(lt,"".concat(wt,"-disabled"),ye||Lt),lt)),onClick:at},an)}var cn="__cascader_fix_label__";function vt(Ve){var lt=Ve.prefixCls,wt=Ve.multiple,Qt=Ve.options,Yt=Ve.activeValue,ye=Ve.prevValuePath,at=Ve.onToggleOpen,Lt=Ve.onSelect,Dt=Ve.onActive,zt=Ve.checkedSet,an=Ve.halfCheckedSet,un=Ve.loadingKeys,sn=Ve.isSelectable,vn=Ve.disabled,En="".concat(lt,"-menu"),Rn="".concat(lt,"-menu-item"),bn=K.useContext(A),Cn=bn.fieldNames,Bn=bn.changeOnSelect,Pn=bn.expandTrigger,ir=bn.expandIcon,In=bn.loadingIcon,zn=bn.dropdownMenuColumnStyle,Yn=bn.optionRender,tr=Pn==="hover",Jn=function(yn){return vn||yn},qt=K.useMemo(function(){return Qt.map(function(tn){var yn,Zn=tn.disabled,Ht=tn.disableCheckbox,Un=tn[X],er=(yn=tn[cn])!==null&&yn!==void 0?yn:tn[Cn.label],lr=tn[Cn.value],_r=We(tn,Cn),Ar=Un?Un.map(function(Tn){return Tn[Cn.value]}):[].concat((0,i.Z)(ye),[lr]),Sr=me(Ar),Vn=un.includes(Sr),An=zt.has(Sr),pn=an.has(Sr);return{disabled:Zn,label:er,value:lr,isLeaf:_r,isLoading:Vn,checked:An,halfChecked:pn,option:tn,disableCheckbox:Ht,fullPath:Ar,fullPathKey:Sr}})},[Qt,zt,Cn,an,un,ye]);return K.createElement("ul",{className:En,role:"menu"},qt.map(function(tn){var yn,Zn=tn.disabled,Ht=tn.label,Un=tn.value,er=tn.isLeaf,lr=tn.isLoading,_r=tn.checked,Ar=tn.halfChecked,Sr=tn.option,Vn=tn.fullPath,An=tn.fullPathKey,pn=tn.disableCheckbox,Tn=function(){if(!Jn(Zn)){var Er=(0,i.Z)(Vn);tr&&er&&Er.pop(),Dt(Er)}},Xn=function(){sn(Sr)&&!Jn(Zn)&&Lt(Vn,er)},nr;return typeof Sr.title=="string"?nr=Sr.title:typeof Ht=="string"&&(nr=Ht),K.createElement("li",{key:An,className:he()(Rn,(yn={},(0,H.Z)(yn,"".concat(Rn,"-expand"),!er),(0,H.Z)(yn,"".concat(Rn,"-active"),Yt===Un||Yt===An),(0,H.Z)(yn,"".concat(Rn,"-disabled"),Jn(Zn)),(0,H.Z)(yn,"".concat(Rn,"-loading"),lr),yn)),style:zn,role:"menuitemcheckbox",title:nr,"aria-checked":_r,"data-path-key":An,onClick:function(){Tn(),!pn&&(!wt||er)&&Xn()},onDoubleClick:function(){Bn&&at(!1)},onMouseEnter:function(){tr&&Tn()},onMouseDown:function(Er){Er.preventDefault()}},wt&&K.createElement(bt,{prefixCls:"".concat(lt,"-checkbox"),checked:_r,halfChecked:Ar,disabled:Jn(Zn)||pn,disableCheckbox:pn,onClick:function(Er){pn||(Er.stopPropagation(),Xn())}}),K.createElement("div",{className:"".concat(Rn,"-content")},Yn?Yn(Sr):Ht),!lr&&ir&&!er&&K.createElement("div",{className:"".concat(Rn,"-expand-icon")},ir),lr&&In&&K.createElement("div",{className:"".concat(Rn,"-loading-icon")},In))}))}var pt=function(lt,wt){var Qt=K.useContext(A),Yt=Qt.values,ye=Yt[0],at=K.useState([]),Lt=(0,W.Z)(at,2),Dt=Lt[0],zt=Lt[1];return K.useEffect(function(){lt||zt(ye||[])},[wt,ye]),[Dt,zt]},Qe=pt,Ne=u(10228),le=function(Ve,lt,wt,Qt,Yt,ye,at){var Lt=at.direction,Dt=at.searchValue,zt=at.toggleOpen,an=at.open,un=Lt==="rtl",sn=K.useMemo(function(){for(var zn=-1,Yn=lt,tr=[],Jn=[],qt=Qt.length,tn=k(lt,wt),yn=function(lr){var _r=Yn.findIndex(function(Ar,Sr){return(tn[Sr]?me(tn[Sr]):Ar[wt.value])===Qt[lr]});if(_r===-1)return 1;zn=_r,tr.push(zn),Jn.push(Qt[lr]),Yn=Yn[zn][wt.children]},Zn=0;Zn<qt&&Yn&&!yn(Zn);Zn+=1);for(var Ht=lt,Un=0;Un<tr.length-1;Un+=1)Ht=Ht[tr[Un]][wt.children];return[Jn,zn,Ht,tn]},[Qt,wt,lt]),vn=(0,W.Z)(sn,4),En=vn[0],Rn=vn[1],bn=vn[2],Cn=vn[3],Bn=function(Yn){Yt(Yn)},Pn=function(Yn){var tr=bn.length,Jn=Rn;Jn===-1&&Yn<0&&(Jn=tr);for(var qt=0;qt<tr;qt+=1){Jn=(Jn+Yn+tr)%tr;var tn=bn[Jn];if(tn&&!tn.disabled){var yn=En.slice(0,-1).concat(Cn[Jn]?me(Cn[Jn]):tn[wt.value]);Bn(yn);return}}},ir=function(){if(En.length>1){var Yn=En.slice(0,-1);Bn(Yn)}else zt(!1)},In=function(){var Yn,tr=((Yn=bn[Rn])===null||Yn===void 0?void 0:Yn[wt.children])||[],Jn=tr.find(function(tn){return!tn.disabled});if(Jn){var qt=[].concat((0,i.Z)(En),[Jn[wt.value]]);Bn(qt)}};K.useImperativeHandle(Ve,function(){return{onKeyDown:function(Yn){var tr=Yn.which;switch(tr){case Ne.Z.UP:case Ne.Z.DOWN:{var Jn=0;tr===Ne.Z.UP?Jn=-1:tr===Ne.Z.DOWN&&(Jn=1),Jn!==0&&Pn(Jn);break}case Ne.Z.LEFT:{if(Dt)break;un?In():ir();break}case Ne.Z.RIGHT:{if(Dt)break;un?ir():In();break}case Ne.Z.BACKSPACE:{Dt||ir();break}case Ne.Z.ENTER:{if(En.length){var qt=bn[Rn],tn=(qt==null?void 0:qt[X])||[];tn.length?ye(tn.map(function(yn){return yn[wt.value]}),tn[tn.length-1]):ye(En,bn[Rn])}break}case Ne.Z.ESC:zt(!1),an&&Yn.stopPropagation()}},onKeyUp:function(){}}})},Pe=K.forwardRef(function(Ve,lt){var wt,Qt,Yt,ye=Ve.prefixCls,at=Ve.multiple,Lt=Ve.searchValue,Dt=Ve.toggleOpen,zt=Ve.notFoundContent,an=Ve.direction,un=Ve.open,sn=Ve.disabled,vn=K.useRef(null),En=an==="rtl",Rn=K.useContext(A),bn=Rn.options,Cn=Rn.values,Bn=Rn.halfValues,Pn=Rn.fieldNames,ir=Rn.changeOnSelect,In=Rn.onSelect,zn=Rn.searchOptions,Yn=Rn.dropdownPrefixCls,tr=Rn.loadData,Jn=Rn.expandTrigger,qt=Yn||ye,tn=K.useState([]),yn=(0,W.Z)(tn,2),Zn=yn[0],Ht=yn[1],Un=function(Lr){if(!(!tr||Lt)){var Cr=se(Lr,bn,Pn),Fr=Cr.map(function(Gn){var ur=Gn.option;return ur}),Jt=Fr[Fr.length-1];if(Jt&&!We(Jt,Pn)){var On=me(Lr);Ht(function(Gn){return[].concat((0,i.Z)(Gn),[On])}),tr(Fr)}}};K.useEffect(function(){Zn.length&&Zn.forEach(function(Nr){var Lr=Je(Nr),Cr=se(Lr,bn,Pn,!0).map(function(Jt){var On=Jt.option;return On}),Fr=Cr[Cr.length-1];(!Fr||Fr[Pn.children]||We(Fr,Pn))&&Ht(function(Jt){return Jt.filter(function(On){return On!==Nr})})})},[bn,Zn,Pn]);var er=K.useMemo(function(){return new Set(Ke(Cn))},[Cn]),lr=K.useMemo(function(){return new Set(Ke(Bn))},[Bn]),_r=Qe(at,un),Ar=(0,W.Z)(_r,2),Sr=Ar[0],Vn=Ar[1],An=function(Lr){Vn(Lr),Un(Lr)},pn=function(Lr){if(sn)return!1;var Cr=Lr.disabled,Fr=We(Lr,Pn);return!Cr&&(Fr||ir||at)},Tn=function(Lr,Cr){var Fr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;In(Lr),!at&&(Cr||ir&&(Jn==="hover"||Fr))&&Dt(!1)},Xn=K.useMemo(function(){return Lt?zn:bn},[Lt,zn,bn]),nr=K.useMemo(function(){for(var Nr=[{options:Xn}],Lr=Xn,Cr=k(Lr,Pn),Fr=function(){var Gn=Sr[Jt],ur=Lr.find(function(jr,wr){return(Cr[wr]?me(Cr[wr]):jr[Pn.value])===Gn}),xr=ur==null?void 0:ur[Pn.children];if(!(xr!=null&&xr.length))return 1;Lr=xr,Nr.push({options:xr})},Jt=0;Jt<Sr.length&&!Fr();Jt+=1);return Nr},[Xn,Sr,Pn]),gr=function(Lr,Cr){pn(Cr)&&Tn(Lr,We(Cr,Pn),!0)};le(lt,Xn,Pn,Sr,An,gr,{direction:an,searchValue:Lt,toggleOpen:Dt,open:un}),K.useEffect(function(){if(!Lt)for(var Nr=0;Nr<Sr.length;Nr+=1){var Lr,Cr=Sr.slice(0,Nr+1),Fr=me(Cr),Jt=(Lr=vn.current)===null||Lr===void 0?void 0:Lr.querySelector('li[data-path-key="'.concat(Fr.replace(/\\{0,2}"/g,'\\"'),'"]'));Jt&&oe(Jt)}},[Sr,Lt]);var Er=!((wt=nr[0])!==null&&wt!==void 0&&(wt=wt.options)!==null&&wt!==void 0&&wt.length),Fn=[(Qt={},(0,H.Z)(Qt,Pn.value,"__EMPTY__"),(0,H.Z)(Qt,cn,zt),(0,H.Z)(Qt,"disabled",!0),Qt)],yr=(0,g.Z)((0,g.Z)({},Ve),{},{multiple:!Er&&at,onSelect:Tn,onActive:An,onToggleOpen:Dt,checkedSet:er,halfCheckedSet:lr,loadingKeys:Zn,isSelectable:pn}),Ir=Er?[{options:Fn}]:nr,Zr=Ir.map(function(Nr,Lr){var Cr=Sr.slice(0,Lr),Fr=Sr[Lr];return K.createElement(vt,(0,Z.Z)({key:Lr},yr,{prefixCls:qt,options:Nr.options,prevValuePath:Cr,activeValue:Fr}))});return K.createElement(jt,{open:un},K.createElement("div",{className:he()("".concat(qt,"-menus"),(Yt={},(0,H.Z)(Yt,"".concat(qt,"-menu-empty"),Er),(0,H.Z)(Yt,"".concat(qt,"-rtl"),En),Yt)),ref:vn},Zr))}),Ge=Pe,j=K.forwardRef(function(Ve,lt){var wt=(0,l.lk)();return K.createElement(Ge,(0,Z.Z)({},Ve,wt,{ref:lt}))}),P=j,_e=u(70425);function Ie(){}function Te(Ve){var lt,wt=Ve,Qt=wt.prefixCls,Yt=Qt===void 0?"rc-cascader":Qt,ye=wt.style,at=wt.className,Lt=wt.options,Dt=wt.checkable,zt=wt.defaultValue,an=wt.value,un=wt.fieldNames,sn=wt.changeOnSelect,vn=wt.onChange,En=wt.showCheckedStrategy,Rn=wt.loadData,bn=wt.expandTrigger,Cn=wt.expandIcon,Bn=Cn===void 0?">":Cn,Pn=wt.loadingIcon,ir=wt.direction,In=wt.notFoundContent,zn=In===void 0?"Not Found":In,Yn=wt.disabled,tr=!!Dt,Jn=(0,_e.C8)(zt,{value:an,postState:ee}),qt=(0,W.Z)(Jn,2),tn=qt[0],yn=qt[1],Zn=K.useMemo(function(){return ke(un)},[JSON.stringify(un)]),Ht=ct(Zn,Lt),Un=(0,W.Z)(Ht,3),er=Un[0],lr=Un[1],_r=Un[2],Ar=D(er,Zn),Sr=tt(tr,tn,lr,_r,Ar),Vn=(0,W.Z)(Sr,3),An=Vn[0],pn=Vn[1],Tn=Vn[2],Xn=(0,_e.zX)(function(Ir){if(yn(Ir),vn){var Zr=ee(Ir),Nr=Zr.map(function(Fr){return se(Fr,er,Zn).map(function(Jt){return Jt.option})}),Lr=tr?Zr:Zr[0],Cr=tr?Nr:Nr[0];vn(Lr,Cr)}}),nr=ht(tr,Xn,An,pn,Tn,lr,_r,En),gr=(0,_e.zX)(function(Ir){nr(Ir)}),Er=K.useMemo(function(){return{options:er,fieldNames:Zn,values:An,halfValues:pn,changeOnSelect:sn,onSelect:gr,checkable:Dt,searchOptions:[],dropdownPrefixCls:void 0,loadData:Rn,expandTrigger:bn,expandIcon:Bn,loadingIcon:Pn,dropdownMenuColumnStyle:void 0}},[er,Zn,An,pn,sn,gr,Dt,Rn,bn,Bn,Pn]),Fn="".concat(Yt,"-panel"),yr=!er.length;return K.createElement(A.Provider,{value:Er},K.createElement("div",{className:he()(Fn,(lt={},(0,H.Z)(lt,"".concat(Fn,"-rtl"),ir==="rtl"),(0,H.Z)(lt,"".concat(Fn,"-empty"),yr),lt),at),style:ye},yr?zn:K.createElement(Ge,{prefixCls:Yt,searchValue:"",multiple:tr,toggleOpen:Ie,open:!0,direction:ir,disabled:Yn})))}function ze(Ve){var lt=Ve.onPopupVisibleChange,wt=Ve.popupVisible,Qt=Ve.popupClassName,Yt=Ve.popupPlacement;warning(!lt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(wt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Qt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Yt===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ue(Ve,lt){if(Ve){var wt=function Qt(Yt){for(var ye=0;ye<Yt.length;ye++){var at=Yt[ye];if(at[lt==null?void 0:lt.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(at[lt==null?void 0:lt.children])&&Qt(at[lt==null?void 0:lt.children]))return!0}};wt(Ve)}}var ft=null,de=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],xe=K.forwardRef(function(Ve,lt){var wt=Ve.id,Qt=Ve.prefixCls,Yt=Qt===void 0?"rc-cascader":Qt,ye=Ve.fieldNames,at=Ve.defaultValue,Lt=Ve.value,Dt=Ve.changeOnSelect,zt=Ve.onChange,an=Ve.displayRender,un=Ve.checkable,sn=Ve.autoClearSearchValue,vn=sn===void 0?!0:sn,En=Ve.searchValue,Rn=Ve.onSearch,bn=Ve.showSearch,Cn=Ve.expandTrigger,Bn=Ve.options,Pn=Ve.dropdownPrefixCls,ir=Ve.loadData,In=Ve.popupVisible,zn=Ve.open,Yn=Ve.popupClassName,tr=Ve.dropdownClassName,Jn=Ve.dropdownMenuColumnStyle,qt=Ve.dropdownStyle,tn=Ve.popupPlacement,yn=Ve.placement,Zn=Ve.onDropdownVisibleChange,Ht=Ve.onPopupVisibleChange,Un=Ve.expandIcon,er=Un===void 0?">":Un,lr=Ve.loadingIcon,_r=Ve.children,Ar=Ve.dropdownMatchSelectWidth,Sr=Ar===void 0?!1:Ar,Vn=Ve.showCheckedStrategy,An=Vn===void 0?ue:Vn,pn=Ve.optionRender,Tn=(0,Y.Z)(Ve,de),Xn=(0,x.ZP)(wt),nr=!!un,gr=(0,y.Z)(at,{value:Lt,postState:ee}),Er=(0,W.Z)(gr,2),Fn=Er[0],yr=Er[1],Ir=K.useMemo(function(){return ke(ye)},[JSON.stringify(ye)]),Zr=ct(Ir,Bn),Nr=(0,W.Z)(Zr,3),Lr=Nr[0],Cr=Nr[1],Fr=Nr[2],Jt=(0,y.Z)("",{value:En,postState:function(Pr){return Pr||""}}),On=(0,W.Z)(Jt,2),Gn=On[0],ur=On[1],xr=function(Pr,Wr){ur(Pr),Wr.source!=="blur"&&Rn&&Rn(Pr)},jr=Ae(bn),wr=(0,W.Z)(jr,2),ni=wr[0],di=wr[1],Ei=O(Gn,Lr,Ir,Pn||Yt,di,Dt||nr),Dr=D(Lr,Ir),fr=tt(nr,Fn,Cr,Fr,Dr),yi=(0,W.Z)(fr,3),sr=yi[0],wi=yi[1],Yi=yi[2],Wi=K.useMemo(function(){var vr=Ke(sr),Pr=ne(vr,Cr,An);return[].concat((0,i.Z)(Yi),(0,i.Z)(Fr(Pr)))},[sr,Cr,Fr,Yi,An]),Mi=w(Wi,Lr,Ir,nr,an),Ni=(0,N.Z)(function(vr){if(yr(vr),zt){var Pr=ee(vr),Wr=Pr.map(function(Rr){return se(Rr,Lr,Ir).map(function(Mr){return Mr.option})}),Ci=nr?Pr:Pr[0],br=nr?Wr:Wr[0];zt(Ci,br)}}),Vr=ht(nr,Ni,sr,wi,Yi,Cr,Fr,An),Di=(0,N.Z)(function(vr){(!nr||vn)&&ur(""),Vr(vr)}),ra=function(Pr,Wr){if(Wr.type==="clear"){Ni([]);return}var Ci=Wr.values[0],br=Ci.valueCells;Di(br)},zi=zn!==void 0?zn:In,hi=tr||Yn,ki=yn||tn,Zi=function(Pr){Zn==null||Zn(Pr),Ht==null||Ht(Pr)},Br=K.useMemo(function(){return{options:Lr,fieldNames:Ir,values:sr,halfValues:wi,changeOnSelect:Dt,onSelect:Di,checkable:un,searchOptions:Ei,dropdownPrefixCls:Pn,loadData:ir,expandTrigger:Cn,expandIcon:er,loadingIcon:lr,dropdownMenuColumnStyle:Jn,optionRender:pn}},[Lr,Ir,sr,wi,Dt,Di,un,Ei,Pn,ir,Cn,er,lr,Jn,pn]),ei=!(Gn?Ei:Lr).length,pr=Gn&&di.matchInputWidth||ei?{}:{minWidth:"auto"};return K.createElement(A.Provider,{value:Br},K.createElement(l.Ac,(0,Z.Z)({},Tn,{ref:lt,id:Xn,prefixCls:Yt,autoClearSearchValue:vn,dropdownMatchSelectWidth:Sr,dropdownStyle:(0,g.Z)((0,g.Z)({},pr),qt),displayValues:Mi,onDisplayValuesChange:ra,mode:nr?"multiple":void 0,searchValue:Gn,onSearch:xr,showSearch:ni,OptionList:P,emptyOptions:ei,open:zi,dropdownClassName:hi,placement:ki,onDropdownVisibleChange:Zi,getRawInputElement:function(){return _r}})))});xe.SHOW_PARENT=ue,xe.SHOW_CHILD=Se,xe.Panel=Te;var Ot=xe,_t=Ot,Pt=u(2738),kt=u(75030),mt=u(86641),Vt=u(45915),Nt=u(82855),De=u(48755),gt=u(38406),E=u(2171),S=u(83397),je=u(31756),G=u(56553),Ce=u(24971),en=u(1722),rt=u(90376),st=u(68525),xt=u(90005),pe=u(70045);function Ee(Ve,lt){const{getPrefixCls:wt,direction:Qt,renderEmpty:Yt}=K.useContext(De.E_),ye=lt||Qt,at=wt("select",Ve),Lt=wt("cascader",Ve);return[at,Lt,ye,Yt]}var nt=Ee;function Ze(Ve,lt){return K.useMemo(()=>lt?K.createElement("span",{className:`${Ve}-checkbox-inner`}):!1,[lt])}var z=u(33853),St=u(58617),fe=u(38819),dn=(Ve,lt,wt)=>{let Qt=wt;wt||(Qt=lt?K.createElement(z.Z,null):K.createElement(fe.Z,null));const Yt=K.createElement("span",{className:`${Ve}-menu-item-loading-icon`},K.createElement(St.Z,{spin:!0}));return K.useMemo(()=>[Qt,Yt],[Qt])},Bt=u(56119),J=u(16931),we=u(36237),M=u(36170),Ct=u(63356),dt=Ve=>{const{prefixCls:lt,componentCls:wt}=Ve,Qt=`${wt}-menu-item`,Yt=`
|
|
|
&${Qt}-expand ${Qt}-expand-icon,
|
|
|
${Qt}-loading-icon
|
|
|
`;return[(0,M.C2)(`${lt}-checkbox`,Ve),{[wt]:{"&-checkbox":{top:0,marginInlineEnd:Ve.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${wt}-menu-empty`]:{[`${wt}-menu`]:{width:"100%",height:"auto",[Qt]:{color:Ve.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:Ve.controlItemWidth,height:Ve.dropdownHeight,margin:0,padding:Ve.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,we.unit)(Ve.lineWidth)} ${Ve.lineType} ${Ve.colorSplit}`},"&-item":Object.assign(Object.assign({},Ct.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Ve.optionPadding,lineHeight:Ve.lineHeight,cursor:"pointer",transition:`all ${Ve.motionDurationMid}`,borderRadius:Ve.borderRadiusSM,"&:hover":{background:Ve.controlItemBgHover},"&-disabled":{color:Ve.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Yt]:{color:Ve.colorTextDisabled}},[`&-active:not(${Qt}-disabled)`]:{"&, &:hover":{color:Ve.optionSelectedColor,fontWeight:Ve.optionSelectedFontWeight,backgroundColor:Ve.optionSelectedBg}},"&-content":{flex:"auto"},[Yt]:{marginInlineStart:Ve.paddingXXS,color:Ve.colorTextDescription,fontSize:Ve.fontSizeIcon},"&-keyword":{color:Ve.colorHighlight}})}}}]};const $t=Ve=>{const{componentCls:lt,antCls:wt}=Ve;return[{[lt]:{width:Ve.controlWidth}},{[`${lt}-dropdown`]:[{[`&${wt}-select-dropdown`]:{padding:0}},dt(Ve)]},{[`${lt}-dropdown-rtl`]:{direction:"rtl"}},(0,Bt.c)(Ve)]},Ft=Ve=>{const lt=Math.round((Ve.controlHeight-Ve.fontSize*Ve.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Ve.controlItemBgActive,optionSelectedFontWeight:Ve.fontWeightStrong,optionPadding:`${lt}px ${Ve.paddingSM}px`,menuPadding:Ve.paddingXXS,optionSelectedColor:Ve.colorText}};var Mt=(0,J.I$)("Cascader",Ve=>[$t(Ve)],Ft);const ie=Ve=>{const{componentCls:lt}=Ve;return{[`${lt}-panel`]:[dt(Ve),{display:"inline-flex",border:`${(0,we.unit)(Ve.lineWidth)} ${Ve.lineType} ${Ve.colorSplit}`,borderRadius:Ve.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${lt}-menus`]:{alignItems:"stretch"},[`${lt}-menu`]:{height:"auto"},"&-empty":{padding:Ve.paddingXXS}}]}};var ve=(0,J.A1)(["Cascader","Panel"],Ve=>ie(Ve),Ft);function At(Ve){const{prefixCls:lt,className:wt,multiple:Qt,rootClassName:Yt,notFoundContent:ye,direction:at,expandIcon:Lt,disabled:Dt}=Ve,zt=K.useContext(E.Z),an=Dt!=null?Dt:zt,[un,sn,vn,En]=nt(lt,at),Rn=(0,S.Z)(sn),[bn,Cn,Bn]=Mt(sn,Rn);ve(sn);const Pn=vn==="rtl",[ir,In]=dn(un,Pn,Lt),zn=ye||(En==null?void 0:En("Cascader"))||K.createElement(gt.Z,{componentName:"Cascader"}),Yn=Ze(sn,Qt);return bn(K.createElement(Te,Object.assign({},Ve,{checkable:Yn,prefixCls:sn,className:he()(wt,Cn,Yt,Bn,Rn),notFoundContent:zn,direction:vn,expandIcon:ir,loadingIcon:In,disabled:an})))}var Be=At,Le=function(Ve,lt){var wt={};for(var Qt in Ve)Object.prototype.hasOwnProperty.call(Ve,Qt)&<.indexOf(Qt)<0&&(wt[Qt]=Ve[Qt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Qt=Object.getOwnPropertySymbols(Ve);Yt<Qt.length;Yt++)lt.indexOf(Qt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Qt[Yt])&&(wt[Qt[Yt]]=Ve[Qt[Yt]]);return wt};const{SHOW_CHILD:ae,SHOW_PARENT:Re}=_t;function $e(Ve,lt,wt){const Qt=Ve.toLowerCase().split(lt).reduce((at,Lt,Dt)=>Dt===0?[Lt]:[].concat((0,i.Z)(at),[lt,Lt]),[]),Yt=[];let ye=0;return Qt.forEach((at,Lt)=>{const Dt=ye+at.length;let zt=Ve.slice(ye,Dt);ye=Dt,Lt%2===1&&(zt=K.createElement("span",{className:`${wt}-menu-item-keyword`,key:`separator-${Lt}`},zt)),Yt.push(zt)}),Yt}const He=(Ve,lt,wt,Qt)=>{const Yt=[],ye=Ve.toLowerCase();return lt.forEach((at,Lt)=>{Lt!==0&&Yt.push(" / ");let Dt=at[Qt.label];const zt=typeof Dt;(zt==="string"||zt==="number")&&(Dt=$e(String(Dt),ye,wt)),Yt.push(Dt)}),Yt},ut=K.forwardRef((Ve,lt)=>{var wt;const{prefixCls:Qt,size:Yt,disabled:ye,className:at,rootClassName:Lt,multiple:Dt,bordered:zt=!0,transitionName:an,choiceTransitionName:un="",popupClassName:sn,dropdownClassName:vn,expandIcon:En,placement:Rn,showSearch:bn,allowClear:Cn=!0,notFoundContent:Bn,direction:Pn,getPopupContainer:ir,status:In,showArrow:zn,builtinPlacements:Yn,style:tr,variant:Jn}=Ve,qt=Le(Ve,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),tn=(0,Pt.Z)(qt,["suffixIcon"]),{getPrefixCls:yn,getPopupContainer:Zn,className:Ht,style:Un}=(0,De.dj)("cascader"),{popupOverflow:er}=K.useContext(De.E_),{status:lr,hasFeedback:_r,isFormItemInput:Ar,feedbackIcon:Sr}=K.useContext(G.aM),Vn=(0,Nt.F)(lr,In),[An,pn,Tn,Xn]=nt(Qt,Pn),nr=Tn==="rtl",gr=yn(),Er=(0,S.Z)(An),[Fn,yr,Ir]=(0,rt.Z)(An,Er),Zr=(0,S.Z)(pn),[Nr]=Mt(pn,Zr),{compactSize:Lr,compactItemClassnames:Cr}=(0,pe.ri)(An,Pn),[Fr,Jt]=(0,Ce.Z)("cascader",Jn,zt),On=Bn||(Xn==null?void 0:Xn("Cascader"))||K.createElement(gt.Z,{componentName:"Cascader"}),Gn=he()(sn||vn,`${pn}-dropdown`,{[`${pn}-dropdown-rtl`]:Tn==="rtl"},Lt,Er,Zr,yr,Ir),ur=K.useMemo(()=>{if(!bn)return bn;let Ni={render:He};return typeof bn=="object"&&(Ni=Object.assign(Object.assign({},Ni),bn)),Ni},[bn]),xr=(0,je.Z)(Ni=>{var Vr;return(Vr=Yt!=null?Yt:Lr)!==null&&Vr!==void 0?Vr:Ni}),jr=K.useContext(E.Z),wr=ye!=null?ye:jr,[ni,di]=dn(An,nr,En),Ei=Ze(pn,Dt),Dr=(0,xt.Z)(Ve.suffixIcon,zn),{suffixIcon:fr,removeIcon:yi,clearIcon:sr}=(0,st.Z)(Object.assign(Object.assign({},Ve),{hasFeedback:_r,feedbackIcon:Sr,showSuffixIcon:Dr,multiple:Dt,prefixCls:An,componentName:"Cascader"})),wi=K.useMemo(()=>Rn!==void 0?Rn:nr?"bottomRight":"bottomLeft",[Rn,nr]),Yi=Cn===!0?{clearIcon:sr}:Cn,[Wi]=(0,kt.Cn)("SelectLike",(wt=tn.dropdownStyle)===null||wt===void 0?void 0:wt.zIndex),Mi=K.createElement(_t,Object.assign({prefixCls:An,className:he()(!Qt&&pn,{[`${An}-lg`]:xr==="large",[`${An}-sm`]:xr==="small",[`${An}-rtl`]:nr,[`${An}-${Fr}`]:Jt,[`${An}-in-form-item`]:Ar},(0,Nt.Z)(An,Vn,_r),Cr,Ht,at,Lt,Er,Zr,yr,Ir),disabled:wr,style:Object.assign(Object.assign({},Un),tr)},tn,{builtinPlacements:(0,en.Z)(Yn,er),direction:Tn,placement:wi,notFoundContent:On,allowClear:Yi,showSearch:ur,expandIcon:ni,suffixIcon:fr,removeIcon:yi,loadingIcon:di,checkable:Ei,dropdownClassName:Gn,dropdownPrefixCls:Qt||pn,dropdownStyle:Object.assign(Object.assign({},tn.dropdownStyle),{zIndex:Wi}),choiceTransitionName:(0,mt.m)(gr,"",un),transitionName:(0,mt.m)(gr,"slide-up",an),getPopupContainer:ir||Zn,ref:lt}));return Nr(Fn(Mi))}),rn=(0,Vt.Z)(ut,"dropdownAlign",Ve=>(0,Pt.Z)(Ve,["visible"]));ut.SHOW_PARENT=Re,ut.SHOW_CHILD=ae,ut.Panel=Be,ut._InternalPanelDoNotUseOrYouWillBeFired=rn;var on=ut},62673:function($n,Rt,u){"use strict";u.d(Rt,{default:function(){return Ke}});var i=u(59301),K=u(92310),L=u.n(K),he=u(16632),Z=u(8654),g=u(12919),W=u(63872),Y=u(48755),l=u(2171),x=u(83397),N=u(56553),T=i.createContext(null),A=u(36170),$=u(74632),H=function(Je,ke){var We={};for(var oe in Je)Object.prototype.hasOwnProperty.call(Je,oe)&&ke.indexOf(oe)<0&&(We[oe]=Je[oe]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,oe=Object.getOwnPropertySymbols(Je);k<oe.length;k++)ke.indexOf(oe[k])<0&&Object.prototype.propertyIsEnumerable.call(Je,oe[k])&&(We[oe[k]]=Je[oe[k]]);return We};const X=(Je,ke)=>{var We;const{prefixCls:oe,className:k,rootClassName:_,children:ee,indeterminate:ne=!1,style:se,onMouseEnter:w,onMouseLeave:D,skipGroup:ce=!1,disabled:Oe}=Je,ct=H(Je,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Tt,direction:Ae,checkbox:qe}=i.useContext(Y.E_),ht=i.useContext(T),{isFormItemInput:tt}=i.useContext(N.aM),Fe=i.useContext(l.Z),jt=(We=(ht==null?void 0:ht.disabled)||Oe)!==null&&We!==void 0?We:Fe,bt=i.useRef(ct.value),cn=i.useRef(null),vt=(0,Z.sQ)(ke,cn);i.useEffect(()=>{ht==null||ht.registerValue(ct.value)},[]),i.useEffect(()=>{if(!ce)return ct.value!==bt.current&&(ht==null||ht.cancelValue(bt.current),ht==null||ht.registerValue(ct.value),bt.current=ct.value),()=>ht==null?void 0:ht.cancelValue(ct.value)},[ct.value]),i.useEffect(()=>{var Te;!((Te=cn.current)===null||Te===void 0)&&Te.input&&(cn.current.input.indeterminate=ne)},[ne]);const pt=Tt("checkbox",oe),Qe=(0,x.Z)(pt),[Ne,le,Pe]=(0,A.ZP)(pt,Qe),Ge=Object.assign({},ct);ht&&!ce&&(Ge.onChange=function(){ct.onChange&&ct.onChange.apply(ct,arguments),ht.toggleOption&&ht.toggleOption({label:ee,value:ct.value})},Ge.name=ht.name,Ge.checked=ht.value.includes(ct.value));const j=L()(`${pt}-wrapper`,{[`${pt}-rtl`]:Ae==="rtl",[`${pt}-wrapper-checked`]:Ge.checked,[`${pt}-wrapper-disabled`]:jt,[`${pt}-wrapper-in-form-item`]:tt},qe==null?void 0:qe.className,k,_,Pe,Qe,le),P=L()({[`${pt}-indeterminate`]:ne},W.A,le),[_e,Ie]=(0,$.Z)(Ge.onClick);return Ne(i.createElement(g.Z,{component:"Checkbox",disabled:jt},i.createElement("label",{className:j,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),se),onMouseEnter:w,onMouseLeave:D,onClick:_e},i.createElement(he.Z,Object.assign({},Ge,{onClick:Ie,prefixCls:pt,className:P,disabled:jt,ref:vt})),ee!==void 0&&i.createElement("span",{className:`${pt}-label`},ee))))};var R=i.forwardRef(X),Q=u(77654),O=u(2738),I=function(Je,ke){var We={};for(var oe in Je)Object.prototype.hasOwnProperty.call(Je,oe)&&ke.indexOf(oe)<0&&(We[oe]=Je[oe]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,oe=Object.getOwnPropertySymbols(Je);k<oe.length;k++)ke.indexOf(oe[k])<0&&Object.prototype.propertyIsEnumerable.call(Je,oe[k])&&(We[oe[k]]=Je[oe[k]]);return We},Se=i.forwardRef((Je,ke)=>{const{defaultValue:We,children:oe,options:k=[],prefixCls:_,className:ee,rootClassName:ne,style:se,onChange:w}=Je,D=I(Je,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ce,direction:Oe}=i.useContext(Y.E_),[ct,Tt]=i.useState(D.value||We||[]),[Ae,qe]=i.useState([]);i.useEffect(()=>{"value"in D&&Tt(D.value||[])},[D.value]);const ht=i.useMemo(()=>k.map(P=>typeof P=="string"||typeof P=="number"?{label:P,value:P}:P),[k]),tt=P=>{qe(_e=>_e.filter(Ie=>Ie!==P))},Fe=P=>{qe(_e=>[].concat((0,Q.Z)(_e),[P]))},jt=P=>{const _e=ct.indexOf(P.value),Ie=(0,Q.Z)(ct);_e===-1?Ie.push(P.value):Ie.splice(_e,1),"value"in D||Tt(Ie),w==null||w(Ie.filter(Te=>Ae.includes(Te)).sort((Te,ze)=>{const Ue=ht.findIndex(de=>de.value===Te),ft=ht.findIndex(de=>de.value===ze);return Ue-ft}))},bt=ce("checkbox",_),cn=`${bt}-group`,vt=(0,x.Z)(bt),[pt,Qe,Ne]=(0,A.ZP)(bt,vt),le=(0,O.Z)(D,["value","disabled"]),Pe=k.length?ht.map(P=>i.createElement(R,{prefixCls:bt,key:P.value.toString(),disabled:"disabled"in P?P.disabled:D.disabled,value:P.value,checked:ct.includes(P.value),onChange:P.onChange,className:`${cn}-item`,style:P.style,title:P.title,id:P.id,required:P.required},P.label)):oe,Ge={toggleOption:jt,value:ct,disabled:D.disabled,name:D.name,registerValue:Fe,cancelValue:tt},j=L()(cn,{[`${cn}-rtl`]:Oe==="rtl"},ee,ne,Ne,vt,Qe);return pt(i.createElement("div",Object.assign({className:j,style:se},le,{ref:ke}),i.createElement(T.Provider,{value:Ge},Pe)))});const me=R;me.Group=Se,me.__ANT_CHECKBOX=!0;var Ke=me},36170:function($n,Rt,u){"use strict";u.d(Rt,{C2:function(){return g}});var i=u(36237),K=u(63356),L=u(51636),he=u(16931);const Z=W=>{const{checkboxCls:Y}=W,l=`${Y}-wrapper`;return[{[`${Y}-group`]:Object.assign(Object.assign({},(0,K.Wf)(W)),{display:"inline-flex",flexWrap:"wrap",columnGap:W.marginXS,[`> ${W.antCls}-row`]:{flex:1}}),[l]:Object.assign(Object.assign({},(0,K.Wf)(W)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${l}`]:{marginInlineStart:0},[`&${l}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Y]:Object.assign(Object.assign({},(0,K.Wf)(W)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:W.borderRadiusSM,alignSelf:"center",[`${Y}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Y}-inner`]:Object.assign({},(0,K.oN)(W))},[`${Y}-inner`]:{boxSizing:"border-box",display:"block",width:W.checkboxSize,height:W.checkboxSize,direction:"ltr",backgroundColor:W.colorBgContainer,border:`${(0,i.unit)(W.lineWidth)} ${W.lineType} ${W.colorBorder}`,borderRadius:W.borderRadiusSM,borderCollapse:"separate",transition:`all ${W.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:W.calc(W.checkboxSize).div(14).mul(5).equal(),height:W.calc(W.checkboxSize).div(14).mul(8).equal(),border:`${(0,i.unit)(W.lineWidthBold)} solid ${W.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${W.motionDurationFast} ${W.motionEaseInBack}, opacity ${W.motionDurationFast}`}},"& + span":{paddingInlineStart:W.paddingXS,paddingInlineEnd:W.paddingXS}})},{[`
|
|
|
${l}:not(${l}-disabled),
|
|
|
${Y}:not(${Y}-disabled)
|
|
|
`]:{[`&:hover ${Y}-inner`]:{borderColor:W.colorPrimary}},[`${l}:not(${l}-disabled)`]:{[`&:hover ${Y}-checked:not(${Y}-disabled) ${Y}-inner`]:{backgroundColor:W.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Y}-checked:not(${Y}-disabled):after`]:{borderColor:W.colorPrimaryHover}}},{[`${Y}-checked`]:{[`${Y}-inner`]:{backgroundColor:W.colorPrimary,borderColor:W.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${W.motionDurationMid} ${W.motionEaseOutBack} ${W.motionDurationFast}`}}},[`
|
|
|
${l}-checked:not(${l}-disabled),
|
|
|
${Y}-checked:not(${Y}-disabled)
|
|
|
`]:{[`&:hover ${Y}-inner`]:{backgroundColor:W.colorPrimaryHover,borderColor:"transparent"}}},{[Y]:{"&-indeterminate":{[`${Y}-inner`]:{backgroundColor:`${W.colorBgContainer} !important`,borderColor:`${W.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:W.calc(W.fontSizeLG).div(2).equal(),height:W.calc(W.fontSizeLG).div(2).equal(),backgroundColor:W.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Y}-inner`]:{backgroundColor:`${W.colorBgContainer} !important`,borderColor:`${W.colorPrimary} !important`}}}},{[`${l}-disabled`]:{cursor:"not-allowed"},[`${Y}-disabled`]:{[`&, ${Y}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Y}-inner`]:{background:W.colorBgContainerDisabled,borderColor:W.colorBorder,"&:after":{borderColor:W.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:W.colorTextDisabled},[`&${Y}-indeterminate ${Y}-inner::after`]:{background:W.colorTextDisabled}}}]};function g(W,Y){const l=(0,L.mergeToken)(Y,{checkboxCls:`.${W}`,checkboxSize:Y.controlInteractiveSize});return[Z(l)]}Rt.ZP=(0,he.I$)("Checkbox",(W,Y)=>{let{prefixCls:l}=Y;return[g(l,W)]})},74632:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return L}});var i=u(59301),K=u(16089);function L(he){const Z=i.useRef(null),g=()=>{K.Z.cancel(Z.current),Z.current=null};return[()=>{g(),Z.current=(0,K.Z)(()=>{Z.current=null})},l=>{Z.current&&(l.stopPropagation(),g()),he==null||he(l)}]}},38406:function($n,Rt,u){"use strict";var i=u(59301),K=u(48755),L=u(584);const he=Z=>{const{componentName:g}=Z,{getPrefixCls:W}=(0,i.useContext)(K.E_),Y=W("empty");switch(g){case"Table":case"List":return i.createElement(L.Z,{image:L.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return i.createElement(L.Z,{image:L.Z.PRESENTED_IMAGE_SIMPLE,className:`${Y}-small`});case"Table.filter":return null;default:return i.createElement(L.Z,null)}};Rt.Z=he},19563:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Tt}});var i=u(59301),K=u(33853),L=u(38819),he=u(92310),Z=u.n(he),g=u(96478),W=u(6089),Y=u(18929),l=u(2738),x=u(75030),y=Ae=>typeof Ae!="object"&&typeof Ae!="function"||Ae===null,T=u(52838),A=u(45915),$=u(22703),H=u(32383),X=u(55743),V=u(48755),R=u(83397),Q=u(93041),O=u(78857),I=u(57700),ue=u(36237),Se=u(63356),me=u(46e3),Ke=u(93873),Je=u(34925),ke=u(37645),We=u(36305),oe=u(16931),k=u(51636),ee=Ae=>{const{componentCls:qe,menuCls:ht,colorError:tt,colorTextLightSolid:Fe}=Ae,jt=`${ht}-item`;return{[`${qe}, ${qe}-menu-submenu`]:{[`${ht} ${jt}`]:{[`&${jt}-danger:not(${jt}-disabled)`]:{color:tt,"&:hover":{color:Fe,backgroundColor:tt}}}}}};const ne=Ae=>{const{componentCls:qe,menuCls:ht,zIndexPopup:tt,dropdownArrowDistance:Fe,sizePopupArrow:jt,antCls:bt,iconCls:cn,motionDurationMid:vt,paddingBlock:pt,fontSize:Qe,dropdownEdgeChildPadding:Ne,colorTextDisabled:le,fontSizeIcon:Pe,controlPaddingHorizontal:Ge,colorBgElevated:j}=Ae;return[{[qe]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:tt,display:"block","&::before":{position:"absolute",insetBlock:Ae.calc(jt).div(2).sub(Fe).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${bt}-btn`]:{[`& > ${cn}-down, & > ${bt}-btn-icon > ${cn}-down`]:{fontSize:Pe}},[`${qe}-wrap`]:{position:"relative",[`${bt}-btn > ${cn}-down`]:{fontSize:Pe},[`${cn}-down::before`]:{transition:`transform ${vt}`}},[`${qe}-wrap-open`]:{[`${cn}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${bt}-slide-down-enter${bt}-slide-down-enter-active${qe}-placement-bottomLeft,
|
|
|
&${bt}-slide-down-appear${bt}-slide-down-appear-active${qe}-placement-bottomLeft,
|
|
|
&${bt}-slide-down-enter${bt}-slide-down-enter-active${qe}-placement-bottom,
|
|
|
&${bt}-slide-down-appear${bt}-slide-down-appear-active${qe}-placement-bottom,
|
|
|
&${bt}-slide-down-enter${bt}-slide-down-enter-active${qe}-placement-bottomRight,
|
|
|
&${bt}-slide-down-appear${bt}-slide-down-appear-active${qe}-placement-bottomRight`]:{animationName:me.fJ},[`&${bt}-slide-up-enter${bt}-slide-up-enter-active${qe}-placement-topLeft,
|
|
|
&${bt}-slide-up-appear${bt}-slide-up-appear-active${qe}-placement-topLeft,
|
|
|
&${bt}-slide-up-enter${bt}-slide-up-enter-active${qe}-placement-top,
|
|
|
&${bt}-slide-up-appear${bt}-slide-up-appear-active${qe}-placement-top,
|
|
|
&${bt}-slide-up-enter${bt}-slide-up-enter-active${qe}-placement-topRight,
|
|
|
&${bt}-slide-up-appear${bt}-slide-up-appear-active${qe}-placement-topRight`]:{animationName:me.Qt},[`&${bt}-slide-down-leave${bt}-slide-down-leave-active${qe}-placement-bottomLeft,
|
|
|
&${bt}-slide-down-leave${bt}-slide-down-leave-active${qe}-placement-bottom,
|
|
|
&${bt}-slide-down-leave${bt}-slide-down-leave-active${qe}-placement-bottomRight`]:{animationName:me.Uw},[`&${bt}-slide-up-leave${bt}-slide-up-leave-active${qe}-placement-topLeft,
|
|
|
&${bt}-slide-up-leave${bt}-slide-up-leave-active${qe}-placement-top,
|
|
|
&${bt}-slide-up-leave${bt}-slide-up-leave-active${qe}-placement-topRight`]:{animationName:me.ly}}},(0,ke.ZP)(Ae,j,{arrowPlacement:{top:!0,bottom:!0}}),{[`${qe} ${ht}`]:{position:"relative",margin:0},[`${ht}-submenu-popup`]:{position:"absolute",zIndex:tt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${qe}, ${qe}-menu-submenu`]:Object.assign(Object.assign({},(0,Se.Wf)(Ae)),{[ht]:Object.assign(Object.assign({padding:Ne,listStyleType:"none",backgroundColor:j,backgroundClip:"padding-box",borderRadius:Ae.borderRadiusLG,outline:"none",boxShadow:Ae.boxShadowSecondary},(0,Se.Qy)(Ae)),{"&:empty":{padding:0,boxShadow:"none"},[`${ht}-item-group-title`]:{padding:`${(0,ue.unit)(pt)} ${(0,ue.unit)(Ge)}`,color:Ae.colorTextDescription,transition:`all ${vt}`},[`${ht}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ht}-item-icon`]:{minWidth:Qe,marginInlineEnd:Ae.marginXS,fontSize:Ae.fontSizeSM},[`${ht}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${vt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${ht}-item-extra`]:{paddingInlineStart:Ae.padding,marginInlineStart:"auto",fontSize:Ae.fontSizeSM,color:Ae.colorTextDescription}},[`${ht}-item, ${ht}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,ue.unit)(pt)} ${(0,ue.unit)(Ge)}`,color:Ae.colorText,fontWeight:"normal",fontSize:Qe,lineHeight:Ae.lineHeight,cursor:"pointer",transition:`all ${vt}`,borderRadius:Ae.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ae.controlItemBgHover}},(0,Se.Qy)(Ae)),{"&-selected":{color:Ae.colorPrimary,backgroundColor:Ae.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ae.controlItemBgActiveHover}},"&-disabled":{color:le,cursor:"not-allowed","&:hover":{color:le,backgroundColor:j,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,ue.unit)(Ae.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ae.colorSplit},[`${qe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ae.paddingXS,[`${qe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ae.colorTextDescription,fontSize:Pe,fontStyle:"normal"}}}),[`${ht}-item-group-list`]:{margin:`0 ${(0,ue.unit)(Ae.marginXS)}`,padding:0,listStyle:"none"},[`${ht}-submenu-title`]:{paddingInlineEnd:Ae.calc(Ge).add(Ae.fontSizeSM).equal()},[`${ht}-submenu-vertical`]:{position:"relative"},[`${ht}-submenu${ht}-submenu-disabled ${qe}-menu-submenu-title`]:{[`&, ${qe}-menu-submenu-arrow-icon`]:{color:le,backgroundColor:j,cursor:"not-allowed"}},[`${ht}-submenu-selected ${qe}-menu-submenu-title`]:{color:Ae.colorPrimary}})})},[(0,me.oN)(Ae,"slide-up"),(0,me.oN)(Ae,"slide-down"),(0,Ke.Fm)(Ae,"move-up"),(0,Ke.Fm)(Ae,"move-down"),(0,Je._y)(Ae,"zoom-big")]]},se=Ae=>Object.assign(Object.assign({zIndexPopup:Ae.zIndexPopupBase+50,paddingBlock:(Ae.controlHeight-Ae.fontSize*Ae.lineHeight)/2},(0,ke.wZ)({contentRadius:Ae.borderRadiusLG,limitVerticalRadius:!0})),(0,We.w)(Ae));var w=(0,oe.I$)("Dropdown",Ae=>{const{marginXXS:qe,sizePopupArrow:ht,paddingXXS:tt,componentCls:Fe}=Ae,jt=(0,k.mergeToken)(Ae,{menuCls:`${Fe}-menu`,dropdownArrowDistance:Ae.calc(ht).div(2).add(qe).equal(),dropdownEdgeChildPadding:tt});return[ne(jt),ee(jt)]},se,{resetStyle:!1});const D=null,ce=Ae=>{var qe;const{menu:ht,arrow:tt,prefixCls:Fe,children:jt,trigger:bt,disabled:cn,dropdownRender:vt,getPopupContainer:pt,overlayClassName:Qe,rootClassName:Ne,overlayStyle:le,open:Pe,onOpenChange:Ge,visible:j,onVisibleChange:P,mouseEnterDelay:_e=.15,mouseLeaveDelay:Ie=.1,autoAdjustOverflow:Te=!0,placement:ze="",overlay:Ue,transitionName:ft}=Ae,{getPopupContainer:de,getPrefixCls:xe,direction:Ot,dropdown:_t}=i.useContext(V.E_),Pt=(0,H.ln)("Dropdown"),kt=i.useMemo(()=>{const Kt=xe();return ft!==void 0?ft:ze.includes("top")?`${Kt}-slide-down`:`${Kt}-slide-up`},[xe,ze,ft]),mt=i.useMemo(()=>ze?ze.includes("Center")?ze.slice(0,ze.indexOf("Center")):ze:Ot==="rtl"?"bottomRight":"bottomLeft",[ze,Ot]),Vt=xe("dropdown",Fe),Nt=(0,R.Z)(Vt),[De,gt,E]=w(Vt,Nt),[,S]=(0,I.ZP)(),je=i.Children.only(y(jt)?i.createElement("span",null,jt):jt),G=(0,$.Tm)(je,{className:Z()(`${Vt}-trigger`,{[`${Vt}-rtl`]:Ot==="rtl"},je.props.className),disabled:(qe=je.props.disabled)!==null&&qe!==void 0?qe:cn}),Ce=cn?[]:bt,en=!!(Ce!=null&&Ce.includes("contextMenu")),[rt,st]=(0,Y.Z)(!1,{value:Pe!=null?Pe:j}),xt=(0,W.Z)(Kt=>{Ge==null||Ge(Kt,{source:"trigger"}),P==null||P(Kt),st(Kt)}),pe=Z()(Qe,Ne,gt,E,Nt,_t==null?void 0:_t.className,{[`${Vt}-rtl`]:Ot==="rtl"}),Ee=(0,T.Z)({arrowPointAtCenter:typeof tt=="object"&&tt.pointAtCenter,autoAdjustOverflow:Te,offset:S.marginXXS,arrowWidth:tt?S.sizePopupArrow:0,borderRadius:S.borderRadius}),nt=i.useCallback(()=>{ht!=null&&ht.selectable&&(ht!=null&&ht.multiple)||(Ge==null||Ge(!1,{source:"menu"}),st(!1))},[ht==null?void 0:ht.selectable,ht==null?void 0:ht.multiple]),Ze=()=>{let Kt;return ht!=null&&ht.items?Kt=i.createElement(Q.default,Object.assign({},ht)):typeof Ue=="function"?Kt=Ue():Kt=Ue,vt&&(Kt=vt(Kt)),Kt=i.Children.only(typeof Kt=="string"?i.createElement("span",null,Kt):Kt),i.createElement(O.J,{prefixCls:`${Vt}-menu`,rootClassName:Z()(E,Nt),expandIcon:i.createElement("span",{className:`${Vt}-menu-submenu-arrow`},Ot==="rtl"?i.createElement(K.Z,{className:`${Vt}-menu-submenu-arrow-icon`}):i.createElement(L.Z,{className:`${Vt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:nt,validator:dn=>{let{mode:Bt}=dn}},Kt)},[z,St]=(0,x.Cn)("Dropdown",le==null?void 0:le.zIndex);let fe=i.createElement(g.Z,Object.assign({alignPoint:en},(0,l.Z)(Ae,["rootClassName"]),{mouseEnterDelay:_e,mouseLeaveDelay:Ie,visible:rt,builtinPlacements:Ee,arrow:!!tt,overlayClassName:pe,prefixCls:Vt,getPopupContainer:pt||de,transitionName:kt,trigger:Ce,overlay:Ze,placement:mt,onVisibleChange:xt,overlayStyle:Object.assign(Object.assign(Object.assign({},_t==null?void 0:_t.style),le),{zIndex:z})}),G);return z&&(fe=i.createElement(X.Z.Provider,{value:St},fe)),De(fe)},Oe=(0,A.Z)(ce,"align",void 0,"dropdown",Ae=>Ae),ct=Ae=>i.createElement(Oe,Object.assign({},Ae),i.createElement("span",null));ce._InternalPanelDoNotUseOrYouWillBeFired=ct;var Tt=ce},75727:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return A}});var i=u(19563),K=u(59301),L=u(18785),he=u(92310),Z=u.n(he),g=u(7939),W=u(48755),Y=u(44104),l=u(70045),x=function($,H){var X={};for(var V in $)Object.prototype.hasOwnProperty.call($,V)&&H.indexOf(V)<0&&(X[V]=$[V]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,V=Object.getOwnPropertySymbols($);R<V.length;R++)H.indexOf(V[R])<0&&Object.prototype.propertyIsEnumerable.call($,V[R])&&(X[V[R]]=$[V[R]]);return X};const N=$=>{const{getPopupContainer:H,getPrefixCls:X,direction:V}=K.useContext(W.E_),{prefixCls:R,type:Q="default",danger:O,disabled:I,loading:ue,onClick:Se,htmlType:me,children:Ke,className:Je,menu:ke,arrow:We,autoFocus:oe,overlay:k,trigger:_,align:ee,open:ne,onOpenChange:se,placement:w,getPopupContainer:D,href:ce,icon:Oe=K.createElement(L.Z,null),title:ct,buttonsRender:Tt=_e=>_e,mouseEnterDelay:Ae,mouseLeaveDelay:qe,overlayClassName:ht,overlayStyle:tt,destroyPopupOnHide:Fe,dropdownRender:jt}=$,bt=x($,["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"]),cn=X("dropdown",R),vt=`${cn}-button`,pt={menu:ke,arrow:We,autoFocus:oe,align:ee,disabled:I,trigger:I?[]:_,onOpenChange:se,getPopupContainer:D||H,mouseEnterDelay:Ae,mouseLeaveDelay:qe,overlayClassName:ht,overlayStyle:tt,destroyPopupOnHide:Fe,dropdownRender:jt},{compactSize:Qe,compactItemClassnames:Ne}=(0,l.ri)(cn,V),le=Z()(vt,Ne,Je);"overlay"in $&&(pt.overlay=k),"open"in $&&(pt.open=ne),"placement"in $?pt.placement=w:pt.placement=V==="rtl"?"bottomLeft":"bottomRight";const Pe=K.createElement(g.ZP,{type:Q,danger:O,disabled:I,loading:ue,onClick:Se,htmlType:me,href:ce,title:ct},Ke),Ge=K.createElement(g.ZP,{type:Q,danger:O,icon:Oe}),[j,P]=Tt([Pe,Ge]);return K.createElement(Y.Z.Compact,Object.assign({className:le,size:Qe,block:!0},bt),j,K.createElement(i.Z,Object.assign({},pt),P))};N.__ANT_BUTTON=!0;var y=N;const T=i.Z;T.Button=y;var A=T},584:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Q}});var i=u(59301),K=u(92310),L=u.n(K),he=u(9017),Z=u(17835),g=u(57700),Y=()=>{const[,O]=(0,g.ZP)(),[I]=(0,he.Z)("Empty"),Se=new Z.FastColor(O.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:Se,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(I==null?void 0:I.description)||"Empty"),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.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"}),i.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)"}),i.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"}),i.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"})),i.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"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},x=()=>{const[,O]=(0,g.ZP)(),[I]=(0,he.Z)("Empty"),{colorFill:ue,colorFillTertiary:Se,colorFillQuaternary:me,colorBgContainer:Ke}=O,{borderColor:Je,shadowColor:ke,contentColor:We}=(0,i.useMemo)(()=>({borderColor:new Z.FastColor(ue).onBackground(Ke).toHexString(),shadowColor:new Z.FastColor(Se).onBackground(Ke).toHexString(),contentColor:new Z.FastColor(me).onBackground(Ke).toHexString()}),[ue,Se,me,Ke]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(I==null?void 0:I.description)||"Empty"),i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:ke,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:Je},i.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"}),i.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:We}))))},N=u(16931),y=u(51636);const T=O=>{const{componentCls:I,margin:ue,marginXS:Se,marginXL:me,fontSize:Ke,lineHeight:Je}=O;return{[I]:{marginInline:Se,fontSize:Ke,lineHeight:Je,textAlign:"center",[`${I}-image`]:{height:O.emptyImgHeight,marginBottom:Se,opacity:O.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${I}-description`]:{color:O.colorTextDescription},[`${I}-footer`]:{marginTop:ue},"&-normal":{marginBlock:me,color:O.colorTextDescription,[`${I}-description`]:{color:O.colorTextDescription},[`${I}-image`]:{height:O.emptyImgHeightMD}},"&-small":{marginBlock:Se,color:O.colorTextDescription,[`${I}-image`]:{height:O.emptyImgHeightSM}}}}};var A=(0,N.I$)("Empty",O=>{const{componentCls:I,controlHeightLG:ue,calc:Se}=O,me=(0,y.mergeToken)(O,{emptyImgCls:`${I}-img`,emptyImgHeight:Se(ue).mul(2.5).equal(),emptyImgHeightMD:ue,emptyImgHeightSM:Se(ue).mul(.875).equal()});return[T(me)]}),$=u(48755),H=function(O,I){var ue={};for(var Se in O)Object.prototype.hasOwnProperty.call(O,Se)&&I.indexOf(Se)<0&&(ue[Se]=O[Se]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Se=Object.getOwnPropertySymbols(O);me<Se.length;me++)I.indexOf(Se[me])<0&&Object.prototype.propertyIsEnumerable.call(O,Se[me])&&(ue[Se[me]]=O[Se[me]]);return ue};const X=i.createElement(Y,null),V=i.createElement(x,null),R=O=>{const{className:I,rootClassName:ue,prefixCls:Se,image:me=X,description:Ke,children:Je,imageStyle:ke,style:We,classNames:oe,styles:k}=O,_=H(O,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:ee,direction:ne,className:se,style:w,classNames:D,styles:ce}=(0,$.dj)("empty"),Oe=ee("empty",Se),[ct,Tt,Ae]=A(Oe),[qe]=(0,he.Z)("Empty"),ht=typeof Ke!="undefined"?Ke:qe==null?void 0:qe.description,tt=typeof ht=="string"?ht:"empty";let Fe=null;return typeof me=="string"?Fe=i.createElement("img",{alt:tt,src:me}):Fe=me,ct(i.createElement("div",Object.assign({className:L()(Tt,Ae,Oe,se,{[`${Oe}-normal`]:me===V,[`${Oe}-rtl`]:ne==="rtl"},I,ue,D.root,oe==null?void 0:oe.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ce.root),w),k==null?void 0:k.root),We)},_),i.createElement("div",{className:L()(`${Oe}-image`,D.image,oe==null?void 0:oe.image),style:Object.assign(Object.assign(Object.assign({},ke),ce.image),k==null?void 0:k.image)},Fe),ht&&i.createElement("div",{className:L()(`${Oe}-description`,D.description,oe==null?void 0:oe.description),style:Object.assign(Object.assign({},ce.description),k==null?void 0:k.description)},ht),Je&&i.createElement("div",{className:L()(`${Oe}-footer`,D.footer,oe==null?void 0:oe.footer),style:Object.assign(Object.assign({},ce.footer),k==null?void 0:k.footer)},Je)))};R.PRESENTED_IMAGE_DEFAULT=X,R.PRESENTED_IMAGE_SIMPLE=V;var Q=R},24971:function($n,Rt,u){"use strict";var i=u(59301),K=u(56553),L=u(48755);const he=function(Z,g){let W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var Y,l;const{variant:x,[Z]:N}=i.useContext(L.E_),y=i.useContext(K.pg),T=N==null?void 0:N.variant;let A;typeof g!="undefined"?A=g:W===!1?A="borderless":A=(l=(Y=y!=null?y:T)!==null&&Y!==void 0?Y:x)!==null&&l!==void 0?l:"outlined";const $=L.tr.includes(A);return[A,$]};Rt.Z=he},28284:function($n,Rt,u){"use strict";u.d(Rt,{default:function(){return Le}});var i=u(56553),K=u(77654),L=u(59301),he=u(92310),Z=u.n(he),g=u(77900),W=u(86641),Y=u(83397);function l(ae){const[Re,$e]=L.useState(ae);return L.useEffect(()=>{const He=setTimeout(()=>{$e(ae)},ae.length?0:10);return()=>{clearTimeout(He)}},[ae]),Re}var x=u(36237),N=u(63356),y=u(34925),T=u(34961),A=u(51636),$=u(16931),X=ae=>{const{componentCls:Re}=ae,$e=`${Re}-show-help`,He=`${Re}-show-help-item`;return{[$e]:{transition:`opacity ${ae.motionDurationFast} ${ae.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[He]:{overflow:"hidden",transition:`height ${ae.motionDurationFast} ${ae.motionEaseInOut},
|
|
|
opacity ${ae.motionDurationFast} ${ae.motionEaseInOut},
|
|
|
transform ${ae.motionDurationFast} ${ae.motionEaseInOut} !important`,[`&${He}-appear, &${He}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${He}-leave-active`]:{transform:"translateY(-5px)"}}}}};const V=ae=>({legend:{display:"block",width:"100%",marginBottom:ae.marginLG,padding:0,color:ae.colorTextDescription,fontSize:ae.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,x.unit)(ae.lineWidth)} ${ae.lineType} ${ae.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,x.unit)(ae.controlOutlineWidth)} ${ae.controlOutline}`},output:{display:"block",paddingTop:15,color:ae.colorText,fontSize:ae.fontSize,lineHeight:ae.lineHeight}}),R=(ae,Re)=>{const{formItemCls:$e}=ae;return{[$e]:{[`${$e}-label > label`]:{height:Re},[`${$e}-control-input`]:{minHeight:Re}}}},Q=ae=>{const{componentCls:Re}=ae;return{[ae.componentCls]:Object.assign(Object.assign(Object.assign({},(0,N.Wf)(ae)),V(ae)),{[`${Re}-text`]:{display:"inline-block",paddingInlineEnd:ae.paddingSM},"&-small":Object.assign({},R(ae,ae.controlHeightSM)),"&-large":Object.assign({},R(ae,ae.controlHeightLG))})}},O=ae=>{const{formItemCls:Re,iconCls:$e,rootPrefixCls:He,antCls:ut,labelRequiredMarkColor:rn,labelColor:on,labelFontSize:Ve,labelHeight:lt,labelColonMarginInlineStart:wt,labelColonMarginInlineEnd:Qt,itemMarginBottom:Yt}=ae;return{[Re]:Object.assign(Object.assign({},(0,N.Wf)(ae)),{marginBottom:Yt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${ut}-row`]:{display:"none"},"&-has-warning":{[`${Re}-split`]:{color:ae.colorError}},"&-has-error":{[`${Re}-split`]:{color:ae.colorWarning}},[`${Re}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ae.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:lt,color:on,fontSize:Ve,[`> ${$e}`]:{fontSize:ae.fontSize,verticalAlign:"top"},[`&${Re}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ae.marginXXS,color:rn,fontSize:ae.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Re}-required-mark-hidden, &${Re}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Re}-optional`]:{display:"inline-block",marginInlineStart:ae.marginXXS,color:ae.colorTextDescription,[`&${Re}-required-mark-hidden`]:{display:"none"}},[`${Re}-tooltip`]:{color:ae.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ae.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:wt,marginInlineEnd:Qt},[`&${Re}-no-colon::after`]:{content:'"\\a0"'}}},[`${Re}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${He}-col-'"]):not([class*="' ${He}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ae.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Re]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:ae.colorTextDescription,fontSize:ae.fontSize,lineHeight:ae.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ae.controlHeightSM,transition:`color ${ae.motionDurationMid} ${ae.motionEaseOut}`},"&-explain":{"&-error":{color:ae.colorError},"&-warning":{color:ae.colorWarning}}},[`&-with-help ${Re}-explain`]:{height:"auto",opacity:1},[`${Re}-feedback-icon`]:{fontSize:ae.fontSize,textAlign:"center",visibility:"visible",animationName:y.kr,animationDuration:ae.motionDurationMid,animationTimingFunction:ae.motionEaseOutBack,pointerEvents:"none","&-success":{color:ae.colorSuccess},"&-error":{color:ae.colorError},"&-warning":{color:ae.colorWarning},"&-validating":{color:ae.colorPrimary}}})}},I=(ae,Re)=>{const{formItemCls:$e}=ae;return{[`${Re}-horizontal`]:{[`${$e}-label`]:{flexGrow:0},[`${$e}-control`]:{flex:"1 1 0",minWidth:0},[`${$e}-label[class$='-24'], ${$e}-label[class*='-24 ']`]:{[`& + ${$e}-control`]:{minWidth:"unset"}}}}},ue=ae=>{const{componentCls:Re,formItemCls:$e,inlineItemMarginBottom:He}=ae;return{[`${Re}-inline`]:{display:"flex",flexWrap:"wrap",[$e]:{flex:"none",marginInlineEnd:ae.margin,marginBottom:He,"&-row":{flexWrap:"nowrap"},[`> ${$e}-label,
|
|
|
> ${$e}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${$e}-label`]:{flex:"none"},[`${Re}-text`]:{display:"inline-block"},[`${$e}-has-feedback`]:{display:"inline-block"}}}}},Se=ae=>({padding:ae.verticalLabelPadding,margin:ae.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),me=ae=>{const{componentCls:Re,formItemCls:$e,rootPrefixCls:He}=ae;return{[`${$e} ${$e}-label`]:Se(ae),[`${Re}:not(${Re}-inline)`]:{[$e]:{flexWrap:"wrap",[`${$e}-label, ${$e}-control`]:{[`&:not([class*=" ${He}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ke=ae=>{const{componentCls:Re,formItemCls:$e,antCls:He}=ae;return{[`${Re}-vertical`]:{[`${$e}:not(${$e}-horizontal)`]:{[`${$e}-row`]:{flexDirection:"column"},[`${$e}-label > label`]:{height:"auto"},[`${$e}-control`]:{width:"100%"},[`${$e}-label,
|
|
|
${He}-col-24${$e}-label,
|
|
|
${He}-col-xl-24${$e}-label`]:Se(ae)}},[`@media (max-width: ${(0,x.unit)(ae.screenXSMax)})`]:[me(ae),{[Re]:{[`${$e}:not(${$e}-horizontal)`]:{[`${He}-col-xs-24${$e}-label`]:Se(ae)}}}],[`@media (max-width: ${(0,x.unit)(ae.screenSMMax)})`]:{[Re]:{[`${$e}:not(${$e}-horizontal)`]:{[`${He}-col-sm-24${$e}-label`]:Se(ae)}}},[`@media (max-width: ${(0,x.unit)(ae.screenMDMax)})`]:{[Re]:{[`${$e}:not(${$e}-horizontal)`]:{[`${He}-col-md-24${$e}-label`]:Se(ae)}}},[`@media (max-width: ${(0,x.unit)(ae.screenLGMax)})`]:{[Re]:{[`${$e}:not(${$e}-horizontal)`]:{[`${He}-col-lg-24${$e}-label`]:Se(ae)}}}}},Je=ae=>{const{formItemCls:Re,antCls:$e}=ae;return{[`${Re}-vertical`]:{[`${Re}-row`]:{flexDirection:"column"},[`${Re}-label > label`]:{height:"auto"},[`${Re}-control`]:{width:"100%"}},[`${Re}-vertical ${Re}-label,
|
|
|
${$e}-col-24${Re}-label,
|
|
|
${$e}-col-xl-24${Re}-label`]:Se(ae),[`@media (max-width: ${(0,x.unit)(ae.screenXSMax)})`]:[me(ae),{[Re]:{[`${$e}-col-xs-24${Re}-label`]:Se(ae)}}],[`@media (max-width: ${(0,x.unit)(ae.screenSMMax)})`]:{[Re]:{[`${$e}-col-sm-24${Re}-label`]:Se(ae)}},[`@media (max-width: ${(0,x.unit)(ae.screenMDMax)})`]:{[Re]:{[`${$e}-col-md-24${Re}-label`]:Se(ae)}},[`@media (max-width: ${(0,x.unit)(ae.screenLGMax)})`]:{[Re]:{[`${$e}-col-lg-24${Re}-label`]:Se(ae)}}}},ke=ae=>({labelRequiredMarkColor:ae.colorError,labelColor:ae.colorTextHeading,labelFontSize:ae.fontSize,labelHeight:ae.controlHeight,labelColonMarginInlineStart:ae.marginXXS/2,labelColonMarginInlineEnd:ae.marginXS,itemMarginBottom:ae.marginLG,verticalLabelPadding:`0 0 ${ae.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),We=(ae,Re)=>(0,A.mergeToken)(ae,{formItemCls:`${ae.componentCls}-item`,rootPrefixCls:Re});var oe=(0,$.I$)("Form",(ae,Re)=>{let{rootPrefixCls:$e}=Re;const He=We(ae,$e);return[Q(He),O(He),X(He),I(He,He.componentCls),I(He,He.formItemCls),ue(He),Ke(He),Je(He),(0,T.Z)(He),y.kr]},ke,{order:-1e3});const k=[];function _(ae,Re,$e){let He=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ae=="string"?ae:`${Re}-${He}`,error:ae,errorStatus:$e}}var ne=ae=>{let{help:Re,helpStatus:$e,errors:He=k,warnings:ut=k,className:rn,fieldId:on,onVisibleChanged:Ve}=ae;const{prefixCls:lt}=L.useContext(i.Rk),wt=`${lt}-item-explain`,Qt=(0,Y.Z)(lt),[Yt,ye,at]=oe(lt,Qt),Lt=L.useMemo(()=>(0,W.Z)(lt),[lt]),Dt=l(He),zt=l(ut),an=L.useMemo(()=>Re!=null?[_(Re,"help",$e)]:[].concat((0,K.Z)(Dt.map((vn,En)=>_(vn,"error","error",En))),(0,K.Z)(zt.map((vn,En)=>_(vn,"warning","warning",En)))),[Re,$e,Dt,zt]),un=L.useMemo(()=>{const vn={};return an.forEach(En=>{let{key:Rn}=En;vn[Rn]=(vn[Rn]||0)+1}),an.map((En,Rn)=>Object.assign(Object.assign({},En),{key:vn[En.key]>1?`${En.key}-fallback-${Rn}`:En.key}))},[an]),sn={};return on&&(sn.id=`${on}_help`),Yt(L.createElement(g.default,{motionDeadline:Lt.motionDeadline,motionName:`${lt}-show-help`,visible:!!un.length,onVisibleChanged:Ve},vn=>{const{className:En,style:Rn}=vn;return L.createElement("div",Object.assign({},sn,{className:Z()(wt,En,at,Qt,rn,ye),style:Rn}),L.createElement(g.CSSMotionList,Object.assign({keys:un},(0,W.Z)(lt),{motionName:`${lt}-show-help-item`,component:!1}),bn=>{const{key:Cn,error:Bn,errorStatus:Pn,className:ir,style:In}=bn;return L.createElement("div",{key:Cn,className:Z()(ir,{[`${wt}-${Pn}`]:Pn}),style:In},Bn)}))}))},se=u(69180),w=u(48755),D=u(2171),ce=u(31756),Oe=u(23069),ct=u(76846),Tt=u(16722);const Ae=["parentNode"],qe="form_item";function ht(ae){return ae===void 0||ae===!1?[]:Array.isArray(ae)?ae:[ae]}function tt(ae,Re){if(!ae.length)return;const $e=ae.join("_");return Re?`${Re}_${$e}`:Ae.includes($e)?`${qe}_${$e}`:$e}function Fe(ae,Re,$e,He,ut,rn){let on=He;return rn!==void 0?on=rn:$e.validating?on="validating":ae.length?on="error":Re.length?on="warning":($e.touched||ut&&$e.validated)&&(on="success"),on}var jt=function(ae,Re){var $e={};for(var He in ae)Object.prototype.hasOwnProperty.call(ae,He)&&Re.indexOf(He)<0&&($e[He]=ae[He]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,He=Object.getOwnPropertySymbols(ae);ut<He.length;ut++)Re.indexOf(He[ut])<0&&Object.prototype.propertyIsEnumerable.call(ae,He[ut])&&($e[He[ut]]=ae[He[ut]]);return $e};function bt(ae){return ht(ae).join("_")}function cn(ae,Re){const $e=Re.getFieldInstance(ae),He=(0,ct.bn)($e);if(He)return He;const ut=tt(ht(ae),Re.__INTERNAL__.name);if(ut)return document.getElementById(ut)}function vt(ae){const[Re]=(0,se.useForm)(),$e=L.useRef({}),He=L.useMemo(()=>ae!=null?ae:Object.assign(Object.assign({},Re),{__INTERNAL__:{itemRef:ut=>rn=>{const on=bt(ut);rn?$e.current[on]=rn:delete $e.current[on]}},scrollToField:function(ut){let rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:on}=rn,Ve=jt(rn,["focus"]),lt=cn(ut,He);lt&&((0,Tt.Z)(lt,Object.assign({scrollMode:"if-needed",block:"nearest"},Ve)),on&&He.focusField(ut))},focusField:ut=>{var rn,on;const Ve=He.getFieldInstance(ut);typeof(Ve==null?void 0:Ve.focus)=="function"?Ve.focus():(on=(rn=cn(ut,He))===null||rn===void 0?void 0:rn.focus)===null||on===void 0||on.call(rn)},getFieldInstance:ut=>{const rn=bt(ut);return $e.current[rn]}}),[ae,Re]);return[He]}var pt=u(98350),Qe=function(ae,Re){var $e={};for(var He in ae)Object.prototype.hasOwnProperty.call(ae,He)&&Re.indexOf(He)<0&&($e[He]=ae[He]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,He=Object.getOwnPropertySymbols(ae);ut<He.length;ut++)Re.indexOf(He[ut])<0&&Object.prototype.propertyIsEnumerable.call(ae,He[ut])&&($e[He[ut]]=ae[He[ut]]);return $e};const Ne=(ae,Re)=>{const $e=L.useContext(D.Z),{getPrefixCls:He,direction:ut,requiredMark:rn,colon:on,scrollToFirstError:Ve,className:lt,style:wt}=(0,w.dj)("form"),{prefixCls:Qt,className:Yt,rootClassName:ye,size:at,disabled:Lt=$e,form:Dt,colon:zt,labelAlign:an,labelWrap:un,labelCol:sn,wrapperCol:vn,hideRequiredMark:En,layout:Rn="horizontal",scrollToFirstError:bn,requiredMark:Cn,onFinishFailed:Bn,name:Pn,style:ir,feedbackIcons:In,variant:zn}=ae,Yn=Qe(ae,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),tr=(0,ce.Z)(at),Jn=L.useContext(pt.Z),qt=L.useMemo(()=>Cn!==void 0?Cn:En?!1:rn!==void 0?rn:!0,[En,Cn,rn]),tn=zt!=null?zt:on,yn=He("form",Qt),Zn=(0,Y.Z)(yn),[Ht,Un,er]=oe(yn,Zn),lr=Z()(yn,`${yn}-${Rn}`,{[`${yn}-hide-required-mark`]:qt===!1,[`${yn}-rtl`]:ut==="rtl",[`${yn}-${tr}`]:tr},er,Zn,Un,lt,Yt,ye),[_r]=vt(Dt),{__INTERNAL__:Ar}=_r;Ar.name=Pn;const Sr=L.useMemo(()=>({name:Pn,labelAlign:an,labelCol:sn,labelWrap:un,wrapperCol:vn,vertical:Rn==="vertical",colon:tn,requiredMark:qt,itemRef:Ar.itemRef,form:_r,feedbackIcons:In}),[Pn,an,sn,vn,Rn,tn,qt,_r,In]),Vn=L.useRef(null);L.useImperativeHandle(Re,()=>{var Tn;return Object.assign(Object.assign({},_r),{nativeElement:(Tn=Vn.current)===null||Tn===void 0?void 0:Tn.nativeElement})});const An=(Tn,Xn)=>{if(Tn){let nr={block:"nearest"};typeof Tn=="object"&&(nr=Object.assign(Object.assign({},nr),Tn)),_r.scrollToField(Xn,nr)}},pn=Tn=>{if(Bn==null||Bn(Tn),Tn.errorFields.length){const Xn=Tn.errorFields[0].name;if(bn!==void 0){An(bn,Xn);return}Ve!==void 0&&An(Ve,Xn)}};return Ht(L.createElement(i.pg.Provider,{value:zn},L.createElement(D.n,{disabled:Lt},L.createElement(Oe.Z.Provider,{value:tr},L.createElement(i.RV,{validateMessages:Jn},L.createElement(i.q3.Provider,{value:Sr},L.createElement(se.default,Object.assign({id:Pn},Yn,{name:Pn,onFinishFailed:pn,form:_r,ref:Vn,style:Object.assign(Object.assign({},wt),ir),className:lr}))))))))};var Pe=L.forwardRef(Ne),Ge=u(41799),j=u(8654),P=u(22703),_e=u(32383),Ie=u(11592);function Te(ae){if(typeof ae=="function")return ae;const Re=(0,Ie.Z)(ae);return Re.length<=1?Re[0]:Re}const ze=()=>{const{status:ae,errors:Re=[],warnings:$e=[]}=L.useContext(i.aM);return{status:ae,errors:Re,warnings:$e}};ze.Context=i.aM;var Ue=ze,ft=u(16089);function de(ae){const[Re,$e]=L.useState(ae),He=L.useRef(null),ut=L.useRef([]),rn=L.useRef(!1);L.useEffect(()=>(rn.current=!1,()=>{rn.current=!0,ft.Z.cancel(He.current),He.current=null}),[]);function on(Ve){rn.current||(He.current===null&&(ut.current=[],He.current=(0,ft.Z)(()=>{He.current=null,$e(lt=>{let wt=lt;return ut.current.forEach(Qt=>{wt=Qt(wt)}),wt})})),ut.current.push(Ve))}return[Re,on]}function xe(){const{itemRef:ae}=L.useContext(i.q3),Re=L.useRef({});function $e(He,ut){const rn=ut&&typeof ut=="object"&&(0,j.C4)(ut),on=He.join("_");return(Re.current.name!==on||Re.current.originRef!==rn)&&(Re.current.name=on,Re.current.originRef=rn,Re.current.ref=(0,j.sQ)(ae(He),rn)),Re.current.ref}return $e}var Ot=u(29194),_t=u(34280),Pt=u(2738),kt=u(65970),mt=u(70425),Vt=u(5472);const Nt=ae=>{const{formItemCls:Re}=ae;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Re}-control`]:{display:"flex"}}}};var De=(0,$.bk)(["Form","item-item"],(ae,Re)=>{let{rootPrefixCls:$e}=Re;const He=We(ae,$e);return[Nt(He)]}),gt=function(ae,Re){var $e={};for(var He in ae)Object.prototype.hasOwnProperty.call(ae,He)&&Re.indexOf(He)<0&&($e[He]=ae[He]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,He=Object.getOwnPropertySymbols(ae);ut<He.length;ut++)Re.indexOf(He[ut])<0&&Object.prototype.propertyIsEnumerable.call(ae,He[ut])&&($e[He[ut]]=ae[He[ut]]);return $e};const E=24;var je=ae=>{const{prefixCls:Re,status:$e,labelCol:He,wrapperCol:ut,children:rn,errors:on,warnings:Ve,_internalItemRender:lt,extra:wt,help:Qt,fieldId:Yt,marginBottom:ye,onErrorVisibleChanged:at,label:Lt}=ae,Dt=`${Re}-item`,zt=L.useContext(i.q3),an=L.useMemo(()=>{let Yn=Object.assign({},ut||zt.wrapperCol||{});return Lt===null&&!He&&!ut&&zt.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Jn=>{const qt=Jn?[Jn]:[],tn=(0,mt.U2)(zt.labelCol,qt),yn=typeof tn=="object"?tn:{},Zn=(0,mt.U2)(Yn,qt),Ht=typeof Zn=="object"?Zn:{};"span"in yn&&!("offset"in Ht)&&yn.span<E&&(Yn=(0,mt.t8)(Yn,[].concat(qt,["offset"]),yn.span))}),Yn},[ut,zt]),un=Z()(`${Dt}-control`,an.className),sn=L.useMemo(()=>{const{labelCol:Yn,wrapperCol:tr}=zt;return gt(zt,["labelCol","wrapperCol"])},[zt]),vn=L.useRef(null),[En,Rn]=L.useState(0);(0,_t.Z)(()=>{wt&&vn.current?Rn(vn.current.clientHeight):Rn(0)},[wt]);const bn=L.createElement("div",{className:`${Dt}-control-input`},L.createElement("div",{className:`${Dt}-control-input-content`},rn)),Cn=L.useMemo(()=>({prefixCls:Re,status:$e}),[Re,$e]),Bn=ye!==null||on.length||Ve.length?L.createElement(i.Rk.Provider,{value:Cn},L.createElement(ne,{fieldId:Yt,errors:on,warnings:Ve,help:Qt,helpStatus:$e,className:`${Dt}-explain-connected`,onVisibleChanged:at})):null,Pn={};Yt&&(Pn.id=`${Yt}_extra`);const ir=wt?L.createElement("div",Object.assign({},Pn,{className:`${Dt}-extra`,ref:vn}),wt):null,In=Bn||ir?L.createElement("div",{className:`${Dt}-additional`,style:ye?{minHeight:ye+En}:{}},Bn,ir):null,zn=lt&<.mark==="pro_table_render"&<.render?lt.render(ae,{input:bn,errorList:Bn,extra:ir}):L.createElement(L.Fragment,null,bn,In);return L.createElement(i.q3.Provider,{value:sn},L.createElement(Vt.Z,Object.assign({},an,{className:un}),zn),L.createElement(De,{prefixCls:Re}))},G=u(61485),Ce=u(9017),en=u(85981),rt=u(25399),st=function(ae,Re){var $e={};for(var He in ae)Object.prototype.hasOwnProperty.call(ae,He)&&Re.indexOf(He)<0&&($e[He]=ae[He]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,He=Object.getOwnPropertySymbols(ae);ut<He.length;ut++)Re.indexOf(He[ut])<0&&Object.prototype.propertyIsEnumerable.call(ae,He[ut])&&($e[He[ut]]=ae[He[ut]]);return $e};function xt(ae){return ae?typeof ae=="object"&&!L.isValidElement(ae)?ae:{title:ae}:null}var Ee=ae=>{let{prefixCls:Re,label:$e,htmlFor:He,labelCol:ut,labelAlign:rn,colon:on,required:Ve,requiredMark:lt,tooltip:wt,vertical:Qt}=ae;var Yt;const[ye]=(0,Ce.Z)("Form"),{labelAlign:at,labelCol:Lt,labelWrap:Dt,colon:zt}=L.useContext(i.q3);if(!$e)return null;const an=ut||Lt||{},un=rn||at,sn=`${Re}-item-label`,vn=Z()(sn,un==="left"&&`${sn}-left`,an.className,{[`${sn}-wrap`]:!!Dt});let En=$e;const Rn=on===!0||zt!==!1&&on!==!1;Rn&&!Qt&&typeof $e=="string"&&$e.trim()&&(En=$e.replace(/[:|:]\s*$/,""));const Cn=xt(wt);if(Cn){const{icon:Yn=L.createElement(G.Z,null)}=Cn,tr=st(Cn,["icon"]),Jn=L.createElement(rt.Z,Object.assign({},tr),L.cloneElement(Yn,{className:`${Re}-item-tooltip`,title:"",onClick:qt=>{qt.preventDefault()},tabIndex:null}));En=L.createElement(L.Fragment,null,En,Jn)}const Bn=lt==="optional",Pn=typeof lt=="function",ir=lt===!1;Pn?En=lt(En,{required:!!Ve}):Bn&&!Ve&&(En=L.createElement(L.Fragment,null,En,L.createElement("span",{className:`${Re}-item-optional`,title:""},(ye==null?void 0:ye.optional)||((Yt=en.Z.Form)===null||Yt===void 0?void 0:Yt.optional))));let In;ir?In="hidden":(Bn||Pn)&&(In="optional");const zn=Z()({[`${Re}-item-required`]:Ve,[`${Re}-item-required-mark-${In}`]:In,[`${Re}-item-no-colon`]:!Rn});return L.createElement(Vt.Z,Object.assign({},an,{className:vn}),L.createElement("label",{htmlFor:He,className:zn,title:typeof $e=="string"?$e:""},En))},nt=u(29679),Ze=u(19248),z=u(96512),St=u(58617);const fe={success:nt.Z,warning:z.Z,error:Ze.Z,validating:St.Z};function Kt(ae){let{children:Re,errors:$e,warnings:He,hasFeedback:ut,validateStatus:rn,prefixCls:on,meta:Ve,noStyle:lt}=ae;const wt=`${on}-item`,{feedbackIcons:Qt}=L.useContext(i.q3),Yt=Fe($e,He,Ve,null,!!ut,rn),{isFormItemInput:ye,status:at,hasFeedback:Lt,feedbackIcon:Dt}=L.useContext(i.aM),zt=L.useMemo(()=>{var an;let un;if(ut){const vn=ut!==!0&&ut.icons||Qt,En=Yt&&((an=vn==null?void 0:vn({status:Yt,errors:$e,warnings:He}))===null||an===void 0?void 0:an[Yt]),Rn=Yt&&fe[Yt];un=En!==!1&&Rn?L.createElement("span",{className:Z()(`${wt}-feedback-icon`,`${wt}-feedback-icon-${Yt}`)},En||L.createElement(Rn,null)):null}const sn={status:Yt||"",errors:$e,warnings:He,hasFeedback:!!ut,feedbackIcon:un,isFormItemInput:!0};return lt&&(sn.status=(Yt!=null?Yt:at)||"",sn.isFormItemInput=ye,sn.hasFeedback=!!(ut!=null?ut:Lt),sn.feedbackIcon=ut!==void 0?sn.feedbackIcon:Dt),sn},[Yt,ut,lt,ye,at]);return L.createElement(i.aM.Provider,{value:zt},Re)}var dn=function(ae,Re){var $e={};for(var He in ae)Object.prototype.hasOwnProperty.call(ae,He)&&Re.indexOf(He)<0&&($e[He]=ae[He]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,He=Object.getOwnPropertySymbols(ae);ut<He.length;ut++)Re.indexOf(He[ut])<0&&Object.prototype.propertyIsEnumerable.call(ae,He[ut])&&($e[He[ut]]=ae[He[ut]]);return $e};function Bt(ae){const{prefixCls:Re,className:$e,rootClassName:He,style:ut,help:rn,errors:on,warnings:Ve,validateStatus:lt,meta:wt,hasFeedback:Qt,hidden:Yt,children:ye,fieldId:at,required:Lt,isRequired:Dt,onSubItemMetaChange:zt,layout:an}=ae,un=dn(ae,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),sn=`${Re}-item`,{requiredMark:vn,vertical:En}=L.useContext(i.q3),Rn=En||an==="vertical",bn=L.useRef(null),Cn=l(on),Bn=l(Ve),Pn=rn!=null,ir=!!(Pn||on.length||Ve.length),In=!!bn.current&&(0,Ot.Z)(bn.current),[zn,Yn]=L.useState(null);(0,_t.Z)(()=>{if(ir&&bn.current){const yn=getComputedStyle(bn.current);Yn(parseInt(yn.marginBottom,10))}},[ir,In]);const tr=yn=>{yn||Yn(null)},qt=function(){let yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Zn=yn?Cn:wt.errors,Ht=yn?Bn:wt.warnings;return Fe(Zn,Ht,wt,"",!!Qt,lt)}(),tn=Z()(sn,$e,He,{[`${sn}-with-help`]:Pn||Cn.length||Bn.length,[`${sn}-has-feedback`]:qt&&Qt,[`${sn}-has-success`]:qt==="success",[`${sn}-has-warning`]:qt==="warning",[`${sn}-has-error`]:qt==="error",[`${sn}-is-validating`]:qt==="validating",[`${sn}-hidden`]:Yt,[`${sn}-${an}`]:an});return L.createElement("div",{className:tn,style:ut,ref:bn},L.createElement(kt.Z,Object.assign({className:`${sn}-row`},(0,Pt.Z)(un,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),L.createElement(Ee,Object.assign({htmlFor:at},ae,{requiredMark:vn,required:Lt!=null?Lt:Dt,prefixCls:Re,vertical:Rn})),L.createElement(je,Object.assign({},ae,wt,{errors:Cn,warnings:Bn,prefixCls:Re,status:qt,help:rn,marginBottom:zn,onErrorVisibleChanged:tr}),L.createElement(i.qI.Provider,{value:zt},L.createElement(Kt,{prefixCls:Re,meta:wt,errors:wt.errors,warnings:wt.warnings,hasFeedback:Qt,validateStatus:qt},ye)))),!!zn&&L.createElement("div",{className:`${sn}-margin-offset`,style:{marginBottom:-zn}}))}const J="__SPLIT__",we=null;function M(ae,Re){const $e=Object.keys(ae),He=Object.keys(Re);return $e.length===He.length&&$e.every(ut=>{const rn=ae[ut],on=Re[ut];return rn===on||typeof rn=="function"||typeof on=="function"})}const Ct=L.memo(ae=>{let{children:Re}=ae;return Re},(ae,Re)=>M(ae.control,Re.control)&&ae.update===Re.update&&ae.childProps.length===Re.childProps.length&&ae.childProps.every(($e,He)=>$e===Re.childProps[He]));function ot(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function dt(ae){const{name:Re,noStyle:$e,className:He,dependencies:ut,prefixCls:rn,shouldUpdate:on,rules:Ve,children:lt,required:wt,label:Qt,messageVariables:Yt,trigger:ye="onChange",validateTrigger:at,hidden:Lt,help:Dt,layout:zt}=ae,{getPrefixCls:an}=L.useContext(w.E_),{name:un}=L.useContext(i.q3),sn=Te(lt),vn=typeof sn=="function",En=L.useContext(i.qI),{validateTrigger:Rn}=L.useContext(se.FieldContext),bn=at!==void 0?at:Rn,Cn=Re!=null,Bn=an("form",rn),Pn=(0,Y.Z)(Bn),[ir,In,zn]=oe(Bn,Pn),Yn=(0,_e.ln)("Form.Item"),tr=L.useContext(se.ListContext),Jn=L.useRef(null),[qt,tn]=de({}),[yn,Zn]=(0,Ge.Z)(()=>ot()),Ht=Vn=>{const An=tr==null?void 0:tr.getKey(Vn.name);if(Zn(Vn.destroy?ot():Vn,!0),$e&&Dt!==!1&&En){let pn=Vn.name;if(Vn.destroy)pn=Jn.current||pn;else if(An!==void 0){const[Tn,Xn]=An;pn=[Tn].concat((0,K.Z)(Xn)),Jn.current=pn}En(Vn,pn)}},Un=(Vn,An)=>{tn(pn=>{const Tn=Object.assign({},pn),nr=[].concat((0,K.Z)(Vn.name.slice(0,-1)),(0,K.Z)(An)).join(J);return Vn.destroy?delete Tn[nr]:Tn[nr]=Vn,Tn})},[er,lr]=L.useMemo(()=>{const Vn=(0,K.Z)(yn.errors),An=(0,K.Z)(yn.warnings);return Object.values(qt).forEach(pn=>{Vn.push.apply(Vn,(0,K.Z)(pn.errors||[])),An.push.apply(An,(0,K.Z)(pn.warnings||[]))}),[Vn,An]},[qt,yn.errors,yn.warnings]),_r=xe();function Ar(Vn,An,pn){return $e&&!Lt?L.createElement(Kt,{prefixCls:Bn,hasFeedback:ae.hasFeedback,validateStatus:ae.validateStatus,meta:yn,errors:er,warnings:lr,noStyle:!0},Vn):L.createElement(Bt,Object.assign({key:"row"},ae,{className:Z()(He,zn,Pn,In),prefixCls:Bn,fieldId:An,isRequired:pn,errors:er,warnings:lr,meta:yn,onSubItemMetaChange:Un,layout:zt}),Vn)}if(!Cn&&!vn&&!ut)return ir(Ar(sn));let Sr={};return typeof Qt=="string"?Sr.label=Qt:Re&&(Sr.label=String(Re)),Yt&&(Sr=Object.assign(Object.assign({},Sr),Yt)),ir(L.createElement(se.Field,Object.assign({},ae,{messageVariables:Sr,trigger:ye,validateTrigger:bn,onMetaChange:Ht}),(Vn,An,pn)=>{const Tn=ht(Re).length&&An?An.name:[],Xn=tt(Tn,un),nr=wt!==void 0?wt:!!(Ve!=null&&Ve.some(Fn=>{if(Fn&&typeof Fn=="object"&&Fn.required&&!Fn.warningOnly)return!0;if(typeof Fn=="function"){const yr=Fn(pn);return(yr==null?void 0:yr.required)&&!(yr!=null&&yr.warningOnly)}return!1})),gr=Object.assign({},Vn);let Er=null;if(Array.isArray(sn)&&Cn)Er=sn;else if(!(vn&&(!(on||ut)||Cn))){if(!(ut&&!vn&&!Cn))if(L.isValidElement(sn)){const Fn=Object.assign(Object.assign({},sn.props),gr);if(Fn.id||(Fn.id=Xn),Dt||er.length>0||lr.length>0||ae.extra){const Zr=[];(Dt||er.length>0)&&Zr.push(`${Xn}_help`),ae.extra&&Zr.push(`${Xn}_extra`),Fn["aria-describedby"]=Zr.join(" ")}er.length>0&&(Fn["aria-invalid"]="true"),nr&&(Fn["aria-required"]="true"),(0,j.Yr)(sn)&&(Fn.ref=_r(Tn,sn)),new Set([].concat((0,K.Z)(ht(ye)),(0,K.Z)(ht(bn)))).forEach(Zr=>{Fn[Zr]=function(){for(var Nr,Lr,Cr,Fr,Jt,On=arguments.length,Gn=new Array(On),ur=0;ur<On;ur++)Gn[ur]=arguments[ur];(Cr=gr[Zr])===null||Cr===void 0||(Nr=Cr).call.apply(Nr,[gr].concat(Gn)),(Jt=(Fr=sn.props)[Zr])===null||Jt===void 0||(Lr=Jt).call.apply(Lr,[Fr].concat(Gn))}});const Ir=[Fn["aria-required"],Fn["aria-invalid"],Fn["aria-describedby"]];Er=L.createElement(Ct,{control:gr,update:sn,childProps:Ir},(0,P.Tm)(sn,Fn))}else vn&&(on||ut)&&!Cn?Er=sn(pn):Er=sn}return Ar(Er,Xn,nr)}))}const $t=dt;$t.useStatus=Ue;var Ft=$t,Mt=function(ae,Re){var $e={};for(var He in ae)Object.prototype.hasOwnProperty.call(ae,He)&&Re.indexOf(He)<0&&($e[He]=ae[He]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,He=Object.getOwnPropertySymbols(ae);ut<He.length;ut++)Re.indexOf(He[ut])<0&&Object.prototype.propertyIsEnumerable.call(ae,He[ut])&&($e[He[ut]]=ae[He[ut]]);return $e},ve=ae=>{var{prefixCls:Re,children:$e}=ae,He=Mt(ae,["prefixCls","children"]);const{getPrefixCls:ut}=L.useContext(w.E_),rn=ut("form",Re),on=L.useMemo(()=>({prefixCls:rn,status:"error"}),[rn]);return L.createElement(se.List,Object.assign({},He),(Ve,lt,wt)=>L.createElement(i.Rk.Provider,{value:on},$e(Ve.map(Qt=>Object.assign(Object.assign({},Qt),{fieldKey:Qt.key})),lt,{errors:wt.errors,warnings:wt.warnings})))};function At(){const{form:ae}=L.useContext(i.q3);return ae}const Be=Pe;Be.Item=Ft,Be.List=ve,Be.ErrorList=ne,Be.useForm=vt,Be.useFormInstance=At,Be.useWatch=se.useWatch,Be.Provider=i.RV,Be.create=()=>{};var Le=Be},49397:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return O}});var i=u(59301),K=u(92310),L=u.n(K),he=u(36901),Z=u(8654),g=u(62487),W=u(86013),Y=u(82855),l=u(48755),x=u(2171),N=u(83397),y=u(31756),T=u(56553),A=u(24971),$=u(70045),H=u(23826),X=u(53075);function V(I){return!!(I.prefix||I.suffix||I.allowClear||I.showCount)}var R=function(I,ue){var Se={};for(var me in I)Object.prototype.hasOwnProperty.call(I,me)&&ue.indexOf(me)<0&&(Se[me]=I[me]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,me=Object.getOwnPropertySymbols(I);Ke<me.length;Ke++)ue.indexOf(me[Ke])<0&&Object.prototype.propertyIsEnumerable.call(I,me[Ke])&&(Se[me[Ke]]=I[me[Ke]]);return Se},O=(0,i.forwardRef)((I,ue)=>{const{prefixCls:Se,bordered:me=!0,status:Ke,size:Je,disabled:ke,onBlur:We,onFocus:oe,suffix:k,allowClear:_,addonAfter:ee,addonBefore:ne,className:se,style:w,styles:D,rootClassName:ce,onChange:Oe,classNames:ct,variant:Tt}=I,Ae=R(I,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:qe,direction:ht,allowClear:tt,autoComplete:Fe,className:jt,style:bt,classNames:cn,styles:vt}=(0,l.dj)("input"),pt=qe("input",Se),Qe=(0,i.useRef)(null),Ne=(0,N.Z)(pt),[le,Pe,Ge]=(0,X.TI)(pt,ce),[j]=(0,X.ZP)(pt,Ne),{compactSize:P,compactItemClassnames:_e}=(0,$.ri)(pt,ht),Ie=(0,y.Z)(S=>{var je;return(je=Je!=null?Je:P)!==null&&je!==void 0?je:S}),Te=i.useContext(x.Z),ze=ke!=null?ke:Te,{status:Ue,hasFeedback:ft,feedbackIcon:de}=(0,i.useContext)(T.aM),xe=(0,Y.F)(Ue,Ke),Ot=V(I)||!!ft,_t=(0,i.useRef)(Ot),Pt=(0,H.Z)(Qe,!0),kt=S=>{Pt(),We==null||We(S)},mt=S=>{Pt(),oe==null||oe(S)},Vt=S=>{Pt(),Oe==null||Oe(S)},Nt=(ft||k)&&i.createElement(i.Fragment,null,k,ft&&de),De=(0,W.Z)(_!=null?_:tt),[gt,E]=(0,A.Z)("input",Tt,me);return le(j(i.createElement(he.default,Object.assign({ref:(0,Z.sQ)(ue,Qe),prefixCls:pt,autoComplete:Fe},Ae,{disabled:ze,onBlur:kt,onFocus:mt,style:Object.assign(Object.assign({},bt),w),styles:Object.assign(Object.assign({},vt),D),suffix:Nt,allowClear:De,className:L()(se,ce,Ge,Ne,_e,jt),onChange:Vt,addonBefore:ne&&i.createElement(g.Z,{form:!0,space:!0},ne),addonAfter:ee&&i.createElement(g.Z,{form:!0,space:!0},ee),classNames:Object.assign(Object.assign(Object.assign({},ct),cn),{input:L()({[`${pt}-sm`]:Ie==="small",[`${pt}-lg`]:Ie==="large",[`${pt}-rtl`]:ht==="rtl"},ct==null?void 0:ct.input,cn.input,Pe),variant:L()({[`${pt}-${gt}`]:E},(0,Y.Z)(pt,xe)),affixWrapper:L()({[`${pt}-affix-wrapper-sm`]:Ie==="small",[`${pt}-affix-wrapper-lg`]:Ie==="large",[`${pt}-affix-wrapper-rtl`]:ht==="rtl"},Pe),wrapper:L()({[`${pt}-group-rtl`]:ht==="rtl"},Pe),groupWrapper:L()({[`${pt}-group-wrapper-sm`]:Ie==="small",[`${pt}-group-wrapper-lg`]:Ie==="large",[`${pt}-group-wrapper-rtl`]:ht==="rtl",[`${pt}-group-wrapper-${gt}`]:E},(0,Y.Z)(`${pt}-group-wrapper`,xe,ft),Pe)})}))))})},79809:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return ue}});var i=u(59301),K=u(92310),L=u.n(K),he=u(22711),Z=u(86013),g=u(82855),W=u(48755),Y=u(2171),l=u(83397),x=u(31756),N=u(56553),y=u(24971),T=u(70045),A=u(30292),$=u(53075),H=u(16931),X=u(51636),V=u(64910);const R=Se=>{const{componentCls:me,paddingLG:Ke}=Se,Je=`${me}-textarea`;return{[`textarea${me}`]:{maxWidth:"100%",height:"auto",minHeight:Se.controlHeight,lineHeight:Se.lineHeight,verticalAlign:"bottom",transition:`all ${Se.motionDurationSlow}`,resize:"vertical",[`&${me}-mouse-active`]:{transition:`all ${Se.motionDurationSlow}, height 0s, width 0s`}},[`${me}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Je]:{position:"relative","&-show-count":{[`> ${me}`]:{height:"100%"},[`${me}-data-count`]:{position:"absolute",bottom:Se.calc(Se.fontSize).mul(Se.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Se.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${me},
|
|
|
&-affix-wrapper${Je}-has-feedback ${me}
|
|
|
`]:{paddingInlineEnd:Ke},[`&-affix-wrapper${me}-affix-wrapper`]:{padding:0,[`> textarea${me}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Se.calc(Se.controlHeight).sub(Se.calc(Se.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${me}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${me}-clear-icon`]:{position:"absolute",insetInlineEnd:Se.paddingInline,insetBlockStart:Se.paddingXS},[`${Je}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Se.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${me}-affix-wrapper-sm`]:{[`${me}-suffix`]:{[`${me}-clear-icon`]:{insetInlineEnd:Se.paddingInlineSM}}}}}};var Q=(0,H.I$)(["Input","TextArea"],Se=>{const me=(0,X.mergeToken)(Se,(0,V.e)(Se));return[R(me)]},V.T,{resetFont:!1}),O=function(Se,me){var Ke={};for(var Je in Se)Object.prototype.hasOwnProperty.call(Se,Je)&&me.indexOf(Je)<0&&(Ke[Je]=Se[Je]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Je=Object.getOwnPropertySymbols(Se);ke<Je.length;ke++)me.indexOf(Je[ke])<0&&Object.prototype.propertyIsEnumerable.call(Se,Je[ke])&&(Ke[Je[ke]]=Se[Je[ke]]);return Ke},ue=(0,i.forwardRef)((Se,me)=>{var Ke;const{prefixCls:Je,bordered:ke=!0,size:We,disabled:oe,status:k,allowClear:_,classNames:ee,rootClassName:ne,className:se,style:w,styles:D,variant:ce,showCount:Oe,onMouseDown:ct,onResize:Tt}=Se,Ae=O(Se,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:qe,direction:ht,allowClear:tt,autoComplete:Fe,className:jt,style:bt,classNames:cn,styles:vt}=(0,W.dj)("textArea"),pt=i.useContext(Y.Z),Qe=oe!=null?oe:pt,{status:Ne,hasFeedback:le,feedbackIcon:Pe}=i.useContext(N.aM),Ge=(0,g.F)(Ne,k),j=i.useRef(null);i.useImperativeHandle(me,()=>{var E;return{resizableTextArea:(E=j.current)===null||E===void 0?void 0:E.resizableTextArea,focus:S=>{var je,G;(0,A.nH)((G=(je=j.current)===null||je===void 0?void 0:je.resizableTextArea)===null||G===void 0?void 0:G.textArea,S)},blur:()=>{var S;return(S=j.current)===null||S===void 0?void 0:S.blur()}}});const P=qe("input",Je),_e=(0,l.Z)(P),[Ie,Te,ze]=(0,$.TI)(P,ne),[Ue]=Q(P,_e),{compactSize:ft,compactItemClassnames:de}=(0,T.ri)(P,ht),xe=(0,x.Z)(E=>{var S;return(S=We!=null?We:ft)!==null&&S!==void 0?S:E}),[Ot,_t]=(0,y.Z)("textArea",ce,ke),Pt=(0,Z.Z)(_!=null?_:tt),[kt,mt]=i.useState(!1),[Vt,Nt]=i.useState(!1),De=E=>{mt(!0),ct==null||ct(E);const S=()=>{mt(!1),document.removeEventListener("mouseup",S)};document.addEventListener("mouseup",S)},gt=E=>{var S,je;if(Tt==null||Tt(E),kt&&typeof getComputedStyle=="function"){const G=(je=(S=j.current)===null||S===void 0?void 0:S.nativeElement)===null||je===void 0?void 0:je.querySelector("textarea");G&&getComputedStyle(G).resize==="both"&&Nt(!0)}};return Ie(Ue(i.createElement(he.default,Object.assign({autoComplete:Fe},Ae,{style:Object.assign(Object.assign({},bt),w),styles:Object.assign(Object.assign({},vt),D),disabled:Qe,allowClear:Pt,className:L()(ze,_e,se,ne,de,jt,Vt&&`${P}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},ee),cn),{textarea:L()({[`${P}-sm`]:xe==="small",[`${P}-lg`]:xe==="large"},Te,ee==null?void 0:ee.textarea,cn.textarea,kt&&`${P}-mouse-active`),variant:L()({[`${P}-${Ot}`]:_t},(0,g.Z)(P,Ge)),affixWrapper:L()(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:ht==="rtl",[`${P}-affix-wrapper-sm`]:xe==="small",[`${P}-affix-wrapper-lg`]:xe==="large",[`${P}-textarea-show-count`]:Oe||((Ke=Se.count)===null||Ke===void 0?void 0:Ke.show)},Te)}),prefixCls:P,suffix:le&&i.createElement("span",{className:`${P}-textarea-suffix`},Pe),showCount:Oe,ref:j,onResize:gt,onMouseDown:De}))))})},23826:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return K}});var i=u(59301);function K(L,he){const Z=(0,i.useRef)([]),g=()=>{Z.current.push(setTimeout(()=>{var W,Y,l,x;!((W=L.current)===null||W===void 0)&&W.input&&((Y=L.current)===null||Y===void 0?void 0:Y.input.getAttribute("type"))==="password"&&(!((l=L.current)===null||l===void 0)&&l.input.hasAttribute("value"))&&((x=L.current)===null||x===void 0||x.input.removeAttribute("value"))}))};return(0,i.useEffect)(()=>(he&&g(),()=>Z.current.forEach(W=>{W&&clearTimeout(W)})),[]),g}},37568:function($n,Rt,u){"use strict";u.d(Rt,{default:function(){return cn}});var i=u(59301),K=u(92310),L=u.n(K),he=u(48755),Z=u(56553),g=u(53075),Y=vt=>{const{getPrefixCls:pt,direction:Qe}=(0,i.useContext)(he.E_),{prefixCls:Ne,className:le}=vt,Pe=pt("input-group",Ne),Ge=pt("input"),[j,P,_e]=(0,g.ZP)(Ge),Ie=L()(Pe,_e,{[`${Pe}-lg`]:vt.size==="large",[`${Pe}-sm`]:vt.size==="small",[`${Pe}-compact`]:vt.compact,[`${Pe}-rtl`]:Qe==="rtl"},P,le),Te=(0,i.useContext)(Z.aM),ze=(0,i.useMemo)(()=>Object.assign(Object.assign({},Te),{isFormItemInput:!1}),[Te]);return j(i.createElement("span",{className:Ie,style:vt.style,onMouseEnter:vt.onMouseEnter,onMouseLeave:vt.onMouseLeave,onFocus:vt.onFocus,onBlur:vt.onBlur},i.createElement(Z.aM.Provider,{value:ze},vt.children)))},l=u(49397),x=u(77654),N=u(6089),y=u(26112),T=u(82855),A=u(31756),$=u(16931),H=u(51636),X=u(64910);const V=vt=>{const{componentCls:pt,paddingXS:Qe}=vt;return{[pt]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:Qe,"&-rtl":{direction:"rtl"},[`${pt}-input`]:{textAlign:"center",paddingInline:vt.paddingXXS},[`&${pt}-sm ${pt}-input`]:{paddingInline:vt.calc(vt.paddingXXS).div(2).equal()},[`&${pt}-lg ${pt}-input`]:{paddingInline:vt.paddingXS}}}};var R=(0,$.I$)(["Input","OTP"],vt=>{const pt=(0,H.mergeToken)(vt,(0,X.e)(vt));return[V(pt)]},X.T),Q=u(16089),O=function(vt,pt){var Qe={};for(var Ne in vt)Object.prototype.hasOwnProperty.call(vt,Ne)&&pt.indexOf(Ne)<0&&(Qe[Ne]=vt[Ne]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,Ne=Object.getOwnPropertySymbols(vt);le<Ne.length;le++)pt.indexOf(Ne[le])<0&&Object.prototype.propertyIsEnumerable.call(vt,Ne[le])&&(Qe[Ne[le]]=vt[Ne[le]]);return Qe},ue=i.forwardRef((vt,pt)=>{const{value:Qe,onChange:Ne,onActiveChange:le,index:Pe,mask:Ge}=vt,j=O(vt,["value","onChange","onActiveChange","index","mask"]),P=Qe&&typeof Ge=="string"?Ge:Qe,_e=ft=>{Ne(Pe,ft.target.value)},Ie=i.useRef(null);i.useImperativeHandle(pt,()=>Ie.current);const Te=()=>{(0,Q.Z)(()=>{var ft;const de=(ft=Ie.current)===null||ft===void 0?void 0:ft.input;document.activeElement===de&&de&&de.select()})},ze=ft=>{const{key:de,ctrlKey:xe,metaKey:Ot}=ft;de==="ArrowLeft"?le(Pe-1):de==="ArrowRight"?le(Pe+1):de==="z"&&(xe||Ot)&&ft.preventDefault(),Te()},Ue=ft=>{ft.key==="Backspace"&&!Qe&&le(Pe-1),Te()};return i.createElement(l.Z,Object.assign({type:Ge===!0?"password":"text"},j,{ref:Ie,value:P,onInput:_e,onFocus:Te,onKeyDown:ze,onKeyUp:Ue,onMouseDown:Te,onMouseUp:Te}))}),Se=function(vt,pt){var Qe={};for(var Ne in vt)Object.prototype.hasOwnProperty.call(vt,Ne)&&pt.indexOf(Ne)<0&&(Qe[Ne]=vt[Ne]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,Ne=Object.getOwnPropertySymbols(vt);le<Ne.length;le++)pt.indexOf(Ne[le])<0&&Object.prototype.propertyIsEnumerable.call(vt,Ne[le])&&(Qe[Ne[le]]=vt[Ne[le]]);return Qe};function me(vt){return(vt||"").split("")}const Ke=vt=>{const{index:pt,prefixCls:Qe,separator:Ne}=vt,le=typeof Ne=="function"?Ne(pt):Ne;return le?i.createElement("span",{className:`${Qe}-separator`},le):null};var ke=i.forwardRef((vt,pt)=>{const{prefixCls:Qe,length:Ne=6,size:le,defaultValue:Pe,value:Ge,onChange:j,formatter:P,separator:_e,variant:Ie,disabled:Te,status:ze,autoFocus:Ue,mask:ft,type:de,onInput:xe,inputMode:Ot}=vt,_t=Se(vt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Pt,direction:kt}=i.useContext(he.E_),mt=Pt("otp",Qe),Vt=(0,y.Z)(_t,{aria:!0,data:!0,attr:!0}),[Nt,De,gt]=R(mt),E=(0,A.Z)(St=>le!=null?le:St),S=i.useContext(Z.aM),je=(0,T.F)(S.status,ze),G=i.useMemo(()=>Object.assign(Object.assign({},S),{status:je,hasFeedback:!1,feedbackIcon:null}),[S,je]),Ce=i.useRef(null),en=i.useRef({});i.useImperativeHandle(pt,()=>({focus:()=>{var St;(St=en.current[0])===null||St===void 0||St.focus()},blur:()=>{var St;for(let fe=0;fe<Ne;fe+=1)(St=en.current[fe])===null||St===void 0||St.blur()},nativeElement:Ce.current}));const rt=St=>P?P(St):St,[st,xt]=i.useState(()=>me(rt(Pe||"")));i.useEffect(()=>{Ge!==void 0&&xt(me(Ge))},[Ge]);const pe=(0,N.Z)(St=>{xt(St),xe&&xe(St),j&&St.length===Ne&&St.every(fe=>fe)&&St.some((fe,Kt)=>st[Kt]!==fe)&&j(St.join(""))}),Ee=(0,N.Z)((St,fe)=>{let Kt=(0,x.Z)(st);for(let Bt=0;Bt<St;Bt+=1)Kt[Bt]||(Kt[Bt]="");fe.length<=1?Kt[St]=fe:Kt=Kt.slice(0,St).concat(me(fe)),Kt=Kt.slice(0,Ne);for(let Bt=Kt.length-1;Bt>=0&&!Kt[Bt];Bt-=1)Kt.pop();const dn=rt(Kt.map(Bt=>Bt||" ").join(""));return Kt=me(dn).map((Bt,J)=>Bt===" "&&!Kt[J]?Kt[J]:Bt),Kt}),nt=(St,fe)=>{var Kt;const dn=Ee(St,fe),Bt=Math.min(St+fe.length,Ne-1);Bt!==St&&dn[St]!==void 0&&((Kt=en.current[Bt])===null||Kt===void 0||Kt.focus()),pe(dn)},Ze=St=>{var fe;(fe=en.current[St])===null||fe===void 0||fe.focus()},z={variant:Ie,disabled:Te,status:je,mask:ft,type:de,inputMode:Ot};return Nt(i.createElement("div",Object.assign({},Vt,{ref:Ce,className:L()(mt,{[`${mt}-sm`]:E==="small",[`${mt}-lg`]:E==="large",[`${mt}-rtl`]:kt==="rtl"},gt,De)}),i.createElement(Z.aM.Provider,{value:G},Array.from({length:Ne}).map((St,fe)=>{const Kt=`otp-${fe}`,dn=st[fe]||"";return i.createElement(i.Fragment,{key:Kt},i.createElement(ue,Object.assign({ref:Bt=>{en.current[fe]=Bt},index:fe,size:E,htmlSize:1,className:`${mt}-input`,onChange:nt,value:dn,onActiveChange:Ze,autoFocus:fe===0&&Ue},z)),fe<Ne-1&&i.createElement(Ke,{separator:_e,index:fe,prefixCls:mt}))}))))}),We=u(73331),oe=u(15277),k=u(2738),_=u(8654),ee=u(2171),ne=u(23826),se=function(vt,pt){var Qe={};for(var Ne in vt)Object.prototype.hasOwnProperty.call(vt,Ne)&&pt.indexOf(Ne)<0&&(Qe[Ne]=vt[Ne]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,Ne=Object.getOwnPropertySymbols(vt);le<Ne.length;le++)pt.indexOf(Ne[le])<0&&Object.prototype.propertyIsEnumerable.call(vt,Ne[le])&&(Qe[Ne[le]]=vt[Ne[le]]);return Qe};const w=vt=>vt?i.createElement(oe.Z,null):i.createElement(We.Z,null),D={click:"onClick",hover:"onMouseOver"};var Oe=i.forwardRef((vt,pt)=>{const{disabled:Qe,action:Ne="click",visibilityToggle:le=!0,iconRender:Pe=w}=vt,Ge=i.useContext(ee.Z),j=Qe!=null?Qe:Ge,P=typeof le=="object"&&le.visible!==void 0,[_e,Ie]=(0,i.useState)(()=>P?le.visible:!1),Te=(0,i.useRef)(null);i.useEffect(()=>{P&&Ie(le.visible)},[P,le]);const ze=(0,ne.Z)(Te),Ue=()=>{var E;if(j)return;_e&&ze();const S=!_e;Ie(S),typeof le=="object"&&((E=le.onVisibleChange)===null||E===void 0||E.call(le,S))},ft=E=>{const S=D[Ne]||"",je=Pe(_e),G={[S]:Ue,className:`${E}-icon`,key:"passwordIcon",onMouseDown:Ce=>{Ce.preventDefault()},onMouseUp:Ce=>{Ce.preventDefault()}};return i.cloneElement(i.isValidElement(je)?je:i.createElement("span",null,je),G)},{className:de,prefixCls:xe,inputPrefixCls:Ot,size:_t}=vt,Pt=se(vt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:kt}=i.useContext(he.E_),mt=kt("input",Ot),Vt=kt("input-password",xe),Nt=le&&ft(Vt),De=L()(Vt,de,{[`${Vt}-${_t}`]:!!_t}),gt=Object.assign(Object.assign({},(0,k.Z)(Pt,["suffix","iconRender","visibilityToggle"])),{type:_e?"text":"password",className:De,prefixCls:mt,suffix:Nt});return _t&&(gt.size=_t),i.createElement(l.Z,Object.assign({ref:(0,_.sQ)(pt,Te)},gt))}),ct=u(47472),Tt=u(22703),Ae=u(7939),qe=u(70045),ht=function(vt,pt){var Qe={};for(var Ne in vt)Object.prototype.hasOwnProperty.call(vt,Ne)&&pt.indexOf(Ne)<0&&(Qe[Ne]=vt[Ne]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,Ne=Object.getOwnPropertySymbols(vt);le<Ne.length;le++)pt.indexOf(Ne[le])<0&&Object.prototype.propertyIsEnumerable.call(vt,Ne[le])&&(Qe[Ne[le]]=vt[Ne[le]]);return Qe},Fe=i.forwardRef((vt,pt)=>{const{prefixCls:Qe,inputPrefixCls:Ne,className:le,size:Pe,suffix:Ge,enterButton:j=!1,addonAfter:P,loading:_e,disabled:Ie,onSearch:Te,onChange:ze,onCompositionStart:Ue,onCompositionEnd:ft}=vt,de=ht(vt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:xe,direction:Ot}=i.useContext(he.E_),_t=i.useRef(!1),Pt=xe("input-search",Qe),kt=xe("input",Ne),{compactSize:mt}=(0,qe.ri)(Pt,Ot),Vt=(0,A.Z)(nt=>{var Ze;return(Ze=Pe!=null?Pe:mt)!==null&&Ze!==void 0?Ze:nt}),Nt=i.useRef(null),De=nt=>{nt!=null&&nt.target&&nt.type==="click"&&Te&&Te(nt.target.value,nt,{source:"clear"}),ze==null||ze(nt)},gt=nt=>{var Ze;document.activeElement===((Ze=Nt.current)===null||Ze===void 0?void 0:Ze.input)&&nt.preventDefault()},E=nt=>{var Ze,z;Te&&Te((z=(Ze=Nt.current)===null||Ze===void 0?void 0:Ze.input)===null||z===void 0?void 0:z.value,nt,{source:"input"})},S=nt=>{_t.current||_e||E(nt)},je=typeof j=="boolean"?i.createElement(ct.Z,null):null,G=`${Pt}-button`;let Ce;const en=j||{},rt=en.type&&en.type.__ANT_BUTTON===!0;rt||en.type==="button"?Ce=(0,Tt.Tm)(en,Object.assign({onMouseDown:gt,onClick:nt=>{var Ze,z;(z=(Ze=en==null?void 0:en.props)===null||Ze===void 0?void 0:Ze.onClick)===null||z===void 0||z.call(Ze,nt),E(nt)},key:"enterButton"},rt?{className:G,size:Vt}:{})):Ce=i.createElement(Ae.ZP,{className:G,type:j?"primary":void 0,size:Vt,disabled:Ie,key:"enterButton",onMouseDown:gt,onClick:E,loading:_e,icon:je},j),P&&(Ce=[Ce,(0,Tt.Tm)(P,{key:"addonAfter"})]);const st=L()(Pt,{[`${Pt}-rtl`]:Ot==="rtl",[`${Pt}-${Vt}`]:!!Vt,[`${Pt}-with-button`]:!!j},le),xt=Object.assign(Object.assign({},de),{className:st,prefixCls:kt,type:"search"}),pe=nt=>{_t.current=!0,Ue==null||Ue(nt)},Ee=nt=>{_t.current=!1,ft==null||ft(nt)};return i.createElement(l.Z,Object.assign({ref:(0,_.sQ)(Nt,pt),onPressEnter:S},xt,{size:Vt,onCompositionStart:pe,onCompositionEnd:Ee,addonAfter:Ce,suffix:Ge,onChange:De,disabled:Ie}))}),jt=u(79809);const bt=l.Z;bt.Group=Y,bt.Search=Fe,bt.TextArea=jt.Z,bt.Password=Oe,bt.OTP=ke;var cn=bt},53075:function($n,Rt,u){"use strict";u.d(Rt,{TI:function(){return Q},ik:function(){return y},nz:function(){return Y},s7:function(){return T},x0:function(){return N}});var i=u(36237),K=u(63356),L=u(56119),he=u(16931),Z=u(51636),g=u(64910),W=u(39082);const Y=O=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:O,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),l=O=>({borderColor:O.activeBorderColor,boxShadow:O.activeShadow,outline:0,backgroundColor:O.activeBg}),x=O=>{const{paddingBlockLG:I,lineHeightLG:ue,borderRadiusLG:Se,paddingInlineLG:me}=O;return{padding:`${(0,i.unit)(I)} ${(0,i.unit)(me)}`,fontSize:O.inputFontSizeLG,lineHeight:ue,borderRadius:Se}},N=O=>({padding:`${(0,i.unit)(O.paddingBlockSM)} ${(0,i.unit)(O.paddingInlineSM)}`,fontSize:O.inputFontSizeSM,borderRadius:O.borderRadiusSM}),y=O=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,i.unit)(O.paddingBlock)} ${(0,i.unit)(O.paddingInline)}`,color:O.colorText,fontSize:O.inputFontSize,lineHeight:O.lineHeight,borderRadius:O.borderRadius,transition:`all ${O.motionDurationMid}`},Y(O.colorTextPlaceholder)),{"&-lg":Object.assign({},x(O)),"&-sm":Object.assign({},N(O)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),T=O=>{const{componentCls:I,antCls:ue}=O;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:O.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${I}, &-lg > ${I}-group-addon`]:Object.assign({},x(O)),[`&-sm ${I}, &-sm > ${I}-group-addon`]:Object.assign({},N(O)),[`&-lg ${ue}-select-single ${ue}-select-selector`]:{height:O.controlHeightLG},[`&-sm ${ue}-select-single ${ue}-select-selector`]:{height:O.controlHeightSM},[`> ${I}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${I}-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 ${(0,i.unit)(O.paddingInline)}`,color:O.colorText,fontWeight:"normal",fontSize:O.inputFontSize,textAlign:"center",borderRadius:O.borderRadius,transition:`all ${O.motionDurationSlow}`,lineHeight:1,[`${ue}-select`]:{margin:`${(0,i.unit)(O.calc(O.paddingBlock).add(1).mul(-1).equal())} ${(0,i.unit)(O.calc(O.paddingInline).mul(-1).equal())}`,[`&${ue}-select-single:not(${ue}-select-customize-input):not(${ue}-pagination-size-changer)`]:{[`${ue}-select-selector`]:{backgroundColor:"inherit",border:`${(0,i.unit)(O.lineWidth)} ${O.lineType} transparent`,boxShadow:"none"}}},[`${ue}-cascader-picker`]:{margin:`-9px ${(0,i.unit)(O.calc(O.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${ue}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[I]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${I}-search-with-button &`]:{zIndex:0}}},[`> ${I}:first-child, ${I}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${ue}-select ${ue}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${I}-affix-wrapper`]:{[`&:not(:first-child) ${I}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${I}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${I}:last-child, ${I}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${ue}-select ${ue}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${I}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${I}-search &`]:{borderStartStartRadius:O.borderRadius,borderEndStartRadius:O.borderRadius}},[`&:not(:first-child), ${I}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${I}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,K.dF)()),{[`${I}-group-addon, ${I}-group-wrap, > ${I}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:O.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${I}-affix-wrapper,
|
|
|
& > ${I}-number-affix-wrapper,
|
|
|
& > ${ue}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:O.calc(O.lineWidth).mul(-1).equal(),borderInlineEndWidth:O.lineWidth},[I]:{float:"none"},[`& > ${ue}-select > ${ue}-select-selector,
|
|
|
& > ${ue}-select-auto-complete ${I},
|
|
|
& > ${ue}-cascader-picker ${I},
|
|
|
& > ${I}-group-wrapper ${I}`]:{borderInlineEndWidth:O.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${ue}-select-focused`]:{zIndex:1},[`& > ${ue}-select > ${ue}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${ue}-select:first-child > ${ue}-select-selector,
|
|
|
& > ${ue}-select-auto-complete:first-child ${I},
|
|
|
& > ${ue}-cascader-picker:first-child ${I}`]:{borderStartStartRadius:O.borderRadius,borderEndStartRadius:O.borderRadius},[`& > *:last-child,
|
|
|
& > ${ue}-select:last-child > ${ue}-select-selector,
|
|
|
& > ${ue}-cascader-picker:last-child ${I},
|
|
|
& > ${ue}-cascader-picker-focused:last-child ${I}`]:{borderInlineEndWidth:O.lineWidth,borderStartEndRadius:O.borderRadius,borderEndEndRadius:O.borderRadius},[`& > ${ue}-select-auto-complete ${I}`]:{verticalAlign:"top"},[`${I}-group-wrapper + ${I}-group-wrapper`]:{marginInlineStart:O.calc(O.lineWidth).mul(-1).equal(),[`${I}-affix-wrapper`]:{borderRadius:0}},[`${I}-group-wrapper:not(:last-child)`]:{[`&${I}-search > ${I}-group`]:{[`& > ${I}-group-addon > ${I}-search-button`]:{borderRadius:0},[`& > ${I}`]:{borderStartStartRadius:O.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:O.borderRadius}}}})}},A=O=>{const{componentCls:I,controlHeightSM:ue,lineWidth:Se,calc:me}=O,Je=me(ue).sub(me(Se).mul(2)).sub(16).div(2).equal();return{[I]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,K.Wf)(O)),y(O)),(0,W.qG)(O)),(0,W.H8)(O)),(0,W.Mu)(O)),(0,W.vc)(O)),{'&[type="color"]':{height:O.controlHeight,[`&${I}-lg`]:{height:O.controlHeightLG},[`&${I}-sm`]:{height:ue,paddingTop:Je,paddingBottom:Je}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},$=O=>{const{componentCls:I}=O;return{[`${I}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:O.colorTextQuaternary,fontSize:O.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${O.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:O.colorTextTertiary},"&:active":{color:O.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,i.unit)(O.inputAffixPadding)}`}}}},H=O=>{const{componentCls:I,inputAffixPadding:ue,colorTextDescription:Se,motionDurationSlow:me,colorIcon:Ke,colorIconHover:Je,iconCls:ke}=O,We=`${I}-affix-wrapper`,oe=`${I}-affix-wrapper-disabled`;return{[We]:Object.assign(Object.assign(Object.assign(Object.assign({},y(O)),{display:"inline-flex",[`&:not(${I}-disabled):hover`]:{zIndex:1,[`${I}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${I}`]:{padding:0},[`> input${I}, > textarea${I}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[I]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:O.paddingXS}},"&-show-count-suffix":{color:Se},"&-show-count-has-suffix":{marginInlineEnd:O.paddingXXS},"&-prefix":{marginInlineEnd:ue},"&-suffix":{marginInlineStart:ue}}}),$(O)),{[`${ke}${I}-password-icon`]:{color:Ke,cursor:"pointer",transition:`all ${me}`,"&:hover":{color:Je}}}),[`${I}-underlined`]:{borderRadius:0},[oe]:{[`${ke}${I}-password-icon`]:{color:Ke,cursor:"not-allowed","&:hover":{color:Ke}}}}},X=O=>{const{componentCls:I,borderRadiusLG:ue,borderRadiusSM:Se}=O;return{[`${I}-group`]:Object.assign(Object.assign(Object.assign({},(0,K.Wf)(O)),T(O)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${I}-group-addon`]:{borderRadius:ue,fontSize:O.inputFontSizeLG}},"&-sm":{[`${I}-group-addon`]:{borderRadius:Se}}},(0,W.ir)(O)),(0,W.S5)(O)),{[`&:not(${I}-compact-first-item):not(${I}-compact-last-item)${I}-compact-item`]:{[`${I}, ${I}-group-addon`]:{borderRadius:0}},[`&:not(${I}-compact-last-item)${I}-compact-first-item`]:{[`${I}, ${I}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${I}-compact-first-item)${I}-compact-last-item`]:{[`${I}, ${I}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${I}-compact-last-item)${I}-compact-item`]:{[`${I}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${I}-compact-first-item)${I}-compact-item`]:{[`${I}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},V=O=>{const{componentCls:I,antCls:ue}=O,Se=`${I}-search`;return{[Se]:{[I]:{"&:hover, &:focus":{[`+ ${I}-group-addon ${Se}-button:not(${ue}-btn-primary)`]:{borderInlineStartColor:O.colorPrimaryHover}}},[`${I}-affix-wrapper`]:{height:O.controlHeight,borderRadius:0},[`${I}-lg`]:{lineHeight:O.calc(O.lineHeightLG).sub(2e-4).equal()},[`> ${I}-group`]:{[`> ${I}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Se}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${Se}-button:not(${ue}-btn-primary)`]:{color:O.colorTextDescription,"&:hover":{color:O.colorPrimaryHover},"&:active":{color:O.colorPrimaryActive},[`&${ue}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Se}-button`]:{height:O.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${I}-affix-wrapper, ${Se}-button`]:{height:O.controlHeightLG}},"&-small":{[`${I}-affix-wrapper, ${Se}-button`]:{height:O.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${I}-compact-item`]:{[`&:not(${I}-compact-last-item)`]:{[`${I}-group-addon`]:{[`${I}-search-button`]:{marginInlineEnd:O.calc(O.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${I}-compact-first-item)`]:{[`${I},${I}-affix-wrapper`]:{borderRadius:0}},[`> ${I}-group-addon ${I}-search-button,
|
|
|
> ${I},
|
|
|
${I}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${I}-affix-wrapper-focused`]:{zIndex:2}}}}},R=O=>{const{componentCls:I}=O;return{[`${I}-out-of-range`]:{[`&, & input, & textarea, ${I}-show-count-suffix, ${I}-data-count`]:{color:O.colorError}}}},Q=(0,he.I$)(["Input","Shared"],O=>{const I=(0,Z.mergeToken)(O,(0,g.e)(O));return[A(I),H(I)]},g.T,{resetFont:!1});Rt.ZP=(0,he.I$)(["Input","Component"],O=>{const I=(0,Z.mergeToken)(O,(0,g.e)(O));return[X(I),V(I),R(I),(0,L.c)(I)]},g.T,{resetFont:!1})},64910:function($n,Rt,u){"use strict";u.d(Rt,{T:function(){return L},e:function(){return K}});var i=u(51636);function K(he){return(0,i.mergeToken)(he,{inputAffixPadding:he.paddingXXS})}const L=he=>{const{controlHeight:Z,fontSize:g,lineHeight:W,lineWidth:Y,controlHeightSM:l,controlHeightLG:x,fontSizeLG:N,lineHeightLG:y,paddingSM:T,controlPaddingHorizontalSM:A,controlPaddingHorizontal:$,colorFillAlter:H,colorPrimaryHover:X,colorPrimary:V,controlOutlineWidth:R,controlOutline:Q,colorErrorOutline:O,colorWarningOutline:I,colorBgContainer:ue,inputFontSize:Se,inputFontSizeLG:me,inputFontSizeSM:Ke}=he,Je=Se||g,ke=Ke||Je,We=me||N,oe=Math.round((Z-Je*W)/2*10)/10-Y,k=Math.round((l-ke*W)/2*10)/10-Y,_=Math.ceil((x-We*y)/2*10)/10-Y;return{paddingBlock:Math.max(oe,0),paddingBlockSM:Math.max(k,0),paddingBlockLG:Math.max(_,0),paddingInline:T-Y,paddingInlineSM:A-Y,paddingInlineLG:$-Y,addonBg:H,activeBorderColor:V,hoverBorderColor:X,activeShadow:`0 0 0 ${R}px ${Q}`,errorActiveShadow:`0 0 0 ${R}px ${O}`,warningActiveShadow:`0 0 0 ${R}px ${I}`,hoverBg:ue,activeBg:ue,inputFontSize:Je,inputFontSizeLG:We,inputFontSizeSM:ke}}},39082:function($n,Rt,u){"use strict";u.d(Rt,{$U:function(){return Z},H8:function(){return T},Mu:function(){return x},S5:function(){return $},Xy:function(){return he},ir:function(){return l},qG:function(){return W},vc:function(){return V}});var i=u(36237),K=u(51636);const L=R=>({borderColor:R.hoverBorderColor,backgroundColor:R.hoverBg}),he=R=>({color:R.colorTextDisabled,backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},L((0,K.mergeToken)(R,{hoverBorderColor:R.colorBorder,hoverBg:R.colorBgContainerDisabled})))}),Z=(R,Q)=>({background:R.colorBgContainer,borderWidth:R.lineWidth,borderStyle:R.lineType,borderColor:Q.borderColor,"&:hover":{borderColor:Q.hoverBorderColor,backgroundColor:R.hoverBg},"&:focus, &:focus-within":{borderColor:Q.activeBorderColor,boxShadow:Q.activeShadow,outline:0,backgroundColor:R.activeBg}}),g=(R,Q)=>({[`&${R.componentCls}-status-${Q.status}:not(${R.componentCls}-disabled)`]:Object.assign(Object.assign({},Z(R,Q)),{[`${R.componentCls}-prefix, ${R.componentCls}-suffix`]:{color:Q.affixColor}}),[`&${R.componentCls}-status-${Q.status}${R.componentCls}-disabled`]:{borderColor:Q.borderColor}}),W=(R,Q)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Z(R,{borderColor:R.colorBorder,hoverBorderColor:R.hoverBorderColor,activeBorderColor:R.activeBorderColor,activeShadow:R.activeShadow})),{[`&${R.componentCls}-disabled, &[disabled]`]:Object.assign({},he(R))}),g(R,{status:"error",borderColor:R.colorError,hoverBorderColor:R.colorErrorBorderHover,activeBorderColor:R.colorError,activeShadow:R.errorActiveShadow,affixColor:R.colorError})),g(R,{status:"warning",borderColor:R.colorWarning,hoverBorderColor:R.colorWarningBorderHover,activeBorderColor:R.colorWarning,activeShadow:R.warningActiveShadow,affixColor:R.colorWarning})),Q)}),Y=(R,Q)=>({[`&${R.componentCls}-group-wrapper-status-${Q.status}`]:{[`${R.componentCls}-group-addon`]:{borderColor:Q.addonBorderColor,color:Q.addonColor}}}),l=R=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${R.componentCls}-group`]:{"&-addon":{background:R.addonBg,border:`${(0,i.unit)(R.lineWidth)} ${R.lineType} ${R.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Y(R,{status:"error",addonBorderColor:R.colorError,addonColor:R.colorErrorText})),Y(R,{status:"warning",addonBorderColor:R.colorWarning,addonColor:R.colorWarningText})),{[`&${R.componentCls}-group-wrapper-disabled`]:{[`${R.componentCls}-group-addon`]:Object.assign({},he(R))}})}),x=(R,Q)=>{const{componentCls:O}=R;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${O}-disabled, &[disabled]`]:{color:R.colorTextDisabled,cursor:"not-allowed"},[`&${O}-status-error`]:{"&, & input, & textarea":{color:R.colorError}},[`&${O}-status-warning`]:{"&, & input, & textarea":{color:R.colorWarning}}},Q)}},N=(R,Q)=>{var O;return{background:Q.bg,borderWidth:R.lineWidth,borderStyle:R.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(O=Q==null?void 0:Q.inputColor)!==null&&O!==void 0?O:"unset"},"&:hover":{background:Q.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:Q.activeBorderColor,backgroundColor:R.activeBg}}},y=(R,Q)=>({[`&${R.componentCls}-status-${Q.status}:not(${R.componentCls}-disabled)`]:Object.assign(Object.assign({},N(R,Q)),{[`${R.componentCls}-prefix, ${R.componentCls}-suffix`]:{color:Q.affixColor}})}),T=(R,Q)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},N(R,{bg:R.colorFillTertiary,hoverBg:R.colorFillSecondary,activeBorderColor:R.activeBorderColor})),{[`&${R.componentCls}-disabled, &[disabled]`]:Object.assign({},he(R))}),y(R,{status:"error",bg:R.colorErrorBg,hoverBg:R.colorErrorBgHover,activeBorderColor:R.colorError,inputColor:R.colorErrorText,affixColor:R.colorError})),y(R,{status:"warning",bg:R.colorWarningBg,hoverBg:R.colorWarningBgHover,activeBorderColor:R.colorWarning,inputColor:R.colorWarningText,affixColor:R.colorWarning})),Q)}),A=(R,Q)=>({[`&${R.componentCls}-group-wrapper-status-${Q.status}`]:{[`${R.componentCls}-group-addon`]:{background:Q.addonBg,color:Q.addonColor}}}),$=R=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${R.componentCls}-group`]:{"&-addon":{background:R.colorFillTertiary},[`${R.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,i.unit)(R.lineWidth)} ${R.lineType} ${R.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,i.unit)(R.lineWidth)} ${R.lineType} ${R.colorSplit}`}}}},A(R,{status:"error",addonBg:R.colorErrorBg,addonColor:R.colorErrorText})),A(R,{status:"warning",addonBg:R.colorWarningBg,addonColor:R.colorWarningText})),{[`&${R.componentCls}-group-wrapper-disabled`]:{[`${R.componentCls}-group`]:{"&-addon":{background:R.colorFillTertiary,color:R.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,i.unit)(R.lineWidth)} ${R.lineType} ${R.colorBorder}`,borderTop:`${(0,i.unit)(R.lineWidth)} ${R.lineType} ${R.colorBorder}`,borderBottom:`${(0,i.unit)(R.lineWidth)} ${R.lineType} ${R.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,i.unit)(R.lineWidth)} ${R.lineType} ${R.colorBorder}`,borderTop:`${(0,i.unit)(R.lineWidth)} ${R.lineType} ${R.colorBorder}`,borderBottom:`${(0,i.unit)(R.lineWidth)} ${R.lineType} ${R.colorBorder}`}}}})}),H=(R,Q)=>({background:R.colorBgContainer,borderWidth:`${(0,i.unit)(R.lineWidth)} 0`,borderStyle:`${R.lineType} none`,borderColor:`transparent transparent ${Q.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${Q.borderColor} transparent`,backgroundColor:R.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${Q.borderColor} transparent`,outline:0,backgroundColor:R.activeBg}}),X=(R,Q)=>({[`&${R.componentCls}-status-${Q.status}:not(${R.componentCls}-disabled)`]:Object.assign(Object.assign({},H(R,Q)),{[`${R.componentCls}-prefix, ${R.componentCls}-suffix`]:{color:Q.affixColor}}),[`&${R.componentCls}-status-${Q.status}${R.componentCls}-disabled`]:{borderColor:`transparent transparent ${Q.borderColor} transparent`}}),V=(R,Q)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H(R,{borderColor:R.colorBorder,hoverBorderColor:R.hoverBorderColor,activeBorderColor:R.activeBorderColor,activeShadow:R.activeShadow})),{[`&${R.componentCls}-disabled, &[disabled]`]:{color:R.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${R.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),X(R,{status:"error",borderColor:R.colorError,hoverBorderColor:R.colorErrorBorderHover,activeBorderColor:R.colorError,activeShadow:R.errorActiveShadow,affixColor:R.colorError})),X(R,{status:"warning",borderColor:R.colorWarning,hoverBorderColor:R.colorWarningBorderHover,activeBorderColor:R.colorWarning,activeShadow:R.warningActiveShadow,affixColor:R.colorWarning})),Q)})},24303:function($n,Rt,u){"use strict";u.d(Rt,{D:function(){return Se},Z:function(){return Je}});var i=u(59301),K=u(60499),L={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"},he=L,Z=u(7657),g=function(We,oe){return i.createElement(Z.Z,(0,K.Z)({},We,{ref:oe,icon:he}))},W=i.forwardRef(g),Y=W,l=u(33853),x=u(38819),N=u(92310),y=u.n(N),T=u(2738),A=u(48755),$=u(6989),H=u(36237),X=u(48923),V=u(16931);const R=ke=>{const{componentCls:We,siderBg:oe,motionDurationMid:k,motionDurationSlow:_,antCls:ee,triggerHeight:ne,triggerColor:se,triggerBg:w,headerHeight:D,zeroTriggerWidth:ce,zeroTriggerHeight:Oe,borderRadiusLG:ct,lightSiderBg:Tt,lightTriggerColor:Ae,lightTriggerBg:qe,bodyBg:ht}=ke;return{[We]:{position:"relative",minWidth:0,background:oe,transition:`all ${k}, background 0s`,"&-has-trigger":{paddingBottom:ne},"&-right":{order:1},[`${We}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${ee}-menu${ee}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${We}-children`]:{overflow:"hidden"},[`${We}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:ne,color:se,lineHeight:(0,H.unit)(ne),textAlign:"center",background:w,cursor:"pointer",transition:`all ${k}`},[`${We}-zero-width-trigger`]:{position:"absolute",top:D,insetInlineEnd:ke.calc(ce).mul(-1).equal(),zIndex:1,width:ce,height:Oe,color:se,fontSize:ke.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:oe,borderRadius:`0 ${(0,H.unit)(ct)} ${(0,H.unit)(ct)} 0`,cursor:"pointer",transition:`background ${_} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${_}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:ke.calc(ce).mul(-1).equal(),borderRadius:`${(0,H.unit)(ct)} 0 0 ${(0,H.unit)(ct)}`}},"&-light":{background:Tt,[`${We}-trigger`]:{color:Ae,background:qe},[`${We}-zero-width-trigger`]:{color:Ae,background:qe,border:`1px solid ${ht}`,borderInlineStart:0}}}}};var Q=(0,V.I$)(["Layout","Sider"],ke=>[R(ke)],X.eh,{deprecatedTokens:X.jn}),O=function(ke,We){var oe={};for(var k in ke)Object.prototype.hasOwnProperty.call(ke,k)&&We.indexOf(k)<0&&(oe[k]=ke[k]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,k=Object.getOwnPropertySymbols(ke);_<k.length;_++)We.indexOf(k[_])<0&&Object.prototype.propertyIsEnumerable.call(ke,k[_])&&(oe[k[_]]=ke[k[_]]);return oe};const I={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ue=ke=>!Number.isNaN(Number.parseFloat(ke))&&isFinite(ke),Se=i.createContext({}),me=(()=>{let ke=0;return function(){let We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ke+=1,`${We}${ke}`}})();var Je=i.forwardRef((ke,We)=>{const{prefixCls:oe,className:k,trigger:_,children:ee,defaultCollapsed:ne=!1,theme:se="dark",style:w={},collapsible:D=!1,reverseArrow:ce=!1,width:Oe=200,collapsedWidth:ct=80,zeroWidthTriggerStyle:Tt,breakpoint:Ae,onCollapse:qe,onBreakpoint:ht}=ke,tt=O(ke,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Fe}=(0,i.useContext)($.V),[jt,bt]=(0,i.useState)("collapsed"in ke?ke.collapsed:ne),[cn,vt]=(0,i.useState)(!1);(0,i.useEffect)(()=>{"collapsed"in ke&&bt(ke.collapsed)},[ke.collapsed]);const pt=(Vt,Nt)=>{"collapsed"in ke||bt(Vt),qe==null||qe(Vt,Nt)},{getPrefixCls:Qe,direction:Ne}=(0,i.useContext)(A.E_),le=Qe("layout-sider",oe),[Pe,Ge,j]=Q(le),P=(0,i.useRef)(null);P.current=Vt=>{vt(Vt.matches),ht==null||ht(Vt.matches),jt!==Vt.matches&&pt(Vt.matches,"responsive")},(0,i.useEffect)(()=>{function Vt(De){return P.current(De)}let Nt;if(typeof window!="undefined"){const{matchMedia:De}=window;if(De&&Ae&&Ae in I){Nt=De(`screen and (max-width: ${I[Ae]})`);try{Nt.addEventListener("change",Vt)}catch(gt){Nt.addListener(Vt)}Vt(Nt)}}return()=>{try{Nt==null||Nt.removeEventListener("change",Vt)}catch(De){Nt==null||Nt.removeListener(Vt)}}},[Ae]),(0,i.useEffect)(()=>{const Vt=me("ant-sider-");return Fe.addSider(Vt),()=>Fe.removeSider(Vt)},[]);const _e=()=>{pt(!jt,"clickTrigger")},Ie=(0,T.Z)(tt,["collapsed"]),Te=jt?ct:Oe,ze=ue(Te)?`${Te}px`:String(Te),Ue=parseFloat(String(ct||0))===0?i.createElement("span",{onClick:_e,className:y()(`${le}-zero-width-trigger`,`${le}-zero-width-trigger-${ce?"right":"left"}`),style:Tt},_||i.createElement(Y,null)):null,ft=Ne==="rtl"==!ce,Ot={expanded:ft?i.createElement(x.Z,null):i.createElement(l.Z,null),collapsed:ft?i.createElement(l.Z,null):i.createElement(x.Z,null)}[jt?"collapsed":"expanded"],_t=_!==null?Ue||i.createElement("div",{className:`${le}-trigger`,onClick:_e,style:{width:ze}},_||Ot):null,Pt=Object.assign(Object.assign({},w),{flex:`0 0 ${ze}`,maxWidth:ze,minWidth:ze,width:ze}),kt=y()(le,`${le}-${se}`,{[`${le}-collapsed`]:!!jt,[`${le}-has-trigger`]:D&&_!==null&&!Ue,[`${le}-below`]:!!cn,[`${le}-zero-width`]:parseFloat(ze)===0},k,Ge,j),mt=i.useMemo(()=>({siderCollapsed:jt}),[jt]);return Pe(i.createElement(Se.Provider,{value:mt},i.createElement("aside",Object.assign({className:kt},Ie,{style:Pt,ref:We}),i.createElement("div",{className:`${le}-children`},ee),D||cn&&Ue?_t:null)))})},6989:function($n,Rt,u){"use strict";u.d(Rt,{V:function(){return K}});var i=u(59301);const K=i.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function($n,Rt,u){"use strict";u.d(Rt,{eh:function(){return he},jn:function(){return Z}});var i=u(36237),K=u(16931);const L=g=>{const{antCls:W,componentCls:Y,colorText:l,footerBg:x,headerHeight:N,headerPadding:y,headerColor:T,footerPadding:A,fontSize:$,bodyBg:H,headerBg:X}=g;return{[Y]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:H,"&, *":{boxSizing:"border-box"},[`&${Y}-has-sider`]:{flexDirection:"row",[`> ${Y}, > ${Y}-content`]:{width:0}},[`${Y}-header, &${Y}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Y}-header`]:{height:N,padding:y,color:T,lineHeight:(0,i.unit)(N),background:X,[`${W}-menu`]:{lineHeight:"inherit"}},[`${Y}-footer`]:{padding:A,color:l,fontSize:$,background:x},[`${Y}-content`]:{flex:"auto",color:l,minHeight:0}}},he=g=>{const{colorBgLayout:W,controlHeight:Y,controlHeightLG:l,colorText:x,controlHeightSM:N,marginXXS:y,colorTextLightSolid:T,colorBgContainer:A}=g,$=l*1.25;return{colorBgHeader:"#001529",colorBgBody:W,colorBgTrigger:"#002140",bodyBg:W,headerBg:"#001529",headerHeight:Y*2,headerPadding:`0 ${$}px`,headerColor:x,footerPadding:`${N}px ${$}px`,footerBg:W,siderBg:"#001529",triggerHeight:l+y*2,triggerBg:"#002140",triggerColor:T,zeroTriggerWidth:l,zeroTriggerHeight:l,lightSiderBg:A,lightTriggerBg:A,lightTriggerColor:x}},Z=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Rt.ZP=(0,K.I$)("Layout",g=>[L(g)],he,{deprecatedTokens:Z})},78857:function($n,Rt,u){"use strict";u.d(Rt,{J:function(){return g}});var i=u(59301),K=u(8654),L=u(62487),he=function(W,Y){var l={};for(var x in W)Object.prototype.hasOwnProperty.call(W,x)&&Y.indexOf(x)<0&&(l[x]=W[x]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,x=Object.getOwnPropertySymbols(W);N<x.length;N++)Y.indexOf(x[N])<0&&Object.prototype.propertyIsEnumerable.call(W,x[N])&&(l[x[N]]=W[x[N]]);return l};const Z=i.createContext(null),g=i.forwardRef((W,Y)=>{const{children:l}=W,x=he(W,["children"]),N=i.useContext(Z),y=i.useMemo(()=>Object.assign(Object.assign({},N),x),[N,x.prefixCls,x.mode,x.selectable,x.rootClassName]),T=(0,K.t4)(l),A=(0,K.x1)(Y,T?(0,K.C4)(l):null);return i.createElement(Z.Provider,{value:y},i.createElement(L.Z,{space:!0},T?i.cloneElement(l,{ref:A}):l))});Rt.Z=Z},93041:function($n,Rt,u){"use strict";u.d(Rt,{default:function(){return Pe}});var i=u(59301),K=u(28321),L=u(24303),he=u(18785),Z=u(92310),g=u.n(Z),W=u(6089),Y=u(2738),l=u(86641),x=u(22703),N=u(48755),y=u(83397),A=(0,i.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),$=function(Ge,j){var P={};for(var _e in Ge)Object.prototype.hasOwnProperty.call(Ge,_e)&&j.indexOf(_e)<0&&(P[_e]=Ge[_e]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,_e=Object.getOwnPropertySymbols(Ge);Ie<_e.length;Ie++)j.indexOf(_e[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Ge,_e[Ie])&&(P[_e[Ie]]=Ge[_e[Ie]]);return P},X=Ge=>{const{prefixCls:j,className:P,dashed:_e}=Ge,Ie=$(Ge,["prefixCls","className","dashed"]),{getPrefixCls:Te}=i.useContext(N.E_),ze=Te("menu",j),Ue=g()({[`${ze}-item-divider-dashed`]:!!_e},P);return i.createElement(K.iz,Object.assign({className:Ue},Ie))},V=u(11592),R=u(25399),O=Ge=>{var j;const{className:P,children:_e,icon:Ie,title:Te,danger:ze,extra:Ue}=Ge,{prefixCls:ft,firstLevel:de,direction:xe,disableMenuItemTitleTooltip:Ot,inlineCollapsed:_t}=i.useContext(A),Pt=gt=>{const E=_e==null?void 0:_e[0],S=i.createElement("span",{className:g()(`${ft}-title-content`,{[`${ft}-title-content-with-extra`]:!!Ue||Ue===0})},_e);return(!Ie||i.isValidElement(_e)&&_e.type==="span")&&_e&>&&de&&typeof E=="string"?i.createElement("div",{className:`${ft}-inline-collapsed-noicon`},E.charAt(0)):S},{siderCollapsed:kt}=i.useContext(L.D);let mt=Te;typeof Te=="undefined"?mt=de?_e:"":Te===!1&&(mt="");const Vt={title:mt};!kt&&!_t&&(Vt.title=null,Vt.open=!1);const Nt=(0,V.Z)(_e).length;let De=i.createElement(K.ck,Object.assign({},(0,Y.Z)(Ge,["title","icon","danger"]),{className:g()({[`${ft}-item-danger`]:ze,[`${ft}-item-only-child`]:(Ie?Nt+1:Nt)===1},P),title:typeof Te=="string"?Te:void 0}),(0,x.Tm)(Ie,{className:g()(i.isValidElement(Ie)?(j=Ie.props)===null||j===void 0?void 0:j.className:"",`${ft}-item-icon`)}),Pt(_t));return Ot||(De=i.createElement(R.Z,Object.assign({},Vt,{placement:xe==="rtl"?"left":"right",classNames:{root:`${ft}-inline-collapsed-tooltip`}}),De)),De},I=u(78857),ue=u(36237),Se=u(17835),me=u(63356),Ke=u(34961),Je=u(46e3),ke=u(34925),We=u(16931),oe=u(51636),_=Ge=>{const{componentCls:j,motionDurationSlow:P,horizontalLineHeight:_e,colorSplit:Ie,lineWidth:Te,lineType:ze,itemPaddingInline:Ue}=Ge;return{[`${j}-horizontal`]:{lineHeight:_e,border:0,borderBottom:`${(0,ue.unit)(Te)} ${ze} ${Ie}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${j}-item, ${j}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ue},[`> ${j}-item:hover,
|
|
|
> ${j}-item-active,
|
|
|
> ${j}-submenu ${j}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${j}-item, ${j}-submenu-title`]:{transition:[`border-color ${P}`,`background ${P}`].join(",")},[`${j}-submenu-arrow`]:{display:"none"}}}},ne=Ge=>{let{componentCls:j,menuArrowOffset:P,calc:_e}=Ge;return{[`${j}-rtl`]:{direction:"rtl"},[`${j}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${j}-rtl${j}-vertical,
|
|
|
${j}-submenu-rtl ${j}-vertical`]:{[`${j}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,ue.unit)(_e(P).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,ue.unit)(P)})`}}}}};const se=Ge=>Object.assign({},(0,me.oN)(Ge));var D=(Ge,j)=>{const{componentCls:P,itemColor:_e,itemSelectedColor:Ie,subMenuItemSelectedColor:Te,groupTitleColor:ze,itemBg:Ue,subMenuItemBg:ft,itemSelectedBg:de,activeBarHeight:xe,activeBarWidth:Ot,activeBarBorderWidth:_t,motionDurationSlow:Pt,motionEaseInOut:kt,motionEaseOut:mt,itemPaddingInline:Vt,motionDurationMid:Nt,itemHoverColor:De,lineType:gt,colorSplit:E,itemDisabledColor:S,dangerItemColor:je,dangerItemHoverColor:G,dangerItemSelectedColor:Ce,dangerItemActiveBg:en,dangerItemSelectedBg:rt,popupBg:st,itemHoverBg:xt,itemActiveBg:pe,menuSubMenuBg:Ee,horizontalItemSelectedColor:nt,horizontalItemSelectedBg:Ze,horizontalItemBorderRadius:z,horizontalItemHoverBg:St}=Ge;return{[`${P}-${j}, ${P}-${j} > ${P}`]:{color:_e,background:Ue,[`&${P}-root:focus-visible`]:Object.assign({},se(Ge)),[`${P}-item`]:{"&-group-title, &-extra":{color:ze}},[`${P}-submenu-selected > ${P}-submenu-title`]:{color:Te},[`${P}-item, ${P}-submenu-title`]:{color:_e,[`&:not(${P}-item-disabled):focus-visible`]:Object.assign({},se(Ge))},[`${P}-item-disabled, ${P}-submenu-disabled`]:{color:`${S} !important`},[`${P}-item:not(${P}-item-selected):not(${P}-submenu-selected)`]:{[`&:hover, > ${P}-submenu-title:hover`]:{color:De}},[`&:not(${P}-horizontal)`]:{[`${P}-item:not(${P}-item-selected)`]:{"&:hover":{backgroundColor:xt},"&:active":{backgroundColor:pe}},[`${P}-submenu-title`]:{"&:hover":{backgroundColor:xt},"&:active":{backgroundColor:pe}}},[`${P}-item-danger`]:{color:je,[`&${P}-item:hover`]:{[`&:not(${P}-item-selected):not(${P}-submenu-selected)`]:{color:G}},[`&${P}-item:active`]:{background:en}},[`${P}-item a`]:{"&, &:hover":{color:"inherit"}},[`${P}-item-selected`]:{color:Ie,[`&${P}-item-danger`]:{color:Ce},"a, a:hover":{color:"inherit"}},[`& ${P}-item-selected`]:{backgroundColor:de,[`&${P}-item-danger`]:{backgroundColor:rt}},[`&${P}-submenu > ${P}`]:{backgroundColor:Ee},[`&${P}-popup > ${P}`]:{backgroundColor:st},[`&${P}-submenu-popup > ${P}`]:{backgroundColor:st},[`&${P}-horizontal`]:Object.assign(Object.assign({},j==="dark"?{borderBottom:0}:{}),{[`> ${P}-item, > ${P}-submenu`]:{top:_t,marginTop:Ge.calc(_t).mul(-1).equal(),marginBottom:0,borderRadius:z,"&::after":{position:"absolute",insetInline:Vt,bottom:0,borderBottom:`${(0,ue.unit)(xe)} solid transparent`,transition:`border-color ${Pt} ${kt}`,content:'""'},"&:hover, &-active, &-open":{background:St,"&::after":{borderBottomWidth:xe,borderBottomColor:nt}},"&-selected":{color:nt,backgroundColor:Ze,"&:hover":{backgroundColor:Ze},"&::after":{borderBottomWidth:xe,borderBottomColor:nt}}}}),[`&${P}-root`]:{[`&${P}-inline, &${P}-vertical`]:{borderInlineEnd:`${(0,ue.unit)(_t)} ${gt} ${E}`}},[`&${P}-inline`]:{[`${P}-sub${P}-inline`]:{background:ft},[`${P}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,ue.unit)(Ot)} solid ${Ie}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Nt} ${mt}`,`opacity ${Nt} ${mt}`].join(","),content:'""'},[`&${P}-item-danger`]:{"&::after":{borderInlineEndColor:Ce}}},[`${P}-selected, ${P}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Nt} ${kt}`,`opacity ${Nt} ${kt}`].join(",")}}}}}};const ce=Ge=>{const{componentCls:j,itemHeight:P,itemMarginInline:_e,padding:Ie,menuArrowSize:Te,marginXS:ze,itemMarginBlock:Ue,itemWidth:ft,itemPaddingInline:de}=Ge,xe=Ge.calc(Te).add(Ie).add(ze).equal();return{[`${j}-item`]:{position:"relative",overflow:"hidden"},[`${j}-item, ${j}-submenu-title`]:{height:P,lineHeight:(0,ue.unit)(P),paddingInline:de,overflow:"hidden",textOverflow:"ellipsis",marginInline:_e,marginBlock:Ue,width:ft},[`> ${j}-item,
|
|
|
> ${j}-submenu > ${j}-submenu-title`]:{height:P,lineHeight:(0,ue.unit)(P)},[`${j}-item-group-list ${j}-submenu-title,
|
|
|
${j}-submenu-title`]:{paddingInlineEnd:xe}}};var ct=Ge=>{const{componentCls:j,iconCls:P,itemHeight:_e,colorTextLightSolid:Ie,dropdownWidth:Te,controlHeightLG:ze,motionEaseOut:Ue,paddingXL:ft,itemMarginInline:de,fontSizeLG:xe,motionDurationFast:Ot,motionDurationSlow:_t,paddingXS:Pt,boxShadowSecondary:kt,collapsedWidth:mt,collapsedIconSize:Vt}=Ge,Nt={height:_e,lineHeight:(0,ue.unit)(_e),listStylePosition:"inside",listStyleType:"disc"};return[{[j]:{"&-inline, &-vertical":Object.assign({[`&${j}-root`]:{boxShadow:"none"}},ce(Ge))},[`${j}-submenu-popup`]:{[`${j}-vertical`]:Object.assign(Object.assign({},ce(Ge)),{boxShadow:kt})}},{[`${j}-submenu-popup ${j}-vertical${j}-sub`]:{minWidth:Te,maxHeight:`calc(100vh - ${(0,ue.unit)(Ge.calc(ze).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${j}-inline`]:{width:"100%",[`&${j}-root`]:{[`${j}-item, ${j}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${_t}`,`background ${_t}`,`padding ${Ot} ${Ue}`].join(","),[`> ${j}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${j}-sub${j}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${j}-submenu > ${j}-submenu-title`]:Nt,[`& ${j}-item-group-title`]:{paddingInlineStart:ft}},[`${j}-item`]:Nt}},{[`${j}-inline-collapsed`]:{width:mt,[`&${j}-root`]:{[`${j}-item, ${j}-submenu ${j}-submenu-title`]:{[`> ${j}-inline-collapsed-noicon`]:{fontSize:xe,textAlign:"center"}}},[`> ${j}-item,
|
|
|
> ${j}-item-group > ${j}-item-group-list > ${j}-item,
|
|
|
> ${j}-item-group > ${j}-item-group-list > ${j}-submenu > ${j}-submenu-title,
|
|
|
> ${j}-submenu > ${j}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,ue.unit)(Ge.calc(Vt).div(2).equal())} - ${(0,ue.unit)(de)})`,textOverflow:"clip",[`
|
|
|
${j}-submenu-arrow,
|
|
|
${j}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${j}-item-icon, ${P}`]:{margin:0,fontSize:Vt,lineHeight:(0,ue.unit)(_e),"+ span":{display:"inline-block",opacity:0}}},[`${j}-item-icon, ${P}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${j}-item-icon, ${P}`]:{display:"none"},"a, a:hover":{color:Ie}},[`${j}-item-group-title`]:Object.assign(Object.assign({},me.vS),{paddingInline:Pt})}}]};const Tt=Ge=>{const{componentCls:j,motionDurationSlow:P,motionDurationMid:_e,motionEaseInOut:Ie,motionEaseOut:Te,iconCls:ze,iconSize:Ue,iconMarginInlineEnd:ft}=Ge;return{[`${j}-item, ${j}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${P}`,`background ${P}`,`padding calc(${P} + 0.1s) ${Ie}`].join(","),[`${j}-item-icon, ${ze}`]:{minWidth:Ue,fontSize:Ue,transition:[`font-size ${_e} ${Te}`,`margin ${P} ${Ie}`,`color ${P}`].join(","),"+ span":{marginInlineStart:ft,opacity:1,transition:[`opacity ${P} ${Ie}`,`margin ${P}`,`color ${P}`].join(",")}},[`${j}-item-icon`]:Object.assign({},(0,me.Ro)()),[`&${j}-item-only-child`]:{[`> ${ze}, > ${j}-item-icon`]:{marginInlineEnd:0}}},[`${j}-item-disabled, ${j}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${j}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ae=Ge=>{const{componentCls:j,motionDurationSlow:P,motionEaseInOut:_e,borderRadius:Ie,menuArrowSize:Te,menuArrowOffset:ze}=Ge;return{[`${j}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ge.margin,width:Te,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${P} ${_e}, opacity ${P}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ge.calc(Te).mul(.6).equal(),height:Ge.calc(Te).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ie,transition:[`background ${P} ${_e}`,`transform ${P} ${_e}`,`top ${P} ${_e}`,`color ${P} ${_e}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,ue.unit)(Ge.calc(ze).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,ue.unit)(ze)})`}}}}},qe=Ge=>{const{antCls:j,componentCls:P,fontSize:_e,motionDurationSlow:Ie,motionDurationMid:Te,motionEaseInOut:ze,paddingXS:Ue,padding:ft,colorSplit:de,lineWidth:xe,zIndexPopup:Ot,borderRadiusLG:_t,subMenuItemBorderRadius:Pt,menuArrowSize:kt,menuArrowOffset:mt,lineType:Vt,groupTitleLineHeight:Nt,groupTitleFontSize:De}=Ge;return[{"":{[P]:Object.assign(Object.assign({},(0,me.dF)()),{"&-hidden":{display:"none"}})},[`${P}-submenu-hidden`]:{display:"none"}},{[P]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,me.Wf)(Ge)),(0,me.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:_e,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ie} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${P}-item`]:{flex:"none"}},[`${P}-item, ${P}-submenu, ${P}-submenu-title`]:{borderRadius:Ge.itemBorderRadius},[`${P}-item-group-title`]:{padding:`${(0,ue.unit)(Ue)} ${(0,ue.unit)(ft)}`,fontSize:De,lineHeight:Nt,transition:`all ${Ie}`},[`&-horizontal ${P}-submenu`]:{transition:[`border-color ${Ie} ${ze}`,`background ${Ie} ${ze}`].join(",")},[`${P}-submenu, ${P}-submenu-inline`]:{transition:[`border-color ${Ie} ${ze}`,`background ${Ie} ${ze}`,`padding ${Te} ${ze}`].join(",")},[`${P}-submenu ${P}-sub`]:{cursor:"initial",transition:[`background ${Ie} ${ze}`,`padding ${Ie} ${ze}`].join(",")},[`${P}-title-content`]:{transition:`color ${Ie}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${j}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${P}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:Ge.padding}},[`${P}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${P}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:de,borderStyle:Vt,borderWidth:0,borderTopWidth:xe,marginBlock:xe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Tt(Ge)),{[`${P}-item-group`]:{[`${P}-item-group-list`]:{margin:0,padding:0,[`${P}-item, ${P}-submenu-title`]:{paddingInline:`${(0,ue.unit)(Ge.calc(_e).mul(2).equal())} ${(0,ue.unit)(ft)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ot,borderRadius:_t,boxShadow:"none",transformOrigin:"0 0",[`&${P}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${P}`]:Object.assign(Object.assign(Object.assign({borderRadius:_t},Tt(Ge)),Ae(Ge)),{[`${P}-item, ${P}-submenu > ${P}-submenu-title`]:{borderRadius:Pt},[`${P}-submenu-title::after`]:{transition:`transform ${Ie} ${ze}`}})},"\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:Ge.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ge.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ge.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ge.paddingXS}}}),Ae(Ge)),{[`&-inline-collapsed ${P}-submenu-arrow,
|
|
|
&-inline ${P}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,ue.unit)(mt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,ue.unit)(Ge.calc(mt).mul(-1).equal())})`}},[`${P}-submenu-open${P}-submenu-inline > ${P}-submenu-title > ${P}-submenu-arrow`]:{transform:`translateY(${(0,ue.unit)(Ge.calc(kt).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,ue.unit)(Ge.calc(mt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,ue.unit)(mt)})`}}})},{[`${j}-layout-header`]:{[P]:{lineHeight:"inherit"}}}]},ht=Ge=>{var j,P,_e;const{colorPrimary:Ie,colorError:Te,colorTextDisabled:ze,colorErrorBg:Ue,colorText:ft,colorTextDescription:de,colorBgContainer:xe,colorFillAlter:Ot,colorFillContent:_t,lineWidth:Pt,lineWidthBold:kt,controlItemBgActive:mt,colorBgTextHover:Vt,controlHeightLG:Nt,lineHeight:De,colorBgElevated:gt,marginXXS:E,padding:S,fontSize:je,controlHeightSM:G,fontSizeLG:Ce,colorTextLightSolid:en,colorErrorHover:rt}=Ge,st=(j=Ge.activeBarWidth)!==null&&j!==void 0?j:0,xt=(P=Ge.activeBarBorderWidth)!==null&&P!==void 0?P:Pt,pe=(_e=Ge.itemMarginInline)!==null&&_e!==void 0?_e:Ge.marginXXS,Ee=new Se.FastColor(en).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ge.zIndexPopupBase+50,radiusItem:Ge.borderRadiusLG,itemBorderRadius:Ge.borderRadiusLG,radiusSubMenuItem:Ge.borderRadiusSM,subMenuItemBorderRadius:Ge.borderRadiusSM,colorItemText:ft,itemColor:ft,colorItemTextHover:ft,itemHoverColor:ft,colorItemTextHoverHorizontal:Ie,horizontalItemHoverColor:Ie,colorGroupTitle:de,groupTitleColor:de,colorItemTextSelected:Ie,itemSelectedColor:Ie,subMenuItemSelectedColor:Ie,colorItemTextSelectedHorizontal:Ie,horizontalItemSelectedColor:Ie,colorItemBg:xe,itemBg:xe,colorItemBgHover:Vt,itemHoverBg:Vt,colorItemBgActive:_t,itemActiveBg:mt,colorSubItemBg:Ot,subMenuItemBg:Ot,colorItemBgSelected:mt,itemSelectedBg:mt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:st,colorActiveBarHeight:kt,activeBarHeight:kt,colorActiveBarBorderSize:Pt,activeBarBorderWidth:xt,colorItemTextDisabled:ze,itemDisabledColor:ze,colorDangerItemText:Te,dangerItemColor:Te,colorDangerItemTextHover:Te,dangerItemHoverColor:Te,colorDangerItemTextSelected:Te,dangerItemSelectedColor:Te,colorDangerItemBgActive:Ue,dangerItemActiveBg:Ue,colorDangerItemBgSelected:Ue,dangerItemSelectedBg:Ue,itemMarginInline:pe,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Nt,groupTitleLineHeight:De,collapsedWidth:Nt*2,popupBg:gt,itemMarginBlock:E,itemPaddingInline:S,horizontalLineHeight:`${Nt*1.15}px`,iconSize:je,iconMarginInlineEnd:G-je,collapsedIconSize:Ce,groupTitleFontSize:je,darkItemDisabledColor:new Se.FastColor(en).setA(.25).toRgbString(),darkItemColor:Ee,darkDangerItemColor:Te,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:en,darkItemSelectedBg:Ie,darkDangerItemSelectedBg:Te,darkItemHoverBg:"transparent",darkGroupTitleColor:Ee,darkItemHoverColor:en,darkDangerItemHoverColor:rt,darkDangerItemSelectedColor:en,darkDangerItemActiveBg:Te,itemWidth:st?`calc(100% + ${xt}px)`:`calc(100% - ${pe*2}px)`}};var tt=function(Ge){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,We.I$)("Menu",Ie=>{const{colorBgElevated:Te,controlHeightLG:ze,fontSize:Ue,darkItemColor:ft,darkDangerItemColor:de,darkItemBg:xe,darkSubMenuItemBg:Ot,darkItemSelectedColor:_t,darkItemSelectedBg:Pt,darkDangerItemSelectedBg:kt,darkItemHoverBg:mt,darkGroupTitleColor:Vt,darkItemHoverColor:Nt,darkItemDisabledColor:De,darkDangerItemHoverColor:gt,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:S,popupBg:je,darkPopupBg:G}=Ie,Ce=Ie.calc(Ue).div(7).mul(5).equal(),en=(0,oe.mergeToken)(Ie,{menuArrowSize:Ce,menuHorizontalHeight:Ie.calc(ze).mul(1.15).equal(),menuArrowOffset:Ie.calc(Ce).mul(.25).equal(),menuSubMenuBg:Te,calc:Ie.calc,popupBg:je}),rt=(0,oe.mergeToken)(en,{itemColor:ft,itemHoverColor:Nt,groupTitleColor:Vt,itemSelectedColor:_t,subMenuItemSelectedColor:_t,itemBg:xe,popupBg:G,subMenuItemBg:Ot,itemActiveBg:"transparent",itemSelectedBg:Pt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:mt,itemDisabledColor:De,dangerItemColor:de,dangerItemHoverColor:gt,dangerItemSelectedColor:E,dangerItemActiveBg:S,dangerItemSelectedBg:kt,menuSubMenuBg:Ot,horizontalItemSelectedColor:_t,horizontalItemSelectedBg:Pt});return[qe(en),_(en),ct(en),D(en,"light"),D(rt,"dark"),ne(en),(0,Ke.Z)(en),(0,Je.oN)(en,"slide-up"),(0,Je.oN)(en,"slide-down"),(0,ke._y)(en,"zoom-big")]},ht,{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"]],injectStyle:P,unitless:{groupTitleLineHeight:!0}})(Ge,j)},Fe=u(75030),bt=Ge=>{var j;const{popupClassName:P,icon:_e,title:Ie,theme:Te}=Ge,ze=i.useContext(A),{prefixCls:Ue,inlineCollapsed:ft,theme:de}=ze,xe=(0,K.Xl)();let Ot;if(!_e)Ot=ft&&!xe.length&&Ie&&typeof Ie=="string"?i.createElement("div",{className:`${Ue}-inline-collapsed-noicon`},Ie.charAt(0)):i.createElement("span",{className:`${Ue}-title-content`},Ie);else{const kt=i.isValidElement(Ie)&&Ie.type==="span";Ot=i.createElement(i.Fragment,null,(0,x.Tm)(_e,{className:g()(i.isValidElement(_e)?(j=_e.props)===null||j===void 0?void 0:j.className:"",`${Ue}-item-icon`)}),kt?Ie:i.createElement("span",{className:`${Ue}-title-content`},Ie))}const _t=i.useMemo(()=>Object.assign(Object.assign({},ze),{firstLevel:!1}),[ze]),[Pt]=(0,Fe.Cn)("Menu");return i.createElement(A.Provider,{value:_t},i.createElement(K.Wd,Object.assign({},(0,Y.Z)(Ge,["icon"]),{title:Ot,popupClassName:g()(Ue,P,`${Ue}-${Te||de}`),popupStyle:Object.assign({zIndex:Pt},Ge.popupStyle)})))},cn=function(Ge,j){var P={};for(var _e in Ge)Object.prototype.hasOwnProperty.call(Ge,_e)&&j.indexOf(_e)<0&&(P[_e]=Ge[_e]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,_e=Object.getOwnPropertySymbols(Ge);Ie<_e.length;Ie++)j.indexOf(_e[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Ge,_e[Ie])&&(P[_e[Ie]]=Ge[_e[Ie]]);return P};function vt(Ge){return Ge===null||Ge===!1}const pt={item:O,submenu:bt,divider:X};var Ne=(0,i.forwardRef)((Ge,j)=>{var P;const _e=i.useContext(I.Z),Ie=_e||{},{getPrefixCls:Te,getPopupContainer:ze,direction:Ue,menu:ft}=i.useContext(N.E_),de=Te(),{prefixCls:xe,className:Ot,style:_t,theme:Pt="light",expandIcon:kt,_internalDisableMenuItemTitleTooltip:mt,inlineCollapsed:Vt,siderCollapsed:Nt,rootClassName:De,mode:gt,selectable:E,onClick:S,overflowedIndicatorPopupClassName:je}=Ge,G=cn(Ge,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ce=(0,Y.Z)(G,["collapsedWidth"]);(P=Ie.validator)===null||P===void 0||P.call(Ie,{mode:gt});const en=(0,W.Z)(function(){var Bt;S==null||S.apply(void 0,arguments),(Bt=Ie.onClick)===null||Bt===void 0||Bt.call(Ie)}),rt=Ie.mode||gt,st=E!=null?E:Ie.selectable,xt=Vt!=null?Vt:Nt,pe={horizontal:{motionName:`${de}-slide-up`},inline:(0,l.Z)(de),other:{motionName:`${de}-zoom-big`}},Ee=Te("menu",xe||Ie.prefixCls),nt=(0,y.Z)(Ee),[Ze,z,St]=tt(Ee,nt,!_e),fe=g()(`${Ee}-${Pt}`,ft==null?void 0:ft.className,Ot),Kt=i.useMemo(()=>{var Bt,J;if(typeof kt=="function"||vt(kt))return kt||null;if(typeof Ie.expandIcon=="function"||vt(Ie.expandIcon))return Ie.expandIcon||null;if(typeof(ft==null?void 0:ft.expandIcon)=="function"||vt(ft==null?void 0:ft.expandIcon))return(ft==null?void 0:ft.expandIcon)||null;const we=(Bt=kt!=null?kt:Ie==null?void 0:Ie.expandIcon)!==null&&Bt!==void 0?Bt:ft==null?void 0:ft.expandIcon;return(0,x.Tm)(we,{className:g()(`${Ee}-submenu-expand-icon`,i.isValidElement(we)?(J=we.props)===null||J===void 0?void 0:J.className:void 0)})},[kt,Ie==null?void 0:Ie.expandIcon,ft==null?void 0:ft.expandIcon,Ee]),dn=i.useMemo(()=>({prefixCls:Ee,inlineCollapsed:xt||!1,direction:Ue,firstLevel:!0,theme:Pt,mode:rt,disableMenuItemTitleTooltip:mt}),[Ee,xt,Ue,mt,Pt]);return Ze(i.createElement(I.Z.Provider,{value:null},i.createElement(A.Provider,{value:dn},i.createElement(K.ZP,Object.assign({getPopupContainer:ze,overflowedIndicator:i.createElement(he.Z,null),overflowedIndicatorPopupClassName:g()(Ee,`${Ee}-${Pt}`,je),mode:rt,selectable:st,onClick:en},Ce,{inlineCollapsed:xt,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),_t),className:fe,prefixCls:Ee,direction:Ue,defaultMotions:pe,expandIcon:Kt,ref:j,rootClassName:g()(De,z,Ie.rootClassName,St,nt),_internalComponents:pt})))))});const le=(0,i.forwardRef)((Ge,j)=>{const P=(0,i.useRef)(null),_e=i.useContext(L.D);return(0,i.useImperativeHandle)(j,()=>({menu:P.current,focus:Ie=>{var Te;(Te=P.current)===null||Te===void 0||Te.focus(Ie)}})),i.createElement(Ne,Object.assign({ref:P},Ge,_e))});le.Item=O,le.SubMenu=bt,le.Divider=X,le.ItemGroup=K.BW;var Pe=le},31709:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return ft}});var i=u(59301),K=u(60499),L={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"},he=L,Z=u(7657),g=function(xe,Ot){return i.createElement(Z.Z,(0,K.Z)({},xe,{ref:Ot,icon:he}))},W=i.forwardRef(g),Y=W,l=u(49198),x=u(33853),N=u(38819),y=u(92310),T=u.n(y),A=u(18642),$=u(43749),H=u(85899),X=u(72190),V=u(18929),R=u(10228),Q=u(26112),O=u(48736),I=u(17119),ue=[10,20,50,100],Se=function(xe){var Ot=xe.pageSizeOptions,_t=Ot===void 0?ue:Ot,Pt=xe.locale,kt=xe.changeSize,mt=xe.pageSize,Vt=xe.goButton,Nt=xe.quickGo,De=xe.rootPrefixCls,gt=xe.disabled,E=xe.buildOptionText,S=xe.showSizeChanger,je=xe.sizeChangerRender,G=i.useState(""),Ce=(0,X.Z)(G,2),en=Ce[0],rt=Ce[1],st=function(){return!en||Number.isNaN(en)?void 0:Number(en)},xt=typeof E=="function"?E:function(dn){return"".concat(dn," ").concat(Pt.items_per_page)},pe=function(Bt){rt(Bt.target.value)},Ee=function(Bt){Vt||en===""||(rt(""),!(Bt.relatedTarget&&(Bt.relatedTarget.className.indexOf("".concat(De,"-item-link"))>=0||Bt.relatedTarget.className.indexOf("".concat(De,"-item"))>=0))&&(Nt==null||Nt(st())))},nt=function(Bt){en!==""&&(Bt.keyCode===R.Z.ENTER||Bt.type==="click")&&(rt(""),Nt==null||Nt(st()))},Ze=function(){return _t.some(function(Bt){return Bt.toString()===mt.toString()})?_t:_t.concat([mt]).sort(function(Bt,J){var we=Number.isNaN(Number(Bt))?0:Number(Bt),M=Number.isNaN(Number(J))?0:Number(J);return we-M})},z="".concat(De,"-options");if(!S&&!Nt)return null;var St=null,fe=null,Kt=null;return S&&je&&(St=je({disabled:gt,size:mt,onSizeChange:function(Bt){kt==null||kt(Number(Bt))},"aria-label":Pt.page_size,className:"".concat(z,"-size-changer"),options:Ze().map(function(dn){return{label:xt(dn),value:dn}})})),Nt&&(Vt&&(Kt=typeof Vt=="boolean"?i.createElement("button",{type:"button",onClick:nt,onKeyUp:nt,disabled:gt,className:"".concat(z,"-quick-jumper-button")},Pt.jump_to_confirm):i.createElement("span",{onClick:nt,onKeyUp:nt},Vt)),fe=i.createElement("div",{className:"".concat(z,"-quick-jumper")},Pt.jump_to,i.createElement("input",{disabled:gt,type:"text",value:en,onChange:pe,onKeyUp:nt,onBlur:Ee,"aria-label":Pt.page}),Pt.page,Kt)),i.createElement("li",{className:z},St,fe)},me=Se,Ke=function(xe){var Ot=xe.rootPrefixCls,_t=xe.page,Pt=xe.active,kt=xe.className,mt=xe.showTitle,Vt=xe.onClick,Nt=xe.onKeyPress,De=xe.itemRender,gt="".concat(Ot,"-item"),E=T()(gt,"".concat(gt,"-").concat(_t),(0,A.Z)((0,A.Z)({},"".concat(gt,"-active"),Pt),"".concat(gt,"-disabled"),!_t),kt),S=function(){Vt(_t)},je=function(en){Nt(en,Vt,_t)},G=De(_t,"page",i.createElement("a",{rel:"nofollow"},_t));return G?i.createElement("li",{title:mt?String(_t):null,className:E,onClick:S,onKeyDown:je,tabIndex:0},G):null},Je=Ke,ke=function(xe,Ot,_t){return _t};function We(){}function oe(de){var xe=Number(de);return typeof xe=="number"&&!Number.isNaN(xe)&&isFinite(xe)&&Math.floor(xe)===xe}function k(de,xe,Ot){var _t=typeof de=="undefined"?xe:de;return Math.floor((Ot-1)/_t)+1}var _=function(xe){var Ot=xe.prefixCls,_t=Ot===void 0?"rc-pagination":Ot,Pt=xe.selectPrefixCls,kt=Pt===void 0?"rc-select":Pt,mt=xe.className,Vt=xe.current,Nt=xe.defaultCurrent,De=Nt===void 0?1:Nt,gt=xe.total,E=gt===void 0?0:gt,S=xe.pageSize,je=xe.defaultPageSize,G=je===void 0?10:je,Ce=xe.onChange,en=Ce===void 0?We:Ce,rt=xe.hideOnSinglePage,st=xe.align,xt=xe.showPrevNextJumpers,pe=xt===void 0?!0:xt,Ee=xe.showQuickJumper,nt=xe.showLessItems,Ze=xe.showTitle,z=Ze===void 0?!0:Ze,St=xe.onShowSizeChange,fe=St===void 0?We:St,Kt=xe.locale,dn=Kt===void 0?I.Z:Kt,Bt=xe.style,J=xe.totalBoundaryShowSizeChanger,we=J===void 0?50:J,M=xe.disabled,Ct=xe.simple,ot=xe.showTotal,dt=xe.showSizeChanger,$t=dt===void 0?E>we:dt,Ft=xe.sizeChangerRender,Mt=xe.pageSizeOptions,ie=xe.itemRender,ve=ie===void 0?ke:ie,At=xe.jumpPrevIcon,Be=xe.jumpNextIcon,Le=xe.prevIcon,ae=xe.nextIcon,Re=i.useRef(null),$e=(0,V.Z)(10,{value:S,defaultValue:G}),He=(0,X.Z)($e,2),ut=He[0],rn=He[1],on=(0,V.Z)(1,{value:Vt,defaultValue:De,postState:function(fr){return Math.max(1,Math.min(fr,k(void 0,ut,E)))}}),Ve=(0,X.Z)(on,2),lt=Ve[0],wt=Ve[1],Qt=i.useState(lt),Yt=(0,X.Z)(Qt,2),ye=Yt[0],at=Yt[1];(0,i.useEffect)(function(){at(lt)},[lt]);var Lt=en!==We,Dt="current"in xe,zt=Math.max(1,lt-(nt?3:5)),an=Math.min(k(void 0,ut,E),lt+(nt?3:5));function un(Dr,fr){var yi=Dr||i.createElement("button",{type:"button","aria-label":fr,className:"".concat(_t,"-item-link")});return typeof Dr=="function"&&(yi=i.createElement(Dr,(0,H.Z)({},xe))),yi}function sn(Dr){var fr=Dr.target.value,yi=k(void 0,ut,E),sr;return fr===""?sr=fr:Number.isNaN(Number(fr))?sr=ye:fr>=yi?sr=yi:sr=Number(fr),sr}function vn(Dr){return oe(Dr)&&Dr!==lt&&oe(E)&&E>0}var En=E>ut?Ee:!1;function Rn(Dr){(Dr.keyCode===R.Z.UP||Dr.keyCode===R.Z.DOWN)&&Dr.preventDefault()}function bn(Dr){var fr=sn(Dr);switch(fr!==ye&&at(fr),Dr.keyCode){case R.Z.ENTER:Pn(fr);break;case R.Z.UP:Pn(fr-1);break;case R.Z.DOWN:Pn(fr+1);break;default:break}}function Cn(Dr){Pn(sn(Dr))}function Bn(Dr){var fr=k(Dr,ut,E),yi=lt>fr&&fr!==0?fr:lt;rn(Dr),at(yi),fe==null||fe(lt,Dr),wt(yi),en==null||en(yi,Dr)}function Pn(Dr){if(vn(Dr)&&!M){var fr=k(void 0,ut,E),yi=Dr;return Dr>fr?yi=fr:Dr<1&&(yi=1),yi!==ye&&at(yi),wt(yi),en==null||en(yi,ut),yi}return lt}var ir=lt>1,In=lt<k(void 0,ut,E);function zn(){ir&&Pn(lt-1)}function Yn(){In&&Pn(lt+1)}function tr(){Pn(zt)}function Jn(){Pn(an)}function qt(Dr,fr){if(Dr.key==="Enter"||Dr.charCode===R.Z.ENTER||Dr.keyCode===R.Z.ENTER){for(var yi=arguments.length,sr=new Array(yi>2?yi-2:0),wi=2;wi<yi;wi++)sr[wi-2]=arguments[wi];fr.apply(void 0,sr)}}function tn(Dr){qt(Dr,zn)}function yn(Dr){qt(Dr,Yn)}function Zn(Dr){qt(Dr,tr)}function Ht(Dr){qt(Dr,Jn)}function Un(Dr){var fr=ve(Dr,"prev",un(Le,"prev page"));return i.isValidElement(fr)?i.cloneElement(fr,{disabled:!ir}):fr}function er(Dr){var fr=ve(Dr,"next",un(ae,"next page"));return i.isValidElement(fr)?i.cloneElement(fr,{disabled:!In}):fr}function lr(Dr){(Dr.type==="click"||Dr.keyCode===R.Z.ENTER)&&Pn(ye)}var _r=null,Ar=(0,Q.Z)(xe,{aria:!0,data:!0}),Sr=ot&&i.createElement("li",{className:"".concat(_t,"-total-text")},ot(E,[E===0?0:(lt-1)*ut+1,lt*ut>E?E:lt*ut])),Vn=null,An=k(void 0,ut,E);if(rt&&E<=ut)return null;var pn=[],Tn={rootPrefixCls:_t,onClick:Pn,onKeyPress:qt,showTitle:z,itemRender:ve,page:-1},Xn=lt-1>0?lt-1:0,nr=lt+1<An?lt+1:An,gr=Ee&&Ee.goButton,Er=(0,$.Z)(Ct)==="object"?Ct.readOnly:!Ct,Fn=gr,yr=null;Ct&&(gr&&(typeof gr=="boolean"?Fn=i.createElement("button",{type:"button",onClick:lr,onKeyUp:lr},dn.jump_to_confirm):Fn=i.createElement("span",{onClick:lr,onKeyUp:lr},gr),Fn=i.createElement("li",{title:z?"".concat(dn.jump_to).concat(lt,"/").concat(An):null,className:"".concat(_t,"-simple-pager")},Fn)),yr=i.createElement("li",{title:z?"".concat(lt,"/").concat(An):null,className:"".concat(_t,"-simple-pager")},Er?ye:i.createElement("input",{type:"text","aria-label":dn.jump_to,value:ye,disabled:M,onKeyDown:Rn,onKeyUp:bn,onChange:bn,onBlur:Cn,size:3}),i.createElement("span",{className:"".concat(_t,"-slash")},"/"),An));var Ir=nt?1:2;if(An<=3+Ir*2){An||pn.push(i.createElement(Je,(0,K.Z)({},Tn,{key:"noPager",page:1,className:"".concat(_t,"-item-disabled")})));for(var Zr=1;Zr<=An;Zr+=1)pn.push(i.createElement(Je,(0,K.Z)({},Tn,{key:Zr,page:Zr,active:lt===Zr})))}else{var Nr=nt?dn.prev_3:dn.prev_5,Lr=nt?dn.next_3:dn.next_5,Cr=ve(zt,"jump-prev",un(At,"prev page")),Fr=ve(an,"jump-next",un(Be,"next page"));pe&&(_r=Cr?i.createElement("li",{title:z?Nr:null,key:"prev",onClick:tr,tabIndex:0,onKeyDown:Zn,className:T()("".concat(_t,"-jump-prev"),(0,A.Z)({},"".concat(_t,"-jump-prev-custom-icon"),!!At))},Cr):null,Vn=Fr?i.createElement("li",{title:z?Lr:null,key:"next",onClick:Jn,tabIndex:0,onKeyDown:Ht,className:T()("".concat(_t,"-jump-next"),(0,A.Z)({},"".concat(_t,"-jump-next-custom-icon"),!!Be))},Fr):null);var Jt=Math.max(1,lt-Ir),On=Math.min(lt+Ir,An);lt-1<=Ir&&(On=1+Ir*2),An-lt<=Ir&&(Jt=An-Ir*2);for(var Gn=Jt;Gn<=On;Gn+=1)pn.push(i.createElement(Je,(0,K.Z)({},Tn,{key:Gn,page:Gn,active:lt===Gn})));if(lt-1>=Ir*2&<!==3&&(pn[0]=i.cloneElement(pn[0],{className:T()("".concat(_t,"-item-after-jump-prev"),pn[0].props.className)}),pn.unshift(_r)),An-lt>=Ir*2&<!==An-2){var ur=pn[pn.length-1];pn[pn.length-1]=i.cloneElement(ur,{className:T()("".concat(_t,"-item-before-jump-next"),ur.props.className)}),pn.push(Vn)}Jt!==1&&pn.unshift(i.createElement(Je,(0,K.Z)({},Tn,{key:1,page:1}))),On!==An&&pn.push(i.createElement(Je,(0,K.Z)({},Tn,{key:An,page:An})))}var xr=Un(Xn);if(xr){var jr=!ir||!An;xr=i.createElement("li",{title:z?dn.prev_page:null,onClick:zn,tabIndex:jr?null:0,onKeyDown:tn,className:T()("".concat(_t,"-prev"),(0,A.Z)({},"".concat(_t,"-disabled"),jr)),"aria-disabled":jr},xr)}var wr=er(nr);if(wr){var ni,di;Ct?(ni=!In,di=ir?0:null):(ni=!In||!An,di=ni?null:0),wr=i.createElement("li",{title:z?dn.next_page:null,onClick:Yn,tabIndex:di,onKeyDown:yn,className:T()("".concat(_t,"-next"),(0,A.Z)({},"".concat(_t,"-disabled"),ni)),"aria-disabled":ni},wr)}var Ei=T()(_t,mt,(0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)({},"".concat(_t,"-start"),st==="start"),"".concat(_t,"-center"),st==="center"),"".concat(_t,"-end"),st==="end"),"".concat(_t,"-simple"),Ct),"".concat(_t,"-disabled"),M));return i.createElement("ul",(0,K.Z)({className:Ei,style:Bt,ref:Re},Ar),Sr,xr,Ct?yr:pn,wr,i.createElement(me,{locale:dn,rootPrefixCls:_t,disabled:M,selectPrefixCls:kt,changeSize:Bn,pageSize:ut,pageSizeOptions:Mt,quickGo:En?Pn:null,goButton:Fn,showSizeChanger:$t,sizeChangerRender:Ft}))},ee=_,ne=u(61852),se=u(48755),w=u(31756),D=u(13783),ce=u(9017),Oe=u(82326),ct=u(57700),Tt=u(36237),Ae=u(53075),qe=u(64910),ht=u(39082),tt=u(63356),Fe=u(51636),jt=u(16931);const bt=de=>{const{componentCls:xe}=de;return{[`${xe}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${xe}-item-link`]:{color:de.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${xe}-item-link`]:{color:de.colorTextDisabled,cursor:"not-allowed"}}},[`&${xe}-disabled`]:{cursor:"not-allowed",[`${xe}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:de.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:de.colorBorder,backgroundColor:de.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:de.itemActiveBgDisabled},a:{color:de.itemActiveColorDisabled}}},[`${xe}-item-link`]:{color:de.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${xe}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${xe}-simple-pager`]:{color:de.colorTextDisabled},[`${xe}-jump-prev, ${xe}-jump-next`]:{[`${xe}-item-link-icon`]:{opacity:0},[`${xe}-item-ellipsis`]:{opacity:1}}},[`&${xe}-simple`]:{[`${xe}-prev, ${xe}-next`]:{[`&${xe}-disabled ${xe}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},cn=de=>{const{componentCls:xe}=de;return{[`&${xe}-mini ${xe}-total-text, &${xe}-mini ${xe}-simple-pager`]:{height:de.itemSizeSM,lineHeight:(0,Tt.unit)(de.itemSizeSM)},[`&${xe}-mini ${xe}-item`]:{minWidth:de.itemSizeSM,height:de.itemSizeSM,margin:0,lineHeight:(0,Tt.unit)(de.calc(de.itemSizeSM).sub(2).equal())},[`&${xe}-mini ${xe}-prev, &${xe}-mini ${xe}-next`]:{minWidth:de.itemSizeSM,height:de.itemSizeSM,margin:0,lineHeight:(0,Tt.unit)(de.itemSizeSM)},[`&${xe}-mini:not(${xe}-disabled)`]:{[`${xe}-prev, ${xe}-next`]:{[`&:hover ${xe}-item-link`]:{backgroundColor:de.colorBgTextHover},[`&:active ${xe}-item-link`]:{backgroundColor:de.colorBgTextActive},[`&${xe}-disabled:hover ${xe}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${xe}-mini ${xe}-prev ${xe}-item-link,
|
|
|
&${xe}-mini ${xe}-next ${xe}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:de.itemSizeSM,lineHeight:(0,Tt.unit)(de.itemSizeSM)}},[`&${xe}-mini ${xe}-jump-prev, &${xe}-mini ${xe}-jump-next`]:{height:de.itemSizeSM,marginInlineEnd:0,lineHeight:(0,Tt.unit)(de.itemSizeSM)},[`&${xe}-mini ${xe}-options`]:{marginInlineStart:de.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:de.miniOptionsSizeChangerTop},"&-quick-jumper":{height:de.itemSizeSM,lineHeight:(0,Tt.unit)(de.itemSizeSM),input:Object.assign(Object.assign({},(0,Ae.x0)(de)),{width:de.paginationMiniQuickJumperInputWidth,height:de.controlHeightSM})}}}},vt=de=>{const{componentCls:xe}=de;return{[`
|
|
|
&${xe}-simple ${xe}-prev,
|
|
|
&${xe}-simple ${xe}-next
|
|
|
`]:{height:de.itemSizeSM,lineHeight:(0,Tt.unit)(de.itemSizeSM),verticalAlign:"top",[`${xe}-item-link`]:{height:de.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:de.colorBgTextHover},"&:active":{backgroundColor:de.colorBgTextActive},"&::after":{height:de.itemSizeSM,lineHeight:(0,Tt.unit)(de.itemSizeSM)}}},[`&${xe}-simple ${xe}-simple-pager`]:{display:"inline-block",height:de.itemSizeSM,marginInlineEnd:de.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,Tt.unit)(de.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:de.itemInputBg,border:`${(0,Tt.unit)(de.lineWidth)} ${de.lineType} ${de.colorBorder}`,borderRadius:de.borderRadius,outline:"none",transition:`border-color ${de.motionDurationMid}`,color:"inherit","&:hover":{borderColor:de.colorPrimary},"&:focus":{borderColor:de.colorPrimaryHover,boxShadow:`${(0,Tt.unit)(de.inputOutlineOffset)} 0 ${(0,Tt.unit)(de.controlOutlineWidth)} ${de.controlOutline}`},"&[disabled]":{color:de.colorTextDisabled,backgroundColor:de.colorBgContainerDisabled,borderColor:de.colorBorder,cursor:"not-allowed"}}}}},pt=de=>{const{componentCls:xe}=de;return{[`${xe}-jump-prev, ${xe}-jump-next`]:{outline:0,[`${xe}-item-container`]:{position:"relative",[`${xe}-item-link-icon`]:{color:de.colorPrimary,fontSize:de.fontSizeSM,opacity:0,transition:`all ${de.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${xe}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:de.colorTextDisabled,letterSpacing:de.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:de.paginationEllipsisTextIndent,opacity:1,transition:`all ${de.motionDurationMid}`}},"&:hover":{[`${xe}-item-link-icon`]:{opacity:1},[`${xe}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${xe}-prev,
|
|
|
${xe}-jump-prev,
|
|
|
${xe}-jump-next
|
|
|
`]:{marginInlineEnd:de.marginXS},[`
|
|
|
${xe}-prev,
|
|
|
${xe}-next,
|
|
|
${xe}-jump-prev,
|
|
|
${xe}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:de.itemSize,height:de.itemSize,color:de.colorText,fontFamily:de.fontFamily,lineHeight:(0,Tt.unit)(de.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:de.borderRadius,cursor:"pointer",transition:`all ${de.motionDurationMid}`},[`${xe}-prev, ${xe}-next`]:{outline:0,button:{color:de.colorText,cursor:"pointer",userSelect:"none"},[`${xe}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:de.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,Tt.unit)(de.lineWidth)} ${de.lineType} transparent`,borderRadius:de.borderRadius,outline:"none",transition:`all ${de.motionDurationMid}`},[`&:hover ${xe}-item-link`]:{backgroundColor:de.colorBgTextHover},[`&:active ${xe}-item-link`]:{backgroundColor:de.colorBgTextActive},[`&${xe}-disabled:hover`]:{[`${xe}-item-link`]:{backgroundColor:"transparent"}}},[`${xe}-slash`]:{marginInlineEnd:de.paginationSlashMarginInlineEnd,marginInlineStart:de.paginationSlashMarginInlineStart},[`${xe}-options`]:{display:"inline-block",marginInlineStart:de.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:de.controlHeight,marginInlineStart:de.marginXS,lineHeight:(0,Tt.unit)(de.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Ae.ik)(de)),(0,ht.$U)(de,{borderColor:de.colorBorder,hoverBorderColor:de.colorPrimaryHover,activeBorderColor:de.colorPrimary,activeShadow:de.activeShadow})),{"&[disabled]":Object.assign({},(0,ht.Xy)(de)),width:de.calc(de.controlHeightLG).mul(1.25).equal(),height:de.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:de.marginXS,marginInlineEnd:de.marginXS})}}}},Qe=de=>{const{componentCls:xe}=de;return{[`${xe}-item`]:{display:"inline-block",minWidth:de.itemSize,height:de.itemSize,marginInlineEnd:de.marginXS,fontFamily:de.fontFamily,lineHeight:(0,Tt.unit)(de.calc(de.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:de.itemBg,border:`${(0,Tt.unit)(de.lineWidth)} ${de.lineType} transparent`,borderRadius:de.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,Tt.unit)(de.paginationItemPaddingInline)}`,color:de.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${xe}-item-active)`]:{"&:hover":{transition:`all ${de.motionDurationMid}`,backgroundColor:de.colorBgTextHover},"&:active":{backgroundColor:de.colorBgTextActive}},"&-active":{fontWeight:de.fontWeightStrong,backgroundColor:de.itemActiveBg,borderColor:de.colorPrimary,a:{color:de.colorPrimary},"&:hover":{borderColor:de.colorPrimaryHover},"&:hover a":{color:de.colorPrimaryHover}}}}},Ne=de=>{const{componentCls:xe}=de;return{[xe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,tt.Wf)(de)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${xe}-total-text`]:{display:"inline-block",height:de.itemSize,marginInlineEnd:de.marginXS,lineHeight:(0,Tt.unit)(de.calc(de.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Qe(de)),pt(de)),vt(de)),cn(de)),bt(de)),{[`@media only screen and (max-width: ${de.screenLG}px)`]:{[`${xe}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${de.screenSM}px)`]:{[`${xe}-options`]:{display:"none"}}}),[`&${de.componentCls}-rtl`]:{direction:"rtl"}}},le=de=>{const{componentCls:xe}=de;return{[`${xe}:not(${xe}-disabled)`]:{[`${xe}-item`]:Object.assign({},(0,tt.Qy)(de)),[`${xe}-jump-prev, ${xe}-jump-next`]:{"&:focus-visible":Object.assign({[`${xe}-item-link-icon`]:{opacity:1},[`${xe}-item-ellipsis`]:{opacity:0}},(0,tt.oN)(de))},[`${xe}-prev, ${xe}-next`]:{[`&:focus-visible ${xe}-item-link`]:Object.assign({},(0,tt.oN)(de))}}}},Pe=de=>Object.assign({itemBg:de.colorBgContainer,itemSize:de.controlHeight,itemSizeSM:de.controlHeightSM,itemActiveBg:de.colorBgContainer,itemLinkBg:de.colorBgContainer,itemActiveColorDisabled:de.colorTextDisabled,itemActiveBgDisabled:de.controlItemBgActiveDisabled,itemInputBg:de.colorBgContainer,miniOptionsSizeChangerTop:0},(0,qe.T)(de)),Ge=de=>(0,Fe.mergeToken)(de,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:de.calc(de.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:de.calc(de.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:de.calc(de.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:de.calc(de.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:de.marginSM,paginationSlashMarginInlineEnd:de.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,qe.e)(de));var j=(0,jt.I$)("Pagination",de=>{const xe=Ge(de);return[Ne(xe),le(xe)]},Pe);const P=de=>{const{componentCls:xe}=de;return{[`${xe}${xe}-bordered${xe}-disabled:not(${xe}-mini)`]:{"&, &:hover":{[`${xe}-item-link`]:{borderColor:de.colorBorder}},"&:focus-visible":{[`${xe}-item-link`]:{borderColor:de.colorBorder}},[`${xe}-item, ${xe}-item-link`]:{backgroundColor:de.colorBgContainerDisabled,borderColor:de.colorBorder,[`&:hover:not(${xe}-item-active)`]:{backgroundColor:de.colorBgContainerDisabled,borderColor:de.colorBorder,a:{color:de.colorTextDisabled}},[`&${xe}-item-active`]:{backgroundColor:de.itemActiveBgDisabled}},[`${xe}-prev, ${xe}-next`]:{"&:hover button":{backgroundColor:de.colorBgContainerDisabled,borderColor:de.colorBorder,color:de.colorTextDisabled},[`${xe}-item-link`]:{backgroundColor:de.colorBgContainerDisabled,borderColor:de.colorBorder}}},[`${xe}${xe}-bordered:not(${xe}-mini)`]:{[`${xe}-prev, ${xe}-next`]:{"&:hover button":{borderColor:de.colorPrimaryHover,backgroundColor:de.itemBg},[`${xe}-item-link`]:{backgroundColor:de.itemLinkBg,borderColor:de.colorBorder},[`&:hover ${xe}-item-link`]:{borderColor:de.colorPrimary,backgroundColor:de.itemBg,color:de.colorPrimary},[`&${xe}-disabled`]:{[`${xe}-item-link`]:{borderColor:de.colorBorder,color:de.colorTextDisabled}}},[`${xe}-item`]:{backgroundColor:de.itemBg,border:`${(0,Tt.unit)(de.lineWidth)} ${de.lineType} ${de.colorBorder}`,[`&:hover:not(${xe}-item-active)`]:{borderColor:de.colorPrimary,backgroundColor:de.itemBg,a:{color:de.colorPrimary}},"&-active":{borderColor:de.colorPrimary}}}}};var _e=(0,jt.bk)(["Pagination","bordered"],de=>{const xe=Ge(de);return[P(xe)]},Pe);function Ie(de){return(0,i.useMemo)(()=>typeof de=="boolean"?[de,{}]:de&&typeof de=="object"?[!0,de]:[void 0,void 0],[de])}var Te=function(de,xe){var Ot={};for(var _t in de)Object.prototype.hasOwnProperty.call(de,_t)&&xe.indexOf(_t)<0&&(Ot[_t]=de[_t]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,_t=Object.getOwnPropertySymbols(de);Pt<_t.length;Pt++)xe.indexOf(_t[Pt])<0&&Object.prototype.propertyIsEnumerable.call(de,_t[Pt])&&(Ot[_t[Pt]]=de[_t[Pt]]);return Ot},Ue=de=>{const{align:xe,prefixCls:Ot,selectPrefixCls:_t,className:Pt,rootClassName:kt,style:mt,size:Vt,locale:Nt,responsive:De,showSizeChanger:gt,selectComponentClass:E,pageSizeOptions:S}=de,je=Te(de,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:G}=(0,D.Z)(De),[,Ce]=(0,ct.ZP)(),{getPrefixCls:en,direction:rt,showSizeChanger:st,className:xt,style:pe}=(0,se.dj)("pagination"),Ee=en("pagination",Ot),[nt,Ze,z]=j(Ee),St=(0,w.Z)(Vt),fe=St==="small"||!!(G&&!St&&De),[Kt]=(0,ce.Z)("Pagination",ne.Z),dn=Object.assign(Object.assign({},Kt),Nt),[Bt,J]=Ie(gt),[we,M]=Ie(st),Ct=Bt!=null?Bt:we,ot=J!=null?J:M,dt=E||Oe.default,$t=i.useMemo(()=>S?S.map(Be=>Number(Be)):void 0,[S]),Ft=Be=>{var Le;const{disabled:ae,size:Re,onSizeChange:$e,"aria-label":He,className:ut,options:rn}=Be,{className:on,onChange:Ve}=ot||{},lt=(Le=rn.find(wt=>String(wt.value)===String(Re)))===null||Le===void 0?void 0:Le.value;return i.createElement(dt,Object.assign({disabled:ae,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:wt=>wt.parentNode,"aria-label":He,options:rn},ot,{value:lt,onChange:(wt,Qt)=>{$e==null||$e(wt),Ve==null||Ve(wt,Qt)},size:fe?"small":"middle",className:T()(ut,on)}))},Mt=i.useMemo(()=>{const Be=i.createElement("span",{className:`${Ee}-item-ellipsis`},"\u2022\u2022\u2022"),Le=i.createElement("button",{className:`${Ee}-item-link`,type:"button",tabIndex:-1},rt==="rtl"?i.createElement(N.Z,null):i.createElement(x.Z,null)),ae=i.createElement("button",{className:`${Ee}-item-link`,type:"button",tabIndex:-1},rt==="rtl"?i.createElement(x.Z,null):i.createElement(N.Z,null)),Re=i.createElement("a",{className:`${Ee}-item-link`},i.createElement("div",{className:`${Ee}-item-container`},rt==="rtl"?i.createElement(l.Z,{className:`${Ee}-item-link-icon`}):i.createElement(Y,{className:`${Ee}-item-link-icon`}),Be)),$e=i.createElement("a",{className:`${Ee}-item-link`},i.createElement("div",{className:`${Ee}-item-container`},rt==="rtl"?i.createElement(Y,{className:`${Ee}-item-link-icon`}):i.createElement(l.Z,{className:`${Ee}-item-link-icon`}),Be));return{prevIcon:Le,nextIcon:ae,jumpPrevIcon:Re,jumpNextIcon:$e}},[rt,Ee]),ie=en("select",_t),ve=T()({[`${Ee}-${xe}`]:!!xe,[`${Ee}-mini`]:fe,[`${Ee}-rtl`]:rt==="rtl",[`${Ee}-bordered`]:Ce.wireframe},xt,Pt,kt,Ze,z),At=Object.assign(Object.assign({},pe),mt);return nt(i.createElement(i.Fragment,null,Ce.wireframe&&i.createElement(_e,{prefixCls:Ee}),i.createElement(ee,Object.assign({},Mt,je,{style:At,prefixCls:Ee,selectPrefixCls:ie,className:ve,locale:dn,pageSizeOptions:$t,showSizeChanger:Ct,sizeChangerRender:Ft}))))},ft=Ue},69106:function($n,Rt,u){"use strict";u.d(Rt,{aV:function(){return l},t5:function(){return x}});var i=u(59301),K=u(92310),L=u.n(K),he=u(29125),Z=u(54500),g=u(48755),W=u(85074),Y=function(y,T){var A={};for(var $ in y)Object.prototype.hasOwnProperty.call(y,$)&&T.indexOf($)<0&&(A[$]=y[$]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,$=Object.getOwnPropertySymbols(y);H<$.length;H++)T.indexOf($[H])<0&&Object.prototype.propertyIsEnumerable.call(y,$[H])&&(A[$[H]]=y[$[H]]);return A};const l=y=>{let{title:T,content:A,prefixCls:$}=y;return!T&&!A?null:i.createElement(i.Fragment,null,T&&i.createElement("div",{className:`${$}-title`},T),A&&i.createElement("div",{className:`${$}-inner-content`},A))},x=y=>{const{hashId:T,prefixCls:A,className:$,style:H,placement:X="top",title:V,content:R,children:Q}=y,O=(0,Z.Z)(V),I=(0,Z.Z)(R),ue=L()(T,A,`${A}-pure`,`${A}-placement-${X}`,$);return i.createElement("div",{className:ue,style:H},i.createElement("div",{className:`${A}-arrow`}),i.createElement(he.G,Object.assign({},y,{className:T,prefixCls:A}),Q||i.createElement(l,{prefixCls:A,title:O,content:I})))},N=y=>{const{prefixCls:T,className:A}=y,$=Y(y,["prefixCls","className"]),{getPrefixCls:H}=i.useContext(g.E_),X=H("popover",T),[V,R,Q]=(0,W.Z)(X);return V(i.createElement(x,Object.assign({},$,{prefixCls:X,hashId:R,className:L()(A,Q)})))};Rt.ZP=N},37639:function($n,Rt,u){"use strict";var i=u(59301),K=u(92310),L=u.n(K),he=u(18929),Z=u(10228),g=u(54500),W=u(86641),Y=u(22703),l=u(25399),x=u(69106),N=u(48755),y=u(85074),T=function(H,X){var V={};for(var R in H)Object.prototype.hasOwnProperty.call(H,R)&&X.indexOf(R)<0&&(V[R]=H[R]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,R=Object.getOwnPropertySymbols(H);Q<R.length;Q++)X.indexOf(R[Q])<0&&Object.prototype.propertyIsEnumerable.call(H,R[Q])&&(V[R[Q]]=H[R[Q]]);return V};const $=i.forwardRef((H,X)=>{var V,R;const{prefixCls:Q,title:O,content:I,overlayClassName:ue,placement:Se="top",trigger:me="hover",children:Ke,mouseEnterDelay:Je=.1,mouseLeaveDelay:ke=.1,onOpenChange:We,overlayStyle:oe={},styles:k,classNames:_}=H,ee=T(H,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:ne,className:se,style:w,classNames:D,styles:ce}=(0,N.dj)("popover"),Oe=ne("popover",Q),[ct,Tt,Ae]=(0,y.Z)(Oe),qe=ne(),ht=L()(ue,Tt,Ae,se,D.root,_==null?void 0:_.root),tt=L()(D.body,_==null?void 0:_.body),[Fe,jt]=(0,he.Z)(!1,{value:(V=H.open)!==null&&V!==void 0?V:H.visible,defaultValue:(R=H.defaultOpen)!==null&&R!==void 0?R:H.defaultVisible}),bt=(Ne,le)=>{jt(Ne,!0),We==null||We(Ne,le)},cn=Ne=>{Ne.keyCode===Z.Z.ESC&&bt(!1,Ne)},vt=Ne=>{bt(Ne)},pt=(0,g.Z)(O),Qe=(0,g.Z)(I);return ct(i.createElement(l.Z,Object.assign({placement:Se,trigger:me,mouseEnterDelay:Je,mouseLeaveDelay:ke},ee,{prefixCls:Oe,classNames:{root:ht,body:tt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},ce.root),w),oe),k==null?void 0:k.root),body:Object.assign(Object.assign({},ce.body),k==null?void 0:k.body)},ref:X,open:Fe,onOpenChange:vt,overlay:pt||Qe?i.createElement(x.aV,{prefixCls:Oe,title:pt,content:Qe}):null,transitionName:(0,W.m)(qe,"zoom-big",ee.transitionName),"data-popover-inject":!0}),(0,Y.Tm)(Ke,{onKeyDown:Ne=>{var le,Pe;i.isValidElement(Ke)&&((Pe=Ke==null?void 0:(le=Ke.props).onKeyDown)===null||Pe===void 0||Pe.call(le,Ne)),cn(Ne)}})))});$._InternalPanelDoNotUseOrYouWillBeFired=x.ZP,Rt.Z=$},85074:function($n,Rt,u){"use strict";var i=u(63356),K=u(34925),L=u(37645),he=u(36305),Z=u(34998),g=u(16931),W=u(51636);const Y=N=>{const{componentCls:y,popoverColor:T,titleMinWidth:A,fontWeightStrong:$,innerPadding:H,boxShadowSecondary:X,colorTextHeading:V,borderRadiusLG:R,zIndexPopup:Q,titleMarginBottom:O,colorBgElevated:I,popoverBg:ue,titleBorderBottom:Se,innerContentPadding:me,titlePadding:Ke}=N;return[{[y]:Object.assign(Object.assign({},(0,i.Wf)(N)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Q,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":I,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${y}-content`]:{position:"relative"},[`${y}-inner`]:{backgroundColor:ue,backgroundClip:"padding-box",borderRadius:R,boxShadow:X,padding:H},[`${y}-title`]:{minWidth:A,marginBottom:O,color:V,fontWeight:$,borderBottom:Se,padding:Ke},[`${y}-inner-content`]:{color:T,padding:me}})},(0,L.ZP)(N,"var(--antd-arrow-background-color)"),{[`${y}-pure`]:{position:"relative",maxWidth:"none",margin:N.sizePopupArrow,display:"inline-block",[`${y}-content`]:{display:"inline-block"}}}]},l=N=>{const{componentCls:y}=N;return{[y]:Z.i.map(T=>{const A=N[`${T}6`];return{[`&${y}-${T}`]:{"--antd-arrow-background-color":A,[`${y}-inner`]:{backgroundColor:A},[`${y}-arrow`]:{background:"transparent"}}}})}},x=N=>{const{lineWidth:y,controlHeight:T,fontHeight:A,padding:$,wireframe:H,zIndexPopupBase:X,borderRadiusLG:V,marginXS:R,lineType:Q,colorSplit:O,paddingSM:I}=N,ue=T-A,Se=ue/2,me=ue/2-y,Ke=$;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:X+30},(0,he.w)(N)),(0,L.wZ)({contentRadius:V,limitVerticalRadius:!0})),{innerPadding:H?0:12,titleMarginBottom:H?0:R,titlePadding:H?`${Se}px ${Ke}px ${me}px`:0,titleBorderBottom:H?`${y}px ${Q} ${O}`:"none",innerContentPadding:H?`${I}px ${Ke}px`:0})};Rt.Z=(0,g.I$)("Popover",N=>{const{colorBgElevated:y,colorText:T}=N,A=(0,W.mergeToken)(N,{popoverBg:y,popoverColor:T});return[Y(A),l(A),(0,K._y)(A,"zoom-big")]},x,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Nt}});var i=u(59301),K=u(17835),L=u(29679),he=u(40001),Z=u(19248),g=u(99267),W=u(92310),Y=u.n(W),l=u(2738),x=u(48755),N=u(60499),y=u(85899),T=u(42244),A={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},$=function(){var gt=(0,i.useRef)([]),E=(0,i.useRef)(null);return(0,i.useEffect)(function(){var S=Date.now(),je=!1;gt.current.forEach(function(G){if(G){je=!0;var Ce=G.style;Ce.transitionDuration=".3s, .3s, .3s, .06s",E.current&&S-E.current<100&&(Ce.transitionDuration="0s, 0s")}}),je&&(E.current=Date.now())}),gt.current},H=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],X=function(gt){var E=(0,y.Z)((0,y.Z)({},A),gt),S=E.className,je=E.percent,G=E.prefixCls,Ce=E.strokeColor,en=E.strokeLinecap,rt=E.strokeWidth,st=E.style,xt=E.trailColor,pe=E.trailWidth,Ee=E.transition,nt=(0,T.Z)(E,H);delete nt.gapPosition;var Ze=Array.isArray(je)?je:[je],z=Array.isArray(Ce)?Ce:[Ce],St=$(),fe=rt/2,Kt=100-rt/2,dn="M ".concat(en==="round"?fe:0,",").concat(fe,`
|
|
|
L `).concat(en==="round"?Kt:100,",").concat(fe),Bt="0 0 100 ".concat(rt),J=0;return i.createElement("svg",(0,N.Z)({className:Y()("".concat(G,"-line"),S),viewBox:Bt,preserveAspectRatio:"none",style:st},nt),i.createElement("path",{className:"".concat(G,"-line-trail"),d:dn,strokeLinecap:en,stroke:xt,strokeWidth:pe||rt,fillOpacity:"0"}),Ze.map(function(we,M){var Ct=1;switch(en){case"round":Ct=1-rt/100;break;case"square":Ct=1-rt/2/100;break;default:Ct=1;break}var ot={strokeDasharray:"".concat(we*Ct,"px, 100px"),strokeDashoffset:"-".concat(J,"px"),transition:Ee||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},dt=z[M]||z[z.length-1];return J+=we,i.createElement("path",{key:M,className:"".concat(G,"-line-path"),d:dn,strokeLinecap:en,stroke:dt,strokeWidth:rt,fillOpacity:"0",ref:function(Ft){St[M]=Ft},style:ot})}))},V=X,R=u(43749),Q=u(72190),O=u(47273),I=0,ue=(0,O.Z)();function Se(){var De;return ue?(De=I,I+=1):De="TEST_OR_SSR",De}var me=function(De){var gt=i.useState(),E=(0,Q.Z)(gt,2),S=E[0],je=E[1];return i.useEffect(function(){je("rc_progress_".concat(Se()))},[]),De||S},Ke=function(gt){var E=gt.bg,S=gt.children;return i.createElement("div",{style:{width:"100%",height:"100%",background:E}},S)};function Je(De,gt){return Object.keys(De).map(function(E){var S=parseFloat(E),je="".concat(Math.floor(S*gt),"%");return"".concat(De[E]," ").concat(je)})}var ke=i.forwardRef(function(De,gt){var E=De.prefixCls,S=De.color,je=De.gradientId,G=De.radius,Ce=De.style,en=De.ptg,rt=De.strokeLinecap,st=De.strokeWidth,xt=De.size,pe=De.gapDegree,Ee=S&&(0,R.Z)(S)==="object",nt=Ee?"#FFF":void 0,Ze=xt/2,z=i.createElement("circle",{className:"".concat(E,"-circle-path"),r:G,cx:Ze,cy:Ze,stroke:nt,strokeLinecap:rt,strokeWidth:st,opacity:en===0?0:1,style:Ce,ref:gt});if(!Ee)return z;var St="".concat(je,"-conic"),fe=pe?"".concat(180+pe/2,"deg"):"0deg",Kt=Je(S,(360-pe)/360),dn=Je(S,1),Bt="conic-gradient(from ".concat(fe,", ").concat(Kt.join(", "),")"),J="linear-gradient(to ".concat(pe?"bottom":"top",", ").concat(dn.join(", "),")");return i.createElement(i.Fragment,null,i.createElement("mask",{id:St},z),i.createElement("foreignObject",{x:0,y:0,width:xt,height:xt,mask:"url(#".concat(St,")")},i.createElement(Ke,{bg:J},i.createElement(Ke,{bg:Bt}))))}),We=ke,oe=100,k=function(gt,E,S,je,G,Ce,en,rt,st,xt){var pe=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ee=S/100*360*((360-Ce)/360),nt=Ce===0?0:{bottom:0,top:180,left:90,right:-90}[en],Ze=(100-je)/100*E;st==="round"&&je!==100&&(Ze+=xt/2,Ze>=E&&(Ze=E-.01));var z=oe/2;return{stroke:typeof rt=="string"?rt:void 0,strokeDasharray:"".concat(E,"px ").concat(gt),strokeDashoffset:Ze+pe,transform:"rotate(".concat(G+Ee+nt,"deg)"),transformOrigin:"".concat(z,"px ").concat(z,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},_=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ee(De){var gt=De!=null?De:[];return Array.isArray(gt)?gt:[gt]}var ne=function(gt){var E=(0,y.Z)((0,y.Z)({},A),gt),S=E.id,je=E.prefixCls,G=E.steps,Ce=E.strokeWidth,en=E.trailWidth,rt=E.gapDegree,st=rt===void 0?0:rt,xt=E.gapPosition,pe=E.trailColor,Ee=E.strokeLinecap,nt=E.style,Ze=E.className,z=E.strokeColor,St=E.percent,fe=(0,T.Z)(E,_),Kt=oe/2,dn=me(S),Bt="".concat(dn,"-gradient"),J=Kt-Ce/2,we=Math.PI*2*J,M=st>0?90+st/2:-90,Ct=we*((360-st)/360),ot=(0,R.Z)(G)==="object"?G:{count:G,gap:2},dt=ot.count,$t=ot.gap,Ft=ee(St),Mt=ee(z),ie=Mt.find(function($e){return $e&&(0,R.Z)($e)==="object"}),ve=ie&&(0,R.Z)(ie)==="object",At=ve?"butt":Ee,Be=k(we,Ct,0,100,M,st,xt,pe,At,Ce),Le=$(),ae=function(){var He=0;return Ft.map(function(ut,rn){var on=Mt[rn]||Mt[Mt.length-1],Ve=k(we,Ct,He,ut,M,st,xt,on,At,Ce);return He+=ut,i.createElement(We,{key:rn,color:on,ptg:ut,radius:J,prefixCls:je,gradientId:Bt,style:Ve,strokeLinecap:At,strokeWidth:Ce,gapDegree:st,ref:function(wt){Le[rn]=wt},size:oe})}).reverse()},Re=function(){var He=Math.round(dt*(Ft[0]/100)),ut=100/dt,rn=0;return new Array(dt).fill(null).map(function(on,Ve){var lt=Ve<=He-1?Mt[0]:pe,wt=lt&&(0,R.Z)(lt)==="object"?"url(#".concat(Bt,")"):void 0,Qt=k(we,Ct,rn,ut,M,st,xt,lt,"butt",Ce,$t);return rn+=(Ct-Qt.strokeDashoffset+$t)*100/Ct,i.createElement("circle",{key:Ve,className:"".concat(je,"-circle-path"),r:J,cx:Kt,cy:Kt,stroke:wt,strokeWidth:Ce,opacity:1,style:Qt,ref:function(ye){Le[Ve]=ye}})})};return i.createElement("svg",(0,N.Z)({className:Y()("".concat(je,"-circle"),Ze),viewBox:"0 0 ".concat(oe," ").concat(oe),style:nt,id:S,role:"presentation"},fe),!dt&&i.createElement("circle",{className:"".concat(je,"-circle-trail"),r:J,cx:Kt,cy:Kt,stroke:pe,strokeLinecap:At,strokeWidth:en||Ce,style:Be}),dt?Re():ae())},se=ne,w={Line:V,Circle:se},D=u(25399),ce=u(68361);function Oe(De){return!De||De<0?0:De>100?100:De}function ct(De){let{success:gt,successPercent:E}=De,S=E;return gt&&"progress"in gt&&(S=gt.progress),gt&&"percent"in gt&&(S=gt.percent),S}const Tt=De=>{let{percent:gt,success:E,successPercent:S}=De;const je=Oe(ct({success:E,successPercent:S}));return[je,Oe(Oe(gt)-je)]},Ae=De=>{let{success:gt={},strokeColor:E}=De;const{strokeColor:S}=gt;return[S||ce.presetPrimaryColors.green,E||null]},qe=(De,gt,E)=>{var S,je,G,Ce;let en=-1,rt=-1;if(gt==="step"){const st=E.steps,xt=E.strokeWidth;typeof De=="string"||typeof De=="undefined"?(en=De==="small"?2:14,rt=xt!=null?xt:8):typeof De=="number"?[en,rt]=[De,De]:[en=14,rt=8]=Array.isArray(De)?De:[De.width,De.height],en*=st}else if(gt==="line"){const st=E==null?void 0:E.strokeWidth;typeof De=="string"||typeof De=="undefined"?rt=st||(De==="small"?6:8):typeof De=="number"?[en,rt]=[De,De]:[en=-1,rt=8]=Array.isArray(De)?De:[De.width,De.height]}else(gt==="circle"||gt==="dashboard")&&(typeof De=="string"||typeof De=="undefined"?[en,rt]=De==="small"?[60,60]:[120,120]:typeof De=="number"?[en,rt]=[De,De]:Array.isArray(De)&&(en=(je=(S=De[0])!==null&&S!==void 0?S:De[1])!==null&&je!==void 0?je:120,rt=(Ce=(G=De[0])!==null&&G!==void 0?G:De[1])!==null&&Ce!==void 0?Ce:120));return[en,rt]},ht=3,tt=De=>ht/De*100;var jt=De=>{const{prefixCls:gt,trailColor:E=null,strokeLinecap:S="round",gapPosition:je,gapDegree:G,width:Ce=120,type:en,children:rt,success:st,size:xt=Ce,steps:pe}=De,[Ee,nt]=qe(xt,"circle");let{strokeWidth:Ze}=De;Ze===void 0&&(Ze=Math.max(tt(Ee),6));const z={width:Ee,height:nt,fontSize:Ee*.15+6},St=i.useMemo(()=>{if(G||G===0)return G;if(en==="dashboard")return 75},[G,en]),fe=Tt(De),Kt=je||en==="dashboard"&&"bottom"||void 0,dn=Object.prototype.toString.call(De.strokeColor)==="[object Object]",Bt=Ae({success:st,strokeColor:De.strokeColor}),J=Y()(`${gt}-inner`,{[`${gt}-circle-gradient`]:dn}),we=i.createElement(se,{steps:pe,percent:pe?fe[1]:fe,strokeWidth:Ze,trailWidth:Ze,strokeColor:pe?Bt[1]:Bt,strokeLinecap:S,trailColor:E,prefixCls:gt,gapDegree:St,gapPosition:Kt}),M=Ee<=20,Ct=i.createElement("div",{className:J,style:z},we,!M&&rt);return M?i.createElement(D.Z,{title:rt},Ct):Ct},bt=u(36237),cn=u(63356),vt=u(16931),pt=u(51636);const Qe="--progress-line-stroke-color",Ne="--progress-percent",le=De=>{const gt=De?"100%":"-100%";return new bt.Keyframes(`antProgress${De?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${gt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${gt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Pe=De=>{const{componentCls:gt,iconCls:E}=De;return{[gt]:Object.assign(Object.assign({},(0,cn.Wf)(De)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:De.fontSize},[`${gt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${gt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:De.remainingColor,borderRadius:De.lineBorderRadius},[`${gt}-inner:not(${gt}-circle-gradient)`]:{[`${gt}-circle-path`]:{stroke:De.defaultColor}},[`${gt}-success-bg, ${gt}-bg`]:{position:"relative",background:De.defaultColor,borderRadius:De.lineBorderRadius,transition:`all ${De.motionDurationSlow} ${De.motionEaseInOutCirc}`},[`${gt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${gt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:De.marginXXS}},[`${gt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Qe})`]},height:"100%",width:`calc(1 / var(${Ne}) * 100%)`,display:"block"},[`&${gt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${gt}-text-inner`]:{color:De.colorWhite,[`&${gt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${gt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:De.colorSuccess},[`${gt}-text`]:{display:"inline-block",marginInlineStart:De.marginXS,color:De.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[E]:{fontSize:De.fontSize},[`&${gt}-text-outer`]:{width:"max-content"},[`&${gt}-text-outer${gt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:De.marginXS}},[`${gt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,bt.unit)(De.paddingXXS)}`,[`&${gt}-text-start`]:{justifyContent:"start"},[`&${gt}-text-end`]:{justifyContent:"end"}},[`&${gt}-status-active`]:{[`${gt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:De.colorBgContainer,borderRadius:De.lineBorderRadius,opacity:0,animationName:le(),animationDuration:De.progressActiveMotionDuration,animationTimingFunction:De.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${gt}-rtl${gt}-status-active`]:{[`${gt}-bg::before`]:{animationName:le(!0)}},[`&${gt}-status-exception`]:{[`${gt}-bg`]:{backgroundColor:De.colorError},[`${gt}-text`]:{color:De.colorError}},[`&${gt}-status-exception ${gt}-inner:not(${gt}-circle-gradient)`]:{[`${gt}-circle-path`]:{stroke:De.colorError}},[`&${gt}-status-success`]:{[`${gt}-bg`]:{backgroundColor:De.colorSuccess},[`${gt}-text`]:{color:De.colorSuccess}},[`&${gt}-status-success ${gt}-inner:not(${gt}-circle-gradient)`]:{[`${gt}-circle-path`]:{stroke:De.colorSuccess}}})}},Ge=De=>{const{componentCls:gt,iconCls:E}=De;return{[gt]:{[`${gt}-circle-trail`]:{stroke:De.remainingColor},[`&${gt}-circle ${gt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${gt}-circle ${gt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:De.circleTextColor,fontSize:De.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[E]:{fontSize:De.circleIconFontSize}},[`${gt}-circle&-status-exception`]:{[`${gt}-text`]:{color:De.colorError}},[`${gt}-circle&-status-success`]:{[`${gt}-text`]:{color:De.colorSuccess}}},[`${gt}-inline-circle`]:{lineHeight:1,[`${gt}-inner`]:{verticalAlign:"bottom"}}}},j=De=>{const{componentCls:gt}=De;return{[gt]:{[`${gt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:De.progressStepMinWidth,marginInlineEnd:De.progressStepMarginInlineEnd,backgroundColor:De.remainingColor,transition:`all ${De.motionDurationSlow}`,"&-active":{backgroundColor:De.defaultColor}}}}}},P=De=>{const{componentCls:gt,iconCls:E}=De;return{[gt]:{[`${gt}-small&-line, ${gt}-small&-line ${gt}-text ${E}`]:{fontSize:De.fontSizeSM}}}},_e=De=>({circleTextColor:De.colorText,defaultColor:De.colorInfo,remainingColor:De.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${De.fontSize/De.fontSizeSM}em`});var Ie=(0,vt.I$)("Progress",De=>{const gt=De.calc(De.marginXXS).div(2).equal(),E=(0,pt.mergeToken)(De,{progressStepMarginInlineEnd:gt,progressStepMinWidth:gt,progressActiveMotionDuration:"2.4s"});return[Pe(E),Ge(E),j(E),P(E)]},_e),Te=function(De,gt){var E={};for(var S in De)Object.prototype.hasOwnProperty.call(De,S)&>.indexOf(S)<0&&(E[S]=De[S]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,S=Object.getOwnPropertySymbols(De);je<S.length;je++)gt.indexOf(S[je])<0&&Object.prototype.propertyIsEnumerable.call(De,S[je])&&(E[S[je]]=De[S[je]]);return E};const ze=De=>{let gt=[];return Object.keys(De).forEach(E=>{const S=parseFloat(E.replace(/%/g,""));Number.isNaN(S)||gt.push({key:S,value:De[E]})}),gt=gt.sort((E,S)=>E.key-S.key),gt.map(E=>{let{key:S,value:je}=E;return`${je} ${S}%`}).join(", ")},Ue=(De,gt)=>{const{from:E=ce.presetPrimaryColors.blue,to:S=ce.presetPrimaryColors.blue,direction:je=gt==="rtl"?"to left":"to right"}=De,G=Te(De,["from","to","direction"]);if(Object.keys(G).length!==0){const en=ze(G),rt=`linear-gradient(${je}, ${en})`;return{background:rt,[Qe]:rt}}const Ce=`linear-gradient(${je}, ${E}, ${S})`;return{background:Ce,[Qe]:Ce}};var de=De=>{const{prefixCls:gt,direction:E,percent:S,size:je,strokeWidth:G,strokeColor:Ce,strokeLinecap:en="round",children:rt,trailColor:st=null,percentPosition:xt,success:pe}=De,{align:Ee,type:nt}=xt,Ze=Ce&&typeof Ce!="string"?Ue(Ce,E):{[Qe]:Ce,background:Ce},z=en==="square"||en==="butt"?0:void 0,St=je!=null?je:[-1,G||(je==="small"?6:8)],[fe,Kt]=qe(St,"line",{strokeWidth:G}),dn={backgroundColor:st||void 0,borderRadius:z},Bt=Object.assign(Object.assign({width:`${Oe(S)}%`,height:Kt,borderRadius:z},Ze),{[Ne]:Oe(S)/100}),J=ct(De),we={width:`${Oe(J)}%`,height:Kt,borderRadius:z,backgroundColor:pe==null?void 0:pe.strokeColor},M={width:fe<0?"100%":fe},Ct=i.createElement("div",{className:`${gt}-inner`,style:dn},i.createElement("div",{className:Y()(`${gt}-bg`,`${gt}-bg-${nt}`),style:Bt},nt==="inner"&&rt),J!==void 0&&i.createElement("div",{className:`${gt}-success-bg`,style:we})),ot=nt==="outer"&&Ee==="start",dt=nt==="outer"&&Ee==="end";return nt==="outer"&&Ee==="center"?i.createElement("div",{className:`${gt}-layout-bottom`},Ct,rt):i.createElement("div",{className:`${gt}-outer`,style:M},ot&&rt,Ct,dt&&rt)},Ot=De=>{const{size:gt,steps:E,rounding:S=Math.round,percent:je=0,strokeWidth:G=8,strokeColor:Ce,trailColor:en=null,prefixCls:rt,children:st}=De,xt=S(E*(je/100)),pe=gt==="small"?2:14,Ee=gt!=null?gt:[pe,G],[nt,Ze]=qe(Ee,"step",{steps:E,strokeWidth:G}),z=nt/E,St=Array.from({length:E});for(let fe=0;fe<E;fe++){const Kt=Array.isArray(Ce)?Ce[fe]:Ce;St[fe]=i.createElement("div",{key:fe,className:Y()(`${rt}-steps-item`,{[`${rt}-steps-item-active`]:fe<=xt-1}),style:{backgroundColor:fe<=xt-1?Kt:en,width:z,height:Ze}})}return i.createElement("div",{className:`${rt}-steps-outer`},St,st)},_t=function(De,gt){var E={};for(var S in De)Object.prototype.hasOwnProperty.call(De,S)&>.indexOf(S)<0&&(E[S]=De[S]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,S=Object.getOwnPropertySymbols(De);je<S.length;je++)gt.indexOf(S[je])<0&&Object.prototype.propertyIsEnumerable.call(De,S[je])&&(E[S[je]]=De[S[je]]);return E};const Pt=null,kt=["normal","exception","active","success"];var Vt=i.forwardRef((De,gt)=>{const{prefixCls:E,className:S,rootClassName:je,steps:G,strokeColor:Ce,percent:en=0,size:rt="default",showInfo:st=!0,type:xt="line",status:pe,format:Ee,style:nt,percentPosition:Ze={}}=De,z=_t(De,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:St="end",type:fe="outer"}=Ze,Kt=Array.isArray(Ce)?Ce[0]:Ce,dn=typeof Ce=="string"||Array.isArray(Ce)?Ce:void 0,Bt=i.useMemo(()=>{if(Kt){const ae=typeof Kt=="string"?Kt:Object.values(Kt)[0];return new K.FastColor(ae).isLight()}return!1},[Ce]),J=i.useMemo(()=>{var ae,Re;const $e=ct(De);return parseInt($e!==void 0?(ae=$e!=null?$e:0)===null||ae===void 0?void 0:ae.toString():(Re=en!=null?en:0)===null||Re===void 0?void 0:Re.toString(),10)},[en,De.success,De.successPercent]),we=i.useMemo(()=>!kt.includes(pe)&&J>=100?"success":pe||"normal",[pe,J]),{getPrefixCls:M,direction:Ct,progress:ot}=i.useContext(x.E_),dt=M("progress",E),[$t,Ft,Mt]=Ie(dt),ie=xt==="line",ve=ie&&!G,At=i.useMemo(()=>{if(!st)return null;const ae=ct(De);let Re;const $e=Ee||(ut=>`${ut}%`),He=ie&&Bt&&fe==="inner";return fe==="inner"||Ee||we!=="exception"&&we!=="success"?Re=$e(Oe(en),Oe(ae)):we==="exception"?Re=ie?i.createElement(Z.Z,null):i.createElement(g.Z,null):we==="success"&&(Re=ie?i.createElement(L.Z,null):i.createElement(he.Z,null)),i.createElement("span",{className:Y()(`${dt}-text`,{[`${dt}-text-bright`]:He,[`${dt}-text-${St}`]:ve,[`${dt}-text-${fe}`]:ve}),title:typeof Re=="string"?Re:void 0},Re)},[st,en,J,we,xt,dt,Ee]);let Be;xt==="line"?Be=G?i.createElement(Ot,Object.assign({},De,{strokeColor:dn,prefixCls:dt,steps:typeof G=="object"?G.count:G}),At):i.createElement(de,Object.assign({},De,{strokeColor:Kt,prefixCls:dt,direction:Ct,percentPosition:{align:St,type:fe}}),At):(xt==="circle"||xt==="dashboard")&&(Be=i.createElement(jt,Object.assign({},De,{strokeColor:Kt,prefixCls:dt,progressStatus:we}),At));const Le=Y()(dt,`${dt}-status-${we}`,{[`${dt}-${xt==="dashboard"&&"circle"||xt}`]:xt!=="line",[`${dt}-inline-circle`]:xt==="circle"&&qe(rt,"circle")[0]<=20,[`${dt}-line`]:ve,[`${dt}-line-align-${St}`]:ve,[`${dt}-line-position-${fe}`]:ve,[`${dt}-steps`]:G,[`${dt}-show-info`]:st,[`${dt}-${rt}`]:typeof rt=="string",[`${dt}-rtl`]:Ct==="rtl"},ot==null?void 0:ot.className,S,je,Ft,Mt);return $t(i.createElement("div",Object.assign({ref:gt,style:Object.assign(Object.assign({},ot==null?void 0:ot.style),nt),className:Le,role:"progressbar","aria-valuenow":J,"aria-valuemin":0,"aria-valuemax":100},(0,l.Z)(z,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Be))}),Nt=Vt},47889:function($n,Rt,u){"use strict";u.d(Rt,{ZP:function(){return Tt}});var i=u(59301),K=u(92310),L=u.n(K),he=u(18929),Z=u(26112),g=u(48755),W=u(83397),Y=u(31756);const l=i.createContext(null),x=l.Provider;var N=l;const y=i.createContext(null),T=y.Provider;var A=u(16632),$=u(8654),H=u(12919),X=u(63872),V=u(74632),R=u(2171),Q=u(56553),O=u(36237),I=u(63356),ue=u(16931),Se=u(51636);const me=Ae=>{const{componentCls:qe,antCls:ht}=Ae,tt=`${qe}-group`;return{[tt]:Object.assign(Object.assign({},(0,I.Wf)(Ae)),{display:"inline-block",fontSize:0,[`&${tt}-rtl`]:{direction:"rtl"},[`&${tt}-block`]:{display:"flex"},[`${ht}-badge ${ht}-badge-count`]:{zIndex:1},[`> ${ht}-badge:not(:first-child) > ${ht}-button-wrapper`]:{borderInlineStart:"none"}})}},Ke=Ae=>{const{componentCls:qe,wrapperMarginInlineEnd:ht,colorPrimary:tt,radioSize:Fe,motionDurationSlow:jt,motionDurationMid:bt,motionEaseInOutCirc:cn,colorBgContainer:vt,colorBorder:pt,lineWidth:Qe,colorBgContainerDisabled:Ne,colorTextDisabled:le,paddingXS:Pe,dotColorDisabled:Ge,lineType:j,radioColor:P,radioBgColor:_e,calc:Ie}=Ae,Te=`${qe}-inner`,Ue=Ie(Fe).sub(Ie(4).mul(2)),ft=Ie(1).mul(Fe).equal({unit:!0});return{[`${qe}-wrapper`]:Object.assign(Object.assign({},(0,I.Wf)(Ae)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:ht,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${qe}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Ae.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${qe}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,O.unit)(Qe)} ${j} ${tt}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[qe]:Object.assign(Object.assign({},(0,I.Wf)(Ae)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${qe}-wrapper:hover &,
|
|
|
&:hover ${Te}`]:{borderColor:tt},[`${qe}-input:focus-visible + ${Te}`]:Object.assign({},(0,I.oN)(Ae)),[`${qe}:hover::after, ${qe}-wrapper:hover &::after`]:{visibility:"visible"},[`${qe}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:ft,height:ft,marginBlockStart:Ie(1).mul(Fe).div(-2).equal({unit:!0}),marginInlineStart:Ie(1).mul(Fe).div(-2).equal({unit:!0}),backgroundColor:P,borderBlockStart:0,borderInlineStart:0,borderRadius:ft,transform:"scale(0)",opacity:0,transition:`all ${jt} ${cn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:ft,height:ft,backgroundColor:vt,borderColor:pt,borderStyle:"solid",borderWidth:Qe,borderRadius:"50%",transition:`all ${bt}`},[`${qe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${qe}-checked`]:{[Te]:{borderColor:tt,backgroundColor:_e,"&::after":{transform:`scale(${Ae.calc(Ae.dotSize).div(Fe).equal()})`,opacity:1,transition:`all ${jt} ${cn}`}}},[`${qe}-disabled`]:{cursor:"not-allowed",[Te]:{backgroundColor:Ne,borderColor:pt,cursor:"not-allowed","&::after":{backgroundColor:Ge}},[`${qe}-input`]:{cursor:"not-allowed"},[`${qe}-disabled + span`]:{color:le,cursor:"not-allowed"},[`&${qe}-checked`]:{[Te]:{"&::after":{transform:`scale(${Ie(Ue).div(Fe).equal()})`}}}},[`span${qe} + *`]:{paddingInlineStart:Pe,paddingInlineEnd:Pe}})}},Je=Ae=>{const{buttonColor:qe,controlHeight:ht,componentCls:tt,lineWidth:Fe,lineType:jt,colorBorder:bt,motionDurationSlow:cn,motionDurationMid:vt,buttonPaddingInline:pt,fontSize:Qe,buttonBg:Ne,fontSizeLG:le,controlHeightLG:Pe,controlHeightSM:Ge,paddingXS:j,borderRadius:P,borderRadiusSM:_e,borderRadiusLG:Ie,buttonCheckedBg:Te,buttonSolidCheckedColor:ze,colorTextDisabled:Ue,colorBgContainerDisabled:ft,buttonCheckedBgDisabled:de,buttonCheckedColorDisabled:xe,colorPrimary:Ot,colorPrimaryHover:_t,colorPrimaryActive:Pt,buttonSolidCheckedBg:kt,buttonSolidCheckedHoverBg:mt,buttonSolidCheckedActiveBg:Vt,calc:Nt}=Ae;return{[`${tt}-button-wrapper`]:{position:"relative",display:"inline-block",height:ht,margin:0,paddingInline:pt,paddingBlock:0,color:qe,fontSize:Qe,lineHeight:(0,O.unit)(Nt(ht).sub(Nt(Fe).mul(2)).equal()),background:Ne,border:`${(0,O.unit)(Fe)} ${jt} ${bt}`,borderBlockStartWidth:Nt(Fe).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:Fe,cursor:"pointer",transition:[`color ${vt}`,`background ${vt}`,`box-shadow ${vt}`].join(","),a:{color:qe},[`> ${tt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:Nt(Fe).mul(-1).equal(),insetInlineStart:Nt(Fe).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Fe,paddingInline:0,backgroundColor:bt,transition:`background-color ${cn}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,O.unit)(Fe)} ${jt} ${bt}`,borderStartStartRadius:P,borderEndStartRadius:P},"&:last-child":{borderStartEndRadius:P,borderEndEndRadius:P},"&:first-child:last-child":{borderRadius:P},[`${tt}-group-large &`]:{height:Pe,fontSize:le,lineHeight:(0,O.unit)(Nt(Pe).sub(Nt(Fe).mul(2)).equal()),"&:first-child":{borderStartStartRadius:Ie,borderEndStartRadius:Ie},"&:last-child":{borderStartEndRadius:Ie,borderEndEndRadius:Ie}},[`${tt}-group-small &`]:{height:Ge,paddingInline:Nt(j).sub(Fe).equal(),paddingBlock:0,lineHeight:(0,O.unit)(Nt(Ge).sub(Nt(Fe).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_e,borderEndStartRadius:_e},"&:last-child":{borderStartEndRadius:_e,borderEndEndRadius:_e}},"&:hover":{position:"relative",color:Ot},"&:has(:focus-visible)":Object.assign({},(0,I.oN)(Ae)),[`${tt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${tt}-button-wrapper-disabled)`]:{zIndex:1,color:Ot,background:Te,borderColor:Ot,"&::before":{backgroundColor:Ot},"&:first-child":{borderColor:Ot},"&:hover":{color:_t,borderColor:_t,"&::before":{backgroundColor:_t}},"&:active":{color:Pt,borderColor:Pt,"&::before":{backgroundColor:Pt}}},[`${tt}-group-solid &-checked:not(${tt}-button-wrapper-disabled)`]:{color:ze,background:kt,borderColor:kt,"&:hover":{color:ze,background:mt,borderColor:mt},"&:active":{color:ze,background:Vt,borderColor:Vt}},"&-disabled":{color:Ue,backgroundColor:ft,borderColor:bt,cursor:"not-allowed","&:first-child, &:hover":{color:Ue,backgroundColor:ft,borderColor:bt}},[`&-disabled${tt}-button-wrapper-checked`]:{color:xe,backgroundColor:de,borderColor:bt,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},ke=Ae=>{const{wireframe:qe,padding:ht,marginXS:tt,lineWidth:Fe,fontSizeLG:jt,colorText:bt,colorBgContainer:cn,colorTextDisabled:vt,controlItemBgActiveDisabled:pt,colorTextLightSolid:Qe,colorPrimary:Ne,colorPrimaryHover:le,colorPrimaryActive:Pe,colorWhite:Ge}=Ae,j=4,P=jt,_e=qe?P-j*2:P-(j+Fe)*2;return{radioSize:P,dotSize:_e,dotColorDisabled:vt,buttonSolidCheckedColor:Qe,buttonSolidCheckedBg:Ne,buttonSolidCheckedHoverBg:le,buttonSolidCheckedActiveBg:Pe,buttonBg:cn,buttonCheckedBg:cn,buttonColor:bt,buttonCheckedBgDisabled:pt,buttonCheckedColorDisabled:vt,buttonPaddingInline:ht-Fe,wrapperMarginInlineEnd:tt,radioColor:qe?Ne:Ge,radioBgColor:qe?cn:Ne}};var We=(0,ue.I$)("Radio",Ae=>{const{controlOutline:qe,controlOutlineWidth:ht}=Ae,tt=`0 0 0 ${(0,O.unit)(ht)} ${qe}`,Fe=tt,jt=(0,Se.mergeToken)(Ae,{radioFocusShadow:tt,radioButtonFocusShadow:Fe});return[me(jt),Ke(jt),Je(jt)]},ke,{unitless:{radioSize:!0,dotSize:!0}}),oe=function(Ae,qe){var ht={};for(var tt in Ae)Object.prototype.hasOwnProperty.call(Ae,tt)&&qe.indexOf(tt)<0&&(ht[tt]=Ae[tt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,tt=Object.getOwnPropertySymbols(Ae);Fe<tt.length;Fe++)qe.indexOf(tt[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Ae,tt[Fe])&&(ht[tt[Fe]]=Ae[tt[Fe]]);return ht};const k=(Ae,qe)=>{var ht,tt;const Fe=i.useContext(N),jt=i.useContext(y),{getPrefixCls:bt,direction:cn,radio:vt}=i.useContext(g.E_),pt=i.useRef(null),Qe=(0,$.sQ)(qe,pt),{isFormItemInput:Ne}=i.useContext(Q.aM),le=De=>{var gt,E;(gt=Ae.onChange)===null||gt===void 0||gt.call(Ae,De),(E=Fe==null?void 0:Fe.onChange)===null||E===void 0||E.call(Fe,De)},{prefixCls:Pe,className:Ge,rootClassName:j,children:P,style:_e,title:Ie}=Ae,Te=oe(Ae,["prefixCls","className","rootClassName","children","style","title"]),ze=bt("radio",Pe),Ue=((Fe==null?void 0:Fe.optionType)||jt)==="button",ft=Ue?`${ze}-button`:ze,de=(0,W.Z)(ze),[xe,Ot,_t]=We(ze,de),Pt=Object.assign({},Te),kt=i.useContext(R.Z);Fe&&(Pt.name=Fe.name,Pt.onChange=le,Pt.checked=Ae.value===Fe.value,Pt.disabled=(ht=Pt.disabled)!==null&&ht!==void 0?ht:Fe.disabled),Pt.disabled=(tt=Pt.disabled)!==null&&tt!==void 0?tt:kt;const mt=L()(`${ft}-wrapper`,{[`${ft}-wrapper-checked`]:Pt.checked,[`${ft}-wrapper-disabled`]:Pt.disabled,[`${ft}-wrapper-rtl`]:cn==="rtl",[`${ft}-wrapper-in-form-item`]:Ne,[`${ft}-wrapper-block`]:!!(Fe!=null&&Fe.block)},vt==null?void 0:vt.className,Ge,j,Ot,_t,de),[Vt,Nt]=(0,V.Z)(Pt.onClick);return xe(i.createElement(H.Z,{component:"Radio",disabled:Pt.disabled},i.createElement("label",{className:mt,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),_e),onMouseEnter:Ae.onMouseEnter,onMouseLeave:Ae.onMouseLeave,title:Ie,onClick:Vt},i.createElement(A.Z,Object.assign({},Pt,{className:L()(Pt.className,{[X.A]:!Ue}),type:"radio",prefixCls:ft,ref:Qe,onClick:Nt})),P!==void 0?i.createElement("span",{className:`${ft}-label`},P):null)))};var ee=i.forwardRef(k),ne=u(80402);const se=i.forwardRef((Ae,qe)=>{const{getPrefixCls:ht,direction:tt}=i.useContext(g.E_),Fe=(0,ne.Z)(),{prefixCls:jt,className:bt,rootClassName:cn,options:vt,buttonStyle:pt="outline",disabled:Qe,children:Ne,size:le,style:Pe,id:Ge,optionType:j,name:P=Fe,defaultValue:_e,value:Ie,block:Te=!1,onChange:ze,onMouseEnter:Ue,onMouseLeave:ft,onFocus:de,onBlur:xe}=Ae,[Ot,_t]=(0,he.Z)(_e,{value:Ie}),Pt=i.useCallback(Ce=>{const en=Ot,rt=Ce.target.value;"value"in Ae||_t(rt),rt!==en&&(ze==null||ze(Ce))},[Ot,_t,ze]),kt=ht("radio",jt),mt=`${kt}-group`,Vt=(0,W.Z)(kt),[Nt,De,gt]=We(kt,Vt);let E=Ne;vt&&vt.length>0&&(E=vt.map(Ce=>typeof Ce=="string"||typeof Ce=="number"?i.createElement(ee,{key:Ce.toString(),prefixCls:kt,disabled:Qe,value:Ce,checked:Ot===Ce},Ce):i.createElement(ee,{key:`radio-group-value-options-${Ce.value}`,prefixCls:kt,disabled:Ce.disabled||Qe,value:Ce.value,checked:Ot===Ce.value,title:Ce.title,style:Ce.style,id:Ce.id,required:Ce.required},Ce.label)));const S=(0,Y.Z)(le),je=L()(mt,`${mt}-${pt}`,{[`${mt}-${S}`]:S,[`${mt}-rtl`]:tt==="rtl",[`${mt}-block`]:Te},bt,cn,De,gt,Vt),G=i.useMemo(()=>({onChange:Pt,value:Ot,disabled:Qe,name:P,optionType:j,block:Te}),[Pt,Ot,Qe,P,j,Te]);return Nt(i.createElement("div",Object.assign({},(0,Z.Z)(Ae,{aria:!0,data:!0}),{className:je,style:Pe,onMouseEnter:Ue,onMouseLeave:ft,onFocus:de,onBlur:xe,id:Ge,ref:qe}),i.createElement(x,{value:G},E)))});var w=i.memo(se),D=function(Ae,qe){var ht={};for(var tt in Ae)Object.prototype.hasOwnProperty.call(Ae,tt)&&qe.indexOf(tt)<0&&(ht[tt]=Ae[tt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,tt=Object.getOwnPropertySymbols(Ae);Fe<tt.length;Fe++)qe.indexOf(tt[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Ae,tt[Fe])&&(ht[tt[Fe]]=Ae[tt[Fe]]);return ht};const ce=(Ae,qe)=>{const{getPrefixCls:ht}=i.useContext(g.E_),{prefixCls:tt}=Ae,Fe=D(Ae,["prefixCls"]),jt=ht("radio",tt);return i.createElement(T,{value:"button"},i.createElement(ee,Object.assign({prefixCls:jt},Fe,{type:"radio",ref:qe})))};var Oe=i.forwardRef(ce);const ct=ee;ct.Button=Oe,ct.Group=w,ct.__ANT_RADIO=!0;var Tt=ct},63139:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Tt}});var i=u(59301),K=u(60499),L={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"},he=L,Z=u(7657),g=function(qe,ht){return i.createElement(Z.Z,(0,K.Z)({},qe,{ref:ht,icon:he}))},W=i.forwardRef(g),Y=W,l=u(92310),x=u.n(l),N=u(18642),y=u(72190),T=u(42244),A=u(18929),$=u(10228),H=u(26112);function X(Ae,qe){var ht=Ae.disabled,tt=Ae.prefixCls,Fe=Ae.character,jt=Ae.characterRender,bt=Ae.index,cn=Ae.count,vt=Ae.value,pt=Ae.allowHalf,Qe=Ae.focused,Ne=Ae.onHover,le=Ae.onClick,Pe=function(Ue){Ne(Ue,bt)},Ge=function(Ue){le(Ue,bt)},j=function(Ue){Ue.keyCode===$.Z.ENTER&&le(Ue,bt)},P=bt+1,_e=new Set([tt]);vt===0&&bt===0&&Qe?_e.add("".concat(tt,"-focused")):pt&&vt+.5>=P&&vt<P?(_e.add("".concat(tt,"-half")),_e.add("".concat(tt,"-active")),Qe&&_e.add("".concat(tt,"-focused"))):(P<=vt?_e.add("".concat(tt,"-full")):_e.add("".concat(tt,"-zero")),P===vt&&Qe&&_e.add("".concat(tt,"-focused")));var Ie=typeof Fe=="function"?Fe(Ae):Fe,Te=i.createElement("li",{className:x()(Array.from(_e)),ref:qe},i.createElement("div",{onClick:ht?null:Ge,onKeyDown:ht?null:j,onMouseMove:ht?null:Pe,role:"radio","aria-checked":vt>bt?"true":"false","aria-posinset":bt+1,"aria-setsize":cn,tabIndex:ht?-1:0},i.createElement("div",{className:"".concat(tt,"-first")},Ie),i.createElement("div",{className:"".concat(tt,"-second")},Ie)));return jt&&(Te=jt(Te,Ae)),Te}var V=i.forwardRef(X);function R(){var Ae=i.useRef({});function qe(tt){return Ae.current[tt]}function ht(tt){return function(Fe){Ae.current[tt]=Fe}}return[qe,ht]}function Q(Ae){var qe=Ae.pageXOffset,ht="scrollLeft";if(typeof qe!="number"){var tt=Ae.document;qe=tt.documentElement[ht],typeof qe!="number"&&(qe=tt.body[ht])}return qe}function O(Ae){var qe,ht,tt=Ae.ownerDocument,Fe=tt.body,jt=tt&&tt.documentElement,bt=Ae.getBoundingClientRect();return qe=bt.left,ht=bt.top,qe-=jt.clientLeft||Fe.clientLeft||0,ht-=jt.clientTop||Fe.clientTop||0,{left:qe,top:ht}}function I(Ae){var qe=O(Ae),ht=Ae.ownerDocument,tt=ht.defaultView||ht.parentWindow;return qe.left+=Q(tt),qe.left}var ue=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Se(Ae,qe){var ht=Ae.prefixCls,tt=ht===void 0?"rc-rate":ht,Fe=Ae.className,jt=Ae.defaultValue,bt=Ae.value,cn=Ae.count,vt=cn===void 0?5:cn,pt=Ae.allowHalf,Qe=pt===void 0?!1:pt,Ne=Ae.allowClear,le=Ne===void 0?!0:Ne,Pe=Ae.keyboard,Ge=Pe===void 0?!0:Pe,j=Ae.character,P=j===void 0?"\u2605":j,_e=Ae.characterRender,Ie=Ae.disabled,Te=Ae.direction,ze=Te===void 0?"ltr":Te,Ue=Ae.tabIndex,ft=Ue===void 0?0:Ue,de=Ae.autoFocus,xe=Ae.onHoverChange,Ot=Ae.onChange,_t=Ae.onFocus,Pt=Ae.onBlur,kt=Ae.onKeyDown,mt=Ae.onMouseLeave,Vt=(0,T.Z)(Ae,ue),Nt=R(),De=(0,y.Z)(Nt,2),gt=De[0],E=De[1],S=i.useRef(null),je=function(){if(!Ie){var At;(At=S.current)===null||At===void 0||At.focus()}};i.useImperativeHandle(qe,function(){return{focus:je,blur:function(){if(!Ie){var At;(At=S.current)===null||At===void 0||At.blur()}}}});var G=(0,A.Z)(jt||0,{value:bt}),Ce=(0,y.Z)(G,2),en=Ce[0],rt=Ce[1],st=(0,A.Z)(null),xt=(0,y.Z)(st,2),pe=xt[0],Ee=xt[1],nt=function(At,Be){var Le=ze==="rtl",ae=At+1;if(Qe){var Re=gt(At),$e=I(Re),He=Re.clientWidth;(Le&&Be-$e>He/2||!Le&&Be-$e<He/2)&&(ae-=.5)}return ae},Ze=function(At){rt(At),Ot==null||Ot(At)},z=i.useState(!1),St=(0,y.Z)(z,2),fe=St[0],Kt=St[1],dn=function(){Kt(!0),_t==null||_t()},Bt=function(){Kt(!1),Pt==null||Pt()},J=i.useState(null),we=(0,y.Z)(J,2),M=we[0],Ct=we[1],ot=function(At,Be){var Le=nt(Be,At.pageX);Le!==pe&&(Ct(Le),Ee(null)),xe==null||xe(Le)},dt=function(At){Ie||(Ct(null),Ee(null),xe==null||xe(void 0)),At&&(mt==null||mt(At))},$t=function(At,Be){var Le=nt(Be,At.pageX),ae=!1;le&&(ae=Le===en),dt(),Ze(ae?0:Le),Ee(ae?Le:null)},Ft=function(At){var Be=At.keyCode,Le=ze==="rtl",ae=Qe?.5:1;Ge&&(Be===$.Z.RIGHT&&en<vt&&!Le?(Ze(en+ae),At.preventDefault()):Be===$.Z.LEFT&&en>0&&!Le||Be===$.Z.RIGHT&&en>0&&Le?(Ze(en-ae),At.preventDefault()):Be===$.Z.LEFT&&en<vt&&Le&&(Ze(en+ae),At.preventDefault())),kt==null||kt(At)};i.useEffect(function(){de&&!Ie&&je()},[]);var Mt=new Array(vt).fill(0).map(function(ve,At){return i.createElement(V,{ref:E(At),index:At,count:vt,disabled:Ie,prefixCls:"".concat(tt,"-star"),allowHalf:Qe,value:M===null?en:M,onClick:$t,onHover:ot,key:ve||At,character:P,characterRender:_e,focused:fe})}),ie=x()(tt,Fe,(0,N.Z)((0,N.Z)({},"".concat(tt,"-disabled"),Ie),"".concat(tt,"-rtl"),ze==="rtl"));return i.createElement("ul",(0,K.Z)({className:ie,onMouseLeave:dt,tabIndex:Ie?-1:ft,onFocus:Ie?null:dn,onBlur:Ie?null:Bt,onKeyDown:Ie?null:Ft,ref:S},(0,H.Z)(Vt,{aria:!0,data:!0,attr:!0})),Mt)}var me=i.forwardRef(Se),Ke=me,Je=u(48755),ke=u(25399),We=u(36237),oe=u(63356),k=u(16931),_=u(51636);const ee=Ae=>{const{componentCls:qe}=Ae;return{[`${qe}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ae.marginXS},"> div":{transition:`all ${Ae.motionDurationMid}, outline 0s`,"&:hover":{transform:Ae.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,We.unit)(Ae.lineWidth)} dashed ${Ae.starColor}`,transform:Ae.starHoverScale}},"&-first, &-second":{color:Ae.starBg,transition:`all ${Ae.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${qe}-star-first, &-half ${qe}-star-second`]:{opacity:1},[`&-half ${qe}-star-first, &-full ${qe}-star-second`]:{color:"inherit"}}}},ne=Ae=>({[`&-rtl${Ae.componentCls}`]:{direction:"rtl"}}),se=Ae=>{const{componentCls:qe}=Ae;return{[qe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(Ae)),{display:"inline-block",margin:0,padding:0,color:Ae.starColor,fontSize:Ae.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${qe} ${qe}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),ee(Ae)),ne(Ae))}},w=Ae=>({starColor:Ae.yellow6,starSize:Ae.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ae.colorFillContent});var D=(0,k.I$)("Rate",Ae=>{const qe=(0,_.mergeToken)(Ae,{});return[se(qe)]},w),ce=u(2171),Oe=function(Ae,qe){var ht={};for(var tt in Ae)Object.prototype.hasOwnProperty.call(Ae,tt)&&qe.indexOf(tt)<0&&(ht[tt]=Ae[tt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,tt=Object.getOwnPropertySymbols(Ae);Fe<tt.length;Fe++)qe.indexOf(tt[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Ae,tt[Fe])&&(ht[tt[Fe]]=Ae[tt[Fe]]);return ht},Tt=i.forwardRef((Ae,qe)=>{const{prefixCls:ht,className:tt,rootClassName:Fe,style:jt,tooltips:bt,character:cn=i.createElement(Y,null),disabled:vt}=Ae,pt=Oe(Ae,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),Qe=(Ue,ft)=>{let{index:de}=ft;return bt?i.createElement(ke.Z,{title:bt[de]},Ue):Ue},{getPrefixCls:Ne,direction:le,rate:Pe}=i.useContext(Je.E_),Ge=Ne("rate",ht),[j,P,_e]=D(Ge),Ie=Object.assign(Object.assign({},Pe==null?void 0:Pe.style),jt),Te=i.useContext(ce.Z),ze=vt!=null?vt:Te;return j(i.createElement(Ke,Object.assign({ref:qe,character:cn,characterRender:Qe,disabled:ze},pt,{className:x()(tt,Fe,P,_e,Pe==null?void 0:Pe.className),style:Ie,prefixCls:Ge,direction:le})))})},82326:function($n,Rt,u){"use strict";var i=u(59301),K=u(92310),L=u.n(K),he=u(37463),Z=u(2738),g=u(75030),W=u(86641),Y=u(45915),l=u(82855),x=u(48755),N=u(38406),y=u(2171),T=u(83397),A=u(31756),$=u(56553),H=u(24971),X=u(70045),V=u(57700),R=u(1722),Q=u(90376),O=u(68525),I=u(90005),ue=function(ke,We){var oe={};for(var k in ke)Object.prototype.hasOwnProperty.call(ke,k)&&We.indexOf(k)<0&&(oe[k]=ke[k]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,k=Object.getOwnPropertySymbols(ke);_<k.length;_++)We.indexOf(k[_])<0&&Object.prototype.propertyIsEnumerable.call(ke,k[_])&&(oe[k[_]]=ke[k[_]]);return oe};const Se="SECRET_COMBOBOX_MODE_DO_NOT_USE",me=(ke,We)=>{var oe;const{prefixCls:k,bordered:_,className:ee,rootClassName:ne,getPopupContainer:se,popupClassName:w,dropdownClassName:D,listHeight:ce=256,placement:Oe,listItemHeight:ct,size:Tt,disabled:Ae,notFoundContent:qe,status:ht,builtinPlacements:tt,dropdownMatchSelectWidth:Fe,popupMatchSelectWidth:jt,direction:bt,style:cn,allowClear:vt,variant:pt,dropdownStyle:Qe,transitionName:Ne,tagRender:le,maxCount:Pe,prefix:Ge}=ke,j=ue(ke,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:P,getPrefixCls:_e,renderEmpty:Ie,direction:Te,virtual:ze,popupMatchSelectWidth:Ue,popupOverflow:ft}=i.useContext(x.E_),de=(0,x.dj)("select"),[,xe]=(0,V.ZP)(),Ot=ct!=null?ct:xe==null?void 0:xe.controlHeight,_t=_e("select",k),Pt=_e(),kt=bt!=null?bt:Te,{compactSize:mt,compactItemClassnames:Vt}=(0,X.ri)(_t,kt),[Nt,De]=(0,H.Z)("select",pt,_),gt=(0,T.Z)(_t),[E,S,je]=(0,Q.Z)(_t,gt),G=i.useMemo(()=>{const{mode:Ft}=ke;if(Ft!=="combobox")return Ft===Se?"combobox":Ft},[ke.mode]),Ce=G==="multiple"||G==="tags",en=(0,I.Z)(ke.suffixIcon,ke.showArrow),rt=(oe=jt!=null?jt:Fe)!==null&&oe!==void 0?oe:Ue,{status:st,hasFeedback:xt,isFormItemInput:pe,feedbackIcon:Ee}=i.useContext($.aM),nt=(0,l.F)(st,ht);let Ze;qe!==void 0?Ze=qe:G==="combobox"?Ze=null:Ze=(Ie==null?void 0:Ie("Select"))||i.createElement(N.Z,{componentName:"Select"});const{suffixIcon:z,itemIcon:St,removeIcon:fe,clearIcon:Kt}=(0,O.Z)(Object.assign(Object.assign({},j),{multiple:Ce,hasFeedback:xt,feedbackIcon:Ee,showSuffixIcon:en,prefixCls:_t,componentName:"Select"})),dn=vt===!0?{clearIcon:Kt}:vt,Bt=(0,Z.Z)(j,["suffixIcon","itemIcon"]),J=L()(w||D,{[`${_t}-dropdown-${kt}`]:kt==="rtl"},ne,je,gt,S),we=(0,A.Z)(Ft=>{var Mt;return(Mt=Tt!=null?Tt:mt)!==null&&Mt!==void 0?Mt:Ft}),M=i.useContext(y.Z),Ct=Ae!=null?Ae:M,ot=L()({[`${_t}-lg`]:we==="large",[`${_t}-sm`]:we==="small",[`${_t}-rtl`]:kt==="rtl",[`${_t}-${Nt}`]:De,[`${_t}-in-form-item`]:pe},(0,l.Z)(_t,nt,xt),Vt,de.className,ee,ne,je,gt,S),dt=i.useMemo(()=>Oe!==void 0?Oe:kt==="rtl"?"bottomRight":"bottomLeft",[Oe,kt]),[$t]=(0,g.Cn)("SelectLike",Qe==null?void 0:Qe.zIndex);return E(i.createElement(he.ZP,Object.assign({ref:We,virtual:ze,showSearch:de.showSearch},Bt,{style:Object.assign(Object.assign({},de.style),cn),dropdownMatchSelectWidth:rt,transitionName:(0,W.m)(Pt,"slide-up",Ne),builtinPlacements:(0,R.Z)(tt,ft),listHeight:ce,listItemHeight:Ot,mode:G,prefixCls:_t,placement:dt,direction:kt,prefix:Ge,suffixIcon:z,menuItemSelectedIcon:St,removeIcon:fe,allowClear:dn,notFoundContent:Ze,className:ot,getPopupContainer:se||P,dropdownClassName:J,disabled:Ct,dropdownStyle:Object.assign(Object.assign({},Qe),{zIndex:$t}),maxCount:Ce?Pe:void 0,tagRender:Ce?le:void 0})))},Ke=i.forwardRef(me),Je=(0,Y.Z)(Ke,"dropdownAlign");Ke.SECRET_COMBOBOX_MODE_DO_NOT_USE=Se,Ke.Option=he.Wx,Ke.OptGroup=he.Xo,Ke._InternalPanelDoNotUseOrYouWillBeFired=Je,Rt.default=Ke},1722:function($n,Rt){"use strict";const u=K=>{const he={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:K==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},he),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},he),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},he),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},he),{points:["br","tr"],offset:[0,-4]})}};function i(K,L){return K||u(L)}Rt.Z=i},90376:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return k}});var i=u(63356),K=u(56119),L=u(16931),he=u(51636),Z=u(46e3),g=u(93873);const W=_=>{const{optionHeight:ee,optionFontSize:ne,optionLineHeight:se,optionPadding:w}=_;return{position:"relative",display:"block",minHeight:ee,padding:w,color:_.colorText,fontWeight:"normal",fontSize:ne,lineHeight:se,boxSizing:"border-box"}};var l=_=>{const{antCls:ee,componentCls:ne}=_,se=`${ne}-item`,w=`&${ee}-slide-up-enter${ee}-slide-up-enter-active`,D=`&${ee}-slide-up-appear${ee}-slide-up-appear-active`,ce=`&${ee}-slide-up-leave${ee}-slide-up-leave-active`,Oe=`${ne}-dropdown-placement-`,ct=`${se}-option-selected`;return[{[`${ne}-dropdown`]:Object.assign(Object.assign({},(0,i.Wf)(_)),{position:"absolute",top:-9999,zIndex:_.zIndexPopup,boxSizing:"border-box",padding:_.paddingXXS,overflow:"hidden",fontSize:_.fontSize,fontVariant:"initial",backgroundColor:_.colorBgElevated,borderRadius:_.borderRadiusLG,outline:"none",boxShadow:_.boxShadowSecondary,[`
|
|
|
${w}${Oe}bottomLeft,
|
|
|
${D}${Oe}bottomLeft
|
|
|
`]:{animationName:Z.fJ},[`
|
|
|
${w}${Oe}topLeft,
|
|
|
${D}${Oe}topLeft,
|
|
|
${w}${Oe}topRight,
|
|
|
${D}${Oe}topRight
|
|
|
`]:{animationName:Z.Qt},[`${ce}${Oe}bottomLeft`]:{animationName:Z.Uw},[`
|
|
|
${ce}${Oe}topLeft,
|
|
|
${ce}${Oe}topRight
|
|
|
`]:{animationName:Z.ly},"&-hidden":{display:"none"},[se]:Object.assign(Object.assign({},W(_)),{cursor:"pointer",transition:`background ${_.motionDurationSlow} ease`,borderRadius:_.borderRadiusSM,"&-group":{color:_.colorTextDescription,fontSize:_.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},i.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${se}-option-disabled)`]:{backgroundColor:_.optionActiveBg},[`&-selected:not(${se}-option-disabled)`]:{color:_.optionSelectedColor,fontWeight:_.optionSelectedFontWeight,backgroundColor:_.optionSelectedBg,[`${se}-option-state`]:{color:_.colorPrimary}},"&-disabled":{[`&${se}-option-selected`]:{backgroundColor:_.colorBgContainerDisabled},color:_.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:_.calc(_.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},W(_)),{color:_.colorTextDisabled})}),[`${ct}:has(+ ${ct})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${ct}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Z.oN)(_,"slide-up"),(0,Z.oN)(_,"slide-down"),(0,g.Fm)(_,"move-up"),(0,g.Fm)(_,"move-down")]},x=u(26743),N=u(36237);function y(_,ee){const{componentCls:ne,inputPaddingHorizontalBase:se,borderRadius:w}=_,D=_.calc(_.controlHeight).sub(_.calc(_.lineWidth).mul(2)).equal(),ce=ee?`${ne}-${ee}`:"";return{[`${ne}-single${ce}`]:{fontSize:_.fontSize,height:_.controlHeight,[`${ne}-selector`]:Object.assign(Object.assign({},(0,i.Wf)(_,!0)),{display:"flex",borderRadius:w,flex:"1 1 auto",[`${ne}-selection-wrap:after`]:{lineHeight:(0,N.unit)(D)},[`${ne}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${ne}-selection-item,
|
|
|
${ne}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,N.unit)(D),transition:`all ${_.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${ne}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ne}-selection-item:empty:after`,`${ne}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${ne}-show-arrow ${ne}-selection-item,
|
|
|
&${ne}-show-arrow ${ne}-selection-search,
|
|
|
&${ne}-show-arrow ${ne}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:_.showArrowPaddingInlineEnd},[`&${ne}-open ${ne}-selection-item`]:{color:_.colorTextPlaceholder},[`&:not(${ne}-customize-input)`]:{[`${ne}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,N.unit)(se)}`,[`${ne}-selection-search-input`]:{height:D,fontSize:_.fontSize},"&:after":{lineHeight:(0,N.unit)(D)}}},[`&${ne}-customize-input`]:{[`${ne}-selector`]:{"&:after":{display:"none"},[`${ne}-selection-search`]:{position:"static",width:"100%"},[`${ne}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,N.unit)(se)}`,"&:after":{display:"none"}}}}}}}function T(_){const{componentCls:ee}=_,ne=_.calc(_.controlPaddingHorizontalSM).sub(_.lineWidth).equal();return[y(_),y((0,he.mergeToken)(_,{controlHeight:_.controlHeightSM,borderRadius:_.borderRadiusSM}),"sm"),{[`${ee}-single${ee}-sm`]:{[`&:not(${ee}-customize-input)`]:{[`${ee}-selector`]:{padding:`0 ${(0,N.unit)(ne)}`},[`&${ee}-show-arrow ${ee}-selection-search`]:{insetInlineEnd:_.calc(ne).add(_.calc(_.fontSize).mul(1.5)).equal()},[`
|
|
|
&${ee}-show-arrow ${ee}-selection-item,
|
|
|
&${ee}-show-arrow ${ee}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:_.calc(_.fontSize).mul(1.5).equal()}}}},y((0,he.mergeToken)(_,{controlHeight:_.singleItemHeightLG,fontSize:_.fontSizeLG,borderRadius:_.borderRadiusLG}),"lg")]}const A=_=>{const{fontSize:ee,lineHeight:ne,lineWidth:se,controlHeight:w,controlHeightSM:D,controlHeightLG:ce,paddingXXS:Oe,controlPaddingHorizontal:ct,zIndexPopupBase:Tt,colorText:Ae,fontWeightStrong:qe,controlItemBgActive:ht,controlItemBgHover:tt,colorBgContainer:Fe,colorFillSecondary:jt,colorBgContainerDisabled:bt,colorTextDisabled:cn,colorPrimaryHover:vt,colorPrimary:pt,controlOutline:Qe}=_,Ne=Oe*2,le=se*2,Pe=Math.min(w-Ne,w-le),Ge=Math.min(D-Ne,D-le),j=Math.min(ce-Ne,ce-le);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Oe/2),zIndexPopup:Tt+50,optionSelectedColor:Ae,optionSelectedFontWeight:qe,optionSelectedBg:ht,optionActiveBg:tt,optionPadding:`${(w-ee*ne)/2}px ${ct}px`,optionFontSize:ee,optionLineHeight:ne,optionHeight:w,selectorBg:Fe,clearBg:Fe,singleItemHeightLG:ce,multipleItemBg:jt,multipleItemBorderColor:"transparent",multipleItemHeight:Pe,multipleItemHeightSM:Ge,multipleItemHeightLG:j,multipleSelectorBgDisabled:bt,multipleItemColorDisabled:cn,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(_.fontSize*1.25),hoverBorderColor:vt,activeBorderColor:pt,activeOutlineColor:Qe,selectAffixPadding:Oe}},$=(_,ee)=>{const{componentCls:ne,antCls:se,controlOutlineWidth:w}=_;return{[`&:not(${ne}-customize-input) ${ne}-selector`]:{border:`${(0,N.unit)(_.lineWidth)} ${_.lineType} ${ee.borderColor}`,background:_.selectorBg},[`&:not(${ne}-disabled):not(${ne}-customize-input):not(${se}-pagination-size-changer)`]:{[`&:hover ${ne}-selector`]:{borderColor:ee.hoverBorderHover},[`${ne}-focused& ${ne}-selector`]:{borderColor:ee.activeBorderColor,boxShadow:`0 0 0 ${(0,N.unit)(w)} ${ee.activeOutlineColor}`,outline:0},[`${ne}-prefix`]:{color:ee.color}}}},H=(_,ee)=>({[`&${_.componentCls}-status-${ee.status}`]:Object.assign({},$(_,ee))}),X=_=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},$(_,{borderColor:_.colorBorder,hoverBorderHover:_.hoverBorderColor,activeBorderColor:_.activeBorderColor,activeOutlineColor:_.activeOutlineColor,color:_.colorText})),H(_,{status:"error",borderColor:_.colorError,hoverBorderHover:_.colorErrorHover,activeBorderColor:_.colorError,activeOutlineColor:_.colorErrorOutline,color:_.colorError})),H(_,{status:"warning",borderColor:_.colorWarning,hoverBorderHover:_.colorWarningHover,activeBorderColor:_.colorWarning,activeOutlineColor:_.colorWarningOutline,color:_.colorWarning})),{[`&${_.componentCls}-disabled`]:{[`&:not(${_.componentCls}-customize-input) ${_.componentCls}-selector`]:{background:_.colorBgContainerDisabled,color:_.colorTextDisabled}},[`&${_.componentCls}-multiple ${_.componentCls}-selection-item`]:{background:_.multipleItemBg,border:`${(0,N.unit)(_.lineWidth)} ${_.lineType} ${_.multipleItemBorderColor}`}})}),V=(_,ee)=>{const{componentCls:ne,antCls:se}=_;return{[`&:not(${ne}-customize-input) ${ne}-selector`]:{background:ee.bg,border:`${(0,N.unit)(_.lineWidth)} ${_.lineType} transparent`,color:ee.color},[`&:not(${ne}-disabled):not(${ne}-customize-input):not(${se}-pagination-size-changer)`]:{[`&:hover ${ne}-selector`]:{background:ee.hoverBg},[`${ne}-focused& ${ne}-selector`]:{background:_.selectorBg,borderColor:ee.activeBorderColor,outline:0}}}},R=(_,ee)=>({[`&${_.componentCls}-status-${ee.status}`]:Object.assign({},V(_,ee))}),Q=_=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},V(_,{bg:_.colorFillTertiary,hoverBg:_.colorFillSecondary,activeBorderColor:_.activeBorderColor,color:_.colorText})),R(_,{status:"error",bg:_.colorErrorBg,hoverBg:_.colorErrorBgHover,activeBorderColor:_.colorError,color:_.colorError})),R(_,{status:"warning",bg:_.colorWarningBg,hoverBg:_.colorWarningBgHover,activeBorderColor:_.colorWarning,color:_.colorWarning})),{[`&${_.componentCls}-disabled`]:{[`&:not(${_.componentCls}-customize-input) ${_.componentCls}-selector`]:{borderColor:_.colorBorder,background:_.colorBgContainerDisabled,color:_.colorTextDisabled}},[`&${_.componentCls}-multiple ${_.componentCls}-selection-item`]:{background:_.colorBgContainer,border:`${(0,N.unit)(_.lineWidth)} ${_.lineType} ${_.colorSplit}`}})}),O=_=>({"&-borderless":{[`${_.componentCls}-selector`]:{background:"transparent",border:`${(0,N.unit)(_.lineWidth)} ${_.lineType} transparent`},[`&${_.componentCls}-disabled`]:{[`&:not(${_.componentCls}-customize-input) ${_.componentCls}-selector`]:{color:_.colorTextDisabled}},[`&${_.componentCls}-multiple ${_.componentCls}-selection-item`]:{background:_.multipleItemBg,border:`${(0,N.unit)(_.lineWidth)} ${_.lineType} ${_.multipleItemBorderColor}`},[`&${_.componentCls}-status-error`]:{[`${_.componentCls}-prefix, ${_.componentCls}-selection-item`]:{color:_.colorError}},[`&${_.componentCls}-status-warning`]:{[`${_.componentCls}-prefix, ${_.componentCls}-selection-item`]:{color:_.colorWarning}}}}),I=(_,ee)=>{const{componentCls:ne,antCls:se}=_;return{[`&:not(${ne}-customize-input) ${ne}-selector`]:{borderWidth:`0 0 ${(0,N.unit)(_.lineWidth)} 0`,borderStyle:`none none ${_.lineType} none`,borderColor:ee.borderColor,background:_.selectorBg,borderRadius:0},[`&:not(${ne}-disabled):not(${ne}-customize-input):not(${se}-pagination-size-changer)`]:{[`&:hover ${ne}-selector`]:{borderColor:ee.hoverBorderHover},[`${ne}-focused& ${ne}-selector`]:{borderColor:ee.activeBorderColor,outline:0},[`${ne}-prefix`]:{color:ee.color}}}},ue=(_,ee)=>({[`&${_.componentCls}-status-${ee.status}`]:Object.assign({},I(_,ee))}),Se=_=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},I(_,{borderColor:_.colorBorder,hoverBorderHover:_.hoverBorderColor,activeBorderColor:_.activeBorderColor,activeOutlineColor:_.activeOutlineColor,color:_.colorText})),ue(_,{status:"error",borderColor:_.colorError,hoverBorderHover:_.colorErrorHover,activeBorderColor:_.colorError,activeOutlineColor:_.colorErrorOutline,color:_.colorError})),ue(_,{status:"warning",borderColor:_.colorWarning,hoverBorderHover:_.colorWarningHover,activeBorderColor:_.colorWarning,activeOutlineColor:_.colorWarningOutline,color:_.colorWarning})),{[`&${_.componentCls}-disabled`]:{[`&:not(${_.componentCls}-customize-input) ${_.componentCls}-selector`]:{color:_.colorTextDisabled}},[`&${_.componentCls}-multiple ${_.componentCls}-selection-item`]:{background:_.multipleItemBg,border:`${(0,N.unit)(_.lineWidth)} ${_.lineType} ${_.multipleItemBorderColor}`}})});var Ke=_=>({[_.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},X(_)),Q(_)),O(_)),Se(_))});const Je=_=>{const{componentCls:ee}=_;return{position:"relative",transition:`all ${_.motionDurationMid} ${_.motionEaseInOut}`,input:{cursor:"pointer"},[`${ee}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${ee}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ke=_=>{const{componentCls:ee}=_;return{[`${ee}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},We=_=>{const{antCls:ee,componentCls:ne,inputPaddingHorizontalBase:se,iconCls:w}=_;return{[ne]:Object.assign(Object.assign({},(0,i.Wf)(_)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${ne}-customize-input) ${ne}-selector`]:Object.assign(Object.assign({},Je(_)),ke(_)),[`${ne}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},i.vS),{[`> ${ee}-typography`]:{display:"inline"}}),[`${ne}-selection-placeholder`]:Object.assign(Object.assign({},i.vS),{flex:1,color:_.colorTextPlaceholder,pointerEvents:"none"}),[`${ne}-arrow`]:Object.assign(Object.assign({},(0,i.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:se,height:_.fontSizeIcon,marginTop:_.calc(_.fontSizeIcon).mul(-1).div(2).equal(),color:_.colorTextQuaternary,fontSize:_.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${_.motionDurationSlow} ease`,[w]:{verticalAlign:"top",transition:`transform ${_.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ne}-suffix)`]:{pointerEvents:"auto"}},[`${ne}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ne}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${ne}-prefix`]:{flex:"none",marginInlineEnd:_.selectAffixPadding},[`${ne}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:se,zIndex:1,display:"inline-block",width:_.fontSizeIcon,height:_.fontSizeIcon,marginTop:_.calc(_.fontSizeIcon).mul(-1).div(2).equal(),color:_.colorTextQuaternary,fontSize:_.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${_.motionDurationMid} ease, opacity ${_.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:_.colorTextTertiary}},[`&:hover ${ne}-clear`]:{opacity:1,background:_.colorBgBase,borderRadius:"50%"}}),[`${ne}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${ne}-has-feedback`]:{[`${ne}-clear`]:{insetInlineEnd:_.calc(se).add(_.fontSize).add(_.paddingXS).equal()}}}}}},oe=_=>{const{componentCls:ee}=_;return[{[ee]:{[`&${ee}-in-form-item`]:{width:"100%"}}},We(_),T(_),(0,x.ZP)(_),l(_),{[`${ee}-rtl`]:{direction:"rtl"}},(0,K.c)(_,{borderElCls:`${ee}-selector`,focusElCls:`${ee}-focused`})]};var k=(0,L.I$)("Select",(_,ee)=>{let{rootPrefixCls:ne}=ee;const se=(0,he.mergeToken)(_,{rootPrefixCls:ne,inputPaddingHorizontalBase:_.calc(_.paddingSM).sub(1).equal(),multipleSelectItemHeight:_.multipleItemHeight,selectHeight:_.controlHeight});return[oe(se),Ke(se)]},A,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function($n,Rt,u){"use strict";u.d(Rt,{_z:function(){return g},gp:function(){return he}});var i=u(36237),K=u(63356),L=u(51636);const he=x=>{const{multipleSelectItemHeight:N,paddingXXS:y,lineWidth:T,INTERNAL_FIXED_ITEM_MARGIN:A}=x,$=x.max(x.calc(y).sub(T).equal(),0),H=x.max(x.calc($).sub(A).equal(),0);return{basePadding:$,containerPadding:H,itemHeight:(0,i.unit)(N),itemLineHeight:(0,i.unit)(x.calc(N).sub(x.calc(x.lineWidth).mul(2)).equal())}},Z=x=>{const{multipleSelectItemHeight:N,selectHeight:y,lineWidth:T}=x;return x.calc(y).sub(N).div(2).sub(T).equal()},g=x=>{const{componentCls:N,iconCls:y,borderRadiusSM:T,motionDurationSlow:A,paddingXS:$,multipleItemColorDisabled:H,multipleItemBorderColorDisabled:X,colorIcon:V,colorIconHover:R,INTERNAL_FIXED_ITEM_MARGIN:Q}=x;return{[`${N}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${N}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Q,borderRadius:T,cursor:"default",transition:`font-size ${A}, line-height ${A}, height ${A}`,marginInlineEnd:x.calc(Q).mul(2).equal(),paddingInlineStart:$,paddingInlineEnd:x.calc($).div(2).equal(),[`${N}-disabled&`]:{color:H,borderColor:X,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:x.calc($).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,K.Ro)()),{display:"inline-flex",alignItems:"center",color:V,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${y}`]:{verticalAlign:"-0.2em"},"&:hover":{color:R}})}}}},W=(x,N)=>{const{componentCls:y,INTERNAL_FIXED_ITEM_MARGIN:T}=x,A=`${y}-selection-overflow`,$=x.multipleSelectItemHeight,H=Z(x),X=N?`${y}-${N}`:"",V=he(x);return{[`${y}-multiple${X}`]:Object.assign(Object.assign({},g(x)),{[`${y}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:V.basePadding,paddingBlock:V.containerPadding,borderRadius:x.borderRadius,[`${y}-disabled&`]:{background:x.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,i.unit)(T)} 0`,lineHeight:(0,i.unit)($),visibility:"hidden",content:'"\\a0"'}},[`${y}-selection-item`]:{height:V.itemHeight,lineHeight:(0,i.unit)(V.itemLineHeight)},[`${y}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,i.unit)($),marginBlock:T}},[`${y}-prefix`]:{marginInlineStart:x.calc(x.inputPaddingHorizontalBase).sub(V.basePadding).equal()},[`${A}-item + ${A}-item,
|
|
|
${y}-prefix + ${y}-selection-wrap
|
|
|
`]:{[`${y}-selection-search`]:{marginInlineStart:0},[`${y}-selection-placeholder`]:{insetInlineStart:0}},[`${A}-item-suffix`]:{minHeight:V.itemHeight,marginBlock:T},[`${y}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:x.calc(x.inputPaddingHorizontalBase).sub(H).equal(),"\n &-input,\n &-mirror\n ":{height:$,fontFamily:x.fontFamily,lineHeight:(0,i.unit)($),transition:`all ${x.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${y}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:x.calc(x.inputPaddingHorizontalBase).sub(V.basePadding).equal(),insetInlineEnd:x.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${x.motionDurationSlow}`}})}};function Y(x,N){const{componentCls:y}=x,T=N?`${y}-${N}`:"",A={[`${y}-multiple${T}`]:{fontSize:x.fontSize,[`${y}-selector`]:{[`${y}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${y}-show-arrow ${y}-selector,
|
|
|
&${y}-allow-clear ${y}-selector
|
|
|
`]:{paddingInlineEnd:x.calc(x.fontSizeIcon).add(x.controlPaddingHorizontal).equal()}}};return[W(x,N),A]}const l=x=>{const{componentCls:N}=x,y=(0,L.mergeToken)(x,{selectHeight:x.controlHeightSM,multipleSelectItemHeight:x.multipleItemHeightSM,borderRadius:x.borderRadiusSM,borderRadiusSM:x.borderRadiusXS}),T=(0,L.mergeToken)(x,{fontSize:x.fontSizeLG,selectHeight:x.controlHeightLG,multipleSelectItemHeight:x.multipleItemHeightLG,borderRadius:x.borderRadiusLG,borderRadiusSM:x.borderRadius});return[Y(x),Y(y,"sm"),{[`${N}-multiple${N}-sm`]:{[`${N}-selection-placeholder`]:{insetInline:x.calc(x.controlPaddingHorizontalSM).sub(x.lineWidth).equal()},[`${N}-selection-search`]:{marginInlineStart:2}}},Y(T,"lg")]};Rt.ZP=l},68525:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});var i=u(59301),K=u(40001),L=u(19248),he=u(99267),Z=u(84105),g=u(58617),W=u(47472);function Y(l){let{suffixIcon:x,clearIcon:N,menuItemSelectedIcon:y,removeIcon:T,loading:A,multiple:$,hasFeedback:H,prefixCls:X,showSuffixIcon:V,feedbackIcon:R,showArrow:Q,componentName:O}=l;const I=N!=null?N:i.createElement(L.Z,null),ue=Je=>x===null&&!H&&!Q?null:i.createElement(i.Fragment,null,V!==!1&&Je,H&&R);let Se=null;if(x!==void 0)Se=ue(x);else if(A)Se=ue(i.createElement(g.Z,{spin:!0}));else{const Je=`${X}-suffix`;Se=ke=>{let{open:We,showSearch:oe}=ke;return ue(We&&oe?i.createElement(W.Z,{className:Je}):i.createElement(Z.Z,{className:Je}))}}let me=null;y!==void 0?me=y:$?me=i.createElement(K.Z,null):me=null;let Ke=null;return T!==void 0?Ke=T:Ke=i.createElement(he.Z,null),{clearIcon:I,suffixIcon:Se,itemIcon:me,removeIcon:Ke}}},90005:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return i}});function i(K,L){return L!==void 0?L:K!==null}},44104:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return H}});var i=u(59301),K=u(92310),L=u.n(K),he=u(11592),Z=u(99402),g=u(48755),W=u(70045);const Y=i.createContext({latestIndex:0}),l=Y.Provider;var N=X=>{let{className:V,index:R,children:Q,split:O,style:I}=X;const{latestIndex:ue}=i.useContext(Y);return Q==null?null:i.createElement(i.Fragment,null,i.createElement("div",{className:V,style:I},Q),R<ue&&O&&i.createElement("span",{className:`${V}-split`},O))},y=u(31547),T=function(X,V){var R={};for(var Q in X)Object.prototype.hasOwnProperty.call(X,Q)&&V.indexOf(Q)<0&&(R[Q]=X[Q]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,Q=Object.getOwnPropertySymbols(X);O<Q.length;O++)V.indexOf(Q[O])<0&&Object.prototype.propertyIsEnumerable.call(X,Q[O])&&(R[Q[O]]=X[Q[O]]);return R};const $=i.forwardRef((X,V)=>{var R;const{getPrefixCls:Q,direction:O,size:I,className:ue,style:Se,classNames:me,styles:Ke}=(0,g.dj)("space"),{size:Je=I!=null?I:"small",align:ke,className:We,rootClassName:oe,children:k,direction:_="horizontal",prefixCls:ee,split:ne,style:se,wrap:w=!1,classNames:D,styles:ce}=X,Oe=T(X,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ct,Tt]=Array.isArray(Je)?Je:[Je,Je],Ae=(0,Z.n)(Tt),qe=(0,Z.n)(ct),ht=(0,Z.T)(Tt),tt=(0,Z.T)(ct),Fe=(0,he.Z)(k,{keepEmpty:!0}),jt=ke===void 0&&_==="horizontal"?"center":ke,bt=Q("space",ee),[cn,vt,pt]=(0,y.Z)(bt),Qe=L()(bt,ue,vt,`${bt}-${_}`,{[`${bt}-rtl`]:O==="rtl",[`${bt}-align-${jt}`]:jt,[`${bt}-gap-row-${Tt}`]:Ae,[`${bt}-gap-col-${ct}`]:qe},We,oe,pt),Ne=L()(`${bt}-item`,(R=D==null?void 0:D.item)!==null&&R!==void 0?R:me.item);let le=0;const Pe=Fe.map((P,_e)=>{var Ie;P!=null&&(le=_e);const Te=(P==null?void 0:P.key)||`${Ne}-${_e}`;return i.createElement(N,{className:Ne,key:Te,index:_e,split:ne,style:(Ie=ce==null?void 0:ce.item)!==null&&Ie!==void 0?Ie:Ke.item},P)}),Ge=i.useMemo(()=>({latestIndex:le}),[le]);if(Fe.length===0)return null;const j={};return w&&(j.flexWrap="wrap"),!qe&&tt&&(j.columnGap=ct),!Ae&&ht&&(j.rowGap=Tt),cn(i.createElement("div",Object.assign({ref:V,className:Qe,style:Object.assign(Object.assign(Object.assign({},j),Se),se)},Oe),i.createElement(l,{value:Ge},Pe)))});$.Compact=W.ZP;var H=$},11938:function($n,Rt,u){"use strict";u.d(Rt,{default:function(){return ke}});var i=u(59301),K=u(40192),L=u(22703),he=u(92310),Z=u.n(he),g=u(26112),W=u(48755),Y=u(458),x=We=>{const{value:oe,formatter:k,precision:_,decimalSeparator:ee,groupSeparator:ne="",prefixCls:se}=We;let w;if(typeof k=="function")w=k(oe);else{const D=String(oe),ce=D.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ce||D==="-")w=D;else{const Oe=ce[1];let ct=ce[2]||"0",Tt=ce[4]||"";ct=ct.replace(/\B(?=(\d{3})+(?!\d))/g,ne),typeof _=="number"&&(Tt=Tt.padEnd(_,"0").slice(0,_>0?_:0)),Tt&&(Tt=`${ee}${Tt}`),w=[i.createElement("span",{key:"int",className:`${se}-content-value-int`},Oe,ct),Tt&&i.createElement("span",{key:"decimal",className:`${se}-content-value-decimal`},Tt)]}}return i.createElement("span",{className:`${se}-content-value`},w)},N=u(63356),y=u(16931),T=u(51636);const A=We=>{const{componentCls:oe,marginXXS:k,padding:_,colorTextDescription:ee,titleFontSize:ne,colorTextHeading:se,contentFontSize:w,fontFamily:D}=We;return{[oe]:Object.assign(Object.assign({},(0,N.Wf)(We)),{[`${oe}-title`]:{marginBottom:k,color:ee,fontSize:ne},[`${oe}-skeleton`]:{paddingTop:_},[`${oe}-content`]:{color:se,fontSize:w,fontFamily:D,[`${oe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${oe}-content-prefix, ${oe}-content-suffix`]:{display:"inline-block"},[`${oe}-content-prefix`]:{marginInlineEnd:k},[`${oe}-content-suffix`]:{marginInlineStart:k}}})}},$=We=>{const{fontSizeHeading3:oe,fontSize:k}=We;return{titleFontSize:k,contentFontSize:oe}};var H=(0,y.I$)("Statistic",We=>{const oe=(0,T.mergeToken)(We,{});return[A(oe)]},$),X=function(We,oe){var k={};for(var _ in We)Object.prototype.hasOwnProperty.call(We,_)&&oe.indexOf(_)<0&&(k[_]=We[_]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,_=Object.getOwnPropertySymbols(We);ee<_.length;ee++)oe.indexOf(_[ee])<0&&Object.prototype.propertyIsEnumerable.call(We,_[ee])&&(k[_[ee]]=We[_[ee]]);return k},R=We=>{const{prefixCls:oe,className:k,rootClassName:_,style:ee,valueStyle:ne,value:se=0,title:w,valueRender:D,prefix:ce,suffix:Oe,loading:ct=!1,formatter:Tt,precision:Ae,decimalSeparator:qe=".",groupSeparator:ht=",",onMouseEnter:tt,onMouseLeave:Fe}=We,jt=X(We,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:bt,direction:cn,className:vt,style:pt}=(0,W.dj)("statistic"),Qe=bt("statistic",oe),[Ne,le,Pe]=H(Qe),Ge=i.createElement(x,{decimalSeparator:qe,groupSeparator:ht,prefixCls:Qe,formatter:Tt,precision:Ae,value:se}),j=Z()(Qe,{[`${Qe}-rtl`]:cn==="rtl"},vt,k,_,le,Pe),P=(0,g.Z)(jt,{aria:!0,data:!0});return Ne(i.createElement("div",Object.assign({},P,{className:j,style:Object.assign(Object.assign({},pt),ee),onMouseEnter:tt,onMouseLeave:Fe}),w&&i.createElement("div",{className:`${Qe}-title`},w),i.createElement(Y.Z,{paragraph:!1,loading:ct,className:`${Qe}-skeleton`},i.createElement("div",{style:ne,className:`${Qe}-content`},ce&&i.createElement("span",{className:`${Qe}-content-prefix`},ce),D?D(Ge):Ge,Oe&&i.createElement("span",{className:`${Qe}-content-suffix`},Oe)))))};const Q=[["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 O(We,oe){let k=We;const _=/\[[^\]]*]/g,ee=(oe.match(_)||[]).map(D=>D.slice(1,-1)),ne=oe.replace(_,"[]"),se=Q.reduce((D,ce)=>{let[Oe,ct]=ce;if(D.includes(Oe)){const Tt=Math.floor(k/ct);return k-=Tt*ct,D.replace(new RegExp(`${Oe}+`,"g"),Ae=>{const qe=Ae.length;return Tt.toString().padStart(qe,"0")})}return D},ne);let w=0;return se.replace(_,()=>{const D=ee[w];return w+=1,D})}function I(We,oe){const{format:k=""}=oe,_=new Date(We).getTime(),ee=Date.now(),ne=Math.max(_-ee,0);return O(ne,k)}var ue=function(We,oe){var k={};for(var _ in We)Object.prototype.hasOwnProperty.call(We,_)&&oe.indexOf(_)<0&&(k[_]=We[_]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,_=Object.getOwnPropertySymbols(We);ee<_.length;ee++)oe.indexOf(_[ee])<0&&Object.prototype.propertyIsEnumerable.call(We,_[ee])&&(k[_[ee]]=We[_[ee]]);return k};const Se=1e3/30;function me(We){return new Date(We).getTime()}const Ke=We=>{const{value:oe,format:k="HH:mm:ss",onChange:_,onFinish:ee}=We,ne=ue(We,["value","format","onChange","onFinish"]),se=(0,K.Z)(),w=i.useRef(null),D=()=>{ee==null||ee(),w.current&&(clearInterval(w.current),w.current=null)},ce=()=>{const Tt=me(oe);Tt>=Date.now()&&(w.current=setInterval(()=>{se(),_==null||_(Tt-Date.now()),Tt<Date.now()&&D()},Se))};i.useEffect(()=>(ce(),()=>{w.current&&(clearInterval(w.current),w.current=null)}),[oe]);const Oe=(Tt,Ae)=>I(Tt,Object.assign(Object.assign({},Ae),{format:k})),ct=Tt=>(0,L.Tm)(Tt,{title:void 0});return i.createElement(R,Object.assign({},ne,{value:oe,valueRender:ct,formatter:Oe}))};var Je=i.memo(Ke);R.Countdown=Je;var ke=R},93873:function($n,Rt,u){"use strict";u.d(Rt,{Fm:function(){return y}});var i=u(36237),K=u(48746);const L=new i.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),he=new i.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Z=new i.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new i.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),W=new i.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Y=new i.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),l=new i.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),x=new i.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),N={"move-up":{inKeyframes:l,outKeyframes:x},"move-down":{inKeyframes:L,outKeyframes:he},"move-left":{inKeyframes:Z,outKeyframes:g},"move-right":{inKeyframes:W,outKeyframes:Y}},y=(T,A)=>{const{antCls:$}=T,H=`${$}-${A}`,{inKeyframes:X,outKeyframes:V}=N[A];return[(0,K.R)(H,X,V,T.motionDurationMid),{[`
|
|
|
${H}-enter,
|
|
|
${H}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:T.motionEaseOutCirc},[`${H}-leave`]:{animationTimingFunction:T.motionEaseInOutCirc}}]}},46e3:function($n,Rt,u){"use strict";u.d(Rt,{Qt:function(){return Z},Uw:function(){return he},fJ:function(){return L},ly:function(){return g},oN:function(){return y}});var i=u(36237),K=u(48746);const L=new i.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),he=new i.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Z=new i.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),g=new i.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),W=new i.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Y=new i.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new i.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),x=new i.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),N={"slide-up":{inKeyframes:L,outKeyframes:he},"slide-down":{inKeyframes:Z,outKeyframes:g},"slide-left":{inKeyframes:W,outKeyframes:Y},"slide-right":{inKeyframes:l,outKeyframes:x}},y=(T,A)=>{const{antCls:$}=T,H=`${$}-${A}`,{inKeyframes:X,outKeyframes:V}=N[A];return[(0,K.R)(H,X,V,T.motionDurationMid),{[`
|
|
|
${H}-enter,
|
|
|
${H}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:T.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${H}-leave`]:{animationTimingFunction:T.motionEaseInQuint}}]}},37645:function($n,Rt,u){"use strict";u.d(Rt,{ZP:function(){return g},qN:function(){return L},wZ:function(){return he}});var i=u(36237),K=u(36305);const L=8;function he(W){const{contentRadius:Y,limitVerticalRadius:l}=W,x=Y>12?Y+2:12;return{arrowOffsetHorizontal:x,arrowOffsetVertical:l?L:x}}function Z(W,Y){return W?Y:{}}function g(W,Y,l){const{componentCls:x,boxShadowPopoverArrow:N,arrowOffsetVertical:y,arrowOffsetHorizontal:T}=W,{arrowDistance:A=0,arrowPlacement:$={left:!0,right:!0,top:!0,bottom:!0}}=l||{};return{[x]:Object.assign(Object.assign(Object.assign(Object.assign({[`${x}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,K.W)(W,Y,N)),{"&:before":{background:Y}})]},Z(!!$.top,{[[`&-placement-top > ${x}-arrow`,`&-placement-topLeft > ${x}-arrow`,`&-placement-topRight > ${x}-arrow`].join(",")]:{bottom:A,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${x}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":T,[`> ${x}-arrow`]:{left:{_skip_check_:!0,value:T}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,i.unit)(T)})`,[`> ${x}-arrow`]:{right:{_skip_check_:!0,value:T}}}})),Z(!!$.bottom,{[[`&-placement-bottom > ${x}-arrow`,`&-placement-bottomLeft > ${x}-arrow`,`&-placement-bottomRight > ${x}-arrow`].join(",")]:{top:A,transform:"translateY(-100%)"},[`&-placement-bottom > ${x}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":T,[`> ${x}-arrow`]:{left:{_skip_check_:!0,value:T}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,i.unit)(T)})`,[`> ${x}-arrow`]:{right:{_skip_check_:!0,value:T}}}})),Z(!!$.left,{[[`&-placement-left > ${x}-arrow`,`&-placement-leftTop > ${x}-arrow`,`&-placement-leftBottom > ${x}-arrow`].join(",")]:{right:{_skip_check_:!0,value:A},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${x}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${x}-arrow`]:{top:y},[`&-placement-leftBottom > ${x}-arrow`]:{bottom:y}})),Z(!!$.right,{[[`&-placement-right > ${x}-arrow`,`&-placement-rightTop > ${x}-arrow`,`&-placement-rightBottom > ${x}-arrow`].join(",")]:{left:{_skip_check_:!0,value:A},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${x}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${x}-arrow`]:{top:y},[`&-placement-rightBottom > ${x}-arrow`]:{bottom:y}}))}}},36305:function($n,Rt,u){"use strict";u.d(Rt,{W:function(){return L},w:function(){return K}});var i=u(36237);function K(he){const{sizePopupArrow:Z,borderRadiusXS:g,borderRadiusOuter:W}=he,Y=Z/2,l=0,x=Y,N=W*1/Math.sqrt(2),y=Y-W*(1-1/Math.sqrt(2)),T=Y-g*(1/Math.sqrt(2)),A=W*(Math.sqrt(2)-1)+g*(1/Math.sqrt(2)),$=2*Y-T,H=A,X=2*Y-N,V=y,R=2*Y-l,Q=x,O=Y*Math.sqrt(2)+W*(Math.sqrt(2)-2),I=W*(Math.sqrt(2)-1),ue=`polygon(${I}px 100%, 50% ${I}px, ${2*Y-I}px 100%, ${I}px 100%)`,Se=`path('M ${l} ${x} A ${W} ${W} 0 0 0 ${N} ${y} L ${T} ${A} A ${g} ${g} 0 0 1 ${$} ${H} L ${X} ${V} A ${W} ${W} 0 0 0 ${R} ${Q} Z')`;return{arrowShadowWidth:O,arrowPath:Se,arrowPolygon:ue}}const L=(he,Z,g)=>{const{sizePopupArrow:W,arrowPolygon:Y,arrowPath:l,arrowShadowWidth:x,borderRadiusXS:N,calc:y}=he;return{pointerEvents:"none",width:W,height:W,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:W,height:y(W).div(2).equal(),background:Z,clipPath:{_multi_value_:!0,value:[Y,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:x,height:x,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,i.unit)(N)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:g,zIndex:0,background:"transparent"}}}},70858:function($n,Rt,u){"use strict";u.d(Rt,{default:function(){return Go}});var i=u(59301),K={},L="rc-table-internal-hook",he=u(72190),Z=u(6089),g=u(34280),W=u(13697),Y=u(4676);function l(be){var ge=i.createContext(void 0),it=function(Gt){var nn=Gt.value,mn=Gt.children,ln=i.useRef(nn);ln.current=nn;var _n=i.useState(function(){return{getValue:function(){return ln.current},listeners:new Set}}),xn=(0,he.Z)(_n,1),Qn=xn[0];return(0,g.Z)(function(){(0,Y.unstable_batchedUpdates)(function(){Qn.listeners.forEach(function(Nn){Nn(nn)})})},[nn]),i.createElement(ge.Provider,{value:Qn},mn)};return{Context:ge,Provider:it,defaultValue:be}}function x(be,ge){var it=(0,Z.Z)(typeof ge=="function"?ge:function(Nn){if(ge===void 0)return Nn;if(!Array.isArray(ge))return Nn[ge];var Mn={};return ge.forEach(function(U){Mn[U]=Nn[U]}),Mn}),Et=i.useContext(be==null?void 0:be.Context),Gt=Et||{},nn=Gt.listeners,mn=Gt.getValue,ln=i.useRef();ln.current=it(Et?mn():be==null?void 0:be.defaultValue);var _n=i.useState({}),xn=(0,he.Z)(_n,2),Qn=xn[1];return(0,g.Z)(function(){if(!Et)return;function Nn(Mn){var U=it(Mn);(0,W.Z)(ln.current,U,!0)||Qn({})}return nn.add(Nn),function(){nn.delete(Nn)}},[Et]),ln.current}var N=u(60499),y=u(8654);function T(){var be=i.createContext(null);function ge(){return i.useContext(be)}function it(Gt,nn){var mn=(0,y.Yr)(Gt),ln=function(xn,Qn){var Nn=mn?{ref:Qn}:{},Mn=i.useRef(0),U=i.useRef(xn),c=ge();return c!==null?i.createElement(Gt,(0,N.Z)({},xn,Nn)):((!nn||nn(U.current,xn))&&(Mn.current+=1),U.current=xn,i.createElement(be.Provider,{value:Mn.current},i.createElement(Gt,(0,N.Z)({},xn,Nn))))};return mn?i.forwardRef(ln):ln}function Et(Gt,nn){var mn=(0,y.Yr)(Gt),ln=function(xn,Qn){var Nn=mn?{ref:Qn}:{};return ge(),i.createElement(Gt,(0,N.Z)({},xn,Nn))};return mn?i.memo(i.forwardRef(ln),nn):i.memo(ln,nn)}return{makeImmutable:it,responseImmutable:Et,useImmutableMark:ge}}var A=T(),$=A.makeImmutable,H=A.responseImmutable,X=A.useImmutableMark,V=T(),R=V.makeImmutable,Q=V.responseImmutable,O=V.useImmutableMark,I=l(),ue=I;function Se(be,ge){var it=React.useRef(0);it.current+=1;var Et=React.useRef(be),Gt=[];Object.keys(be||{}).map(function(mn){var ln;(be==null?void 0:be[mn])!==((ln=Et.current)===null||ln===void 0?void 0:ln[mn])&&Gt.push(mn)}),Et.current=be;var nn=React.useRef([]);return Gt.length&&(nn.current=Gt),React.useDebugValue(it.current),React.useDebugValue(nn.current.join(", ")),ge&&console.log("".concat(ge,":"),it.current,nn.current),it.current}var me=null,Ke=null,Je=u(43749),ke=u(85899),We=u(18642),oe=u(92310),k=u.n(oe),_=u(80547),ee=u(97938),ne=u(48736),se=i.createContext({renderWithProps:!1}),w=se,D="RC_TABLE_KEY";function ce(be){return be==null?[]:Array.isArray(be)?be:[be]}function Oe(be){var ge=[],it={};return be.forEach(function(Et){for(var Gt=Et||{},nn=Gt.key,mn=Gt.dataIndex,ln=nn||ce(mn).join("-")||D;it[ln];)ln="".concat(ln,"_next");it[ln]=!0,ge.push(ln)}),ge}function ct(be){return be!=null}function Tt(be){return typeof be=="number"&&!Number.isNaN(be)}function Ae(be){return be&&(0,Je.Z)(be)==="object"&&!Array.isArray(be)&&!i.isValidElement(be)}function qe(be,ge,it,Et,Gt,nn){var mn=i.useContext(w),ln=O(),_n=(0,_.Z)(function(){if(ct(Et))return[Et];var xn=ge==null||ge===""?[]:Array.isArray(ge)?ge:[ge],Qn=(0,ee.Z)(be,xn),Nn=Qn,Mn=void 0;if(Gt){var U=Gt(Qn,be,it);Ae(U)?(Nn=U.children,Mn=U.props,mn.renderWithProps=!0):Nn=U}return[Nn,Mn]},[ln,be,Et,ge,Gt,it],function(xn,Qn){if(nn){var Nn=(0,he.Z)(xn,2),Mn=Nn[1],U=(0,he.Z)(Qn,2),c=U[1];return nn(c,Mn)}return mn.renderWithProps?!0:!(0,W.Z)(xn,Qn,!0)});return _n}function ht(be,ge,it,Et){var Gt=be+ge-1;return be<=Et&&Gt>=it}function tt(be,ge){return x(ue,function(it){var Et=ht(be,ge||1,it.hoverStartRow,it.hoverEndRow);return[Et,it.onHover]})}var Fe=u(70425),jt=function(ge){var it=ge.ellipsis,Et=ge.rowType,Gt=ge.children,nn,mn=it===!0?{showTitle:!0}:it;return mn&&(mn.showTitle||Et==="header")&&(typeof Gt=="string"||typeof Gt=="number"?nn=Gt.toString():i.isValidElement(Gt)&&typeof Gt.props.children=="string"&&(nn=Gt.props.children)),nn};function bt(be){var ge,it,Et,Gt,nn,mn,ln,_n,xn=be.component,Qn=be.children,Nn=be.ellipsis,Mn=be.scope,U=be.prefixCls,c=be.className,f=be.align,h=be.record,b=be.render,B=be.dataIndex,q=be.renderIndex,Me=be.shouldCellUpdate,et=be.index,yt=be.rowType,Xt=be.colSpan,fn=be.rowSpan,Sn=be.fixLeft,kn=be.fixRight,Kn=be.firstFixLeft,jn=be.lastFixLeft,ar=be.firstFixRight,qn=be.lastFixRight,rr=be.appendNode,dr=be.additionalProps,Tr=dr===void 0?{}:dr,Or=be.isSticky,hr="".concat(U,"-cell"),Gr=x(ue,["supportSticky","allColumnsFixedLeft","rowHoverable"]),qr=Gr.supportSticky,Ri=Gr.allColumnsFixedLeft,bi=Gr.rowHoverable,hn=qe(h,B,q,Qn,b,Me),Li=(0,he.Z)(hn,2),ya=Li[0],vi=Li[1],li={},ca=typeof Sn=="number"&&qr,da=typeof kn=="number"&&qr;ca&&(li.position="sticky",li.left=Sn),da&&(li.position="sticky",li.right=kn);var Xr=(ge=(it=(Et=vi==null?void 0:vi.colSpan)!==null&&Et!==void 0?Et:Tr.colSpan)!==null&&it!==void 0?it:Xt)!==null&&ge!==void 0?ge:1,gi=(Gt=(nn=(mn=vi==null?void 0:vi.rowSpan)!==null&&mn!==void 0?mn:Tr.rowSpan)!==null&&nn!==void 0?nn:fn)!==null&&Gt!==void 0?Gt:1,zr=tt(et,gi),Yr=(0,he.Z)(zr,2),Si=Yr[0],Ii=Yr[1],ea=(0,Fe.zX)(function(ta){var Fi;h&&Ii(et,et+gi-1),Tr==null||(Fi=Tr.onMouseEnter)===null||Fi===void 0||Fi.call(Tr,ta)}),Qi=(0,Fe.zX)(function(ta){var Fi;h&&Ii(-1,-1),Tr==null||(Fi=Tr.onMouseLeave)===null||Fi===void 0||Fi.call(Tr,ta)});if(Xr===0||gi===0)return null;var sa=(ln=Tr.title)!==null&&ln!==void 0?ln:jt({rowType:yt,ellipsis:Nn,children:ya}),ka=k()(hr,c,(_n={},(0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)(_n,"".concat(hr,"-fix-left"),ca&&qr),"".concat(hr,"-fix-left-first"),Kn&&qr),"".concat(hr,"-fix-left-last"),jn&&qr),"".concat(hr,"-fix-left-all"),jn&&Ri&&qr),"".concat(hr,"-fix-right"),da&&qr),"".concat(hr,"-fix-right-first"),ar&&qr),"".concat(hr,"-fix-right-last"),qn&&qr),"".concat(hr,"-ellipsis"),Nn),"".concat(hr,"-with-append"),rr),"".concat(hr,"-fix-sticky"),(ca||da)&&Or&&qr),(0,We.Z)(_n,"".concat(hr,"-row-hover"),!vi&&Si)),Tr.className,vi==null?void 0:vi.className),Qr={};f&&(Qr.textAlign=f);var ii=(0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({},vi==null?void 0:vi.style),li),Qr),Tr.style),Bi=ya;return(0,Je.Z)(Bi)==="object"&&!Array.isArray(Bi)&&!i.isValidElement(Bi)&&(Bi=null),Nn&&(jn||ar)&&(Bi=i.createElement("span",{className:"".concat(hr,"-content")},Bi)),i.createElement(xn,(0,N.Z)({},vi,Tr,{className:ka,style:ii,title:sa,scope:Mn,onMouseEnter:bi?ea:void 0,onMouseLeave:bi?Qi:void 0,colSpan:Xr!==1?Xr:null,rowSpan:gi!==1?gi:null}),rr,Bi)}var cn=i.memo(bt);function vt(be,ge,it,Et,Gt){var nn=it[be]||{},mn=it[ge]||{},ln,_n;nn.fixed==="left"?ln=Et.left[Gt==="rtl"?ge:be]:mn.fixed==="right"&&(_n=Et.right[Gt==="rtl"?be:ge]);var xn=!1,Qn=!1,Nn=!1,Mn=!1,U=it[ge+1],c=it[be-1],f=U&&!U.fixed||c&&!c.fixed||it.every(function(Me){return Me.fixed==="left"});if(Gt==="rtl"){if(ln!==void 0){var h=c&&c.fixed==="left";Mn=!h&&f}else if(_n!==void 0){var b=U&&U.fixed==="right";Nn=!b&&f}}else if(ln!==void 0){var B=U&&U.fixed==="left";xn=!B&&f}else if(_n!==void 0){var q=c&&c.fixed==="right";Qn=!q&&f}return{fixLeft:ln,fixRight:_n,lastFixLeft:xn,firstFixRight:Qn,lastFixRight:Nn,firstFixLeft:Mn,isSticky:Et.isSticky}}var pt=i.createContext({}),Qe=pt;function Ne(be){var ge=be.className,it=be.index,Et=be.children,Gt=be.colSpan,nn=Gt===void 0?1:Gt,mn=be.rowSpan,ln=be.align,_n=x(ue,["prefixCls","direction"]),xn=_n.prefixCls,Qn=_n.direction,Nn=i.useContext(Qe),Mn=Nn.scrollColumnIndex,U=Nn.stickyOffsets,c=Nn.flattenColumns,f=it+nn-1,h=f+1===Mn?nn+1:nn,b=vt(it,it+h-1,c,U,Qn);return i.createElement(cn,(0,N.Z)({className:ge,index:it,component:"td",prefixCls:xn,record:null,dataIndex:null,align:ln,colSpan:h,rowSpan:mn,render:function(){return Et}},b))}var le=u(42244),Pe=["children"];function Ge(be){var ge=be.children,it=(0,le.Z)(be,Pe);return i.createElement("tr",it,ge)}function j(be){var ge=be.children;return ge}j.Row=Ge,j.Cell=Ne;var P=j;function _e(be){var ge=be.children,it=be.stickyOffsets,Et=be.flattenColumns,Gt=x(ue,"prefixCls"),nn=Et.length-1,mn=Et[nn],ln=i.useMemo(function(){return{stickyOffsets:it,flattenColumns:Et,scrollColumnIndex:mn!=null&&mn.scrollbar?nn:null}},[mn,Et,nn,it]);return i.createElement(Qe.Provider,{value:ln},i.createElement("tfoot",{className:"".concat(Gt,"-summary")},ge))}var Ie=Q(_e),Te=P,ze=u(29301),Ue=u(24514),ft=u(75152),de=u(26112);function xe(be,ge,it,Et,Gt,nn,mn){be.push({record:ge,indent:it,index:mn});var ln=nn(ge),_n=Gt==null?void 0:Gt.has(ln);if(ge&&Array.isArray(ge[Et])&&_n)for(var xn=0;xn<ge[Et].length;xn+=1)xe(be,ge[Et][xn],it+1,Et,Gt,nn,xn)}function Ot(be,ge,it,Et){var Gt=i.useMemo(function(){if(it!=null&&it.size){for(var nn=[],mn=0;mn<(be==null?void 0:be.length);mn+=1){var ln=be[mn];xe(nn,ln,0,ge,it,Et,mn)}return nn}return be==null?void 0:be.map(function(_n,xn){return{record:_n,indent:0,index:xn}})},[be,ge,it,Et]);return Gt}function _t(be,ge,it,Et){var Gt=x(ue,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),nn=Gt.flattenColumns,mn=Gt.expandableType,ln=Gt.expandedKeys,_n=Gt.childrenColumnName,xn=Gt.onTriggerExpand,Qn=Gt.rowExpandable,Nn=Gt.onRow,Mn=Gt.expandRowByClick,U=Gt.rowClassName,c=mn==="nest",f=mn==="row"&&(!Qn||Qn(be)),h=f||c,b=ln&&ln.has(ge),B=_n&&be&&be[_n],q=(0,Fe.zX)(xn),Me=Nn==null?void 0:Nn(be,it),et=Me==null?void 0:Me.onClick,yt=function(kn){Mn&&h&&xn(be,kn);for(var Kn=arguments.length,jn=new Array(Kn>1?Kn-1:0),ar=1;ar<Kn;ar++)jn[ar-1]=arguments[ar];et==null||et.apply(void 0,[kn].concat(jn))},Xt;typeof U=="string"?Xt=U:typeof U=="function"&&(Xt=U(be,it,Et));var fn=Oe(nn);return(0,ke.Z)((0,ke.Z)({},Gt),{},{columnsKey:fn,nestExpandable:c,expanded:b,hasNestChildren:B,record:be,onTriggerExpand:q,rowSupportExpand:f,expandable:h,rowProps:(0,ke.Z)((0,ke.Z)({},Me),{},{className:k()(Xt,Me==null?void 0:Me.className),onClick:yt})})}function Pt(be){var ge=be.prefixCls,it=be.children,Et=be.component,Gt=be.cellComponent,nn=be.className,mn=be.expanded,ln=be.colSpan,_n=be.isEmpty,xn=x(ue,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Qn=xn.scrollbarSize,Nn=xn.fixHeader,Mn=xn.fixColumn,U=xn.componentWidth,c=xn.horizonScroll,f=it;return(_n?c&&U:Mn)&&(f=i.createElement("div",{style:{width:U-(Nn&&!_n?Qn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ge,"-expanded-row-fixed")},f)),i.createElement(Et,{className:nn,style:{display:mn?null:"none"}},i.createElement(cn,{component:Gt,prefixCls:ge,colSpan:ln},f))}var kt=Pt;function mt(be){var ge=be.prefixCls,it=be.record,Et=be.onExpand,Gt=be.expanded,nn=be.expandable,mn="".concat(ge,"-row-expand-icon");if(!nn)return i.createElement("span",{className:k()(mn,"".concat(ge,"-row-spaced"))});var ln=function(xn){Et(it,xn),xn.stopPropagation()};return i.createElement("span",{className:k()(mn,(0,We.Z)((0,We.Z)({},"".concat(ge,"-row-expanded"),Gt),"".concat(ge,"-row-collapsed"),!Gt)),onClick:ln})}function Vt(be,ge,it){var Et=[];function Gt(nn){(nn||[]).forEach(function(mn,ln){Et.push(ge(mn,ln)),Gt(mn[it])})}return Gt(be),Et}function Nt(be,ge,it,Et){return typeof be=="string"?be:typeof be=="function"?be(ge,it,Et):""}function De(be,ge,it,Et,Gt){var nn=be.record,mn=be.prefixCls,ln=be.columnsKey,_n=be.fixedInfoList,xn=be.expandIconColumnIndex,Qn=be.nestExpandable,Nn=be.indentSize,Mn=be.expandIcon,U=be.expanded,c=be.hasNestChildren,f=be.onTriggerExpand,h=ln[it],b=_n[it],B;it===(xn||0)&&Qn&&(B=i.createElement(i.Fragment,null,i.createElement("span",{style:{paddingLeft:"".concat(Nn*Et,"px")},className:"".concat(mn,"-row-indent indent-level-").concat(Et)}),Mn({prefixCls:mn,expanded:U,expandable:c,record:nn,onExpand:f})));var q;return ge.onCell&&(q=ge.onCell(nn,Gt)),{key:h,fixedInfo:b,appendCellNode:B,additionalCellProps:q||{}}}function gt(be){var ge=be.className,it=be.style,Et=be.record,Gt=be.index,nn=be.renderIndex,mn=be.rowKey,ln=be.indent,_n=ln===void 0?0:ln,xn=be.rowComponent,Qn=be.cellComponent,Nn=be.scopeCellComponent,Mn=_t(Et,mn,Gt,_n),U=Mn.prefixCls,c=Mn.flattenColumns,f=Mn.expandedRowClassName,h=Mn.expandedRowRender,b=Mn.rowProps,B=Mn.expanded,q=Mn.rowSupportExpand,Me=i.useRef(!1);Me.current||(Me.current=B);var et=Nt(f,Et,Gt,_n),yt=i.createElement(xn,(0,N.Z)({},b,{"data-row-key":mn,className:k()(ge,"".concat(U,"-row"),"".concat(U,"-row-level-").concat(_n),b==null?void 0:b.className,(0,We.Z)({},et,_n>=1)),style:(0,ke.Z)((0,ke.Z)({},it),b==null?void 0:b.style)}),c.map(function(Sn,kn){var Kn=Sn.render,jn=Sn.dataIndex,ar=Sn.className,qn=De(Mn,Sn,kn,_n,Gt),rr=qn.key,dr=qn.fixedInfo,Tr=qn.appendCellNode,Or=qn.additionalCellProps;return i.createElement(cn,(0,N.Z)({className:ar,ellipsis:Sn.ellipsis,align:Sn.align,scope:Sn.rowScope,component:Sn.rowScope?Nn:Qn,prefixCls:U,key:rr,record:Et,index:Gt,renderIndex:nn,dataIndex:jn,render:Kn,shouldCellUpdate:Sn.shouldCellUpdate},dr,{appendNode:Tr,additionalProps:Or}))})),Xt;if(q&&(Me.current||B)){var fn=h(Et,Gt,_n+1,B);Xt=i.createElement(kt,{expanded:B,className:k()("".concat(U,"-expanded-row"),"".concat(U,"-expanded-row-level-").concat(_n+1),et),prefixCls:U,component:xn,cellComponent:Qn,colSpan:c.length,isEmpty:!1},fn)}return i.createElement(i.Fragment,null,yt,Xt)}var E=Q(gt);function S(be){var ge=be.columnKey,it=be.onColumnResize,Et=i.useRef();return(0,g.Z)(function(){Et.current&&it(ge,Et.current.offsetWidth)},[]),i.createElement(ze.Z,{data:ge},i.createElement("td",{ref:Et,style:{padding:0,border:0,height:0}},i.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var je=u(29194);function G(be){var ge=be.prefixCls,it=be.columnsKey,Et=be.onColumnResize,Gt=i.useRef(null);return i.createElement("tr",{"aria-hidden":"true",className:"".concat(ge,"-measure-row"),style:{height:0,fontSize:0},ref:Gt},i.createElement(ze.Z.Collection,{onBatchResize:function(mn){(0,je.Z)(Gt.current)&&mn.forEach(function(ln){var _n=ln.data,xn=ln.size;Et(_n,xn.offsetWidth)})}},it.map(function(nn){return i.createElement(S,{key:nn,columnKey:nn,onColumnResize:Et})})))}function Ce(be){var ge=be.data,it=be.measureColumnWidth,Et=x(ue,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Gt=Et.prefixCls,nn=Et.getComponent,mn=Et.onColumnResize,ln=Et.flattenColumns,_n=Et.getRowKey,xn=Et.expandedKeys,Qn=Et.childrenColumnName,Nn=Et.emptyNode,Mn=Ot(ge,Qn,xn,_n),U=i.useRef({renderWithProps:!1}),c=nn(["body","wrapper"],"tbody"),f=nn(["body","row"],"tr"),h=nn(["body","cell"],"td"),b=nn(["body","cell"],"th"),B;ge.length?B=Mn.map(function(Me,et){var yt=Me.record,Xt=Me.indent,fn=Me.index,Sn=_n(yt,et);return i.createElement(E,{key:Sn,rowKey:Sn,record:yt,index:et,renderIndex:fn,rowComponent:f,cellComponent:h,scopeCellComponent:b,indent:Xt})}):B=i.createElement(kt,{expanded:!0,className:"".concat(Gt,"-placeholder"),prefixCls:Gt,component:f,cellComponent:h,colSpan:ln.length,isEmpty:!0},Nn);var q=Oe(ln);return i.createElement(w.Provider,{value:U.current},i.createElement(c,{className:"".concat(Gt,"-tbody")},it&&i.createElement(G,{prefixCls:Gt,columnsKey:q,onColumnResize:mn}),B))}var en=Q(Ce),rt=["expandable"],st="RC_TABLE_INTERNAL_COL_DEFINE";function xt(be){var ge=be.expandable,it=(0,le.Z)(be,rt),Et;return"expandable"in be?Et=(0,ke.Z)((0,ke.Z)({},it),ge):Et=it,Et.showExpandColumn===!1&&(Et.expandIconColumnIndex=-1),Et}var pe=["columnType"];function Ee(be){for(var ge=be.colWidths,it=be.columns,Et=be.columCount,Gt=x(ue,["tableLayout"]),nn=Gt.tableLayout,mn=[],ln=Et||it.length,_n=!1,xn=ln-1;xn>=0;xn-=1){var Qn=ge[xn],Nn=it&&it[xn],Mn=void 0,U=void 0;if(Nn&&(Mn=Nn[st],nn==="auto"&&(U=Nn.minWidth)),Qn||U||Mn||_n){var c=Mn||{},f=c.columnType,h=(0,le.Z)(c,pe);mn.unshift(i.createElement("col",(0,N.Z)({key:xn,style:{width:Qn,minWidth:U}},h))),_n=!0}}return i.createElement("colgroup",null,mn)}var nt=Ee,Ze=u(77654),z=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function St(be,ge){return(0,i.useMemo)(function(){for(var it=[],Et=0;Et<ge;Et+=1){var Gt=be[Et];if(Gt!==void 0)it[Et]=Gt;else return null}return it},[be.join("_"),ge])}var fe=i.forwardRef(function(be,ge){var it=be.className,Et=be.noData,Gt=be.columns,nn=be.flattenColumns,mn=be.colWidths,ln=be.columCount,_n=be.stickyOffsets,xn=be.direction,Qn=be.fixHeader,Nn=be.stickyTopOffset,Mn=be.stickyBottomOffset,U=be.stickyClassName,c=be.onScroll,f=be.maxContentScroll,h=be.children,b=(0,le.Z)(be,z),B=x(ue,["prefixCls","scrollbarSize","isSticky","getComponent"]),q=B.prefixCls,Me=B.scrollbarSize,et=B.isSticky,yt=B.getComponent,Xt=yt(["header","table"],"table"),fn=et&&!Qn?0:Me,Sn=i.useRef(null),kn=i.useCallback(function(Or){(0,y.mH)(ge,Or),(0,y.mH)(Sn,Or)},[]);i.useEffect(function(){var Or;function hr(Gr){var qr=Gr,Ri=qr.currentTarget,bi=qr.deltaX;bi&&(c({currentTarget:Ri,scrollLeft:Ri.scrollLeft+bi}),Gr.preventDefault())}return(Or=Sn.current)===null||Or===void 0||Or.addEventListener("wheel",hr,{passive:!1}),function(){var Gr;(Gr=Sn.current)===null||Gr===void 0||Gr.removeEventListener("wheel",hr)}},[]);var Kn=i.useMemo(function(){return nn.every(function(Or){return Or.width})},[nn]),jn=nn[nn.length-1],ar={fixed:jn?jn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(q,"-cell-scrollbar")}}},qn=(0,i.useMemo)(function(){return fn?[].concat((0,Ze.Z)(Gt),[ar]):Gt},[fn,Gt]),rr=(0,i.useMemo)(function(){return fn?[].concat((0,Ze.Z)(nn),[ar]):nn},[fn,nn]),dr=(0,i.useMemo)(function(){var Or=_n.right,hr=_n.left;return(0,ke.Z)((0,ke.Z)({},_n),{},{left:xn==="rtl"?[].concat((0,Ze.Z)(hr.map(function(Gr){return Gr+fn})),[0]):hr,right:xn==="rtl"?Or:[].concat((0,Ze.Z)(Or.map(function(Gr){return Gr+fn})),[0]),isSticky:et})},[fn,_n,et]),Tr=St(mn,ln);return i.createElement("div",{style:(0,ke.Z)({overflow:"hidden"},et?{top:Nn,bottom:Mn}:{}),ref:kn,className:k()(it,(0,We.Z)({},U,!!U))},i.createElement(Xt,{style:{tableLayout:"fixed",visibility:Et||Tr?null:"hidden"}},(!Et||!f||Kn)&&i.createElement(nt,{colWidths:Tr?[].concat((0,Ze.Z)(Tr),[fn]):[],columCount:ln+1,columns:rr}),h((0,ke.Z)((0,ke.Z)({},b),{},{stickyOffsets:dr,columns:qn,flattenColumns:rr}))))}),Kt=i.memo(fe),dn=function(ge){var it=ge.cells,Et=ge.stickyOffsets,Gt=ge.flattenColumns,nn=ge.rowComponent,mn=ge.cellComponent,ln=ge.onHeaderRow,_n=ge.index,xn=x(ue,["prefixCls","direction"]),Qn=xn.prefixCls,Nn=xn.direction,Mn;ln&&(Mn=ln(it.map(function(c){return c.column}),_n));var U=Oe(it.map(function(c){return c.column}));return i.createElement(nn,Mn,it.map(function(c,f){var h=c.column,b=vt(c.colStart,c.colEnd,Gt,Et,Nn),B;return h&&h.onHeaderCell&&(B=c.column.onHeaderCell(h)),i.createElement(cn,(0,N.Z)({},c,{scope:h.title?c.colSpan>1?"colgroup":"col":null,ellipsis:h.ellipsis,align:h.align,component:mn,prefixCls:Qn,key:U[f]},b,{additionalProps:B,rowType:"header"}))}))},Bt=dn;function J(be){var ge=[];function it(mn,ln){var _n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ge[_n]=ge[_n]||[];var xn=ln,Qn=mn.filter(Boolean).map(function(Nn){var Mn={key:Nn.key,className:Nn.className||"",children:Nn.title,column:Nn,colStart:xn},U=1,c=Nn.children;return c&&c.length>0&&(U=it(c,xn,_n+1).reduce(function(f,h){return f+h},0),Mn.hasSubColumns=!0),"colSpan"in Nn&&(U=Nn.colSpan),"rowSpan"in Nn&&(Mn.rowSpan=Nn.rowSpan),Mn.colSpan=U,Mn.colEnd=Mn.colStart+U-1,ge[_n].push(Mn),xn+=U,U});return Qn}it(be,0);for(var Et=ge.length,Gt=function(ln){ge[ln].forEach(function(_n){!("rowSpan"in _n)&&!_n.hasSubColumns&&(_n.rowSpan=Et-ln)})},nn=0;nn<Et;nn+=1)Gt(nn);return ge}var we=function(ge){var it=ge.stickyOffsets,Et=ge.columns,Gt=ge.flattenColumns,nn=ge.onHeaderRow,mn=x(ue,["prefixCls","getComponent"]),ln=mn.prefixCls,_n=mn.getComponent,xn=i.useMemo(function(){return J(Et)},[Et]),Qn=_n(["header","wrapper"],"thead"),Nn=_n(["header","row"],"tr"),Mn=_n(["header","cell"],"th");return i.createElement(Qn,{className:"".concat(ln,"-thead")},xn.map(function(U,c){var f=i.createElement(Bt,{key:c,flattenColumns:Gt,cells:U,stickyOffsets:it,rowComponent:Nn,cellComponent:Mn,onHeaderRow:nn,index:c});return f}))},M=Q(we),Ct=u(11592);function ot(be){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ge=="number"?ge:ge.endsWith("%")?be*parseFloat(ge)/100:null}function dt(be,ge,it){return i.useMemo(function(){if(ge&&ge>0){var Et=0,Gt=0;be.forEach(function(Mn){var U=ot(ge,Mn.width);U?Et+=U:Gt+=1});var nn=Math.max(ge,it),mn=Math.max(nn-Et,Gt),ln=Gt,_n=mn/Gt,xn=0,Qn=be.map(function(Mn){var U=(0,ke.Z)({},Mn),c=ot(ge,U.width);if(c)U.width=c;else{var f=Math.floor(_n);U.width=ln===1?mn:f,mn-=f,ln-=1}return xn+=U.width,U});if(xn<nn){var Nn=nn/xn;mn=nn,Qn.forEach(function(Mn,U){var c=Math.floor(Mn.width*Nn);Mn.width=U===Qn.length-1?mn:c,mn-=c})}return[Qn,Math.max(xn,nn)]}return[be,ge]},[be,ge,it])}var $t=["children"],Ft=["fixed"];function Mt(be){return(0,Ct.Z)(be).filter(function(ge){return i.isValidElement(ge)}).map(function(ge){var it=ge.key,Et=ge.props,Gt=Et.children,nn=(0,le.Z)(Et,$t),mn=(0,ke.Z)({key:it},nn);return Gt&&(mn.children=Mt(Gt)),mn})}function ie(be){return be.filter(function(ge){return ge&&(0,Je.Z)(ge)==="object"&&!ge.hidden}).map(function(ge){var it=ge.children;return it&&it.length>0?(0,ke.Z)((0,ke.Z)({},ge),{},{children:ie(it)}):ge})}function ve(be){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return be.filter(function(it){return it&&(0,Je.Z)(it)==="object"}).reduce(function(it,Et,Gt){var nn=Et.fixed,mn=nn===!0?"left":nn,ln="".concat(ge,"-").concat(Gt),_n=Et.children;return _n&&_n.length>0?[].concat((0,Ze.Z)(it),(0,Ze.Z)(ve(_n,ln).map(function(xn){return(0,ke.Z)({fixed:mn},xn)}))):[].concat((0,Ze.Z)(it),[(0,ke.Z)((0,ke.Z)({key:ln},Et),{},{fixed:mn})])},[])}function At(be){return be.map(function(ge){var it=ge.fixed,Et=(0,le.Z)(ge,Ft),Gt=it;return it==="left"?Gt="right":it==="right"&&(Gt="left"),(0,ke.Z)({fixed:Gt},Et)})}function Be(be,ge){var it=be.prefixCls,Et=be.columns,Gt=be.children,nn=be.expandable,mn=be.expandedKeys,ln=be.columnTitle,_n=be.getRowKey,xn=be.onTriggerExpand,Qn=be.expandIcon,Nn=be.rowExpandable,Mn=be.expandIconColumnIndex,U=be.direction,c=be.expandRowByClick,f=be.columnWidth,h=be.fixed,b=be.scrollWidth,B=be.clientWidth,q=i.useMemo(function(){var jn=Et||Mt(Gt)||[];return ie(jn.slice())},[Et,Gt]),Me=i.useMemo(function(){if(nn){var jn=q.slice();if(!jn.includes(K)){var ar=Mn||0;ar>=0&&(ar||h==="left"||!h)&&jn.splice(ar,0,K),h==="right"&&jn.splice(q.length,0,K)}var qn=jn.indexOf(K);jn=jn.filter(function(Or,hr){return Or!==K||hr===qn});var rr=q[qn],dr;h?dr=h:dr=rr?rr.fixed:null;var Tr=(0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)({},st,{className:"".concat(it,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",ln),"fixed",dr),"className","".concat(it,"-row-expand-icon-cell")),"width",f),"render",function(hr,Gr,qr){var Ri=_n(Gr,qr),bi=mn.has(Ri),hn=Nn?Nn(Gr):!0,Li=Qn({prefixCls:it,expanded:bi,expandable:hn,record:Gr,onExpand:xn});return c?i.createElement("span",{onClick:function(vi){return vi.stopPropagation()}},Li):Li});return jn.map(function(Or){return Or===K?Tr:Or})}return q.filter(function(Or){return Or!==K})},[nn,q,_n,mn,Qn,U]),et=i.useMemo(function(){var jn=Me;return ge&&(jn=ge(jn)),jn.length||(jn=[{render:function(){return null}}]),jn},[ge,Me,U]),yt=i.useMemo(function(){return U==="rtl"?At(ve(et)):ve(et)},[et,U,b]),Xt=i.useMemo(function(){for(var jn=-1,ar=yt.length-1;ar>=0;ar-=1){var qn=yt[ar].fixed;if(qn==="left"||qn===!0){jn=ar;break}}if(jn>=0)for(var rr=0;rr<=jn;rr+=1){var dr=yt[rr].fixed;if(dr!=="left"&&dr!==!0)return!0}var Tr=yt.findIndex(function(Gr){var qr=Gr.fixed;return qr==="right"});if(Tr>=0)for(var Or=Tr;Or<yt.length;Or+=1){var hr=yt[Or].fixed;if(hr!=="right")return!0}return!1},[yt]),fn=dt(yt,b,B),Sn=(0,he.Z)(fn,2),kn=Sn[0],Kn=Sn[1];return[et,kn,Kn,Xt]}var Le=Be;function ae(be,ge,it){var Et=xt(be),Gt=Et.expandIcon,nn=Et.expandedRowKeys,mn=Et.defaultExpandedRowKeys,ln=Et.defaultExpandAllRows,_n=Et.expandedRowRender,xn=Et.onExpand,Qn=Et.onExpandedRowsChange,Nn=Et.childrenColumnName,Mn=Gt||mt,U=Nn||"children",c=i.useMemo(function(){return _n?"row":be.expandable&&be.internalHooks===L&&be.expandable.__PARENT_RENDER_ICON__||ge.some(function(et){return et&&(0,Je.Z)(et)==="object"&&et[U]})?"nest":!1},[!!_n,ge]),f=i.useState(function(){return mn||(ln?Vt(ge,it,U):[])}),h=(0,he.Z)(f,2),b=h[0],B=h[1],q=i.useMemo(function(){return new Set(nn||b||[])},[nn,b]),Me=i.useCallback(function(et){var yt=it(et,ge.indexOf(et)),Xt,fn=q.has(yt);fn?(q.delete(yt),Xt=(0,Ze.Z)(q)):Xt=[].concat((0,Ze.Z)(q),[yt]),B(Xt),xn&&xn(!fn,et),Qn&&Qn(Xt)},[it,q,ge,xn,Qn]);return[Et,c,q,Mn,U,Me]}function Re(be,ge,it){var Et=be.map(function(Gt,nn){return vt(nn,nn,be,ge,it)});return(0,_.Z)(function(){return Et},[Et],function(Gt,nn){return!(0,W.Z)(Gt,nn)})}function $e(be){var ge=(0,i.useRef)(be),it=(0,i.useState)({}),Et=(0,he.Z)(it,2),Gt=Et[1],nn=(0,i.useRef)(null),mn=(0,i.useRef)([]);function ln(_n){mn.current.push(_n);var xn=Promise.resolve();nn.current=xn,xn.then(function(){if(nn.current===xn){var Qn=mn.current,Nn=ge.current;mn.current=[],Qn.forEach(function(Mn){ge.current=Mn(ge.current)}),nn.current=null,Nn!==ge.current&&Gt({})}})}return(0,i.useEffect)(function(){return function(){nn.current=null}},[]),[ge.current,ln]}function He(be){var ge=(0,i.useRef)(be||null),it=(0,i.useRef)();function Et(){window.clearTimeout(it.current)}function Gt(mn){ge.current=mn,Et(),it.current=window.setTimeout(function(){ge.current=null,it.current=void 0},100)}function nn(){return ge.current}return(0,i.useEffect)(function(){return Et},[]),[Gt,nn]}function ut(){var be=i.useState(-1),ge=(0,he.Z)(be,2),it=ge[0],Et=ge[1],Gt=i.useState(-1),nn=(0,he.Z)(Gt,2),mn=nn[0],ln=nn[1],_n=i.useCallback(function(xn,Qn){Et(xn),ln(Qn)},[]);return[it,mn,_n]}var rn=u(47273),on=(0,rn.Z)()?window:null;function Ve(be,ge){var it=(0,Je.Z)(be)==="object"?be:{},Et=it.offsetHeader,Gt=Et===void 0?0:Et,nn=it.offsetSummary,mn=nn===void 0?0:nn,ln=it.offsetScroll,_n=ln===void 0?0:ln,xn=it.getContainer,Qn=xn===void 0?function(){return on}:xn,Nn=Qn()||on,Mn=!!be;return i.useMemo(function(){return{isSticky:Mn,stickyClassName:Mn?"".concat(ge,"-sticky-holder"):"",offsetHeader:Gt,offsetSummary:mn,offsetScroll:_n,container:Nn}},[Mn,_n,Gt,mn,ge,Nn])}function lt(be,ge,it){var Et=(0,i.useMemo)(function(){var Gt=ge.length,nn=function(xn,Qn,Nn){for(var Mn=[],U=0,c=xn;c!==Qn;c+=Nn)Mn.push(U),ge[c].fixed&&(U+=be[c]||0);return Mn},mn=nn(0,Gt,1),ln=nn(Gt-1,-1,-1).reverse();return it==="rtl"?{left:ln,right:mn}:{left:mn,right:ln}},[be,ge,it]);return Et}var wt=lt;function Qt(be){var ge=be.className,it=be.children;return i.createElement("div",{className:ge},it)}var Yt=Qt,ye=u(8224),at=u(16089),Lt=u(76846);function Dt(be){var ge=(0,Lt.bn)(be),it=ge.getBoundingClientRect(),Et=document.documentElement;return{left:it.left+(window.pageXOffset||Et.scrollLeft)-(Et.clientLeft||document.body.clientLeft||0),top:it.top+(window.pageYOffset||Et.scrollTop)-(Et.clientTop||document.body.clientTop||0)}}var zt=function(ge,it){var Et,Gt,nn=ge.scrollBodyRef,mn=ge.onScroll,ln=ge.offsetScroll,_n=ge.container,xn=ge.direction,Qn=x(ue,"prefixCls"),Nn=((Et=nn.current)===null||Et===void 0?void 0:Et.scrollWidth)||0,Mn=((Gt=nn.current)===null||Gt===void 0?void 0:Gt.clientWidth)||0,U=Nn&&Mn*(Mn/Nn),c=i.useRef(),f=$e({scrollLeft:0,isHiddenScrollBar:!0}),h=(0,he.Z)(f,2),b=h[0],B=h[1],q=i.useRef({delta:0,x:0}),Me=i.useState(!1),et=(0,he.Z)(Me,2),yt=et[0],Xt=et[1],fn=i.useRef(null);i.useEffect(function(){return function(){at.Z.cancel(fn.current)}},[]);var Sn=function(){Xt(!1)},kn=function(rr){rr.persist(),q.current.delta=rr.pageX-b.scrollLeft,q.current.x=0,Xt(!0),rr.preventDefault()},Kn=function(rr){var dr,Tr=rr||((dr=window)===null||dr===void 0?void 0:dr.event),Or=Tr.buttons;if(!yt||Or===0){yt&&Xt(!1);return}var hr=q.current.x+rr.pageX-q.current.x-q.current.delta,Gr=xn==="rtl";hr=Math.max(Gr?U-Mn:0,Math.min(Gr?0:Mn-U,hr));var qr=!Gr||Math.abs(hr)+Math.abs(U)<Mn;qr&&(mn({scrollLeft:hr/Mn*(Nn+2)}),q.current.x=rr.pageX)},jn=function(){at.Z.cancel(fn.current),fn.current=(0,at.Z)(function(){if(nn.current){var rr=Dt(nn.current).top,dr=rr+nn.current.offsetHeight,Tr=_n===window?document.documentElement.scrollTop+window.innerHeight:Dt(_n).top+_n.clientHeight;dr-(0,ft.Z)()<=Tr||rr>=Tr-ln?B(function(Or){return(0,ke.Z)((0,ke.Z)({},Or),{},{isHiddenScrollBar:!0})}):B(function(Or){return(0,ke.Z)((0,ke.Z)({},Or),{},{isHiddenScrollBar:!1})})}})},ar=function(rr){B(function(dr){return(0,ke.Z)((0,ke.Z)({},dr),{},{scrollLeft:rr/Nn*Mn||0})})};return i.useImperativeHandle(it,function(){return{setScrollLeft:ar,checkScrollBarVisible:jn}}),i.useEffect(function(){var qn=(0,ye.Z)(document.body,"mouseup",Sn,!1),rr=(0,ye.Z)(document.body,"mousemove",Kn,!1);return jn(),function(){qn.remove(),rr.remove()}},[U,yt]),i.useEffect(function(){if(nn.current){for(var qn=[],rr=(0,Lt.bn)(nn.current);rr;)qn.push(rr),rr=rr.parentElement;return qn.forEach(function(dr){return dr.addEventListener("scroll",jn,!1)}),window.addEventListener("resize",jn,!1),window.addEventListener("scroll",jn,!1),_n.addEventListener("scroll",jn,!1),function(){qn.forEach(function(dr){return dr.removeEventListener("scroll",jn)}),window.removeEventListener("resize",jn),window.removeEventListener("scroll",jn),_n.removeEventListener("scroll",jn)}}},[_n]),i.useEffect(function(){b.isHiddenScrollBar||B(function(qn){var rr=nn.current;return rr?(0,ke.Z)((0,ke.Z)({},qn),{},{scrollLeft:rr.scrollLeft/rr.scrollWidth*rr.clientWidth}):qn})},[b.isHiddenScrollBar]),Nn<=Mn||!U||b.isHiddenScrollBar?null:i.createElement("div",{style:{height:(0,ft.Z)(),width:Mn,bottom:ln},className:"".concat(Qn,"-sticky-scroll")},i.createElement("div",{onMouseDown:kn,ref:c,className:k()("".concat(Qn,"-sticky-scroll-bar"),(0,We.Z)({},"".concat(Qn,"-sticky-scroll-bar-active"),yt)),style:{width:"".concat(U,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))},an=i.forwardRef(zt);function un(be){return null}var sn=un;function vn(be){return null}var En=vn,Rn="rc-table",bn=[],Cn={};function Bn(){return"No Data"}function Pn(be,ge){var it=(0,ke.Z)({rowKey:"key",prefixCls:Rn,emptyText:Bn},be),Et=it.prefixCls,Gt=it.className,nn=it.rowClassName,mn=it.style,ln=it.data,_n=it.rowKey,xn=it.scroll,Qn=it.tableLayout,Nn=it.direction,Mn=it.title,U=it.footer,c=it.summary,f=it.caption,h=it.id,b=it.showHeader,B=it.components,q=it.emptyText,Me=it.onRow,et=it.onHeaderRow,yt=it.onScroll,Xt=it.internalHooks,fn=it.transformColumns,Sn=it.internalRefs,kn=it.tailor,Kn=it.getContainerWidth,jn=it.sticky,ar=it.rowHoverable,qn=ar===void 0?!0:ar,rr=ln||bn,dr=!!rr.length,Tr=Xt===L,Or=i.useCallback(function(Pi,ji){return(0,ee.Z)(B,Pi)||ji},[B]),hr=i.useMemo(function(){return typeof _n=="function"?_n:function(Pi){var ji=Pi&&Pi[_n];return ji}},[_n]),Gr=Or(["body"]),qr=ut(),Ri=(0,he.Z)(qr,3),bi=Ri[0],hn=Ri[1],Li=Ri[2],ya=ae(it,rr,hr),vi=(0,he.Z)(ya,6),li=vi[0],ca=vi[1],da=vi[2],Xr=vi[3],gi=vi[4],zr=vi[5],Yr=xn==null?void 0:xn.x,Si=i.useState(0),Ii=(0,he.Z)(Si,2),ea=Ii[0],Qi=Ii[1],sa=Le((0,ke.Z)((0,ke.Z)((0,ke.Z)({},it),li),{},{expandable:!!li.expandedRowRender,columnTitle:li.columnTitle,expandedKeys:da,getRowKey:hr,onTriggerExpand:zr,expandIcon:Xr,expandIconColumnIndex:li.expandIconColumnIndex,direction:Nn,scrollWidth:Tr&&kn&&typeof Yr=="number"?Yr:null,clientWidth:ea}),Tr?fn:null),ka=(0,he.Z)(sa,4),Qr=ka[0],ii=ka[1],Bi=ka[2],ta=ka[3],Fi=Bi!=null?Bi:Yr,Ha=i.useMemo(function(){return{columns:Qr,flattenColumns:ii}},[Qr,ii]),ga=i.useRef(),os=i.useRef(),ba=i.useRef(),Ji=i.useRef();i.useImperativeHandle(ge,function(){return{nativeElement:ga.current,scrollTo:function(ji){var Ba;if(ba.current instanceof HTMLElement){var ls=ji.index,Fa=ji.top,Oo=ji.key;if(Tt(Fa)){var ho;(ho=ba.current)===null||ho===void 0||ho.scrollTo({top:Fa})}else{var io,yo=Oo!=null?Oo:hr(rr[ls]);(io=ba.current.querySelector('[data-row-key="'.concat(yo,'"]')))===null||io===void 0||io.scrollIntoView()}}else(Ba=ba.current)!==null&&Ba!==void 0&&Ba.scrollTo&&ba.current.scrollTo(ji)}}});var fa=i.useRef(),oa=i.useState(!1),Na=(0,he.Z)(oa,2),Ra=Na[0],Gi=Na[1],Ca=i.useState(!1),la=(0,he.Z)(Ca,2),Va=la[0],wa=la[1],Ja=i.useState(new Map),xs=(0,he.Z)(Ja,2),fo=xs[0],_a=xs[1],Do=Oe(ii),qa=Do.map(function(Pi){return fo.get(Pi)}),ms=i.useMemo(function(){return qa},[qa.join("_")]),ps=wt(ms,ii,Nn),is=xn&&ct(xn.y),es=xn&&ct(Fi)||!!li.fixed,Es=es&&ii.some(function(Pi){var ji=Pi.fixed;return ji}),ks=i.useRef(),Ss=Ve(jn,Et),Us=Ss.isSticky,ts=Ss.offsetHeader,Al=Ss.offsetSummary,cl=Ss.offsetScroll,gs=Ss.stickyClassName,dl=Ss.container,xi=i.useMemo(function(){return c==null?void 0:c(rr)},[c,rr]),qi=(is||Us)&&i.isValidElement(xi)&&xi.type===P&&xi.props.fixed,ha,Oa,ns;is&&(Oa={overflowY:dr?"scroll":"auto",maxHeight:xn.y}),es&&(ha={overflowX:"auto"},is||(Oa={overflowY:"hidden"}),ns={width:Fi===!0?"auto":Fi,minWidth:"100%"});var _s=i.useCallback(function(Pi,ji){_a(function(Ba){if(Ba.get(Pi)!==ji){var ls=new Map(Ba);return ls.set(Pi,ji),ls}return Ba})},[]),Ts=He(null),Ga=(0,he.Z)(Ts,2),Ql=Ga[0],Il=Ga[1];function Yo(Pi,ji){ji&&(typeof ji=="function"?ji(Pi):ji.scrollLeft!==Pi&&(ji.scrollLeft=Pi,ji.scrollLeft!==Pi&&setTimeout(function(){ji.scrollLeft=Pi},0)))}var vo=(0,Z.Z)(function(Pi){var ji=Pi.currentTarget,Ba=Pi.scrollLeft,ls=Nn==="rtl",Fa=typeof Ba=="number"?Ba:ji.scrollLeft,Oo=ji||Cn;if(!Il()||Il()===Oo){var ho;Ql(Oo),Yo(Fa,os.current),Yo(Fa,ba.current),Yo(Fa,fa.current),Yo(Fa,(ho=ks.current)===null||ho===void 0?void 0:ho.setScrollLeft)}var io=ji||os.current;if(io){var yo=Tr&&kn&&typeof Fi=="number"?Fi:io.scrollWidth,Lo=io.clientWidth;if(yo===Lo){Gi(!1),wa(!1);return}ls?(Gi(-Fa<yo-Lo),wa(-Fa>0)):(Gi(Fa>0),wa(Fa<yo-Lo))}}),Dl=(0,Z.Z)(function(Pi){vo(Pi),yt==null||yt(Pi)}),Rl=function(){if(es&&ba.current){var ji;vo({currentTarget:(0,Lt.bn)(ba.current),scrollLeft:(ji=ba.current)===null||ji===void 0?void 0:ji.scrollLeft})}else Gi(!1),wa(!1)},Ol=function(ji){var Ba,ls=ji.width;(Ba=ks.current)===null||Ba===void 0||Ba.checkScrollBarVisible();var Fa=ga.current?ga.current.offsetWidth:ls;Tr&&Kn&&ga.current&&(Fa=Kn(ga.current,Fa)||Fa),Fa!==ea&&(Rl(),Qi(Fa))},Ll=i.useRef(!1);i.useEffect(function(){Ll.current&&Rl()},[es,ln,Qr.length]),i.useEffect(function(){Ll.current=!0},[]);var Jl=i.useState(0),Pl=(0,he.Z)(Jl,2),Xo=Pl[0],Ml=Pl[1],ql=i.useState(!0),kl=(0,he.Z)(ql,2),fl=kl[0],hl=kl[1];(0,g.Z)(function(){(!kn||!Tr)&&(ba.current instanceof Element?Ml((0,ft.o)(ba.current).width):Ml((0,ft.o)(Ji.current).width)),hl((0,Ue.G)("position","sticky"))},[]),i.useEffect(function(){Tr&&Sn&&(Sn.body.current=ba.current)});var eu=i.useCallback(function(Pi){return i.createElement(i.Fragment,null,i.createElement(M,Pi),qi==="top"&&i.createElement(Ie,Pi,xi))},[qi,xi]),ml=i.useCallback(function(Pi){return i.createElement(Ie,Pi,xi)},[xi]),Qo=Or(["table"],"table"),Ro=i.useMemo(function(){return Qn||(Es?Fi==="max-content"?"auto":"fixed":is||Us||ii.some(function(Pi){var ji=Pi.ellipsis;return ji})?"fixed":"auto")},[is,Es,ii,Qn,Us]),pl,gl={colWidths:ms,columCount:ii.length,stickyOffsets:ps,onHeaderRow:et,fixHeader:is,scroll:xn},vl=i.useMemo(function(){return dr?null:typeof q=="function"?q():q},[dr,q]),As=i.createElement(en,{data:rr,measureColumnWidth:is||es||Us}),Ia=i.createElement(nt,{colWidths:ii.map(function(Pi){var ji=Pi.width;return ji}),columns:ii}),no=f!=null?i.createElement("caption",{className:"".concat(Et,"-caption")},f):void 0,ro=(0,de.Z)(it,{data:!0}),Nl=(0,de.Z)(it,{aria:!0});if(is||Us){var yl;typeof Gr=="function"?(yl=Gr(rr,{scrollbarSize:Xo,ref:ba,onScroll:vo}),gl.colWidths=ii.map(function(Pi,ji){var Ba=Pi.width,ls=ji===ii.length-1?Ba-Xo:Ba;return typeof ls=="number"&&!Number.isNaN(ls)?ls:0})):yl=i.createElement("div",{style:(0,ke.Z)((0,ke.Z)({},ha),Oa),onScroll:Dl,ref:ba,className:k()("".concat(Et,"-body"))},i.createElement(Qo,(0,N.Z)({style:(0,ke.Z)((0,ke.Z)({},ns),{},{tableLayout:Ro})},Nl),no,Ia,As,!qi&&xi&&i.createElement(Ie,{stickyOffsets:ps,flattenColumns:ii},xi)));var Bl=(0,ke.Z)((0,ke.Z)((0,ke.Z)({noData:!rr.length,maxContentScroll:es&&Fi==="max-content"},gl),Ha),{},{direction:Nn,stickyClassName:gs,onScroll:vo});pl=i.createElement(i.Fragment,null,b!==!1&&i.createElement(Kt,(0,N.Z)({},Bl,{stickyTopOffset:ts,className:"".concat(Et,"-header"),ref:os}),eu),yl,qi&&qi!=="top"&&i.createElement(Kt,(0,N.Z)({},Bl,{stickyBottomOffset:Al,className:"".concat(Et,"-summary"),ref:fa}),ml),Us&&ba.current&&ba.current instanceof Element&&i.createElement(an,{ref:ks,offsetScroll:cl,scrollBodyRef:ba,onScroll:vo,container:dl,direction:Nn}))}else pl=i.createElement("div",{style:(0,ke.Z)((0,ke.Z)({},ha),Oa),className:k()("".concat(Et,"-content")),onScroll:vo,ref:ba},i.createElement(Qo,(0,N.Z)({style:(0,ke.Z)((0,ke.Z)({},ns),{},{tableLayout:Ro})},Nl),no,Ia,b!==!1&&i.createElement(M,(0,N.Z)({},gl,Ha)),As,xi&&i.createElement(Ie,{stickyOffsets:ps,flattenColumns:ii},xi)));var bl=i.createElement("div",(0,N.Z)({className:k()(Et,Gt,(0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)({},"".concat(Et,"-rtl"),Nn==="rtl"),"".concat(Et,"-ping-left"),Ra),"".concat(Et,"-ping-right"),Va),"".concat(Et,"-layout-fixed"),Qn==="fixed"),"".concat(Et,"-fixed-header"),is),"".concat(Et,"-fixed-column"),Es),"".concat(Et,"-fixed-column-gapped"),Es&&ta),"".concat(Et,"-scroll-horizontal"),es),"".concat(Et,"-has-fix-left"),ii[0]&&ii[0].fixed),"".concat(Et,"-has-fix-right"),ii[ii.length-1]&&ii[ii.length-1].fixed==="right")),style:mn,id:h,ref:ga},ro),Mn&&i.createElement(Yt,{className:"".concat(Et,"-title")},Mn(rr)),i.createElement("div",{ref:Ji,className:"".concat(Et,"-container")},pl),U&&i.createElement(Yt,{className:"".concat(Et,"-footer")},U(rr)));es&&(bl=i.createElement(ze.Z,{onResize:Ol},bl));var Fl=Re(ii,ps,Nn),tu=i.useMemo(function(){return{scrollX:Fi,prefixCls:Et,getComponent:Or,scrollbarSize:Xo,direction:Nn,fixedInfoList:Fl,isSticky:Us,supportSticky:fl,componentWidth:ea,fixHeader:is,fixColumn:Es,horizonScroll:es,tableLayout:Ro,rowClassName:nn,expandedRowClassName:li.expandedRowClassName,expandIcon:Xr,expandableType:ca,expandRowByClick:li.expandRowByClick,expandedRowRender:li.expandedRowRender,onTriggerExpand:zr,expandIconColumnIndex:li.expandIconColumnIndex,indentSize:li.indentSize,allColumnsFixedLeft:ii.every(function(Pi){return Pi.fixed==="left"}),emptyNode:vl,columns:Qr,flattenColumns:ii,onColumnResize:_s,hoverStartRow:bi,hoverEndRow:hn,onHover:Li,rowExpandable:li.rowExpandable,onRow:Me,getRowKey:hr,expandedKeys:da,childrenColumnName:gi,rowHoverable:qn}},[Fi,Et,Or,Xo,Nn,Fl,Us,fl,ea,is,Es,es,Ro,nn,li.expandedRowClassName,Xr,ca,li.expandRowByClick,li.expandedRowRender,zr,li.expandIconColumnIndex,li.indentSize,vl,Qr,ii,_s,bi,hn,Li,li.rowExpandable,Me,hr,da,gi,qn]);return i.createElement(ue.Provider,{value:tu},bl)}var ir=i.forwardRef(Pn);function In(be){return R(ir,be)}var zn=In();zn.EXPAND_COLUMN=K,zn.INTERNAL_HOOKS=L,zn.Column=sn,zn.ColumnGroup=En,zn.Summary=Te;var Yn=zn,tr=u(48911),Jn=l(null),qt=l(null);function tn(be,ge,it){var Et=ge||1;return it[be+Et]-(it[be]||0)}function yn(be){var ge=be.rowInfo,it=be.column,Et=be.colIndex,Gt=be.indent,nn=be.index,mn=be.component,ln=be.renderIndex,_n=be.record,xn=be.style,Qn=be.className,Nn=be.inverse,Mn=be.getHeight,U=it.render,c=it.dataIndex,f=it.className,h=it.width,b=x(qt,["columnsOffset"]),B=b.columnsOffset,q=De(ge,it,Et,Gt,nn),Me=q.key,et=q.fixedInfo,yt=q.appendCellNode,Xt=q.additionalCellProps,fn=Xt.style,Sn=Xt.colSpan,kn=Sn===void 0?1:Sn,Kn=Xt.rowSpan,jn=Kn===void 0?1:Kn,ar=Et-1,qn=tn(ar,kn,B),rr=kn>1?h-qn:0,dr=(0,ke.Z)((0,ke.Z)((0,ke.Z)({},fn),xn),{},{flex:"0 0 ".concat(qn,"px"),width:"".concat(qn,"px"),marginRight:rr,pointerEvents:"auto"}),Tr=i.useMemo(function(){return Nn?jn<=1:kn===0||jn===0||jn>1},[jn,kn,Nn]);Tr?dr.visibility="hidden":Nn&&(dr.height=Mn==null?void 0:Mn(jn));var Or=Tr?function(){return null}:U,hr={};return(jn===0||kn===0)&&(hr.rowSpan=1,hr.colSpan=1),i.createElement(cn,(0,N.Z)({className:k()(f,Qn),ellipsis:it.ellipsis,align:it.align,scope:it.rowScope,component:mn,prefixCls:ge.prefixCls,key:Me,record:_n,index:nn,renderIndex:ln,dataIndex:c,render:Or,shouldCellUpdate:it.shouldCellUpdate},et,{appendNode:yt,additionalProps:(0,ke.Z)((0,ke.Z)({},Xt),{},{style:dr},hr)}))}var Zn=yn,Ht=["data","index","className","rowKey","style","extra","getHeight"],Un=i.forwardRef(function(be,ge){var it=be.data,Et=be.index,Gt=be.className,nn=be.rowKey,mn=be.style,ln=be.extra,_n=be.getHeight,xn=(0,le.Z)(be,Ht),Qn=it.record,Nn=it.indent,Mn=it.index,U=x(ue,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),c=U.scrollX,f=U.flattenColumns,h=U.prefixCls,b=U.fixColumn,B=U.componentWidth,q=x(Jn,["getComponent"]),Me=q.getComponent,et=_t(Qn,nn,Et,Nn),yt=Me(["body","row"],"div"),Xt=Me(["body","cell"],"div"),fn=et.rowSupportExpand,Sn=et.expanded,kn=et.rowProps,Kn=et.expandedRowRender,jn=et.expandedRowClassName,ar;if(fn&&Sn){var qn=Kn(Qn,Et,Nn+1,Sn),rr=Nt(jn,Qn,Et,Nn),dr={};b&&(dr={style:(0,We.Z)({},"--virtual-width","".concat(B,"px"))});var Tr="".concat(h,"-expanded-row-cell");ar=i.createElement(yt,{className:k()("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(Nn+1),rr)},i.createElement(cn,{component:Xt,prefixCls:h,className:k()(Tr,(0,We.Z)({},"".concat(Tr,"-fixed"),b)),additionalProps:dr},qn))}var Or=(0,ke.Z)((0,ke.Z)({},mn),{},{width:c});ln&&(Or.position="absolute",Or.pointerEvents="none");var hr=i.createElement(yt,(0,N.Z)({},kn,xn,{"data-row-key":nn,ref:fn?null:ge,className:k()(Gt,"".concat(h,"-row"),kn==null?void 0:kn.className,(0,We.Z)({},"".concat(h,"-row-extra"),ln)),style:(0,ke.Z)((0,ke.Z)({},Or),kn==null?void 0:kn.style)}),f.map(function(Gr,qr){return i.createElement(Zn,{key:qr,component:Xt,rowInfo:et,column:Gr,colIndex:qr,indent:Nn,index:Et,renderIndex:Mn,record:Qn,inverse:ln,getHeight:_n})}));return fn?i.createElement("div",{ref:ge},hr,ar):hr}),er=Q(Un),lr=er,_r=i.forwardRef(function(be,ge){var it=be.data,Et=be.onScroll,Gt=x(ue,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),nn=Gt.flattenColumns,mn=Gt.onColumnResize,ln=Gt.getRowKey,_n=Gt.expandedKeys,xn=Gt.prefixCls,Qn=Gt.childrenColumnName,Nn=Gt.scrollX,Mn=Gt.direction,U=x(Jn),c=U.sticky,f=U.scrollY,h=U.listItemHeight,b=U.getComponent,B=U.onScroll,q=i.useRef(),Me=Ot(it,Qn,_n,ln),et=i.useMemo(function(){var ar=0;return nn.map(function(qn){var rr=qn.width,dr=qn.key;return ar+=rr,[dr,rr,ar]})},[nn]),yt=i.useMemo(function(){return et.map(function(ar){return ar[2]})},[et]);i.useEffect(function(){et.forEach(function(ar){var qn=(0,he.Z)(ar,2),rr=qn[0],dr=qn[1];mn(rr,dr)})},[et]),i.useImperativeHandle(ge,function(){var ar,qn={scrollTo:function(dr){var Tr;(Tr=q.current)===null||Tr===void 0||Tr.scrollTo(dr)},nativeElement:(ar=q.current)===null||ar===void 0?void 0:ar.nativeElement};return Object.defineProperty(qn,"scrollLeft",{get:function(){var dr;return((dr=q.current)===null||dr===void 0?void 0:dr.getScrollInfo().x)||0},set:function(dr){var Tr;(Tr=q.current)===null||Tr===void 0||Tr.scrollTo({left:dr})}}),qn});var Xt=function(qn,rr){var dr,Tr=(dr=Me[rr])===null||dr===void 0?void 0:dr.record,Or=qn.onCell;if(Or){var hr,Gr=Or(Tr,rr);return(hr=Gr==null?void 0:Gr.rowSpan)!==null&&hr!==void 0?hr:1}return 1},fn=function(qn){var rr=qn.start,dr=qn.end,Tr=qn.getSize,Or=qn.offsetY;if(dr<0)return null;for(var hr=nn.filter(function(Xr){return Xt(Xr,rr)===0}),Gr=rr,qr=function(gi){if(hr=hr.filter(function(zr){return Xt(zr,gi)===0}),!hr.length)return Gr=gi,1},Ri=rr;Ri>=0&&!qr(Ri);Ri-=1);for(var bi=nn.filter(function(Xr){return Xt(Xr,dr)!==1}),hn=dr,Li=function(gi){if(bi=bi.filter(function(zr){return Xt(zr,gi)!==1}),!bi.length)return hn=Math.max(gi-1,dr),1},ya=dr;ya<Me.length&&!Li(ya);ya+=1);for(var vi=[],li=function(gi){var zr=Me[gi];if(!zr)return 1;nn.some(function(Yr){return Xt(Yr,gi)>1})&&vi.push(gi)},ca=Gr;ca<=hn;ca+=1)li(ca);var da=vi.map(function(Xr){var gi=Me[Xr],zr=ln(gi.record,Xr),Yr=function(ea){var Qi=Xr+ea-1,sa=ln(Me[Qi].record,Qi),ka=Tr(zr,sa);return ka.bottom-ka.top},Si=Tr(zr);return i.createElement(lr,{key:Xr,data:gi,rowKey:zr,index:Xr,style:{top:-Or+Si.top},extra:!0,getHeight:Yr})});return da},Sn=i.useMemo(function(){return{columnsOffset:yt}},[yt]),kn="".concat(xn,"-tbody"),Kn=b(["body","wrapper"]),jn={};return c&&(jn.position="sticky",jn.bottom=0,(0,Je.Z)(c)==="object"&&c.offsetScroll&&(jn.bottom=c.offsetScroll)),i.createElement(qt.Provider,{value:Sn},i.createElement(tr.Z,{fullHeight:!1,ref:q,prefixCls:"".concat(kn,"-virtual"),styles:{horizontalScrollBar:jn},className:kn,height:f,itemHeight:h||24,data:Me,itemKey:function(qn){return ln(qn.record)},component:Kn,scrollWidth:Nn,direction:Mn,onVirtualScroll:function(qn){var rr,dr=qn.x;Et({currentTarget:(rr=q.current)===null||rr===void 0?void 0:rr.nativeElement,scrollLeft:dr})},onScroll:B,extraRender:fn},function(ar,qn,rr){var dr=ln(ar.record,qn);return i.createElement(lr,{data:ar,rowKey:dr,index:qn,style:rr.style})}))}),Ar=Q(_r),Sr=Ar,Vn=function(ge,it){var Et=it.ref,Gt=it.onScroll;return i.createElement(Sr,{ref:Et,data:ge,onScroll:Gt})};function An(be,ge){var it=be.data,Et=be.columns,Gt=be.scroll,nn=be.sticky,mn=be.prefixCls,ln=mn===void 0?Rn:mn,_n=be.className,xn=be.listItemHeight,Qn=be.components,Nn=be.onScroll,Mn=Gt||{},U=Mn.x,c=Mn.y;typeof U!="number"&&(U=1),typeof c!="number"&&(c=500);var f=(0,Fe.zX)(function(B,q){return(0,ee.Z)(Qn,B)||q}),h=(0,Fe.zX)(Nn),b=i.useMemo(function(){return{sticky:nn,scrollY:c,listItemHeight:xn,getComponent:f,onScroll:h}},[nn,c,xn,f,h]);return i.createElement(Jn.Provider,{value:b},i.createElement(Yn,(0,N.Z)({},be,{className:k()(_n,"".concat(ln,"-virtual")),scroll:(0,ke.Z)((0,ke.Z)({},Gt),{},{x:U}),components:(0,ke.Z)((0,ke.Z)({},Qn),{},{body:it!=null&&it.length?Vn:void 0}),columns:Et,internalHooks:L,tailor:!0,ref:ge})))}var pn=i.forwardRef(An);function Tn(be){return R(pn,be)}var Xn=Tn(),nr=null,Er=be=>null,yr=be=>null,Ir=u(84105),Zr=u(82661),Nr=u(34643),Lr=u(34061),Cr=u(18929);function Fr(be){const[ge,it]=(0,i.useState)(null);return[(0,i.useCallback)((nn,mn,ln)=>{const _n=ge!=null?ge:nn,xn=Math.min(_n||0,nn),Qn=Math.max(_n||0,nn),Nn=mn.slice(xn,Qn+1).map(c=>be(c)),Mn=Nn.some(c=>!ln.has(c)),U=[];return Nn.forEach(c=>{Mn?(ln.has(c)||U.push(c),ln.add(c)):(ln.delete(c),U.push(c))}),it(Mn?Qn:null),U},[ge]),nn=>{it(nn)}]}var Jt=u(32383),On=u(62673),Gn=u(75727),ur=u(47889);const xr={},jr="SELECT_ALL",wr="SELECT_INVERT",ni="SELECT_NONE",di=[],Ei=(be,ge)=>{let it=[];return(ge||[]).forEach(Et=>{it.push(Et),Et&&typeof Et=="object"&&be in Et&&(it=[].concat((0,Ze.Z)(it),(0,Ze.Z)(Ei(be,Et[be]))))}),it};var fr=(be,ge)=>{const{preserveSelectedRowKeys:it,selectedRowKeys:Et,defaultSelectedRowKeys:Gt,getCheckboxProps:nn,onChange:mn,onSelect:ln,onSelectAll:_n,onSelectInvert:xn,onSelectNone:Qn,onSelectMultiple:Nn,columnWidth:Mn,type:U,selections:c,fixed:f,renderCell:h,hideSelectAll:b,checkStrictly:B=!0}=ge||{},{prefixCls:q,data:Me,pageData:et,getRecordByKey:yt,getRowKey:Xt,expandType:fn,childrenColumnName:Sn,locale:kn,getPopupContainer:Kn}=be,jn=(0,Jt.ln)("Table"),[ar,qn]=Fr(Xr=>Xr),[rr,dr]=(0,Cr.Z)(Et||Gt||di,{value:Et}),Tr=i.useRef(new Map),Or=(0,i.useCallback)(Xr=>{if(it){const gi=new Map;Xr.forEach(zr=>{let Yr=yt(zr);!Yr&&Tr.current.has(zr)&&(Yr=Tr.current.get(zr)),gi.set(zr,Yr)}),Tr.current=gi}},[yt,it]);i.useEffect(()=>{Or(rr)},[rr]);const hr=(0,i.useMemo)(()=>Ei(Sn,et),[Sn,et]),{keyEntities:Gr}=(0,i.useMemo)(()=>{if(B)return{keyEntities:null};let Xr=Me;if(it){const gi=new Set(hr.map((Yr,Si)=>Xt(Yr,Si))),zr=Array.from(Tr.current).reduce((Yr,Si)=>{let[Ii,ea]=Si;return gi.has(Ii)?Yr:Yr.concat(ea)},[]);Xr=[].concat((0,Ze.Z)(Xr),(0,Ze.Z)(zr))}return(0,Lr.I8)(Xr,{externalGetKey:Xt,childrenPropName:Sn})},[Me,Xt,B,Sn,it,hr]),qr=(0,i.useMemo)(()=>{const Xr=new Map;return hr.forEach((gi,zr)=>{const Yr=Xt(gi,zr),Si=(nn?nn(gi):null)||{};Xr.set(Yr,Si)}),Xr},[hr,Xt,nn]),Ri=(0,i.useCallback)(Xr=>{const gi=Xt(Xr);let zr;return qr.has(gi)?zr=qr.get(Xt(Xr)):zr=nn?nn(Xr):void 0,!!(zr!=null&&zr.disabled)},[qr,Xt]),[bi,hn]=(0,i.useMemo)(()=>{if(B)return[rr||[],[]];const{checkedKeys:Xr,halfCheckedKeys:gi}=(0,Nr.S)(rr,!0,Gr,Ri);return[Xr||[],gi]},[rr,B,Gr,Ri]),Li=(0,i.useMemo)(()=>{const Xr=U==="radio"?bi.slice(0,1):bi;return new Set(Xr)},[bi,U]),ya=(0,i.useMemo)(()=>U==="radio"?new Set:new Set(hn),[hn,U]);i.useEffect(()=>{ge||dr(di)},[!!ge]);const vi=(0,i.useCallback)((Xr,gi)=>{let zr,Yr;Or(Xr),it?(zr=Xr,Yr=Xr.map(Si=>Tr.current.get(Si))):(zr=[],Yr=[],Xr.forEach(Si=>{const Ii=yt(Si);Ii!==void 0&&(zr.push(Si),Yr.push(Ii))})),dr(zr),mn==null||mn(zr,Yr,{type:gi})},[dr,yt,mn,it]),li=(0,i.useCallback)((Xr,gi,zr,Yr)=>{if(ln){const Si=zr.map(Ii=>yt(Ii));ln(yt(Xr),gi,Si,Yr)}vi(zr,"single")},[ln,yt,vi]),ca=(0,i.useMemo)(()=>!c||b?null:(c===!0?[jr,wr,ni]:c).map(gi=>gi===jr?{key:"all",text:kn.selectionAll,onSelect(){vi(Me.map((zr,Yr)=>Xt(zr,Yr)).filter(zr=>{const Yr=qr.get(zr);return!(Yr!=null&&Yr.disabled)||Li.has(zr)}),"all")}}:gi===wr?{key:"invert",text:kn.selectInvert,onSelect(){const zr=new Set(Li);et.forEach((Si,Ii)=>{const ea=Xt(Si,Ii),Qi=qr.get(ea);Qi!=null&&Qi.disabled||(zr.has(ea)?zr.delete(ea):zr.add(ea))});const Yr=Array.from(zr);xn&&(jn.deprecated(!1,"onSelectInvert","onChange"),xn(Yr)),vi(Yr,"invert")}}:gi===ni?{key:"none",text:kn.selectNone,onSelect(){Qn==null||Qn(),vi(Array.from(Li).filter(zr=>{const Yr=qr.get(zr);return Yr==null?void 0:Yr.disabled}),"none")}}:gi).map(gi=>Object.assign(Object.assign({},gi),{onSelect:function(){for(var zr,Yr,Si=arguments.length,Ii=new Array(Si),ea=0;ea<Si;ea++)Ii[ea]=arguments[ea];(Yr=gi.onSelect)===null||Yr===void 0||(zr=Yr).call.apply(zr,[gi].concat(Ii)),qn(null)}})),[c,Li,et,Xt,xn,vi]);return[(0,i.useCallback)(Xr=>{var gi;if(!ge)return Xr.filter(Ji=>Ji!==xr);let zr=(0,Ze.Z)(Xr);const Yr=new Set(Li),Si=hr.map(Xt).filter(Ji=>!qr.get(Ji).disabled),Ii=Si.every(Ji=>Yr.has(Ji)),ea=Si.some(Ji=>Yr.has(Ji)),Qi=()=>{const Ji=[];Ii?Si.forEach(oa=>{Yr.delete(oa),Ji.push(oa)}):Si.forEach(oa=>{Yr.has(oa)||(Yr.add(oa),Ji.push(oa))});const fa=Array.from(Yr);_n==null||_n(!Ii,fa.map(oa=>yt(oa)),Ji.map(oa=>yt(oa))),vi(fa,"all"),qn(null)};let sa,ka;if(U!=="radio"){let Ji;if(ca){const Gi={getPopupContainer:Kn,items:ca.map((Ca,la)=>{const{key:Va,text:wa,onSelect:Ja}=Ca;return{key:Va!=null?Va:la,onClick:()=>{Ja==null||Ja(Si)},label:wa}})};Ji=i.createElement("div",{className:`${q}-selection-extra`},i.createElement(Gn.Z,{menu:Gi,getPopupContainer:Kn},i.createElement("span",null,i.createElement(Ir.Z,null))))}const fa=hr.map((Gi,Ca)=>{const la=Xt(Gi,Ca),Va=qr.get(la)||{};return Object.assign({checked:Yr.has(la)},Va)}).filter(Gi=>{let{disabled:Ca}=Gi;return Ca}),oa=!!fa.length&&fa.length===hr.length,Na=oa&&fa.every(Gi=>{let{checked:Ca}=Gi;return Ca}),Ra=oa&&fa.some(Gi=>{let{checked:Ca}=Gi;return Ca});ka=i.createElement(On.default,{checked:oa?Na:!!hr.length&&Ii,indeterminate:oa?!Na&&Ra:!Ii&&ea,onChange:Qi,disabled:hr.length===0||oa,"aria-label":Ji?"Custom selection":"Select all",skipGroup:!0}),sa=!b&&i.createElement("div",{className:`${q}-selection`},ka,Ji)}let Qr;U==="radio"?Qr=(Ji,fa,oa)=>{const Na=Xt(fa,oa),Ra=Yr.has(Na),Gi=qr.get(Na);return{node:i.createElement(ur.ZP,Object.assign({},Gi,{checked:Ra,onClick:Ca=>{var la;Ca.stopPropagation(),(la=Gi==null?void 0:Gi.onClick)===null||la===void 0||la.call(Gi,Ca)},onChange:Ca=>{var la;Yr.has(Na)||li(Na,!0,[Na],Ca.nativeEvent),(la=Gi==null?void 0:Gi.onChange)===null||la===void 0||la.call(Gi,Ca)}})),checked:Ra}}:Qr=(Ji,fa,oa)=>{var Na;const Ra=Xt(fa,oa),Gi=Yr.has(Ra),Ca=ya.has(Ra),la=qr.get(Ra);let Va;return fn==="nest"?Va=Ca:Va=(Na=la==null?void 0:la.indeterminate)!==null&&Na!==void 0?Na:Ca,{node:i.createElement(On.default,Object.assign({},la,{indeterminate:Va,checked:Gi,skipGroup:!0,onClick:wa=>{var Ja;wa.stopPropagation(),(Ja=la==null?void 0:la.onClick)===null||Ja===void 0||Ja.call(la,wa)},onChange:wa=>{var Ja;const{nativeEvent:xs}=wa,{shiftKey:fo}=xs,_a=Si.findIndex(qa=>qa===Ra),Do=bi.some(qa=>Si.includes(qa));if(fo&&B&&Do){const qa=ar(_a,Si,Yr),ms=Array.from(Yr);Nn==null||Nn(!Gi,ms.map(ps=>yt(ps)),qa.map(ps=>yt(ps))),vi(ms,"multiple")}else{const qa=bi;if(B){const ms=Gi?(0,Zr._5)(qa,Ra):(0,Zr.L0)(qa,Ra);li(Ra,!Gi,ms,xs)}else{const ms=(0,Nr.S)([].concat((0,Ze.Z)(qa),[Ra]),!0,Gr,Ri),{checkedKeys:ps,halfCheckedKeys:is}=ms;let es=ps;if(Gi){const Es=new Set(ps);Es.delete(Ra),es=(0,Nr.S)(Array.from(Es),{checked:!1,halfCheckedKeys:is},Gr,Ri).checkedKeys}li(Ra,!Gi,es,xs)}}qn(Gi?null:_a),(Ja=la==null?void 0:la.onChange)===null||Ja===void 0||Ja.call(la,wa)}})),checked:Gi}};const ii=(Ji,fa,oa)=>{const{node:Na,checked:Ra}=Qr(Ji,fa,oa);return h?h(Ra,fa,oa,Na):Na};if(!zr.includes(xr))if(zr.findIndex(Ji=>{var fa;return((fa=Ji[st])===null||fa===void 0?void 0:fa.columnType)==="EXPAND_COLUMN"})===0){const[Ji,...fa]=zr;zr=[Ji,xr].concat((0,Ze.Z)(fa))}else zr=[xr].concat((0,Ze.Z)(zr));const Bi=zr.indexOf(xr);zr=zr.filter((Ji,fa)=>Ji!==xr||fa===Bi);const ta=zr[Bi-1],Fi=zr[Bi+1];let Ha=f;Ha===void 0&&((Fi==null?void 0:Fi.fixed)!==void 0?Ha=Fi.fixed:(ta==null?void 0:ta.fixed)!==void 0&&(Ha=ta.fixed)),Ha&&ta&&((gi=ta[st])===null||gi===void 0?void 0:gi.columnType)==="EXPAND_COLUMN"&&ta.fixed===void 0&&(ta.fixed=Ha);const ga=k()(`${q}-selection-col`,{[`${q}-selection-col-with-dropdown`]:c&&U==="checkbox"}),os=()=>ge!=null&&ge.columnTitle?typeof ge.columnTitle=="function"?ge.columnTitle(ka):ge.columnTitle:sa,ba={fixed:Ha,width:Mn,className:`${q}-selection-column`,title:os(),render:ii,onCell:ge.onCell,[st]:{className:ga}};return zr.map(Ji=>Ji===xr?ba:Ji)},[Xt,hr,ge,bi,Li,ya,Mn,ca,fn,qr,Nn,li,Ri]),Li]},yi=u(2738);function sr(be,ge){return be._antProxy=be._antProxy||{},Object.keys(ge).forEach(it=>{if(!(it in be._antProxy)){const Et=be[it];be._antProxy[it]=Et,be[it]=ge[it]}}),be}function wi(be,ge){return(0,i.useImperativeHandle)(be,()=>{const it=ge(),{nativeElement:Et}=it;return typeof Proxy!="undefined"?new Proxy(Et,{get(Gt,nn){return it[nn]?it[nn]:Reflect.get(Gt,nn)}}):sr(Et,it)})}var Yi=u(83010),Wi=u(48755),Mi=u(38406),Ni=u(83397),Vr=u(31756),Di=u(13783),ra=u(85981),zi=u(31709),hi=u(29787),ki=u(57700);function Zi(be){return ge=>{const{prefixCls:it,onExpand:Et,record:Gt,expanded:nn,expandable:mn}=ge,ln=`${it}-row-expand-icon`;return i.createElement("button",{type:"button",onClick:_n=>{Et(Gt,_n),_n.stopPropagation()},className:k()(ln,{[`${ln}-spaced`]:!mn,[`${ln}-expanded`]:mn&&nn,[`${ln}-collapsed`]:mn&&!nn}),"aria-label":nn?be.collapse:be.expand,"aria-expanded":nn})}}var Br=Zi;function ei(be){return(it,Et)=>{const Gt=it.querySelector(`.${be}-container`);let nn=Et;if(Gt){const mn=getComputedStyle(Gt),ln=parseInt(mn.borderLeftWidth,10),_n=parseInt(mn.borderRightWidth,10);nn=Et-ln-_n}return nn}}const pr=(be,ge)=>"key"in be&&be.key!==void 0&&be.key!==null?be.key:be.dataIndex?Array.isArray(be.dataIndex)?be.dataIndex.join("."):be.dataIndex:ge;function vr(be,ge){return ge?`${ge}-${be}`:`${be}`}const Pr=(be,ge)=>typeof be=="function"?be(ge):be,Wr=(be,ge)=>{const it=Pr(be,ge);return Object.prototype.toString.call(it)==="[object Object]"?"":it};var Ci={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},br=Ci,Rr=u(7657),Mr=function(ge,it){return i.createElement(Rr.Z,(0,N.Z)({},ge,{ref:it,icon:br}))},$r=i.forwardRef(Mr),ti=$r,ma=u(9981),Xi=u(40192);function ua(be){const ge=i.useRef(be),it=(0,Xi.Z)();return[()=>ge.current,Et=>{ge.current=Et,it()}]}var fi=u(7939),ri=u(584),Ti=u(93041),Oi=u(78857),ia=u(18287),pa=u(47472),Sa=u(49397),Wa=be=>{const{value:ge,filterSearch:it,tablePrefixCls:Et,locale:Gt,onChange:nn}=be;return it?i.createElement("div",{className:`${Et}-filter-dropdown-search`},i.createElement(Sa.Z,{prefix:i.createElement(pa.Z,null),placeholder:Gt.filterSearchPlaceholder,onChange:nn,value:ge,htmlSize:1,className:`${Et}-filter-dropdown-search-input`})):null},Ta=u(10228);const vs=be=>{const{keyCode:ge}=be;ge===Ta.Z.ENTER&&be.stopPropagation()};var Ds=i.forwardRef((be,ge)=>i.createElement("div",{className:be.className,onClick:it=>it.stopPropagation(),onKeyDown:vs,ref:ge},be.children));function $a(be){let ge=[];return(be||[]).forEach(it=>{let{value:Et,children:Gt}=it;ge.push(Et),Gt&&(ge=[].concat((0,Ze.Z)(ge),(0,Ze.Z)($a(Gt))))}),ge}function Rs(be){return be.some(ge=>{let{children:it}=ge;return it})}function za(be,ge){return typeof ge=="string"||typeof ge=="number"?ge==null?void 0:ge.toString().toLowerCase().includes(be.trim().toLowerCase()):!1}function Fs(be){let{filters:ge,prefixCls:it,filteredKeys:Et,filterMultiple:Gt,searchValue:nn,filterSearch:mn}=be;return ge.map((ln,_n)=>{const xn=String(ln.value);if(ln.children)return{key:xn||_n,label:ln.text,popupClassName:`${it}-dropdown-submenu`,children:Fs({filters:ln.children,prefixCls:it,filteredKeys:Et,filterMultiple:Gt,searchValue:nn,filterSearch:mn})};const Qn=Gt?On.default:ur.ZP,Nn={key:ln.value!==void 0?xn:_n,label:i.createElement(i.Fragment,null,i.createElement(Qn,{checked:Et.includes(xn)}),i.createElement("span",null,ln.text))};return nn.trim()?typeof mn=="function"?mn(nn,ln)?Nn:null:za(nn,ln.text)?Nn:null:Nn})}function $s(be){return be||[]}var Vs=be=>{var ge,it,Et,Gt;const{tablePrefixCls:nn,prefixCls:mn,column:ln,dropdownPrefixCls:_n,columnKey:xn,filterOnClose:Qn,filterMultiple:Nn,filterMode:Mn="menu",filterSearch:U=!1,filterState:c,triggerFilter:f,locale:h,children:b,getPopupContainer:B,rootClassName:q}=be,{filterResetToDefaultFilteredValue:Me,defaultFilteredValue:et,filterDropdownProps:yt={},filterDropdownOpen:Xt,filterDropdownVisible:fn,onFilterDropdownVisibleChange:Sn,onFilterDropdownOpenChange:kn}=ln,[Kn,jn]=i.useState(!1),ar=!!(c&&(!((ge=c.filteredKeys)===null||ge===void 0)&&ge.length||c.forceFiltered)),qn=Qr=>{var ii;jn(Qr),(ii=yt.onOpenChange)===null||ii===void 0||ii.call(yt,Qr),kn==null||kn(Qr),Sn==null||Sn(Qr)},rr=(Gt=(Et=(it=yt.open)!==null&&it!==void 0?it:Xt)!==null&&Et!==void 0?Et:fn)!==null&&Gt!==void 0?Gt:Kn,dr=c==null?void 0:c.filteredKeys,[Tr,Or]=ua($s(dr)),hr=Qr=>{let{selectedKeys:ii}=Qr;Or(ii)},Gr=(Qr,ii)=>{let{node:Bi,checked:ta}=ii;hr(Nn?{selectedKeys:Qr}:{selectedKeys:ta&&Bi.key?[Bi.key]:[]})};i.useEffect(()=>{Kn&&hr({selectedKeys:$s(dr)})},[dr]);const[qr,Ri]=i.useState([]),bi=Qr=>{Ri(Qr)},[hn,Li]=i.useState(""),ya=Qr=>{const{value:ii}=Qr.target;Li(ii)};i.useEffect(()=>{Kn||Li("")},[Kn]);const vi=Qr=>{const ii=Qr!=null&&Qr.length?Qr:null;if(ii===null&&(!c||!c.filteredKeys)||(0,W.Z)(ii,c==null?void 0:c.filteredKeys,!0))return null;f({column:ln,key:xn,filteredKeys:ii})},li=()=>{qn(!1),vi(Tr())},ca=function(){let{confirm:Qr,closeDropdown:ii}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Qr&&vi([]),ii&&qn(!1),Li(""),Or(Me?(et||[]).map(Bi=>String(Bi)):[])},da=function(){let{closeDropdown:Qr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Qr&&qn(!1),vi(Tr())},Xr=(Qr,ii)=>{ii.source==="trigger"&&(Qr&&dr!==void 0&&Or($s(dr)),qn(Qr),!Qr&&!ln.filterDropdown&&Qn&&li())},gi=k()({[`${_n}-menu-without-submenu`]:!Rs(ln.filters||[])}),zr=Qr=>{if(Qr.target.checked){const ii=$a(ln==null?void 0:ln.filters).map(Bi=>String(Bi));Or(ii)}else Or([])},Yr=Qr=>{let{filters:ii}=Qr;return(ii||[]).map((Bi,ta)=>{const Fi=String(Bi.value),Ha={title:Bi.text,key:Bi.value!==void 0?Fi:String(ta)};return Bi.children&&(Ha.children=Yr({filters:Bi.children})),Ha})},Si=Qr=>{var ii;return Object.assign(Object.assign({},Qr),{text:Qr.title,value:Qr.key,children:((ii=Qr.children)===null||ii===void 0?void 0:ii.map(Bi=>Si(Bi)))||[]})};let Ii;const{direction:ea,renderEmpty:Qi}=i.useContext(Wi.E_);if(typeof ln.filterDropdown=="function")Ii=ln.filterDropdown({prefixCls:`${_n}-custom`,setSelectedKeys:Qr=>hr({selectedKeys:Qr}),selectedKeys:Tr(),confirm:da,clearFilters:ca,filters:ln.filters,visible:rr,close:()=>{qn(!1)}});else if(ln.filterDropdown)Ii=ln.filterDropdown;else{const Qr=Tr()||[],ii=()=>{var ta,Fi;const Ha=(ta=Qi==null?void 0:Qi("Table.filter"))!==null&&ta!==void 0?ta:i.createElement(ri.Z,{image:ri.Z.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((ln.filters||[]).length===0)return Ha;if(Mn==="tree")return i.createElement(i.Fragment,null,i.createElement(Wa,{filterSearch:U,value:hn,onChange:ya,tablePrefixCls:nn,locale:h}),i.createElement("div",{className:`${nn}-filter-dropdown-tree`},Nn?i.createElement(On.default,{checked:Qr.length===$a(ln.filters).length,indeterminate:Qr.length>0&&Qr.length<$a(ln.filters).length,className:`${nn}-filter-dropdown-checkall`,onChange:zr},(Fi=h==null?void 0:h.filterCheckall)!==null&&Fi!==void 0?Fi:h==null?void 0:h.filterCheckAll):null,i.createElement(ia.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Nn,checkStrictly:!Nn,className:`${_n}-menu`,onCheck:Gr,checkedKeys:Qr,selectedKeys:Qr,showIcon:!1,treeData:Yr({filters:ln.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:hn.trim()?ba=>typeof U=="function"?U(hn,Si(ba)):za(hn,ba.title):void 0})));const ga=Fs({filters:ln.filters||[],filterSearch:U,prefixCls:mn,filteredKeys:Tr(),filterMultiple:Nn,searchValue:hn}),os=ga.every(ba=>ba===null);return i.createElement(i.Fragment,null,i.createElement(Wa,{filterSearch:U,value:hn,onChange:ya,tablePrefixCls:nn,locale:h}),os?Ha:i.createElement(Ti.default,{selectable:!0,multiple:Nn,prefixCls:`${_n}-menu`,className:gi,onSelect:hr,onDeselect:hr,selectedKeys:Qr,getPopupContainer:B,openKeys:qr,onOpenChange:bi,items:ga}))},Bi=()=>Me?(0,W.Z)((et||[]).map(ta=>String(ta)),Qr,!0):Qr.length===0;Ii=i.createElement(i.Fragment,null,ii(),i.createElement("div",{className:`${mn}-dropdown-btns`},i.createElement(fi.ZP,{type:"link",size:"small",disabled:Bi(),onClick:()=>ca()},h.filterReset),i.createElement(fi.ZP,{type:"primary",size:"small",onClick:li},h.filterConfirm)))}ln.filterDropdown&&(Ii=i.createElement(Oi.J,{selectable:void 0},Ii)),Ii=i.createElement(Ds,{className:`${mn}-dropdown`},Ii);const sa=()=>{let Qr;return typeof ln.filterIcon=="function"?Qr=ln.filterIcon(ar):ln.filterIcon?Qr=ln.filterIcon:Qr=i.createElement(ti,null),i.createElement("span",{role:"button",tabIndex:-1,className:k()(`${mn}-trigger`,{active:ar}),onClick:ii=>{ii.stopPropagation()}},Qr)},ka=(0,ma.Z)({trigger:["click"],placement:ea==="rtl"?"bottomLeft":"bottomRight",children:sa(),getPopupContainer:B},Object.assign(Object.assign({},yt),{rootClassName:k()(q,yt.rootClassName),open:rr,onOpenChange:Xr,dropdownRender:()=>typeof(yt==null?void 0:yt.dropdownRender)=="function"?yt.dropdownRender(Ii):Ii}));return i.createElement("div",{className:`${mn}-column`},i.createElement("span",{className:`${nn}-column-title`},b),i.createElement(Gn.Z,Object.assign({},ka)))};const ds=(be,ge,it)=>{let Et=[];return(be||[]).forEach((Gt,nn)=>{var mn;const ln=vr(nn,it);if(Gt.filters||"filterDropdown"in Gt||"onFilter"in Gt)if("filteredValue"in Gt){let _n=Gt.filteredValue;"filterDropdown"in Gt||(_n=(mn=_n==null?void 0:_n.map(String))!==null&&mn!==void 0?mn:_n),Et.push({column:Gt,key:pr(Gt,ln),filteredKeys:_n,forceFiltered:Gt.filtered})}else Et.push({column:Gt,key:pr(Gt,ln),filteredKeys:ge&&Gt.defaultFilteredValue?Gt.defaultFilteredValue:void 0,forceFiltered:Gt.filtered});"children"in Gt&&(Et=[].concat((0,Ze.Z)(Et),(0,Ze.Z)(ds(Gt.children,ge,ln))))}),Et};function Ya(be,ge,it,Et,Gt,nn,mn,ln,_n){return it.map((xn,Qn)=>{const Nn=vr(Qn,ln),{filterOnClose:Mn=!0,filterMultiple:U=!0,filterMode:c,filterSearch:f}=xn;let h=xn;if(h.filters||h.filterDropdown){const b=pr(h,Nn),B=Et.find(q=>{let{key:Me}=q;return b===Me});h=Object.assign(Object.assign({},h),{title:q=>i.createElement(Vs,{tablePrefixCls:be,prefixCls:`${be}-filter`,dropdownPrefixCls:ge,column:h,columnKey:b,filterState:B,filterOnClose:Mn,filterMultiple:U,filterMode:c,filterSearch:f,triggerFilter:nn,locale:Gt,getPopupContainer:mn,rootClassName:_n},Pr(xn.title,q))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:Ya(be,ge,h.children,Et,Gt,nn,mn,Nn,_n)})),h})}const Ai=be=>{const ge={};return be.forEach(it=>{let{key:Et,filteredKeys:Gt,column:nn}=it;const mn=Et,{filters:ln,filterDropdown:_n}=nn;if(_n)ge[mn]=Gt||null;else if(Array.isArray(Gt)){const xn=$a(ln);ge[mn]=xn.filter(Qn=>Gt.includes(String(Qn)))}else ge[mn]=null}),ge},mi=(be,ge,it)=>ge.reduce((Gt,nn)=>{const{column:{onFilter:mn,filters:ln},filteredKeys:_n}=nn;return mn&&_n&&_n.length?Gt.map(xn=>Object.assign({},xn)).filter(xn=>_n.some(Qn=>{const Nn=$a(ln),Mn=Nn.findIndex(c=>String(c)===String(Qn)),U=Mn!==-1?Nn[Mn]:Qn;return xn[it]&&(xn[it]=mi(xn[it],ge,it)),mn(U,xn)})):Gt},be),Aa=be=>be.flatMap(ge=>"children"in ge?[ge].concat((0,Ze.Z)(Aa(ge.children||[]))):[ge]);var Ui=be=>{const{prefixCls:ge,dropdownPrefixCls:it,mergedColumns:Et,onFilterChange:Gt,getPopupContainer:nn,locale:mn,rootClassName:ln}=be,_n=(0,Jt.ln)("Table"),xn=i.useMemo(()=>Aa(Et||[]),[Et]),[Qn,Nn]=i.useState(()=>ds(xn,!0)),Mn=i.useMemo(()=>{const h=ds(xn,!1);if(h.length===0)return h;let b=!0,B=!0;if(h.forEach(q=>{let{filteredKeys:Me}=q;Me!==void 0?b=!1:B=!1}),b){const q=(xn||[]).map((Me,et)=>pr(Me,vr(et)));return Qn.filter(Me=>{let{key:et}=Me;return q.includes(et)}).map(Me=>{const et=xn[q.findIndex(yt=>yt===Me.key)];return Object.assign(Object.assign({},Me),{column:Object.assign(Object.assign({},Me.column),et),forceFiltered:et.filtered})})}return h},[xn,Qn]),U=i.useMemo(()=>Ai(Mn),[Mn]),c=h=>{const b=Mn.filter(B=>{let{key:q}=B;return q!==h.key});b.push(h),Nn(b),Gt(Ai(b),b)};return[h=>Ya(ge,it,h,Mn,mn,c,nn,void 0,ln),Mn,U]},Za=(be,ge,it)=>{const Et=i.useRef({});function Gt(nn){var mn;if(!Et.current||Et.current.data!==be||Et.current.childrenColumnName!==ge||Et.current.getRowKey!==it){let _n=function(xn){xn.forEach((Qn,Nn)=>{const Mn=it(Qn,Nn);ln.set(Mn,Qn),Qn&&typeof Qn=="object"&&ge in Qn&&_n(Qn[ge]||[])})};const ln=new Map;_n(be),Et.current={data:be,childrenColumnName:ge,kvMap:ln,getRowKey:it}}return(mn=Et.current.kvMap)===null||mn===void 0?void 0:mn.get(nn)}return[Gt]},Ua=function(be,ge){var it={};for(var Et in be)Object.prototype.hasOwnProperty.call(be,Et)&&ge.indexOf(Et)<0&&(it[Et]=be[Et]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Et=Object.getOwnPropertySymbols(be);Gt<Et.length;Gt++)ge.indexOf(Et[Gt])<0&&Object.prototype.propertyIsEnumerable.call(be,Et[Gt])&&(it[Et[Gt]]=be[Et[Gt]]);return it};const rs=10;function Pa(be,ge){const it={current:be.current,pageSize:be.pageSize};return Object.keys(ge&&typeof ge=="object"?ge:{}).forEach(Gt=>{const nn=be[Gt];typeof nn!="function"&&(it[Gt]=nn)}),it}function ss(be,ge,it){const Et=it&&typeof it=="object"?it:{},{total:Gt=0}=Et,nn=Ua(Et,["total"]),[mn,ln]=(0,i.useState)(()=>({current:"defaultCurrent"in nn?nn.defaultCurrent:1,pageSize:"defaultPageSize"in nn?nn.defaultPageSize:rs})),_n=(0,ma.Z)(mn,nn,{total:Gt>0?Gt:be}),xn=Math.ceil((Gt||be)/_n.pageSize);_n.current>xn&&(_n.current=xn||1);const Qn=(Mn,U)=>{ln({current:Mn!=null?Mn:1,pageSize:U||_n.pageSize})},Nn=(Mn,U)=>{var c;it&&((c=it.onChange)===null||c===void 0||c.call(it,Mn,U)),Qn(Mn,U),ge(Mn,U||(_n==null?void 0:_n.pageSize))};return it===!1?[{},()=>{}]:[Object.assign(Object.assign({},_n),{onChange:Nn}),Qn]}var Xa=ss,fs=u(89489),hs=u(59477),Gs=u(25399);const Ki="ascend",Vi="descend",aa=be=>typeof be.sorter=="object"&&typeof be.sorter.multiple=="number"?be.sorter.multiple:!1,Ma=be=>typeof be=="function"?be:be&&typeof be=="object"&&be.compare?be.compare:!1,Ka=(be,ge)=>ge?be[be.indexOf(ge)+1]:be[0],ws=(be,ge,it)=>{let Et=[];const Gt=(nn,mn)=>{Et.push({column:nn,key:pr(nn,mn),multiplePriority:aa(nn),sortOrder:nn.sortOrder})};return(be||[]).forEach((nn,mn)=>{const ln=vr(mn,it);nn.children?("sortOrder"in nn&&Gt(nn,ln),Et=[].concat((0,Ze.Z)(Et),(0,Ze.Z)(ws(nn.children,ge,ln)))):nn.sorter&&("sortOrder"in nn?Gt(nn,ln):ge&&nn.defaultSortOrder&&Et.push({column:nn,key:pr(nn,ln),multiplePriority:aa(nn),sortOrder:nn.defaultSortOrder}))}),Et},Os=(be,ge,it,Et,Gt,nn,mn,ln)=>(ge||[]).map((xn,Qn)=>{const Nn=vr(Qn,ln);let Mn=xn;if(Mn.sorter){const U=Mn.sortDirections||Gt,c=Mn.showSorterTooltip===void 0?mn:Mn.showSorterTooltip,f=pr(Mn,Nn),h=it.find(Sn=>{let{key:kn}=Sn;return kn===f}),b=h?h.sortOrder:null,B=Ka(U,b);let q;if(xn.sortIcon)q=xn.sortIcon({sortOrder:b});else{const Sn=U.includes(Ki)&&i.createElement(hs.Z,{className:k()(`${be}-column-sorter-up`,{active:b===Ki})}),kn=U.includes(Vi)&&i.createElement(fs.Z,{className:k()(`${be}-column-sorter-down`,{active:b===Vi})});q=i.createElement("span",{className:k()(`${be}-column-sorter`,{[`${be}-column-sorter-full`]:!!(Sn&&kn)})},i.createElement("span",{className:`${be}-column-sorter-inner`,"aria-hidden":"true"},Sn,kn))}const{cancelSort:Me,triggerAsc:et,triggerDesc:yt}=nn||{};let Xt=Me;B===Vi?Xt=yt:B===Ki&&(Xt=et);const fn=typeof c=="object"?Object.assign({title:Xt},c):{title:Xt};Mn=Object.assign(Object.assign({},Mn),{className:k()(Mn.className,{[`${be}-column-sort`]:b}),title:Sn=>{const kn=`${be}-column-sorters`,Kn=i.createElement("span",{className:`${be}-column-title`},Pr(xn.title,Sn)),jn=i.createElement("div",{className:kn},Kn,q);return c?typeof c!="boolean"&&(c==null?void 0:c.target)==="sorter-icon"?i.createElement("div",{className:`${kn} ${be}-column-sorters-tooltip-target-sorter`},Kn,i.createElement(Gs.Z,Object.assign({},fn),q)):i.createElement(Gs.Z,Object.assign({},fn),jn):jn},onHeaderCell:Sn=>{var kn;const Kn=((kn=xn.onHeaderCell)===null||kn===void 0?void 0:kn.call(xn,Sn))||{},jn=Kn.onClick,ar=Kn.onKeyDown;Kn.onClick=dr=>{Et({column:xn,key:f,sortOrder:B,multiplePriority:aa(xn)}),jn==null||jn(dr)},Kn.onKeyDown=dr=>{dr.keyCode===Ta.Z.ENTER&&(Et({column:xn,key:f,sortOrder:B,multiplePriority:aa(xn)}),ar==null||ar(dr))};const qn=Wr(xn.title,{}),rr=qn==null?void 0:qn.toString();return b&&(Kn["aria-sort"]=b==="ascend"?"ascending":"descending"),Kn["aria-label"]=rr||"",Kn.className=k()(Kn.className,`${be}-column-has-sorters`),Kn.tabIndex=0,xn.ellipsis&&(Kn.title=(qn!=null?qn:"").toString()),Kn}})}return"children"in Mn&&(Mn=Object.assign(Object.assign({},Mn),{children:Os(be,Mn.children,it,Et,Gt,nn,mn,Nn)})),Mn}),ys=be=>{const{column:ge,sortOrder:it}=be;return{column:ge,order:it,field:ge.dataIndex,columnKey:ge.key}},Ys=be=>{const ge=be.filter(it=>{let{sortOrder:Et}=it;return Et}).map(ys);if(ge.length===0&&be.length){const it=be.length-1;return Object.assign(Object.assign({},ys(be[it])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return ge.length<=1?ge[0]||{}:ge},Ls=(be,ge,it)=>{const Et=ge.slice().sort((mn,ln)=>ln.multiplePriority-mn.multiplePriority),Gt=be.slice(),nn=Et.filter(mn=>{let{column:{sorter:ln},sortOrder:_n}=mn;return Ma(ln)&&_n});return nn.length?Gt.sort((mn,ln)=>{for(let _n=0;_n<nn.length;_n+=1){const xn=nn[_n],{column:{sorter:Qn},sortOrder:Nn}=xn,Mn=Ma(Qn);if(Mn&&Nn){const U=Mn(mn,ln,Nn);if(U!==0)return Nn===Ki?U:-U}}return 0}).map(mn=>{const ln=mn[it];return ln?Object.assign(Object.assign({},mn),{[it]:Ls(ln,ge,it)}):mn}):Gt};var Xs=be=>{const{prefixCls:ge,mergedColumns:it,sortDirections:Et,tableLocale:Gt,showSorterTooltip:nn,onSorterChange:mn}=be,[ln,_n]=i.useState(ws(it,!0)),xn=(f,h)=>{const b=[];return f.forEach((B,q)=>{const Me=vr(q,h);if(b.push(pr(B,Me)),Array.isArray(B.children)){const et=xn(B.children,Me);b.push.apply(b,(0,Ze.Z)(et))}}),b},Qn=i.useMemo(()=>{let f=!0;const h=ws(it,!1);if(!h.length){const Me=xn(it);return ln.filter(et=>{let{key:yt}=et;return Me.includes(yt)})}const b=[];function B(Me){f?b.push(Me):b.push(Object.assign(Object.assign({},Me),{sortOrder:null}))}let q=null;return h.forEach(Me=>{q===null?(B(Me),Me.sortOrder&&(Me.multiplePriority===!1?f=!1:q=!0)):(q&&Me.multiplePriority!==!1||(f=!1),B(Me))}),b},[it,ln]),Nn=i.useMemo(()=>{var f,h;const b=Qn.map(B=>{let{column:q,sortOrder:Me}=B;return{column:q,order:Me}});return{sortColumns:b,sortColumn:(f=b[0])===null||f===void 0?void 0:f.column,sortOrder:(h=b[0])===null||h===void 0?void 0:h.order}},[Qn]),Mn=f=>{let h;f.multiplePriority===!1||!Qn.length||Qn[0].multiplePriority===!1?h=[f]:h=[].concat((0,Ze.Z)(Qn.filter(b=>{let{key:B}=b;return B!==f.key})),[f]),_n(h),mn(Ys(h),h)};return[f=>Os(ge,f,Qn,Mn,Et,Gt,nn),Qn,Nn,()=>Ys(Qn)]};const zs=(be,ge)=>be.map(Et=>{const Gt=Object.assign({},Et);return Gt.title=Pr(Et.title,ge),"children"in Gt&&(Gt.children=zs(Gt.children,ge)),Gt});var ja=be=>[i.useCallback(it=>zs(it,be),[be])],Bo=In((be,ge)=>{const{_renderTimes:it}=be,{_renderTimes:Et}=ge;return it!==Et}),oo=Tn((be,ge)=>{const{_renderTimes:it}=be,{_renderTimes:Et}=ge;return it!==Et}),ui=u(36237),Zs=u(17835),Qs=u(63356),Ms=u(16931),Js=u(51636),rl=be=>{const{componentCls:ge,lineWidth:it,lineType:Et,tableBorderColor:Gt,tableHeaderBg:nn,tablePaddingVertical:mn,tablePaddingHorizontal:ln,calc:_n}=be,xn=`${(0,ui.unit)(it)} ${Et} ${Gt}`,Qn=(Nn,Mn,U)=>({[`&${ge}-${Nn}`]:{[`> ${ge}-container`]:{[`> ${ge}-content, > ${ge}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ge}-expanded-row-fixed`]:{margin:`${(0,ui.unit)(_n(Mn).mul(-1).equal())}
|
|
|
${(0,ui.unit)(_n(_n(U).add(it)).mul(-1).equal())}`}}}}}});return{[`${ge}-wrapper`]:{[`${ge}${ge}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ge}-title`]:{border:xn,borderBottom:0},[`> ${ge}-container`]:{borderInlineStart:xn,borderTop:xn,[`
|
|
|
> ${ge}-content,
|
|
|
> ${ge}-header,
|
|
|
> ${ge}-body,
|
|
|
> ${ge}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:xn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:xn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ge}-cell-fix-right-first::after`]:{borderInlineEnd:xn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ge}-expanded-row-fixed`]:{margin:`${(0,ui.unit)(_n(mn).mul(-1).equal())} ${(0,ui.unit)(_n(_n(ln).add(it)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:it,bottom:0,borderInlineEnd:xn,content:'""'}}}}}},[`&${ge}-scroll-horizontal`]:{[`> ${ge}-container > ${ge}-body`]:{"> table > tbody":{[`
|
|
|
> tr${ge}-expanded-row,
|
|
|
> tr${ge}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Qn("middle",be.tablePaddingVerticalMiddle,be.tablePaddingHorizontalMiddle)),Qn("small",be.tablePaddingVerticalSmall,be.tablePaddingHorizontalSmall)),{[`> ${ge}-footer`]:{border:xn,borderTop:0}}),[`${ge}-cell`]:{[`${ge}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,ui.unit)(it)} 0 ${(0,ui.unit)(it)} ${nn}`}},[`${ge}-bordered ${ge}-cell-scrollbar`]:{borderInlineEnd:xn}}}},lo=be=>{const{componentCls:ge}=be;return{[`${ge}-wrapper`]:{[`${ge}-cell-ellipsis`]:Object.assign(Object.assign({},Qs.vS),{wordBreak:"keep-all",[`
|
|
|
&${ge}-cell-fix-left-last,
|
|
|
&${ge}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${ge}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ge}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Fo=be=>{const{componentCls:ge}=be;return{[`${ge}-wrapper`]:{[`${ge}-tbody > tr${ge}-placeholder`]:{textAlign:"center",color:be.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:be.colorBgContainer}}}}},$o=be=>{const{componentCls:ge,antCls:it,motionDurationSlow:Et,lineWidth:Gt,paddingXS:nn,lineType:mn,tableBorderColor:ln,tableExpandIconBg:_n,tableExpandColumnWidth:xn,borderRadius:Qn,tablePaddingVertical:Nn,tablePaddingHorizontal:Mn,tableExpandedRowBg:U,paddingXXS:c,expandIconMarginTop:f,expandIconSize:h,expandIconHalfInner:b,expandIconScale:B,calc:q}=be,Me=`${(0,ui.unit)(Gt)} ${mn} ${ln}`,et=q(c).sub(Gt).equal();return{[`${ge}-wrapper`]:{[`${ge}-expand-icon-col`]:{width:xn},[`${ge}-row-expand-icon-cell`]:{textAlign:"center",[`${ge}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ge}-row-indent`]:{height:1,float:"left"},[`${ge}-row-expand-icon`]:Object.assign(Object.assign({},(0,Qs.Nd)(be)),{position:"relative",float:"left",width:h,height:h,color:"inherit",lineHeight:(0,ui.unit)(h),background:_n,border:Me,borderRadius:Qn,transform:`scale(${B})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Et} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:et,insetInlineStart:et,height:Gt},"&::after":{top:et,bottom:et,insetInlineStart:b,width:Gt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${ge}-row-indent + ${ge}-row-expand-icon`]:{marginTop:f,marginInlineEnd:nn},[`tr${ge}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:U}},[`${it}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${ge}-expanded-row-fixed`]:{position:"relative",margin:`${(0,ui.unit)(q(Nn).mul(-1).equal())} ${(0,ui.unit)(q(Mn).mul(-1).equal())}`,padding:`${(0,ui.unit)(Nn)} ${(0,ui.unit)(Mn)}`}}}},Eo=be=>{const{componentCls:ge,antCls:it,iconCls:Et,tableFilterDropdownWidth:Gt,tableFilterDropdownSearchWidth:nn,paddingXXS:mn,paddingXS:ln,colorText:_n,lineWidth:xn,lineType:Qn,tableBorderColor:Nn,headerIconColor:Mn,fontSizeSM:U,tablePaddingHorizontal:c,borderRadius:f,motionDurationSlow:h,colorTextDescription:b,colorPrimary:B,tableHeaderFilterActiveBg:q,colorTextDisabled:Me,tableFilterDropdownBg:et,tableFilterDropdownHeight:yt,controlItemBgHover:Xt,controlItemBgActive:fn,boxShadowSecondary:Sn,filterDropdownMenuBg:kn,calc:Kn}=be,jn=`${it}-dropdown`,ar=`${ge}-filter-dropdown`,qn=`${it}-tree`,rr=`${(0,ui.unit)(xn)} ${Qn} ${Nn}`;return[{[`${ge}-wrapper`]:{[`${ge}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ge}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:Kn(mn).mul(-1).equal(),marginInline:`${(0,ui.unit)(mn)} ${(0,ui.unit)(Kn(c).div(2).mul(-1).equal())}`,padding:`0 ${(0,ui.unit)(mn)}`,color:Mn,fontSize:U,borderRadius:f,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:b,background:q},"&.active":{color:B}}}},{[`${it}-dropdown`]:{[ar]:Object.assign(Object.assign({},(0,Qs.Wf)(be)),{minWidth:Gt,backgroundColor:et,borderRadius:f,boxShadow:Sn,overflow:"hidden",[`${jn}-menu`]:{maxHeight:yt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:kn,"&:empty::after":{display:"block",padding:`${(0,ui.unit)(ln)} 0`,color:Me,fontSize:U,textAlign:"center",content:'"Not Found"'}},[`${ar}-tree`]:{paddingBlock:`${(0,ui.unit)(ln)} 0`,paddingInline:ln,[qn]:{padding:0},[`${qn}-treenode ${qn}-node-content-wrapper:hover`]:{backgroundColor:Xt},[`${qn}-treenode-checkbox-checked ${qn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:fn}}},[`${ar}-search`]:{padding:ln,borderBottom:rr,"&-input":{input:{minWidth:nn},[Et]:{color:Me}}},[`${ar}-checkall`]:{width:"100%",marginBottom:mn,marginInlineStart:mn},[`${ar}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,ui.unit)(Kn(ln).sub(xn).equal())} ${(0,ui.unit)(ln)}`,overflow:"hidden",borderTop:rr}})}},{[`${it}-dropdown ${ar}, ${ar}-submenu`]:{[`${it}-checkbox-wrapper + span`]:{paddingInlineStart:ln,color:_n},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},eo=be=>{const{componentCls:ge,lineWidth:it,colorSplit:Et,motionDurationSlow:Gt,zIndexTableFixed:nn,tableBg:mn,zIndexTableSticky:ln,calc:_n}=be,xn=Et;return{[`${ge}-wrapper`]:{[`
|
|
|
${ge}-cell-fix-left,
|
|
|
${ge}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:nn,background:mn},[`
|
|
|
${ge}-cell-fix-left-first::after,
|
|
|
${ge}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:_n(it).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Gt}`,content:'""',pointerEvents:"none"},[`${ge}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${ge}-cell-fix-right-first::after,
|
|
|
${ge}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:_n(it).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Gt}`,content:'""',pointerEvents:"none"},[`${ge}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:_n(ln).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Gt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ge}-ping-left`]:{[`&:not(${ge}-has-fix-left) ${ge}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${xn}`},[`
|
|
|
${ge}-cell-fix-left-first::after,
|
|
|
${ge}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${xn}`},[`${ge}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ge}-ping-right`]:{[`&:not(${ge}-has-fix-right) ${ge}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${xn}`},[`
|
|
|
${ge}-cell-fix-right-first::after,
|
|
|
${ge}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${xn}`}},[`${ge}-fixed-column-gapped`]:{[`
|
|
|
${ge}-cell-fix-left-first::after,
|
|
|
${ge}-cell-fix-left-last::after,
|
|
|
${ge}-cell-fix-right-first::after,
|
|
|
${ge}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:"none"}}}}},zo=be=>{const{componentCls:ge,antCls:it,margin:Et}=be;return{[`${ge}-wrapper`]:{[`${ge}-pagination${it}-pagination`]:{margin:`${(0,ui.unit)(Et)} 0`},[`${ge}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:be.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Uo=be=>{const{componentCls:ge,tableRadius:it}=be;return{[`${ge}-wrapper`]:{[ge]:{[`${ge}-title, ${ge}-header`]:{borderRadius:`${(0,ui.unit)(it)} ${(0,ui.unit)(it)} 0 0`},[`${ge}-title + ${ge}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ge}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:it,borderStartEndRadius:it,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:it},"> *:last-child":{borderStartEndRadius:it}}},"&-footer":{borderRadius:`0 0 ${(0,ui.unit)(it)} ${(0,ui.unit)(it)}`}}}}},Ko=be=>{const{componentCls:ge}=be;return{[`${ge}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ge}-pagination-left`]:{justifyContent:"flex-end"},[`${ge}-pagination-right`]:{justifyContent:"flex-start"},[`${ge}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ge}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ge}-row-indent`]:{float:"right"}}}}},co=be=>{const{componentCls:ge,antCls:it,iconCls:Et,fontSizeIcon:Gt,padding:nn,paddingXS:mn,headerIconColor:ln,headerIconHoverColor:_n,tableSelectionColumnWidth:xn,tableSelectedRowBg:Qn,tableSelectedRowHoverBg:Nn,tableRowHoverBg:Mn,tablePaddingHorizontal:U,calc:c}=be;return{[`${ge}-wrapper`]:{[`${ge}-selection-col`]:{width:xn,[`&${ge}-selection-col-with-dropdown`]:{width:c(xn).add(Gt).add(c(nn).div(4)).equal()}},[`${ge}-bordered ${ge}-selection-col`]:{width:c(xn).add(c(mn).mul(2)).equal(),[`&${ge}-selection-col-with-dropdown`]:{width:c(xn).add(Gt).add(c(nn).div(4)).add(c(mn).mul(2)).equal()}},[`
|
|
|
table tr th${ge}-selection-column,
|
|
|
table tr td${ge}-selection-column,
|
|
|
${ge}-selection-column
|
|
|
`]:{paddingInlineEnd:be.paddingXS,paddingInlineStart:be.paddingXS,textAlign:"center",[`${it}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ge}-selection-column${ge}-cell-fix-left`]:{zIndex:c(be.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${ge}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ge}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ge}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${be.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,ui.unit)(c(U).div(4).equal()),[Et]:{color:ln,fontSize:Gt,verticalAlign:"baseline","&:hover":{color:_n}}},[`${ge}-tbody`]:{[`${ge}-row`]:{[`&${ge}-row-selected`]:{[`> ${ge}-cell`]:{background:Qn,"&-row-hover":{background:Nn}}},[`> ${ge}-cell-row-hover`]:{background:Mn}}}}}},Co=be=>{const{componentCls:ge,tableExpandColumnWidth:it,calc:Et}=be,Gt=(nn,mn,ln,_n)=>({[`${ge}${ge}-${nn}`]:{fontSize:_n,[`
|
|
|
${ge}-title,
|
|
|
${ge}-footer,
|
|
|
${ge}-cell,
|
|
|
${ge}-thead > tr > th,
|
|
|
${ge}-tbody > tr > th,
|
|
|
${ge}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${(0,ui.unit)(mn)} ${(0,ui.unit)(ln)}`},[`${ge}-filter-trigger`]:{marginInlineEnd:(0,ui.unit)(Et(ln).div(2).mul(-1).equal())},[`${ge}-expanded-row-fixed`]:{margin:`${(0,ui.unit)(Et(mn).mul(-1).equal())} ${(0,ui.unit)(Et(ln).mul(-1).equal())}`},[`${ge}-tbody`]:{[`${ge}-wrapper:only-child ${ge}`]:{marginBlock:(0,ui.unit)(Et(mn).mul(-1).equal()),marginInline:`${(0,ui.unit)(Et(it).sub(ln).equal())} ${(0,ui.unit)(Et(ln).mul(-1).equal())}`}},[`${ge}-selection-extra`]:{paddingInlineStart:(0,ui.unit)(Et(ln).div(4).equal())}}});return{[`${ge}-wrapper`]:Object.assign(Object.assign({},Gt("middle",be.tablePaddingVerticalMiddle,be.tablePaddingHorizontalMiddle,be.tableFontSizeMiddle)),Gt("small",be.tablePaddingVerticalSmall,be.tablePaddingHorizontalSmall,be.tableFontSizeSmall))}},al=be=>{const{componentCls:ge,marginXXS:it,fontSizeIcon:Et,headerIconColor:Gt,headerIconHoverColor:nn}=be;return{[`${ge}-wrapper`]:{[`${ge}-thead th${ge}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${be.motionDurationSlow}, left 0s`,"&:hover":{background:be.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:be.colorPrimary},[`
|
|
|
&${ge}-cell-fix-left:hover,
|
|
|
&${ge}-cell-fix-right:hover
|
|
|
`]:{background:be.tableFixedHeaderSortActiveBg}},[`${ge}-thead th${ge}-column-sort`]:{background:be.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ge}-column-sort`]:{background:be.tableBodySortBg},[`${ge}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${ge}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ge}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${ge}-column-sorter`]:{marginInlineStart:it,color:Gt,fontSize:0,transition:`color ${be.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Et,"&.active":{color:be.colorPrimary}},[`${ge}-column-sorter-up + ${ge}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ge}-column-sorters:hover ${ge}-column-sorter`]:{color:nn}}}},wo=be=>{const{componentCls:ge,opacityLoading:it,tableScrollThumbBg:Et,tableScrollThumbBgHover:Gt,tableScrollThumbSize:nn,tableScrollBg:mn,zIndexTableSticky:ln,stickyScrollBarBorderRadius:_n,lineWidth:xn,lineType:Qn,tableBorderColor:Nn}=be,Mn=`${(0,ui.unit)(xn)} ${Qn} ${Nn}`;return{[`${ge}-wrapper`]:{[`${ge}-sticky`]:{"&-holder":{position:"sticky",zIndex:ln,background:be.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,ui.unit)(nn)} !important`,zIndex:ln,display:"flex",alignItems:"center",background:mn,borderTop:Mn,opacity:it,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:nn,backgroundColor:Et,borderRadius:_n,transition:`all ${be.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Gt}}}}}}},go=be=>{const{componentCls:ge,lineWidth:it,tableBorderColor:Et,calc:Gt}=be,nn=`${(0,ui.unit)(it)} ${be.lineType} ${Et}`;return{[`${ge}-wrapper`]:{[`${ge}-summary`]:{position:"relative",zIndex:be.zIndexTableFixed,background:be.tableBg,"> tr":{"> th, > td":{borderBottom:nn}}},[`div${ge}-summary`]:{boxShadow:`0 ${(0,ui.unit)(Gt(it).mul(-1).equal())} 0 ${Et}`}}}},ll=be=>{const{componentCls:ge,motionDurationMid:it,lineWidth:Et,lineType:Gt,tableBorderColor:nn,calc:mn}=be,ln=`${(0,ui.unit)(Et)} ${Gt} ${nn}`,_n=`${ge}-expanded-row-cell`;return{[`${ge}-wrapper`]:{[`${ge}-tbody-virtual`]:{[`${ge}-tbody-virtual-holder-inner`]:{[`
|
|
|
& > ${ge}-row,
|
|
|
& > div:not(${ge}-row) > ${ge}-row
|
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${ge}-cell`]:{borderBottom:ln,transition:`background ${it}`},[`${ge}-expanded-row`]:{[`${_n}${_n}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,ui.unit)(Et)})`,borderInlineEnd:"none"}}},[`${ge}-bordered`]:{[`${ge}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:ln,position:"absolute"},[`${ge}-cell`]:{borderInlineEnd:ln,[`&${ge}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:mn(Et).mul(-1).equal(),borderInlineStart:ln}}},[`&${ge}-virtual`]:{[`${ge}-placeholder ${ge}-cell`]:{borderInlineEnd:ln,borderBottom:ln}}}}}};const Ho=be=>{const{componentCls:ge,fontWeightStrong:it,tablePaddingVertical:Et,tablePaddingHorizontal:Gt,tableExpandColumnWidth:nn,lineWidth:mn,lineType:ln,tableBorderColor:_n,tableFontSize:xn,tableBg:Qn,tableRadius:Nn,tableHeaderTextColor:Mn,motionDurationMid:U,tableHeaderBg:c,tableHeaderCellSplitColor:f,tableFooterTextColor:h,tableFooterBg:b,calc:B}=be,q=`${(0,ui.unit)(mn)} ${ln} ${_n}`;return{[`${ge}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Qs.dF)()),{[ge]:Object.assign(Object.assign({},(0,Qs.Wf)(be)),{fontSize:xn,background:Qn,borderRadius:`${(0,ui.unit)(Nn)} ${(0,ui.unit)(Nn)} 0 0`,scrollbarColor:`${be.tableScrollThumbBg} ${be.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,ui.unit)(Nn)} ${(0,ui.unit)(Nn)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${ge}-cell,
|
|
|
${ge}-thead > tr > th,
|
|
|
${ge}-tbody > tr > th,
|
|
|
${ge}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${(0,ui.unit)(Et)} ${(0,ui.unit)(Gt)}`,overflowWrap:"break-word"},[`${ge}-title`]:{padding:`${(0,ui.unit)(Et)} ${(0,ui.unit)(Gt)}`},[`${ge}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Mn,fontWeight:it,textAlign:"start",background:c,borderBottom:q,transition:`background ${U} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ge}-selection-column):not(${ge}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:f,transform:"translateY(-50%)",transition:`background-color ${U}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ge}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${U}, border-color ${U}`,borderBottom:q,[`
|
|
|
> ${ge}-wrapper:only-child,
|
|
|
> ${ge}-expanded-row-fixed > ${ge}-wrapper:only-child
|
|
|
`]:{[ge]:{marginBlock:(0,ui.unit)(B(Et).mul(-1).equal()),marginInline:`${(0,ui.unit)(B(nn).sub(Gt).equal())}
|
|
|
${(0,ui.unit)(B(Gt).mul(-1).equal())}`,[`${ge}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Mn,fontWeight:it,textAlign:"start",background:c,borderBottom:q,transition:`background ${U} ease`}}},[`${ge}-footer`]:{padding:`${(0,ui.unit)(Et)} ${(0,ui.unit)(Gt)}`,color:h,background:b}})}},ul=be=>{const{colorFillAlter:ge,colorBgContainer:it,colorTextHeading:Et,colorFillSecondary:Gt,colorFillContent:nn,controlItemBgActive:mn,controlItemBgActiveHover:ln,padding:_n,paddingSM:xn,paddingXS:Qn,colorBorderSecondary:Nn,borderRadiusLG:Mn,controlHeight:U,colorTextPlaceholder:c,fontSize:f,fontSizeSM:h,lineHeight:b,lineWidth:B,colorIcon:q,colorIconHover:Me,opacityLoading:et,controlInteractiveSize:yt}=be,Xt=new Zs.FastColor(Gt).onBackground(it).toHexString(),fn=new Zs.FastColor(nn).onBackground(it).toHexString(),Sn=new Zs.FastColor(ge).onBackground(it).toHexString(),kn=new Zs.FastColor(q),Kn=new Zs.FastColor(Me),jn=yt/2-B,ar=jn*2+B*3;return{headerBg:Sn,headerColor:Et,headerSortActiveBg:Xt,headerSortHoverBg:fn,bodySortBg:Sn,rowHoverBg:Sn,rowSelectedBg:mn,rowSelectedHoverBg:ln,rowExpandedBg:ge,cellPaddingBlock:_n,cellPaddingInline:_n,cellPaddingBlockMD:xn,cellPaddingInlineMD:Qn,cellPaddingBlockSM:Qn,cellPaddingInlineSM:Qn,borderColor:Nn,headerBorderRadius:Mn,footerBg:Sn,footerColor:Et,cellFontSize:f,cellFontSizeMD:f,cellFontSizeSM:f,headerSplitColor:Nn,fixedHeaderSortActiveBg:Xt,headerFilterHoverBg:nn,filterDropdownMenuBg:it,filterDropdownBg:it,expandIconBg:it,selectionColumnWidth:U,stickyScrollBarBg:c,stickyScrollBarBorderRadius:100,expandIconMarginTop:(f*b-B*3)/2-Math.ceil((h*1.4-B*3)/2),headerIconColor:kn.clone().setA(kn.a*et).toRgbString(),headerIconHoverColor:Kn.clone().setA(Kn.a*et).toRgbString(),expandIconHalfInner:jn,expandIconSize:ar,expandIconScale:yt/ar}},Zt=2;var Wo=(0,Ms.I$)("Table",be=>{const{colorTextHeading:ge,colorSplit:it,colorBgContainer:Et,controlInteractiveSize:Gt,headerBg:nn,headerColor:mn,headerSortActiveBg:ln,headerSortHoverBg:_n,bodySortBg:xn,rowHoverBg:Qn,rowSelectedBg:Nn,rowSelectedHoverBg:Mn,rowExpandedBg:U,cellPaddingBlock:c,cellPaddingInline:f,cellPaddingBlockMD:h,cellPaddingInlineMD:b,cellPaddingBlockSM:B,cellPaddingInlineSM:q,borderColor:Me,footerBg:et,footerColor:yt,headerBorderRadius:Xt,cellFontSize:fn,cellFontSizeMD:Sn,cellFontSizeSM:kn,headerSplitColor:Kn,fixedHeaderSortActiveBg:jn,headerFilterHoverBg:ar,filterDropdownBg:qn,expandIconBg:rr,selectionColumnWidth:dr,stickyScrollBarBg:Tr,calc:Or}=be,hr=(0,Js.mergeToken)(be,{tableFontSize:fn,tableBg:Et,tableRadius:Xt,tablePaddingVertical:c,tablePaddingHorizontal:f,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:B,tablePaddingHorizontalSmall:q,tableBorderColor:Me,tableHeaderTextColor:mn,tableHeaderBg:nn,tableFooterTextColor:yt,tableFooterBg:et,tableHeaderCellSplitColor:Kn,tableHeaderSortBg:ln,tableHeaderSortHoverBg:_n,tableBodySortBg:xn,tableFixedHeaderSortActiveBg:jn,tableHeaderFilterActiveBg:ar,tableFilterDropdownBg:qn,tableRowHoverBg:Qn,tableSelectedRowBg:Nn,tableSelectedRowHoverBg:Mn,zIndexTableFixed:Zt,zIndexTableSticky:Or(Zt).add(1).equal({unit:!1}),tableFontSizeMiddle:Sn,tableFontSizeSmall:kn,tableSelectionColumnWidth:dr,tableExpandIconBg:rr,tableExpandColumnWidth:Or(Gt).add(Or(be.padding).mul(2)).equal(),tableExpandedRowBg:U,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Tr,tableScrollThumbBgHover:ge,tableScrollBg:it});return[Ho(hr),zo(hr),go(hr),al(hr),Eo(hr),rl(hr),Uo(hr),$o(hr),go(hr),Fo(hr),co(hr),eo(hr),wo(hr),lo(hr),Co(hr),Ko(hr),ll(hr)]},ul,{unitless:{expandIconScale:!0}});const To=[],Ao=(be,ge)=>{var it,Et;const{prefixCls:Gt,className:nn,rootClassName:mn,style:ln,size:_n,bordered:xn,dropdownPrefixCls:Qn,dataSource:Nn,pagination:Mn,rowSelection:U,rowKey:c="key",rowClassName:f,columns:h,children:b,childrenColumnName:B,onChange:q,getPopupContainer:Me,loading:et,expandIcon:yt,expandable:Xt,expandedRowRender:fn,expandIconColumnIndex:Sn,indentSize:kn,scroll:Kn,sortDirections:jn,locale:ar,showSorterTooltip:qn={target:"full-header"},virtual:rr}=be,dr=(0,Jt.ln)("Table"),Tr=i.useMemo(()=>h||Mt(b),[h,b]),Or=i.useMemo(()=>Tr.some(xi=>xi.responsive),[Tr]),hr=(0,Di.Z)(Or),Gr=i.useMemo(()=>{const xi=new Set(Object.keys(hr).filter(qi=>hr[qi]));return Tr.filter(qi=>!qi.responsive||qi.responsive.some(ha=>xi.has(ha)))},[Tr,hr]),qr=(0,yi.Z)(be,["className","style","columns"]),{locale:Ri=ra.Z,direction:bi,table:hn,renderEmpty:Li,getPrefixCls:ya,getPopupContainer:vi}=i.useContext(Wi.E_),li=(0,Vr.Z)(_n),ca=Object.assign(Object.assign({},Ri.Table),ar),da=Nn||To,Xr=ya("table",Gt),gi=ya("dropdown",Qn),[,zr]=(0,ki.ZP)(),Yr=(0,Ni.Z)(Xr),[Si,Ii,ea]=Wo(Xr,Yr),Qi=Object.assign(Object.assign({childrenColumnName:B,expandIconColumnIndex:Sn},Xt),{expandIcon:(it=Xt==null?void 0:Xt.expandIcon)!==null&&it!==void 0?it:(Et=hn==null?void 0:hn.expandable)===null||Et===void 0?void 0:Et.expandIcon}),{childrenColumnName:sa="children"}=Qi,ka=i.useMemo(()=>da.some(xi=>xi==null?void 0:xi[sa])?"nest":fn||Xt!=null&&Xt.expandedRowRender?"row":null,[da]),Qr={body:i.useRef(null)},ii=ei(Xr),Bi=i.useRef(null),ta=i.useRef(null);wi(ge,()=>Object.assign(Object.assign({},ta.current),{nativeElement:Bi.current}));const Fi=i.useMemo(()=>typeof c=="function"?c:xi=>xi==null?void 0:xi[c],[c]),[Ha]=Za(da,sa,Fi),ga={},os=function(xi,qi){let ha=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Oa,ns,_s,Ts;const Ga=Object.assign(Object.assign({},ga),xi);ha&&((Oa=ga.resetPagination)===null||Oa===void 0||Oa.call(ga),!((ns=Ga.pagination)===null||ns===void 0)&&ns.current&&(Ga.pagination.current=1),Mn&&((_s=Mn.onChange)===null||_s===void 0||_s.call(Mn,1,(Ts=Ga.pagination)===null||Ts===void 0?void 0:Ts.pageSize))),Kn&&Kn.scrollToFirstRowOnChange!==!1&&Qr.body.current&&(0,Yi.Z)(0,{getContainer:()=>Qr.body.current}),q==null||q(Ga.pagination,Ga.filters,Ga.sorter,{currentDataSource:mi(Ls(da,Ga.sorterStates,sa),Ga.filterStates,sa),action:qi})},ba=(xi,qi)=>{os({sorter:xi,sorterStates:qi},"sort",!1)},[Ji,fa,oa,Na]=Xs({prefixCls:Xr,mergedColumns:Gr,onSorterChange:ba,sortDirections:jn||["ascend","descend"],tableLocale:ca,showSorterTooltip:qn}),Ra=i.useMemo(()=>Ls(da,fa,sa),[da,fa]);ga.sorter=Na(),ga.sorterStates=fa;const Gi=(xi,qi)=>{os({filters:xi,filterStates:qi},"filter",!0)},[Ca,la,Va]=Ui({prefixCls:Xr,locale:ca,dropdownPrefixCls:gi,mergedColumns:Gr,onFilterChange:Gi,getPopupContainer:Me||vi,rootClassName:k()(mn,Yr)}),wa=mi(Ra,la,sa);ga.filters=Va,ga.filterStates=la;const Ja=i.useMemo(()=>{const xi={};return Object.keys(Va).forEach(qi=>{Va[qi]!==null&&(xi[qi]=Va[qi])}),Object.assign(Object.assign({},oa),{filters:xi})},[oa,Va]),[xs]=ja(Ja),fo=(xi,qi)=>{os({pagination:Object.assign(Object.assign({},ga.pagination),{current:xi,pageSize:qi})},"paginate")},[_a,Do]=Xa(wa.length,fo,Mn);ga.pagination=Mn===!1?{}:Pa(_a,Mn),ga.resetPagination=Do;const qa=i.useMemo(()=>{if(Mn===!1||!_a.pageSize)return wa;const{current:xi=1,total:qi,pageSize:ha=rs}=_a;return wa.length<qi?wa.length>ha?wa.slice((xi-1)*ha,xi*ha):wa:wa.slice((xi-1)*ha,xi*ha)},[!!Mn,wa,_a==null?void 0:_a.current,_a==null?void 0:_a.pageSize,_a==null?void 0:_a.total]),[ms,ps]=fr({prefixCls:Xr,data:wa,pageData:qa,getRowKey:Fi,getRecordByKey:Ha,expandType:ka,childrenColumnName:sa,locale:ca,getPopupContainer:Me||vi},U),is=(xi,qi,ha)=>{let Oa;return typeof f=="function"?Oa=k()(f(xi,qi,ha)):Oa=k()(f),k()({[`${Xr}-row-selected`]:ps.has(Fi(xi,qi))},Oa)};Qi.__PARENT_RENDER_ICON__=Qi.expandIcon,Qi.expandIcon=Qi.expandIcon||yt||Br(ca),ka==="nest"&&Qi.expandIconColumnIndex===void 0?Qi.expandIconColumnIndex=U?1:0:Qi.expandIconColumnIndex>0&&U&&(Qi.expandIconColumnIndex-=1),typeof Qi.indentSize!="number"&&(Qi.indentSize=typeof kn=="number"?kn:15);const es=i.useCallback(xi=>xs(ms(Ca(Ji(xi)))),[Ji,Ca,ms]);let Es,ks;if(Mn!==!1&&(_a!=null&&_a.total)){let xi;_a.size?xi=_a.size:xi=li==="small"||li==="middle"?"small":void 0;const qi=ns=>i.createElement(zi.Z,Object.assign({},_a,{className:k()(`${Xr}-pagination ${Xr}-pagination-${ns}`,_a.className),size:xi})),ha=bi==="rtl"?"left":"right",{position:Oa}=_a;if(Oa!==null&&Array.isArray(Oa)){const ns=Oa.find(Ga=>Ga.includes("top")),_s=Oa.find(Ga=>Ga.includes("bottom")),Ts=Oa.every(Ga=>`${Ga}`=="none");!ns&&!_s&&!Ts&&(ks=qi(ha)),ns&&(Es=qi(ns.toLowerCase().replace("top",""))),_s&&(ks=qi(_s.toLowerCase().replace("bottom","")))}else ks=qi(ha)}let Ss;typeof et=="boolean"?Ss={spinning:et}:typeof et=="object"&&(Ss=Object.assign({spinning:!0},et));const Us=k()(ea,Yr,`${Xr}-wrapper`,hn==null?void 0:hn.className,{[`${Xr}-wrapper-rtl`]:bi==="rtl"},nn,mn,Ii),ts=Object.assign(Object.assign({},hn==null?void 0:hn.style),ln),Al=typeof(ar==null?void 0:ar.emptyText)!="undefined"?ar.emptyText:(Li==null?void 0:Li("Table"))||i.createElement(Mi.Z,{componentName:"Table"}),cl=rr?oo:Bo,gs={},dl=i.useMemo(()=>{const{fontSize:xi,lineHeight:qi,lineWidth:ha,padding:Oa,paddingXS:ns,paddingSM:_s}=zr,Ts=Math.floor(xi*qi);switch(li){case"middle":return _s*2+Ts+ha;case"small":return ns*2+Ts+ha;default:return Oa*2+Ts+ha}},[zr,li]);return rr&&(gs.listItemHeight=dl),Si(i.createElement("div",{ref:Bi,className:Us,style:ts},i.createElement(hi.Z,Object.assign({spinning:!1},Ss),Es,i.createElement(cl,Object.assign({},gs,qr,{ref:ta,columns:Gr,direction:bi,expandable:Qi,prefixCls:Xr,className:k()({[`${Xr}-middle`]:li==="middle",[`${Xr}-small`]:li==="small",[`${Xr}-bordered`]:xn,[`${Xr}-empty`]:da.length===0},ea,Yr,Ii),data:qa,rowKey:Fi,rowClassName:is,emptyText:Al,internalHooks:L,internalRefs:Qr,transformColumns:es,getContainerWidth:ii})),ks)))};var Vo=i.forwardRef(Ao);const to=(be,ge)=>{const it=i.useRef(0);return it.current+=1,i.createElement(Vo,Object.assign({},be,{ref:ge,_renderTimes:it.current}))},bs=i.forwardRef(to);bs.SELECTION_COLUMN=xr,bs.EXPAND_COLUMN=K,bs.SELECTION_ALL=jr,bs.SELECTION_INVERT=wr,bs.SELECTION_NONE=ni,bs.Column=Er,bs.ColumnGroup=yr,bs.Summary=Te;var Io=bs,Go=Io},31691:function($n,Rt,u){"use strict";u.d(Rt,{default:function(){return Mt}});var i=u(59301),K=u(99267),L=u(18785),he=u(62772),Z=u(92310),g=u.n(Z),W=u(60499),Y=u(18642),l=u(85899),x=u(72190),N=u(43749),y=u(42244),T=u(18929),A=u(49658),$=(0,i.createContext)(null),H=u(77654),X=u(29301),V=u(6089),R=u(8654),Q=u(16089),O=function(ve){var At=ve.activeTabOffset,Be=ve.horizontal,Le=ve.rtl,ae=ve.indicator,Re=ae===void 0?{}:ae,$e=Re.size,He=Re.align,ut=He===void 0?"center":He,rn=(0,i.useState)(),on=(0,x.Z)(rn,2),Ve=on[0],lt=on[1],wt=(0,i.useRef)(),Qt=i.useCallback(function(ye){return typeof $e=="function"?$e(ye):typeof $e=="number"?$e:ye},[$e]);function Yt(){Q.Z.cancel(wt.current)}return(0,i.useEffect)(function(){var ye={};if(At)if(Be){ye.width=Qt(At.width);var at=Le?"right":"left";ut==="start"&&(ye[at]=At[at]),ut==="center"&&(ye[at]=At[at]+At.width/2,ye.transform=Le?"translateX(50%)":"translateX(-50%)"),ut==="end"&&(ye[at]=At[at]+At.width,ye.transform="translateX(-100%)")}else ye.height=Qt(At.height),ut==="start"&&(ye.top=At.top),ut==="center"&&(ye.top=At.top+At.height/2,ye.transform="translateY(-50%)"),ut==="end"&&(ye.top=At.top+At.height,ye.transform="translateY(-100%)");return Yt(),wt.current=(0,Q.Z)(function(){lt(ye)}),Yt},[At,Be,Le,ut,Qt]),{style:Ve}},I=O,ue={width:0,height:0,left:0,top:0};function Se(ie,ve,At){return(0,i.useMemo)(function(){for(var Be,Le=new Map,ae=ve.get((Be=ie[0])===null||Be===void 0?void 0:Be.key)||ue,Re=ae.left+ae.width,$e=0;$e<ie.length;$e+=1){var He=ie[$e].key,ut=ve.get(He);if(!ut){var rn;ut=ve.get((rn=ie[$e-1])===null||rn===void 0?void 0:rn.key)||ue}var on=Le.get(He)||(0,l.Z)({},ut);on.right=Re-on.left-on.width,Le.set(He,on)}return Le},[ie.map(function(Be){return Be.key}).join("_"),ve,At])}function me(ie,ve){var At=i.useRef(ie),Be=i.useState({}),Le=(0,x.Z)(Be,2),ae=Le[1];function Re($e){var He=typeof $e=="function"?$e(At.current):$e;He!==At.current&&ve(He,At.current),At.current=He,ae({})}return[At.current,Re]}var Ke=.1,Je=.01,ke=20,We=Math.pow(.995,ke);function oe(ie,ve){var At=(0,i.useState)(),Be=(0,x.Z)(At,2),Le=Be[0],ae=Be[1],Re=(0,i.useState)(0),$e=(0,x.Z)(Re,2),He=$e[0],ut=$e[1],rn=(0,i.useState)(0),on=(0,x.Z)(rn,2),Ve=on[0],lt=on[1],wt=(0,i.useState)(),Qt=(0,x.Z)(wt,2),Yt=Qt[0],ye=Qt[1],at=(0,i.useRef)();function Lt(vn){var En=vn.touches[0],Rn=En.screenX,bn=En.screenY;ae({x:Rn,y:bn}),window.clearInterval(at.current)}function Dt(vn){if(Le){var En=vn.touches[0],Rn=En.screenX,bn=En.screenY;ae({x:Rn,y:bn});var Cn=Rn-Le.x,Bn=bn-Le.y;ve(Cn,Bn);var Pn=Date.now();ut(Pn),lt(Pn-He),ye({x:Cn,y:Bn})}}function zt(){if(Le&&(ae(null),ye(null),Yt)){var vn=Yt.x/Ve,En=Yt.y/Ve,Rn=Math.abs(vn),bn=Math.abs(En);if(Math.max(Rn,bn)<Ke)return;var Cn=vn,Bn=En;at.current=window.setInterval(function(){if(Math.abs(Cn)<Je&&Math.abs(Bn)<Je){window.clearInterval(at.current);return}Cn*=We,Bn*=We,ve(Cn*ke,Bn*ke)},ke)}}var an=(0,i.useRef)();function un(vn){var En=vn.deltaX,Rn=vn.deltaY,bn=0,Cn=Math.abs(En),Bn=Math.abs(Rn);Cn===Bn?bn=an.current==="x"?En:Rn:Cn>Bn?(bn=En,an.current="x"):(bn=Rn,an.current="y"),ve(-bn,-bn)&&vn.preventDefault()}var sn=(0,i.useRef)(null);sn.current={onTouchStart:Lt,onTouchMove:Dt,onTouchEnd:zt,onWheel:un},i.useEffect(function(){function vn(Cn){sn.current.onTouchStart(Cn)}function En(Cn){sn.current.onTouchMove(Cn)}function Rn(Cn){sn.current.onTouchEnd(Cn)}function bn(Cn){sn.current.onWheel(Cn)}return document.addEventListener("touchmove",En,{passive:!1}),document.addEventListener("touchend",Rn,{passive:!0}),ie.current.addEventListener("touchstart",vn,{passive:!0}),ie.current.addEventListener("wheel",bn,{passive:!1}),function(){document.removeEventListener("touchmove",En),document.removeEventListener("touchend",Rn)}},[])}var k=u(34280);function _(ie){var ve=(0,i.useState)(0),At=(0,x.Z)(ve,2),Be=At[0],Le=At[1],ae=(0,i.useRef)(0),Re=(0,i.useRef)();return Re.current=ie,(0,k.o)(function(){var $e;($e=Re.current)===null||$e===void 0||$e.call(Re)},[Be]),function(){ae.current===Be&&(ae.current+=1,Le(ae.current))}}function ee(ie){var ve=(0,i.useRef)([]),At=(0,i.useState)({}),Be=(0,x.Z)(At,2),Le=Be[1],ae=(0,i.useRef)(typeof ie=="function"?ie():ie),Re=_(function(){var He=ae.current;ve.current.forEach(function(ut){He=ut(He)}),ve.current=[],ae.current=He,Le({})});function $e(He){ve.current.push(He),Re()}return[ae.current,$e]}var ne={width:0,height:0,left:0,top:0,right:0};function se(ie,ve,At,Be,Le,ae,Re){var $e=Re.tabs,He=Re.tabPosition,ut=Re.rtl,rn,on,Ve;return["top","bottom"].includes(He)?(rn="width",on=ut?"right":"left",Ve=Math.abs(At)):(rn="height",on="top",Ve=-At),(0,i.useMemo)(function(){if(!$e.length)return[0,0];for(var lt=$e.length,wt=lt,Qt=0;Qt<lt;Qt+=1){var Yt=ie.get($e[Qt].key)||ne;if(Math.floor(Yt[on]+Yt[rn])>Math.floor(Ve+ve)){wt=Qt-1;break}}for(var ye=0,at=lt-1;at>=0;at-=1){var Lt=ie.get($e[at].key)||ne;if(Lt[on]<Ve){ye=at+1;break}}return ye>=wt?[0,0]:[ye,wt]},[ie,ve,Be,Le,ae,Ve,He,$e.map(function(lt){return lt.key}).join("_"),ut])}function w(ie){var ve;return ie instanceof Map?(ve={},ie.forEach(function(At,Be){ve[Be]=At})):ve=ie,JSON.stringify(ve)}var D="TABS_DQ";function ce(ie){return String(ie).replace(/"/g,D)}function Oe(ie,ve,At,Be){return!(!At||Be||ie===!1||ie===void 0&&(ve===!1||ve===null))}var ct=i.forwardRef(function(ie,ve){var At=ie.prefixCls,Be=ie.editable,Le=ie.locale,ae=ie.style;return!Be||Be.showAdd===!1?null:i.createElement("button",{ref:ve,type:"button",className:"".concat(At,"-nav-add"),style:ae,"aria-label":(Le==null?void 0:Le.addAriaLabel)||"Add tab",onClick:function($e){Be.onEdit("add",{event:$e})}},Be.addIcon||"+")}),Tt=ct,Ae=i.forwardRef(function(ie,ve){var At=ie.position,Be=ie.prefixCls,Le=ie.extra;if(!Le)return null;var ae,Re={};return(0,N.Z)(Le)==="object"&&!i.isValidElement(Le)?Re=Le:Re.right=Le,At==="right"&&(ae=Re.right),At==="left"&&(ae=Re.left),ae?i.createElement("div",{className:"".concat(Be,"-extra-content"),ref:ve},ae):null}),qe=Ae,ht=u(96478),tt=u(28321),Fe=u(10228),jt=i.forwardRef(function(ie,ve){var At=ie.prefixCls,Be=ie.id,Le=ie.tabs,ae=ie.locale,Re=ie.mobile,$e=ie.more,He=$e===void 0?{}:$e,ut=ie.style,rn=ie.className,on=ie.editable,Ve=ie.tabBarGutter,lt=ie.rtl,wt=ie.removeAriaLabel,Qt=ie.onTabClick,Yt=ie.getPopupContainer,ye=ie.popupClassName,at=(0,i.useState)(!1),Lt=(0,x.Z)(at,2),Dt=Lt[0],zt=Lt[1],an=(0,i.useState)(null),un=(0,x.Z)(an,2),sn=un[0],vn=un[1],En=He.icon,Rn=En===void 0?"More":En,bn="".concat(Be,"-more-popup"),Cn="".concat(At,"-dropdown"),Bn=sn!==null?"".concat(bn,"-").concat(sn):null,Pn=ae==null?void 0:ae.dropdownAriaLabel;function ir(tn,yn){tn.preventDefault(),tn.stopPropagation(),on.onEdit("remove",{key:yn,event:tn})}var In=i.createElement(tt.ZP,{onClick:function(yn){var Zn=yn.key,Ht=yn.domEvent;Qt(Zn,Ht),zt(!1)},prefixCls:"".concat(Cn,"-menu"),id:bn,tabIndex:-1,role:"listbox","aria-activedescendant":Bn,selectedKeys:[sn],"aria-label":Pn!==void 0?Pn:"expanded dropdown"},Le.map(function(tn){var yn=tn.closable,Zn=tn.disabled,Ht=tn.closeIcon,Un=tn.key,er=tn.label,lr=Oe(yn,Ht,on,Zn);return i.createElement(tt.sN,{key:Un,id:"".concat(bn,"-").concat(Un),role:"option","aria-controls":Be&&"".concat(Be,"-panel-").concat(Un),disabled:Zn},i.createElement("span",null,er),lr&&i.createElement("button",{type:"button","aria-label":wt||"remove",tabIndex:0,className:"".concat(Cn,"-menu-item-remove"),onClick:function(Ar){Ar.stopPropagation(),ir(Ar,Un)}},Ht||on.removeIcon||"\xD7"))}));function zn(tn){for(var yn=Le.filter(function(lr){return!lr.disabled}),Zn=yn.findIndex(function(lr){return lr.key===sn})||0,Ht=yn.length,Un=0;Un<Ht;Un+=1){Zn=(Zn+tn+Ht)%Ht;var er=yn[Zn];if(!er.disabled){vn(er.key);return}}}function Yn(tn){var yn=tn.which;if(!Dt){[Fe.Z.DOWN,Fe.Z.SPACE,Fe.Z.ENTER].includes(yn)&&(zt(!0),tn.preventDefault());return}switch(yn){case Fe.Z.UP:zn(-1),tn.preventDefault();break;case Fe.Z.DOWN:zn(1),tn.preventDefault();break;case Fe.Z.ESC:zt(!1);break;case Fe.Z.SPACE:case Fe.Z.ENTER:sn!==null&&Qt(sn,tn);break}}(0,i.useEffect)(function(){var tn=document.getElementById(Bn);tn&&tn.scrollIntoView&&tn.scrollIntoView(!1)},[sn]),(0,i.useEffect)(function(){Dt||vn(null)},[Dt]);var tr=(0,Y.Z)({},lt?"marginRight":"marginLeft",Ve);Le.length||(tr.visibility="hidden",tr.order=1);var Jn=g()((0,Y.Z)({},"".concat(Cn,"-rtl"),lt)),qt=Re?null:i.createElement(ht.Z,(0,W.Z)({prefixCls:Cn,overlay:In,visible:Le.length?Dt:!1,onVisibleChange:zt,overlayClassName:g()(Jn,ye),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Yt},He),i.createElement("button",{type:"button",className:"".concat(At,"-nav-more"),style:tr,"aria-haspopup":"listbox","aria-controls":bn,id:"".concat(Be,"-more"),"aria-expanded":Dt,onKeyDown:Yn},Rn));return i.createElement("div",{className:g()("".concat(At,"-nav-operations"),rn),style:ut,ref:ve},qt,i.createElement(Tt,{prefixCls:At,locale:ae,editable:on}))}),bt=i.memo(jt,function(ie,ve){return ve.tabMoving}),cn=function(ve){var At=ve.prefixCls,Be=ve.id,Le=ve.active,ae=ve.focus,Re=ve.tab,$e=Re.key,He=Re.label,ut=Re.disabled,rn=Re.closeIcon,on=Re.icon,Ve=ve.closable,lt=ve.renderWrapper,wt=ve.removeAriaLabel,Qt=ve.editable,Yt=ve.onClick,ye=ve.onFocus,at=ve.onBlur,Lt=ve.onKeyDown,Dt=ve.onMouseDown,zt=ve.onMouseUp,an=ve.style,un=ve.tabCount,sn=ve.currentPosition,vn="".concat(At,"-tab"),En=Oe(Ve,rn,Qt,ut);function Rn(ir){ut||Yt(ir)}function bn(ir){ir.preventDefault(),ir.stopPropagation(),Qt.onEdit("remove",{key:$e,event:ir})}var Cn=i.useMemo(function(){return on&&typeof He=="string"?i.createElement("span",null,He):He},[He,on]),Bn=i.useRef(null);i.useEffect(function(){ae&&Bn.current&&Bn.current.focus()},[ae]);var Pn=i.createElement("div",{key:$e,"data-node-key":ce($e),className:g()(vn,(0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat(vn,"-with-remove"),En),"".concat(vn,"-active"),Le),"".concat(vn,"-disabled"),ut),"".concat(vn,"-focus"),ae)),style:an,onClick:Rn},i.createElement("div",{ref:Bn,role:"tab","aria-selected":Le,id:Be&&"".concat(Be,"-tab-").concat($e),className:"".concat(vn,"-btn"),"aria-controls":Be&&"".concat(Be,"-panel-").concat($e),"aria-disabled":ut,tabIndex:ut?null:Le?0:-1,onClick:function(In){In.stopPropagation(),Rn(In)},onKeyDown:Lt,onMouseDown:Dt,onMouseUp:zt,onFocus:ye,onBlur:at},ae&&i.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(sn," of ").concat(un)),on&&i.createElement("span",{className:"".concat(vn,"-icon")},on),He&&Cn),En&&i.createElement("button",{type:"button",role:"tab","aria-label":wt||"remove",tabIndex:Le?0:-1,className:"".concat(vn,"-remove"),onClick:function(In){In.stopPropagation(),bn(In)}},rn||Qt.removeIcon||"\xD7"));return lt?lt(Pn):Pn},vt=cn,pt=function(ve,At){var Be=ve.offsetWidth,Le=ve.offsetHeight,ae=ve.offsetTop,Re=ve.offsetLeft,$e=ve.getBoundingClientRect(),He=$e.width,ut=$e.height,rn=$e.left,on=$e.top;return Math.abs(He-Be)<1?[He,ut,rn-At.left,on-At.top]:[Be,Le,Re,ae]},Qe=function(ve){var At=ve.current||{},Be=At.offsetWidth,Le=Be===void 0?0:Be,ae=At.offsetHeight,Re=ae===void 0?0:ae;if(ve.current){var $e=ve.current.getBoundingClientRect(),He=$e.width,ut=$e.height;if(Math.abs(He-Le)<1)return[He,ut]}return[Le,Re]},Ne=function(ve,At){return ve[At?0:1]},le=i.forwardRef(function(ie,ve){var At=ie.className,Be=ie.style,Le=ie.id,ae=ie.animated,Re=ie.activeKey,$e=ie.rtl,He=ie.extra,ut=ie.editable,rn=ie.locale,on=ie.tabPosition,Ve=ie.tabBarGutter,lt=ie.children,wt=ie.onTabClick,Qt=ie.onTabScroll,Yt=ie.indicator,ye=i.useContext($),at=ye.prefixCls,Lt=ye.tabs,Dt=(0,i.useRef)(null),zt=(0,i.useRef)(null),an=(0,i.useRef)(null),un=(0,i.useRef)(null),sn=(0,i.useRef)(null),vn=(0,i.useRef)(null),En=(0,i.useRef)(null),Rn=on==="top"||on==="bottom",bn=me(0,function(fi,ri){Rn&&Qt&&Qt({direction:fi>ri?"left":"right"})}),Cn=(0,x.Z)(bn,2),Bn=Cn[0],Pn=Cn[1],ir=me(0,function(fi,ri){!Rn&&Qt&&Qt({direction:fi>ri?"top":"bottom"})}),In=(0,x.Z)(ir,2),zn=In[0],Yn=In[1],tr=(0,i.useState)([0,0]),Jn=(0,x.Z)(tr,2),qt=Jn[0],tn=Jn[1],yn=(0,i.useState)([0,0]),Zn=(0,x.Z)(yn,2),Ht=Zn[0],Un=Zn[1],er=(0,i.useState)([0,0]),lr=(0,x.Z)(er,2),_r=lr[0],Ar=lr[1],Sr=(0,i.useState)([0,0]),Vn=(0,x.Z)(Sr,2),An=Vn[0],pn=Vn[1],Tn=ee(new Map),Xn=(0,x.Z)(Tn,2),nr=Xn[0],gr=Xn[1],Er=Se(Lt,nr,Ht[0]),Fn=Ne(qt,Rn),yr=Ne(Ht,Rn),Ir=Ne(_r,Rn),Zr=Ne(An,Rn),Nr=Math.floor(Fn)<Math.floor(yr+Ir),Lr=Nr?Fn-Zr:Fn-Ir,Cr="".concat(at,"-nav-operations-hidden"),Fr=0,Jt=0;Rn&&$e?(Fr=0,Jt=Math.max(0,yr-Lr)):(Fr=Math.min(0,Lr-yr),Jt=0);function On(fi){return fi<Fr?Fr:fi>Jt?Jt:fi}var Gn=(0,i.useRef)(null),ur=(0,i.useState)(),xr=(0,x.Z)(ur,2),jr=xr[0],wr=xr[1];function ni(){wr(Date.now())}function di(){Gn.current&&clearTimeout(Gn.current)}oe(un,function(fi,ri){function Ti(Oi,ia){Oi(function(pa){var Sa=On(pa+ia);return Sa})}return Nr?(Rn?Ti(Pn,fi):Ti(Yn,ri),di(),ni(),!0):!1}),(0,i.useEffect)(function(){return di(),jr&&(Gn.current=setTimeout(function(){wr(0)},100)),di},[jr]);var Ei=se(Er,Lr,Rn?Bn:zn,yr,Ir,Zr,(0,l.Z)((0,l.Z)({},ie),{},{tabs:Lt})),Dr=(0,x.Z)(Ei,2),fr=Dr[0],yi=Dr[1],sr=(0,V.Z)(function(){var fi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Re,ri=Er.get(fi)||{width:0,height:0,left:0,right:0,top:0};if(Rn){var Ti=Bn;$e?ri.right<Bn?Ti=ri.right:ri.right+ri.width>Bn+Lr&&(Ti=ri.right+ri.width-Lr):ri.left<-Bn?Ti=-ri.left:ri.left+ri.width>-Bn+Lr&&(Ti=-(ri.left+ri.width-Lr)),Yn(0),Pn(On(Ti))}else{var Oi=zn;ri.top<-zn?Oi=-ri.top:ri.top+ri.height>-zn+Lr&&(Oi=-(ri.top+ri.height-Lr)),Pn(0),Yn(On(Oi))}}),wi=(0,i.useState)(),Yi=(0,x.Z)(wi,2),Wi=Yi[0],Mi=Yi[1],Ni=(0,i.useState)(!1),Vr=(0,x.Z)(Ni,2),Di=Vr[0],ra=Vr[1],zi=Lt.filter(function(fi){return!fi.disabled}).map(function(fi){return fi.key}),hi=function(ri){var Ti=zi.indexOf(Wi||Re),Oi=zi.length,ia=(Ti+ri+Oi)%Oi,pa=zi[ia];Mi(pa)},ki=function(ri){var Ti=ri.code,Oi=$e&&Rn,ia=zi[0],pa=zi[zi.length-1];switch(Ti){case"ArrowLeft":{Rn&&hi(Oi?1:-1);break}case"ArrowRight":{Rn&&hi(Oi?-1:1);break}case"ArrowUp":{ri.preventDefault(),Rn||hi(-1);break}case"ArrowDown":{ri.preventDefault(),Rn||hi(1);break}case"Home":{ri.preventDefault(),Mi(ia);break}case"End":{ri.preventDefault(),Mi(pa);break}case"Enter":case"Space":{ri.preventDefault(),wt(Re,ri);break}case"Backspace":case"Delete":{var Sa=zi.indexOf(Wi),Da=Lt.find(function(Ta){return Ta.key===Wi}),Wa=Oe(Da==null?void 0:Da.closable,Da==null?void 0:Da.closeIcon,ut,Da==null?void 0:Da.disabled);Wa&&(ri.preventDefault(),ri.stopPropagation(),ut.onEdit("remove",{key:Wi,event:ri}),Sa===zi.length-1?hi(-1):hi(1));break}}},Zi={};Rn?Zi[$e?"marginRight":"marginLeft"]=Ve:Zi.marginTop=Ve;var Br=Lt.map(function(fi,ri){var Ti=fi.key;return i.createElement(vt,{id:Le,prefixCls:at,key:Ti,tab:fi,style:ri===0?void 0:Zi,closable:fi.closable,editable:ut,active:Ti===Re,focus:Ti===Wi,renderWrapper:lt,removeAriaLabel:rn==null?void 0:rn.removeAriaLabel,tabCount:zi.length,currentPosition:ri+1,onClick:function(ia){wt(Ti,ia)},onKeyDown:ki,onFocus:function(){Di||Mi(Ti),sr(Ti),ni(),un.current&&($e||(un.current.scrollLeft=0),un.current.scrollTop=0)},onBlur:function(){Mi(void 0)},onMouseDown:function(){ra(!0)},onMouseUp:function(){ra(!1)}})}),ei=function(){return gr(function(){var ri,Ti=new Map,Oi=(ri=sn.current)===null||ri===void 0?void 0:ri.getBoundingClientRect();return Lt.forEach(function(ia){var pa,Sa=ia.key,Da=(pa=sn.current)===null||pa===void 0?void 0:pa.querySelector('[data-node-key="'.concat(ce(Sa),'"]'));if(Da){var Wa=pt(Da,Oi),Ta=(0,x.Z)(Wa,4),vs=Ta[0],Cs=Ta[1],Ds=Ta[2],$a=Ta[3];Ti.set(Sa,{width:vs,height:Cs,left:Ds,top:$a})}}),Ti})};(0,i.useEffect)(function(){ei()},[Lt.map(function(fi){return fi.key}).join("_")]);var pr=_(function(){var fi=Qe(Dt),ri=Qe(zt),Ti=Qe(an);tn([fi[0]-ri[0]-Ti[0],fi[1]-ri[1]-Ti[1]]);var Oi=Qe(En);Ar(Oi);var ia=Qe(vn);pn(ia);var pa=Qe(sn);Un([pa[0]-Oi[0],pa[1]-Oi[1]]),ei()}),vr=Lt.slice(0,fr),Pr=Lt.slice(yi+1),Wr=[].concat((0,H.Z)(vr),(0,H.Z)(Pr)),Ci=Er.get(Re),br=I({activeTabOffset:Ci,horizontal:Rn,indicator:Yt,rtl:$e}),Rr=br.style;(0,i.useEffect)(function(){sr()},[Re,Fr,Jt,w(Ci),w(Er),Rn]),(0,i.useEffect)(function(){pr()},[$e]);var Mr=!!Wr.length,$r="".concat(at,"-nav-wrap"),ti,ma,Xi,ua;return Rn?$e?(ma=Bn>0,ti=Bn!==Jt):(ti=Bn<0,ma=Bn!==Fr):(Xi=zn<0,ua=zn!==Fr),i.createElement(X.Z,{onResize:pr},i.createElement("div",{ref:(0,R.x1)(ve,Dt),role:"tablist","aria-orientation":Rn?"horizontal":"vertical",className:g()("".concat(at,"-nav"),At),style:Be,onKeyDown:function(){ni()}},i.createElement(qe,{ref:zt,position:"left",extra:He,prefixCls:at}),i.createElement(X.Z,{onResize:pr},i.createElement("div",{className:g()($r,(0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat($r,"-ping-left"),ti),"".concat($r,"-ping-right"),ma),"".concat($r,"-ping-top"),Xi),"".concat($r,"-ping-bottom"),ua)),ref:un},i.createElement(X.Z,{onResize:pr},i.createElement("div",{ref:sn,className:"".concat(at,"-nav-list"),style:{transform:"translate(".concat(Bn,"px, ").concat(zn,"px)"),transition:jr?"none":void 0}},Br,i.createElement(Tt,{ref:En,prefixCls:at,locale:rn,editable:ut,style:(0,l.Z)((0,l.Z)({},Br.length===0?void 0:Zi),{},{visibility:Mr?"hidden":null})}),i.createElement("div",{className:g()("".concat(at,"-ink-bar"),(0,Y.Z)({},"".concat(at,"-ink-bar-animated"),ae.inkBar)),style:Rr}))))),i.createElement(bt,(0,W.Z)({},ie,{removeAriaLabel:rn==null?void 0:rn.removeAriaLabel,ref:vn,prefixCls:at,tabs:Wr,className:!Mr&&Cr,tabMoving:!!jr})),i.createElement(qe,{ref:an,position:"right",extra:He,prefixCls:at})))}),Pe=le,Ge=i.forwardRef(function(ie,ve){var At=ie.prefixCls,Be=ie.className,Le=ie.style,ae=ie.id,Re=ie.active,$e=ie.tabKey,He=ie.children;return i.createElement("div",{id:ae&&"".concat(ae,"-panel-").concat($e),role:"tabpanel",tabIndex:Re?0:-1,"aria-labelledby":ae&&"".concat(ae,"-tab-").concat($e),"aria-hidden":!Re,style:Le,className:g()(At,Re&&"".concat(At,"-active"),Be),ref:ve},He)}),j=Ge,P=["renderTabBar"],_e=["label","key"],Ie=function(ve){var At=ve.renderTabBar,Be=(0,y.Z)(ve,P),Le=i.useContext($),ae=Le.tabs;if(At){var Re=(0,l.Z)((0,l.Z)({},Be),{},{panes:ae.map(function($e){var He=$e.label,ut=$e.key,rn=(0,y.Z)($e,_e);return i.createElement(j,(0,W.Z)({tab:He,key:ut,tabKey:ut},rn))})});return At(Re,Pe)}return i.createElement(Pe,Be)},Te=Ie,ze=u(77900),Ue=["key","forceRender","style","className","destroyInactiveTabPane"],ft=function(ve){var At=ve.id,Be=ve.activeKey,Le=ve.animated,ae=ve.tabPosition,Re=ve.destroyInactiveTabPane,$e=i.useContext($),He=$e.prefixCls,ut=$e.tabs,rn=Le.tabPane,on="".concat(He,"-tabpane");return i.createElement("div",{className:g()("".concat(He,"-content-holder"))},i.createElement("div",{className:g()("".concat(He,"-content"),"".concat(He,"-content-").concat(ae),(0,Y.Z)({},"".concat(He,"-content-animated"),rn))},ut.map(function(Ve){var lt=Ve.key,wt=Ve.forceRender,Qt=Ve.style,Yt=Ve.className,ye=Ve.destroyInactiveTabPane,at=(0,y.Z)(Ve,Ue),Lt=lt===Be;return i.createElement(ze.default,(0,W.Z)({key:lt,visible:Lt,forceRender:wt,removeOnLeave:!!(Re||ye),leavedClassName:"".concat(on,"-hidden")},Le.tabPaneMotion),function(Dt,zt){var an=Dt.style,un=Dt.className;return i.createElement(j,(0,W.Z)({},at,{prefixCls:on,id:At,tabKey:lt,animated:rn,active:Lt,style:(0,l.Z)((0,l.Z)({},Qt),an),className:g()(Yt,un),ref:zt}))})})))},de=ft,xe=u(48736);function Ot(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},ve;return ie===!1?ve={inkBar:!1,tabPane:!1}:ie===!0?ve={inkBar:!0,tabPane:!1}:ve=(0,l.Z)({inkBar:!0},(0,N.Z)(ie)==="object"?ie:{}),ve.tabPaneMotion&&ve.tabPane===void 0&&(ve.tabPane=!0),!ve.tabPaneMotion&&ve.tabPane&&(ve.tabPane=!1),ve}var _t=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Pt=0,kt=i.forwardRef(function(ie,ve){var At=ie.id,Be=ie.prefixCls,Le=Be===void 0?"rc-tabs":Be,ae=ie.className,Re=ie.items,$e=ie.direction,He=ie.activeKey,ut=ie.defaultActiveKey,rn=ie.editable,on=ie.animated,Ve=ie.tabPosition,lt=Ve===void 0?"top":Ve,wt=ie.tabBarGutter,Qt=ie.tabBarStyle,Yt=ie.tabBarExtraContent,ye=ie.locale,at=ie.more,Lt=ie.destroyInactiveTabPane,Dt=ie.renderTabBar,zt=ie.onChange,an=ie.onTabClick,un=ie.onTabScroll,sn=ie.getPopupContainer,vn=ie.popupClassName,En=ie.indicator,Rn=(0,y.Z)(ie,_t),bn=i.useMemo(function(){return(Re||[]).filter(function(An){return An&&(0,N.Z)(An)==="object"&&"key"in An})},[Re]),Cn=$e==="rtl",Bn=Ot(on),Pn=(0,i.useState)(!1),ir=(0,x.Z)(Pn,2),In=ir[0],zn=ir[1];(0,i.useEffect)(function(){zn((0,A.Z)())},[]);var Yn=(0,T.Z)(function(){var An;return(An=bn[0])===null||An===void 0?void 0:An.key},{value:He,defaultValue:ut}),tr=(0,x.Z)(Yn,2),Jn=tr[0],qt=tr[1],tn=(0,i.useState)(function(){return bn.findIndex(function(An){return An.key===Jn})}),yn=(0,x.Z)(tn,2),Zn=yn[0],Ht=yn[1];(0,i.useEffect)(function(){var An=bn.findIndex(function(Tn){return Tn.key===Jn});if(An===-1){var pn;An=Math.max(0,Math.min(Zn,bn.length-1)),qt((pn=bn[An])===null||pn===void 0?void 0:pn.key)}Ht(An)},[bn.map(function(An){return An.key}).join("_"),Jn,Zn]);var Un=(0,T.Z)(null,{value:At}),er=(0,x.Z)(Un,2),lr=er[0],_r=er[1];(0,i.useEffect)(function(){At||(_r("rc-tabs-".concat(Pt)),Pt+=1)},[]);function Ar(An,pn){an==null||an(An,pn);var Tn=An!==Jn;qt(An),Tn&&(zt==null||zt(An))}var Sr={id:lr,activeKey:Jn,animated:Bn,tabPosition:lt,rtl:Cn,mobile:In},Vn=(0,l.Z)((0,l.Z)({},Sr),{},{editable:rn,locale:ye,more:at,tabBarGutter:wt,onTabClick:Ar,onTabScroll:un,extra:Yt,style:Qt,panes:null,getPopupContainer:sn,popupClassName:vn,indicator:En});return i.createElement($.Provider,{value:{tabs:bn,prefixCls:Le}},i.createElement("div",(0,W.Z)({ref:ve,id:At,className:g()(Le,"".concat(Le,"-").concat(lt),(0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat(Le,"-mobile"),In),"".concat(Le,"-editable"),rn),"".concat(Le,"-rtl"),Cn),ae)},Rn),i.createElement(Te,(0,W.Z)({},Vn,{renderTabBar:Dt})),i.createElement(de,(0,W.Z)({destroyInactiveTabPane:Lt},Sr,{animated:Bn}))))}),mt=kt,Vt=mt,Nt=u(48755),De=u(83397),gt=u(31756),E=u(86641);const S={motionAppear:!1,motionEnter:!0,motionLeave:!0};function je(ie){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},At;return ve===!1?At={inkBar:!1,tabPane:!1}:ve===!0?At={inkBar:!0,tabPane:!0}:At=Object.assign({inkBar:!0},typeof ve=="object"?ve:{}),At.tabPane&&(At.tabPaneMotion=Object.assign(Object.assign({},S),{motionName:(0,E.m)(ie,"switch")})),At}var G=u(11592),Ce=function(ie,ve){var At={};for(var Be in ie)Object.prototype.hasOwnProperty.call(ie,Be)&&ve.indexOf(Be)<0&&(At[Be]=ie[Be]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Be=Object.getOwnPropertySymbols(ie);Le<Be.length;Le++)ve.indexOf(Be[Le])<0&&Object.prototype.propertyIsEnumerable.call(ie,Be[Le])&&(At[Be[Le]]=ie[Be[Le]]);return At};function en(ie){return ie.filter(ve=>ve)}function rt(ie,ve){if(ie)return ie;const At=(0,G.Z)(ve).map(Be=>{if(i.isValidElement(Be)){const{key:Le,props:ae}=Be,Re=ae||{},{tab:$e}=Re,He=Ce(Re,["tab"]);return Object.assign(Object.assign({key:String(Le)},He),{label:$e})}return null});return en(At)}var st=u(36237),xt=u(63356),pe=u(16931),Ee=u(51636),nt=u(46e3),z=ie=>{const{componentCls:ve,motionDurationSlow:At}=ie;return[{[ve]:{[`${ve}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${At}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${At}`}}}}},[(0,nt.oN)(ie,"slide-up"),(0,nt.oN)(ie,"slide-down")]]};const St=ie=>{const{componentCls:ve,tabsCardPadding:At,cardBg:Be,cardGutter:Le,colorBorderSecondary:ae,itemSelectedColor:Re}=ie;return{[`${ve}-card`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab`]:{margin:0,padding:At,background:Be,border:`${(0,st.unit)(ie.lineWidth)} ${ie.lineType} ${ae}`,transition:`all ${ie.motionDurationSlow} ${ie.motionEaseInOut}`},[`${ve}-tab-active`]:{color:Re,background:ie.colorBgContainer},[`${ve}-tab-focus`]:Object.assign({},(0,xt.oN)(ie,-3)),[`${ve}-ink-bar`]:{visibility:"hidden"},[`& ${ve}-tab${ve}-tab-focus ${ve}-tab-btn`]:{outline:"none"}},[`&${ve}-top, &${ve}-bottom`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab + ${ve}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,st.unit)(Le)}}}},[`&${ve}-top`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab`]:{borderRadius:`${(0,st.unit)(ie.borderRadiusLG)} ${(0,st.unit)(ie.borderRadiusLG)} 0 0`},[`${ve}-tab-active`]:{borderBottomColor:ie.colorBgContainer}}},[`&${ve}-bottom`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab`]:{borderRadius:`0 0 ${(0,st.unit)(ie.borderRadiusLG)} ${(0,st.unit)(ie.borderRadiusLG)}`},[`${ve}-tab-active`]:{borderTopColor:ie.colorBgContainer}}},[`&${ve}-left, &${ve}-right`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab + ${ve}-tab`]:{marginTop:(0,st.unit)(Le)}}},[`&${ve}-left`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,st.unit)(ie.borderRadiusLG)} 0 0 ${(0,st.unit)(ie.borderRadiusLG)}`}},[`${ve}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:ie.colorBgContainer}}}},[`&${ve}-right`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,st.unit)(ie.borderRadiusLG)} ${(0,st.unit)(ie.borderRadiusLG)} 0`}},[`${ve}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:ie.colorBgContainer}}}}}}},fe=ie=>{const{componentCls:ve,itemHoverColor:At,dropdownEdgeChildVerticalPadding:Be}=ie;return{[`${ve}-dropdown`]:Object.assign(Object.assign({},(0,xt.Wf)(ie)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ie.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${ve}-dropdown-menu`]:{maxHeight:ie.tabsDropdownHeight,margin:0,padding:`${(0,st.unit)(Be)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:ie.colorBgContainer,backgroundClip:"padding-box",borderRadius:ie.borderRadiusLG,outline:"none",boxShadow:ie.boxShadowSecondary,"&-item":Object.assign(Object.assign({},xt.vS),{display:"flex",alignItems:"center",minWidth:ie.tabsDropdownWidth,margin:0,padding:`${(0,st.unit)(ie.paddingXXS)} ${(0,st.unit)(ie.paddingSM)}`,color:ie.colorText,fontWeight:"normal",fontSize:ie.fontSize,lineHeight:ie.lineHeight,cursor:"pointer",transition:`all ${ie.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:ie.marginSM},color:ie.colorTextDescription,fontSize:ie.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:At}},"&:hover":{background:ie.controlItemBgHover},"&-disabled":{"&, &:hover":{color:ie.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Kt=ie=>{const{componentCls:ve,margin:At,colorBorderSecondary:Be,horizontalMargin:Le,verticalItemPadding:ae,verticalItemMargin:Re,calc:$e}=ie;return{[`${ve}-top, ${ve}-bottom`]:{flexDirection:"column",[`> ${ve}-nav, > div > ${ve}-nav`]:{margin:Le,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,st.unit)(ie.lineWidth)} ${ie.lineType} ${Be}`,content:"''"},[`${ve}-ink-bar`]:{height:ie.lineWidthBold,"&-animated":{transition:`width ${ie.motionDurationSlow}, left ${ie.motionDurationSlow},
|
|
|
right ${ie.motionDurationSlow}`}},[`${ve}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:ie.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:ie.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:ie.boxShadowTabsOverflowRight},[`&${ve}-nav-wrap-ping-left::before`]:{opacity:1},[`&${ve}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${ve}-top`]:{[`> ${ve}-nav,
|
|
|
> div > ${ve}-nav`]:{"&::before":{bottom:0},[`${ve}-ink-bar`]:{bottom:0}}},[`${ve}-bottom`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{order:1,marginTop:At,marginBottom:0,"&::before":{top:0},[`${ve}-ink-bar`]:{top:0}},[`> ${ve}-content-holder, > div > ${ve}-content-holder`]:{order:0}},[`${ve}-left, ${ve}-right`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{flexDirection:"column",minWidth:$e(ie.controlHeight).mul(1.25).equal(),[`${ve}-tab`]:{padding:ae,textAlign:"center"},[`${ve}-tab + ${ve}-tab`]:{margin:Re},[`${ve}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:ie.controlHeight},"&::before":{top:0,boxShadow:ie.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:ie.boxShadowTabsOverflowBottom},[`&${ve}-nav-wrap-ping-top::before`]:{opacity:1},[`&${ve}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${ve}-ink-bar`]:{width:ie.lineWidthBold,"&-animated":{transition:`height ${ie.motionDurationSlow}, top ${ie.motionDurationSlow}`}},[`${ve}-nav-list, ${ve}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${ve}-left`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${ve}-content-holder, > div > ${ve}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,st.unit)($e(ie.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,st.unit)(ie.lineWidth)} ${ie.lineType} ${ie.colorBorder}`},[`> ${ve}-content > ${ve}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:ie.paddingLG}}}},[`${ve}-right`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{order:1,[`${ve}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${ve}-content-holder, > div > ${ve}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:$e(ie.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,st.unit)(ie.lineWidth)} ${ie.lineType} ${ie.colorBorder}`},[`> ${ve}-content > ${ve}-tabpane`]:{paddingRight:{_skip_check_:!0,value:ie.paddingLG}}}}}},dn=ie=>{const{componentCls:ve,cardPaddingSM:At,cardPaddingLG:Be,horizontalItemPaddingSM:Le,horizontalItemPaddingLG:ae}=ie;return{[ve]:{"&-small":{[`> ${ve}-nav`]:{[`${ve}-tab`]:{padding:Le,fontSize:ie.titleFontSizeSM}}},"&-large":{[`> ${ve}-nav`]:{[`${ve}-tab`]:{padding:ae,fontSize:ie.titleFontSizeLG}}}},[`${ve}-card`]:{[`&${ve}-small`]:{[`> ${ve}-nav`]:{[`${ve}-tab`]:{padding:At}},[`&${ve}-bottom`]:{[`> ${ve}-nav ${ve}-tab`]:{borderRadius:`0 0 ${(0,st.unit)(ie.borderRadius)} ${(0,st.unit)(ie.borderRadius)}`}},[`&${ve}-top`]:{[`> ${ve}-nav ${ve}-tab`]:{borderRadius:`${(0,st.unit)(ie.borderRadius)} ${(0,st.unit)(ie.borderRadius)} 0 0`}},[`&${ve}-right`]:{[`> ${ve}-nav ${ve}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,st.unit)(ie.borderRadius)} ${(0,st.unit)(ie.borderRadius)} 0`}}},[`&${ve}-left`]:{[`> ${ve}-nav ${ve}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,st.unit)(ie.borderRadius)} 0 0 ${(0,st.unit)(ie.borderRadius)}`}}}},[`&${ve}-large`]:{[`> ${ve}-nav`]:{[`${ve}-tab`]:{padding:Be}}}}}},Bt=ie=>{const{componentCls:ve,itemActiveColor:At,itemHoverColor:Be,iconCls:Le,tabsHorizontalItemMargin:ae,horizontalItemPadding:Re,itemSelectedColor:$e,itemColor:He}=ie,ut=`${ve}-tab`;return{[ut]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Re,fontSize:ie.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:He,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:At}},"&-btn":{outline:"none",transition:`all ${ie.motionDurationSlow}`,[`${ut}-icon:not(:last-child)`]:{marginInlineEnd:ie.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:ie.calc(ie.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:ie.marginXS},color:ie.colorTextDescription,fontSize:ie.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${ie.motionDurationSlow}`,"&:hover":{color:ie.colorTextHeading}},(0,xt.Qy)(ie)),"&:hover":{color:Be},[`&${ut}-active ${ut}-btn`]:{color:$e,textShadow:ie.tabsActiveTextShadow},[`&${ut}-focus ${ut}-btn`]:Object.assign({},(0,xt.oN)(ie)),[`&${ut}-disabled`]:{color:ie.colorTextDisabled,cursor:"not-allowed"},[`&${ut}-disabled ${ut}-btn, &${ut}-disabled ${ve}-remove`]:{"&:focus, &:active":{color:ie.colorTextDisabled}},[`& ${ut}-remove ${Le}`]:{margin:0},[`${Le}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:ie.marginSM}}},[`${ut} + ${ut}`]:{margin:{_skip_check_:!0,value:ae}}}},J=ie=>{const{componentCls:ve,tabsHorizontalItemMarginRTL:At,iconCls:Be,cardGutter:Le,calc:ae}=ie;return{[`${ve}-rtl`]:{direction:"rtl",[`${ve}-nav`]:{[`${ve}-tab`]:{margin:{_skip_check_:!0,value:At},[`${ve}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Be]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,st.unit)(ie.marginSM)}},[`${ve}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,st.unit)(ie.marginXS)},marginLeft:{_skip_check_:!0,value:(0,st.unit)(ae(ie.marginXXS).mul(-1).equal())},[Be]:{margin:0}}}},[`&${ve}-left`]:{[`> ${ve}-nav`]:{order:1},[`> ${ve}-content-holder`]:{order:0}},[`&${ve}-right`]:{[`> ${ve}-nav`]:{order:0},[`> ${ve}-content-holder`]:{order:1}},[`&${ve}-card${ve}-top, &${ve}-card${ve}-bottom`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab + ${ve}-tab`]:{marginRight:{_skip_check_:!0,value:Le},marginLeft:{_skip_check_:!0,value:0}}}}},[`${ve}-dropdown-rtl`]:{direction:"rtl"},[`${ve}-menu-item`]:{[`${ve}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},we=ie=>{const{componentCls:ve,tabsCardPadding:At,cardHeight:Be,cardGutter:Le,itemHoverColor:ae,itemActiveColor:Re,colorBorderSecondary:$e}=ie;return{[ve]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,xt.Wf)(ie)),{display:"flex",[`> ${ve}-nav, > div > ${ve}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${ve}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${ie.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${ve}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${ie.motionDurationSlow}`},[`${ve}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${ve}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${ve}-nav-more`]:{position:"relative",padding:At,background:"transparent",border:0,color:ie.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:ie.calc(ie.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${ve}-nav-add`]:Object.assign({minWidth:Be,marginLeft:{_skip_check_:!0,value:Le},padding:(0,st.unit)(ie.paddingXS),background:"transparent",border:`${(0,st.unit)(ie.lineWidth)} ${ie.lineType} ${$e}`,borderRadius:`${(0,st.unit)(ie.borderRadiusLG)} ${(0,st.unit)(ie.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:ie.colorText,transition:`all ${ie.motionDurationSlow} ${ie.motionEaseInOut}`,"&:hover":{color:ae},"&:active, &:focus:not(:focus-visible)":{color:Re}},(0,xt.Qy)(ie,-3))},[`${ve}-extra-content`]:{flex:"none"},[`${ve}-ink-bar`]:{position:"absolute",background:ie.inkBarColor,pointerEvents:"none"}}),Bt(ie)),{[`${ve}-content`]:{position:"relative",width:"100%"},[`${ve}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${ve}-tabpane`]:Object.assign(Object.assign({},(0,xt.Qy)(ie)),{"&-hidden":{display:"none"}})}),[`${ve}-centered`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-nav-wrap`]:{[`&:not([class*='${ve}-nav-wrap-ping']) > ${ve}-nav-list`]:{margin:"auto"}}}}}},M=ie=>{const ve=ie.controlHeightLG;return{zIndexPopup:ie.zIndexPopupBase+50,cardBg:ie.colorFillAlter,cardHeight:ve,cardPadding:`${(ve-Math.round(ie.fontSize*ie.lineHeight))/2-ie.lineWidth}px ${ie.padding}px`,cardPaddingSM:`${ie.paddingXXS*1.5}px ${ie.padding}px`,cardPaddingLG:`${ie.paddingXS}px ${ie.padding}px ${ie.paddingXXS*1.5}px`,titleFontSize:ie.fontSize,titleFontSizeLG:ie.fontSizeLG,titleFontSizeSM:ie.fontSize,inkBarColor:ie.colorPrimary,horizontalMargin:`0 0 ${ie.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${ie.paddingSM}px 0`,horizontalItemPaddingSM:`${ie.paddingXS}px 0`,horizontalItemPaddingLG:`${ie.padding}px 0`,verticalItemPadding:`${ie.paddingXS}px ${ie.paddingLG}px`,verticalItemMargin:`${ie.margin}px 0 0 0`,itemColor:ie.colorText,itemSelectedColor:ie.colorPrimary,itemHoverColor:ie.colorPrimaryHover,itemActiveColor:ie.colorPrimaryActive,cardGutter:ie.marginXXS/2}};var Ct=(0,pe.I$)("Tabs",ie=>{const ve=(0,Ee.mergeToken)(ie,{tabsCardPadding:ie.cardPadding,dropdownEdgeChildVerticalPadding:ie.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,st.unit)(ie.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,st.unit)(ie.horizontalItemGutter)}`});return[dn(ve),J(ve),Kt(ve),fe(ve),St(ve),we(ve),z(ve)]},M),dt=()=>null,$t=function(ie,ve){var At={};for(var Be in ie)Object.prototype.hasOwnProperty.call(ie,Be)&&ve.indexOf(Be)<0&&(At[Be]=ie[Be]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Be=Object.getOwnPropertySymbols(ie);Le<Be.length;Le++)ve.indexOf(Be[Le])<0&&Object.prototype.propertyIsEnumerable.call(ie,Be[Le])&&(At[Be[Le]]=ie[Be[Le]]);return At};const Ft=ie=>{var ve,At,Be,Le,ae,Re,$e,He,ut,rn,on;const{type:Ve,className:lt,rootClassName:wt,size:Qt,onEdit:Yt,hideAdd:ye,centered:at,addIcon:Lt,removeIcon:Dt,moreIcon:zt,more:an,popupClassName:un,children:sn,items:vn,animated:En,style:Rn,indicatorSize:bn,indicator:Cn}=ie,Bn=$t(ie,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:Pn}=Bn,{direction:ir,tabs:In,getPrefixCls:zn,getPopupContainer:Yn}=i.useContext(Nt.E_),tr=zn("tabs",Pn),Jn=(0,De.Z)(tr),[qt,tn,yn]=Ct(tr,Jn);let Zn;Ve==="editable-card"&&(Zn={onEdit:(Sr,Vn)=>{let{key:An,event:pn}=Vn;Yt==null||Yt(Sr==="add"?pn:An,Sr)},removeIcon:(ve=Dt!=null?Dt:In==null?void 0:In.removeIcon)!==null&&ve!==void 0?ve:i.createElement(K.Z,null),addIcon:(Lt!=null?Lt:In==null?void 0:In.addIcon)||i.createElement(he.Z,null),showAdd:ye!==!0});const Ht=zn(),Un=(0,gt.Z)(Qt),er=rt(vn,sn),lr=je(tr,En),_r=Object.assign(Object.assign({},In==null?void 0:In.style),Rn),Ar={align:(At=Cn==null?void 0:Cn.align)!==null&&At!==void 0?At:(Be=In==null?void 0:In.indicator)===null||Be===void 0?void 0:Be.align,size:($e=(ae=(Le=Cn==null?void 0:Cn.size)!==null&&Le!==void 0?Le:bn)!==null&&ae!==void 0?ae:(Re=In==null?void 0:In.indicator)===null||Re===void 0?void 0:Re.size)!==null&&$e!==void 0?$e:In==null?void 0:In.indicatorSize};return qt(i.createElement(Vt,Object.assign({direction:ir,getPopupContainer:Yn},Bn,{items:er,className:g()({[`${tr}-${Un}`]:Un,[`${tr}-card`]:["card","editable-card"].includes(Ve),[`${tr}-editable-card`]:Ve==="editable-card",[`${tr}-centered`]:at},In==null?void 0:In.className,lt,wt,tn,yn,Jn),popupClassName:g()(un,tn,yn,Jn),style:_r,editable:Zn,more:Object.assign({icon:(on=(rn=(ut=(He=In==null?void 0:In.more)===null||He===void 0?void 0:He.icon)!==null&&ut!==void 0?ut:In==null?void 0:In.moreIcon)!==null&&rn!==void 0?rn:zt)!==null&&on!==void 0?on:i.createElement(L.Z,null),transitionName:`${Ht}-slide-up`},an),prefixCls:tr,animated:lr,indicator:Ar})))};Ft.TabPane=dt;var Mt=Ft},96599:function($n,Rt,u){"use strict";u.d(Rt,{default:function(){return k}});var i=u(59301),K=u(92310),L=u.n(K),he=u(2738),Z=u(29509),g=u(78776),W=u(22703),Y=u(12919),l=u(48755),x=u(36237),N=u(17835),y=u(63356),T=u(51636),A=u(16931);const $=_=>{const{paddingXXS:ee,lineWidth:ne,tagPaddingHorizontal:se,componentCls:w,calc:D}=_,ce=D(se).sub(ne).equal(),Oe=D(ee).sub(ne).equal();return{[w]:Object.assign(Object.assign({},(0,y.Wf)(_)),{display:"inline-block",height:"auto",marginInlineEnd:_.marginXS,paddingInline:ce,fontSize:_.tagFontSize,lineHeight:_.tagLineHeight,whiteSpace:"nowrap",background:_.defaultBg,border:`${(0,x.unit)(_.lineWidth)} ${_.lineType} ${_.colorBorder}`,borderRadius:_.borderRadiusSM,opacity:1,transition:`all ${_.motionDurationMid}`,textAlign:"start",position:"relative",[`&${w}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:_.defaultColor},[`${w}-close-icon`]:{marginInlineStart:Oe,fontSize:_.tagIconSize,color:_.colorTextDescription,cursor:"pointer",transition:`all ${_.motionDurationMid}`,"&:hover":{color:_.colorTextHeading}},[`&${w}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${_.iconCls}-close, ${_.iconCls}-close:hover`]:{color:_.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${w}-checkable-checked):hover`]:{color:_.colorPrimary,backgroundColor:_.colorFillSecondary},"&:active, &-checked":{color:_.colorTextLightSolid},"&-checked":{backgroundColor:_.colorPrimary,"&:hover":{backgroundColor:_.colorPrimaryHover}},"&:active":{backgroundColor:_.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${_.iconCls} + span, > span + ${_.iconCls}`]:{marginInlineStart:ce}}),[`${w}-borderless`]:{borderColor:"transparent",background:_.tagBorderlessBg}}},H=_=>{const{lineWidth:ee,fontSizeIcon:ne,calc:se}=_,w=_.fontSizeSM;return(0,T.mergeToken)(_,{tagFontSize:w,tagLineHeight:(0,x.unit)(se(_.lineHeightSM).mul(w).equal()),tagIconSize:se(ne).sub(se(ee).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:_.defaultBg})},X=_=>({defaultBg:new N.FastColor(_.colorFillQuaternary).onBackground(_.colorBgContainer).toHexString(),defaultColor:_.colorText});var V=(0,A.I$)("Tag",_=>{const ee=H(_);return $(ee)},X),R=function(_,ee){var ne={};for(var se in _)Object.prototype.hasOwnProperty.call(_,se)&&ee.indexOf(se)<0&&(ne[se]=_[se]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,se=Object.getOwnPropertySymbols(_);w<se.length;w++)ee.indexOf(se[w])<0&&Object.prototype.propertyIsEnumerable.call(_,se[w])&&(ne[se[w]]=_[se[w]]);return ne},O=i.forwardRef((_,ee)=>{const{prefixCls:ne,style:se,className:w,checked:D,onChange:ce,onClick:Oe}=_,ct=R(_,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Tt,tag:Ae}=i.useContext(l.E_),qe=cn=>{ce==null||ce(!D),Oe==null||Oe(cn)},ht=Tt("tag",ne),[tt,Fe,jt]=V(ht),bt=L()(ht,`${ht}-checkable`,{[`${ht}-checkable-checked`]:D},Ae==null?void 0:Ae.className,w,Fe,jt);return tt(i.createElement("span",Object.assign({},ct,{ref:ee,style:Object.assign(Object.assign({},se),Ae==null?void 0:Ae.style),className:bt,onClick:qe})))}),I=u(93427);const ue=_=>(0,I.Z)(_,(ee,ne)=>{let{textColor:se,lightBorderColor:w,lightColor:D,darkColor:ce}=ne;return{[`${_.componentCls}${_.componentCls}-${ee}`]:{color:se,background:D,borderColor:w,"&-inverse":{color:_.colorTextLightSolid,background:ce,borderColor:ce},[`&${_.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Se=(0,A.bk)(["Tag","preset"],_=>{const ee=H(_);return ue(ee)},X);function me(_){return typeof _!="string"?_:_.charAt(0).toUpperCase()+_.slice(1)}const Ke=(_,ee,ne)=>{const se=me(ne);return{[`${_.componentCls}${_.componentCls}-${ee}`]:{color:_[`color${ne}`],background:_[`color${se}Bg`],borderColor:_[`color${se}Border`],[`&${_.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Je=(0,A.bk)(["Tag","status"],_=>{const ee=H(_);return[Ke(ee,"success","Success"),Ke(ee,"processing","Info"),Ke(ee,"error","Error"),Ke(ee,"warning","Warning")]},X),ke=function(_,ee){var ne={};for(var se in _)Object.prototype.hasOwnProperty.call(_,se)&&ee.indexOf(se)<0&&(ne[se]=_[se]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,se=Object.getOwnPropertySymbols(_);w<se.length;w++)ee.indexOf(se[w])<0&&Object.prototype.propertyIsEnumerable.call(_,se[w])&&(ne[se[w]]=_[se[w]]);return ne};const oe=i.forwardRef((_,ee)=>{const{prefixCls:ne,className:se,rootClassName:w,style:D,children:ce,icon:Oe,color:ct,onClose:Tt,bordered:Ae=!0,visible:qe}=_,ht=ke(_,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:tt,direction:Fe,tag:jt}=i.useContext(l.E_),[bt,cn]=i.useState(!0),vt=(0,he.Z)(ht,["closeIcon","closable"]);i.useEffect(()=>{qe!==void 0&&cn(qe)},[qe]);const pt=(0,Z.o2)(ct),Qe=(0,Z.yT)(ct),Ne=pt||Qe,le=Object.assign(Object.assign({backgroundColor:ct&&!Ne?ct:void 0},jt==null?void 0:jt.style),D),Pe=tt("tag",ne),[Ge,j,P]=V(Pe),_e=L()(Pe,jt==null?void 0:jt.className,{[`${Pe}-${ct}`]:Ne,[`${Pe}-has-color`]:ct&&!Ne,[`${Pe}-hidden`]:!bt,[`${Pe}-rtl`]:Fe==="rtl",[`${Pe}-borderless`]:!Ae},se,w,j,P),Ie=xe=>{xe.stopPropagation(),Tt==null||Tt(xe),!xe.defaultPrevented&&cn(!1)},[,Te]=(0,g.Z)((0,g.w)(_),(0,g.w)(jt),{closable:!1,closeIconRender:xe=>{const Ot=i.createElement("span",{className:`${Pe}-close-icon`,onClick:Ie},xe);return(0,W.wm)(xe,Ot,_t=>({onClick:Pt=>{var kt;(kt=_t==null?void 0:_t.onClick)===null||kt===void 0||kt.call(_t,Pt),Ie(Pt)},className:L()(_t==null?void 0:_t.className,`${Pe}-close-icon`)}))}}),ze=typeof ht.onClick=="function"||ce&&ce.type==="a",Ue=Oe||null,ft=Ue?i.createElement(i.Fragment,null,Ue,ce&&i.createElement("span",null,ce)):ce,de=i.createElement("span",Object.assign({},vt,{ref:ee,className:_e,style:le}),ft,Te,pt&&i.createElement(Se,{key:"preset",prefixCls:Pe}),Qe&&i.createElement(Je,{key:"status",prefixCls:Pe}));return Ge(ze?i.createElement(Y.Z,{component:"Tag"},de):de)});oe.CheckableTag=O;var k=oe},93427:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return K}});var i=u(34998);function K(L,he){return i.i.reduce((Z,g)=>{const W=L[`${g}1`],Y=L[`${g}3`],l=L[`${g}6`],x=L[`${g}7`];return Object.assign(Object.assign({},Z),he(g,{lightColor:W,lightBorderColor:Y,darkColor:l,textColor:x}))},{})}},25399:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return ee}});var i=u(59301),K=u(92310),L=u.n(K),he=u(29125),Z=u(18929),g=u(62487),W=u(75030),Y=u(86641),l=u(52838),x=u(22703),N=u(32383),y=u(55743),T=u(57700),A=u(48755),$=u(36237),H=u(63356),X=u(34925),V=u(37645),R=u(36305),Q=u(93427),O=u(51636),I=u(16931);const ue=ne=>{const{calc:se,componentCls:w,tooltipMaxWidth:D,tooltipColor:ce,tooltipBg:Oe,tooltipBorderRadius:ct,zIndexPopup:Tt,controlHeight:Ae,boxShadowSecondary:qe,paddingSM:ht,paddingXS:tt,arrowOffsetHorizontal:Fe,sizePopupArrow:jt}=ne,bt=se(ct).add(jt).add(Fe).equal(),cn=se(ct).mul(2).add(jt).equal();return[{[w]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,H.Wf)(ne)),{position:"absolute",zIndex:Tt,display:"block",width:"max-content",maxWidth:D,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":Oe,[`${w}-inner`]:{minWidth:cn,minHeight:Ae,padding:`${(0,$.unit)(ne.calc(ht).div(2).equal())} ${(0,$.unit)(tt)}`,color:ce,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:Oe,borderRadius:ct,boxShadow:qe,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:bt},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${w}-inner`]:{borderRadius:ne.min(ct,V.qN)}},[`${w}-content`]:{position:"relative"}}),(0,Q.Z)(ne,(vt,pt)=>{let{darkColor:Qe}=pt;return{[`&${w}-${vt}`]:{[`${w}-inner`]:{backgroundColor:Qe},[`${w}-arrow`]:{"--antd-arrow-background-color":Qe}}}})),{"&-rtl":{direction:"rtl"}})},(0,V.ZP)(ne,"var(--antd-arrow-background-color)"),{[`${w}-pure`]:{position:"relative",maxWidth:"none",margin:ne.sizePopupArrow}}]},Se=ne=>Object.assign(Object.assign({zIndexPopup:ne.zIndexPopupBase+70},(0,V.wZ)({contentRadius:ne.borderRadius,limitVerticalRadius:!0})),(0,R.w)((0,O.mergeToken)(ne,{borderRadiusOuter:Math.min(ne.borderRadiusOuter,4)})));var me=function(ne){let se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,I.I$)("Tooltip",D=>{const{borderRadius:ce,colorTextLightSolid:Oe,colorBgSpotlight:ct}=D,Tt=(0,O.mergeToken)(D,{tooltipMaxWidth:250,tooltipColor:Oe,tooltipBorderRadius:ce,tooltipBg:ct});return[ue(Tt),(0,X._y)(D,"zoom-big-fast")]},Se,{resetStyle:!1,injectStyle:se})(ne)},Ke=u(29509);function Je(ne,se){const w=(0,Ke.o2)(se),D=L()({[`${ne}-${se}`]:se&&w}),ce={},Oe={};return se&&!w&&(ce.background=se,Oe["--antd-arrow-background-color"]=se),{className:D,overlayStyle:ce,arrowStyle:Oe}}var We=ne=>{const{prefixCls:se,className:w,placement:D="top",title:ce,color:Oe,overlayInnerStyle:ct}=ne,{getPrefixCls:Tt}=i.useContext(A.E_),Ae=Tt("tooltip",se),[qe,ht,tt]=me(Ae),Fe=Je(Ae,Oe),jt=Fe.arrowStyle,bt=Object.assign(Object.assign({},ct),Fe.overlayStyle),cn=L()(ht,tt,Ae,`${Ae}-pure`,`${Ae}-placement-${D}`,w,Fe.className);return qe(i.createElement("div",{className:cn,style:jt},i.createElement("div",{className:`${Ae}-arrow`}),i.createElement(he.G,Object.assign({},ne,{className:ht,prefixCls:Ae,overlayInnerStyle:bt}),ce)))},oe=function(ne,se){var w={};for(var D in ne)Object.prototype.hasOwnProperty.call(ne,D)&&se.indexOf(D)<0&&(w[D]=ne[D]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,D=Object.getOwnPropertySymbols(ne);ce<D.length;ce++)se.indexOf(D[ce])<0&&Object.prototype.propertyIsEnumerable.call(ne,D[ce])&&(w[D[ce]]=ne[D[ce]]);return w};const _=i.forwardRef((ne,se)=>{var w,D;const{prefixCls:ce,openClassName:Oe,getTooltipContainer:ct,color:Tt,overlayInnerStyle:Ae,children:qe,afterOpenChange:ht,afterVisibleChange:tt,destroyTooltipOnHide:Fe,arrow:jt=!0,title:bt,overlay:cn,builtinPlacements:vt,arrowPointAtCenter:pt=!1,autoAdjustOverflow:Qe=!0,motion:Ne,getPopupContainer:le,placement:Pe="top",mouseEnterDelay:Ge=.1,mouseLeaveDelay:j=.1,overlayStyle:P,rootClassName:_e,overlayClassName:Ie,styles:Te,classNames:ze}=ne,Ue=oe(ne,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),ft=!!jt,[,de]=(0,T.ZP)(),{getPopupContainer:xe,getPrefixCls:Ot,direction:_t,className:Pt,style:kt,classNames:mt,styles:Vt}=(0,A.dj)("tooltip"),Nt=(0,N.ln)("Tooltip"),De=i.useRef(null),gt=()=>{var dt;(dt=De.current)===null||dt===void 0||dt.forceAlign()};i.useImperativeHandle(se,()=>{var dt,$t;return{forceAlign:gt,forcePopupAlign:()=>{Nt.deprecated(!1,"forcePopupAlign","forceAlign"),gt()},nativeElement:(dt=De.current)===null||dt===void 0?void 0:dt.nativeElement,popupElement:($t=De.current)===null||$t===void 0?void 0:$t.popupElement}});const[E,S]=(0,Z.Z)(!1,{value:(w=ne.open)!==null&&w!==void 0?w:ne.visible,defaultValue:(D=ne.defaultOpen)!==null&&D!==void 0?D:ne.defaultVisible}),je=!bt&&!cn&&bt!==0,G=dt=>{var $t,Ft;S(je?!1:dt),je||(($t=ne.onOpenChange)===null||$t===void 0||$t.call(ne,dt),(Ft=ne.onVisibleChange)===null||Ft===void 0||Ft.call(ne,dt))},Ce=i.useMemo(()=>{var dt,$t;let Ft=pt;return typeof jt=="object"&&(Ft=($t=(dt=jt.pointAtCenter)!==null&&dt!==void 0?dt:jt.arrowPointAtCenter)!==null&&$t!==void 0?$t:pt),vt||(0,l.Z)({arrowPointAtCenter:Ft,autoAdjustOverflow:Qe,arrowWidth:ft?de.sizePopupArrow:0,borderRadius:de.borderRadius,offset:de.marginXXS,visibleFirst:!0})},[pt,jt,vt,de]),en=i.useMemo(()=>bt===0?bt:cn||bt||"",[cn,bt]),rt=i.createElement(g.Z,{space:!0},typeof en=="function"?en():en),st=Ot("tooltip",ce),xt=Ot(),pe=ne["data-popover-inject"];let Ee=E;!("open"in ne)&&!("visible"in ne)&&je&&(Ee=!1);const nt=i.isValidElement(qe)&&!(0,x.M2)(qe)?qe:i.createElement("span",null,qe),Ze=nt.props,z=!Ze.className||typeof Ze.className=="string"?L()(Ze.className,Oe||`${st}-open`):Ze.className,[St,fe,Kt]=me(st,!pe),dn=Je(st,Tt),Bt=dn.arrowStyle,J=L()(Ie,{[`${st}-rtl`]:_t==="rtl"},dn.className,_e,fe,Kt,Pt,mt.root,ze==null?void 0:ze.root),we=L()(mt.body,ze==null?void 0:ze.body),[M,Ct]=(0,W.Cn)("Tooltip",Ue.zIndex),ot=i.createElement(he.Z,Object.assign({},Ue,{zIndex:M,showArrow:ft,placement:Pe,mouseEnterDelay:Ge,mouseLeaveDelay:j,prefixCls:st,classNames:{root:J,body:we},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bt),Vt.root),kt),P),Te==null?void 0:Te.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Vt.body),Ae),Te==null?void 0:Te.body),dn.overlayStyle)},getTooltipContainer:le||ct||xe,ref:De,builtinPlacements:Ce,overlay:rt,visible:Ee,onVisibleChange:G,afterVisibleChange:ht!=null?ht:tt,arrowContent:i.createElement("span",{className:`${st}-arrow-content`}),motion:{motionName:(0,Y.m)(xt,"zoom-big-fast",ne.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Fe}),Ee?(0,x.Tm)(nt,{className:z}):nt);return St(i.createElement(y.Z.Provider,{value:Ct},ot))});_._InternalPanelDoNotUseOrYouWillBeFired=We;var ee=_},53420:function($n,Rt,u){"use strict";u.d(Rt,{default:function(){return J}});var i=u(59301),K=u(92310),L=u.n(K),he=u(60499),Z=u(77654),g=u(85899),W=u(72190),Y=u(42244),l=u(43749),x=u(37463),N=u(6551),y=u(34643),T=u(18929),A=u(48736),$=function(we){var M=i.useRef({valueLabels:new Map});return i.useMemo(function(){var Ct=M.current.valueLabels,ot=new Map,dt=we.map(function($t){var Ft=$t.value,Mt=$t.label,ie=Mt!=null?Mt:Ct.get(Ft);return ot.set(Ft,ie),(0,g.Z)((0,g.Z)({},$t),{},{label:ie})});return M.current.valueLabels=ot,[dt]},[we])},H=function(M,Ct,ot,dt){return i.useMemo(function(){var $t=function(ae){return ae.map(function(Re){var $e=Re.value;return $e})},Ft=$t(M),Mt=$t(Ct),ie=Ft.filter(function(Le){return!dt[Le]}),ve=Ft,At=Mt;if(ot){var Be=(0,y.S)(Ft,!0,dt);ve=Be.checkedKeys,At=Be.halfCheckedKeys}return[Array.from(new Set([].concat((0,Z.Z)(ie),(0,Z.Z)(ve)))),At]},[M,Ct,ot,dt])},X=H,V=u(34061),R=function(we,M){return i.useMemo(function(){var Ct=(0,V.I8)(we,{fieldNames:M,initWrapper:function(dt){return(0,g.Z)((0,g.Z)({},dt),{},{valueEntities:new Map})},processEntity:function(dt,$t){var Ft=dt.node[M.value];if(0)var Mt;$t.valueEntities.set(Ft,dt)}});return Ct},[we,M])},Q=u(18642),O=u(11592),I=function(){return null},ue=I,Se=["children","value"];function me(we){return(0,O.Z)(we).map(function(M){if(!i.isValidElement(M)||!M.type)return null;var Ct=M,ot=Ct.key,dt=Ct.props,$t=dt.children,Ft=dt.value,Mt=(0,Y.Z)(dt,Se),ie=(0,g.Z)({key:ot,value:Ft},Mt),ve=me($t);return ve.length&&(ie.children=ve),ie}).filter(function(M){return M})}function Ke(we){if(!we)return we;var M=(0,g.Z)({},we);return"props"in M||Object.defineProperty(M,"props",{get:function(){return(0,A.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),M}}),M}function Je(we,M,Ct,ot,dt,$t){var Ft=null,Mt=null;function ie(){function ve(At){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return At.map(function(ae,Re){var $e="".concat(Be,"-").concat(Re),He=ae[$t.value],ut=Ct.includes(He),rn=ve(ae[$t.children]||[],$e,ut),on=i.createElement(ue,ae,rn.map(function(lt){return lt.node}));if(M===He&&(Ft=on),ut){var Ve={pos:$e,node:on,children:rn};return Le||Mt.push(Ve),Ve}return null}).filter(function(ae){return ae})}Mt||(Mt=[],ve(ot),Mt.sort(function(At,Be){var Le=At.node.props.value,ae=Be.node.props.value,Re=Ct.indexOf(Le),$e=Ct.indexOf(ae);return Re-$e}))}Object.defineProperty(we,"triggerNode",{get:function(){return(0,A.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),ie(),Ft}}),Object.defineProperty(we,"allCheckedNodes",{get:function(){return(0,A.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),ie(),dt?Mt:Mt.map(function(At){var Be=At.node;return Be})}})}var ke=function(M,Ct,ot){var dt=ot.fieldNames,$t=ot.treeNodeFilterProp,Ft=ot.filterTreeNode,Mt=dt.children;return i.useMemo(function(){if(!Ct||Ft===!1)return M;var ie=typeof Ft=="function"?Ft:function(At,Be){return String(Be[$t]).toUpperCase().includes(Ct.toUpperCase())},ve=function At(Be){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Be.reduce(function(ae,Re){var $e=Re[Mt],He=Le||ie(Ct,Ke(Re)),ut=At($e||[],He);return(He||ut.length)&&ae.push((0,g.Z)((0,g.Z)({},Re),{},(0,Q.Z)({isLeaf:void 0},Mt,ut))),ae},[])};return ve(M)},[M,Ct,Mt,$t,Ft])},We=ke;function oe(we){var M=i.useRef();M.current=we;var Ct=i.useCallback(function(){return M.current.apply(M,arguments)},[]);return Ct}function k(we,M){var Ct=M.id,ot=M.pId,dt=M.rootPId,$t=new Map,Ft=[];return we.forEach(function(Mt){var ie=Mt[Ct],ve=(0,g.Z)((0,g.Z)({},Mt),{},{key:Mt.key||ie});$t.set(ie,ve)}),$t.forEach(function(Mt){var ie=Mt[ot],ve=$t.get(ie);ve?(ve.children=ve.children||[],ve.children.push(Mt)):(ie===dt||dt===null)&&Ft.push(Mt)}),Ft}function _(we,M,Ct){return i.useMemo(function(){if(we){if(Ct){var ot=(0,g.Z)({id:"id",pId:"pId",rootPId:null},(0,l.Z)(Ct)==="object"?Ct:{});return k(we,ot)}return we}return me(M)},[M,Ct,we])}var ee=i.createContext(null),ne=ee,se=u(72054),w=u(87632),D=u(10228),ce=u(80547),Oe=i.createContext(null),ct=Oe,Tt=function(M){return Array.isArray(M)?M:M!==void 0?[M]:[]},Ae=function(M){var Ct=M||{},ot=Ct.label,dt=Ct.value,$t=Ct.children;return{_title:ot?[ot]:["title","label"],value:dt||"value",key:dt||"value",children:$t||"children"}},qe=function(M){return!M||M.disabled||M.disableCheckbox||M.checkable===!1},ht=function(M,Ct){var ot=[],dt=function $t(Ft){Ft.forEach(function(Mt){var ie=Mt[Ct.children];ie&&(ot.push(Mt[Ct.value]),$t(ie))})};return dt(M),ot},tt=function(M){return M==null},Fe=u(70425),jt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},bt=function(M,Ct){var ot=(0,x.lk)(),dt=ot.prefixCls,$t=ot.multiple,Ft=ot.searchValue,Mt=ot.toggleOpen,ie=ot.open,ve=ot.notFoundContent,At=i.useContext(ct),Be=At.virtual,Le=At.listHeight,ae=At.listItemHeight,Re=At.listItemScrollOffset,$e=At.treeData,He=At.fieldNames,ut=At.onSelect,rn=At.dropdownMatchSelectWidth,on=At.treeExpandAction,Ve=At.treeTitleRender,lt=At.onPopupScroll,wt=At.leftMaxCount,Qt=At.leafCountOnly,Yt=At.valueEntities,ye=i.useContext(ne),at=ye.checkable,Lt=ye.checkedKeys,Dt=ye.halfCheckedKeys,zt=ye.treeExpandedKeys,an=ye.treeDefaultExpandAll,un=ye.treeDefaultExpandedKeys,sn=ye.onTreeExpand,vn=ye.treeIcon,En=ye.showTreeIcon,Rn=ye.switcherIcon,bn=ye.treeLine,Cn=ye.treeNodeFilterProp,Bn=ye.loadData,Pn=ye.treeLoadedKeys,ir=ye.treeMotion,In=ye.onTreeLoad,zn=ye.keyEntities,Yn=i.useRef(),tr=(0,ce.Z)(function(){return $e},[ie,$e],function(Gn,ur){return ur[0]&&Gn[1]!==ur[1]}),Jn=i.useMemo(function(){return at?{checked:Lt,halfChecked:Dt}:null},[at,Lt,Dt]);i.useEffect(function(){if(ie&&!$t&&Lt.length){var Gn;(Gn=Yn.current)===null||Gn===void 0||Gn.scrollTo({key:Lt[0]})}},[ie]);var qt=function(ur){ur.preventDefault()},tn=function(ur,xr){var jr=xr.node;at&&qe(jr)||(ut(jr.key,{selected:!Lt.includes(jr.key)}),$t||Mt(!1))},yn=i.useState(un),Zn=(0,W.Z)(yn,2),Ht=Zn[0],Un=Zn[1],er=i.useState(null),lr=(0,W.Z)(er,2),_r=lr[0],Ar=lr[1],Sr=i.useMemo(function(){return zt?(0,Z.Z)(zt):Ft?_r:Ht},[Ht,_r,zt,Ft]),Vn=function(ur){Un(ur),Ar(ur),sn&&sn(ur)},An=String(Ft).toLowerCase(),pn=function(ur){return An?String(ur[Cn]).toLowerCase().includes(An):!1};i.useEffect(function(){Ft&&Ar(ht($e,He))},[Ft]);var Tn=i.useState(function(){return new Map}),Xn=(0,W.Z)(Tn,2),nr=Xn[0],gr=Xn[1];i.useEffect(function(){wt&&gr(new Map)},[wt]);function Er(Gn){var ur=Gn[He.value];if(!nr.has(ur)){var xr=Yt.get(ur),jr=(xr.children||[]).length===0;if(jr)nr.set(ur,!1);else{var wr=xr.children.filter(function(di){return!di.node.disabled&&!di.node.disableCheckbox&&!Lt.includes(di.node[He.value])}),ni=wr.length;nr.set(ur,ni>wt)}}return nr.get(ur)}var Fn=(0,Fe.zX)(function(Gn){var ur=Gn[He.value];return Lt.includes(ur)||wt===null?!1:wt<=0?!0:Qt&&wt?Er(Gn):!1}),yr=function Gn(ur){var xr=(0,se.Z)(ur),jr;try{for(xr.s();!(jr=xr.n()).done;){var wr=jr.value;if(!(wr.disabled||wr.selectable===!1)){if(Ft){if(pn(wr))return wr}else return wr;if(wr[He.children]){var ni=Gn(wr[He.children]);if(ni)return ni}}}}catch(di){xr.e(di)}finally{xr.f()}return null},Ir=i.useState(null),Zr=(0,W.Z)(Ir,2),Nr=Zr[0],Lr=Zr[1],Cr=zn[Nr];i.useEffect(function(){if(ie){var Gn=null,ur=function(){var jr=yr(tr);return jr?jr[He.value]:null};!$t&&Lt.length&&!Ft?Gn=Lt[0]:Gn=ur(),Lr(Gn)}},[ie,Ft]),i.useImperativeHandle(Ct,function(){var Gn;return{scrollTo:(Gn=Yn.current)===null||Gn===void 0?void 0:Gn.scrollTo,onKeyDown:function(xr){var jr,wr=xr.which;switch(wr){case D.Z.UP:case D.Z.DOWN:case D.Z.LEFT:case D.Z.RIGHT:(jr=Yn.current)===null||jr===void 0||jr.onKeyDown(xr);break;case D.Z.ENTER:{if(Cr){var ni=Fn(Cr.node),di=(Cr==null?void 0:Cr.node)||{},Ei=di.selectable,Dr=di.value,fr=di.disabled;Ei!==!1&&!fr&&!ni&&tn(null,{node:{key:Nr},selected:!Lt.includes(Dr)})}break}case D.Z.ESC:Mt(!1)}},onKeyUp:function(){}}});var Fr=(0,ce.Z)(function(){return!Ft},[Ft,zt||Ht],function(Gn,ur){var xr=(0,W.Z)(Gn,1),jr=xr[0],wr=(0,W.Z)(ur,2),ni=wr[0],di=wr[1];return jr!==ni&&!!(ni||di)}),Jt=Fr?Bn:null;if(tr.length===0)return i.createElement("div",{role:"listbox",className:"".concat(dt,"-empty"),onMouseDown:qt},ve);var On={fieldNames:He};return Pn&&(On.loadedKeys=Pn),Sr&&(On.expandedKeys=Sr),i.createElement("div",{onMouseDown:qt},Cr&&ie&&i.createElement("span",{style:jt,"aria-live":"assertive"},Cr.node.value),i.createElement(w.y6.Provider,{value:{nodeDisabled:Fn}},i.createElement(w.ZP,(0,he.Z)({ref:Yn,focusable:!1,prefixCls:"".concat(dt,"-tree"),treeData:tr,height:Le,itemHeight:ae,itemScrollOffset:Re,virtual:Be!==!1&&rn!==!1,multiple:$t,icon:vn,showIcon:En,switcherIcon:Rn,showLine:bn,loadData:Jt,motion:ir,activeKey:Nr,checkable:at,checkStrictly:!0,checkedKeys:Jn,selectedKeys:at?[]:Lt,defaultExpandAll:an,titleRender:Ve},On,{onActiveChange:Lr,onSelect:tn,onCheck:tn,onExpand:Vn,onLoad:In,filterTreeNode:pn,expandAction:on,onScroll:lt}))))},cn=i.forwardRef(bt),vt=cn,pt="SHOW_ALL",Qe="SHOW_PARENT",Ne="SHOW_CHILD";function le(we,M,Ct,ot){var dt=new Set(we);return M===Ne?we.filter(function($t){var Ft=Ct[$t];return!Ft||!Ft.children||!Ft.children.some(function(Mt){var ie=Mt.node;return dt.has(ie[ot.value])})||!Ft.children.every(function(Mt){var ie=Mt.node;return qe(ie)||dt.has(ie[ot.value])})}):M===Qe?we.filter(function($t){var Ft=Ct[$t],Mt=Ft?Ft.parent:null;return!Mt||qe(Mt.node)||!dt.has(Mt.key)}):we}function Pe(we){var M=we.searchPlaceholder,Ct=we.treeCheckStrictly,ot=we.treeCheckable,dt=we.labelInValue,$t=we.value,Ft=we.multiple,Mt=we.showCheckedStrategy,ie=we.maxCount;warning(!M,"`searchPlaceholder` has been removed."),Ct&&dt===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(dt||Ct)&&warning(toArray($t).every(function(ve){return ve&&_typeof(ve)==="object"&&"value"in ve}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Ct||Ft||ot?warning(!$t||Array.isArray($t),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray($t),"`value` should not be array when `TreeSelect` is single mode."),ie&&(Mt==="SHOW_ALL"&&!Ct||Mt==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var Ge=null,j=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function P(we){return!we||(0,l.Z)(we)!=="object"}var _e=i.forwardRef(function(we,M){var Ct=we.id,ot=we.prefixCls,dt=ot===void 0?"rc-tree-select":ot,$t=we.value,Ft=we.defaultValue,Mt=we.onChange,ie=we.onSelect,ve=we.onDeselect,At=we.searchValue,Be=we.inputValue,Le=we.onSearch,ae=we.autoClearSearchValue,Re=ae===void 0?!0:ae,$e=we.filterTreeNode,He=we.treeNodeFilterProp,ut=He===void 0?"value":He,rn=we.showCheckedStrategy,on=we.treeNodeLabelProp,Ve=we.multiple,lt=we.treeCheckable,wt=we.treeCheckStrictly,Qt=we.labelInValue,Yt=we.maxCount,ye=we.fieldNames,at=we.treeDataSimpleMode,Lt=we.treeData,Dt=we.children,zt=we.loadData,an=we.treeLoadedKeys,un=we.onTreeLoad,sn=we.treeDefaultExpandAll,vn=we.treeExpandedKeys,En=we.treeDefaultExpandedKeys,Rn=we.onTreeExpand,bn=we.treeExpandAction,Cn=we.virtual,Bn=we.listHeight,Pn=Bn===void 0?200:Bn,ir=we.listItemHeight,In=ir===void 0?20:ir,zn=we.listItemScrollOffset,Yn=zn===void 0?0:zn,tr=we.onDropdownVisibleChange,Jn=we.dropdownMatchSelectWidth,qt=Jn===void 0?!0:Jn,tn=we.treeLine,yn=we.treeIcon,Zn=we.showTreeIcon,Ht=we.switcherIcon,Un=we.treeMotion,er=we.treeTitleRender,lr=we.onPopupScroll,_r=(0,Y.Z)(we,j),Ar=(0,N.ZP)(Ct),Sr=lt&&!wt,Vn=lt||wt,An=wt||Qt,pn=Vn||Ve,Tn=(0,T.Z)(Ft,{value:$t}),Xn=(0,W.Z)(Tn,2),nr=Xn[0],gr=Xn[1],Er=i.useMemo(function(){return lt?rn||Ne:pt},[rn,lt]),Fn=i.useMemo(function(){return Ae(ye)},[JSON.stringify(ye)]),yr=(0,T.Z)("",{value:At!==void 0?At:Be,postState:function(vr){return vr||""}}),Ir=(0,W.Z)(yr,2),Zr=Ir[0],Nr=Ir[1],Lr=function(vr){Nr(vr),Le==null||Le(vr)},Cr=_(Lt,Dt,at),Fr=R(Cr,Fn),Jt=Fr.keyEntities,On=Fr.valueEntities,Gn=i.useCallback(function(pr){var vr=[],Pr=[];return pr.forEach(function(Wr){On.has(Wr)?Pr.push(Wr):vr.push(Wr)}),{missingRawValues:vr,existRawValues:Pr}},[On]),ur=We(Cr,Zr,{fieldNames:Fn,treeNodeFilterProp:ut,filterTreeNode:$e}),xr=i.useCallback(function(pr){if(pr){if(on)return pr[on];for(var vr=Fn._title,Pr=0;Pr<vr.length;Pr+=1){var Wr=pr[vr[Pr]];if(Wr!==void 0)return Wr}}},[Fn,on]),jr=i.useCallback(function(pr){var vr=Tt(pr);return vr.map(function(Pr){return P(Pr)?{value:Pr}:Pr})},[]),wr=i.useCallback(function(pr){var vr=jr(pr);return vr.map(function(Pr){var Wr=Pr.label,Ci=Pr.value,br=Pr.halfChecked,Rr,Mr=On.get(Ci);if(Mr){var $r;Wr=er?er(Mr.node):($r=Wr)!==null&&$r!==void 0?$r:xr(Mr.node),Rr=Mr.node.disabled}else if(Wr===void 0){var ti=jr(nr).find(function(ma){return ma.value===Ci});Wr=ti.label}return{label:Wr,value:Ci,halfChecked:br,disabled:Rr}})},[On,xr,jr,nr]),ni=i.useMemo(function(){return jr(nr===null?[]:nr)},[jr,nr]),di=i.useMemo(function(){var pr=[],vr=[];return ni.forEach(function(Pr){Pr.halfChecked?vr.push(Pr):pr.push(Pr)}),[pr,vr]},[ni]),Ei=(0,W.Z)(di,2),Dr=Ei[0],fr=Ei[1],yi=i.useMemo(function(){return Dr.map(function(pr){return pr.value})},[Dr]),sr=X(Dr,fr,Sr,Jt),wi=(0,W.Z)(sr,2),Yi=wi[0],Wi=wi[1],Mi=i.useMemo(function(){var pr=le(Yi,Er,Jt,Fn),vr=pr.map(function(br){var Rr,Mr;return(Rr=(Mr=Jt[br])===null||Mr===void 0||(Mr=Mr.node)===null||Mr===void 0?void 0:Mr[Fn.value])!==null&&Rr!==void 0?Rr:br}),Pr=vr.map(function(br){var Rr=Dr.find(function($r){return $r.value===br}),Mr=Qt?Rr==null?void 0:Rr.label:er==null?void 0:er(Rr);return{value:br,label:Mr}}),Wr=wr(Pr),Ci=Wr[0];return!pn&&Ci&&tt(Ci.value)&&tt(Ci.label)?[]:Wr.map(function(br){var Rr;return(0,g.Z)((0,g.Z)({},br),{},{label:(Rr=br.label)!==null&&Rr!==void 0?Rr:br.value})})},[Fn,pn,Yi,Dr,wr,Er,Jt]),Ni=$(Mi),Vr=(0,W.Z)(Ni,1),Di=Vr[0],ra=i.useMemo(function(){return pn&&(Er==="SHOW_CHILD"||wt||!lt)?Yt:null},[Yt,pn,wt,Er,lt]),zi=oe(function(pr,vr,Pr){var Wr=le(pr,Er,Jt,Fn);if(!(ra&&Wr.length>ra)){var Ci=wr(pr);if(gr(Ci),Re&&Nr(""),Mt){var br=pr;Sr&&(br=Wr.map(function(Ti){var Oi=On.get(Ti);return Oi?Oi.node[Fn.value]:Ti}));var Rr=vr||{triggerValue:void 0,selected:void 0},Mr=Rr.triggerValue,$r=Rr.selected,ti=br;if(wt){var ma=fr.filter(function(Ti){return!br.includes(Ti.value)});ti=[].concat((0,Z.Z)(ti),(0,Z.Z)(ma))}var Xi=wr(ti),ua={preValue:Dr,triggerValue:Mr},fi=!0;(wt||Pr==="selection"&&!$r)&&(fi=!1),Je(ua,Mr,pr,Cr,fi,Fn),Vn?ua.checked=$r:ua.selected=$r;var ri=An?Xi:Xi.map(function(Ti){return Ti.value});Mt(pn?ri:ri[0],An?null:Xi.map(function(Ti){return Ti.label}),ua)}}}),hi=i.useCallback(function(pr,vr){var Pr,Wr=vr.selected,Ci=vr.source,br=Jt[pr],Rr=br==null?void 0:br.node,Mr=(Pr=Rr==null?void 0:Rr[Fn.value])!==null&&Pr!==void 0?Pr:pr;if(!pn)zi([Mr],{selected:!0,triggerValue:Mr},"option");else{var $r=Wr?[].concat((0,Z.Z)(yi),[Mr]):Yi.filter(function(Oi){return Oi!==Mr});if(Sr){var ti=Gn($r),ma=ti.missingRawValues,Xi=ti.existRawValues,ua=Xi.map(function(Oi){return On.get(Oi).key}),fi;if(Wr){var ri=(0,y.S)(ua,!0,Jt);fi=ri.checkedKeys}else{var Ti=(0,y.S)(ua,{checked:!1,halfCheckedKeys:Wi},Jt);fi=Ti.checkedKeys}$r=[].concat((0,Z.Z)(ma),(0,Z.Z)(fi.map(function(Oi){return Jt[Oi].node[Fn.value]})))}zi($r,{selected:Wr,triggerValue:Mr},Ci||"option")}Wr||!pn?ie==null||ie(Mr,Ke(Rr)):ve==null||ve(Mr,Ke(Rr))},[Gn,On,Jt,Fn,pn,yi,zi,Sr,ie,ve,Yi,Wi,Yt]),ki=i.useCallback(function(pr){if(tr){var vr={};Object.defineProperty(vr,"documentClickClose",{get:function(){return(0,A.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),tr(pr,vr)}},[tr]),Zi=oe(function(pr,vr){var Pr=pr.map(function(Wr){return Wr.value});if(vr.type==="clear"){zi(Pr,{},"selection");return}vr.values.length&&hi(vr.values[0].value,{selected:!1,source:"selection"})}),Br=i.useMemo(function(){return{virtual:Cn,dropdownMatchSelectWidth:qt,listHeight:Pn,listItemHeight:In,listItemScrollOffset:Yn,treeData:ur,fieldNames:Fn,onSelect:hi,treeExpandAction:bn,treeTitleRender:er,onPopupScroll:lr,leftMaxCount:Yt===void 0?null:Yt-Di.length,leafCountOnly:Er==="SHOW_CHILD"&&!wt&&!!lt,valueEntities:On}},[Cn,qt,Pn,In,Yn,ur,Fn,hi,bn,er,lr,Yt,Di.length,Er,wt,lt,On]),ei=i.useMemo(function(){return{checkable:Vn,loadData:zt,treeLoadedKeys:an,onTreeLoad:un,checkedKeys:Yi,halfCheckedKeys:Wi,treeDefaultExpandAll:sn,treeExpandedKeys:vn,treeDefaultExpandedKeys:En,onTreeExpand:Rn,treeIcon:yn,treeMotion:Un,showTreeIcon:Zn,switcherIcon:Ht,treeLine:tn,treeNodeFilterProp:ut,keyEntities:Jt}},[Vn,zt,an,un,Yi,Wi,sn,vn,En,Rn,yn,Un,Zn,Ht,tn,ut,Jt]);return i.createElement(ct.Provider,{value:Br},i.createElement(ne.Provider,{value:ei},i.createElement(x.Ac,(0,he.Z)({ref:M},_r,{id:Ar,prefixCls:dt,mode:pn?"multiple":void 0,displayValues:Di,onDisplayValuesChange:Zi,searchValue:Zr,onSearch:Lr,OptionList:vt,emptyOptions:!Cr.length,onDropdownVisibleChange:ki,dropdownMatchSelectWidth:qt}))))}),Ie=_e;Ie.TreeNode=ue,Ie.SHOW_ALL=pt,Ie.SHOW_PARENT=Qe,Ie.SHOW_CHILD=Ne;var Te=Ie,ze=Te,Ue=u(2738),ft=u(75030),de=u(86641),xe=u(45915),Ot=u(82855),_t=u(48755),Pt=u(38406),kt=u(2171),mt=u(83397),Vt=u(31756),Nt=u(56553),De=u(24971),gt=u(1722),E=u(90376),S=u(68525),je=u(90005),G=u(70045),Ce=u(57700),en=u(85278),rt=u(36237),st=u(36170),xt=u(51636),pe=u(16931),Ee=u(12425);const nt=we=>{const{componentCls:M,treePrefixCls:Ct,colorBgElevated:ot}=we,dt=`.${Ct}`;return[{[`${M}-dropdown`]:[{padding:`${(0,rt.unit)(we.paddingXS)} ${(0,rt.unit)(we.calc(we.paddingXS).div(2).equal())}`},(0,Ee.Yk)(Ct,(0,xt.mergeToken)(we,{colorBgContainer:ot}),!1),{[dt]:{borderRadius:0,[`${dt}-list-holder-inner`]:{alignItems:"stretch",[`${dt}-treenode`]:{[`${dt}-node-content-wrapper`]:{flex:"auto"}}}}},(0,st.C2)(`${Ct}-checkbox`,we),{"&-rtl":{direction:"rtl",[`${dt}-switcher${dt}-switcher_close`]:{[`${dt}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},Ze=null;function z(we,M,Ct){return(0,pe.I$)("TreeSelect",ot=>{const dt=(0,xt.mergeToken)(ot,{treePrefixCls:M});return[nt(dt)]},Ee.TM)(we,Ct)}var St=function(we,M){var Ct={};for(var ot in we)Object.prototype.hasOwnProperty.call(we,ot)&&M.indexOf(ot)<0&&(Ct[ot]=we[ot]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,ot=Object.getOwnPropertySymbols(we);dt<ot.length;dt++)M.indexOf(ot[dt])<0&&Object.prototype.propertyIsEnumerable.call(we,ot[dt])&&(Ct[ot[dt]]=we[ot[dt]]);return Ct};const fe=(we,M)=>{var Ct;const{prefixCls:ot,size:dt,disabled:$t,bordered:Ft=!0,className:Mt,rootClassName:ie,treeCheckable:ve,multiple:At,listHeight:Be=256,listItemHeight:Le,placement:ae,notFoundContent:Re,switcherIcon:$e,treeLine:He,getPopupContainer:ut,popupClassName:rn,dropdownClassName:on,treeIcon:Ve=!1,transitionName:lt,choiceTransitionName:wt="",status:Qt,treeExpandAction:Yt,builtinPlacements:ye,dropdownMatchSelectWidth:at,popupMatchSelectWidth:Lt,allowClear:Dt,variant:zt,dropdownStyle:an,tagRender:un,maxCount:sn,showCheckedStrategy:vn,treeCheckStrictly:En}=we,Rn=St(we,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:bn,getPrefixCls:Cn,renderEmpty:Bn,direction:Pn,virtual:ir,popupMatchSelectWidth:In,popupOverflow:zn}=i.useContext(_t.E_),[,Yn]=(0,Ce.ZP)(),tr=Le!=null?Le:(Yn==null?void 0:Yn.controlHeightSM)+(Yn==null?void 0:Yn.paddingXXS),Jn=Cn(),qt=Cn("select",ot),tn=Cn("select-tree",ot),yn=Cn("tree-select",ot),{compactSize:Zn,compactItemClassnames:Ht}=(0,G.ri)(qt,Pn),Un=(0,mt.Z)(qt),er=(0,mt.Z)(yn),[lr,_r,Ar]=(0,E.Z)(qt,Un),[Sr]=z(yn,tn,er),[Vn,An]=(0,De.Z)("treeSelect",zt,Ft),pn=L()(rn||on,`${yn}-dropdown`,{[`${yn}-dropdown-rtl`]:Pn==="rtl"},ie,Ar,Un,er,_r),Tn=!!(ve||At),Xn=i.useMemo(()=>{if(!(sn&&(vn==="SHOW_ALL"&&!En||vn==="SHOW_PARENT")))return sn},[sn,vn,En]),nr=(0,je.Z)(we.suffixIcon,we.showArrow),gr=(Ct=Lt!=null?Lt:at)!==null&&Ct!==void 0?Ct:In,{status:Er,hasFeedback:Fn,isFormItemInput:yr,feedbackIcon:Ir}=i.useContext(Nt.aM),Zr=(0,Ot.F)(Er,Qt),{suffixIcon:Nr,removeIcon:Lr,clearIcon:Cr}=(0,S.Z)(Object.assign(Object.assign({},Rn),{multiple:Tn,showSuffixIcon:nr,hasFeedback:Fn,feedbackIcon:Ir,prefixCls:qt,componentName:"TreeSelect"})),Fr=Dt===!0?{clearIcon:Cr}:Dt;let Jt;Re!==void 0?Jt=Re:Jt=(Bn==null?void 0:Bn("Select"))||i.createElement(Pt.Z,{componentName:"Select"});const On=(0,Ue.Z)(Rn,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Gn=i.useMemo(()=>ae!==void 0?ae:Pn==="rtl"?"bottomRight":"bottomLeft",[ae,Pn]),ur=(0,Vt.Z)(Dr=>{var fr;return(fr=dt!=null?dt:Zn)!==null&&fr!==void 0?fr:Dr}),xr=i.useContext(kt.Z),jr=$t!=null?$t:xr,wr=L()(!ot&&yn,{[`${qt}-lg`]:ur==="large",[`${qt}-sm`]:ur==="small",[`${qt}-rtl`]:Pn==="rtl",[`${qt}-${Vn}`]:An,[`${qt}-in-form-item`]:yr},(0,Ot.Z)(qt,Zr,Fn),Ht,Mt,ie,Ar,Un,er,_r),ni=Dr=>i.createElement(en.Z,{prefixCls:tn,switcherIcon:$e,treeNodeProps:Dr,showLine:He}),[di]=(0,ft.Cn)("SelectLike",an==null?void 0:an.zIndex),Ei=i.createElement(ze,Object.assign({virtual:ir,disabled:jr},On,{dropdownMatchSelectWidth:gr,builtinPlacements:(0,gt.Z)(ye,zn),ref:M,prefixCls:qt,className:wr,listHeight:Be,listItemHeight:tr,treeCheckable:ve&&i.createElement("span",{className:`${qt}-tree-checkbox-inner`}),treeLine:!!He,suffixIcon:Nr,multiple:Tn,placement:Gn,removeIcon:Lr,allowClear:Fr,switcherIcon:ni,showTreeIcon:Ve,notFoundContent:Jt,getPopupContainer:ut||bn,treeMotion:null,dropdownClassName:pn,dropdownStyle:Object.assign(Object.assign({},an),{zIndex:di}),choiceTransitionName:(0,de.m)(Jn,"",wt),transitionName:(0,de.m)(Jn,"slide-up",lt),treeExpandAction:Yt,tagRender:Tn?un:void 0,maxCount:Xn,showCheckedStrategy:vn,treeCheckStrictly:En}));return lr(Sr(Ei))},dn=i.forwardRef(fe),Bt=(0,xe.Z)(dn,"dropdownAlign",we=>(0,Ue.Z)(we,["visible"]));dn.TreeNode=ue,dn.SHOW_ALL=pt,dn.SHOW_PARENT=Qe,dn.SHOW_CHILD=Ne,dn._InternalPanelDoNotUseOrYouWillBeFired=Bt;var J=dn},18287:function($n,Rt,u){"use strict";u.d(Rt,{default:function(){return Tt}});var i=u(87632),K=u(77654),L=u(59301),he=u(52671),Z=u(8657),g=u(60499),W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Y=W,l=u(7657),x=function(qe,ht){return L.createElement(l.Z,(0,g.Z)({},qe,{ref:ht,icon:Y}))},N=L.forwardRef(x),y=N,T=u(92310),A=u.n(T),$=u(82661),H=u(34061),X=u(48755),V=u(56082),R=u(86641),Q=u(57700),O=u(12425);const I=4;function ue(Ae){const{dropPosition:qe,dropLevelOffset:ht,prefixCls:tt,indent:Fe,direction:jt="ltr"}=Ae,bt=jt==="ltr"?"left":"right",cn=jt==="ltr"?"right":"left",vt={[bt]:-ht*Fe+I,[cn]:0};switch(qe){case-1:vt.top=-3;break;case 1:vt.bottom=-3;break;default:vt.bottom=-3,vt[bt]=Fe+I;break}return L.createElement("div",{style:vt,className:`${tt}-drop-indicator`})}var Se=ue,me=u(85278),Je=L.forwardRef((Ae,qe)=>{var ht;const{getPrefixCls:tt,direction:Fe,virtual:jt,tree:bt}=L.useContext(X.E_),{prefixCls:cn,className:vt,showIcon:pt=!1,showLine:Qe,switcherIcon:Ne,switcherLoadingIcon:le,blockNode:Pe=!1,children:Ge,checkable:j=!1,selectable:P=!0,draggable:_e,motion:Ie,style:Te}=Ae,ze=tt("tree",cn),Ue=tt(),ft=Ie!=null?Ie:Object.assign(Object.assign({},(0,R.Z)(Ue)),{motionAppear:!1}),de=Object.assign(Object.assign({},Ae),{checkable:j,selectable:P,showIcon:pt,motion:ft,blockNode:Pe,showLine:!!Qe,dropIndicatorRender:Se}),[xe,Ot,_t]=(0,O.ZP)(ze),[,Pt]=(0,Q.ZP)(),kt=Pt.paddingXS/2+(((ht=Pt.Tree)===null||ht===void 0?void 0:ht.titleHeight)||Pt.controlHeightSM),mt=L.useMemo(()=>{if(!_e)return!1;let Nt={};switch(typeof _e){case"function":Nt.nodeDraggable=_e;break;case"object":Nt=Object.assign({},_e);break;default:break}return Nt.icon!==!1&&(Nt.icon=Nt.icon||L.createElement(V.Z,null)),Nt},[_e]),Vt=Nt=>L.createElement(me.Z,{prefixCls:ze,switcherIcon:Ne,switcherLoadingIcon:le,treeNodeProps:Nt,showLine:Qe});return xe(L.createElement(i.ZP,Object.assign({itemHeight:kt,ref:qe,virtual:jt},de,{style:Object.assign(Object.assign({},bt==null?void 0:bt.style),Te),prefixCls:ze,className:A()({[`${ze}-icon-hide`]:!pt,[`${ze}-block-node`]:Pe,[`${ze}-unselectable`]:!P,[`${ze}-rtl`]:Fe==="rtl"},bt==null?void 0:bt.className,vt,Ot,_t),direction:Fe,checkable:j&&L.createElement("span",{className:`${ze}-checkbox-inner`}),selectable:P,switcherIcon:Vt,draggable:mt}),Ge))});const ke=0,We=1,oe=2;function k(Ae,qe,ht){const{key:tt,children:Fe}=ht;function jt(bt){const cn=bt[tt],vt=bt[Fe];qe(cn,bt)!==!1&&k(vt||[],qe,ht)}Ae.forEach(jt)}function _(Ae){let{treeData:qe,expandedKeys:ht,startKey:tt,endKey:Fe,fieldNames:jt}=Ae;const bt=[];let cn=ke;if(tt&&tt===Fe)return[tt];if(!tt||!Fe)return[];function vt(pt){return pt===tt||pt===Fe}return k(qe,pt=>{if(cn===oe)return!1;if(vt(pt)){if(bt.push(pt),cn===ke)cn=We;else if(cn===We)return cn=oe,!1}else cn===We&&bt.push(pt);return ht.includes(pt)},(0,H.w$)(jt)),bt}function ee(Ae,qe,ht){const tt=(0,K.Z)(qe),Fe=[];return k(Ae,(jt,bt)=>{const cn=tt.indexOf(jt);return cn!==-1&&(Fe.push(bt),tt.splice(cn,1)),!!tt.length},(0,H.w$)(ht)),Fe}var ne=function(Ae,qe){var ht={};for(var tt in Ae)Object.prototype.hasOwnProperty.call(Ae,tt)&&qe.indexOf(tt)<0&&(ht[tt]=Ae[tt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,tt=Object.getOwnPropertySymbols(Ae);Fe<tt.length;Fe++)qe.indexOf(tt[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Ae,tt[Fe])&&(ht[tt[Fe]]=Ae[tt[Fe]]);return ht};function se(Ae){const{isLeaf:qe,expanded:ht}=Ae;return qe?L.createElement(he.Z,null):ht?L.createElement(Z.Z,null):L.createElement(y,null)}function w(Ae){let{treeData:qe,children:ht}=Ae;return qe||(0,H.zn)(ht)}const D=(Ae,qe)=>{var{defaultExpandAll:ht,defaultExpandParent:tt,defaultExpandedKeys:Fe}=Ae,jt=ne(Ae,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const bt=L.useRef(null),cn=L.useRef(null),vt=()=>{const{keyEntities:xe}=(0,H.I8)(w(jt));let Ot;return ht?Ot=Object.keys(xe):tt?Ot=(0,$.r7)(jt.expandedKeys||Fe||[],xe):Ot=jt.expandedKeys||Fe||[],Ot},[pt,Qe]=L.useState(jt.selectedKeys||jt.defaultSelectedKeys||[]),[Ne,le]=L.useState(()=>vt());L.useEffect(()=>{"selectedKeys"in jt&&Qe(jt.selectedKeys)},[jt.selectedKeys]),L.useEffect(()=>{"expandedKeys"in jt&&le(jt.expandedKeys)},[jt.expandedKeys]);const Pe=(xe,Ot)=>{var _t;return"expandedKeys"in jt||le(xe),(_t=jt.onExpand)===null||_t===void 0?void 0:_t.call(jt,xe,Ot)},Ge=(xe,Ot)=>{var _t;const{multiple:Pt,fieldNames:kt}=jt,{node:mt,nativeEvent:Vt}=Ot,{key:Nt=""}=mt,De=w(jt),gt=Object.assign(Object.assign({},Ot),{selected:!0}),E=(Vt==null?void 0:Vt.ctrlKey)||(Vt==null?void 0:Vt.metaKey),S=Vt==null?void 0:Vt.shiftKey;let je;Pt&&E?(je=xe,bt.current=Nt,cn.current=je,gt.selectedNodes=ee(De,je,kt)):Pt&&S?(je=Array.from(new Set([].concat((0,K.Z)(cn.current||[]),(0,K.Z)(_({treeData:De,expandedKeys:Ne,startKey:Nt,endKey:bt.current,fieldNames:kt}))))),gt.selectedNodes=ee(De,je,kt)):(je=[Nt],bt.current=Nt,cn.current=je,gt.selectedNodes=ee(De,je,kt)),(_t=jt.onSelect)===null||_t===void 0||_t.call(jt,je,gt),"selectedKeys"in jt||Qe(je)},{getPrefixCls:j,direction:P}=L.useContext(X.E_),{prefixCls:_e,className:Ie,showIcon:Te=!0,expandAction:ze="click"}=jt,Ue=ne(jt,["prefixCls","className","showIcon","expandAction"]),ft=j("tree",_e),de=A()(`${ft}-directory`,{[`${ft}-directory-rtl`]:P==="rtl"},Ie);return L.createElement(Je,Object.assign({icon:se,ref:qe,blockNode:!0},Ue,{showIcon:Te,expandAction:ze,prefixCls:ft,className:de,expandedKeys:Ne,selectedKeys:pt,onSelect:Ge,onExpand:Pe}))};var Oe=L.forwardRef(D);const ct=Je;ct.DirectoryTree=Oe,ct.TreeNode=i.OF;var Tt=ct},12425:function($n,Rt,u){"use strict";u.d(Rt,{ZP:function(){return $},Yk:function(){return y},TM:function(){return T}});var i=u(36237),K=u(36170),L=u(63356),he=u(34961),Z=u(51636),g=u(16931);const W=H=>{let{treeCls:X,treeNodeCls:V,directoryNodeSelectedBg:R,directoryNodeSelectedColor:Q,motionDurationMid:O,borderRadius:I,controlItemBgHover:ue}=H;return{[`${X}${X}-directory ${V}`]:{[`${X}-node-content-wrapper`]:{position:"static",[`> *:not(${X}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${O}`,content:'""',borderRadius:I},"&:hover:before":{background:ue}},[`${X}-switcher, ${X}-checkbox, ${X}-draggable-icon`]:{zIndex:1},"&-selected":{[`${X}-switcher, ${X}-draggable-icon`]:{color:Q},[`${X}-node-content-wrapper`]:{color:Q,background:"transparent","&:before, &:hover:before":{background:R}}}}}},Y=new i.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),l=(H,X)=>({[`.${H}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${X.motionDurationSlow}`}}}),x=(H,X)=>({[`.${H}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:X.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,i.unit)(X.lineWidthBold)} solid ${X.colorPrimary}`,borderRadius:"50%",content:'""'}}}),N=(H,X)=>{const{treeCls:V,treeNodeCls:R,treeNodePadding:Q,titleHeight:O,indentSize:I,nodeSelectedBg:ue,nodeHoverBg:Se,colorTextQuaternary:me,controlItemBgActiveDisabled:Ke}=X;return{[V]:Object.assign(Object.assign({},(0,L.Wf)(X)),{background:X.colorBgContainer,borderRadius:X.borderRadius,transition:`background-color ${X.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${V}-rtl ${V}-switcher_close ${V}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${V}-active-focused)`]:Object.assign({},(0,L.oN)(X)),[`${V}-list-holder-inner`]:{alignItems:"flex-start"},[`&${V}-block-node`]:{[`${V}-list-holder-inner`]:{alignItems:"stretch",[`${V}-node-content-wrapper`]:{flex:"auto"},[`${R}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${X.colorPrimary}`,opacity:0,animationName:Y,animationDuration:X.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:X.borderRadius}}},[R]:{display:"flex",alignItems:"flex-start",marginBottom:Q,lineHeight:(0,i.unit)(O),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:Q},[`&-disabled ${V}-node-content-wrapper`]:{color:X.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${V}-checkbox-disabled + ${V}-node-selected,&${R}-disabled${R}-selected ${V}-node-content-wrapper`]:{backgroundColor:Ke},[`${V}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${R}-disabled)`]:{[`${V}-node-content-wrapper`]:{"&:hover":{color:X.nodeHoverColor}}},[`&-active ${V}-node-content-wrapper`]:{background:X.controlItemBgHover},[`&:not(${R}-disabled).filter-node ${V}-title`]:{color:X.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${V}-draggable-icon`]:{flexShrink:0,width:O,textAlign:"center",visibility:"visible",color:me},[`&${R}-disabled ${V}-draggable-icon`]:{visibility:"hidden"}}},[`${V}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:I}},[`${V}-draggable-icon`]:{visibility:"hidden"},[`${V}-switcher, ${V}-checkbox`]:{marginInlineEnd:X.calc(X.calc(O).sub(X.controlInteractiveSize)).div(2).equal()},[`${V}-switcher`]:Object.assign(Object.assign({},l(H,X)),{position:"relative",flex:"none",alignSelf:"stretch",width:O,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${X.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:O,height:O,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:X.borderRadius,transition:`all ${X.motionDurationSlow}`},[`&:not(${V}-switcher-noop):hover:before`]:{backgroundColor:X.colorBgTextHover},[`&_close ${V}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:X.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:X.calc(O).div(2).equal(),bottom:X.calc(Q).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${X.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:X.calc(X.calc(O).div(2).equal()).mul(.8).equal(),height:X.calc(O).div(2).equal(),borderBottom:`1px solid ${X.colorBorder}`,content:'""'}}}),[`${V}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:O,paddingBlock:0,paddingInline:X.paddingXS,background:"transparent",borderRadius:X.borderRadius,cursor:"pointer",transition:`all ${X.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},x(H,X)),{"&:hover":{backgroundColor:Se},[`&${V}-node-selected`]:{color:X.nodeSelectedColor,backgroundColor:ue},[`${V}-iconEle`]:{display:"inline-block",width:O,height:O,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${V}-unselectable ${V}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${R}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${X.colorPrimary}`},"&-show-line":{[`${V}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:X.calc(O).div(2).equal(),bottom:X.calc(Q).mul(-1).equal(),borderInlineEnd:`1px solid ${X.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${V}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${R}-leaf-last ${V}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,i.unit)(X.calc(O).div(2).equal())} !important`}})}},y=function(H,X){let V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const R=`.${H}`,Q=`${R}-treenode`,O=X.calc(X.paddingXS).div(2).equal(),I=(0,Z.mergeToken)(X,{treeCls:R,treeNodeCls:Q,treeNodePadding:O});return[N(H,I),V&&W(I)].filter(Boolean)},T=H=>{const{controlHeightSM:X,controlItemBgHover:V,controlItemBgActive:R}=H,Q=X;return{titleHeight:Q,indentSize:Q,nodeHoverBg:V,nodeHoverColor:H.colorText,nodeSelectedBg:R,nodeSelectedColor:H.colorText}},A=H=>{const{colorTextLightSolid:X,colorPrimary:V}=H;return Object.assign(Object.assign({},T(H)),{directoryNodeSelectedColor:X,directoryNodeSelectedBg:V})};var $=(0,g.I$)("Tree",(H,X)=>{let{prefixCls:V}=X;return[{[H.componentCls]:(0,K.C2)(`${V}-checkbox`,H)},y(V,H),(0,he.Z)(H)]},A)},85278:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return X}});var i=u(59301),K=u(60499),L={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},he=L,Z=u(7657),g=function(R,Q){return i.createElement(Z.Z,(0,K.Z)({},R,{ref:Q,icon:he}))},W=i.forwardRef(g),Y=W,l=u(52671),x=u(58617),N=u(15075),y=u(43531),T=u(92310),A=u.n(T),$=u(22703),X=V=>{const{prefixCls:R,switcherIcon:Q,treeNodeProps:O,showLine:I,switcherLoadingIcon:ue}=V,{isLeaf:Se,expanded:me,loading:Ke}=O;if(Ke)return i.isValidElement(ue)?ue:i.createElement(x.Z,{className:`${R}-switcher-loading-icon`});let Je;if(I&&typeof I=="object"&&(Je=I.showLeafIcon),Se){if(!I)return null;if(typeof Je!="boolean"&&Je){const oe=typeof Je=="function"?Je(O):Je,k=`${R}-switcher-line-custom-icon`;return i.isValidElement(oe)?(0,$.Tm)(oe,{className:A()(oe.props.className||"",k)}):oe}return Je?i.createElement(l.Z,{className:`${R}-switcher-line-icon`}):i.createElement("span",{className:`${R}-switcher-leaf-line`})}const ke=`${R}-switcher-icon`,We=typeof Q=="function"?Q(O):Q;return i.isValidElement(We)?(0,$.Tm)(We,{className:A()(We.props.className||"",ke)}):We!==void 0?We:I?me?i.createElement(N.Z,{className:`${R}-switcher-line-icon`}):i.createElement(y.Z,{className:`${R}-switcher-line-icon`}):i.createElement(Y,{className:ke})}},64018:function(){var $n,Rt,u,i=!1,K,L;window.PR_SHOULD_USE_CONTINUATION=!0;var he,Z;(function(){var g=window,W=["break,continue,do,else,for,if,return,while"],Y=[W,"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"],l=[Y,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],x=[l,"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"],N=[l,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],y=[l,"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"],T="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",A=[l,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],$="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",H=[W,"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"],X=[W,"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"],V=[W,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],R=[x,y,N,A,$,H,X,V],Q=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,O="str",I="kwd",ue="com",Se="typ",me="lit",Ke="pun",Je="pln",ke="tag",We="dec",oe="src",k="atn",_="atv",ee="nocode",ne="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function se(Ne){for(var le=0,Pe=!1,Ge=!1,j=0,P=Ne.length;j<P;++j){var _e=Ne[j];if(_e.ignoreCase)Ge=!0;else if(/[a-z]/i.test(_e.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Pe=!0,Ge=!1;break}}var Ie={b:8,t:9,n:10,v:11,f:12,r:13};function Te(xe){var Ot=xe.charCodeAt(0);if(Ot!==92)return Ot;var _t=xe.charAt(1);return Ot=Ie[_t],Ot||("0"<=_t&&_t<="7"?parseInt(xe.substring(1),8):_t==="u"||_t==="x"?parseInt(xe.substring(2),16):xe.charCodeAt(1))}function ze(xe){if(xe<32)return(xe<16?"\\x0":"\\x")+xe.toString(16);var Ot=String.fromCharCode(xe);return Ot==="\\"||Ot==="-"||Ot==="]"||Ot==="^"?"\\"+Ot:Ot}function Ue(xe){var Ot=xe.substring(1,xe.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")),_t=[],Pt=Ot[0]==="^",kt=["["];Pt&&kt.push("^");for(var mt=Pt?1:0,Vt=Ot.length;mt<Vt;++mt){var Nt=Ot[mt];if(/\\[bdsw]/i.test(Nt))kt.push(Nt);else{var De=Te(Nt),gt;mt+2<Vt&&Ot[mt+1]==="-"?(gt=Te(Ot[mt+2]),mt+=2):gt=De,_t.push([De,gt]),gt<65||De>122||(gt<65||De>90||_t.push([Math.max(65,De)|32,Math.min(gt,90)|32]),gt<97||De>122||_t.push([Math.max(97,De)&-33,Math.min(gt,122)&-33]))}}_t.sort(function(G,Ce){return G[0]-Ce[0]||Ce[1]-G[1]});for(var E=[],S=[],mt=0;mt<_t.length;++mt){var je=_t[mt];je[0]<=S[1]+1?S[1]=Math.max(S[1],je[1]):E.push(S=je)}for(var mt=0;mt<E.length;++mt){var je=E[mt];kt.push(ze(je[0])),je[1]>je[0]&&(je[1]+1>je[0]&&kt.push("-"),kt.push(ze(je[1])))}return kt.push("]"),kt.join("")}function ft(xe){for(var Ot=xe.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")),_t=Ot.length,Pt=[],kt=0,mt=0;kt<_t;++kt){var Vt=Ot[kt];if(Vt==="(")++mt;else if(Vt.charAt(0)==="\\"){var Nt=+Vt.substring(1);Nt&&(Nt<=mt?Pt[Nt]=-1:Ot[kt]=ze(Nt))}}for(var kt=1;kt<Pt.length;++kt)Pt[kt]===-1&&(Pt[kt]=++le);for(var kt=0,mt=0;kt<_t;++kt){var Vt=Ot[kt];if(Vt==="(")++mt,Pt[mt]||(Ot[kt]="(?:");else if(Vt.charAt(0)==="\\"){var Nt=+Vt.substring(1);Nt&&Nt<=mt&&(Ot[kt]="\\"+Pt[Nt])}}for(var kt=0;kt<_t;++kt)Ot[kt]==="^"&&Ot[kt+1]!=="^"&&(Ot[kt]="");if(xe.ignoreCase&&Pe)for(var kt=0;kt<_t;++kt){var Vt=Ot[kt],De=Vt.charAt(0);Vt.length>=2&&De==="["?Ot[kt]=Ue(Vt):De!=="\\"&&(Ot[kt]=Vt.replace(/[a-zA-Z]/g,function(S){var je=S.charCodeAt(0);return"["+String.fromCharCode(je&-33,je|32)+"]"}))}return Ot.join("")}for(var de=[],j=0,P=Ne.length;j<P;++j){var _e=Ne[j];if(_e.global||_e.multiline)throw new Error(""+_e);de.push("(?:"+ft(_e)+")")}return new RegExp(de.join("|"),Ge?"gi":"g")}function w(Ne,le){var Pe=/(?:^|\s)nocode(?:\s|$)/,Ge=[],j=0,P=[],_e=0;function Ie(Te){var ze=Te.nodeType;if(ze==1){if(Pe.test(Te.className))return;for(var Ue=Te.firstChild;Ue;Ue=Ue.nextSibling)Ie(Ue);var ft=Te.nodeName.toLowerCase();(ft==="br"||ft==="li")&&(Ge[_e]=`
|
|
|
`,P[_e<<1]=j++,P[_e++<<1|1]=Te)}else if(ze==3||ze==4){var de=Te.nodeValue;de.length&&(le?de=de.replace(/\r\n?/g,`
|
|
|
`):de=de.replace(/[ \t\r\n]+/g," "),Ge[_e]=de,P[_e<<1]=j,j+=de.length,P[_e++<<1|1]=Te)}}return Ie(Ne),{sourceCode:Ge.join("").replace(/\n$/,""),spans:P}}function D(Ne,le,Pe,Ge,j){if(Pe){var P={sourceNode:Ne,pre:1,langExtension:null,numberLines:null,sourceCode:Pe,spans:null,basePos:le,decorations:null};Ge(P),j.push.apply(j,P.decorations)}}var ce=/\S/;function Oe(Ne){for(var le=void 0,Pe=Ne.firstChild;Pe;Pe=Pe.nextSibling){var Ge=Pe.nodeType;le=Ge===1?le?Ne:Pe:Ge===3&&ce.test(Pe.nodeValue)?Ne:le}return le===Ne?void 0:le}function ct(Ne,le){var Pe={},Ge;(function(){for(var _e=Ne.concat(le),Ie=[],Te={},ze=0,Ue=_e.length;ze<Ue;++ze){var ft=_e[ze],de=ft[3];if(de)for(var xe=de.length;--xe>=0;)Pe[de.charAt(xe)]=ft;var Ot=ft[1],_t=""+Ot;Te.hasOwnProperty(_t)||(Ie.push(Ot),Te[_t]=null)}Ie.push(/[\0-\uffff]/),Ge=se(Ie)})();var j=le.length,P=function(_e){for(var Ie=_e.sourceCode,Te=_e.basePos,ze=_e.sourceNode,Ue=[Te,Je],ft=0,de=Ie.match(Ge)||[],xe={},Ot=0,_t=de.length;Ot<_t;++Ot){var Pt=de[Ot],kt=xe[Pt],mt=void 0,Vt;if(typeof kt=="string")Vt=!1;else{var Nt=Pe[Pt.charAt(0)];if(Nt)mt=Pt.match(Nt[1]),kt=Nt[0];else{for(var De=0;De<j;++De)if(Nt=le[De],mt=Pt.match(Nt[1]),mt){kt=Nt[0];break}mt||(kt=Je)}Vt=kt.length>=5&&kt.substring(0,5)==="lang-",Vt&&!(mt&&typeof mt[1]=="string")&&(Vt=!1,kt=oe),Vt||(xe[Pt]=kt)}var gt=ft;if(ft+=Pt.length,!Vt)Ue.push(Te+gt,kt);else{var E=mt[1],S=Pt.indexOf(E),je=S+E.length;mt[2]&&(je=Pt.length-mt[2].length,S=je-E.length);var G=kt.substring(5);D(ze,Te+gt,Pt.substring(0,S),P,Ue),D(ze,Te+gt+S,E,jt(G,E),Ue),D(ze,Te+gt+je,Pt.substring(je),P,Ue)}}_e.decorations=Ue};return P}function Tt(Ne){var le=[],Pe=[];Ne.tripleQuotedStrings?le.push([O,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Ne.multiLineStrings?le.push([O,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):le.push([O,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Ne.verbatimStrings&&Pe.push([O,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Ge=Ne.hashComments;Ge&&(Ne.cStyleComments?(Ge>1?le.push([ue,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):le.push([ue,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Pe.push([O,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):le.push([ue,/^#[^\r\n]*/,null,"#"])),Ne.cStyleComments&&(Pe.push([ue,/^\/\/[^\r\n]*/,null]),Pe.push([ue,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var j=Ne.regexLiterals;if(j){var P=j>1?"":`
|
|
|
\r`,_e=P?".":"[\\S\\s]",Ie="/(?=[^/*"+P+"])(?:[^/\\x5B\\x5C"+P+"]|\\x5C"+_e+"|\\x5B(?:[^\\x5C\\x5D"+P+"]|\\x5C"+_e+")*(?:\\x5D|$))+/";Pe.push(["lang-regex",RegExp("^"+ne+"("+Ie+")")])}var Te=Ne.types;Te&&Pe.push([Se,Te]);var ze=(""+Ne.keywords).replace(/^ | $/g,"");ze.length&&Pe.push([I,new RegExp("^(?:"+ze.replace(/[\s,]+/g,"|")+")\\b"),null]),le.push([Je,/^\s+/,null,` \r
|
|
|
\xA0`]);var Ue="^.[^\\s\\w.$@'\"`/\\\\]*";return Ne.regexLiterals&&(Ue+="(?!s*/)"),Pe.push([me,/^@[a-z_$][a-z_$@0-9]*/i,null],[Se,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[Je,/^[a-z_$][a-z_$@0-9]*/i,null],[me,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[Je,/^\\[\s\S]?/,null],[Ke,new RegExp(Ue),null]),ct(le,Pe)}var Ae=Tt({keywords:R,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function qe(Ne,le,Pe){for(var Ge=/(?:^|\s)nocode(?:\s|$)/,j=/\r\n?|\n/,P=Ne.ownerDocument,_e=P.createElement("li");Ne.firstChild;)_e.appendChild(Ne.firstChild);var Ie=[_e];function Te(Ot){var _t=Ot.nodeType;if(_t==1&&!Ge.test(Ot.className))if(Ot.nodeName==="br")ze(Ot),Ot.parentNode&&Ot.parentNode.removeChild(Ot);else for(var Pt=Ot.firstChild;Pt;Pt=Pt.nextSibling)Te(Pt);else if((_t==3||_t==4)&&Pe){var kt=Ot.nodeValue,mt=kt.match(j);if(mt){var Vt=kt.substring(0,mt.index);Ot.nodeValue=Vt;var Nt=kt.substring(mt.index+mt[0].length);if(Nt){var De=Ot.parentNode;De.insertBefore(P.createTextNode(Nt),Ot.nextSibling)}ze(Ot),Vt||Ot.parentNode.removeChild(Ot)}}}function ze(Ot){for(;!Ot.nextSibling;)if(Ot=Ot.parentNode,!Ot)return;function _t(mt,Vt){var Nt=Vt?mt.cloneNode(!1):mt,De=mt.parentNode;if(De){var gt=_t(De,1),E=mt.nextSibling;gt.appendChild(Nt);for(var S=E;S;S=E)E=S.nextSibling,gt.appendChild(S)}return Nt}for(var Pt=_t(Ot.nextSibling,0),kt;(kt=Pt.parentNode)&&kt.nodeType===1;)Pt=kt;Ie.push(Pt)}for(var Ue=0;Ue<Ie.length;++Ue)Te(Ie[Ue]);le===(le|0)&&Ie[0].setAttribute("value",le);var ft=P.createElement("ol");ft.className="linenums";for(var de=Math.max(0,le-1|0)||0,Ue=0,xe=Ie.length;Ue<xe;++Ue)_e=Ie[Ue],_e.className="L"+(Ue+de)%10,_e.firstChild||_e.appendChild(P.createTextNode("\xA0")),ft.appendChild(_e);Ne.appendChild(ft)}function ht(Ne){var le=/\bMSIE\s(\d+)/.exec(navigator.userAgent);le=le&&+le[1]<=8;var Pe=/\n/g,Ge=Ne.sourceCode,j=Ge.length,P=0,_e=Ne.spans,Ie=_e.length,Te=0,ze=Ne.decorations,Ue=ze.length,ft=0;ze[Ue]=j;var de,xe;for(xe=de=0;xe<Ue;)ze[xe]!==ze[xe+2]?(ze[de++]=ze[xe++],ze[de++]=ze[xe++]):xe+=2;for(Ue=de,xe=de=0;xe<Ue;){for(var Ot=ze[xe],_t=ze[xe+1],Pt=xe+2;Pt+2<=Ue&&ze[Pt+1]===_t;)Pt+=2;ze[de++]=Ot,ze[de++]=_t,xe=Pt}Ue=ze.length=de;var kt=Ne.sourceNode,mt="";kt&&(mt=kt.style.display,kt.style.display="none");try{for(var Vt=null;Te<Ie;){var Nt=_e[Te],De=_e[Te+2]||j,gt=ze[ft+2]||j,Pt=Math.min(De,gt),E=_e[Te+1],S;if(E.nodeType!==1&&(S=Ge.substring(P,Pt))){le&&(S=S.replace(Pe,"\r")),E.nodeValue=S;var je=E.ownerDocument,G=je.createElement("span");G.className=ze[ft+1];var Ce=E.parentNode;Ce.replaceChild(G,E),G.appendChild(E),P<De&&(_e[Te+1]=E=je.createTextNode(Ge.substring(Pt,De)),Ce.insertBefore(E,G.nextSibling))}P=Pt,P>=De&&(Te+=2),P>=gt&&(ft+=2)}}finally{kt&&(kt.style.display=mt)}}var tt={};function Fe(Ne,le){for(var Pe=le.length;--Pe>=0;){var Ge=le[Pe];tt.hasOwnProperty(Ge)?g.console&&console.warn("cannot override language handler %s",Ge):tt[Ge]=Ne}}function jt(Ne,le){return Ne&&tt.hasOwnProperty(Ne)||(Ne=/^\s*</.test(le)?"default-markup":"default-code"),tt[Ne]}Fe(Ae,["default-code"]),Fe(ct([],[[Je,/^[^<?]+/],[We,/^<!\w[^>]*(?:>|$)/],[ue,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[Ke,/^(?:<[%?]|[%?]>)/],["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"]),Fe(ct([[Je,/^[\s]+/,null,` \r
|
|
|
`],[_,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[ke,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[k,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[Ke,/^[=<>\/]+/],["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"]),Fe(ct([],[[_,/^[\s\S]+/]]),["uq.val"]),Fe(Tt({keywords:x,hashComments:!0,cStyleComments:!0,types:Q}),["c","cc","cpp","cxx","cyc","m"]),Fe(Tt({keywords:"null,true,false"}),["json"]),Fe(Tt({keywords:y,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:Q}),["cs"]),Fe(Tt({keywords:N,cStyleComments:!0}),["java"]),Fe(Tt({keywords:V,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Fe(Tt({keywords:H,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Fe(Tt({keywords:$,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Fe(Tt({keywords:X,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Fe(Tt({keywords:A,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Fe(Tt({keywords:T,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Fe(ct([],[[O,/^[\s\S]+/]]),["regex"]);function bt(Ne){var le=Ne.langExtension;try{var Pe=w(Ne.sourceNode,Ne.pre),Ge=Pe.sourceCode;Ne.sourceCode=Ge,Ne.spans=Pe.spans,Ne.basePos=0,jt(le,Ge)(Ne),ht(Ne)}catch(j){g.console&&console.log(j&&j.stack||j)}}function cn(Ne,le,Pe){var Ge=Pe||!1,j=le||null,P=document.createElement("div");P.innerHTML="<pre>"+Ne+"</pre>",P=P.firstChild,Ge&&qe(P,Ge,!0);var _e={langExtension:j,numberLines:Ge,sourceNode:P,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return bt(_e),P.innerHTML}function vt(Ne,le){var Pe=le||document.body,Ge=Pe.ownerDocument||document;function j(Nt){return Pe.getElementsByTagName(Nt)}for(var P=[j("pre"),j("code"),j("xmp")],_e=[],Ie=0;Ie<P.length;++Ie)for(var Te=0,ze=P[Ie].length;Te<ze;++Te)_e.push(P[Ie][Te]);P=null;var Ue=Date;Ue.now||(Ue={now:function(){return+new Date}});var ft=0,de=/\blang(?:uage)?-([\w.]+)(?!\S)/,xe=/\bprettyprint\b/,Ot=/\bprettyprinted\b/,_t=/pre|xmp/i,Pt=/^code$/i,kt=/^(?:pre|code|xmp)$/i,mt={};function Vt(){for(var Nt=g.PR_SHOULD_USE_CONTINUATION?Ue.now()+250:1/0;ft<_e.length&&Ue.now()<Nt;ft++){for(var De=_e[ft],gt=mt,E=De;E=E.previousSibling;){var S=E.nodeType,je=(S===7||S===8)&&E.nodeValue;if(je?!/^\??prettify\b/.test(je):S!==3||/\S/.test(E.nodeValue))break;if(je){gt={},je.replace(/\b(\w+)=([\w:.%+-]+)/g,function(fe,Kt,dn){gt[Kt]=dn});break}}var G=De.className;if((gt!==mt||xe.test(G))&&!Ot.test(G)){for(var Ce=!1,en=De.parentNode;en;en=en.parentNode){var rt=en.tagName;if(kt.test(rt)&&en.className&&xe.test(en.className)){Ce=!0;break}}if(!Ce){De.className+=" prettyprinted";var st=gt.lang;if(!st){st=G.match(de);var xt;!st&&(xt=Oe(De))&&Pt.test(xt.tagName)&&(st=xt.className.match(de)),st&&(st=st[1])}var pe;if(_t.test(De.tagName))pe=1;else{var Ee=De.currentStyle,nt=Ge.defaultView,Ze=Ee?Ee.whiteSpace:nt&&nt.getComputedStyle?nt.getComputedStyle(De,null).getPropertyValue("white-space"):0;pe=Ze&&Ze.substring(0,3)==="pre"}var z=gt.linenums;(z=z==="true"||+z)||(z=G.match(/\blinenums\b(?::(\d+))?/),z=z?z[1]&&z[1].length?+z[1]:!0:!1),z&&qe(De,z,pe);var St={langExtension:st,sourceNode:De,numberLines:z,pre:pe,sourceCode:null,basePos:null,spans:null,decorations:null};bt(St)}}}ft<_e.length?g.setTimeout(Vt,250):typeof Ne=="function"&&Ne()}Vt()}var pt=g.PR={createSimpleLexer:ct,registerLangHandler:Fe,sourceDecorator:Tt,PR_ATTRIB_NAME:k,PR_ATTRIB_VALUE:_,PR_COMMENT:ue,PR_DECLARATION:We,PR_KEYWORD:I,PR_LITERAL:me,PR_NOCODE:ee,PR_PLAIN:Je,PR_PUNCTUATION:Ke,PR_SOURCE:oe,PR_STRING:O,PR_TAG:ke,PR_TYPE:Se,prettyPrintOne:i?g.prettyPrintOne=cn:he=cn,prettyPrint:Z=i?g.prettyPrint=vt:Z=vt},Qe=g.define;typeof Qe=="function"&&Qe.amd&&Qe("google-code-prettify",[],function(){return pt})})()},25769:function($n,Rt,u){"use strict";var i=u(98040),K={"text/plain":"Text","text/html":"Url",default:"Text"},L="Copy to clipboard: #{key}, Enter";function he(g){var W=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return g.replace(/#{\s*key\s*}/g,W)}function Z(g,W){var Y,l,x,N,y,T,A=!1;W||(W={}),Y=W.debug||!1;try{x=i(),N=document.createRange(),y=document.getSelection(),T=document.createElement("span"),T.textContent=g,T.ariaHidden="true",T.style.all="unset",T.style.position="fixed",T.style.top=0,T.style.clip="rect(0, 0, 0, 0)",T.style.whiteSpace="pre",T.style.webkitUserSelect="text",T.style.MozUserSelect="text",T.style.msUserSelect="text",T.style.userSelect="text",T.addEventListener("copy",function(H){if(H.stopPropagation(),W.format)if(H.preventDefault(),typeof H.clipboardData=="undefined"){Y&&console.warn("unable to use e.clipboardData"),Y&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var X=K[W.format]||K.default;window.clipboardData.setData(X,g)}else H.clipboardData.clearData(),H.clipboardData.setData(W.format,g);W.onCopy&&(H.preventDefault(),W.onCopy(H.clipboardData))}),document.body.appendChild(T),N.selectNodeContents(T),y.addRange(N);var $=document.execCommand("copy");if(!$)throw new Error("copy command was unsuccessful");A=!0}catch(H){Y&&console.error("unable to copy using execCommand: ",H),Y&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(W.format||"text",g),W.onCopy&&W.onCopy(window.clipboardData),A=!0}catch(X){Y&&console.error("unable to copy using clipboardData: ",X),Y&&console.error("falling back to prompt"),l=he("message"in W?W.message:L),window.prompt(l,g)}}finally{y&&(typeof y.removeRange=="function"?y.removeRange(N):y.removeAllRanges()),T&&document.body.removeChild(T),x()}return A}$n.exports=Z},24334:function($n,Rt,u){var i,K;(function(L,he){$n.exports=he(L)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof u.g!="undefined"?u.g:this,function(L){"use strict";L=L||{};var he=L.Base64,Z="2.6.4",g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",W=function(k){for(var _={},ee=0,ne=k.length;ee<ne;ee++)_[k.charAt(ee)]=ee;return _}(g),Y=String.fromCharCode,l=function(k){if(k.length<2){var _=k.charCodeAt(0);return _<128?k:_<2048?Y(192|_>>>6)+Y(128|_&63):Y(224|_>>>12&15)+Y(128|_>>>6&63)+Y(128|_&63)}else{var _=65536+(k.charCodeAt(0)-55296)*1024+(k.charCodeAt(1)-56320);return Y(240|_>>>18&7)+Y(128|_>>>12&63)+Y(128|_>>>6&63)+Y(128|_&63)}},x=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,N=function(k){return k.replace(x,l)},y=function(k){var _=[0,2,1][k.length%3],ee=k.charCodeAt(0)<<16|(k.length>1?k.charCodeAt(1):0)<<8|(k.length>2?k.charCodeAt(2):0),ne=[g.charAt(ee>>>18),g.charAt(ee>>>12&63),_>=2?"=":g.charAt(ee>>>6&63),_>=1?"=":g.charAt(ee&63)];return ne.join("")},T=L.btoa&&typeof L.btoa=="function"?function(k){return L.btoa(k)}:function(k){if(k.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return k.replace(/[\s\S]{1,3}/g,y)},A=function(k){return T(N(String(k)))},$=function(k){return k.replace(/[+\/]/g,function(_){return _=="+"?"-":"_"}).replace(/=/g,"")},H=function(k,_){return _?$(A(k)):A(k)},X=function(k){return H(k,!0)},V;L.Uint8Array&&(V=function(k,_){for(var ee="",ne=0,se=k.length;ne<se;ne+=3){var w=k[ne],D=k[ne+1],ce=k[ne+2],Oe=w<<16|D<<8|ce;ee+=g.charAt(Oe>>>18)+g.charAt(Oe>>>12&63)+(typeof D!="undefined"?g.charAt(Oe>>>6&63):"=")+(typeof ce!="undefined"?g.charAt(Oe&63):"=")}return _?$(ee):ee});var R=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Q=function(k){switch(k.length){case 4:var _=(7&k.charCodeAt(0))<<18|(63&k.charCodeAt(1))<<12|(63&k.charCodeAt(2))<<6|63&k.charCodeAt(3),ee=_-65536;return Y((ee>>>10)+55296)+Y((ee&1023)+56320);case 3:return Y((15&k.charCodeAt(0))<<12|(63&k.charCodeAt(1))<<6|63&k.charCodeAt(2));default:return Y((31&k.charCodeAt(0))<<6|63&k.charCodeAt(1))}},O=function(k){return k.replace(R,Q)},I=function(k){var _=k.length,ee=_%4,ne=(_>0?W[k.charAt(0)]<<18:0)|(_>1?W[k.charAt(1)]<<12:0)|(_>2?W[k.charAt(2)]<<6:0)|(_>3?W[k.charAt(3)]:0),se=[Y(ne>>>16),Y(ne>>>8&255),Y(ne&255)];return se.length-=[0,0,2,1][ee],se.join("")},ue=L.atob&&typeof L.atob=="function"?function(k){return L.atob(k)}:function(k){return k.replace(/\S{1,4}/g,I)},Se=function(k){return ue(String(k).replace(/[^A-Za-z0-9\+\/]/g,""))},me=function(k){return O(ue(k))},Ke=function(k){return String(k).replace(/[-_]/g,function(_){return _=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Je=function(k){return me(Ke(k))},ke;L.Uint8Array&&(ke=function(k){return Uint8Array.from(Se(Ke(k)),function(_){return _.charCodeAt(0)})});var We=function(){var k=L.Base64;return L.Base64=he,k};if(L.Base64={VERSION:Z,atob:Se,btoa:T,fromBase64:Je,toBase64:H,utob:N,encode:H,encodeURI:X,btou:O,decode:Je,noConflict:We,fromUint8Array:V,toUint8Array:ke},typeof Object.defineProperty=="function"){var oe=function(k){return{value:k,enumerable:!1,writable:!0,configurable:!0}};L.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",oe(function(){return Je(this)})),Object.defineProperty(String.prototype,"toBase64",oe(function(k){return H(this,k)})),Object.defineProperty(String.prototype,"toBase64URI",oe(function(){return H(this,!0)}))}}return L.Meteor&&(Base64=L.Base64),$n.exports?$n.exports.Base64=L.Base64:(i=[],K=function(){return L.Base64}.apply(Rt,i),K!==void 0&&($n.exports=K)),{Base64:L.Base64}})},53184:function($n,Rt,u){"use strict";var i,K;function L(he,Z,g){var W=function(Y,l){return he.js_beautify(Y,l)};return W.js=he.js_beautify,W.css=Z.css_beautify,W.html=g.html_beautify,W.js_beautify=he.js_beautify,W.css_beautify=Z.css_beautify,W.html_beautify=g.html_beautify,W}i=[u(58553),u(87804),u(40998)],K=function(he,Z,g){return L(he,Z,g)}.apply(Rt,i),K!==void 0&&($n.exports=K)},87804:function($n,Rt){var u,i;(function(){var K;(function(){"use strict";var he=[,,function(Y){function l(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=[]}l.prototype.clone_empty=function(){var y=new l(this.__parent);return y.set_indent(this.__indent_count,this.__alignment_count),y},l.prototype.item=function(y){return y<0?this.__items[this.__items.length+y]:this.__items[y]},l.prototype.has_match=function(y){for(var T=this.__items.length-1;T>=0;T--)if(this.__items[T].match(y))return!0;return!1},l.prototype.set_indent=function(y,T){this.is_empty()&&(this.__indent_count=y||0,this.__alignment_count=T||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},l.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)},l.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},l.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},l.prototype.is_empty=function(){return this.__items.length===0},l.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},l.prototype.push=function(y){this.__items.push(y);var T=y.lastIndexOf(`
|
|
|
`);T!==-1?this.__character_count=y.length-T:this.__character_count+=y.length},l.prototype.pop=function(){var y=null;return this.is_empty()||(y=this.__items.pop(),this.__character_count-=y.length),y},l.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},l.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},l.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},l.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 x(y,T){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)),T=T||"",y.indent_level>0&&(T=new Array(y.indent_level+1).join(this.__indent_string)),this.__base_string=T,this.__base_string_length=T.length}x.prototype.get_indent_size=function(y,T){var A=this.__base_string_length;return T=T||0,y<0&&(A=0),A+=y*this.__indent_size,A+=T,A},x.prototype.get_indent_string=function(y,T){var A=this.__base_string;return T=T||0,y<0&&(y=0,A=""),T+=y*this.__indent_size,this.__ensure_cache(T),A+=this.__cache[T],A},x.prototype.__ensure_cache=function(y){for(;y>=this.__cache.length;)this.__add_column()},x.prototype.__add_column=function(){var y=this.__cache.length,T=0,A="";this.__indent_size&&y>=this.__indent_size&&(T=Math.floor(y/this.__indent_size),y-=T*this.__indent_size,A=new Array(T+1).join(this.__indent_string)),y&&(A+=new Array(y+1).join(" ")),this.__cache.push(A)};function N(y,T){this.__indent_cache=new x(y,T),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 l(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}N.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},N.prototype.get_line_number=function(){return this.__lines.length},N.prototype.get_indent_string=function(y,T){return this.__indent_cache.get_indent_string(y,T)},N.prototype.get_indent_size=function(y,T){return this.__indent_cache.get_indent_size(y,T)},N.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},N.prototype.add_new_line=function(y){return this.is_empty()||!y&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},N.prototype.get_code=function(y){this.trim(!0);var T=this.current_line.pop();T&&(T[T.length-1]===`
|
|
|
`&&(T=T.replace(/\n+$/g,"")),this.current_line.push(T)),this._end_with_newline&&this.__add_outputline();var A=this.__lines.join(`
|
|
|
`);return y!==`
|
|
|
`&&(A=A.replace(/[\n]/g,y)),A},N.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},N.prototype.set_indent=function(y,T){return y=y||0,T=T||0,this.next_line.set_indent(y,T),this.__lines.length>1?(this.current_line.set_indent(y,T),!0):(this.current_line.set_indent(),!1)},N.prototype.add_raw_token=function(y){for(var T=0;T<y.newlines;T++)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},N.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()},N.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(" "))},N.prototype.remove_indent=function(y){for(var T=this.__lines.length;y<T;)this.__lines[y]._remove_indent(),y++;this.current_line._remove_wrap_indent()},N.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},N.prototype.just_added_newline=function(){return this.current_line.is_empty()},N.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},N.prototype.ensure_empty_line_above=function(y,T){for(var A=this.__lines.length-2;A>=0;){var $=this.__lines[A];if($.is_empty())break;if($.item(0).indexOf(y)!==0&&$.item(-1)!==T){this.__lines.splice(A+1,0,new l(this)),this.previous_line=this.__lines[this.__lines.length-2];break}A--}},Y.exports.Output=N},,,,function(Y){function l(y,T){this.raw_options=x(y,T),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"])}l.prototype._get_array=function(y,T){var A=this.raw_options[y],$=T||[];return typeof A=="object"?A!==null&&typeof A.concat=="function"&&($=A.concat()):typeof A=="string"&&($=A.split(/[^a-zA-Z0-9_\/\-]+/)),$},l.prototype._get_boolean=function(y,T){var A=this.raw_options[y],$=A===void 0?!!T:!!A;return $},l.prototype._get_characters=function(y,T){var A=this.raw_options[y],$=T||"";return typeof A=="string"&&($=A.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),$},l.prototype._get_number=function(y,T){var A=this.raw_options[y];T=parseInt(T,10),isNaN(T)&&(T=0);var $=parseInt(A,10);return isNaN($)&&($=T),$},l.prototype._get_selection=function(y,T,A){var $=this._get_selection_list(y,T,A);if($.length!==1)throw new Error("Invalid Option Value: The option '"+y+`' can only be one of the following values:
|
|
|
`+T+`
|
|
|
You passed in: '`+this.raw_options[y]+"'");return $[0]},l.prototype._get_selection_list=function(y,T,A){if(!T||T.length===0)throw new Error("Selection list cannot be empty.");if(A=A||[T[0]],!this._is_valid_selection(A,T))throw new Error("Invalid Default Value!");var $=this._get_array(y,A);if(!this._is_valid_selection($,T))throw new Error("Invalid Option Value: The option '"+y+`' can contain only the following values:
|
|
|
`+T+`
|
|
|
You passed in: '`+this.raw_options[y]+"'");return $},l.prototype._is_valid_selection=function(y,T){return y.length&&T.length&&!y.some(function(A){return T.indexOf(A)===-1})};function x(y,T){var A={};y=N(y);var $;for($ in y)$!==T&&(A[$]=y[$]);if(T&&y[T])for($ in y[T])A[$]=y[T][$];return A}function N(y){var T={},A;for(A in y){var $=A.replace(/-/g,"_");T[$]=y[A]}return T}Y.exports.Options=l,Y.exports.normalizeOpts=N,Y.exports.mergeOpts=x},,function(Y){var l=RegExp.prototype.hasOwnProperty("sticky");function x(N){this.__input=N||"",this.__input_length=this.__input.length,this.__position=0}x.prototype.restart=function(){this.__position=0},x.prototype.back=function(){this.__position>0&&(this.__position-=1)},x.prototype.hasNext=function(){return this.__position<this.__input_length},x.prototype.next=function(){var N=null;return this.hasNext()&&(N=this.__input.charAt(this.__position),this.__position+=1),N},x.prototype.peek=function(N){var y=null;return N=N||0,N+=this.__position,N>=0&&N<this.__input_length&&(y=this.__input.charAt(N)),y},x.prototype.__match=function(N,y){N.lastIndex=y;var T=N.exec(this.__input);return T&&!(l&&N.sticky)&&T.index!==y&&(T=null),T},x.prototype.test=function(N,y){return y=y||0,y+=this.__position,y>=0&&y<this.__input_length?!!this.__match(N,y):!1},x.prototype.testChar=function(N,y){var T=this.peek(y);return N.lastIndex=0,T!==null&&N.test(T)},x.prototype.match=function(N){var y=this.__match(N,this.__position);return y?this.__position+=y[0].length:y=null,y},x.prototype.read=function(N,y,T){var A="",$;return N&&($=this.match(N),$&&(A+=$[0])),y&&($||!N)&&(A+=this.readUntil(y,T)),A},x.prototype.readUntil=function(N,y){var T="",A=this.__position;N.lastIndex=this.__position;var $=N.exec(this.__input);return $?(A=$.index,y&&(A+=$[0].length)):A=this.__input_length,T=this.__input.substring(this.__position,A),this.__position=A,T},x.prototype.readUntilAfter=function(N){return this.readUntil(N,!0)},x.prototype.get_regexp=function(N,y){var T=null,A="g";return y&&l&&(A="y"),typeof N=="string"&&N!==""?T=new RegExp(N,A):N&&(T=new RegExp(N.source,A)),T},x.prototype.get_literal_regexp=function(N){return RegExp(N.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},x.prototype.peekUntilAfter=function(N){var y=this.__position,T=this.readUntilAfter(N);return this.__position=y,T},x.prototype.lookBack=function(N){var y=this.__position-1;return y>=N.length&&this.__input.substring(y-N.length,y).toLowerCase()===N},Y.exports.InputScanner=x},,,,,function(Y){function l(x,N){x=typeof x=="string"?x:x.source,N=typeof N=="string"?N:N.source,this.__directives_block_pattern=new RegExp(x+/ beautify( \w+[:]\w+)+ /.source+N,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(x+/\sbeautify\signore:end\s/.source+N,"g")}l.prototype.get_directives=function(x){if(!x.match(this.__directives_block_pattern))return null;var N={};this.__directive_pattern.lastIndex=0;for(var y=this.__directive_pattern.exec(x);y;)N[y[1]]=y[2],y=this.__directive_pattern.exec(x);return N},l.prototype.readIgnored=function(x){return x.readUntilAfter(this.__directives_end_ignore_pattern)},Y.exports.Directives=l},,function(Y,l,x){var N=x(16).Beautifier,y=x(17).Options;function T(A,$){var H=new N(A,$);return H.beautify()}Y.exports=T,Y.exports.defaultOptions=function(){return new y}},function(Y,l,x){var N=x(17).Options,y=x(2).Output,T=x(8).InputScanner,A=x(13).Directives,$=new A(/\/\*/,/\*\//),H=/\r\n|[\r\n]/,X=/\r\n|[\r\n]/g,V=/\s/,R=/(?:\s|\n)+/g,Q=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,O=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function I(ue,Se){this._source_text=ue||"",this._options=new N(Se),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"]}I.prototype.eatString=function(ue){var Se="";for(this._ch=this._input.next();this._ch;){if(Se+=this._ch,this._ch==="\\")Se+=this._input.next();else if(ue.indexOf(this._ch)!==-1||this._ch===`
|
|
|
`)break;this._ch=this._input.next()}return Se},I.prototype.eatWhitespace=function(ue){for(var Se=V.test(this._input.peek()),me=0;V.test(this._input.peek());)this._ch=this._input.next(),ue&&this._ch===`
|
|
|
`&&(me===0||me<this._options.max_preserve_newlines)&&(me++,this._output.add_new_line(!0));return Se},I.prototype.foundNestedPseudoClass=function(){for(var ue=0,Se=1,me=this._input.peek(Se);me;){if(me==="{")return!0;if(me==="(")ue+=1;else if(me===")"){if(ue===0)return!1;ue-=1}else if(me===";"||me==="}")return!1;Se++,me=this._input.peek(Se)}return!1},I.prototype.print_string=function(ue){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(ue)},I.prototype.preserveSingleSpace=function(ue){ue&&(this._output.space_before_token=!0)},I.prototype.indent=function(){this._indentLevel++},I.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},I.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var ue=this._source_text,Se=this._options.eol;Se==="auto"&&(Se=`
|
|
|
`,ue&&H.test(ue||"")&&(Se=ue.match(H)[0])),ue=ue.replace(X,`
|
|
|
`);var me=ue.match(/^[\t ]*/)[0];this._output=new y(this._options,me),this._input=new T(ue),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var Ke=0,Je=!1,ke=!1,We=!1,oe=!1,k=!1,_=this._ch,ee=!1,ne,se,w;ne=this._input.read(R),se=ne!=="",w=_,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),_=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var D=this._input.read(Q),ce=$.get_directives(D);ce&&ce.ignore==="start"&&(D+=$.readIgnored(this._input)),this.print_string(D),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(O)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(se),this.print_string(this._ch);var Oe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Oe.match(/[ :]$/)&&(Oe=this.eatString(": ").replace(/\s+$/,""),this.print_string(Oe),this._output.space_before_token=!0),Ke===0&&Oe.indexOf(":")!==-1&&(ke=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(se),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var ct=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ct.match(/[ :]$/)&&(ct=this.eatString(": ").replace(/\s+$/,""),this.print_string(ct),this._output.space_before_token=!0),Ke===0&&ct.indexOf(":")!==-1?(ke=!0,this.indent()):ct in this.NESTED_AT_RULE?(this._nestedLevel+=1,ct in this.CONDITIONAL_GROUP_RULE&&(We=!0)):Ke===0&&!ke&&(oe=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(se),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")ke&&(ke=!1,this.outdent()),oe=!1,We?(We=!1,Je=this._indentLevel>=this._nestedLevel):Je=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&Je&&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)):(w==="("?this._output.space_before_token=!1:w!==","&&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(),w==="{"&&this._output.trim(!0),ke&&(this.outdent(),ke=!1),this.print_string(this._ch),Je=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var Tt=0;Tt<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Tt++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Tt])){ee=!0;break}(Je||We)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!oe&&Ke===0?(this.print_string(":"),ke||(ke=!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 Ae=w==='"'||w==="'";this.preserveSingleSpace(Ae||se),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")ee=!1,Ke===0?(ke&&(this.outdent(),ke=!1),oe=!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(),Ke++,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(")")),Ke&&(Ke--,this.outdent()));else{var qe=!1;this._input.lookBack("with")&&(qe=!0),this.preserveSingleSpace(se||qe),this.print_string(this._ch),ke&&w==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),k=!0):(this.eatWhitespace(),Ke++,this.indent())}else if(this._ch===")")Ke&&(Ke--,this.outdent()),k&&this._input.peek()===";"&&this._options.selector_separator_newline&&(k=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!ke||k)&&Ke===0&&!oe?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!ke&&Ke===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&&V.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(se),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),V.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 ht=w==='"'||w==="'";this.preserveSingleSpace(ht||se),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&ee&&this._output.add_new_line()}var tt=this._output.get_code(Se);return tt},Y.exports.Beautifier=I},function(Y,l,x){var N=x(6).Options;function y(T){N.call(this,T,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var A=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||A;var $=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var H=0;H<$.length;H++)$[H]!=="expand"?this.brace_style="collapse":this.brace_style=$[H]}y.prototype=new N,Y.exports.Options=y}],Z={};function g(Y){var l=Z[Y];if(l!==void 0)return l.exports;var x=Z[Y]={exports:{}};return he[Y](x,x.exports,g),x.exports}var W=g(15);K=W})();var L=K;u=[],i=function(){return{css_beautify:L}}.apply(Rt,u),i!==void 0&&($n.exports=i)})()},40998:function($n,Rt,u){var i,K;(function(){var L;(function(){"use strict";var W=[,,function(N){function y($){this.__parent=$,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}y.prototype.clone_empty=function(){var $=new y(this.__parent);return $.set_indent(this.__indent_count,this.__alignment_count),$},y.prototype.item=function($){return $<0?this.__items[this.__items.length+$]:this.__items[$]},y.prototype.has_match=function($){for(var H=this.__items.length-1;H>=0;H--)if(this.__items[H].match($))return!0;return!1},y.prototype.set_indent=function($,H){this.is_empty()&&(this.__indent_count=$||0,this.__alignment_count=H||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},y.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)},y.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},y.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var $=this.__parent.current_line;return $.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),$.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),$.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,$.__items[0]===" "&&($.__items.splice(0,1),$.__character_count-=1),!0}return!1},y.prototype.is_empty=function(){return this.__items.length===0},y.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},y.prototype.push=function($){this.__items.push($);var H=$.lastIndexOf(`
|
|
|
`);H!==-1?this.__character_count=$.length-H:this.__character_count+=$.length},y.prototype.pop=function(){var $=null;return this.is_empty()||($=this.__items.pop(),this.__character_count-=$.length),$},y.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},y.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},y.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},y.prototype.toString=function(){var $="";return this.is_empty()?this.__parent.indent_empty_lines&&($=this.__parent.get_indent_string(this.__indent_count)):($=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),$+=this.__items.join("")),$};function T($,H){this.__cache=[""],this.__indent_size=$.indent_size,this.__indent_string=$.indent_char,$.indent_with_tabs||(this.__indent_string=new Array($.indent_size+1).join($.indent_char)),H=H||"",$.indent_level>0&&(H=new Array($.indent_level+1).join(this.__indent_string)),this.__base_string=H,this.__base_string_length=H.length}T.prototype.get_indent_size=function($,H){var X=this.__base_string_length;return H=H||0,$<0&&(X=0),X+=$*this.__indent_size,X+=H,X},T.prototype.get_indent_string=function($,H){var X=this.__base_string;return H=H||0,$<0&&($=0,X=""),H+=$*this.__indent_size,this.__ensure_cache(H),X+=this.__cache[H],X},T.prototype.__ensure_cache=function($){for(;$>=this.__cache.length;)this.__add_column()},T.prototype.__add_column=function(){var $=this.__cache.length,H=0,X="";this.__indent_size&&$>=this.__indent_size&&(H=Math.floor($/this.__indent_size),$-=H*this.__indent_size,X=new Array(H+1).join(this.__indent_string)),$&&(X+=new Array($+1).join(" ")),this.__cache.push(X)};function A($,H){this.__indent_cache=new T($,H),this.raw=!1,this._end_with_newline=$.end_with_newline,this.indent_size=$.indent_size,this.wrap_line_length=$.wrap_line_length,this.indent_empty_lines=$.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new y(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}A.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},A.prototype.get_line_number=function(){return this.__lines.length},A.prototype.get_indent_string=function($,H){return this.__indent_cache.get_indent_string($,H)},A.prototype.get_indent_size=function($,H){return this.__indent_cache.get_indent_size($,H)},A.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},A.prototype.add_new_line=function($){return this.is_empty()||!$&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},A.prototype.get_code=function($){this.trim(!0);var H=this.current_line.pop();H&&(H[H.length-1]===`
|
|
|
`&&(H=H.replace(/\n+$/g,"")),this.current_line.push(H)),this._end_with_newline&&this.__add_outputline();var X=this.__lines.join(`
|
|
|
`);return $!==`
|
|
|
`&&(X=X.replace(/[\n]/g,$)),X},A.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},A.prototype.set_indent=function($,H){return $=$||0,H=H||0,this.next_line.set_indent($,H),this.__lines.length>1?(this.current_line.set_indent($,H),!0):(this.current_line.set_indent(),!1)},A.prototype.add_raw_token=function($){for(var H=0;H<$.newlines;H++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push($.whitespace_before),this.current_line.push($.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},A.prototype.add_token=function($){this.__add_space_before_token(),this.current_line.push($),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},A.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(" "))},A.prototype.remove_indent=function($){for(var H=this.__lines.length;$<H;)this.__lines[$]._remove_indent(),$++;this.current_line._remove_wrap_indent()},A.prototype.trim=function($){for($=$===void 0?!1:$,this.current_line.trim();$&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},A.prototype.just_added_newline=function(){return this.current_line.is_empty()},A.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},A.prototype.ensure_empty_line_above=function($,H){for(var X=this.__lines.length-2;X>=0;){var V=this.__lines[X];if(V.is_empty())break;if(V.item(0).indexOf($)!==0&&V.item(-1)!==H){this.__lines.splice(X+1,0,new y(this)),this.previous_line=this.__lines[this.__lines.length-2];break}X--}},N.exports.Output=A},function(N){function y(T,A,$,H){this.type=T,this.text=A,this.comments_before=null,this.newlines=$||0,this.whitespace_before=H||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}N.exports.Token=y},,,function(N){function y($,H){this.raw_options=T($,H),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"])}y.prototype._get_array=function($,H){var X=this.raw_options[$],V=H||[];return typeof X=="object"?X!==null&&typeof X.concat=="function"&&(V=X.concat()):typeof X=="string"&&(V=X.split(/[^a-zA-Z0-9_\/\-]+/)),V},y.prototype._get_boolean=function($,H){var X=this.raw_options[$],V=X===void 0?!!H:!!X;return V},y.prototype._get_characters=function($,H){var X=this.raw_options[$],V=H||"";return typeof X=="string"&&(V=X.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),V},y.prototype._get_number=function($,H){var X=this.raw_options[$];H=parseInt(H,10),isNaN(H)&&(H=0);var V=parseInt(X,10);return isNaN(V)&&(V=H),V},y.prototype._get_selection=function($,H,X){var V=this._get_selection_list($,H,X);if(V.length!==1)throw new Error("Invalid Option Value: The option '"+$+`' can only be one of the following values:
|
|
|
`+H+`
|
|
|
You passed in: '`+this.raw_options[$]+"'");return V[0]},y.prototype._get_selection_list=function($,H,X){if(!H||H.length===0)throw new Error("Selection list cannot be empty.");if(X=X||[H[0]],!this._is_valid_selection(X,H))throw new Error("Invalid Default Value!");var V=this._get_array($,X);if(!this._is_valid_selection(V,H))throw new Error("Invalid Option Value: The option '"+$+`' can contain only the following values:
|
|
|
`+H+`
|
|
|
You passed in: '`+this.raw_options[$]+"'");return V},y.prototype._is_valid_selection=function($,H){return $.length&&H.length&&!$.some(function(X){return H.indexOf(X)===-1})};function T($,H){var X={};$=A($);var V;for(V in $)V!==H&&(X[V]=$[V]);if(H&&$[H])for(V in $[H])X[V]=$[H][V];return X}function A($){var H={},X;for(X in $){var V=X.replace(/-/g,"_");H[V]=$[X]}return H}N.exports.Options=y,N.exports.normalizeOpts=A,N.exports.mergeOpts=T},,function(N){var y=RegExp.prototype.hasOwnProperty("sticky");function T(A){this.__input=A||"",this.__input_length=this.__input.length,this.__position=0}T.prototype.restart=function(){this.__position=0},T.prototype.back=function(){this.__position>0&&(this.__position-=1)},T.prototype.hasNext=function(){return this.__position<this.__input_length},T.prototype.next=function(){var A=null;return this.hasNext()&&(A=this.__input.charAt(this.__position),this.__position+=1),A},T.prototype.peek=function(A){var $=null;return A=A||0,A+=this.__position,A>=0&&A<this.__input_length&&($=this.__input.charAt(A)),$},T.prototype.__match=function(A,$){A.lastIndex=$;var H=A.exec(this.__input);return H&&!(y&&A.sticky)&&H.index!==$&&(H=null),H},T.prototype.test=function(A,$){return $=$||0,$+=this.__position,$>=0&&$<this.__input_length?!!this.__match(A,$):!1},T.prototype.testChar=function(A,$){var H=this.peek($);return A.lastIndex=0,H!==null&&A.test(H)},T.prototype.match=function(A){var $=this.__match(A,this.__position);return $?this.__position+=$[0].length:$=null,$},T.prototype.read=function(A,$,H){var X="",V;return A&&(V=this.match(A),V&&(X+=V[0])),$&&(V||!A)&&(X+=this.readUntil($,H)),X},T.prototype.readUntil=function(A,$){var H="",X=this.__position;A.lastIndex=this.__position;var V=A.exec(this.__input);return V?(X=V.index,$&&(X+=V[0].length)):X=this.__input_length,H=this.__input.substring(this.__position,X),this.__position=X,H},T.prototype.readUntilAfter=function(A){return this.readUntil(A,!0)},T.prototype.get_regexp=function(A,$){var H=null,X="g";return $&&y&&(X="y"),typeof A=="string"&&A!==""?H=new RegExp(A,X):A&&(H=new RegExp(A.source,X)),H},T.prototype.get_literal_regexp=function(A){return RegExp(A.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},T.prototype.peekUntilAfter=function(A){var $=this.__position,H=this.readUntilAfter(A);return this.__position=$,H},T.prototype.lookBack=function(A){var $=this.__position-1;return $>=A.length&&this.__input.substring($-A.length,$).toLowerCase()===A},N.exports.InputScanner=T},function(N,y,T){var A=T(8).InputScanner,$=T(3).Token,H=T(10).TokenStream,X=T(11).WhitespacePattern,V={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},R=function(Q,O){this._input=new A(Q),this._options=O||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new X(this._input)};R.prototype.tokenize=function(){this._input.restart(),this.__tokens=new H,this._reset();for(var Q,O=new $(V.START,""),I=null,ue=[],Se=new H;O.type!==V.EOF;){for(Q=this._get_next_token(O,I);this._is_comment(Q);)Se.add(Q),Q=this._get_next_token(O,I);Se.isEmpty()||(Q.comments_before=Se,Se=new H),Q.parent=I,this._is_opening(Q)?(ue.push(I),I=Q):I&&this._is_closing(Q,I)&&(Q.opened=I,I.closed=Q,I=ue.pop(),Q.parent=I),Q.previous=O,O.next=Q,this.__tokens.add(Q),O=Q}return this.__tokens},R.prototype._is_first_token=function(){return this.__tokens.isEmpty()},R.prototype._reset=function(){},R.prototype._get_next_token=function(Q,O){this._readWhitespace();var I=this._input.read(/.+/g);return I?this._create_token(V.RAW,I):this._create_token(V.EOF,"")},R.prototype._is_comment=function(Q){return!1},R.prototype._is_opening=function(Q){return!1},R.prototype._is_closing=function(Q,O){return!1},R.prototype._create_token=function(Q,O){var I=new $(Q,O,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return I},R.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},N.exports.Tokenizer=R,N.exports.TOKEN=V},function(N){function y(T){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=T}y.prototype.restart=function(){this.__position=0},y.prototype.isEmpty=function(){return this.__tokens_length===0},y.prototype.hasNext=function(){return this.__position<this.__tokens_length},y.prototype.next=function(){var T=null;return this.hasNext()&&(T=this.__tokens[this.__position],this.__position+=1),T},y.prototype.peek=function(T){var A=null;return T=T||0,T+=this.__position,T>=0&&T<this.__tokens_length&&(A=this.__tokens[T]),A},y.prototype.add=function(T){this.__parent_token&&(T.parent=this.__parent_token),this.__tokens.push(T),this.__tokens_length+=1},N.exports.TokenStream=y},function(N,y,T){var A=T(12).Pattern;function $(H,X){A.call(this,H,X),X?this._line_regexp=this._input.get_regexp(X._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}$.prototype=new A,$.prototype.__set_whitespace_patterns=function(H,X){H+="\\t ",X+="\\n\\r",this._match_pattern=this._input.get_regexp("["+H+X+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+X+"]")},$.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var H=this._input.read(this._match_pattern);if(H===" ")this.whitespace_before_token=" ";else if(H){var X=this.__split(this._newline_regexp,H);this.newline_count=X.length-1,this.whitespace_before_token=X[this.newline_count]}return H},$.prototype.matching=function(H,X){var V=this._create();return V.__set_whitespace_patterns(H,X),V._update(),V},$.prototype._create=function(){return new $(this._input,this)},$.prototype.__split=function(H,X){H.lastIndex=0;for(var V=0,R=[],Q=H.exec(X);Q;)R.push(X.substring(V,Q.index)),V=Q.index+Q[0].length,Q=H.exec(X);return V<X.length?R.push(X.substring(V,X.length)):R.push(""),R},N.exports.WhitespacePattern=$},function(N){function y(T,A){this._input=T,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,A&&(this._starting_pattern=this._input.get_regexp(A._starting_pattern,!0),this._match_pattern=this._input.get_regexp(A._match_pattern,!0),this._until_pattern=this._input.get_regexp(A._until_pattern),this._until_after=A._until_after)}y.prototype.read=function(){var T=this._input.read(this._starting_pattern);return(!this._starting_pattern||T)&&(T+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),T},y.prototype.read_match=function(){return this._input.match(this._match_pattern)},y.prototype.until_after=function(T){var A=this._create();return A._until_after=!0,A._until_pattern=this._input.get_regexp(T),A._update(),A},y.prototype.until=function(T){var A=this._create();return A._until_after=!1,A._until_pattern=this._input.get_regexp(T),A._update(),A},y.prototype.starting_with=function(T){var A=this._create();return A._starting_pattern=this._input.get_regexp(T,!0),A._update(),A},y.prototype.matching=function(T){var A=this._create();return A._match_pattern=this._input.get_regexp(T,!0),A._update(),A},y.prototype._create=function(){return new y(this._input,this)},y.prototype._update=function(){},N.exports.Pattern=y},function(N){function y(T,A){T=typeof T=="string"?T:T.source,A=typeof A=="string"?A:A.source,this.__directives_block_pattern=new RegExp(T+/ beautify( \w+[:]\w+)+ /.source+A,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(T+/\sbeautify\signore:end\s/.source+A,"g")}y.prototype.get_directives=function(T){if(!T.match(this.__directives_block_pattern))return null;var A={};this.__directive_pattern.lastIndex=0;for(var $=this.__directive_pattern.exec(T);$;)A[$[1]]=$[2],$=this.__directive_pattern.exec(T);return A},y.prototype.readIgnored=function(T){return T.readUntilAfter(this.__directives_end_ignore_pattern)},N.exports.Directives=y},function(N,y,T){var A=T(12).Pattern,$={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function H(X,V){A.call(this,X,V),this.__template_pattern=null,this._disabled=Object.assign({},$),this._excluded=Object.assign({},$),V&&(this.__template_pattern=this._input.get_regexp(V.__template_pattern),this._excluded=Object.assign(this._excluded,V._excluded),this._disabled=Object.assign(this._disabled,V._disabled));var R=new A(X);this.__patterns={handlebars_comment:R.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:R.starting_with(/{{{/).until_after(/}}}/),handlebars:R.starting_with(/{{/).until_after(/}}/),php:R.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:R.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:R.starting_with(/{%/).until_after(/%}/),django_value:R.starting_with(/{{/).until_after(/}}/),django_comment:R.starting_with(/{#/).until_after(/#}/),smarty:R.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:R.starting_with(/{\*/).until_after(/\*}/),smarty_literal:R.starting_with(/{literal}/).until_after(/{\/literal}/)}}H.prototype=new A,H.prototype._create=function(){return new H(this._input,this)},H.prototype._update=function(){this.__set_templated_pattern()},H.prototype.disable=function(X){var V=this._create();return V._disabled[X]=!0,V._update(),V},H.prototype.read_options=function(X){var V=this._create();for(var R in $)V._disabled[R]=X.templating.indexOf(R)===-1;return V._update(),V},H.prototype.exclude=function(X){var V=this._create();return V._excluded[X]=!0,V._update(),V},H.prototype.read=function(){var X="";this._match_pattern?X=this._input.read(this._starting_pattern):X=this._input.read(this._starting_pattern,this.__template_pattern);for(var V=this._read_template();V;)this._match_pattern?V+=this._input.read(this._match_pattern):V+=this._input.readUntil(this.__template_pattern),X+=V,V=this._read_template();return this._until_after&&(X+=this._input.readUntilAfter(this._until_pattern)),X},H.prototype.__set_templated_pattern=function(){var X=[];this._disabled.php||X.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||X.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||X.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||X.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(X.push(this.__patterns.django._starting_pattern.source),X.push(this.__patterns.django_value._starting_pattern.source),X.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||X.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&X.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+X.join("|")+")")},H.prototype._read_template=function(){var X="",V=this._input.peek();if(V==="<"){var R=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&R==="?"&&(X=X||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&R==="%"&&(X=X||this.__patterns.erb.read())}else V==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(X=X||this.__patterns.handlebars_comment.read(),X=X||this.__patterns.handlebars_unescaped.read(),X=X||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(X=X||this.__patterns.django_value.read()),this._excluded.django||(X=X||this.__patterns.django_comment.read(),X=X||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(X=X||this.__patterns.smarty_comment.read(),X=X||this.__patterns.smarty_literal.read(),X=X||this.__patterns.smarty.read()));return X},N.exports.TemplatablePattern=H},,,,function(N,y,T){var A=T(19).Beautifier,$=T(20).Options;function H(X,V,R,Q){var O=new A(X,V,R,Q);return O.beautify()}N.exports=H,N.exports.defaultOptions=function(){return new $}},function(N,y,T){var A=T(20).Options,$=T(2).Output,H=T(21).Tokenizer,X=T(21).TOKEN,V=/\r\n|[\r\n]/,R=/\r\n|[\r\n]/g,Q=function(oe,k){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=oe.max_preserve_newlines,this.preserve_newlines=oe.preserve_newlines,this._output=new $(oe,k)};Q.prototype.current_line_has_match=function(oe){return this._output.current_line.has_match(oe)},Q.prototype.set_space_before_token=function(oe,k){this._output.space_before_token=oe,this._output.non_breaking_space=k},Q.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},Q.prototype.add_raw_token=function(oe){this._output.add_raw_token(oe)},Q.prototype.print_preserved_newlines=function(oe){var k=0;oe.type!==X.TEXT&&oe.previous.type!==X.TEXT&&(k=oe.newlines?1:0),this.preserve_newlines&&(k=oe.newlines<this.max_preserve_newlines+1?oe.newlines:this.max_preserve_newlines+1);for(var _=0;_<k;_++)this.print_newline(_>0);return k!==0},Q.prototype.traverse_whitespace=function(oe){return oe.whitespace_before||oe.newlines?(this.print_preserved_newlines(oe)||(this._output.space_before_token=!0),!0):!1},Q.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},Q.prototype.print_newline=function(oe){this._output.add_new_line(oe)},Q.prototype.print_token=function(oe){oe.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(oe.text))},Q.prototype.indent=function(){this.indent_level++},Q.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},Q.prototype.get_full_indent=function(oe){return oe=this.indent_level+(oe||0),oe<1?"":this._output.get_indent_string(oe)};var O=function(oe){for(var k=null,_=oe.next;_.type!==X.EOF&&oe.closed!==_;){if(_.type===X.ATTRIBUTE&&_.text==="type"){_.next&&_.next.type===X.EQUALS&&_.next.next&&_.next.next.type===X.VALUE&&(k=_.next.next.text);break}_=_.next}return k},I=function(oe,k){var _=null,ee=null;return k.closed?(oe==="script"?_="text/javascript":oe==="style"&&(_="text/css"),_=O(k)||_,_.search("text/css")>-1?ee="css":_.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?ee="javascript":_.search(/(text|application|dojo)\/(x-)?(html)/)>-1?ee="html":_.search(/test\/null/)>-1&&(ee="null"),ee):null};function ue(oe,k){return k.indexOf(oe)!==-1}function Se(oe,k,_){this.parent=oe||null,this.tag=k?k.tag_name:"",this.indent_level=_||0,this.parser_token=k||null}function me(oe){this._printer=oe,this._current_frame=null}me.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},me.prototype.record_tag=function(oe){var k=new Se(this._current_frame,oe,this._printer.indent_level);this._current_frame=k},me.prototype._try_pop_frame=function(oe){var k=null;return oe&&(k=oe.parser_token,this._printer.indent_level=oe.indent_level,this._current_frame=oe.parent),k},me.prototype._get_frame=function(oe,k){for(var _=this._current_frame;_&&oe.indexOf(_.tag)===-1;){if(k&&k.indexOf(_.tag)!==-1){_=null;break}_=_.parent}return _},me.prototype.try_pop=function(oe,k){var _=this._get_frame([oe],k);return this._try_pop_frame(_)},me.prototype.indent_to_tag=function(oe){var k=this._get_frame(oe);k&&(this._printer.indent_level=k.indent_level)};function Ke(oe,k,_,ee){this._source_text=oe||"",k=k||{},this._js_beautify=_,this._css_beautify=ee,this._tag_stack=null;var ne=new A(k,"html");this._options=ne,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"}Ke.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var oe=this._source_text,k=this._options.eol;this._options.eol==="auto"&&(k=`
|
|
|
`,oe&&V.test(oe)&&(k=oe.match(V)[0])),oe=oe.replace(R,`
|
|
|
`);var _=oe.match(/^[\t ]*/)[0],ee={text:"",type:""},ne=new Je(this._options),se=new Q(this._options,_),w=new H(oe,this._options).tokenize();this._tag_stack=new me(se);for(var D=null,ce=w.next();ce.type!==X.EOF;)ce.type===X.TAG_OPEN||ce.type===X.COMMENT?(D=this._handle_tag_open(se,ce,ne,ee,w),ne=D):ce.type===X.ATTRIBUTE||ce.type===X.EQUALS||ce.type===X.VALUE||ce.type===X.TEXT&&!ne.tag_complete?D=this._handle_inside_tag(se,ce,ne,ee):ce.type===X.TAG_CLOSE?D=this._handle_tag_close(se,ce,ne):ce.type===X.TEXT?D=this._handle_text(se,ce,ne):ce.type===X.CONTROL_FLOW_OPEN?D=this._handle_control_flow_open(se,ce):ce.type===X.CONTROL_FLOW_CLOSE?D=this._handle_control_flow_close(se,ce):se.add_raw_token(ce),ee=D,ce=w.next();var Oe=se._output.get_code(k);return Oe},Ke.prototype._handle_control_flow_open=function(oe,k){var _={text:k.text,type:k.type};return oe.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),k.newlines?oe.print_preserved_newlines(k):oe.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),oe.print_token(k),oe.indent(),_},Ke.prototype._handle_control_flow_close=function(oe,k){var _={text:k.text,type:k.type};return oe.deindent(),k.newlines?oe.print_preserved_newlines(k):oe.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),oe.print_token(k),_},Ke.prototype._handle_tag_close=function(oe,k,_){var ee={text:k.text,type:k.type};return oe.alignment_size=0,_.tag_complete=!0,oe.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),_.is_unformatted?oe.add_raw_token(k):(_.tag_start_char==="<"&&(oe.set_space_before_token(k.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&_.has_wrapped_attrs&&oe.print_newline(!1)),oe.print_token(k)),_.indent_content&&!(_.is_unformatted||_.is_content_unformatted)&&(oe.indent(),_.indent_content=!1),!_.is_inline_element&&!(_.is_unformatted||_.is_content_unformatted)&&oe.set_wrap_point(),ee},Ke.prototype._handle_inside_tag=function(oe,k,_,ee){var ne=_.has_wrapped_attrs,se={text:k.text,type:k.type};return oe.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),_.is_unformatted?oe.add_raw_token(k):_.tag_start_char==="{"&&k.type===X.TEXT?oe.print_preserved_newlines(k)?(k.newlines=0,oe.add_raw_token(k)):oe.print_token(k):(k.type===X.ATTRIBUTE?oe.set_space_before_token(!0):(k.type===X.EQUALS||k.type===X.VALUE&&k.previous.type===X.EQUALS)&&oe.set_space_before_token(!1),k.type===X.ATTRIBUTE&&_.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(oe.traverse_whitespace(k),ne=ne||k.newlines!==0),this._is_wrap_attributes_force&&_.attr_count>=this._options.wrap_attributes_min_attrs&&(ee.type!==X.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(oe.print_newline(!1),ne=!0)),oe.print_token(k),ne=ne||oe.previous_token_wrapped(),_.has_wrapped_attrs=ne),se},Ke.prototype._handle_text=function(oe,k,_){var ee={text:k.text,type:"TK_CONTENT"};return _.custom_beautifier_name?this._print_custom_beatifier_text(oe,k,_):_.is_unformatted||_.is_content_unformatted?oe.add_raw_token(k):(oe.traverse_whitespace(k),oe.print_token(k)),ee},Ke.prototype._print_custom_beatifier_text=function(oe,k,_){var ee=this;if(k.text!==""){var ne=k.text,se,w=1,D="",ce="";_.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?se=this._js_beautify:_.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?se=this._css_beautify:_.custom_beautifier_name==="html"&&(se=function(ht,tt){var Fe=new Ke(ht,tt,ee._js_beautify,ee._css_beautify);return Fe.beautify()}),this._options.indent_scripts==="keep"?w=0:this._options.indent_scripts==="separate"&&(w=-oe.indent_level);var Oe=oe.get_full_indent(w);if(ne=ne.replace(/\n[ \t]*$/,""),_.custom_beautifier_name!=="html"&&ne[0]==="<"&&ne.match(/^(<!--|<!\[CDATA\[)/)){var ct=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(ne);if(!ct){oe.add_raw_token(k);return}D=Oe+ct[1]+`
|
|
|
`,ne=ct[4],ct[5]&&(ce=Oe+ct[5]),ne=ne.replace(/\n[ \t]*$/,""),(ct[2]||ct[3].indexOf(`
|
|
|
`)!==-1)&&(ct=ct[3].match(/[ \t]+$/),ct&&(k.whitespace_before=ct[0]))}if(ne)if(se){var Tt=function(){this.eol=`
|
|
|
`};Tt.prototype=this._options.raw_options;var Ae=new Tt;ne=se(Oe+ne,Ae)}else{var qe=k.whitespace_before;qe&&(ne=ne.replace(new RegExp(`
|
|
|
(`+qe+")?","g"),`
|
|
|
`)),ne=Oe+ne.replace(/\n/g,`
|
|
|
`+Oe)}D&&(ne?ne=D+ne+`
|
|
|
`+ce:ne=D+ce),oe.print_newline(!1),ne&&(k.text=ne,k.whitespace_before="",k.newlines=0,oe.add_raw_token(k),oe.print_newline(!0))}},Ke.prototype._handle_tag_open=function(oe,k,_,ee,ne){var se=this._get_tag_open_token(k);if((_.is_unformatted||_.is_content_unformatted)&&!_.is_empty_element&&k.type===X.TAG_OPEN&&!se.is_start_tag?(oe.add_raw_token(k),se.start_tag_token=this._tag_stack.try_pop(se.tag_name)):(oe.traverse_whitespace(k),this._set_tag_position(oe,k,se,_,ee),se.is_inline_element||oe.set_wrap_point(),oe.print_token(k)),se.is_start_tag&&this._is_wrap_attributes_force){var w=0,D;do D=ne.peek(w),D.type===X.ATTRIBUTE&&(se.attr_count+=1),w+=1;while(D.type!==X.EOF&&D.type!==X.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(se.alignment_size=k.text.length+1),!se.tag_complete&&!se.is_unformatted&&(oe.alignment_size=se.alignment_size),se};var Je=function(oe,k,_){if(this.parent=k||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!_)this.tag_complete=!0;else{var ee;this.tag_start_char=_.text[0],this.text=_.text,this.tag_start_char==="<"?(ee=_.text.match(/^<([^\s>]*)/),this.tag_check=ee?ee[1]:""):(ee=_.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=ee?ee[1]:"",(_.text.startsWith("{{#>")||_.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&_.next!==null?this.tag_check=_.next.text.split(" ")[0]:this.tag_check=_.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),_.type===X.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||_.closed&&_.closed.text==="/>";var ne=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(ne=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!oe.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(ne)))}};Ke.prototype._get_tag_open_token=function(oe){var k=new Je(this._options,this._tag_stack.get_parser_token(),oe);return k.alignment_size=this._options.wrap_attributes_indent_size,k.is_end_tag=k.is_end_tag||ue(k.tag_check,this._options.void_elements),k.is_empty_element=k.tag_complete||k.is_start_tag&&k.is_end_tag,k.is_unformatted=!k.tag_complete&&ue(k.tag_check,this._options.unformatted),k.is_content_unformatted=!k.is_empty_element&&ue(k.tag_check,this._options.content_unformatted),k.is_inline_element=ue(k.tag_name,this._options.inline)||this._options.inline_custom_elements&&k.tag_name.includes("-")||k.tag_start_char==="{",k},Ke.prototype._set_tag_position=function(oe,k,_,ee,ne){if(_.is_empty_element||(_.is_end_tag?_.start_tag_token=this._tag_stack.try_pop(_.tag_name):(this._do_optional_end_element(_)&&(_.is_inline_element||oe.print_newline(!1)),this._tag_stack.record_tag(_),(_.tag_name==="script"||_.tag_name==="style")&&!(_.is_unformatted||_.is_content_unformatted)&&(_.custom_beautifier_name=I(_.tag_check,k)))),ue(_.tag_check,this._options.extra_liners)&&(oe.print_newline(!1),oe._output.just_added_blankline()||oe.print_newline(!0)),_.is_empty_element){if(_.tag_start_char==="{"&&_.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),_.indent_content=!0;var se=oe.current_line_has_match(/{{#if/);se||oe.print_newline(!1)}_.tag_name==="!--"&&ne.type===X.TAG_CLOSE&&ee.is_end_tag&&_.text.indexOf(`
|
|
|
`)===-1||(_.is_inline_element||_.is_unformatted||oe.print_newline(!1),this._calcluate_parent_multiline(oe,_))}else if(_.is_end_tag){var w=!1;w=_.start_tag_token&&_.start_tag_token.multiline_content,w=w||!_.is_inline_element&&!(ee.is_inline_element||ee.is_unformatted)&&!(ne.type===X.TAG_CLOSE&&_.start_tag_token===ee)&&ne.type!=="TK_CONTENT",(_.is_content_unformatted||_.is_unformatted)&&(w=!1),w&&oe.print_newline(!1)}else _.indent_content=!_.custom_beautifier_name,_.tag_start_char==="<"&&(_.tag_name==="html"?_.indent_content=this._options.indent_inner_html:_.tag_name==="head"?_.indent_content=this._options.indent_head_inner_html:_.tag_name==="body"&&(_.indent_content=this._options.indent_body_inner_html)),!(_.is_inline_element||_.is_unformatted)&&(ne.type!=="TK_CONTENT"||_.is_content_unformatted)&&oe.print_newline(!1),this._calcluate_parent_multiline(oe,_)},Ke.prototype._calcluate_parent_multiline=function(oe,k){k.parent&&oe._output.just_added_newline()&&!((k.is_inline_element||k.is_unformatted)&&k.parent.is_inline_element)&&(k.parent.multiline_content=!0)};var ke=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],We=["a","audio","del","ins","map","noscript","video"];Ke.prototype._do_optional_end_element=function(oe){var k=null;if(!(oe.is_empty_element||!oe.is_start_tag||!oe.parent)){if(oe.tag_name==="body")k=k||this._tag_stack.try_pop("head");else if(oe.tag_name==="li")k=k||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(oe.tag_name==="dd"||oe.tag_name==="dt")k=k||this._tag_stack.try_pop("dt",["dl"]),k=k||this._tag_stack.try_pop("dd",["dl"]);else if(oe.parent.tag_name==="p"&&ke.indexOf(oe.tag_name)!==-1){var _=oe.parent.parent;(!_||We.indexOf(_.tag_name)===-1)&&(k=k||this._tag_stack.try_pop("p"))}else oe.tag_name==="rp"||oe.tag_name==="rt"?(k=k||this._tag_stack.try_pop("rt",["ruby","rtc"]),k=k||this._tag_stack.try_pop("rp",["ruby","rtc"])):oe.tag_name==="optgroup"?k=k||this._tag_stack.try_pop("optgroup",["select"]):oe.tag_name==="option"?k=k||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):oe.tag_name==="colgroup"?k=k||this._tag_stack.try_pop("caption",["table"]):oe.tag_name==="thead"?(k=k||this._tag_stack.try_pop("caption",["table"]),k=k||this._tag_stack.try_pop("colgroup",["table"])):oe.tag_name==="tbody"||oe.tag_name==="tfoot"?(k=k||this._tag_stack.try_pop("caption",["table"]),k=k||this._tag_stack.try_pop("colgroup",["table"]),k=k||this._tag_stack.try_pop("thead",["table"]),k=k||this._tag_stack.try_pop("tbody",["table"])):oe.tag_name==="tr"?(k=k||this._tag_stack.try_pop("caption",["table"]),k=k||this._tag_stack.try_pop("colgroup",["table"]),k=k||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(oe.tag_name==="th"||oe.tag_name==="td")&&(k=k||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),k=k||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return oe.parent=this._tag_stack.get_parser_token(),k}},N.exports.Beautifier=Ke},function(N,y,T){var A=T(6).Options;function $(H){A.call(this,H,"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"])}$.prototype=new A,N.exports.Options=$},function(N,y,T){var A=T(9).Tokenizer,$=T(9).TOKEN,H=T(13).Directives,X=T(14).TemplatablePattern,V=T(12).Pattern,R={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:$.START,RAW:$.RAW,EOF:$.EOF},Q=new H(/<\!--/,/-->/),O=function(I,ue){A.call(this,I,ue),this._current_tag_name="";var Se=new X(this._input).read_options(this._options),me=new V(this._input);if(this.__patterns={word:Se.until(/[\n\r\t <]/),word_control_flow_close_excluded:Se.until(/[\n\r\t <}]/),single_quote:Se.until_after(/'/),double_quote:Se.until_after(/"/),attribute:Se.until(/[\n\r\t =>]|\/>/),element_name:Se.until(/[\n\r\t >\/]/),angular_control_flow_start:me.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:me.starting_with(/{{!--/).until_after(/--}}/),handlebars:me.starting_with(/{{/).until_after(/}}/),handlebars_open:me.until(/[\n\r\t }]/),handlebars_raw_close:me.until(/}}/),comment:me.starting_with(/<!--/).until_after(/-->/),cdata:me.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:me.starting_with(/<!\[/).until_after(/]>/),processing:me.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 Ke=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=me.matching(Ke).until_after(Ke)}};O.prototype=new A,O.prototype._is_comment=function(I){return!1},O.prototype._is_opening=function(I){return I.type===R.TAG_OPEN||I.type===R.CONTROL_FLOW_OPEN},O.prototype._is_closing=function(I,ue){return I.type===R.TAG_CLOSE&&ue&&((I.text===">"||I.text==="/>")&&ue.text[0]==="<"||I.text==="}}"&&ue.text[0]==="{"&&ue.text[1]==="{")||I.type===R.CONTROL_FLOW_CLOSE&&I.text==="}"&&ue.text.endsWith("{")},O.prototype._reset=function(){this._current_tag_name=""},O.prototype._get_next_token=function(I,ue){var Se=null;this._readWhitespace();var me=this._input.peek();return me===null?this._create_token(R.EOF,""):(Se=Se||this._read_open_handlebars(me,ue),Se=Se||this._read_attribute(me,I,ue),Se=Se||this._read_close(me,ue),Se=Se||this._read_script_and_style(me,I),Se=Se||this._read_control_flows(me,ue),Se=Se||this._read_raw_content(me,I,ue),Se=Se||this._read_content_word(me,ue),Se=Se||this._read_comment_or_cdata(me),Se=Se||this._read_processing(me),Se=Se||this._read_open(me,ue),Se=Se||this._create_token(R.UNKNOWN,this._input.next()),Se)},O.prototype._read_comment_or_cdata=function(I){var ue=null,Se=null,me=null;if(I==="<"){var Ke=this._input.peek(1);Ke==="!"&&(Se=this.__patterns.comment.read(),Se?(me=Q.get_directives(Se),me&&me.ignore==="start"&&(Se+=Q.readIgnored(this._input))):Se=this.__patterns.cdata.read()),Se&&(ue=this._create_token(R.COMMENT,Se),ue.directives=me)}return ue},O.prototype._read_processing=function(I){var ue=null,Se=null,me=null;if(I==="<"){var Ke=this._input.peek(1);(Ke==="!"||Ke==="?")&&(Se=this.__patterns.conditional_comment.read(),Se=Se||this.__patterns.processing.read()),Se&&(ue=this._create_token(R.COMMENT,Se),ue.directives=me)}return ue},O.prototype._read_open=function(I,ue){var Se=null,me=null;return(!ue||ue.type===R.CONTROL_FLOW_OPEN)&&I==="<"&&(Se=this._input.next(),this._input.peek()==="/"&&(Se+=this._input.next()),Se+=this.__patterns.element_name.read(),me=this._create_token(R.TAG_OPEN,Se)),me},O.prototype._read_open_handlebars=function(I,ue){var Se=null,me=null;return(!ue||ue.type===R.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&I==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(Se=this.__patterns.handlebars_comment.read(),Se=Se||this.__patterns.handlebars.read(),me=this._create_token(R.COMMENT,Se)):(Se=this.__patterns.handlebars_open.read(),me=this._create_token(R.TAG_OPEN,Se))),me},O.prototype._read_control_flows=function(I,ue){var Se="",me=null;if(!this._options.templating.includes("angular"))return me;if(I==="@"){if(Se=this.__patterns.angular_control_flow_start.read(),Se==="")return me;for(var Ke=Se.endsWith("(")?1:0,Je=0;!(Se.endsWith("{")&&Ke===Je);){var ke=this._input.next();if(ke===null)break;ke==="("?Ke++:ke===")"&&Je++,Se+=ke}me=this._create_token(R.CONTROL_FLOW_OPEN,Se)}else I==="}"&&ue&&ue.type===R.CONTROL_FLOW_OPEN&&(Se=this._input.next(),me=this._create_token(R.CONTROL_FLOW_CLOSE,Se));return me},O.prototype._read_close=function(I,ue){var Se=null,me=null;return ue&&ue.type===R.TAG_OPEN&&(ue.text[0]==="<"&&(I===">"||I==="/"&&this._input.peek(1)===">")?(Se=this._input.next(),I==="/"&&(Se+=this._input.next()),me=this._create_token(R.TAG_CLOSE,Se)):ue.text[0]==="{"&&I==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),me=this._create_token(R.TAG_CLOSE,"}}"))),me},O.prototype._read_attribute=function(I,ue,Se){var me=null,Ke="";if(Se&&Se.text[0]==="<")if(I==="=")me=this._create_token(R.EQUALS,this._input.next());else if(I==='"'||I==="'"){var Je=this._input.next();I==='"'?Je+=this.__patterns.double_quote.read():Je+=this.__patterns.single_quote.read(),me=this._create_token(R.VALUE,Je)}else Ke=this.__patterns.attribute.read(),Ke&&(ue.type===R.EQUALS?me=this._create_token(R.VALUE,Ke):me=this._create_token(R.ATTRIBUTE,Ke));return me},O.prototype._is_content_unformatted=function(I){return this._options.void_elements.indexOf(I)===-1&&(this._options.content_unformatted.indexOf(I)!==-1||this._options.unformatted.indexOf(I)!==-1)},O.prototype._read_raw_content=function(I,ue,Se){var me="";if(Se&&Se.text[0]==="{")me=this.__patterns.handlebars_raw_close.read();else if(ue.type===R.TAG_CLOSE&&ue.opened.text[0]==="<"&&ue.text[0]!=="/"){var Ke=ue.opened.text.substr(1).toLowerCase();this._is_content_unformatted(Ke)&&(me=this._input.readUntil(new RegExp("</"+Ke+"[\\n\\r\\t ]*?>","ig")))}return me?this._create_token(R.TEXT,me):null},O.prototype._read_script_and_style=function(I,ue){if(ue.type===R.TAG_CLOSE&&ue.opened.text[0]==="<"&&ue.text[0]!=="/"){var Se=ue.opened.text.substr(1).toLowerCase();if(Se==="script"||Se==="style"){var me=this._read_comment_or_cdata(I);if(me)return me.type=R.TEXT,me;var Ke=this._input.readUntil(new RegExp("</"+Se+"[\\n\\r\\t ]*?>","ig"));if(Ke)return this._create_token(R.TEXT,Ke)}}return null},O.prototype._read_content_word=function(I,ue){var Se="";return this._options.unformatted_content_delimiter&&I===this._options.unformatted_content_delimiter[0]&&(Se=this.__patterns.unformatted_content_delimiter.read()),Se||(Se=ue&&ue.type===R.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),Se?this._create_token(R.TEXT,Se):null},N.exports.Tokenizer=O,N.exports.TOKEN=R}],Y={};function l(N){var y=Y[N];if(y!==void 0)return y.exports;var T=Y[N]={exports:{}};return W[N](T,T.exports,l),T.exports}var x=l(18);L=x})();var he=L;if(1)i=[u,u(58553),u(87804)],K=function(W){var Y=u(58553),l=u(87804);return{html_beautify:function(x,N){return he(x,N,Y.js_beautify,l.css_beautify)}}}.apply(Rt,i),K!==void 0&&($n.exports=K);else var Z,g})()},58553:function($n,Rt){var u,i;(function(){var K;(function(){"use strict";var he=[function(Y,l,x){var N=x(1).Beautifier,y=x(5).Options;function T(A,$){var H=new N(A,$);return H.beautify()}Y.exports=T,Y.exports.defaultOptions=function(){return new y}},function(Y,l,x){var N=x(2).Output,y=x(3).Token,T=x(4),A=x(5).Options,$=x(7).Tokenizer,H=x(7).line_starters,X=x(7).positionable_operators,V=x(7).TOKEN;function R(D,ce){return ce.indexOf(D)!==-1}function Q(D){return D.replace(/^\s+/g,"")}function O(D){for(var ce={},Oe=0;Oe<D.length;Oe++)ce[D[Oe].replace(/-/g,"_")]=D[Oe];return ce}function I(D,ce){return D&&D.type===V.RESERVED&&D.text===ce}function ue(D,ce){return D&&D.type===V.RESERVED&&R(D.text,ce)}var Se=["case","return","do","if","throw","else","await","break","continue","async"],me=["before-newline","after-newline","preserve-newline"],Ke=O(me),Je=[Ke.before_newline,Ke.preserve_newline],ke={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function We(D,ce){ce.multiline_frame||ce.mode===ke.ForInitializer||ce.mode===ke.Conditional||D.remove_indent(ce.start_line_index)}function oe(D){D=D.replace(T.allLineBreaks,`
|
|
|
`);for(var ce=[],Oe=D.indexOf(`
|
|
|
`);Oe!==-1;)ce.push(D.substring(0,Oe)),D=D.substring(Oe+1),Oe=D.indexOf(`
|
|
|
`);return D.length&&ce.push(D),ce}function k(D){return D===ke.ArrayLiteral}function _(D){return R(D,[ke.Expression,ke.ForInitializer,ke.Conditional])}function ee(D,ce){for(var Oe=0;Oe<D.length;Oe++){var ct=D[Oe].trim();if(ct.charAt(0)!==ce)return!1}return!0}function ne(D,ce){for(var Oe=0,ct=D.length,Tt;Oe<ct;Oe++)if(Tt=D[Oe],Tt&&Tt.indexOf(ce)!==0)return!1;return!0}function se(D,ce){ce=ce||{},this._source_text=D||"",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 A(ce)}se.prototype.create_flags=function(D,ce){var Oe=0;D&&(Oe=D.indentation_level,!this._output.just_added_newline()&&D.line_indent_level>Oe&&(Oe=D.line_indent_level));var ct={mode:ce,parent:D,last_token:D?D.last_token:new y(V.START_BLOCK,""),last_word:D?D.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:Oe,alignment:0,line_indent_level:D?D.line_indent_level:Oe,start_line_index:this._output.get_line_number(),ternary_depth:0};return ct},se.prototype._reset=function(D){var ce=D.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new N(this._options,ce),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(ke.BlockStatement);var Oe=new $(D,this._options);return this._tokens=Oe.tokenize(),D},se.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var D,ce=this._reset(this._source_text),Oe=this._options.eol;this._options.eol==="auto"&&(Oe=`
|
|
|
`,ce&&T.lineBreak.test(ce||"")&&(Oe=ce.match(T.lineBreak)[0]));for(var ct=this._tokens.next();ct;)this.handle_token(ct),this._last_last_text=this._flags.last_token.text,this._flags.last_token=ct,ct=this._tokens.next();return D=this._output.get_code(Oe),D},se.prototype.handle_token=function(D,ce){D.type===V.START_EXPR?this.handle_start_expr(D):D.type===V.END_EXPR?this.handle_end_expr(D):D.type===V.START_BLOCK?this.handle_start_block(D):D.type===V.END_BLOCK?this.handle_end_block(D):D.type===V.WORD?this.handle_word(D):D.type===V.RESERVED?this.handle_word(D):D.type===V.SEMICOLON?this.handle_semicolon(D):D.type===V.STRING?this.handle_string(D):D.type===V.EQUALS?this.handle_equals(D):D.type===V.OPERATOR?this.handle_operator(D):D.type===V.COMMA?this.handle_comma(D):D.type===V.BLOCK_COMMENT?this.handle_block_comment(D,ce):D.type===V.COMMENT?this.handle_comment(D,ce):D.type===V.DOT?this.handle_dot(D):D.type===V.EOF?this.handle_eof(D):D.type===V.UNKNOWN?this.handle_unknown(D,ce):this.handle_unknown(D,ce)},se.prototype.handle_whitespace_and_comments=function(D,ce){var Oe=D.newlines,ct=this._options.keep_array_indentation&&k(this._flags.mode);if(D.comments_before)for(var Tt=D.comments_before.next();Tt;)this.handle_whitespace_and_comments(Tt,ce),this.handle_token(Tt,ce),Tt=D.comments_before.next();if(ct)for(var Ae=0;Ae<Oe;Ae+=1)this.print_newline(Ae>0,ce);else if(this._options.max_preserve_newlines&&Oe>this._options.max_preserve_newlines&&(Oe=this._options.max_preserve_newlines),this._options.preserve_newlines&&Oe>1){this.print_newline(!1,ce);for(var qe=1;qe<Oe;qe+=1)this.print_newline(!0,ce)}};var w=["async","break","continue","return","throw","yield"];se.prototype.allow_wrap_or_preserved_newline=function(D,ce){if(ce=ce===void 0?!1:ce,!this._output.just_added_newline()){var Oe=this._options.preserve_newlines&&D.newlines||ce,ct=R(this._flags.last_token.text,X)||R(D.text,X);if(ct){var Tt=R(this._flags.last_token.text,X)&&R(this._options.operator_position,Je)||R(D.text,X);Oe=Oe&&Tt}if(Oe)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(ue(this._flags.last_token,w))return;this._output.set_wrap_point()}}},se.prototype.print_newline=function(D,ce){if(!ce&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==V.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var Oe=this._tokens.peek();this._flags.mode===ke.Statement&&!(this._flags.if_block&&I(Oe,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(D)&&(this._flags.multiline_frame=!0)},se.prototype.print_token_line_indentation=function(D){this._output.just_added_newline()&&(this._options.keep_array_indentation&&D.newlines&&(D.text==="["||k(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(D.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))},se.prototype.print_token=function(D){if(this._output.raw){this._output.add_raw_token(D);return}if(this._options.comma_first&&D.previous&&D.previous.type===V.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var ce=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(ce),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(D),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(D),this._output.non_breaking_space=!0,this._output.add_token(D.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},se.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},se.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))},se.prototype.set_mode=function(D){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,D),this._flags=this.create_flags(this._previous_flags,D),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},se.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===ke.Statement&&We(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},se.prototype.start_of_object_property=function(){return this._flags.parent.mode===ke.ObjectLiteral&&this._flags.mode===ke.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||ue(this._flags.last_token,["get","set"]))},se.prototype.start_of_statement=function(D){var ce=!1;return ce=ce||ue(this._flags.last_token,["var","let","const"])&&D.type===V.WORD,ce=ce||I(this._flags.last_token,"do"),ce=ce||!(this._flags.parent.mode===ke.ObjectLiteral&&this._flags.mode===ke.Statement)&&ue(this._flags.last_token,w)&&!D.newlines,ce=ce||I(this._flags.last_token,"else")&&!(I(D,"if")&&!D.comments_before),ce=ce||this._flags.last_token.type===V.END_EXPR&&(this._previous_flags.mode===ke.ForInitializer||this._previous_flags.mode===ke.Conditional),ce=ce||this._flags.last_token.type===V.WORD&&this._flags.mode===ke.BlockStatement&&!this._flags.in_case&&!(D.text==="--"||D.text==="++")&&this._last_last_text!=="function"&&D.type!==V.WORD&&D.type!==V.RESERVED,ce=ce||this._flags.mode===ke.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||ue(this._flags.last_token,["get","set"])),ce?(this.set_mode(ke.Statement),this.indent(),this.handle_whitespace_and_comments(D,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D,ue(D,["do","for","if","while"])),!0):!1},se.prototype.handle_start_expr=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D);var ce=ke.Expression;if(D.text==="["){if(this._flags.last_token.type===V.WORD||this._flags.last_token.text===")"){ue(this._flags.last_token,H)&&(this._output.space_before_token=!0),this.print_token(D),this.set_mode(ce),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}ce=ke.ArrayLiteral,k(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),R(this._flags.last_token.type,[V.START_EXPR,V.END_EXPR,V.WORD,V.OPERATOR,V.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===V.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,ce=ke.ForInitializer):R(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,ce=ke.Conditional):R(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&D.whitespace_before===""?this._output.space_before_token=!1:(R(this._flags.last_token.text,H)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===V.EQUALS||this._flags.last_token.type===V.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D);else if(this._flags.last_token.type===V.WORD){this._output.space_before_token=!1;var Oe=this._tokens.peek(-3);if(this._options.space_after_named_function&&Oe){var ct=this._tokens.peek(-4);ue(Oe,["async","function"])||Oe.text==="*"&&ue(ct,["async","function"])?this._output.space_before_token=!0:this._flags.mode===ke.ObjectLiteral?(Oe.text==="{"||Oe.text===","||Oe.text==="*"&&(ct.text==="{"||ct.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(D);(this._flags.last_token.type===V.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(R(this._last_last_text,["function","yield"])||this._flags.mode===ke.ObjectLiteral&&R(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===V.START_BLOCK?this.print_newline():(this._flags.last_token.type===V.END_EXPR||this._flags.last_token.type===V.START_EXPR||this._flags.last_token.type===V.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===V.COMMA)&&this.allow_wrap_or_preserved_newline(D,D.newlines),this.print_token(D),this.set_mode(ce),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},se.prototype.handle_end_expr=function(D){for(;this._flags.mode===ke.Statement;)this.restore_mode();this.handle_whitespace_and_comments(D),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(D,D.text==="]"&&k(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===V.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(D),this.restore_mode(),We(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===ke.Conditional&&(this._previous_flags.mode=ke.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},se.prototype.handle_start_block=function(D){this.handle_whitespace_and_comments(D);var ce=this._tokens.peek(),Oe=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===V.END_EXPR?(this.set_mode(ke.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(ke.BlockStatement):Oe&&(R(Oe.text,[":",","])&&R(ce.type,[V.STRING,V.WORD,V.RESERVED])||R(ce.text,["get","set","..."])&&R(Oe.type,[V.WORD,V.RESERVED]))?R(this._last_last_text,["class","interface"])&&!R(Oe.text,[":",","])?this.set_mode(ke.BlockStatement):this.set_mode(ke.ObjectLiteral):this._flags.last_token.type===V.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(ke.BlockStatement):R(this._flags.last_token.type,[V.EQUALS,V.START_EXPR,V.COMMA,V.OPERATOR])||ue(this._flags.last_token,["return","throw","import","default"])?this.set_mode(ke.ObjectLiteral):this.set_mode(ke.BlockStatement),this._flags.last_token&&ue(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var ct=!ce.comments_before&&ce.text==="}",Tt=ct&&this._flags.last_word==="function"&&this._flags.last_token.type===V.END_EXPR;if(this._options.brace_preserve_inline){var Ae=0,qe=null;this._flags.inline_frame=!0;do if(Ae+=1,qe=this._tokens.peek(Ae-1),qe.newlines){this._flags.inline_frame=!1;break}while(qe.type!==V.EOF&&!(qe.type===V.END_BLOCK&&qe.opened===D))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&D.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==V.OPERATOR&&(Tt||this._flags.last_token.type===V.EQUALS||ue(this._flags.last_token,Se)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(k(this._previous_flags.mode)&&(this._flags.last_token.type===V.START_EXPR||this._flags.last_token.type===V.COMMA)&&((this._flags.last_token.type===V.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===V.COMMA||this._flags.last_token.type===V.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(D),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==V.OPERATOR&&this._flags.last_token.type!==V.START_EXPR&&(R(this._flags.last_token.type,[V.START_BLOCK,V.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(D),this.indent(),!ct&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},se.prototype.handle_end_block=function(D){for(this.handle_whitespace_and_comments(D);this._flags.mode===ke.Statement;)this.restore_mode();var ce=this._flags.last_token.type===V.START_BLOCK;this._flags.inline_frame&&!ce?this._output.space_before_token=!0:this._options.brace_style==="expand"?ce||this.print_newline():ce||(k(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(D)},se.prototype.handle_word=function(D){if(D.type===V.RESERVED){if(R(D.text,["set","get"])&&this._flags.mode!==ke.ObjectLiteral)D.type=V.WORD;else if(D.text==="import"&&R(this._tokens.peek().text,["(","."]))D.type=V.WORD;else if(R(D.text,["as","from"])&&!this._flags.import_block)D.type=V.WORD;else if(this._flags.mode===ke.ObjectLiteral){var ce=this._tokens.peek();ce.text===":"&&(D.type=V.WORD)}}if(this.start_of_statement(D)?ue(this._flags.last_token,["var","let","const"])&&D.type===V.WORD&&(this._flags.declaration_statement=!0):D.newlines&&!_(this._flags.mode)&&(this._flags.last_token.type!==V.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==V.EQUALS&&(this._options.preserve_newlines||!ue(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(D),this.print_newline()):this.handle_whitespace_and_comments(D),this._flags.do_block&&!this._flags.do_while)if(I(D,"while")){this._output.space_before_token=!0,this.print_token(D),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&&I(D,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===ke.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&ue(D,["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(D),this._flags.in_case=!0;return}if((this._flags.last_token.type===V.COMMA||this._flags.last_token.type===V.START_EXPR||this._flags.last_token.type===V.EQUALS||this._flags.last_token.type===V.OPERATOR)&&!this.start_of_object_property()&&!(R(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===ke.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(D),I(D,"function")){(R(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(R(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===V.OPERATOR))&&!this._output.just_added_blankline()&&!D.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===V.RESERVED||this._flags.last_token.type===V.WORD?ue(this._flags.last_token,["get","set","new","export"])||ue(this._flags.last_token,w)?this._output.space_before_token=!0:I(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===V.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(_(this._flags.mode)||k(this._flags.mode))||this.print_newline(),this.print_token(D),this._flags.last_word=D.text;return}var Oe="NONE";if(this._flags.last_token.type===V.END_BLOCK?this._previous_flags.inline_frame?Oe="SPACE":ue(D,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&D.newlines?Oe="NEWLINE":(Oe="SPACE",this._output.space_before_token=!0):Oe="NEWLINE":this._flags.last_token.type===V.SEMICOLON&&this._flags.mode===ke.BlockStatement?Oe="NEWLINE":this._flags.last_token.type===V.SEMICOLON&&_(this._flags.mode)?Oe="SPACE":this._flags.last_token.type===V.STRING?Oe="NEWLINE":this._flags.last_token.type===V.RESERVED||this._flags.last_token.type===V.WORD||this._flags.last_token.text==="*"&&(R(this._last_last_text,["function","yield"])||this._flags.mode===ke.ObjectLiteral&&R(this._last_last_text,["{",","]))?Oe="SPACE":this._flags.last_token.type===V.START_BLOCK?this._flags.inline_frame?Oe="SPACE":Oe="NEWLINE":this._flags.last_token.type===V.END_EXPR&&(this._output.space_before_token=!0,Oe="NEWLINE"),ue(D,H)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?Oe="SPACE":Oe="NEWLINE"),ue(D,["else","catch","finally"]))if((!(this._flags.last_token.type===V.END_BLOCK&&this._previous_flags.mode===ke.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&D.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var ct=this._output.current_line;ct.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else Oe==="NEWLINE"?ue(this._flags.last_token,Se)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&ue(D,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==V.END_EXPR?(this._flags.last_token.type!==V.START_EXPR||!ue(D,["var","let","const"]))&&this._flags.last_token.text!==":"&&(I(D,"if")&&I(D.previous,"else")?this._output.space_before_token=!0:this.print_newline()):ue(D,H)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&k(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():Oe==="SPACE"&&(this._output.space_before_token=!0);D.previous&&(D.previous.type===V.WORD||D.previous.type===V.RESERVED)&&(this._output.space_before_token=!0),this.print_token(D),this._flags.last_word=D.text,D.type===V.RESERVED&&(D.text==="do"?this._flags.do_block=!0:D.text==="if"?this._flags.if_block=!0:D.text==="import"?this._flags.import_block=!0:this._flags.import_block&&I(D,"from")&&(this._flags.import_block=!1))},se.prototype.handle_semicolon=function(D){this.start_of_statement(D)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(D);for(var ce=this._tokens.peek();this._flags.mode===ke.Statement&&!(this._flags.if_block&&I(ce,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(D)},se.prototype.handle_string=function(D){D.text.startsWith("`")&&D.newlines===0&&D.whitespace_before===""&&(D.previous.text===")"||this._flags.last_token.type===V.WORD)||(this.start_of_statement(D)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(D),this._flags.last_token.type===V.RESERVED||this._flags.last_token.type===V.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===V.COMMA||this._flags.last_token.type===V.START_EXPR||this._flags.last_token.type===V.EQUALS||this._flags.last_token.type===V.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D):D.text.startsWith("`")&&this._flags.last_token.type===V.END_EXPR&&(D.previous.text==="]"||D.previous.text===")")&&D.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(D)},se.prototype.handle_equals=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0},se.prototype.handle_comma=function(D){this.handle_whitespace_and_comments(D,!0),this.print_token(D),this._output.space_before_token=!0,this._flags.declaration_statement?(_(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(D)):this._flags.mode===ke.ObjectLiteral||this._flags.mode===ke.Statement&&this._flags.parent.mode===ke.ObjectLiteral?(this._flags.mode===ke.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(D)},se.prototype.handle_operator=function(D){var ce=D.text==="*"&&(ue(this._flags.last_token,["function","yield"])||R(this._flags.last_token.type,[V.START_BLOCK,V.COMMA,V.END_BLOCK,V.SEMICOLON])),Oe=R(D.text,["-","+"])&&(R(this._flags.last_token.type,[V.START_BLOCK,V.START_EXPR,V.EQUALS,V.OPERATOR])||R(this._flags.last_token.text,H)||this._flags.last_token.text===",");if(!this.start_of_statement(D)){var ct=!ce;this.handle_whitespace_and_comments(D,ct)}if(D.text==="*"&&this._flags.last_token.type===V.DOT){this.print_token(D);return}if(D.text==="::"){this.print_token(D);return}if(R(D.text,["-","+"])&&this.start_of_object_property()){this.print_token(D);return}if(this._flags.last_token.type===V.OPERATOR&&R(this._options.operator_position,Je)&&this.allow_wrap_or_preserved_newline(D),D.text===":"&&this._flags.in_case){this.print_token(D),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==V.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var Tt=!0,Ae=!0,qe=!1;if(D.text===":"?this._flags.ternary_depth===0?Tt=!1:(this._flags.ternary_depth-=1,qe=!0):D.text==="?"&&(this._flags.ternary_depth+=1),!Oe&&!ce&&this._options.preserve_newlines&&R(D.text,X)){var ht=D.text===":",tt=ht&&qe,Fe=ht&&!qe;switch(this._options.operator_position){case Ke.before_newline:this._output.space_before_token=!Fe,this.print_token(D),(!ht||tt)&&this.allow_wrap_or_preserved_newline(D),this._output.space_before_token=!0;return;case Ke.after_newline:this._output.space_before_token=!0,!ht||tt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(D):this._output.space_before_token=!1,this.print_token(D),this._output.space_before_token=!0;return;case Ke.preserve_newline:Fe||this.allow_wrap_or_preserved_newline(D),Tt=!(this._output.just_added_newline()||Fe),this._output.space_before_token=Tt,this.print_token(D),this._output.space_before_token=!0;return}}if(ce){this.allow_wrap_or_preserved_newline(D),Tt=!1;var jt=this._tokens.peek();Ae=jt&&R(jt.type,[V.WORD,V.RESERVED])}else if(D.text==="...")this.allow_wrap_or_preserved_newline(D),Tt=this._flags.last_token.type===V.START_BLOCK,Ae=!1;else if(R(D.text,["--","++","!","~"])||Oe){if((this._flags.last_token.type===V.COMMA||this._flags.last_token.type===V.START_EXPR)&&this.allow_wrap_or_preserved_newline(D),Tt=!1,Ae=!1,D.newlines&&(D.text==="--"||D.text==="++"||D.text==="~")){var bt=ue(this._flags.last_token,Se)&&D.newlines;bt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(bt,!0)}this._flags.last_token.text===";"&&_(this._flags.mode)&&(Tt=!0),this._flags.last_token.type===V.RESERVED?Tt=!0:this._flags.last_token.type===V.END_EXPR?Tt=!(this._flags.last_token.text==="]"&&(D.text==="--"||D.text==="++")):this._flags.last_token.type===V.OPERATOR&&(Tt=R(D.text,["--","-","++","+"])&&R(this._flags.last_token.text,["--","-","++","+"]),R(D.text,["+","-"])&&R(this._flags.last_token.text,["--","++"])&&(Ae=!0)),(this._flags.mode===ke.BlockStatement&&!this._flags.inline_frame||this._flags.mode===ke.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Tt,this.print_token(D),this._output.space_before_token=Ae},se.prototype.handle_block_comment=function(D,ce){if(this._output.raw){this._output.add_raw_token(D),D.directives&&D.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(D.directives){this.print_newline(!1,ce),this.print_token(D),D.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!T.newline.test(D.text)&&!D.newlines){this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0;return}else this.print_block_commment(D,ce)},se.prototype.print_block_commment=function(D,ce){var Oe=oe(D.text),ct,Tt=!1,Ae=!1,qe=D.whitespace_before,ht=qe.length;if(this.print_newline(!1,ce),this.print_token_line_indentation(D),this._output.add_token(Oe[0]),this.print_newline(!1,ce),Oe.length>1){for(Oe=Oe.slice(1),Tt=ee(Oe,"*"),Ae=ne(Oe,qe),Tt&&(this._flags.alignment=1),ct=0;ct<Oe.length;ct++)Tt?(this.print_token_line_indentation(D),this._output.add_token(Q(Oe[ct]))):Ae&&Oe[ct]?(this.print_token_line_indentation(D),this._output.add_token(Oe[ct].substring(ht))):(this._output.current_line.set_indent(-1),this._output.add_token(Oe[ct])),this.print_newline(!1,ce);this._flags.alignment=0}},se.prototype.handle_comment=function(D,ce){D.newlines?this.print_newline(!1,ce):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(D),this.print_newline(!1,ce)},se.prototype.handle_dot=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),ue(this._flags.last_token,Se)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(D,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(D)},se.prototype.handle_unknown=function(D,ce){this.print_token(D),D.text[D.text.length-1]===`
|
|
|
`&&this.print_newline(!1,ce)},se.prototype.handle_eof=function(D){for(;this._flags.mode===ke.Statement;)this.restore_mode();this.handle_whitespace_and_comments(D)},Y.exports.Beautifier=se},function(Y){function l(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=[]}l.prototype.clone_empty=function(){var y=new l(this.__parent);return y.set_indent(this.__indent_count,this.__alignment_count),y},l.prototype.item=function(y){return y<0?this.__items[this.__items.length+y]:this.__items[y]},l.prototype.has_match=function(y){for(var T=this.__items.length-1;T>=0;T--)if(this.__items[T].match(y))return!0;return!1},l.prototype.set_indent=function(y,T){this.is_empty()&&(this.__indent_count=y||0,this.__alignment_count=T||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},l.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)},l.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},l.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},l.prototype.is_empty=function(){return this.__items.length===0},l.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},l.prototype.push=function(y){this.__items.push(y);var T=y.lastIndexOf(`
|
|
|
`);T!==-1?this.__character_count=y.length-T:this.__character_count+=y.length},l.prototype.pop=function(){var y=null;return this.is_empty()||(y=this.__items.pop(),this.__character_count-=y.length),y},l.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},l.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},l.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},l.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 x(y,T){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)),T=T||"",y.indent_level>0&&(T=new Array(y.indent_level+1).join(this.__indent_string)),this.__base_string=T,this.__base_string_length=T.length}x.prototype.get_indent_size=function(y,T){var A=this.__base_string_length;return T=T||0,y<0&&(A=0),A+=y*this.__indent_size,A+=T,A},x.prototype.get_indent_string=function(y,T){var A=this.__base_string;return T=T||0,y<0&&(y=0,A=""),T+=y*this.__indent_size,this.__ensure_cache(T),A+=this.__cache[T],A},x.prototype.__ensure_cache=function(y){for(;y>=this.__cache.length;)this.__add_column()},x.prototype.__add_column=function(){var y=this.__cache.length,T=0,A="";this.__indent_size&&y>=this.__indent_size&&(T=Math.floor(y/this.__indent_size),y-=T*this.__indent_size,A=new Array(T+1).join(this.__indent_string)),y&&(A+=new Array(y+1).join(" ")),this.__cache.push(A)};function N(y,T){this.__indent_cache=new x(y,T),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 l(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}N.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},N.prototype.get_line_number=function(){return this.__lines.length},N.prototype.get_indent_string=function(y,T){return this.__indent_cache.get_indent_string(y,T)},N.prototype.get_indent_size=function(y,T){return this.__indent_cache.get_indent_size(y,T)},N.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},N.prototype.add_new_line=function(y){return this.is_empty()||!y&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},N.prototype.get_code=function(y){this.trim(!0);var T=this.current_line.pop();T&&(T[T.length-1]===`
|
|
|
`&&(T=T.replace(/\n+$/g,"")),this.current_line.push(T)),this._end_with_newline&&this.__add_outputline();var A=this.__lines.join(`
|
|
|
`);return y!==`
|
|
|
`&&(A=A.replace(/[\n]/g,y)),A},N.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},N.prototype.set_indent=function(y,T){return y=y||0,T=T||0,this.next_line.set_indent(y,T),this.__lines.length>1?(this.current_line.set_indent(y,T),!0):(this.current_line.set_indent(),!1)},N.prototype.add_raw_token=function(y){for(var T=0;T<y.newlines;T++)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},N.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()},N.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(" "))},N.prototype.remove_indent=function(y){for(var T=this.__lines.length;y<T;)this.__lines[y]._remove_indent(),y++;this.current_line._remove_wrap_indent()},N.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},N.prototype.just_added_newline=function(){return this.current_line.is_empty()},N.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},N.prototype.ensure_empty_line_above=function(y,T){for(var A=this.__lines.length-2;A>=0;){var $=this.__lines[A];if($.is_empty())break;if($.item(0).indexOf(y)!==0&&$.item(-1)!==T){this.__lines.splice(A+1,0,new l(this)),this.previous_line=this.__lines[this.__lines.length-2];break}A--}},Y.exports.Output=N},function(Y){function l(x,N,y,T){this.type=x,this.text=N,this.comments_before=null,this.newlines=y||0,this.whitespace_before=T||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}Y.exports.Token=l},function(Y,l){var x="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",N="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",y="\\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",T="\\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",A="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",$="(?:"+A+"|["+x+y+"])",H="(?:"+A+"|["+N+y+T+"])*";l.identifier=new RegExp($+H,"g"),l.identifierStart=new RegExp($),l.identifierMatch=new RegExp("(?:"+A+"|["+N+y+T+"])+");var X=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;l.newline=/[\n\r\u2028\u2029]/,l.lineBreak=new RegExp(`\r
|
|
|
|`+l.newline.source),l.allLineBreaks=new RegExp(l.lineBreak.source,"g")},function(Y,l,x){var N=x(6).Options,y=["before-newline","after-newline","preserve-newline"];function T(A){N.call(this,A,"js");var $=this.raw_options.brace_style||null;$==="expand-strict"?this.raw_options.brace_style="expand":$==="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 H=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var X=0;X<H.length;X++)H[X]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=H[X];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",y),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}T.prototype=new N,Y.exports.Options=T},function(Y){function l(y,T){this.raw_options=x(y,T),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"])}l.prototype._get_array=function(y,T){var A=this.raw_options[y],$=T||[];return typeof A=="object"?A!==null&&typeof A.concat=="function"&&($=A.concat()):typeof A=="string"&&($=A.split(/[^a-zA-Z0-9_\/\-]+/)),$},l.prototype._get_boolean=function(y,T){var A=this.raw_options[y],$=A===void 0?!!T:!!A;return $},l.prototype._get_characters=function(y,T){var A=this.raw_options[y],$=T||"";return typeof A=="string"&&($=A.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),$},l.prototype._get_number=function(y,T){var A=this.raw_options[y];T=parseInt(T,10),isNaN(T)&&(T=0);var $=parseInt(A,10);return isNaN($)&&($=T),$},l.prototype._get_selection=function(y,T,A){var $=this._get_selection_list(y,T,A);if($.length!==1)throw new Error("Invalid Option Value: The option '"+y+`' can only be one of the following values:
|
|
|
`+T+`
|
|
|
You passed in: '`+this.raw_options[y]+"'");return $[0]},l.prototype._get_selection_list=function(y,T,A){if(!T||T.length===0)throw new Error("Selection list cannot be empty.");if(A=A||[T[0]],!this._is_valid_selection(A,T))throw new Error("Invalid Default Value!");var $=this._get_array(y,A);if(!this._is_valid_selection($,T))throw new Error("Invalid Option Value: The option '"+y+`' can contain only the following values:
|
|
|
`+T+`
|
|
|
You passed in: '`+this.raw_options[y]+"'");return $},l.prototype._is_valid_selection=function(y,T){return y.length&&T.length&&!y.some(function(A){return T.indexOf(A)===-1})};function x(y,T){var A={};y=N(y);var $;for($ in y)$!==T&&(A[$]=y[$]);if(T&&y[T])for($ in y[T])A[$]=y[T][$];return A}function N(y){var T={},A;for(A in y){var $=A.replace(/-/g,"_");T[$]=y[A]}return T}Y.exports.Options=l,Y.exports.normalizeOpts=N,Y.exports.mergeOpts=x},function(Y,l,x){var N=x(8).InputScanner,y=x(9).Tokenizer,T=x(9).TOKEN,A=x(13).Directives,$=x(4),H=x(12).Pattern,X=x(14).TemplatablePattern;function V(ee,ne){return ne.indexOf(ee)!==-1}var R={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:T.START,RAW:T.RAW,EOF:T.EOF},Q=new A(/\/\*/,/\*\//),O=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,I=/[0-9]/,ue=/[^\d\.]/,Se=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),me=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";me=me.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),me="\\?\\.(?!\\d) "+me,me=me.replace(/ /g,"|");var Ke=new RegExp(me),Je="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),ke=Je.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),We=new RegExp("^(?:"+ke.join("|")+")$"),oe,k=function(ee,ne){y.call(this,ee,ne),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var se=new H(this._input),w=new X(this._input).read_options(this._options);this.__patterns={template:w,identifier:w.starting_with($.identifier).matching($.identifierMatch),number:se.matching(O),punct:se.matching(Ke),comment:se.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:se.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:se.matching(/<!--/),html_comment_end:se.matching(/-->/),include:se.starting_with(/#include/).until_after($.lineBreak),shebang:se.starting_with(/#!/).until_after($.lineBreak),xml:se.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:w.until(/['\\\n\r\u2028\u2029]/),double_quote:w.until(/["\\\n\r\u2028\u2029]/),template_text:w.until(/[`\\$]/),template_expression:w.until(/[`}\\]/)}};k.prototype=new y,k.prototype._is_comment=function(ee){return ee.type===R.COMMENT||ee.type===R.BLOCK_COMMENT||ee.type===R.UNKNOWN},k.prototype._is_opening=function(ee){return ee.type===R.START_BLOCK||ee.type===R.START_EXPR},k.prototype._is_closing=function(ee,ne){return(ee.type===R.END_BLOCK||ee.type===R.END_EXPR)&&ne&&(ee.text==="]"&&ne.text==="["||ee.text===")"&&ne.text==="("||ee.text==="}"&&ne.text==="{")},k.prototype._reset=function(){oe=!1},k.prototype._get_next_token=function(ee,ne){var se=null;this._readWhitespace();var w=this._input.peek();return w===null?this._create_token(R.EOF,""):(se=se||this._read_non_javascript(w),se=se||this._read_string(w),se=se||this._read_pair(w,this._input.peek(1)),se=se||this._read_word(ee),se=se||this._read_singles(w),se=se||this._read_comment(w),se=se||this._read_regexp(w,ee),se=se||this._read_xml(w,ee),se=se||this._read_punctuation(),se=se||this._create_token(R.UNKNOWN,this._input.next()),se)},k.prototype._read_word=function(ee){var ne;if(ne=this.__patterns.identifier.read(),ne!=="")return ne=ne.replace($.allLineBreaks,`
|
|
|
`),!(ee.type===R.DOT||ee.type===R.RESERVED&&(ee.text==="set"||ee.text==="get"))&&We.test(ne)?(ne==="in"||ne==="of")&&(ee.type===R.WORD||ee.type===R.STRING)?this._create_token(R.OPERATOR,ne):this._create_token(R.RESERVED,ne):this._create_token(R.WORD,ne);if(ne=this.__patterns.number.read(),ne!=="")return this._create_token(R.WORD,ne)},k.prototype._read_singles=function(ee){var ne=null;return ee==="("||ee==="["?ne=this._create_token(R.START_EXPR,ee):ee===")"||ee==="]"?ne=this._create_token(R.END_EXPR,ee):ee==="{"?ne=this._create_token(R.START_BLOCK,ee):ee==="}"?ne=this._create_token(R.END_BLOCK,ee):ee===";"?ne=this._create_token(R.SEMICOLON,ee):ee==="."&&ue.test(this._input.peek(1))?ne=this._create_token(R.DOT,ee):ee===","&&(ne=this._create_token(R.COMMA,ee)),ne&&this._input.next(),ne},k.prototype._read_pair=function(ee,ne){var se=null;return ee==="#"&&ne==="{"&&(se=this._create_token(R.START_BLOCK,ee+ne)),se&&(this._input.next(),this._input.next()),se},k.prototype._read_punctuation=function(){var ee=this.__patterns.punct.read();if(ee!=="")return ee==="="?this._create_token(R.EQUALS,ee):ee==="?."?this._create_token(R.DOT,ee):this._create_token(R.OPERATOR,ee)},k.prototype._read_non_javascript=function(ee){var ne="";if(ee==="#"){if(this._is_first_token()&&(ne=this.__patterns.shebang.read(),ne))return this._create_token(R.UNKNOWN,ne.trim()+`
|
|
|
`);if(ne=this.__patterns.include.read(),ne)return this._create_token(R.UNKNOWN,ne.trim()+`
|
|
|
`);ee=this._input.next();var se="#";if(this._input.hasNext()&&this._input.testChar(I)){do ee=this._input.next(),se+=ee;while(this._input.hasNext()&&ee!=="#"&&ee!=="=");return ee==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(se+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(se+="{}",this._input.next(),this._input.next())),this._create_token(R.WORD,se)}this._input.back()}else if(ee==="<"&&this._is_first_token()){if(ne=this.__patterns.html_comment_start.read(),ne){for(;this._input.hasNext()&&!this._input.testChar($.newline);)ne+=this._input.next();return oe=!0,this._create_token(R.COMMENT,ne)}}else if(oe&&ee==="-"&&(ne=this.__patterns.html_comment_end.read(),ne))return oe=!1,this._create_token(R.COMMENT,ne);return null},k.prototype._read_comment=function(ee){var ne=null;if(ee==="/"){var se="";if(this._input.peek(1)==="*"){se=this.__patterns.block_comment.read();var w=Q.get_directives(se);w&&w.ignore==="start"&&(se+=Q.readIgnored(this._input)),se=se.replace($.allLineBreaks,`
|
|
|
`),ne=this._create_token(R.BLOCK_COMMENT,se),ne.directives=w}else this._input.peek(1)==="/"&&(se=this.__patterns.comment.read(),ne=this._create_token(R.COMMENT,se))}return ne},k.prototype._read_string=function(ee){if(ee==="`"||ee==="'"||ee==='"'){var ne=this._input.next();return this.has_char_escapes=!1,ee==="`"?ne+=this._read_string_recursive("`",!0,"${"):ne+=this._read_string_recursive(ee),this.has_char_escapes&&this._options.unescape_strings&&(ne=_(ne)),this._input.peek()===ee&&(ne+=this._input.next()),ne=ne.replace($.allLineBreaks,`
|
|
|
`),this._create_token(R.STRING,ne)}return null},k.prototype._allow_regexp_or_xml=function(ee){return ee.type===R.RESERVED&&V(ee.text,["return","case","throw","else","do","typeof","yield"])||ee.type===R.END_EXPR&&ee.text===")"&&ee.opened.previous.type===R.RESERVED&&V(ee.opened.previous.text,["if","while","for"])||V(ee.type,[R.COMMENT,R.START_EXPR,R.START_BLOCK,R.START,R.END_BLOCK,R.OPERATOR,R.EQUALS,R.EOF,R.SEMICOLON,R.COMMA])},k.prototype._read_regexp=function(ee,ne){if(ee==="/"&&this._allow_regexp_or_xml(ne)){for(var se=this._input.next(),w=!1,D=!1;this._input.hasNext()&&(w||D||this._input.peek()!==ee)&&!this._input.testChar($.newline);)se+=this._input.peek(),w?w=!1:(w=this._input.peek()==="\\",this._input.peek()==="["?D=!0:this._input.peek()==="]"&&(D=!1)),this._input.next();return this._input.peek()===ee&&(se+=this._input.next(),se+=this._input.read($.identifier)),this._create_token(R.STRING,se)}return null},k.prototype._read_xml=function(ee,ne){if(this._options.e4x&&ee==="<"&&this._allow_regexp_or_xml(ne)){var se="",w=this.__patterns.xml.read_match();if(w){for(var D=w[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),ce=D.indexOf("{")===0,Oe=0;w;){var ct=!!w[1],Tt=w[2],Ae=!!w[w.length-1]||Tt.slice(0,8)==="![CDATA[";if(!Ae&&(Tt===D||ce&&Tt.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(ct?--Oe:++Oe),se+=w[0],Oe<=0)break;w=this.__patterns.xml.read_match()}return w||(se+=this._input.match(/[\s\S]*/g)[0]),se=se.replace($.allLineBreaks,`
|
|
|
`),this._create_token(R.STRING,se)}}return null};function _(ee){for(var ne="",se=0,w=new N(ee),D=null;w.hasNext();)if(D=w.match(/([\s]|[^\\]|\\\\)+/g),D&&(ne+=D[0]),w.peek()==="\\"){if(w.next(),w.peek()==="x")D=w.match(/x([0-9A-Fa-f]{2})/g);else if(w.peek()==="u")D=w.match(/u([0-9A-Fa-f]{4})/g),D||(D=w.match(/u\{([0-9A-Fa-f]+)\}/g));else{ne+="\\",w.hasNext()&&(ne+=w.next());continue}if(!D||(se=parseInt(D[1],16),se>126&&se<=255&&D[0].indexOf("x")===0))return ee;se>=0&&se<32||se>1114111?ne+="\\"+D[0]:se===34||se===39||se===92?ne+="\\"+String.fromCharCode(se):ne+=String.fromCharCode(se)}return ne}k.prototype._read_string_recursive=function(ee,ne,se){var w,D;ee==="'"?D=this.__patterns.single_quote:ee==='"'?D=this.__patterns.double_quote:ee==="`"?D=this.__patterns.template_text:ee==="}"&&(D=this.__patterns.template_expression);for(var ce=D.read(),Oe="";this._input.hasNext();){if(Oe=this._input.next(),Oe===ee||!ne&&$.newline.test(Oe)){this._input.back();break}else Oe==="\\"&&this._input.hasNext()?(w=this._input.peek(),w==="x"||w==="u"?this.has_char_escapes=!0:w==="\r"&&this._input.peek(1)===`
|
|
|
`&&this._input.next(),Oe+=this._input.next()):se&&(se==="${"&&Oe==="$"&&this._input.peek()==="{"&&(Oe+=this._input.next()),se===Oe&&(ee==="`"?Oe+=this._read_string_recursive("}",ne,"`"):Oe+=this._read_string_recursive("`",ne,"${"),this._input.hasNext()&&(Oe+=this._input.next())));Oe+=D.read(),ce+=Oe}return ce},Y.exports.Tokenizer=k,Y.exports.TOKEN=R,Y.exports.positionable_operators=Se.slice(),Y.exports.line_starters=Je.slice()},function(Y){var l=RegExp.prototype.hasOwnProperty("sticky");function x(N){this.__input=N||"",this.__input_length=this.__input.length,this.__position=0}x.prototype.restart=function(){this.__position=0},x.prototype.back=function(){this.__position>0&&(this.__position-=1)},x.prototype.hasNext=function(){return this.__position<this.__input_length},x.prototype.next=function(){var N=null;return this.hasNext()&&(N=this.__input.charAt(this.__position),this.__position+=1),N},x.prototype.peek=function(N){var y=null;return N=N||0,N+=this.__position,N>=0&&N<this.__input_length&&(y=this.__input.charAt(N)),y},x.prototype.__match=function(N,y){N.lastIndex=y;var T=N.exec(this.__input);return T&&!(l&&N.sticky)&&T.index!==y&&(T=null),T},x.prototype.test=function(N,y){return y=y||0,y+=this.__position,y>=0&&y<this.__input_length?!!this.__match(N,y):!1},x.prototype.testChar=function(N,y){var T=this.peek(y);return N.lastIndex=0,T!==null&&N.test(T)},x.prototype.match=function(N){var y=this.__match(N,this.__position);return y?this.__position+=y[0].length:y=null,y},x.prototype.read=function(N,y,T){var A="",$;return N&&($=this.match(N),$&&(A+=$[0])),y&&($||!N)&&(A+=this.readUntil(y,T)),A},x.prototype.readUntil=function(N,y){var T="",A=this.__position;N.lastIndex=this.__position;var $=N.exec(this.__input);return $?(A=$.index,y&&(A+=$[0].length)):A=this.__input_length,T=this.__input.substring(this.__position,A),this.__position=A,T},x.prototype.readUntilAfter=function(N){return this.readUntil(N,!0)},x.prototype.get_regexp=function(N,y){var T=null,A="g";return y&&l&&(A="y"),typeof N=="string"&&N!==""?T=new RegExp(N,A):N&&(T=new RegExp(N.source,A)),T},x.prototype.get_literal_regexp=function(N){return RegExp(N.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},x.prototype.peekUntilAfter=function(N){var y=this.__position,T=this.readUntilAfter(N);return this.__position=y,T},x.prototype.lookBack=function(N){var y=this.__position-1;return y>=N.length&&this.__input.substring(y-N.length,y).toLowerCase()===N},Y.exports.InputScanner=x},function(Y,l,x){var N=x(8).InputScanner,y=x(3).Token,T=x(10).TokenStream,A=x(11).WhitespacePattern,$={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},H=function(X,V){this._input=new N(X),this._options=V||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new A(this._input)};H.prototype.tokenize=function(){this._input.restart(),this.__tokens=new T,this._reset();for(var X,V=new y($.START,""),R=null,Q=[],O=new T;V.type!==$.EOF;){for(X=this._get_next_token(V,R);this._is_comment(X);)O.add(X),X=this._get_next_token(V,R);O.isEmpty()||(X.comments_before=O,O=new T),X.parent=R,this._is_opening(X)?(Q.push(R),R=X):R&&this._is_closing(X,R)&&(X.opened=R,R.closed=X,R=Q.pop(),X.parent=R),X.previous=V,V.next=X,this.__tokens.add(X),V=X}return this.__tokens},H.prototype._is_first_token=function(){return this.__tokens.isEmpty()},H.prototype._reset=function(){},H.prototype._get_next_token=function(X,V){this._readWhitespace();var R=this._input.read(/.+/g);return R?this._create_token($.RAW,R):this._create_token($.EOF,"")},H.prototype._is_comment=function(X){return!1},H.prototype._is_opening=function(X){return!1},H.prototype._is_closing=function(X,V){return!1},H.prototype._create_token=function(X,V){var R=new y(X,V,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return R},H.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Y.exports.Tokenizer=H,Y.exports.TOKEN=$},function(Y){function l(x){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=x}l.prototype.restart=function(){this.__position=0},l.prototype.isEmpty=function(){return this.__tokens_length===0},l.prototype.hasNext=function(){return this.__position<this.__tokens_length},l.prototype.next=function(){var x=null;return this.hasNext()&&(x=this.__tokens[this.__position],this.__position+=1),x},l.prototype.peek=function(x){var N=null;return x=x||0,x+=this.__position,x>=0&&x<this.__tokens_length&&(N=this.__tokens[x]),N},l.prototype.add=function(x){this.__parent_token&&(x.parent=this.__parent_token),this.__tokens.push(x),this.__tokens_length+=1},Y.exports.TokenStream=l},function(Y,l,x){var N=x(12).Pattern;function y(T,A){N.call(this,T,A),A?this._line_regexp=this._input.get_regexp(A._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}y.prototype=new N,y.prototype.__set_whitespace_patterns=function(T,A){T+="\\t ",A+="\\n\\r",this._match_pattern=this._input.get_regexp("["+T+A+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+A+"]")},y.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var T=this._input.read(this._match_pattern);if(T===" ")this.whitespace_before_token=" ";else if(T){var A=this.__split(this._newline_regexp,T);this.newline_count=A.length-1,this.whitespace_before_token=A[this.newline_count]}return T},y.prototype.matching=function(T,A){var $=this._create();return $.__set_whitespace_patterns(T,A),$._update(),$},y.prototype._create=function(){return new y(this._input,this)},y.prototype.__split=function(T,A){T.lastIndex=0;for(var $=0,H=[],X=T.exec(A);X;)H.push(A.substring($,X.index)),$=X.index+X[0].length,X=T.exec(A);return $<A.length?H.push(A.substring($,A.length)):H.push(""),H},Y.exports.WhitespacePattern=y},function(Y){function l(x,N){this._input=x,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,N&&(this._starting_pattern=this._input.get_regexp(N._starting_pattern,!0),this._match_pattern=this._input.get_regexp(N._match_pattern,!0),this._until_pattern=this._input.get_regexp(N._until_pattern),this._until_after=N._until_after)}l.prototype.read=function(){var x=this._input.read(this._starting_pattern);return(!this._starting_pattern||x)&&(x+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),x},l.prototype.read_match=function(){return this._input.match(this._match_pattern)},l.prototype.until_after=function(x){var N=this._create();return N._until_after=!0,N._until_pattern=this._input.get_regexp(x),N._update(),N},l.prototype.until=function(x){var N=this._create();return N._until_after=!1,N._until_pattern=this._input.get_regexp(x),N._update(),N},l.prototype.starting_with=function(x){var N=this._create();return N._starting_pattern=this._input.get_regexp(x,!0),N._update(),N},l.prototype.matching=function(x){var N=this._create();return N._match_pattern=this._input.get_regexp(x,!0),N._update(),N},l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){},Y.exports.Pattern=l},function(Y){function l(x,N){x=typeof x=="string"?x:x.source,N=typeof N=="string"?N:N.source,this.__directives_block_pattern=new RegExp(x+/ beautify( \w+[:]\w+)+ /.source+N,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(x+/\sbeautify\signore:end\s/.source+N,"g")}l.prototype.get_directives=function(x){if(!x.match(this.__directives_block_pattern))return null;var N={};this.__directive_pattern.lastIndex=0;for(var y=this.__directive_pattern.exec(x);y;)N[y[1]]=y[2],y=this.__directive_pattern.exec(x);return N},l.prototype.readIgnored=function(x){return x.readUntilAfter(this.__directives_end_ignore_pattern)},Y.exports.Directives=l},function(Y,l,x){var N=x(12).Pattern,y={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function T(A,$){N.call(this,A,$),this.__template_pattern=null,this._disabled=Object.assign({},y),this._excluded=Object.assign({},y),$&&(this.__template_pattern=this._input.get_regexp($.__template_pattern),this._excluded=Object.assign(this._excluded,$._excluded),this._disabled=Object.assign(this._disabled,$._disabled));var H=new N(A);this.__patterns={handlebars_comment:H.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:H.starting_with(/{{{/).until_after(/}}}/),handlebars:H.starting_with(/{{/).until_after(/}}/),php:H.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:H.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:H.starting_with(/{%/).until_after(/%}/),django_value:H.starting_with(/{{/).until_after(/}}/),django_comment:H.starting_with(/{#/).until_after(/#}/),smarty:H.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:H.starting_with(/{\*/).until_after(/\*}/),smarty_literal:H.starting_with(/{literal}/).until_after(/{\/literal}/)}}T.prototype=new N,T.prototype._create=function(){return new T(this._input,this)},T.prototype._update=function(){this.__set_templated_pattern()},T.prototype.disable=function(A){var $=this._create();return $._disabled[A]=!0,$._update(),$},T.prototype.read_options=function(A){var $=this._create();for(var H in y)$._disabled[H]=A.templating.indexOf(H)===-1;return $._update(),$},T.prototype.exclude=function(A){var $=this._create();return $._excluded[A]=!0,$._update(),$},T.prototype.read=function(){var A="";this._match_pattern?A=this._input.read(this._starting_pattern):A=this._input.read(this._starting_pattern,this.__template_pattern);for(var $=this._read_template();$;)this._match_pattern?$+=this._input.read(this._match_pattern):$+=this._input.readUntil(this.__template_pattern),A+=$,$=this._read_template();return this._until_after&&(A+=this._input.readUntilAfter(this._until_pattern)),A},T.prototype.__set_templated_pattern=function(){var A=[];this._disabled.php||A.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||A.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||A.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||A.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(A.push(this.__patterns.django._starting_pattern.source),A.push(this.__patterns.django_value._starting_pattern.source),A.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||A.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&A.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+A.join("|")+")")},T.prototype._read_template=function(){var A="",$=this._input.peek();if($==="<"){var H=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&H==="?"&&(A=A||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&H==="%"&&(A=A||this.__patterns.erb.read())}else $==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(A=A||this.__patterns.handlebars_comment.read(),A=A||this.__patterns.handlebars_unescaped.read(),A=A||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(A=A||this.__patterns.django_value.read()),this._excluded.django||(A=A||this.__patterns.django_comment.read(),A=A||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(A=A||this.__patterns.smarty_comment.read(),A=A||this.__patterns.smarty_literal.read(),A=A||this.__patterns.smarty.read()));return A},Y.exports.TemplatablePattern=T}],Z={};function g(Y){var l=Z[Y];if(l!==void 0)return l.exports;var x=Z[Y]={exports:{}};return he[Y](x,x.exports,g),x.exports}var W=g(0);K=W})();var L=K;u=[],i=function(){return{js_beautify:L}}.apply(Rt,u),i!==void 0&&($n.exports=i)})()},7861:function($n,Rt,u){var i=u(38710),K=function(Z){var g=/[height|width]$/;return g.test(Z)},L=function(Z){var g="",W=Object.keys(Z);return W.forEach(function(Y,l){var x=Z[Y];Y=i(Y),K(Y)&&typeof x=="number"&&(x=x+"px"),x===!0?g+=Y:x===!1?g+="not "+Y:g+="("+Y+": "+x+")",l<W.length-1&&(g+=" and ")}),g},he=function(Z){var g="";return typeof Z=="string"?Z:Z instanceof Array?(Z.forEach(function(W,Y){g+=L(W),Y<Z.length-1&&(g+=", ")}),g):L(Z)};$n.exports=he},15342:function($n){(function(u,i){$n.exports=i()})(typeof self!="undefined"?self:this,function(){return function(Rt){var u={};function i(K){if(u[K])return u[K].exports;var L=u[K]={i:K,l:!1,exports:{}};return Rt[K].call(L.exports,L,L.exports,i),L.l=!0,L.exports}return i.m=Rt,i.c=u,i.d=function(K,L,he){i.o(K,L)||Object.defineProperty(K,L,{enumerable:!0,get:he})},i.r=function(K){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(K,"__esModule",{value:!0})},i.t=function(K,L){if(L&1&&(K=i(K)),L&8||L&4&&typeof K=="object"&&K&&K.__esModule)return K;var he=Object.create(null);if(i.r(he),Object.defineProperty(he,"default",{enumerable:!0,value:K}),L&2&&typeof K!="string")for(var Z in K)i.d(he,Z,function(g){return K[g]}.bind(null,Z));return he},i.n=function(K){var L=K&&K.__esModule?function(){return K.default}:function(){return K};return i.d(L,"a",L),L},i.o=function(K,L){return Object.prototype.hasOwnProperty.call(K,L)},i.p="",i(i.s=1)}([function(Rt,u,i){},function(Rt,u,i){"use strict";i.r(u);var K=i(0),L=function(){function U(c,f,h){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=c,this.start=f,this.end=h}return U.range=function(f,h){return h?!f||!f.loc||!h.loc||f.loc.lexer!==h.loc.lexer?null:new U(f.loc.lexer,f.loc.start,h.loc.end):f&&f.loc},U}(),he=function(){function U(f,h){this.text=void 0,this.loc=void 0,this.text=f,this.loc=h}var c=U.prototype;return c.range=function(h,b){return new U(b,L.range(this,h))},U}(),Z=function U(c,f){this.position=void 0;var h="KaTeX parse error: "+c,b,B=f&&f.loc;if(B&&B.start<=B.end){var q=B.lexer.input;b=B.start;var Me=B.end;b===q.length?h+=" at end of input: ":h+=" at position "+(b+1)+": ";var et=q.slice(b,Me).replace(/[^]/g,"$&\u0332"),yt;b>15?yt="\u2026"+q.slice(b-15,b):yt=q.slice(0,b);var Xt;Me+15<q.length?Xt=q.slice(Me,Me+15)+"\u2026":Xt=q.slice(Me),h+=yt+et+Xt}var fn=new Error(h);return fn.name="ParseError",fn.__proto__=U.prototype,fn.position=b,fn};Z.prototype.__proto__=Error.prototype;var g=Z,W=function(c,f){return c.indexOf(f)!==-1},Y=function(c,f){return c===void 0?f:c},l=/([A-Z])/g,x=function(c){return c.replace(l,"-$1").toLowerCase()},N={"&":"&",">":">","<":"<",'"':""","'":"'"},y=/[&><"']/g;function T(U){return String(U).replace(y,function(c){return N[c]})}var A=function U(c){return c.type==="ordgroup"||c.type==="color"?c.body.length===1?U(c.body[0]):c:c.type==="font"?U(c.body):c},$=function(c){var f=A(c);return f.type==="mathord"||f.type==="textord"||f.type==="atom"},H=function(c){if(!c)throw new Error("Expected non-null, but got "+String(c));return c},X=function(c){var f=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(c);return f!=null?f[1]:"_relative"},V={contains:W,deflt:Y,escape:T,hyphenate:x,getBaseElem:A,isCharacterBox:$,protocolFromUrl:X},R=function(){function U(f){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,f=f||{},this.displayMode=V.deflt(f.displayMode,!1),this.output=V.deflt(f.output,"htmlAndMathml"),this.leqno=V.deflt(f.leqno,!1),this.fleqn=V.deflt(f.fleqn,!1),this.throwOnError=V.deflt(f.throwOnError,!0),this.errorColor=V.deflt(f.errorColor,"#cc0000"),this.macros=f.macros||{},this.minRuleThickness=Math.max(0,V.deflt(f.minRuleThickness,0)),this.colorIsTextColor=V.deflt(f.colorIsTextColor,!1),this.strict=V.deflt(f.strict,"warn"),this.trust=V.deflt(f.trust,!1),this.maxSize=Math.max(0,V.deflt(f.maxSize,1/0)),this.maxExpand=Math.max(0,V.deflt(f.maxExpand,1e3))}var c=U.prototype;return c.reportNonstrict=function(h,b,B){var q=this.strict;if(typeof q=="function"&&(q=q(h,b,B)),!(!q||q==="ignore")){if(q===!0||q==="error")throw new g("LaTeX-incompatible input and strict mode is set to 'error': "+(b+" ["+h+"]"),B);q==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(b+" ["+h+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+q+"': "+b+" ["+h+"]"))}},c.useStrictBehavior=function(h,b,B){var q=this.strict;if(typeof q=="function")try{q=q(h,b,B)}catch(Me){q="error"}return!q||q==="ignore"?!1:q===!0||q==="error"?!0:q==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(b+" ["+h+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+q+"': "+b+" ["+h+"]")),!1)},c.isTrusted=function(h){h.url&&!h.protocol&&(h.protocol=V.protocolFromUrl(h.url));var b=typeof this.trust=="function"?this.trust(h):this.trust;return!!b},U}(),Q=function(){function U(f,h,b){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=f,this.size=h,this.cramped=b}var c=U.prototype;return c.sup=function(){return We[oe[this.id]]},c.sub=function(){return We[k[this.id]]},c.fracNum=function(){return We[_[this.id]]},c.fracDen=function(){return We[ee[this.id]]},c.cramp=function(){return We[ne[this.id]]},c.text=function(){return We[se[this.id]]},c.isTight=function(){return this.size>=2},U}(),O=0,I=1,ue=2,Se=3,me=4,Ke=5,Je=6,ke=7,We=[new Q(O,0,!1),new Q(I,0,!0),new Q(ue,1,!1),new Q(Se,1,!0),new Q(me,2,!1),new Q(Ke,2,!0),new Q(Je,3,!1),new Q(ke,3,!0)],oe=[me,Ke,me,Ke,Je,ke,Je,ke],k=[Ke,Ke,Ke,Ke,ke,ke,ke,ke],_=[ue,Se,me,Ke,Je,ke,Je,ke],ee=[Se,Se,Ke,Ke,ke,ke,ke,ke],ne=[I,I,Se,Se,Ke,Ke,ke,ke],se=[O,I,ue,Se,ue,Se,ue,Se],w={DISPLAY:We[O],TEXT:We[ue],SCRIPT:We[me],SCRIPTSCRIPT:We[Je]},D=[{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 ce(U){for(var c=0;c<D.length;c++)for(var f=D[c],h=0;h<f.blocks.length;h++){var b=f.blocks[h];if(U>=b[0]&&U<=b[1])return f.name}return null}var Oe=[];D.forEach(function(U){return U.blocks.forEach(function(c){return Oe.push.apply(Oe,c)})});function ct(U){for(var c=0;c<Oe.length;c+=2)if(U>=Oe[c]&&U<=Oe[c+1])return!0;return!1}var Tt=80,Ae=function(c,f){return"M95,"+(622+c+f)+`
|
|
|
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`+c/2.075+" -"+c+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+c)+`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+c)+" "+f+"h400000v"+(40+c)+"h-400000z"},qe=function(c,f){return"M263,"+(601+c+f)+`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`+c/2.084+" -"+c+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+c)+`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+c)+" "+f+"h400000v"+(40+c)+"h-400000z"},ht=function(c,f){return"M983 "+(10+c+f)+`
|
|
|
l`+c/3.13+" -"+c+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+c)+`
|
|
|
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+c)+" "+f+"h400000v"+(40+c)+"h-400000z"},tt=function(c,f){return"M424,"+(2398+c+f)+`
|
|
|
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`+c/4.223+" -"+c+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+c)+`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+c)+" "+f+`
|
|
|
h400000v`+(40+c)+"h-400000z"},Fe=function(c,f){return"M473,"+(2713+c+f)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+c/5.298+" -"+c+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+c)+`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+c)+" "+f+"h400000v"+(40+c)+"H1017.7z"},jt=function(c,f,h){var b=h-54-f-c;return"M702 "+(c+f)+"H400000"+(40+c)+`
|
|
|
H742v`+b+`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 `+f+"H400000v"+(40+c)+"H742z"},bt=function(c,f,h){f=1e3*f;var b="";switch(c){case"sqrtMain":b=Ae(f,Tt);break;case"sqrtSize1":b=qe(f,Tt);break;case"sqrtSize2":b=ht(f,Tt);break;case"sqrtSize3":b=tt(f,Tt);break;case"sqrtSize4":b=Fe(f,Tt);break;case"sqrtTall":b=jt(f,Tt,h)}return b},cn={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`},vt=function(){function U(f){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=f,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var c=U.prototype;return c.hasClass=function(h){return V.contains(this.classes,h)},c.toNode=function(){for(var h=document.createDocumentFragment(),b=0;b<this.children.length;b++)h.appendChild(this.children[b].toNode());return h},c.toMarkup=function(){for(var h="",b=0;b<this.children.length;b++)h+=this.children[b].toMarkup();return h},c.toText=function(){var h=function(B){return B.toText()};return this.children.map(h).join("")},U}(),pt=function(c){return c.filter(function(f){return f}).join(" ")},Qe=function(c,f,h){if(this.classes=c||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=h||{},f){f.style.isTight()&&this.classes.push("mtight");var b=f.getColor();b&&(this.style.color=b)}},Ne=function(c){var f=document.createElement(c);f.className=pt(this.classes);for(var h in this.style)this.style.hasOwnProperty(h)&&(f.style[h]=this.style[h]);for(var b in this.attributes)this.attributes.hasOwnProperty(b)&&f.setAttribute(b,this.attributes[b]);for(var B=0;B<this.children.length;B++)f.appendChild(this.children[B].toNode());return f},le=function(c){var f="<"+c;this.classes.length&&(f+=' class="'+V.escape(pt(this.classes))+'"');var h="";for(var b in this.style)this.style.hasOwnProperty(b)&&(h+=V.hyphenate(b)+":"+this.style[b]+";");h&&(f+=' style="'+V.escape(h)+'"');for(var B in this.attributes)this.attributes.hasOwnProperty(B)&&(f+=" "+B+'="'+V.escape(this.attributes[B])+'"');f+=">";for(var q=0;q<this.children.length;q++)f+=this.children[q].toMarkup();return f+="</"+c+">",f},Pe=function(){function U(f,h,b,B){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,Qe.call(this,f,b,B),this.children=h||[]}var c=U.prototype;return c.setAttribute=function(h,b){this.attributes[h]=b},c.hasClass=function(h){return V.contains(this.classes,h)},c.toNode=function(){return Ne.call(this,"span")},c.toMarkup=function(){return le.call(this,"span")},U}(),Ge=function(){function U(f,h,b,B){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,Qe.call(this,h,B),this.children=b||[],this.setAttribute("href",f)}var c=U.prototype;return c.setAttribute=function(h,b){this.attributes[h]=b},c.hasClass=function(h){return V.contains(this.classes,h)},c.toNode=function(){return Ne.call(this,"a")},c.toMarkup=function(){return le.call(this,"a")},U}(),j=function(){function U(f,h,b){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=f,this.classes=["mord"],this.style=b}var c=U.prototype;return c.hasClass=function(h){return V.contains(this.classes,h)},c.toNode=function(){var h=document.createElement("img");h.src=this.src,h.alt=this.alt,h.className="mord";for(var b in this.style)this.style.hasOwnProperty(b)&&(h.style[b]=this.style[b]);return h},c.toMarkup=function(){var h="<img src='"+this.src+" 'alt='"+this.alt+"' ",b="";for(var B in this.style)this.style.hasOwnProperty(B)&&(b+=V.hyphenate(B)+":"+this.style[B]+";");return b&&(h+=' style="'+V.escape(b)+'"'),h+="'/>",h},U}(),P={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},_e=function(){function U(f,h,b,B,q,Me,et,yt){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=f,this.height=h||0,this.depth=b||0,this.italic=B||0,this.skew=q||0,this.width=Me||0,this.classes=et||[],this.style=yt||{},this.maxFontSize=0;var Xt=ce(this.text.charCodeAt(0));Xt&&this.classes.push(Xt+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=P[this.text])}var c=U.prototype;return c.hasClass=function(h){return V.contains(this.classes,h)},c.toNode=function(){var h=document.createTextNode(this.text),b=null;this.italic>0&&(b=document.createElement("span"),b.style.marginRight=this.italic+"em"),this.classes.length>0&&(b=b||document.createElement("span"),b.className=pt(this.classes));for(var B in this.style)this.style.hasOwnProperty(B)&&(b=b||document.createElement("span"),b.style[B]=this.style[B]);return b?(b.appendChild(h),b):h},c.toMarkup=function(){var h=!1,b="<span";this.classes.length&&(h=!0,b+=' class="',b+=V.escape(pt(this.classes)),b+='"');var B="";this.italic>0&&(B+="margin-right:"+this.italic+"em;");for(var q in this.style)this.style.hasOwnProperty(q)&&(B+=V.hyphenate(q)+":"+this.style[q]+";");B&&(h=!0,b+=' style="'+V.escape(B)+'"');var Me=V.escape(this.text);return h?(b+=">",b+=Me,b+="</span>",b):Me},U}(),Ie=function(){function U(f,h){this.children=void 0,this.attributes=void 0,this.children=f||[],this.attributes=h||{}}var c=U.prototype;return c.toNode=function(){var h="http://www.w3.org/2000/svg",b=document.createElementNS(h,"svg");for(var B in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,B)&&b.setAttribute(B,this.attributes[B]);for(var q=0;q<this.children.length;q++)b.appendChild(this.children[q].toNode());return b},c.toMarkup=function(){var h="<svg";for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&(h+=" "+b+"='"+this.attributes[b]+"'");h+=">";for(var B=0;B<this.children.length;B++)h+=this.children[B].toMarkup();return h+="</svg>",h},U}(),Te=function(){function U(f,h){this.pathName=void 0,this.alternate=void 0,this.pathName=f,this.alternate=h}var c=U.prototype;return c.toNode=function(){var h="http://www.w3.org/2000/svg",b=document.createElementNS(h,"path");return this.alternate?b.setAttribute("d",this.alternate):b.setAttribute("d",cn[this.pathName]),b},c.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+cn[this.pathName]+"'/>"},U}(),ze=function(){function U(f){this.attributes=void 0,this.attributes=f||{}}var c=U.prototype;return c.toNode=function(){var h="http://www.w3.org/2000/svg",b=document.createElementNS(h,"line");for(var B in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,B)&&b.setAttribute(B,this.attributes[B]);return b},c.toMarkup=function(){var h="<line";for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&(h+=" "+b+"='"+this.attributes[b]+"'");return h+="/>",h},U}();function Ue(U){if(U instanceof _e)return U;throw new Error("Expected symbolNode but got "+String(U)+".")}function ft(U){if(U instanceof Pe)return U;throw new Error("Expected span<HtmlDomNode> but got "+String(U)+".")}var de={"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]}},xe={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]},Ot={\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 _t(U,c){de[U]=c}function Pt(U,c,f){if(!de[c])throw new Error("Font metrics not found for font: "+c+".");var h=U.charCodeAt(0),b=de[c][h];if(!b&&U[0]in Ot&&(h=Ot[U[0]].charCodeAt(0),b=de[c][h]),!b&&f==="text"&&ct(h)&&(b=de[c][77]),b)return{depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]}}var kt={};function mt(U){var c;if(U>=5?c=0:U>=3?c=1:c=2,!kt[c]){var f=kt[c]={cssEmPerMu:xe.quad[c]/18};for(var h in xe)xe.hasOwnProperty(h)&&(f[h]=xe[h][c])}return kt[c]}var Vt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Nt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},De={math:{},text:{}},gt=De;function E(U,c,f,h,b,B){De[U][b]={font:c,group:f,replace:h},B&&h&&(De[U][h]=De[U][b])}var S="math",je="text",G="main",Ce="ams",en="accent-token",rt="bin",st="close",xt="inner",pe="mathord",Ee="op-token",nt="open",Ze="punct",z="rel",St="spacing",fe="textord";E(S,G,z,"\u2261","\\equiv",!0),E(S,G,z,"\u227A","\\prec",!0),E(S,G,z,"\u227B","\\succ",!0),E(S,G,z,"\u223C","\\sim",!0),E(S,G,z,"\u22A5","\\perp"),E(S,G,z,"\u2AAF","\\preceq",!0),E(S,G,z,"\u2AB0","\\succeq",!0),E(S,G,z,"\u2243","\\simeq",!0),E(S,G,z,"\u2223","\\mid",!0),E(S,G,z,"\u226A","\\ll",!0),E(S,G,z,"\u226B","\\gg",!0),E(S,G,z,"\u224D","\\asymp",!0),E(S,G,z,"\u2225","\\parallel"),E(S,G,z,"\u22C8","\\bowtie",!0),E(S,G,z,"\u2323","\\smile",!0),E(S,G,z,"\u2291","\\sqsubseteq",!0),E(S,G,z,"\u2292","\\sqsupseteq",!0),E(S,G,z,"\u2250","\\doteq",!0),E(S,G,z,"\u2322","\\frown",!0),E(S,G,z,"\u220B","\\ni",!0),E(S,G,z,"\u221D","\\propto",!0),E(S,G,z,"\u22A2","\\vdash",!0),E(S,G,z,"\u22A3","\\dashv",!0),E(S,G,z,"\u220B","\\owns"),E(S,G,Ze,".","\\ldotp"),E(S,G,Ze,"\u22C5","\\cdotp"),E(S,G,fe,"#","\\#"),E(je,G,fe,"#","\\#"),E(S,G,fe,"&","\\&"),E(je,G,fe,"&","\\&"),E(S,G,fe,"\u2135","\\aleph",!0),E(S,G,fe,"\u2200","\\forall",!0),E(S,G,fe,"\u210F","\\hbar",!0),E(S,G,fe,"\u2203","\\exists",!0),E(S,G,fe,"\u2207","\\nabla",!0),E(S,G,fe,"\u266D","\\flat",!0),E(S,G,fe,"\u2113","\\ell",!0),E(S,G,fe,"\u266E","\\natural",!0),E(S,G,fe,"\u2663","\\clubsuit",!0),E(S,G,fe,"\u2118","\\wp",!0),E(S,G,fe,"\u266F","\\sharp",!0),E(S,G,fe,"\u2662","\\diamondsuit",!0),E(S,G,fe,"\u211C","\\Re",!0),E(S,G,fe,"\u2661","\\heartsuit",!0),E(S,G,fe,"\u2111","\\Im",!0),E(S,G,fe,"\u2660","\\spadesuit",!0),E(je,G,fe,"\xA7","\\S",!0),E(je,G,fe,"\xB6","\\P",!0),E(S,G,fe,"\u2020","\\dag"),E(je,G,fe,"\u2020","\\dag"),E(je,G,fe,"\u2020","\\textdagger"),E(S,G,fe,"\u2021","\\ddag"),E(je,G,fe,"\u2021","\\ddag"),E(je,G,fe,"\u2021","\\textdaggerdbl"),E(S,G,st,"\u23B1","\\rmoustache",!0),E(S,G,nt,"\u23B0","\\lmoustache",!0),E(S,G,st,"\u27EF","\\rgroup",!0),E(S,G,nt,"\u27EE","\\lgroup",!0),E(S,G,rt,"\u2213","\\mp",!0),E(S,G,rt,"\u2296","\\ominus",!0),E(S,G,rt,"\u228E","\\uplus",!0),E(S,G,rt,"\u2293","\\sqcap",!0),E(S,G,rt,"\u2217","\\ast"),E(S,G,rt,"\u2294","\\sqcup",!0),E(S,G,rt,"\u25EF","\\bigcirc"),E(S,G,rt,"\u2219","\\bullet"),E(S,G,rt,"\u2021","\\ddagger"),E(S,G,rt,"\u2240","\\wr",!0),E(S,G,rt,"\u2A3F","\\amalg"),E(S,G,rt,"&","\\And"),E(S,G,z,"\u27F5","\\longleftarrow",!0),E(S,G,z,"\u21D0","\\Leftarrow",!0),E(S,G,z,"\u27F8","\\Longleftarrow",!0),E(S,G,z,"\u27F6","\\longrightarrow",!0),E(S,G,z,"\u21D2","\\Rightarrow",!0),E(S,G,z,"\u27F9","\\Longrightarrow",!0),E(S,G,z,"\u2194","\\leftrightarrow",!0),E(S,G,z,"\u27F7","\\longleftrightarrow",!0),E(S,G,z,"\u21D4","\\Leftrightarrow",!0),E(S,G,z,"\u27FA","\\Longleftrightarrow",!0),E(S,G,z,"\u21A6","\\mapsto",!0),E(S,G,z,"\u27FC","\\longmapsto",!0),E(S,G,z,"\u2197","\\nearrow",!0),E(S,G,z,"\u21A9","\\hookleftarrow",!0),E(S,G,z,"\u21AA","\\hookrightarrow",!0),E(S,G,z,"\u2198","\\searrow",!0),E(S,G,z,"\u21BC","\\leftharpoonup",!0),E(S,G,z,"\u21C0","\\rightharpoonup",!0),E(S,G,z,"\u2199","\\swarrow",!0),E(S,G,z,"\u21BD","\\leftharpoondown",!0),E(S,G,z,"\u21C1","\\rightharpoondown",!0),E(S,G,z,"\u2196","\\nwarrow",!0),E(S,G,z,"\u21CC","\\rightleftharpoons",!0),E(S,Ce,z,"\u226E","\\nless",!0),E(S,Ce,z,"\uE010","\\@nleqslant"),E(S,Ce,z,"\uE011","\\@nleqq"),E(S,Ce,z,"\u2A87","\\lneq",!0),E(S,Ce,z,"\u2268","\\lneqq",!0),E(S,Ce,z,"\uE00C","\\@lvertneqq"),E(S,Ce,z,"\u22E6","\\lnsim",!0),E(S,Ce,z,"\u2A89","\\lnapprox",!0),E(S,Ce,z,"\u2280","\\nprec",!0),E(S,Ce,z,"\u22E0","\\npreceq",!0),E(S,Ce,z,"\u22E8","\\precnsim",!0),E(S,Ce,z,"\u2AB9","\\precnapprox",!0),E(S,Ce,z,"\u2241","\\nsim",!0),E(S,Ce,z,"\uE006","\\@nshortmid"),E(S,Ce,z,"\u2224","\\nmid",!0),E(S,Ce,z,"\u22AC","\\nvdash",!0),E(S,Ce,z,"\u22AD","\\nvDash",!0),E(S,Ce,z,"\u22EA","\\ntriangleleft"),E(S,Ce,z,"\u22EC","\\ntrianglelefteq",!0),E(S,Ce,z,"\u228A","\\subsetneq",!0),E(S,Ce,z,"\uE01A","\\@varsubsetneq"),E(S,Ce,z,"\u2ACB","\\subsetneqq",!0),E(S,Ce,z,"\uE017","\\@varsubsetneqq"),E(S,Ce,z,"\u226F","\\ngtr",!0),E(S,Ce,z,"\uE00F","\\@ngeqslant"),E(S,Ce,z,"\uE00E","\\@ngeqq"),E(S,Ce,z,"\u2A88","\\gneq",!0),E(S,Ce,z,"\u2269","\\gneqq",!0),E(S,Ce,z,"\uE00D","\\@gvertneqq"),E(S,Ce,z,"\u22E7","\\gnsim",!0),E(S,Ce,z,"\u2A8A","\\gnapprox",!0),E(S,Ce,z,"\u2281","\\nsucc",!0),E(S,Ce,z,"\u22E1","\\nsucceq",!0),E(S,Ce,z,"\u22E9","\\succnsim",!0),E(S,Ce,z,"\u2ABA","\\succnapprox",!0),E(S,Ce,z,"\u2246","\\ncong",!0),E(S,Ce,z,"\uE007","\\@nshortparallel"),E(S,Ce,z,"\u2226","\\nparallel",!0),E(S,Ce,z,"\u22AF","\\nVDash",!0),E(S,Ce,z,"\u22EB","\\ntriangleright"),E(S,Ce,z,"\u22ED","\\ntrianglerighteq",!0),E(S,Ce,z,"\uE018","\\@nsupseteqq"),E(S,Ce,z,"\u228B","\\supsetneq",!0),E(S,Ce,z,"\uE01B","\\@varsupsetneq"),E(S,Ce,z,"\u2ACC","\\supsetneqq",!0),E(S,Ce,z,"\uE019","\\@varsupsetneqq"),E(S,Ce,z,"\u22AE","\\nVdash",!0),E(S,Ce,z,"\u2AB5","\\precneqq",!0),E(S,Ce,z,"\u2AB6","\\succneqq",!0),E(S,Ce,z,"\uE016","\\@nsubseteqq"),E(S,Ce,rt,"\u22B4","\\unlhd"),E(S,Ce,rt,"\u22B5","\\unrhd"),E(S,Ce,z,"\u219A","\\nleftarrow",!0),E(S,Ce,z,"\u219B","\\nrightarrow",!0),E(S,Ce,z,"\u21CD","\\nLeftarrow",!0),E(S,Ce,z,"\u21CF","\\nRightarrow",!0),E(S,Ce,z,"\u21AE","\\nleftrightarrow",!0),E(S,Ce,z,"\u21CE","\\nLeftrightarrow",!0),E(S,Ce,z,"\u25B3","\\vartriangle"),E(S,Ce,fe,"\u210F","\\hslash"),E(S,Ce,fe,"\u25BD","\\triangledown"),E(S,Ce,fe,"\u25CA","\\lozenge"),E(S,Ce,fe,"\u24C8","\\circledS"),E(S,Ce,fe,"\xAE","\\circledR"),E(je,Ce,fe,"\xAE","\\circledR"),E(S,Ce,fe,"\u2221","\\measuredangle",!0),E(S,Ce,fe,"\u2204","\\nexists"),E(S,Ce,fe,"\u2127","\\mho"),E(S,Ce,fe,"\u2132","\\Finv",!0),E(S,Ce,fe,"\u2141","\\Game",!0),E(S,Ce,fe,"\u2035","\\backprime"),E(S,Ce,fe,"\u25B2","\\blacktriangle"),E(S,Ce,fe,"\u25BC","\\blacktriangledown"),E(S,Ce,fe,"\u25A0","\\blacksquare"),E(S,Ce,fe,"\u29EB","\\blacklozenge"),E(S,Ce,fe,"\u2605","\\bigstar"),E(S,Ce,fe,"\u2222","\\sphericalangle",!0),E(S,Ce,fe,"\u2201","\\complement",!0),E(S,Ce,fe,"\xF0","\\eth",!0),E(S,Ce,fe,"\u2571","\\diagup"),E(S,Ce,fe,"\u2572","\\diagdown"),E(S,Ce,fe,"\u25A1","\\square"),E(S,Ce,fe,"\u25A1","\\Box"),E(S,Ce,fe,"\u25CA","\\Diamond"),E(S,Ce,fe,"\xA5","\\yen",!0),E(je,Ce,fe,"\xA5","\\yen",!0),E(S,Ce,fe,"\u2713","\\checkmark",!0),E(je,Ce,fe,"\u2713","\\checkmark"),E(S,Ce,fe,"\u2136","\\beth",!0),E(S,Ce,fe,"\u2138","\\daleth",!0),E(S,Ce,fe,"\u2137","\\gimel",!0),E(S,Ce,fe,"\u03DD","\\digamma",!0),E(S,Ce,fe,"\u03F0","\\varkappa"),E(S,Ce,nt,"\u250C","\\ulcorner",!0),E(S,Ce,st,"\u2510","\\urcorner",!0),E(S,Ce,nt,"\u2514","\\llcorner",!0),E(S,Ce,st,"\u2518","\\lrcorner",!0),E(S,Ce,z,"\u2266","\\leqq",!0),E(S,Ce,z,"\u2A7D","\\leqslant",!0),E(S,Ce,z,"\u2A95","\\eqslantless",!0),E(S,Ce,z,"\u2272","\\lesssim",!0),E(S,Ce,z,"\u2A85","\\lessapprox",!0),E(S,Ce,z,"\u224A","\\approxeq",!0),E(S,Ce,rt,"\u22D6","\\lessdot"),E(S,Ce,z,"\u22D8","\\lll",!0),E(S,Ce,z,"\u2276","\\lessgtr",!0),E(S,Ce,z,"\u22DA","\\lesseqgtr",!0),E(S,Ce,z,"\u2A8B","\\lesseqqgtr",!0),E(S,Ce,z,"\u2251","\\doteqdot"),E(S,Ce,z,"\u2253","\\risingdotseq",!0),E(S,Ce,z,"\u2252","\\fallingdotseq",!0),E(S,Ce,z,"\u223D","\\backsim",!0),E(S,Ce,z,"\u22CD","\\backsimeq",!0),E(S,Ce,z,"\u2AC5","\\subseteqq",!0),E(S,Ce,z,"\u22D0","\\Subset",!0),E(S,Ce,z,"\u228F","\\sqsubset",!0),E(S,Ce,z,"\u227C","\\preccurlyeq",!0),E(S,Ce,z,"\u22DE","\\curlyeqprec",!0),E(S,Ce,z,"\u227E","\\precsim",!0),E(S,Ce,z,"\u2AB7","\\precapprox",!0),E(S,Ce,z,"\u22B2","\\vartriangleleft"),E(S,Ce,z,"\u22B4","\\trianglelefteq"),E(S,Ce,z,"\u22A8","\\vDash",!0),E(S,Ce,z,"\u22AA","\\Vvdash",!0),E(S,Ce,z,"\u2323","\\smallsmile"),E(S,Ce,z,"\u2322","\\smallfrown"),E(S,Ce,z,"\u224F","\\bumpeq",!0),E(S,Ce,z,"\u224E","\\Bumpeq",!0),E(S,Ce,z,"\u2267","\\geqq",!0),E(S,Ce,z,"\u2A7E","\\geqslant",!0),E(S,Ce,z,"\u2A96","\\eqslantgtr",!0),E(S,Ce,z,"\u2273","\\gtrsim",!0),E(S,Ce,z,"\u2A86","\\gtrapprox",!0),E(S,Ce,rt,"\u22D7","\\gtrdot"),E(S,Ce,z,"\u22D9","\\ggg",!0),E(S,Ce,z,"\u2277","\\gtrless",!0),E(S,Ce,z,"\u22DB","\\gtreqless",!0),E(S,Ce,z,"\u2A8C","\\gtreqqless",!0),E(S,Ce,z,"\u2256","\\eqcirc",!0),E(S,Ce,z,"\u2257","\\circeq",!0),E(S,Ce,z,"\u225C","\\triangleq",!0),E(S,Ce,z,"\u223C","\\thicksim"),E(S,Ce,z,"\u2248","\\thickapprox"),E(S,Ce,z,"\u2AC6","\\supseteqq",!0),E(S,Ce,z,"\u22D1","\\Supset",!0),E(S,Ce,z,"\u2290","\\sqsupset",!0),E(S,Ce,z,"\u227D","\\succcurlyeq",!0),E(S,Ce,z,"\u22DF","\\curlyeqsucc",!0),E(S,Ce,z,"\u227F","\\succsim",!0),E(S,Ce,z,"\u2AB8","\\succapprox",!0),E(S,Ce,z,"\u22B3","\\vartriangleright"),E(S,Ce,z,"\u22B5","\\trianglerighteq"),E(S,Ce,z,"\u22A9","\\Vdash",!0),E(S,Ce,z,"\u2223","\\shortmid"),E(S,Ce,z,"\u2225","\\shortparallel"),E(S,Ce,z,"\u226C","\\between",!0),E(S,Ce,z,"\u22D4","\\pitchfork",!0),E(S,Ce,z,"\u221D","\\varpropto"),E(S,Ce,z,"\u25C0","\\blacktriangleleft"),E(S,Ce,z,"\u2234","\\therefore",!0),E(S,Ce,z,"\u220D","\\backepsilon"),E(S,Ce,z,"\u25B6","\\blacktriangleright"),E(S,Ce,z,"\u2235","\\because",!0),E(S,Ce,z,"\u22D8","\\llless"),E(S,Ce,z,"\u22D9","\\gggtr"),E(S,Ce,rt,"\u22B2","\\lhd"),E(S,Ce,rt,"\u22B3","\\rhd"),E(S,Ce,z,"\u2242","\\eqsim",!0),E(S,G,z,"\u22C8","\\Join"),E(S,Ce,z,"\u2251","\\Doteq",!0),E(S,Ce,rt,"\u2214","\\dotplus",!0),E(S,Ce,rt,"\u2216","\\smallsetminus"),E(S,Ce,rt,"\u22D2","\\Cap",!0),E(S,Ce,rt,"\u22D3","\\Cup",!0),E(S,Ce,rt,"\u2A5E","\\doublebarwedge",!0),E(S,Ce,rt,"\u229F","\\boxminus",!0),E(S,Ce,rt,"\u229E","\\boxplus",!0),E(S,Ce,rt,"\u22C7","\\divideontimes",!0),E(S,Ce,rt,"\u22C9","\\ltimes",!0),E(S,Ce,rt,"\u22CA","\\rtimes",!0),E(S,Ce,rt,"\u22CB","\\leftthreetimes",!0),E(S,Ce,rt,"\u22CC","\\rightthreetimes",!0),E(S,Ce,rt,"\u22CF","\\curlywedge",!0),E(S,Ce,rt,"\u22CE","\\curlyvee",!0),E(S,Ce,rt,"\u229D","\\circleddash",!0),E(S,Ce,rt,"\u229B","\\circledast",!0),E(S,Ce,rt,"\u22C5","\\centerdot"),E(S,Ce,rt,"\u22BA","\\intercal",!0),E(S,Ce,rt,"\u22D2","\\doublecap"),E(S,Ce,rt,"\u22D3","\\doublecup"),E(S,Ce,rt,"\u22A0","\\boxtimes",!0),E(S,Ce,z,"\u21E2","\\dashrightarrow",!0),E(S,Ce,z,"\u21E0","\\dashleftarrow",!0),E(S,Ce,z,"\u21C7","\\leftleftarrows",!0),E(S,Ce,z,"\u21C6","\\leftrightarrows",!0),E(S,Ce,z,"\u21DA","\\Lleftarrow",!0),E(S,Ce,z,"\u219E","\\twoheadleftarrow",!0),E(S,Ce,z,"\u21A2","\\leftarrowtail",!0),E(S,Ce,z,"\u21AB","\\looparrowleft",!0),E(S,Ce,z,"\u21CB","\\leftrightharpoons",!0),E(S,Ce,z,"\u21B6","\\curvearrowleft",!0),E(S,Ce,z,"\u21BA","\\circlearrowleft",!0),E(S,Ce,z,"\u21B0","\\Lsh",!0),E(S,Ce,z,"\u21C8","\\upuparrows",!0),E(S,Ce,z,"\u21BF","\\upharpoonleft",!0),E(S,Ce,z,"\u21C3","\\downharpoonleft",!0),E(S,Ce,z,"\u22B8","\\multimap",!0),E(S,Ce,z,"\u21AD","\\leftrightsquigarrow",!0),E(S,Ce,z,"\u21C9","\\rightrightarrows",!0),E(S,Ce,z,"\u21C4","\\rightleftarrows",!0),E(S,Ce,z,"\u21A0","\\twoheadrightarrow",!0),E(S,Ce,z,"\u21A3","\\rightarrowtail",!0),E(S,Ce,z,"\u21AC","\\looparrowright",!0),E(S,Ce,z,"\u21B7","\\curvearrowright",!0),E(S,Ce,z,"\u21BB","\\circlearrowright",!0),E(S,Ce,z,"\u21B1","\\Rsh",!0),E(S,Ce,z,"\u21CA","\\downdownarrows",!0),E(S,Ce,z,"\u21BE","\\upharpoonright",!0),E(S,Ce,z,"\u21C2","\\downharpoonright",!0),E(S,Ce,z,"\u21DD","\\rightsquigarrow",!0),E(S,Ce,z,"\u21DD","\\leadsto"),E(S,Ce,z,"\u21DB","\\Rrightarrow",!0),E(S,Ce,z,"\u21BE","\\restriction"),E(S,G,fe,"\u2018","`"),E(S,G,fe,"$","\\$"),E(je,G,fe,"$","\\$"),E(je,G,fe,"$","\\textdollar"),E(S,G,fe,"%","\\%"),E(je,G,fe,"%","\\%"),E(S,G,fe,"_","\\_"),E(je,G,fe,"_","\\_"),E(je,G,fe,"_","\\textunderscore"),E(S,G,fe,"\u2220","\\angle",!0),E(S,G,fe,"\u221E","\\infty",!0),E(S,G,fe,"\u2032","\\prime"),E(S,G,fe,"\u25B3","\\triangle"),E(S,G,fe,"\u0393","\\Gamma",!0),E(S,G,fe,"\u0394","\\Delta",!0),E(S,G,fe,"\u0398","\\Theta",!0),E(S,G,fe,"\u039B","\\Lambda",!0),E(S,G,fe,"\u039E","\\Xi",!0),E(S,G,fe,"\u03A0","\\Pi",!0),E(S,G,fe,"\u03A3","\\Sigma",!0),E(S,G,fe,"\u03A5","\\Upsilon",!0),E(S,G,fe,"\u03A6","\\Phi",!0),E(S,G,fe,"\u03A8","\\Psi",!0),E(S,G,fe,"\u03A9","\\Omega",!0),E(S,G,fe,"A","\u0391"),E(S,G,fe,"B","\u0392"),E(S,G,fe,"E","\u0395"),E(S,G,fe,"Z","\u0396"),E(S,G,fe,"H","\u0397"),E(S,G,fe,"I","\u0399"),E(S,G,fe,"K","\u039A"),E(S,G,fe,"M","\u039C"),E(S,G,fe,"N","\u039D"),E(S,G,fe,"O","\u039F"),E(S,G,fe,"P","\u03A1"),E(S,G,fe,"T","\u03A4"),E(S,G,fe,"X","\u03A7"),E(S,G,fe,"\xAC","\\neg",!0),E(S,G,fe,"\xAC","\\lnot"),E(S,G,fe,"\u22A4","\\top"),E(S,G,fe,"\u22A5","\\bot"),E(S,G,fe,"\u2205","\\emptyset"),E(S,Ce,fe,"\u2205","\\varnothing"),E(S,G,pe,"\u03B1","\\alpha",!0),E(S,G,pe,"\u03B2","\\beta",!0),E(S,G,pe,"\u03B3","\\gamma",!0),E(S,G,pe,"\u03B4","\\delta",!0),E(S,G,pe,"\u03F5","\\epsilon",!0),E(S,G,pe,"\u03B6","\\zeta",!0),E(S,G,pe,"\u03B7","\\eta",!0),E(S,G,pe,"\u03B8","\\theta",!0),E(S,G,pe,"\u03B9","\\iota",!0),E(S,G,pe,"\u03BA","\\kappa",!0),E(S,G,pe,"\u03BB","\\lambda",!0),E(S,G,pe,"\u03BC","\\mu",!0),E(S,G,pe,"\u03BD","\\nu",!0),E(S,G,pe,"\u03BE","\\xi",!0),E(S,G,pe,"\u03BF","\\omicron",!0),E(S,G,pe,"\u03C0","\\pi",!0),E(S,G,pe,"\u03C1","\\rho",!0),E(S,G,pe,"\u03C3","\\sigma",!0),E(S,G,pe,"\u03C4","\\tau",!0),E(S,G,pe,"\u03C5","\\upsilon",!0),E(S,G,pe,"\u03D5","\\phi",!0),E(S,G,pe,"\u03C7","\\chi",!0),E(S,G,pe,"\u03C8","\\psi",!0),E(S,G,pe,"\u03C9","\\omega",!0),E(S,G,pe,"\u03B5","\\varepsilon",!0),E(S,G,pe,"\u03D1","\\vartheta",!0),E(S,G,pe,"\u03D6","\\varpi",!0),E(S,G,pe,"\u03F1","\\varrho",!0),E(S,G,pe,"\u03C2","\\varsigma",!0),E(S,G,pe,"\u03C6","\\varphi",!0),E(S,G,rt,"\u2217","*"),E(S,G,rt,"+","+"),E(S,G,rt,"\u2212","-"),E(S,G,rt,"\u22C5","\\cdot",!0),E(S,G,rt,"\u2218","\\circ"),E(S,G,rt,"\xF7","\\div",!0),E(S,G,rt,"\xB1","\\pm",!0),E(S,G,rt,"\xD7","\\times",!0),E(S,G,rt,"\u2229","\\cap",!0),E(S,G,rt,"\u222A","\\cup",!0),E(S,G,rt,"\u2216","\\setminus"),E(S,G,rt,"\u2227","\\land"),E(S,G,rt,"\u2228","\\lor"),E(S,G,rt,"\u2227","\\wedge",!0),E(S,G,rt,"\u2228","\\vee",!0),E(S,G,fe,"\u221A","\\surd"),E(S,G,nt,"(","("),E(S,G,nt,"[","["),E(S,G,nt,"\u27E8","\\langle",!0),E(S,G,nt,"\u2223","\\lvert"),E(S,G,nt,"\u2225","\\lVert"),E(S,G,st,")",")"),E(S,G,st,"]","]"),E(S,G,st,"?","?"),E(S,G,st,"!","!"),E(S,G,st,"\u27E9","\\rangle",!0),E(S,G,st,"\u2223","\\rvert"),E(S,G,st,"\u2225","\\rVert"),E(S,G,z,"=","="),E(S,G,z,"<","<"),E(S,G,z,">",">"),E(S,G,z,":",":"),E(S,G,z,"\u2248","\\approx",!0),E(S,G,z,"\u2245","\\cong",!0),E(S,G,z,"\u2265","\\ge"),E(S,G,z,"\u2265","\\geq",!0),E(S,G,z,"\u2190","\\gets"),E(S,G,z,">","\\gt"),E(S,G,z,"\u2208","\\in",!0),E(S,G,z,"\uE020","\\@not"),E(S,G,z,"\u2282","\\subset",!0),E(S,G,z,"\u2283","\\supset",!0),E(S,G,z,"\u2286","\\subseteq",!0),E(S,G,z,"\u2287","\\supseteq",!0),E(S,Ce,z,"\u2288","\\nsubseteq",!0),E(S,Ce,z,"\u2289","\\nsupseteq",!0),E(S,G,z,"\u22A8","\\models"),E(S,G,z,"\u2190","\\leftarrow",!0),E(S,G,z,"\u2264","\\le"),E(S,G,z,"\u2264","\\leq",!0),E(S,G,z,"<","\\lt"),E(S,G,z,"\u2192","\\rightarrow",!0),E(S,G,z,"\u2192","\\to"),E(S,Ce,z,"\u2271","\\ngeq",!0),E(S,Ce,z,"\u2270","\\nleq",!0),E(S,G,St,"\xA0","\\ "),E(S,G,St,"\xA0","~"),E(S,G,St,"\xA0","\\space"),E(S,G,St,"\xA0","\\nobreakspace"),E(je,G,St,"\xA0","\\ "),E(je,G,St,"\xA0","~"),E(je,G,St,"\xA0","\\space"),E(je,G,St,"\xA0","\\nobreakspace"),E(S,G,St,null,"\\nobreak"),E(S,G,St,null,"\\allowbreak"),E(S,G,Ze,",",","),E(S,G,Ze,";",";"),E(S,Ce,rt,"\u22BC","\\barwedge",!0),E(S,Ce,rt,"\u22BB","\\veebar",!0),E(S,G,rt,"\u2299","\\odot",!0),E(S,G,rt,"\u2295","\\oplus",!0),E(S,G,rt,"\u2297","\\otimes",!0),E(S,G,fe,"\u2202","\\partial",!0),E(S,G,rt,"\u2298","\\oslash",!0),E(S,Ce,rt,"\u229A","\\circledcirc",!0),E(S,Ce,rt,"\u22A1","\\boxdot",!0),E(S,G,rt,"\u25B3","\\bigtriangleup"),E(S,G,rt,"\u25BD","\\bigtriangledown"),E(S,G,rt,"\u2020","\\dagger"),E(S,G,rt,"\u22C4","\\diamond"),E(S,G,rt,"\u22C6","\\star"),E(S,G,rt,"\u25C3","\\triangleleft"),E(S,G,rt,"\u25B9","\\triangleright"),E(S,G,nt,"{","\\{"),E(je,G,fe,"{","\\{"),E(je,G,fe,"{","\\textbraceleft"),E(S,G,st,"}","\\}"),E(je,G,fe,"}","\\}"),E(je,G,fe,"}","\\textbraceright"),E(S,G,nt,"{","\\lbrace"),E(S,G,st,"}","\\rbrace"),E(S,G,nt,"[","\\lbrack"),E(je,G,fe,"[","\\lbrack"),E(S,G,st,"]","\\rbrack"),E(je,G,fe,"]","\\rbrack"),E(S,G,nt,"(","\\lparen"),E(S,G,st,")","\\rparen"),E(je,G,fe,"<","\\textless"),E(je,G,fe,">","\\textgreater"),E(S,G,nt,"\u230A","\\lfloor",!0),E(S,G,st,"\u230B","\\rfloor",!0),E(S,G,nt,"\u2308","\\lceil",!0),E(S,G,st,"\u2309","\\rceil",!0),E(S,G,fe,"\\","\\backslash"),E(S,G,fe,"\u2223","|"),E(S,G,fe,"\u2223","\\vert"),E(je,G,fe,"|","\\textbar"),E(S,G,fe,"\u2225","\\|"),E(S,G,fe,"\u2225","\\Vert"),E(je,G,fe,"\u2225","\\textbardbl"),E(je,G,fe,"~","\\textasciitilde"),E(je,G,fe,"\\","\\textbackslash"),E(je,G,fe,"^","\\textasciicircum"),E(S,G,z,"\u2191","\\uparrow",!0),E(S,G,z,"\u21D1","\\Uparrow",!0),E(S,G,z,"\u2193","\\downarrow",!0),E(S,G,z,"\u21D3","\\Downarrow",!0),E(S,G,z,"\u2195","\\updownarrow",!0),E(S,G,z,"\u21D5","\\Updownarrow",!0),E(S,G,Ee,"\u2210","\\coprod"),E(S,G,Ee,"\u22C1","\\bigvee"),E(S,G,Ee,"\u22C0","\\bigwedge"),E(S,G,Ee,"\u2A04","\\biguplus"),E(S,G,Ee,"\u22C2","\\bigcap"),E(S,G,Ee,"\u22C3","\\bigcup"),E(S,G,Ee,"\u222B","\\int"),E(S,G,Ee,"\u222B","\\intop"),E(S,G,Ee,"\u222C","\\iint"),E(S,G,Ee,"\u222D","\\iiint"),E(S,G,Ee,"\u220F","\\prod"),E(S,G,Ee,"\u2211","\\sum"),E(S,G,Ee,"\u2A02","\\bigotimes"),E(S,G,Ee,"\u2A01","\\bigoplus"),E(S,G,Ee,"\u2A00","\\bigodot"),E(S,G,Ee,"\u222E","\\oint"),E(S,G,Ee,"\u222F","\\oiint"),E(S,G,Ee,"\u2230","\\oiiint"),E(S,G,Ee,"\u2A06","\\bigsqcup"),E(S,G,Ee,"\u222B","\\smallint"),E(je,G,xt,"\u2026","\\textellipsis"),E(S,G,xt,"\u2026","\\mathellipsis"),E(je,G,xt,"\u2026","\\ldots",!0),E(S,G,xt,"\u2026","\\ldots",!0),E(S,G,xt,"\u22EF","\\@cdots",!0),E(S,G,xt,"\u22F1","\\ddots",!0),E(S,G,fe,"\u22EE","\\varvdots"),E(S,G,en,"\u02CA","\\acute"),E(S,G,en,"\u02CB","\\grave"),E(S,G,en,"\xA8","\\ddot"),E(S,G,en,"~","\\tilde"),E(S,G,en,"\u02C9","\\bar"),E(S,G,en,"\u02D8","\\breve"),E(S,G,en,"\u02C7","\\check"),E(S,G,en,"^","\\hat"),E(S,G,en,"\u20D7","\\vec"),E(S,G,en,"\u02D9","\\dot"),E(S,G,en,"\u02DA","\\mathring"),E(S,G,pe,"\u0131","\\imath",!0),E(S,G,pe,"\u0237","\\jmath",!0),E(je,G,fe,"\u0131","\\i",!0),E(je,G,fe,"\u0237","\\j",!0),E(je,G,fe,"\xDF","\\ss",!0),E(je,G,fe,"\xE6","\\ae",!0),E(je,G,fe,"\xE6","\\ae",!0),E(je,G,fe,"\u0153","\\oe",!0),E(je,G,fe,"\xF8","\\o",!0),E(je,G,fe,"\xC6","\\AE",!0),E(je,G,fe,"\u0152","\\OE",!0),E(je,G,fe,"\xD8","\\O",!0),E(je,G,en,"\u02CA","\\'"),E(je,G,en,"\u02CB","\\`"),E(je,G,en,"\u02C6","\\^"),E(je,G,en,"\u02DC","\\~"),E(je,G,en,"\u02C9","\\="),E(je,G,en,"\u02D8","\\u"),E(je,G,en,"\u02D9","\\."),E(je,G,en,"\u02DA","\\r"),E(je,G,en,"\u02C7","\\v"),E(je,G,en,"\xA8",'\\"'),E(je,G,en,"\u02DD","\\H"),E(je,G,en,"\u25EF","\\textcircled");var Kt={"--":!0,"---":!0,"``":!0,"''":!0};E(je,G,fe,"\u2013","--"),E(je,G,fe,"\u2013","\\textendash"),E(je,G,fe,"\u2014","---"),E(je,G,fe,"\u2014","\\textemdash"),E(je,G,fe,"\u2018","`"),E(je,G,fe,"\u2018","\\textquoteleft"),E(je,G,fe,"\u2019","'"),E(je,G,fe,"\u2019","\\textquoteright"),E(je,G,fe,"\u201C","``"),E(je,G,fe,"\u201C","\\textquotedblleft"),E(je,G,fe,"\u201D","''"),E(je,G,fe,"\u201D","\\textquotedblright"),E(S,G,fe,"\xB0","\\degree",!0),E(je,G,fe,"\xB0","\\degree"),E(je,G,fe,"\xB0","\\textdegree",!0),E(S,G,pe,"\xA3","\\pounds"),E(S,G,pe,"\xA3","\\mathsterling",!0),E(je,G,pe,"\xA3","\\pounds"),E(je,G,pe,"\xA3","\\textsterling",!0),E(S,Ce,fe,"\u2720","\\maltese"),E(je,Ce,fe,"\u2720","\\maltese"),E(je,G,St,"\xA0","\\ "),E(je,G,St,"\xA0"," "),E(je,G,St,"\xA0","~");for(var dn='0123456789/@."',Bt=0;Bt<dn.length;Bt++){var J=dn.charAt(Bt);E(S,G,fe,J,J)}for(var we='0123456789!@*()-=+[]<>|";:?/.,',M=0;M<we.length;M++){var Ct=we.charAt(M);E(je,G,fe,Ct,Ct)}for(var ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",dt=0;dt<ot.length;dt++){var $t=ot.charAt(dt);E(S,G,pe,$t,$t),E(je,G,fe,$t,$t)}E(S,Ce,fe,"C","\u2102"),E(je,Ce,fe,"C","\u2102"),E(S,Ce,fe,"H","\u210D"),E(je,Ce,fe,"H","\u210D"),E(S,Ce,fe,"N","\u2115"),E(je,Ce,fe,"N","\u2115"),E(S,Ce,fe,"P","\u2119"),E(je,Ce,fe,"P","\u2119"),E(S,Ce,fe,"Q","\u211A"),E(je,Ce,fe,"Q","\u211A"),E(S,Ce,fe,"R","\u211D"),E(je,Ce,fe,"R","\u211D"),E(S,Ce,fe,"Z","\u2124"),E(je,Ce,fe,"Z","\u2124"),E(S,G,pe,"h","\u210E"),E(je,G,pe,"h","\u210E");for(var Ft="",Mt=0;Mt<ot.length;Mt++){var ie=ot.charAt(Mt);Ft=String.fromCharCode(55349,56320+Mt),E(S,G,pe,ie,Ft),E(je,G,fe,ie,Ft),Ft=String.fromCharCode(55349,56372+Mt),E(S,G,pe,ie,Ft),E(je,G,fe,ie,Ft),Ft=String.fromCharCode(55349,56424+Mt),E(S,G,pe,ie,Ft),E(je,G,fe,ie,Ft),Ft=String.fromCharCode(55349,56580+Mt),E(S,G,pe,ie,Ft),E(je,G,fe,ie,Ft),Ft=String.fromCharCode(55349,56736+Mt),E(S,G,pe,ie,Ft),E(je,G,fe,ie,Ft),Ft=String.fromCharCode(55349,56788+Mt),E(S,G,pe,ie,Ft),E(je,G,fe,ie,Ft),Ft=String.fromCharCode(55349,56840+Mt),E(S,G,pe,ie,Ft),E(je,G,fe,ie,Ft),Ft=String.fromCharCode(55349,56944+Mt),E(S,G,pe,ie,Ft),E(je,G,fe,ie,Ft),Mt<26&&(Ft=String.fromCharCode(55349,56632+Mt),E(S,G,pe,ie,Ft),E(je,G,fe,ie,Ft),Ft=String.fromCharCode(55349,56476+Mt),E(S,G,pe,ie,Ft),E(je,G,fe,ie,Ft))}Ft="\u{1D55C}",E(S,G,pe,"k",Ft),E(je,G,fe,"k",Ft);for(var ve=0;ve<10;ve++){var At=ve.toString();Ft=String.fromCharCode(55349,57294+ve),E(S,G,pe,At,Ft),E(je,G,fe,At,Ft),Ft=String.fromCharCode(55349,57314+ve),E(S,G,pe,At,Ft),E(je,G,fe,At,Ft),Ft=String.fromCharCode(55349,57324+ve),E(S,G,pe,At,Ft),E(je,G,fe,At,Ft),Ft=String.fromCharCode(55349,57334+ve),E(S,G,pe,At,Ft),E(je,G,fe,At,Ft)}for(var Be="\xC7\xD0\xDE\xE7\xFE",Le=0;Le<Be.length;Le++){var ae=Be.charAt(Le);E(S,G,pe,ae,ae),E(je,G,fe,ae,ae)}E(je,G,fe,"\xF0","\xF0"),E(je,G,fe,"\u2013","\u2013"),E(je,G,fe,"\u2014","\u2014"),E(je,G,fe,"\u2018","\u2018"),E(je,G,fe,"\u2019","\u2019"),E(je,G,fe,"\u201C","\u201C"),E(je,G,fe,"\u201D","\u201D");var Re=[["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"]],$e=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],He=function(c,f){var h=c.charCodeAt(0),b=c.charCodeAt(1),B=(h-55296)*1024+(b-56320)+65536,q=f==="math"?0:1;if(119808<=B&&B<120484){var Me=Math.floor((B-119808)/26);return[Re[Me][2],Re[Me][q]]}else if(120782<=B&&B<=120831){var et=Math.floor((B-120782)/10);return[$e[et][2],$e[et][q]]}else{if(B===120485||B===120486)return[Re[0][2],Re[0][q]];if(120486<B&&B<120782)return["",""];throw new g("Unsupported character: "+c)}},ut=[[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]],rn=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],on=function(c,f){return f.size<2?c:ut[c-1][f.size-1]},Ve=function(){function U(f){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=f.style,this.color=f.color,this.size=f.size||U.BASESIZE,this.textSize=f.textSize||this.size,this.phantom=!!f.phantom,this.font=f.font||"",this.fontFamily=f.fontFamily||"",this.fontWeight=f.fontWeight||"",this.fontShape=f.fontShape||"",this.sizeMultiplier=rn[this.size-1],this.maxSize=f.maxSize,this.minRuleThickness=f.minRuleThickness,this._fontMetrics=void 0}var c=U.prototype;return c.extend=function(h){var b={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 B in h)h.hasOwnProperty(B)&&(b[B]=h[B]);return new U(b)},c.havingStyle=function(h){return this.style===h?this:this.extend({style:h,size:on(this.textSize,h)})},c.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},c.havingSize=function(h){return this.size===h&&this.textSize===h?this:this.extend({style:this.style.text(),size:h,textSize:h,sizeMultiplier:rn[h-1]})},c.havingBaseStyle=function(h){h=h||this.style.text();var b=on(U.BASESIZE,h);return this.size===b&&this.textSize===U.BASESIZE&&this.style===h?this:this.extend({style:h,size:b})},c.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})},c.withColor=function(h){return this.extend({color:h})},c.withPhantom=function(){return this.extend({phantom:!0})},c.withFont=function(h){return this.extend({font:h})},c.withTextFontFamily=function(h){return this.extend({fontFamily:h,font:""})},c.withTextFontWeight=function(h){return this.extend({fontWeight:h,font:""})},c.withTextFontShape=function(h){return this.extend({fontShape:h,font:""})},c.sizingClasses=function(h){return h.size!==this.size?["sizing","reset-size"+h.size,"size"+this.size]:[]},c.baseSizingClasses=function(){return this.size!==U.BASESIZE?["sizing","reset-size"+this.size,"size"+U.BASESIZE]:[]},c.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=mt(this.size)),this._fontMetrics},c.getColor=function(){return this.phantom?"transparent":this.color},U}();Ve.BASESIZE=6;var lt=Ve,wt={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},Qt={ex:!0,em:!0,mu:!0},Yt=function(c){return typeof c!="string"&&(c=c.unit),c in wt||c in Qt||c==="ex"},ye=function(c,f){var h;if(c.unit in wt)h=wt[c.unit]/f.fontMetrics().ptPerEm/f.sizeMultiplier;else if(c.unit==="mu")h=f.fontMetrics().cssEmPerMu;else{var b;if(f.style.isTight()?b=f.havingStyle(f.style.text()):b=f,c.unit==="ex")h=b.fontMetrics().xHeight;else if(c.unit==="em")h=b.fontMetrics().quad;else throw new g("Invalid unit: '"+c.unit+"'");b!==f&&(h*=b.sizeMultiplier/f.sizeMultiplier)}return Math.min(c.number*h,f.maxSize)},at=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Lt=function(c,f,h){return gt[h][c]&>[h][c].replace&&(c=gt[h][c].replace),{value:c,metrics:Pt(c,f,h)}},Dt=function(c,f,h,b,B){var q=Lt(c,f,h),Me=q.metrics;c=q.value;var et;if(Me){var yt=Me.italic;(h==="text"||b&&b.font==="mathit")&&(yt=0),et=new _e(c,Me.height,Me.depth,yt,Me.skew,Me.width,B)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+c+"' in style '"+f+"' and mode '"+h+"'")),et=new _e(c,0,0,0,0,0,B);if(b){et.maxFontSize=b.sizeMultiplier,b.style.isTight()&&et.classes.push("mtight");var Xt=b.getColor();Xt&&(et.style.color=Xt)}return et},zt=function(c,f,h,b){return b===void 0&&(b=[]),h.font==="boldsymbol"&&Lt(c,"Main-Bold",f).metrics?Dt(c,"Main-Bold",f,h,b.concat(["mathbf"])):c==="\\"||gt[f][c].font==="main"?Dt(c,"Main-Regular",f,h,b):Dt(c,"AMS-Regular",f,h,b.concat(["amsrm"]))},an=function(c,f,h,b){return/[0-9]/.test(c.charAt(0))||V.contains(at,c)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},un=function(c,f,h,b){return V.contains(at,c)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(c.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},sn=function(c,f,h,b){return Lt(c,"Math-BoldItalic",f).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},vn=function(c,f,h){var b=c.mode,B=c.text,q=["mord"],Me=b==="math"||b==="text"&&f.font,et=Me?f.font:f.fontFamily;if(B.charCodeAt(0)===55349){var yt=He(B,b),Xt=yt[0],fn=yt[1];return Dt(B,Xt,b,f,q.concat(fn))}else if(et){var Sn,kn;if(et==="boldsymbol"||et==="mathnormal"){var Kn=et==="boldsymbol"?sn(B,b,f,q):un(B,b,f,q);Sn=Kn.fontName,kn=[Kn.fontClass]}else V.contains(at,B)?(Sn="Main-Italic",kn=["mathit"]):Me?(Sn=tn[et].fontName,kn=[et]):(Sn=qt(et,f.fontWeight,f.fontShape),kn=[et,f.fontWeight,f.fontShape]);if(Lt(B,Sn,b).metrics)return Dt(B,Sn,b,f,q.concat(kn));if(Kt.hasOwnProperty(B)&&Sn.substr(0,10)==="Typewriter"){for(var jn=[],ar=0;ar<B.length;ar++)jn.push(Dt(B[ar],Sn,b,f,q.concat(kn)));return In(jn)}}if(h==="mathord"){var qn=an(B,b,f,q);return Dt(B,qn.fontName,b,f,q.concat([qn.fontClass]))}else if(h==="textord"){var rr=gt[b][B]&>[b][B].font;if(rr==="ams"){var dr=qt("amsrm",f.fontWeight,f.fontShape);return Dt(B,dr,b,f,q.concat("amsrm",f.fontWeight,f.fontShape))}else if(rr==="main"||!rr){var Tr=qt("textrm",f.fontWeight,f.fontShape);return Dt(B,Tr,b,f,q.concat(f.fontWeight,f.fontShape))}else{var Or=qt(rr,f.fontWeight,f.fontShape);return Dt(B,Or,b,f,q.concat(Or,f.fontWeight,f.fontShape))}}else throw new Error("unexpected type: "+h+" in makeOrd")},En=function(c,f){if(pt(c.classes)!==pt(f.classes)||c.skew!==f.skew||c.maxFontSize!==f.maxFontSize)return!1;for(var h in c.style)if(c.style.hasOwnProperty(h)&&c.style[h]!==f.style[h])return!1;for(var b in f.style)if(f.style.hasOwnProperty(b)&&c.style[b]!==f.style[b])return!1;return!0},Rn=function(c){for(var f=0;f<c.length-1;f++){var h=c[f],b=c[f+1];h instanceof _e&&b instanceof _e&&En(h,b)&&(h.text+=b.text,h.height=Math.max(h.height,b.height),h.depth=Math.max(h.depth,b.depth),h.italic=b.italic,c.splice(f+1,1),f--)}return c},bn=function(c){for(var f=0,h=0,b=0,B=0;B<c.children.length;B++){var q=c.children[B];q.height>f&&(f=q.height),q.depth>h&&(h=q.depth),q.maxFontSize>b&&(b=q.maxFontSize)}c.height=f,c.depth=h,c.maxFontSize=b},Cn=function(c,f,h,b){var B=new Pe(c,f,h,b);return bn(B),B},Bn=function(c,f,h,b){return new Pe(c,f,h,b)},Pn=function(c,f,h){var b=Cn([c],[],f);return b.height=Math.max(h||f.fontMetrics().defaultRuleThickness,f.minRuleThickness),b.style.borderBottomWidth=b.height+"em",b.maxFontSize=1,b},ir=function(c,f,h,b){var B=new Ge(c,f,h,b);return bn(B),B},In=function(c){var f=new vt(c);return bn(f),f},zn=function(c,f){return c instanceof vt?Cn([],[c],f):c},Yn=function(c){if(c.positionType==="individualShift"){for(var f=c.children,h=[f[0]],b=-f[0].shift-f[0].elem.depth,B=b,q=1;q<f.length;q++){var Me=-f[q].shift-B-f[q].elem.depth,et=Me-(f[q-1].elem.height+f[q-1].elem.depth);B=B+Me,h.push({type:"kern",size:et}),h.push(f[q])}return{children:h,depth:b}}var yt;if(c.positionType==="top"){for(var Xt=c.positionData,fn=0;fn<c.children.length;fn++){var Sn=c.children[fn];Xt-=Sn.type==="kern"?Sn.size:Sn.elem.height+Sn.elem.depth}yt=Xt}else if(c.positionType==="bottom")yt=-c.positionData;else{var kn=c.children[0];if(kn.type!=="elem")throw new Error('First child must have type "elem".');if(c.positionType==="shift")yt=-kn.elem.depth-c.positionData;else if(c.positionType==="firstBaseline")yt=-kn.elem.depth;else throw new Error("Invalid positionType "+c.positionType+".")}return{children:c.children,depth:yt}},tr=function(c,f){for(var h=Yn(c),b=h.children,B=h.depth,q=0,Me=0;Me<b.length;Me++){var et=b[Me];if(et.type==="elem"){var yt=et.elem;q=Math.max(q,yt.maxFontSize,yt.height)}}q+=2;var Xt=Cn(["pstrut"],[]);Xt.style.height=q+"em";for(var fn=[],Sn=B,kn=B,Kn=B,jn=0;jn<b.length;jn++){var ar=b[jn];if(ar.type==="kern")Kn+=ar.size;else{var qn=ar.elem,rr=ar.wrapperClasses||[],dr=ar.wrapperStyle||{},Tr=Cn(rr,[Xt,qn],void 0,dr);Tr.style.top=-q-Kn-qn.depth+"em",ar.marginLeft&&(Tr.style.marginLeft=ar.marginLeft),ar.marginRight&&(Tr.style.marginRight=ar.marginRight),fn.push(Tr),Kn+=qn.height+qn.depth}Sn=Math.min(Sn,Kn),kn=Math.max(kn,Kn)}var Or=Cn(["vlist"],fn);Or.style.height=kn+"em";var hr;if(Sn<0){var Gr=Cn([],[]),qr=Cn(["vlist"],[Gr]);qr.style.height=-Sn+"em";var Ri=Cn(["vlist-s"],[new _e("\u200B")]);hr=[Cn(["vlist-r"],[Or,Ri]),Cn(["vlist-r"],[qr])]}else hr=[Cn(["vlist-r"],[Or])];var bi=Cn(["vlist-t"],hr);return hr.length===2&&bi.classes.push("vlist-t2"),bi.height=kn,bi.depth=-Sn,bi},Jn=function(c,f){var h=Cn(["mspace"],[],f),b=ye(c,f);return h.style.marginRight=b+"em",h},qt=function(c,f,h){var b="";switch(c){case"amsrm":b="AMS";break;case"textrm":b="Main";break;case"textsf":b="SansSerif";break;case"texttt":b="Typewriter";break;default:b=c}var B;return f==="textbf"&&h==="textit"?B="BoldItalic":f==="textbf"?B="Bold":f==="textit"?B="Italic":B="Regular",b+"-"+B},tn={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"}},yn={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Zn=function(c,f){var h=yn[c],b=h[0],B=h[1],q=h[2],Me=new Te(b),et=new Ie([Me],{width:B+"em",height:q+"em",style:"width:"+B+"em",viewBox:"0 0 "+1e3*B+" "+1e3*q,preserveAspectRatio:"xMinYMin"}),yt=Bn(["overlay"],[et],f);return yt.height=q,yt.style.height=q+"em",yt.style.width=B+"em",yt},Ht={fontMap:tn,makeSymbol:Dt,mathsym:zt,makeSpan:Cn,makeSvgSpan:Bn,makeLineSpan:Pn,makeAnchor:ir,makeFragment:In,wrapFragment:zn,makeVList:tr,makeOrd:vn,makeGlue:Jn,staticSvg:Zn,svgData:yn,tryCombineChars:Rn};function Un(U,c){var f=er(U,c);if(!f)throw new Error("Expected node of type "+c+", but got "+(U?"node of type "+U.type:String(U)));return f}function er(U,c){return U&&U.type===c?U:null}function lr(U,c){var f=_r(U,c);if(!f)throw new Error('Expected node of type "atom" and family "'+c+'", but got '+(U?U.type==="atom"?"atom of family "+U.family:"node of type "+U.type:String(U)));return f}function _r(U,c){return U&&U.type==="atom"&&U.family===c?U:null}function Ar(U){var c=Sr(U);if(!c)throw new Error("Expected node of symbol group type, but got "+(U?"node of type "+U.type:String(U)));return c}function Sr(U){return U&&(U.type==="atom"||Nt.hasOwnProperty(U.type))?U:null}var Vn={number:3,unit:"mu"},An={number:4,unit:"mu"},pn={number:5,unit:"mu"},Tn={mord:{mop:Vn,mbin:An,mrel:pn,minner:Vn},mop:{mord:Vn,mop:Vn,mrel:pn,minner:Vn},mbin:{mord:An,mop:An,mopen:An,minner:An},mrel:{mord:pn,mop:pn,mopen:pn,minner:pn},mopen:{},mclose:{mop:Vn,mbin:An,mrel:pn,minner:Vn},mpunct:{mord:Vn,mop:Vn,mrel:pn,mopen:Vn,mclose:Vn,mpunct:Vn,minner:Vn},minner:{mord:Vn,mop:Vn,mbin:An,mrel:pn,mopen:Vn,mpunct:Vn,minner:Vn}},Xn={mord:{mop:Vn},mop:{mord:Vn,mop:Vn},mbin:{},mrel:{},mopen:{},mclose:{mop:Vn},mpunct:{},minner:{mop:Vn}},nr={},gr={},Er={};function Fn(U){for(var c=U.type,f=U.names,h=U.props,b=U.handler,B=U.htmlBuilder,q=U.mathmlBuilder,Me={type:c,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:b},et=0;et<f.length;++et)nr[f[et]]=Me;c&&(B&&(gr[c]=B),q&&(Er[c]=q))}function yr(U){var c=U.type,f=U.htmlBuilder,h=U.mathmlBuilder;Fn({type:c,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:f,mathmlBuilder:h})}var Ir=function(c){var f=er(c,"ordgroup");return f?f.body:[c]},Zr=Ht.makeSpan,Nr=["leftmost","mbin","mopen","mrel","mop","mpunct"],Lr=["rightmost","mrel","mclose","mpunct"],Cr={display:w.DISPLAY,text:w.TEXT,script:w.SCRIPT,scriptscript:w.SCRIPTSCRIPT},Fr={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Jt=function(c,f,h,b){b===void 0&&(b=[null,null]);for(var B=[],q=0;q<c.length;q++){var Me=wr(c[q],f);if(Me instanceof vt){var et=Me.children;B.push.apply(B,et)}else B.push(Me)}if(!h)return B;var yt=f;if(c.length===1){var Xt=er(c[0],"sizing")||er(c[0],"styling");Xt&&(Xt.type==="sizing"?yt=f.havingSize(Xt.size):Xt.type==="styling"&&(yt=f.havingStyle(Cr[Xt.style])))}var fn=Zr([b[0]||"leftmost"],[],f),Sn=Zr([b[1]||"rightmost"],[],f);return On(B,function(kn,Kn){var jn=Kn.classes[0],ar=kn.classes[0];jn==="mbin"&&V.contains(Lr,ar)?Kn.classes[0]="mord":ar==="mbin"&&V.contains(Nr,jn)&&(kn.classes[0]="mord")},{node:fn},Sn),On(B,function(kn,Kn){var jn=xr(Kn),ar=xr(kn),qn=jn&&ar?kn.hasClass("mtight")?Xn[jn][ar]:Tn[jn][ar]:null;if(qn)return Ht.makeGlue(qn,yt)},{node:fn},Sn),B},On=function U(c,f,h,b){b&&c.push(b);for(var B=0;B<c.length;B++){var q=c[B],Me=Gn(q);if(Me){U(Me.children,f,h);continue}if(q.classes[0]!=="mspace"){var et=f(q,h.node);et&&(h.insertAfter?h.insertAfter(et):(c.unshift(et),B++)),h.node=q,h.insertAfter=function(yt){return function(Xt){c.splice(yt+1,0,Xt),B++}}(B)}}b&&c.pop()},Gn=function(c){return c instanceof vt||c instanceof Ge?c:null},ur=function U(c,f){var h=Gn(c);if(h){var b=h.children;if(b.length){if(f==="right")return U(b[b.length-1],"right");if(f==="left")return U(b[0],"left")}}return c},xr=function(c,f){return c?(f&&(c=ur(c,f)),Fr[c.classes[0]]||null):null},jr=function(c,f){var h=["nulldelimiter"].concat(c.baseSizingClasses());return Zr(f.concat(h))},wr=function(c,f,h){if(!c)return Zr();if(gr[c.type]){var b=gr[c.type](c,f);if(h&&f.size!==h.size){b=Zr(f.sizingClasses(h),[b],f);var B=f.sizeMultiplier/h.sizeMultiplier;b.height*=B,b.depth*=B}return b}else throw new g("Got group of unknown type: '"+c.type+"'")};function ni(U,c){var f=Zr(["base"],U,c),h=Zr(["strut"]);return h.style.height=f.height+f.depth+"em",h.style.verticalAlign=-f.depth+"em",f.children.unshift(h),f}function di(U,c){var f=null;U.length===1&&U[0].type==="tag"&&(f=U[0].tag,U=U[0].body);for(var h=Jt(U,c,!0),b=[],B=[],q=0;q<h.length;q++)if(B.push(h[q]),h[q].hasClass("mbin")||h[q].hasClass("mrel")||h[q].hasClass("allowbreak")){for(var Me=!1;q<h.length-1&&h[q+1].hasClass("mspace")&&!h[q+1].hasClass("newline");)q++,B.push(h[q]),h[q].hasClass("nobreak")&&(Me=!0);Me||(b.push(ni(B,c)),B=[])}else h[q].hasClass("newline")&&(B.pop(),B.length>0&&(b.push(ni(B,c)),B=[]),b.push(h[q]));B.length>0&&b.push(ni(B,c));var et;f&&(et=ni(Jt(f,c,!0)),et.classes=["tag"],b.push(et));var yt=Zr(["katex-html"],b);if(yt.setAttribute("aria-hidden","true"),et){var Xt=et.children[0];Xt.style.height=yt.height+yt.depth+"em",Xt.style.verticalAlign=-yt.depth+"em"}return yt}function Ei(U){return new vt(U)}var Dr=function(){function U(f,h){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=f,this.attributes={},this.children=h||[]}var c=U.prototype;return c.setAttribute=function(h,b){this.attributes[h]=b},c.getAttribute=function(h){return this.attributes[h]},c.toNode=function(){var h=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&h.setAttribute(b,this.attributes[b]);for(var B=0;B<this.children.length;B++)h.appendChild(this.children[B].toNode());return h},c.toMarkup=function(){var h="<"+this.type;for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&(h+=" "+b+'="',h+=V.escape(this.attributes[b]),h+='"');h+=">";for(var B=0;B<this.children.length;B++)h+=this.children[B].toMarkup();return h+="</"+this.type+">",h},c.toText=function(){return this.children.map(function(h){return h.toText()}).join("")},U}(),fr=function(){function U(f){this.text=void 0,this.text=f}var c=U.prototype;return c.toNode=function(){return document.createTextNode(this.text)},c.toMarkup=function(){return V.escape(this.toText())},c.toText=function(){return this.text},U}(),yi=function(){function U(f){this.width=void 0,this.character=void 0,this.width=f,f>=.05555&&f<=.05556?this.character="\u200A":f>=.1666&&f<=.1667?this.character="\u2009":f>=.2222&&f<=.2223?this.character="\u2005":f>=.2777&&f<=.2778?this.character="\u2005\u200A":f>=-.05556&&f<=-.05555?this.character="\u200A\u2063":f>=-.1667&&f<=-.1666?this.character="\u2009\u2063":f>=-.2223&&f<=-.2222?this.character="\u205F\u2063":f>=-.2778&&f<=-.2777?this.character="\u2005\u2063":this.character=null}var c=U.prototype;return c.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},c.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},c.toText=function(){return this.character?this.character:" "},U}(),sr={MathNode:Dr,TextNode:fr,SpaceNode:yi,newDocumentFragment:Ei},wi=function(c,f,h){return gt[f][c]&>[f][c].replace&&c.charCodeAt(0)!==55349&&!(Kt.hasOwnProperty(c)&&h&&(h.fontFamily&&h.fontFamily.substr(4,2)==="tt"||h.font&&h.font.substr(4,2)==="tt"))&&(c=gt[f][c].replace),new sr.TextNode(c)},Yi=function(c){return c.length===1?c[0]:new sr.MathNode("mrow",c)},Wi=function(c,f){if(f.fontFamily==="texttt")return"monospace";if(f.fontFamily==="textsf")return f.fontShape==="textit"&&f.fontWeight==="textbf"?"sans-serif-bold-italic":f.fontShape==="textit"?"sans-serif-italic":f.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(f.fontShape==="textit"&&f.fontWeight==="textbf")return"bold-italic";if(f.fontShape==="textit")return"italic";if(f.fontWeight==="textbf")return"bold";var h=f.font;if(!h||h==="mathnormal")return null;var b=c.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 B=c.text;if(V.contains(["\\imath","\\jmath"],B))return null;gt[b][B]&>[b][B].replace&&(B=gt[b][B].replace);var q=Ht.fontMap[h].fontName;return Pt(B,q,b)?Ht.fontMap[h].variant:null},Mi=function(c,f,h){if(c.length===1){var b=Vr(c[0],f);return h&&b instanceof Dr&&b.type==="mo"&&(b.setAttribute("lspace","0em"),b.setAttribute("rspace","0em")),[b]}for(var B=[],q,Me=0;Me<c.length;Me++){var et=Vr(c[Me],f);if(et instanceof Dr&&q instanceof Dr){if(et.type==="mtext"&&q.type==="mtext"&&et.getAttribute("mathvariant")===q.getAttribute("mathvariant")){var yt;(yt=q.children).push.apply(yt,et.children);continue}else if(et.type==="mn"&&q.type==="mn"){var Xt;(Xt=q.children).push.apply(Xt,et.children);continue}else if(et.type==="mi"&&et.children.length===1&&q.type==="mn"){var fn=et.children[0];if(fn instanceof fr&&fn.text==="."){var Sn;(Sn=q.children).push.apply(Sn,et.children);continue}}else if(q.type==="mi"&&q.children.length===1){var kn=q.children[0];if(kn instanceof fr&&kn.text==="\u0338"&&(et.type==="mo"||et.type==="mi"||et.type==="mn")){var Kn=et.children[0];Kn instanceof fr&&Kn.text.length>0&&(Kn.text=Kn.text.slice(0,1)+"\u0338"+Kn.text.slice(1),B.pop())}}}B.push(et),q=et}return B},Ni=function(c,f,h){return Yi(Mi(c,f,h))},Vr=function(c,f){if(!c)return new sr.MathNode("mrow");if(Er[c.type]){var h=Er[c.type](c,f);return h}else throw new g("Got group of unknown type: '"+c.type+"'")};function Di(U,c,f,h){var b=Mi(U,f),B;b.length===1&&b[0]instanceof Dr&&V.contains(["mrow","mtable"],b[0].type)?B=b[0]:B=new sr.MathNode("mrow",b);var q=new sr.MathNode("annotation",[new sr.TextNode(c)]);q.setAttribute("encoding","application/x-tex");var Me=new sr.MathNode("semantics",[B,q]),et=new sr.MathNode("math",[Me]);et.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var yt=h?"katex":"katex-mathml";return Ht.makeSpan([yt],[et])}var ra=function(c){return new lt({style:c.displayMode?w.DISPLAY:w.TEXT,maxSize:c.maxSize,minRuleThickness:c.minRuleThickness})},zi=function(c,f){if(f.displayMode){var h=["katex-display"];f.leqno&&h.push("leqno"),f.fleqn&&h.push("fleqn"),c=Ht.makeSpan(h,[c])}return c},hi=function(c,f,h){var b=ra(h),B;if(h.output==="mathml")return Di(c,f,b,!0);if(h.output==="html"){var q=di(c,b);B=Ht.makeSpan(["katex"],[q])}else{var Me=Di(c,f,b,!1),et=di(c,b);B=Ht.makeSpan(["katex"],[Me,et])}return zi(B,h)},ki=function(c,f,h){var b=ra(h),B=di(c,b),q=Ht.makeSpan(["katex"],[B]);return zi(q,h)},Zi=hi,Br={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"},ei=function(c){var f=new sr.MathNode("mo",[new sr.TextNode(Br[c.substr(1)])]);return f.setAttribute("stretchy","true"),f},pr={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]},vr=function(c){return c.type==="ordgroup"?c.body.length:1},Pr=function(c,f){function h(){var et=4e5,yt=c.label.substr(1);if(V.contains(["widehat","widecheck","widetilde","utilde"],yt)){var Xt=c,fn=vr(Xt.base),Sn,kn,Kn;if(fn>5)yt==="widehat"||yt==="widecheck"?(Sn=420,et=2364,Kn=.42,kn=yt+"4"):(Sn=312,et=2340,Kn=.34,kn="tilde4");else{var jn=[1,1,2,2,3,3][fn];yt==="widehat"||yt==="widecheck"?(et=[0,1062,2364,2364,2364][jn],Sn=[0,239,300,360,420][jn],Kn=[0,.24,.3,.3,.36,.42][jn],kn=yt+jn):(et=[0,600,1033,2339,2340][jn],Sn=[0,260,286,306,312][jn],Kn=[0,.26,.286,.3,.306,.34][jn],kn="tilde"+jn)}var ar=new Te(kn),qn=new Ie([ar],{width:"100%",height:Kn+"em",viewBox:"0 0 "+et+" "+Sn,preserveAspectRatio:"none"});return{span:Ht.makeSvgSpan([],[qn],f),minWidth:0,height:Kn}}else{var rr=[],dr=pr[yt],Tr=dr[0],Or=dr[1],hr=dr[2],Gr=hr/1e3,qr=Tr.length,Ri,bi;if(qr===1){var hn=dr[3];Ri=["hide-tail"],bi=[hn]}else if(qr===2)Ri=["halfarrow-left","halfarrow-right"],bi=["xMinYMin","xMaxYMin"];else if(qr===3)Ri=["brace-left","brace-center","brace-right"],bi=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+qr+" children.");for(var Li=0;Li<qr;Li++){var ya=new Te(Tr[Li]),vi=new Ie([ya],{width:"400em",height:Gr+"em",viewBox:"0 0 "+et+" "+hr,preserveAspectRatio:bi[Li]+" slice"}),li=Ht.makeSvgSpan([Ri[Li]],[vi],f);if(qr===1)return{span:li,minWidth:Or,height:Gr};li.style.height=Gr+"em",rr.push(li)}return{span:Ht.makeSpan(["stretchy"],rr,f),minWidth:Or,height:Gr}}}var b=h(),B=b.span,q=b.minWidth,Me=b.height;return B.height=Me,B.style.height=Me+"em",q>0&&(B.style.minWidth=q+"em"),B},Wr=function(c,f,h,b){var B,q=c.height+c.depth+2*h;if(/fbox|color/.test(f)){if(B=Ht.makeSpan(["stretchy",f],[],b),f==="fbox"){var Me=b.color&&b.getColor();Me&&(B.style.borderColor=Me)}}else{var et=[];/^[bx]cancel$/.test(f)&&et.push(new ze({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(f)&&et.push(new ze({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var yt=new Ie(et,{width:"100%",height:q+"em"});B=Ht.makeSvgSpan([],[yt],b)}return B.height=q,B.style.height=q+"em",B},Ci={encloseSpan:Wr,mathMLnode:ei,svgSpan:Pr},br=function(c,f){var h,b,B=er(c,"supsub"),q;B?(b=Un(B.base,"accent"),h=b.base,B.base=h,q=ft(wr(B,f)),B.base=b):(b=Un(c,"accent"),h=b.base);var Me=wr(h,f.havingCrampedStyle()),et=b.isShifty&&V.isCharacterBox(h),yt=0;if(et){var Xt=V.getBaseElem(h),fn=wr(Xt,f.havingCrampedStyle());yt=Ue(fn).skew}var Sn=Math.min(Me.height,f.fontMetrics().xHeight),kn;if(b.isStretchy)kn=Ci.svgSpan(b,f),kn=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Me},{type:"elem",elem:kn,wrapperClasses:["svg-align"],wrapperStyle:yt>0?{width:"calc(100% - "+2*yt+"em)",marginLeft:2*yt+"em"}:void 0}]},f);else{var Kn,jn;b.label==="\\vec"?(Kn=Ht.staticSvg("vec",f),jn=Ht.svgData.vec[1]):(Kn=Ht.makeOrd({mode:b.mode,text:b.label},f,"textord"),Kn=Ue(Kn),Kn.italic=0,jn=Kn.width),kn=Ht.makeSpan(["accent-body"],[Kn]);var ar=b.label==="\\textcircled";ar&&(kn.classes.push("accent-full"),Sn=Me.height);var qn=yt;ar||(qn-=jn/2),kn.style.left=qn+"em",b.label==="\\textcircled"&&(kn.style.top=".2em"),kn=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Me},{type:"kern",size:-Sn},{type:"elem",elem:kn}]},f)}var rr=Ht.makeSpan(["mord","accent"],[kn],f);return q?(q.children[0]=rr,q.height=Math.max(rr.height,q.height),q.classes[0]="mord",q):rr},Rr=function(c,f){var h=c.isStretchy?Ci.mathMLnode(c.label):new sr.MathNode("mo",[wi(c.label,c.mode)]),b=new sr.MathNode("mover",[Vr(c.base,f),h]);return b.setAttribute("accent","true"),b},Mr=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(U){return"\\"+U}).join("|"));Fn({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(c,f){var h=f[0],b=!Mr.test(c.funcName),B=!b||c.funcName==="\\widehat"||c.funcName==="\\widetilde"||c.funcName==="\\widecheck";return{type:"accent",mode:c.parser.mode,label:c.funcName,isStretchy:b,isShifty:B,base:h}},htmlBuilder:br,mathmlBuilder:Rr}),Fn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(c,f){var h=f[0];return{type:"accent",mode:c.parser.mode,label:c.funcName,isStretchy:!1,isShifty:!0,base:h}},htmlBuilder:br,mathmlBuilder:Rr}),Fn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(c,f){var h=c.parser,b=c.funcName,B=f[0];return{type:"accentUnder",mode:h.mode,label:b,base:B}},htmlBuilder:function(c,f){var h=wr(c.base,f),b=Ci.svgSpan(c,f),B=c.label==="\\utilde"?.12:0,q=Ht.makeVList({positionType:"bottom",positionData:b.height+B,children:[{type:"elem",elem:b,wrapperClasses:["svg-align"]},{type:"kern",size:B},{type:"elem",elem:h}]},f);return Ht.makeSpan(["mord","accentunder"],[q],f)},mathmlBuilder:function(c,f){var h=Ci.mathMLnode(c.label),b=new sr.MathNode("munder",[Vr(c.base,f),h]);return b.setAttribute("accentunder","true"),b}});var $r=function(c){var f=new sr.MathNode("mpadded",c?[c]:[]);return f.setAttribute("width","+0.6em"),f.setAttribute("lspace","0.3em"),f};Fn({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(c,f,h){var b=c.parser,B=c.funcName;return{type:"xArrow",mode:b.mode,label:B,body:f[0],below:h[0]}},htmlBuilder:function(c,f){var h=f.style,b=f.havingStyle(h.sup()),B=Ht.wrapFragment(wr(c.body,b,f),f);B.classes.push("x-arrow-pad");var q;c.below&&(b=f.havingStyle(h.sub()),q=Ht.wrapFragment(wr(c.below,b,f),f),q.classes.push("x-arrow-pad"));var Me=Ci.svgSpan(c,f),et=-f.fontMetrics().axisHeight+.5*Me.height,yt=-f.fontMetrics().axisHeight-.5*Me.height-.111;(B.depth>.25||c.label==="\\xleftequilibrium")&&(yt-=B.depth);var Xt;if(q){var fn=-f.fontMetrics().axisHeight+q.height+.5*Me.height+.111;Xt=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:B,shift:yt},{type:"elem",elem:Me,shift:et},{type:"elem",elem:q,shift:fn}]},f)}else Xt=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:B,shift:yt},{type:"elem",elem:Me,shift:et}]},f);return Xt.children[0].children[0].children[1].classes.push("svg-align"),Ht.makeSpan(["mrel","x-arrow"],[Xt],f)},mathmlBuilder:function(c,f){var h=Ci.mathMLnode(c.label),b;if(c.body){var B=$r(Vr(c.body,f));if(c.below){var q=$r(Vr(c.below,f));b=new sr.MathNode("munderover",[h,q,B])}else b=new sr.MathNode("mover",[h,B])}else if(c.below){var Me=$r(Vr(c.below,f));b=new sr.MathNode("munder",[h,Me])}else b=$r(),b=new sr.MathNode("mover",[h,b]);return b}}),Fn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(c,f){for(var h=c.parser,b=Un(f[0],"ordgroup"),B=b.body,q="",Me=0;Me<B.length;Me++){var et=Un(B[Me],"textord");q+=et.text}var yt=parseInt(q);if(isNaN(yt))throw new g("\\@char has non-numeric argument "+q);return{type:"textord",mode:h.mode,text:String.fromCharCode(yt)}}});var ti=function(c,f){var h=Jt(c.body,f.withColor(c.color),!1);return Ht.makeFragment(h)},ma=function(c,f){var h=Mi(c.body,f.withColor(c.color)),b=new sr.MathNode("mstyle",h);return b.setAttribute("mathcolor",c.color),b};Fn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(c,f){var h=c.parser,b=Un(f[0],"color-token").color,B=f[1];return{type:"color",mode:h.mode,color:b,body:Ir(B)}},htmlBuilder:ti,mathmlBuilder:ma}),Fn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(c,f){var h=c.parser,b=c.breakOnTokenText,B=Un(f[0],"color-token").color;h.gullet.macros.set("\\current@color",B);var q=h.parseExpression(!0,b);return{type:"color",mode:h.mode,color:B,body:q}},htmlBuilder:ti,mathmlBuilder:ma}),Fn({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(c,f,h){var b=c.parser,B=c.funcName,q=h[0],Me=B==="\\cr",et=!1;return Me||(b.settings.displayMode&&b.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?et=!1:et=!0),{type:"cr",mode:b.mode,newLine:et,newRow:Me,size:q&&Un(q,"size").value}},htmlBuilder:function(c,f){if(c.newRow)throw new g("\\cr valid only within a tabular/array environment");var h=Ht.makeSpan(["mspace"],[],f);return c.newLine&&(h.classes.push("newline"),c.size&&(h.style.marginTop=ye(c.size,f)+"em")),h},mathmlBuilder:function(c,f){var h=new sr.MathNode("mspace");return c.newLine&&(h.setAttribute("linebreak","newline"),c.size&&h.setAttribute("height",ye(c.size,f)+"em")),h}});var Xi=function(c,f,h){var b=gt.math[c]&>.math[c].replace,B=Pt(b||c,f,h);if(!B)throw new Error("Unsupported symbol "+c+" and font size "+f+".");return B},ua=function(c,f,h,b){var B=h.havingBaseStyle(f),q=Ht.makeSpan(b.concat(B.sizingClasses(h)),[c],h),Me=B.sizeMultiplier/h.sizeMultiplier;return q.height*=Me,q.depth*=Me,q.maxFontSize=B.sizeMultiplier,q},fi=function(c,f,h){var b=f.havingBaseStyle(h),B=(1-f.sizeMultiplier/b.sizeMultiplier)*f.fontMetrics().axisHeight;c.classes.push("delimcenter"),c.style.top=B+"em",c.height-=B,c.depth+=B},ri=function(c,f,h,b,B,q){var Me=Ht.makeSymbol(c,"Main-Regular",B,b),et=ua(Me,f,b,q);return h&&fi(et,b,f),et},Ti=function(c,f,h,b){return Ht.makeSymbol(c,"Size"+f+"-Regular",h,b)},Oi=function(c,f,h,b,B,q){var Me=Ti(c,f,B,b),et=ua(Ht.makeSpan(["delimsizing","size"+f],[Me],b),w.TEXT,b,q);return h&&fi(et,b,w.TEXT),et},ia=function(c,f,h){var b;f==="Size1-Regular"?b="delim-size1":b="delim-size4";var B=Ht.makeSpan(["delimsizinginner",b],[Ht.makeSpan([],[Ht.makeSymbol(c,f,h)])]);return{type:"elem",elem:B}},pa={type:"kern",size:-.005},Sa=function(c,f,h,b,B,q){var Me,et,yt,Xt;Me=yt=Xt=c,et=null;var fn="Size1-Regular";c==="\\uparrow"?yt=Xt="\u23D0":c==="\\Uparrow"?yt=Xt="\u2016":c==="\\downarrow"?Me=yt="\u23D0":c==="\\Downarrow"?Me=yt="\u2016":c==="\\updownarrow"?(Me="\\uparrow",yt="\u23D0",Xt="\\downarrow"):c==="\\Updownarrow"?(Me="\\Uparrow",yt="\u2016",Xt="\\Downarrow"):c==="["||c==="\\lbrack"?(Me="\u23A1",yt="\u23A2",Xt="\u23A3",fn="Size4-Regular"):c==="]"||c==="\\rbrack"?(Me="\u23A4",yt="\u23A5",Xt="\u23A6",fn="Size4-Regular"):c==="\\lfloor"||c==="\u230A"?(yt=Me="\u23A2",Xt="\u23A3",fn="Size4-Regular"):c==="\\lceil"||c==="\u2308"?(Me="\u23A1",yt=Xt="\u23A2",fn="Size4-Regular"):c==="\\rfloor"||c==="\u230B"?(yt=Me="\u23A5",Xt="\u23A6",fn="Size4-Regular"):c==="\\rceil"||c==="\u2309"?(Me="\u23A4",yt=Xt="\u23A5",fn="Size4-Regular"):c==="("||c==="\\lparen"?(Me="\u239B",yt="\u239C",Xt="\u239D",fn="Size4-Regular"):c===")"||c==="\\rparen"?(Me="\u239E",yt="\u239F",Xt="\u23A0",fn="Size4-Regular"):c==="\\{"||c==="\\lbrace"?(Me="\u23A7",et="\u23A8",Xt="\u23A9",yt="\u23AA",fn="Size4-Regular"):c==="\\}"||c==="\\rbrace"?(Me="\u23AB",et="\u23AC",Xt="\u23AD",yt="\u23AA",fn="Size4-Regular"):c==="\\lgroup"||c==="\u27EE"?(Me="\u23A7",Xt="\u23A9",yt="\u23AA",fn="Size4-Regular"):c==="\\rgroup"||c==="\u27EF"?(Me="\u23AB",Xt="\u23AD",yt="\u23AA",fn="Size4-Regular"):c==="\\lmoustache"||c==="\u23B0"?(Me="\u23A7",Xt="\u23AD",yt="\u23AA",fn="Size4-Regular"):(c==="\\rmoustache"||c==="\u23B1")&&(Me="\u23AB",Xt="\u23A9",yt="\u23AA",fn="Size4-Regular");var Sn=Xi(Me,fn,B),kn=Sn.height+Sn.depth,Kn=Xi(yt,fn,B),jn=Kn.height+Kn.depth,ar=Xi(Xt,fn,B),qn=ar.height+ar.depth,rr=0,dr=1;if(et!==null){var Tr=Xi(et,fn,B);rr=Tr.height+Tr.depth,dr=2}var Or=kn+qn+rr,hr=Math.max(0,Math.ceil((f-Or)/(dr*jn))),Gr=Or+hr*dr*jn,qr=b.fontMetrics().axisHeight;h&&(qr*=b.sizeMultiplier);var Ri=Gr/2-qr,bi=(hr+1)*.005-jn,hn=[];if(hn.push(ia(Xt,fn,B)),et===null)for(var Li=0;Li<hr;Li++)hn.push(pa),hn.push(ia(yt,fn,B));else{for(var ya=0;ya<hr;ya++)hn.push(pa),hn.push(ia(yt,fn,B));hn.push({type:"kern",size:bi}),hn.push(ia(yt,fn,B)),hn.push(pa),hn.push(ia(et,fn,B));for(var vi=0;vi<hr;vi++)hn.push(pa),hn.push(ia(yt,fn,B))}hn.push({type:"kern",size:bi}),hn.push(ia(yt,fn,B)),hn.push(pa),hn.push(ia(Me,fn,B));var li=b.havingBaseStyle(w.TEXT),ca=Ht.makeVList({positionType:"bottom",positionData:Ri,children:hn},li);return ua(Ht.makeSpan(["delimsizing","mult"],[ca],li),w.TEXT,b,q)},Da=80,Wa=.08,Ta=function(c,f,h,b,B){var q=bt(c,b,h),Me=new Te(c,q),et=new Ie([Me],{width:"400em",height:f+"em",viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});return Ht.makeSvgSpan(["hide-tail"],[et],B)},vs=function(c,f){var h=f.havingBaseSizing(),b=ds("\\surd",c*h.sizeMultiplier,Ws,h),B=h.sizeMultiplier,q=Math.max(0,f.minRuleThickness-f.fontMetrics().sqrtRuleThickness),Me,et=0,yt=0,Xt=0,fn;return b.type==="small"?(Xt=1e3+1e3*q+Da,c<1?B=1:c<1.4&&(B=.7),et=(1+q+Wa)/B,yt=(1+q)/B,Me=Ta("sqrtMain",et,Xt,q,f),Me.style.minWidth="0.853em",fn=.833/B):b.type==="large"?(Xt=(1e3+Da)*Rs[b.size],yt=(Rs[b.size]+q)/B,et=(Rs[b.size]+q+Wa)/B,Me=Ta("sqrtSize"+b.size,et,Xt,q,f),Me.style.minWidth="1.02em",fn=1/B):(et=c+q+Wa,yt=c+q,Xt=Math.floor(1e3*c+q)+Da,Me=Ta("sqrtTall",et,Xt,q,f),Me.style.minWidth="0.742em",fn=1.056),Me.height=yt,Me.style.height=et+"em",{span:Me,advanceWidth:fn,ruleWidth:(f.fontMetrics().sqrtRuleThickness+q)*B}},Cs=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Ds=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],$a=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Rs=[0,1.2,1.8,2.4,3],za=function(c,f,h,b,B){if(c==="<"||c==="\\lt"||c==="\u27E8"?c="\\langle":(c===">"||c==="\\gt"||c==="\u27E9")&&(c="\\rangle"),V.contains(Cs,c)||V.contains($a,c))return Oi(c,f,!1,h,b,B);if(V.contains(Ds,c))return Sa(c,Rs[f],!1,h,b,B);throw new g("Illegal delimiter: '"+c+"'")},Fs=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],$s=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"stack"}],Ws=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Vs=function(c){if(c.type==="small")return"Main-Regular";if(c.type==="large")return"Size"+c.size+"-Regular";if(c.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+c.type+"' here.")},ds=function(c,f,h,b){for(var B=Math.min(2,3-b.style.size),q=B;q<h.length&&h[q].type!=="stack";q++){var Me=Xi(c,Vs(h[q]),"math"),et=Me.height+Me.depth;if(h[q].type==="small"){var yt=b.havingBaseStyle(h[q].style);et*=yt.sizeMultiplier}if(et>f)return h[q]}return h[h.length-1]},Ya=function(c,f,h,b,B,q){c==="<"||c==="\\lt"||c==="\u27E8"?c="\\langle":(c===">"||c==="\\gt"||c==="\u27E9")&&(c="\\rangle");var Me;V.contains($a,c)?Me=Fs:V.contains(Cs,c)?Me=Ws:Me=$s;var et=ds(c,f,Me,b);return et.type==="small"?ri(c,et.style,h,b,B,q):et.type==="large"?Oi(c,et.size,h,b,B,q):Sa(c,f,h,b,B,q)},Ai=function(c,f,h,b,B,q){var Me=b.fontMetrics().axisHeight*b.sizeMultiplier,et=901,yt=5/b.fontMetrics().ptPerEm,Xt=Math.max(f-Me,h+Me),fn=Math.max(Xt/500*et,2*Xt-yt);return Ya(c,fn,!0,b,B,q)},mi={sqrtImage:vs,sizedDelim:za,customSizedDelim:Ya,leftRightDelim:Ai},Aa={"\\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}},La=["(","\\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 Ui(U,c){var f=Sr(U);if(f&&V.contains(La,f.text))return f;throw new g("Invalid delimiter: '"+(f?f.text:JSON.stringify(U))+"' after '"+c.funcName+"'",U)}Fn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(c,f){var h=Ui(f[0],c);return{type:"delimsizing",mode:c.parser.mode,size:Aa[c.funcName].size,mclass:Aa[c.funcName].mclass,delim:h.text}},htmlBuilder:function(c,f){return c.delim==="."?Ht.makeSpan([c.mclass]):mi.sizedDelim(c.delim,c.size,f,c.mode,[c.mclass])},mathmlBuilder:function(c){var f=[];c.delim!=="."&&f.push(wi(c.delim,c.mode));var h=new sr.MathNode("mo",f);return c.mclass==="mopen"||c.mclass==="mclose"?h.setAttribute("fence","true"):h.setAttribute("fence","false"),h}});function Ea(U){if(!U.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Fn({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(c,f){var h=c.parser.gullet.macros.get("\\current@color");if(h&&typeof h!="string")throw new g("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:c.parser.mode,delim:Ui(f[0],c).text,color:h}}}),Fn({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(c,f){var h=Ui(f[0],c),b=c.parser;++b.leftrightDepth;var B=b.parseExpression(!1);--b.leftrightDepth,b.expect("\\right",!1);var q=Un(b.parseFunction(),"leftright-right");return{type:"leftright",mode:b.mode,body:B,left:h.text,right:q.delim,rightColor:q.color}},htmlBuilder:function(c,f){Ea(c);for(var h=Jt(c.body,f,!0,["mopen","mclose"]),b=0,B=0,q=!1,Me=0;Me<h.length;Me++)h[Me].isMiddle?q=!0:(b=Math.max(h[Me].height,b),B=Math.max(h[Me].depth,B));b*=f.sizeMultiplier,B*=f.sizeMultiplier;var et;if(c.left==="."?et=jr(f,["mopen"]):et=mi.leftRightDelim(c.left,b,B,f,c.mode,["mopen"]),h.unshift(et),q)for(var yt=1;yt<h.length;yt++){var Xt=h[yt],fn=Xt.isMiddle;fn&&(h[yt]=mi.leftRightDelim(fn.delim,b,B,fn.options,c.mode,[]))}var Sn;if(c.right===".")Sn=jr(f,["mclose"]);else{var kn=c.rightColor?f.withColor(c.rightColor):f;Sn=mi.leftRightDelim(c.right,b,B,kn,c.mode,["mclose"])}return h.push(Sn),Ht.makeSpan(["minner"],h,f)},mathmlBuilder:function(c,f){Ea(c);var h=Mi(c.body,f);if(c.left!=="."){var b=new sr.MathNode("mo",[wi(c.left,c.mode)]);b.setAttribute("fence","true"),h.unshift(b)}if(c.right!=="."){var B=new sr.MathNode("mo",[wi(c.right,c.mode)]);B.setAttribute("fence","true"),c.rightColor&&B.setAttribute("mathcolor",c.rightColor),h.push(B)}return Yi(h)}}),Fn({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(c,f){var h=Ui(f[0],c);if(!c.parser.leftrightDepth)throw new g("\\middle without preceding \\left",h);return{type:"middle",mode:c.parser.mode,delim:h.text}},htmlBuilder:function(c,f){var h;if(c.delim===".")h=jr(f,[]);else{h=mi.sizedDelim(c.delim,1,f,c.mode,[]);var b={delim:c.delim,options:f};h.isMiddle=b}return h},mathmlBuilder:function(c,f){var h=c.delim==="\\vert"||c.delim==="|"?wi("|","text"):wi(c.delim,c.mode),b=new sr.MathNode("mo",[h]);return b.setAttribute("fence","true"),b.setAttribute("lspace","0.05em"),b.setAttribute("rspace","0.05em"),b}});var Za=function(c,f){var h=Ht.wrapFragment(wr(c.body,f),f),b=c.label.substr(1),B=f.sizeMultiplier,q,Me=0,et=V.isCharacterBox(c.body);if(b==="sout")q=Ht.makeSpan(["stretchy","sout"]),q.height=f.fontMetrics().defaultRuleThickness/B,Me=-.5*f.fontMetrics().xHeight;else{/cancel/.test(b)?et||h.classes.push("cancel-pad"):h.classes.push("boxpad");var yt=0,Xt=0;/box/.test(b)?(Xt=Math.max(f.fontMetrics().fboxrule,f.minRuleThickness),yt=f.fontMetrics().fboxsep+(b==="colorbox"?0:Xt)):yt=et?.2:0,q=Ci.encloseSpan(h,b,yt,f),/fbox|boxed|fcolorbox/.test(b)&&(q.style.borderStyle="solid",q.style.borderWidth=Xt+"em"),Me=h.depth+yt,c.backgroundColor&&(q.style.backgroundColor=c.backgroundColor,c.borderColor&&(q.style.borderColor=c.borderColor))}var fn;return c.backgroundColor?fn=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:q,shift:Me},{type:"elem",elem:h,shift:0}]},f):fn=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:q,shift:Me,wrapperClasses:/cancel/.test(b)?["svg-align"]:[]}]},f),/cancel/.test(b)&&(fn.height=h.height,fn.depth=h.depth),/cancel/.test(b)&&!et?Ht.makeSpan(["mord","cancel-lap"],[fn],f):Ht.makeSpan(["mord"],[fn],f)},Ua=function(c,f){var h=0,b=new sr.MathNode(c.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Vr(c.body,f)]);switch(c.label){case"\\cancel":b.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":b.setAttribute("notation","downdiagonalstrike");break;case"\\sout":b.setAttribute("notation","horizontalstrike");break;case"\\fbox":b.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(h=f.fontMetrics().fboxsep*f.fontMetrics().ptPerEm,b.setAttribute("width","+"+2*h+"pt"),b.setAttribute("height","+"+2*h+"pt"),b.setAttribute("lspace",h+"pt"),b.setAttribute("voffset",h+"pt"),c.label==="\\fcolorbox"){var B=Math.max(f.fontMetrics().fboxrule,f.minRuleThickness);b.setAttribute("style","border: "+B+"em solid "+String(c.borderColor))}break;case"\\xcancel":b.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return c.backgroundColor&&b.setAttribute("mathbackground",c.backgroundColor),b};Fn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(c,f,h){var b=c.parser,B=c.funcName,q=Un(f[0],"color-token").color,Me=f[1];return{type:"enclose",mode:b.mode,label:B,backgroundColor:q,body:Me}},htmlBuilder:Za,mathmlBuilder:Ua}),Fn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(c,f,h){var b=c.parser,B=c.funcName,q=Un(f[0],"color-token").color,Me=Un(f[1],"color-token").color,et=f[2];return{type:"enclose",mode:b.mode,label:B,backgroundColor:Me,borderColor:q,body:et}},htmlBuilder:Za,mathmlBuilder:Ua}),Fn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(c,f){var h=c.parser;return{type:"enclose",mode:h.mode,label:"\\fbox",body:f[0]}}}),Fn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(c,f,h){var b=c.parser,B=c.funcName,q=f[0];return{type:"enclose",mode:b.mode,label:B,body:q}},htmlBuilder:Za,mathmlBuilder:Ua});var rs={};function Pa(U){for(var c=U.type,f=U.names,h=U.props,b=U.handler,B=U.htmlBuilder,q=U.mathmlBuilder,Me={type:c,numArgs:h.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:b},et=0;et<f.length;++et)rs[f[et]]=Me;B&&(gr[c]=B),q&&(Er[c]=q)}function ss(U){var c=[];U.consumeSpaces();for(var f=U.fetch().text;f==="\\hline"||f==="\\hdashline";)U.consume(),c.push(f==="\\hdashline"),U.consumeSpaces(),f=U.fetch().text;return c}function Xa(U,c,f){var h=c.hskipBeforeAndAfter,b=c.addJot,B=c.cols,q=c.arraystretch,Me=c.colSeparationType;if(U.gullet.beginGroup(),U.gullet.macros.set("\\\\","\\cr"),!q){var et=U.gullet.expandMacroAsText("\\arraystretch");if(et==null)q=1;else if(q=parseFloat(et),!q||q<0)throw new g("Invalid \\arraystretch: "+et)}U.gullet.beginGroup();var yt=[],Xt=[yt],fn=[],Sn=[];for(Sn.push(ss(U));;){var kn=U.parseExpression(!1,"\\cr");U.gullet.endGroup(),U.gullet.beginGroup(),kn={type:"ordgroup",mode:U.mode,body:kn},f&&(kn={type:"styling",mode:U.mode,style:f,body:[kn]}),yt.push(kn);var Kn=U.fetch().text;if(Kn==="&")U.consume();else if(Kn==="\\end"){yt.length===1&&kn.type==="styling"&&kn.body[0].body.length===0&&Xt.pop(),Sn.length<Xt.length+1&&Sn.push([]);break}else if(Kn==="\\cr"){var jn=Un(U.parseFunction(),"cr");fn.push(jn.size),Sn.push(ss(U)),yt=[],Xt.push(yt)}else throw new g("Expected & or \\\\ or \\cr or \\end",U.nextToken)}return U.gullet.endGroup(),U.gullet.endGroup(),{type:"array",mode:U.mode,addJot:b,arraystretch:q,body:Xt,cols:B,rowGaps:fn,hskipBeforeAndAfter:h,hLinesBeforeRow:Sn,colSeparationType:Me}}function fs(U){return U.substr(0,1)==="d"?"display":"text"}var hs=function(c,f){var h,b,B=c.body.length,q=c.hLinesBeforeRow,Me=0,et=new Array(B),yt=[],Xt=Math.max(f.fontMetrics().arrayRuleWidth,f.minRuleThickness),fn=1/f.fontMetrics().ptPerEm,Sn=5*fn;if(c.colSeparationType&&c.colSeparationType==="small"){var kn=f.havingStyle(w.SCRIPT).sizeMultiplier;Sn=.2778*(kn/f.sizeMultiplier)}var Kn=12*fn,jn=3*fn,ar=c.arraystretch*Kn,qn=.7*ar,rr=.3*ar,dr=0;function Tr(ta){for(var Fi=0;Fi<ta.length;++Fi)Fi>0&&(dr+=.25),yt.push({pos:dr,isDashed:ta[Fi]})}for(Tr(q[0]),h=0;h<c.body.length;++h){var Or=c.body[h],hr=qn,Gr=rr;Me<Or.length&&(Me=Or.length);var qr=new Array(Or.length);for(b=0;b<Or.length;++b){var Ri=wr(Or[b],f);Gr<Ri.depth&&(Gr=Ri.depth),hr<Ri.height&&(hr=Ri.height),qr[b]=Ri}var bi=c.rowGaps[h],hn=0;bi&&(hn=ye(bi,f),hn>0&&(hn+=rr,Gr<hn&&(Gr=hn),hn=0)),c.addJot&&(Gr+=jn),qr.height=hr,qr.depth=Gr,dr+=hr,qr.pos=dr,dr+=Gr+hn,et[h]=qr,Tr(q[h+1])}var Li=dr/2+f.fontMetrics().axisHeight,ya=c.cols||[],vi=[],li,ca;for(b=0,ca=0;b<Me||ca<ya.length;++b,++ca){for(var da=ya[ca]||{},Xr=!0;da.type==="separator";){if(Xr||(li=Ht.makeSpan(["arraycolsep"],[]),li.style.width=f.fontMetrics().doubleRuleSep+"em",vi.push(li)),da.separator==="|"||da.separator===":"){var gi=da.separator==="|"?"solid":"dashed",zr=Ht.makeSpan(["vertical-separator"],[],f);zr.style.height=dr+"em",zr.style.borderRightWidth=Xt+"em",zr.style.borderRightStyle=gi,zr.style.margin="0 -"+Xt/2+"em",zr.style.verticalAlign=-(dr-Li)+"em",vi.push(zr)}else throw new g("Invalid separator type: "+da.separator);ca++,da=ya[ca]||{},Xr=!1}if(!(b>=Me)){var Yr=void 0;(b>0||c.hskipBeforeAndAfter)&&(Yr=V.deflt(da.pregap,Sn),Yr!==0&&(li=Ht.makeSpan(["arraycolsep"],[]),li.style.width=Yr+"em",vi.push(li)));var Si=[];for(h=0;h<B;++h){var Ii=et[h],ea=Ii[b];if(ea){var Qi=Ii.pos-Li;ea.depth=Ii.depth,ea.height=Ii.height,Si.push({type:"elem",elem:ea,shift:Qi})}}Si=Ht.makeVList({positionType:"individualShift",children:Si},f),Si=Ht.makeSpan(["col-align-"+(da.align||"c")],[Si]),vi.push(Si),(b<Me-1||c.hskipBeforeAndAfter)&&(Yr=V.deflt(da.postgap,Sn),Yr!==0&&(li=Ht.makeSpan(["arraycolsep"],[]),li.style.width=Yr+"em",vi.push(li)))}}if(et=Ht.makeSpan(["mtable"],vi),yt.length>0){for(var sa=Ht.makeLineSpan("hline",f,Xt),ka=Ht.makeLineSpan("hdashline",f,Xt),Qr=[{type:"elem",elem:et,shift:0}];yt.length>0;){var ii=yt.pop(),Bi=ii.pos-Li;ii.isDashed?Qr.push({type:"elem",elem:ka,shift:Bi}):Qr.push({type:"elem",elem:sa,shift:Bi})}et=Ht.makeVList({positionType:"individualShift",children:Qr},f)}return Ht.makeSpan(["mord"],[et],f)},Gs={c:"center ",l:"left ",r:"right "},Ki=function(c,f){var h=new sr.MathNode("mtable",c.body.map(function(dr){return new sr.MathNode("mtr",dr.map(function(Tr){return new sr.MathNode("mtd",[Vr(Tr,f)])}))})),b=c.arraystretch===.5?.1:.16+c.arraystretch-1+(c.addJot?.09:0);h.setAttribute("rowspacing",b+"em");var B="",q="";if(c.cols){var Me=c.cols,et="",yt=!1,Xt=0,fn=Me.length;Me[0].type==="separator"&&(B+="top ",Xt=1),Me[Me.length-1].type==="separator"&&(B+="bottom ",fn-=1);for(var Sn=Xt;Sn<fn;Sn++)Me[Sn].type==="align"?(q+=Gs[Me[Sn].align],yt&&(et+="none "),yt=!0):Me[Sn].type==="separator"&&yt&&(et+=Me[Sn].separator==="|"?"solid ":"dashed ",yt=!1);h.setAttribute("columnalign",q.trim()),/[sd]/.test(et)&&h.setAttribute("columnlines",et.trim())}if(c.colSeparationType==="align"){for(var kn=c.cols||[],Kn="",jn=1;jn<kn.length;jn++)Kn+=jn%2?"0em ":"1em ";h.setAttribute("columnspacing",Kn.trim())}else c.colSeparationType==="alignat"?h.setAttribute("columnspacing","0em"):c.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):h.setAttribute("columnspacing","1em");var ar="",qn=c.hLinesBeforeRow;B+=qn[0].length>0?"left ":"",B+=qn[qn.length-1].length>0?"right ":"";for(var rr=1;rr<qn.length-1;rr++)ar+=qn[rr].length===0?"none ":qn[rr][0]?"dashed ":"solid ";return/[sd]/.test(ar)&&h.setAttribute("rowlines",ar.trim()),B!==""&&(h=new sr.MathNode("menclose",[h]),h.setAttribute("notation",B.trim())),c.arraystretch&&c.arraystretch<1&&(h=new sr.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},Vi=function(c,f){var h=[],b=Xa(c.parser,{cols:h,addJot:!0},"display"),B,q=0,Me={type:"ordgroup",mode:c.mode,body:[]},et=er(f[0],"ordgroup");if(et){for(var yt="",Xt=0;Xt<et.body.length;Xt++){var fn=Un(et.body[Xt],"textord");yt+=fn.text}B=Number(yt),q=B*2}var Sn=!q;b.body.forEach(function(ar){for(var qn=1;qn<ar.length;qn+=2){var rr=Un(ar[qn],"styling"),dr=Un(rr.body[0],"ordgroup");dr.body.unshift(Me)}if(Sn)q<ar.length&&(q=ar.length);else{var Tr=ar.length/2;if(B<Tr)throw new g("Too many math in a row: "+("expected "+B+", but got "+Tr),ar[0])}});for(var kn=0;kn<q;++kn){var Kn="r",jn=0;kn%2===1?Kn="l":kn>0&&Sn&&(jn=1),h[kn]={type:"align",align:Kn,pregap:jn,postgap:0}}return b.colSeparationType=Sn?"align":"alignat",b};Pa({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(c,f){var h=Sr(f[0]),b=h?[f[0]]:Un(f[0],"ordgroup").body,B=b.map(function(Me){var et=Ar(Me),yt=et.text;if("lcr".indexOf(yt)!==-1)return{type:"align",align:yt};if(yt==="|")return{type:"separator",separator:"|"};if(yt===":")return{type:"separator",separator:":"};throw new g("Unknown column alignment: "+yt,Me)}),q={cols:B,hskipBeforeAndAfter:!0};return Xa(c.parser,q,fs(c.envName))},htmlBuilder:hs,mathmlBuilder:Ki}),Pa({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(c){var f={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[c.envName],h={hskipBeforeAndAfter:!1},b=Xa(c.parser,h,fs(c.envName));return f?{type:"leftright",mode:c.mode,body:[b],left:f[0],right:f[1],rightColor:void 0}:b},htmlBuilder:hs,mathmlBuilder:Ki}),Pa({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(c){var f={arraystretch:.5},h=Xa(c.parser,f,"script");return h.colSeparationType="small",h},htmlBuilder:hs,mathmlBuilder:Ki}),Pa({type:"array",names:["subarray"],props:{numArgs:1},handler:function(c,f){var h=Sr(f[0]),b=h?[f[0]]:Un(f[0],"ordgroup").body,B=b.map(function(Me){var et=Ar(Me),yt=et.text;if("lc".indexOf(yt)!==-1)return{type:"align",align:yt};throw new g("Unknown column alignment: "+yt,Me)});if(B.length>1)throw new g("{subarray} can contain only one column");var q={cols:B,hskipBeforeAndAfter:!1,arraystretch:.5};if(q=Xa(c.parser,q,"script"),q.body[0].length>1)throw new g("{subarray} can contain only one column");return q},htmlBuilder:hs,mathmlBuilder:Ki}),Pa({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(c){var f={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},h=Xa(c.parser,f,fs(c.envName));return{type:"leftright",mode:c.mode,body:[h],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:hs,mathmlBuilder:Ki}),Pa({type:"array",names:["aligned"],props:{numArgs:0},handler:Vi,htmlBuilder:hs,mathmlBuilder:Ki}),Pa({type:"array",names:["gathered"],props:{numArgs:0},handler:function(c){var f={cols:[{type:"align",align:"c"}],addJot:!0};return Xa(c.parser,f,"display")},htmlBuilder:hs,mathmlBuilder:Ki}),Pa({type:"array",names:["alignedat"],props:{numArgs:1},handler:Vi,htmlBuilder:hs,mathmlBuilder:Ki}),Fn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(c,f){throw new g(c.funcName+" valid only within array environment")}});var aa=rs,Ma=aa;Fn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(c,f){var h=c.parser,b=c.funcName,B=f[0];if(B.type!=="ordgroup")throw new g("Invalid environment name",B);for(var q="",Me=0;Me<B.body.length;++Me)q+=Un(B.body[Me],"textord").text;if(b==="\\begin"){if(!Ma.hasOwnProperty(q))throw new g("No such environment: "+q,B);var et=Ma[q],yt=h.parseArguments("\\begin{"+q+"}",et),Xt=yt.args,fn=yt.optArgs,Sn={mode:h.mode,envName:q,parser:h},kn=et.handler(Sn,Xt,fn);h.expect("\\end",!1);var Kn=h.nextToken,jn=Un(h.parseFunction(),"environment");if(jn.name!==q)throw new g("Mismatch: \\begin{"+q+"} matched by \\end{"+jn.name+"}",Kn);return kn}return{type:"environment",mode:h.mode,name:q,nameGroup:B}}});var Ka=Ht.makeSpan;function ws(U,c){var f=Jt(U.body,c,!0);return Ka([U.mclass],f,c)}function Os(U,c){var f,h=Mi(U.body,c);return U.mclass==="minner"?sr.newDocumentFragment(h):(U.mclass==="mord"?U.isCharacterBox?(f=h[0],f.type="mi"):f=new sr.MathNode("mi",h):(U.isCharacterBox?(f=h[0],f.type="mo"):f=new sr.MathNode("mo",h),U.mclass==="mbin"?(f.attributes.lspace="0.22em",f.attributes.rspace="0.22em"):U.mclass==="mpunct"?(f.attributes.lspace="0em",f.attributes.rspace="0.17em"):(U.mclass==="mopen"||U.mclass==="mclose")&&(f.attributes.lspace="0em",f.attributes.rspace="0em")),f)}Fn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(c,f){var h=c.parser,b=c.funcName,B=f[0];return{type:"mclass",mode:h.mode,mclass:"m"+b.substr(5),body:Ir(B),isCharacterBox:V.isCharacterBox(B)}},htmlBuilder:ws,mathmlBuilder:Os});var ys=function(c){var f=c.type==="ordgroup"&&c.body.length?c.body[0]:c;return f.type==="atom"&&(f.family==="bin"||f.family==="rel")?"m"+f.family:"mord"};Fn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(c,f){var h=c.parser;return{type:"mclass",mode:h.mode,mclass:ys(f[0]),body:[f[1]],isCharacterBox:V.isCharacterBox(f[1])}}}),Fn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(c,f){var h=c.parser,b=c.funcName,B=f[1],q=f[0],Me;b!=="\\stackrel"?Me=ys(B):Me="mrel";var et={type:"op",mode:B.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:b!=="\\stackrel",body:Ir(B)},yt={type:"supsub",mode:q.mode,base:et,sup:b==="\\underset"?null:q,sub:b==="\\underset"?q:null};return{type:"mclass",mode:h.mode,mclass:Me,body:[yt],isCharacterBox:V.isCharacterBox(yt)}},htmlBuilder:ws,mathmlBuilder:Os});var Ys=function(c,f){var h=c.font,b=f.withFont(h);return wr(c.body,b)},Ls=function(c,f){var h=c.font,b=f.withFont(h);return Vr(c.body,b)},Ps={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Fn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(c,f){var h=c.parser,b=c.funcName,B=f[0],q=b;return q in Ps&&(q=Ps[q]),{type:"font",mode:h.mode,font:q.slice(1),body:B}},htmlBuilder:Ys,mathmlBuilder:Ls}),Fn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(c,f){var h=c.parser,b=f[0],B=V.isCharacterBox(b);return{type:"mclass",mode:h.mode,mclass:ys(b),body:[{type:"font",mode:h.mode,font:"boldsymbol",body:b}],isCharacterBox:B}}}),Fn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(c,f){var h=c.parser,b=c.funcName,B=c.breakOnTokenText,q=h.mode,Me=h.parseExpression(!0,B),et="math"+b.slice(1);return{type:"font",mode:q,font:et,body:{type:"ordgroup",mode:h.mode,body:Me}}},htmlBuilder:Ys,mathmlBuilder:Ls});var Xs=function(c,f){var h=f;return c==="display"?h=h.id>=w.SCRIPT.id?h.text():w.DISPLAY:c==="text"&&h.size===w.DISPLAY.size?h=w.TEXT:c==="script"?h=w.SCRIPT:c==="scriptscript"&&(h=w.SCRIPTSCRIPT),h},zs=function(c,f){var h=Xs(c.size,f.style),b=h.fracNum(),B=h.fracDen(),q;q=f.havingStyle(b);var Me=wr(c.numer,q,f);if(c.continued){var et=8.5/f.fontMetrics().ptPerEm,yt=3.5/f.fontMetrics().ptPerEm;Me.height=Me.height<et?et:Me.height,Me.depth=Me.depth<yt?yt:Me.depth}q=f.havingStyle(B);var Xt=wr(c.denom,q,f),fn,Sn,kn;c.hasBarLine?(c.barSize?(Sn=ye(c.barSize,f),fn=Ht.makeLineSpan("frac-line",f,Sn)):fn=Ht.makeLineSpan("frac-line",f),Sn=fn.height,kn=fn.height):(fn=null,Sn=0,kn=f.fontMetrics().defaultRuleThickness);var Kn,jn,ar;h.size===w.DISPLAY.size||c.size==="display"?(Kn=f.fontMetrics().num1,Sn>0?jn=3*kn:jn=7*kn,ar=f.fontMetrics().denom1):(Sn>0?(Kn=f.fontMetrics().num2,jn=kn):(Kn=f.fontMetrics().num3,jn=3*kn),ar=f.fontMetrics().denom2);var qn;if(fn){var dr=f.fontMetrics().axisHeight;Kn-Me.depth-(dr+.5*Sn)<jn&&(Kn+=jn-(Kn-Me.depth-(dr+.5*Sn))),dr-.5*Sn-(Xt.height-ar)<jn&&(ar+=jn-(dr-.5*Sn-(Xt.height-ar)));var Tr=-(dr-.5*Sn);qn=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Xt,shift:ar},{type:"elem",elem:fn,shift:Tr},{type:"elem",elem:Me,shift:-Kn}]},f)}else{var rr=Kn-Me.depth-(Xt.height-ar);rr<jn&&(Kn+=.5*(jn-rr),ar+=.5*(jn-rr)),qn=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Xt,shift:ar},{type:"elem",elem:Me,shift:-Kn}]},f)}q=f.havingStyle(h),qn.height*=q.sizeMultiplier/f.sizeMultiplier,qn.depth*=q.sizeMultiplier/f.sizeMultiplier;var Or;h.size===w.DISPLAY.size?Or=f.fontMetrics().delim1:Or=f.fontMetrics().delim2;var hr,Gr;return c.leftDelim==null?hr=jr(f,["mopen"]):hr=mi.customSizedDelim(c.leftDelim,Or,!0,f.havingStyle(h),c.mode,["mopen"]),c.continued?Gr=Ht.makeSpan([]):c.rightDelim==null?Gr=jr(f,["mclose"]):Gr=mi.customSizedDelim(c.rightDelim,Or,!0,f.havingStyle(h),c.mode,["mclose"]),Ht.makeSpan(["mord"].concat(q.sizingClasses(f)),[hr,Ht.makeSpan(["mfrac"],[qn]),Gr],f)},so=function(c,f){var h=new sr.MathNode("mfrac",[Vr(c.numer,f),Vr(c.denom,f)]);if(!c.hasBarLine)h.setAttribute("linethickness","0px");else if(c.barSize){var b=ye(c.barSize,f);h.setAttribute("linethickness",b+"em")}var B=Xs(c.size,f.style);if(B.size!==f.style.size){h=new sr.MathNode("mstyle",[h]);var q=B.size===w.DISPLAY.size?"true":"false";h.setAttribute("displaystyle",q),h.setAttribute("scriptlevel","0")}if(c.leftDelim!=null||c.rightDelim!=null){var Me=[];if(c.leftDelim!=null){var et=new sr.MathNode("mo",[new sr.TextNode(c.leftDelim.replace("\\",""))]);et.setAttribute("fence","true"),Me.push(et)}if(Me.push(h),c.rightDelim!=null){var yt=new sr.MathNode("mo",[new sr.TextNode(c.rightDelim.replace("\\",""))]);yt.setAttribute("fence","true"),Me.push(yt)}return Yi(Me)}return h};Fn({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(c,f){var h=c.parser,b=c.funcName,B=f[0],q=f[1],Me,et=null,yt=null,Xt="auto";switch(b){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Me=!0;break;case"\\\\atopfrac":Me=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Me=!1,et="(",yt=")";break;case"\\\\bracefrac":Me=!1,et="\\{",yt="\\}";break;case"\\\\brackfrac":Me=!1,et="[",yt="]";break;default:throw new Error("Unrecognized genfrac command")}switch(b){case"\\cfrac":case"\\dfrac":case"\\dbinom":Xt="display";break;case"\\tfrac":case"\\tbinom":Xt="text";break}return{type:"genfrac",mode:h.mode,continued:b==="\\cfrac",numer:B,denom:q,hasBarLine:Me,leftDelim:et,rightDelim:yt,size:Xt,barSize:null}},htmlBuilder:zs,mathmlBuilder:so}),Fn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(c){var f=c.parser,h=c.funcName,b=c.token,B;switch(h){case"\\over":B="\\frac";break;case"\\choose":B="\\binom";break;case"\\atop":B="\\\\atopfrac";break;case"\\brace":B="\\\\bracefrac";break;case"\\brack":B="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:f.mode,replaceWith:B,token:b}}});var ja=["display","text","script","scriptscript"],Qa=function(c){var f=null;return c.length>0&&(f=c,f=f==="."?null:f),f};Fn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(c,f){var h=c.parser,b=f[4],B=f[5],q=er(f[0],"atom");q&&(q=lr(f[0],"open"));var Me=q?Qa(q.text):null,et=er(f[1],"atom");et&&(et=lr(f[1],"close"));var yt=et?Qa(et.text):null,Xt=Un(f[2],"size"),fn,Sn=null;Xt.isBlank?fn=!0:(Sn=Xt.value,fn=Sn.number>0);var kn="auto",Kn=er(f[3],"ordgroup");if(Kn){if(Kn.body.length>0){var jn=Un(Kn.body[0],"textord");kn=ja[Number(jn.text)]}}else Kn=Un(f[3],"textord"),kn=ja[Number(Kn.text)];return{type:"genfrac",mode:h.mode,numer:b,denom:B,continued:!1,hasBarLine:fn,barSize:Sn,leftDelim:Me,rightDelim:yt,size:kn}},htmlBuilder:zs,mathmlBuilder:so}),Fn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(c,f){var h=c.parser,b=c.funcName,B=c.token;return{type:"infix",mode:h.mode,replaceWith:"\\\\abovefrac",size:Un(f[0],"size").value,token:B}}}),Fn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(c,f){var h=c.parser,b=c.funcName,B=f[0],q=H(Un(f[1],"infix").size),Me=f[2],et=q.number>0;return{type:"genfrac",mode:h.mode,numer:B,denom:Me,continued:!1,hasBarLine:et,barSize:q,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:zs,mathmlBuilder:so});var Bo=function(c,f){var h=f.style,b,B,q=er(c,"supsub");q?(b=q.sup?wr(q.sup,f.havingStyle(h.sup()),f):wr(q.sub,f.havingStyle(h.sub()),f),B=Un(q.base,"horizBrace")):B=Un(c,"horizBrace");var Me=wr(B.base,f.havingBaseStyle(w.DISPLAY)),et=Ci.svgSpan(B,f),yt;if(B.isOver?(yt=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Me},{type:"kern",size:.1},{type:"elem",elem:et}]},f),yt.children[0].children[0].children[1].classes.push("svg-align")):(yt=Ht.makeVList({positionType:"bottom",positionData:Me.depth+.1+et.height,children:[{type:"elem",elem:et},{type:"kern",size:.1},{type:"elem",elem:Me}]},f),yt.children[0].children[0].children[0].classes.push("svg-align")),b){var Xt=Ht.makeSpan(["mord",B.isOver?"mover":"munder"],[yt],f);B.isOver?yt=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Xt},{type:"kern",size:.2},{type:"elem",elem:b}]},f):yt=Ht.makeVList({positionType:"bottom",positionData:Xt.depth+.2+b.height+b.depth,children:[{type:"elem",elem:b},{type:"kern",size:.2},{type:"elem",elem:Xt}]},f)}return Ht.makeSpan(["mord",B.isOver?"mover":"munder"],[yt],f)},cr=function(c,f){var h=Ci.mathMLnode(c.label);return new sr.MathNode(c.isOver?"mover":"munder",[Vr(c.base,f),h])};Fn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(c,f){var h=c.parser,b=c.funcName;return{type:"horizBrace",mode:h.mode,label:b,isOver:/^\\over/.test(b),base:f[0]}},htmlBuilder:Bo,mathmlBuilder:cr}),Fn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(c,f){var h=c.parser,b=f[1],B=Un(f[0],"url").url;return h.settings.isTrusted({command:"\\href",url:B})?{type:"href",mode:h.mode,href:B,body:Ir(b)}:h.formatUnsupportedCmd("\\href")},htmlBuilder:function(c,f){var h=Jt(c.body,f,!1);return Ht.makeAnchor(c.href,[],h,f)},mathmlBuilder:function(c,f){var h=Ni(c.body,f);return h instanceof Dr||(h=new Dr("mrow",[h])),h.setAttribute("href",c.href),h}}),Fn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(c,f){var h=c.parser,b=Un(f[0],"url").url;if(!h.settings.isTrusted({command:"\\url",url:b}))return h.formatUnsupportedCmd("\\url");for(var B=[],q=0;q<b.length;q++){var Me=b[q];Me==="~"&&(Me="\\textasciitilde"),B.push({type:"textord",mode:"text",text:Me})}var et={type:"text",mode:h.mode,font:"\\texttt",body:B};return{type:"href",mode:h.mode,href:b,body:Ir(et)}}}),Fn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(c,f){var h=c.parser;return{type:"htmlmathml",mode:h.mode,html:Ir(f[0]),mathml:Ir(f[1])}},htmlBuilder:function(c,f){var h=Jt(c.html,f,!1);return Ht.makeFragment(h)},mathmlBuilder:function(c,f){return Ni(c.mathml,f)}});var oo=function(c){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(c))return{number:+c,unit:"bp"};var f=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(c);if(!f)throw new g("Invalid size: '"+c+"' in \\includegraphics");var h={number:+(f[1]+f[2]),unit:f[3]};if(!Yt(h))throw new g("Invalid unit: '"+h.unit+"' in \\includegraphics.");return h};Fn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(c,f,h){var b=c.parser,B={number:0,unit:"em"},q={number:.9,unit:"em"},Me={number:0,unit:"em"},et="";if(h[0])for(var yt=Un(h[0],"raw").string,Xt=yt.split(","),fn=0;fn<Xt.length;fn++){var Sn=Xt[fn].split("=");if(Sn.length===2){var kn=Sn[1].trim();switch(Sn[0].trim()){case"alt":et=kn;break;case"width":B=oo(kn);break;case"height":q=oo(kn);break;case"totalheight":Me=oo(kn);break;default:throw new g("Invalid key: '"+Sn[0]+"' in \\includegraphics.")}}}var Kn=Un(f[0],"url").url;return et===""&&(et=Kn,et=et.replace(/^.*[\\/]/,""),et=et.substring(0,et.lastIndexOf("."))),b.settings.isTrusted({command:"\\includegraphics",url:Kn})?{type:"includegraphics",mode:b.mode,alt:et,width:B,height:q,totalheight:Me,src:Kn}:b.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(c,f){var h=ye(c.height,f),b=0;c.totalheight.number>0&&(b=ye(c.totalheight,f)-h,b=Number(b.toFixed(2)));var B=0;c.width.number>0&&(B=ye(c.width,f));var q={height:h+b+"em"};B>0&&(q.width=B+"em"),b>0&&(q.verticalAlign=-b+"em");var Me=new j(c.src,c.alt,q);return Me.height=h,Me.depth=b,Me},mathmlBuilder:function(c,f){var h=new sr.MathNode("mglyph",[]);h.setAttribute("alt",c.alt);var b=ye(c.height,f),B=0;if(c.totalheight.number>0&&(B=ye(c.totalheight,f)-b,B=B.toFixed(2),h.setAttribute("valign","-"+B+"em")),h.setAttribute("height",b+B+"em"),c.width.number>0){var q=ye(c.width,f);h.setAttribute("width",q+"em")}return h.setAttribute("src",c.src),h}}),Fn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(c,f){var h=c.parser,b=c.funcName,B=Un(f[0],"size");if(h.settings.strict){var q=b[1]==="m",Me=B.value.unit==="mu";q?(Me||h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+b+" supports only mu units, "+("not "+B.value.unit+" units")),h.mode!=="math"&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+b+" works only in math mode")):Me&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+b+" doesn't support mu units")}return{type:"kern",mode:h.mode,dimension:B.value}},htmlBuilder:function(c,f){return Ht.makeGlue(c.dimension,f)},mathmlBuilder:function(c,f){var h=ye(c.dimension,f);return new sr.SpaceNode(h)}}),Fn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(c,f){var h=c.parser,b=c.funcName,B=f[0];return{type:"lap",mode:h.mode,alignment:b.slice(5),body:B}},htmlBuilder:function(c,f){var h;c.alignment==="clap"?(h=Ht.makeSpan([],[wr(c.body,f)]),h=Ht.makeSpan(["inner"],[h],f)):h=Ht.makeSpan(["inner"],[wr(c.body,f)]);var b=Ht.makeSpan(["fix"],[]),B=Ht.makeSpan([c.alignment],[h,b],f),q=Ht.makeSpan(["strut"]);return q.style.height=B.height+B.depth+"em",q.style.verticalAlign=-B.depth+"em",B.children.unshift(q),B=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:B}]},f),Ht.makeSpan(["mord"],[B],f)},mathmlBuilder:function(c,f){var h=new sr.MathNode("mpadded",[Vr(c.body,f)]);if(c.alignment!=="rlap"){var b=c.alignment==="llap"?"-1":"-0.5";h.setAttribute("lspace",b+"width")}return h.setAttribute("width","0px"),h}}),Fn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(c,f){var h=c.funcName,b=c.parser,B=b.mode;b.switchMode("math");var q=h==="\\("?"\\)":"$",Me=b.parseExpression(!1,q);return b.expect(q),b.switchMode(B),{type:"styling",mode:b.mode,style:"text",body:Me}}}),Fn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(c,f){throw new g("Mismatched "+c.funcName)}});var ui=function(c,f){switch(f.style.size){case w.DISPLAY.size:return c.display;case w.TEXT.size:return c.text;case w.SCRIPT.size:return c.script;case w.SCRIPTSCRIPT.size:return c.scriptscript;default:return c.text}};Fn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(c,f){var h=c.parser;return{type:"mathchoice",mode:h.mode,display:Ir(f[0]),text:Ir(f[1]),script:Ir(f[2]),scriptscript:Ir(f[3])}},htmlBuilder:function(c,f){var h=ui(c,f),b=Jt(h,f,!1);return Ht.makeFragment(b)},mathmlBuilder:function(c,f){var h=ui(c,f);return Ni(h,f)}});var Zs=function(c,f,h,b,B,q,Me){c=Ht.makeSpan([],[c]);var et,yt;if(f){var Xt=wr(f,b.havingStyle(B.sup()),b);yt={elem:Xt,kern:Math.max(b.fontMetrics().bigOpSpacing1,b.fontMetrics().bigOpSpacing3-Xt.depth)}}if(h){var fn=wr(h,b.havingStyle(B.sub()),b);et={elem:fn,kern:Math.max(b.fontMetrics().bigOpSpacing2,b.fontMetrics().bigOpSpacing4-fn.height)}}var Sn;if(yt&&et){var kn=b.fontMetrics().bigOpSpacing5+et.elem.height+et.elem.depth+et.kern+c.depth+Me;Sn=Ht.makeVList({positionType:"bottom",positionData:kn,children:[{type:"kern",size:b.fontMetrics().bigOpSpacing5},{type:"elem",elem:et.elem,marginLeft:-q+"em"},{type:"kern",size:et.kern},{type:"elem",elem:c},{type:"kern",size:yt.kern},{type:"elem",elem:yt.elem,marginLeft:q+"em"},{type:"kern",size:b.fontMetrics().bigOpSpacing5}]},b)}else if(et){var Kn=c.height-Me;Sn=Ht.makeVList({positionType:"top",positionData:Kn,children:[{type:"kern",size:b.fontMetrics().bigOpSpacing5},{type:"elem",elem:et.elem,marginLeft:-q+"em"},{type:"kern",size:et.kern},{type:"elem",elem:c}]},b)}else if(yt){var jn=c.depth+Me;Sn=Ht.makeVList({positionType:"bottom",positionData:jn,children:[{type:"elem",elem:c},{type:"kern",size:yt.kern},{type:"elem",elem:yt.elem,marginLeft:q+"em"},{type:"kern",size:b.fontMetrics().bigOpSpacing5}]},b)}else return c;return Ht.makeSpan(["mop","op-limits"],[Sn],b)},Qs=["\\smallint"],Ms=function(c,f){var h,b,B=!1,q,Me=er(c,"supsub");Me?(h=Me.sup,b=Me.sub,q=Un(Me.base,"op"),B=!0):q=Un(c,"op");var et=f.style,yt=!1;et.size===w.DISPLAY.size&&q.symbol&&!V.contains(Qs,q.name)&&(yt=!0);var Xt;if(q.symbol){var fn=yt?"Size2-Regular":"Size1-Regular",Sn="";if((q.name==="\\oiint"||q.name==="\\oiiint")&&(Sn=q.name.substr(1),q.name=Sn==="oiint"?"\\iint":"\\iiint"),Xt=Ht.makeSymbol(q.name,fn,"math",f,["mop","op-symbol",yt?"large-op":"small-op"]),Sn.length>0){var kn=Xt.italic,Kn=Ht.staticSvg(Sn+"Size"+(yt?"2":"1"),f);Xt=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Xt,shift:0},{type:"elem",elem:Kn,shift:yt?.08:0}]},f),q.name="\\"+Sn,Xt.classes.unshift("mop"),Xt.italic=kn}}else if(q.body){var jn=Jt(q.body,f,!0);jn.length===1&&jn[0]instanceof _e?(Xt=jn[0],Xt.classes[0]="mop"):Xt=Ht.makeSpan(["mop"],Ht.tryCombineChars(jn),f)}else{for(var ar=[],qn=1;qn<q.name.length;qn++)ar.push(Ht.mathsym(q.name[qn],q.mode,f));Xt=Ht.makeSpan(["mop"],ar,f)}var rr=0,dr=0;return(Xt instanceof _e||q.name==="\\oiint"||q.name==="\\oiiint")&&!q.suppressBaseShift&&(rr=(Xt.height-Xt.depth)/2-f.fontMetrics().axisHeight,dr=Xt.italic),B?Zs(Xt,h,b,f,et,dr,rr):(rr&&(Xt.style.position="relative",Xt.style.top=rr+"em"),Xt)},Js=function(c,f){var h;if(c.symbol)h=new Dr("mo",[wi(c.name,c.mode)]),V.contains(Qs,c.name)&&h.setAttribute("largeop","false");else if(c.body)h=new Dr("mo",Mi(c.body,f));else{h=new Dr("mi",[new fr(c.name.slice(1))]);var b=new Dr("mo",[wi("\u2061","text")]);c.parentIsSupSub?h=new Dr("mo",[h,b]):h=Ei([h,b])}return h},_l={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Fn({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(c,f){var h=c.parser,b=c.funcName,B=b;return B.length===1&&(B=_l[B]),{type:"op",mode:h.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:B}},htmlBuilder:Ms,mathmlBuilder:Js}),Fn({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(c,f){var h=c.parser,b=f[0];return{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ir(b)}},htmlBuilder:Ms,mathmlBuilder:Js});var rl={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Fn({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(c){var f=c.parser,h=c.funcName;return{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:Ms,mathmlBuilder:Js}),Fn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(c){var f=c.parser,h=c.funcName;return{type:"op",mode:f.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:Ms,mathmlBuilder:Js}),Fn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(c){var f=c.parser,h=c.funcName,b=h;return b.length===1&&(b=rl[b]),{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:b}},htmlBuilder:Ms,mathmlBuilder:Js});var xo=function(c,f){var h,b,B=!1,q,Me=er(c,"supsub");Me?(h=Me.sup,b=Me.sub,q=Un(Me.base,"operatorname"),B=!0):q=Un(c,"operatorname");var et;if(q.body.length>0){for(var yt=q.body.map(function(kn){var Kn=kn.text;return typeof Kn=="string"?{type:"textord",mode:kn.mode,text:Kn}:kn}),Xt=Jt(yt,f.withFont("mathrm"),!0),fn=0;fn<Xt.length;fn++){var Sn=Xt[fn];Sn instanceof _e&&(Sn.text=Sn.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}et=Ht.makeSpan(["mop"],Xt,f)}else et=Ht.makeSpan(["mop"],[],f);return B?Zs(et,h,b,f,f.style,0,0):et},lo=function(c,f){for(var h=Mi(c.body,f.withFont("mathrm")),b=!0,B=0;B<h.length;B++){var q=h[B];if(!(q instanceof sr.SpaceNode))if(q instanceof sr.MathNode)switch(q.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Me=q.children[0];q.children.length===1&&Me instanceof sr.TextNode?Me.text=Me.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):b=!1;break}default:b=!1}else b=!1}if(b){var et=h.map(function(fn){return fn.toText()}).join("");h=[new sr.TextNode(et)]}var yt=new sr.MathNode("mi",h);yt.setAttribute("mathvariant","normal");var Xt=new sr.MathNode("mo",[wi("\u2061","text")]);return c.parentIsSupSub?new sr.MathNode("mo",[yt,Xt]):sr.newDocumentFragment([yt,Xt])};Fn({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(c,f){var h=c.parser,b=c.funcName,B=f[0];return{type:"operatorname",mode:h.mode,body:Ir(B),alwaysHandleSupSub:b==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:xo,mathmlBuilder:lo}),yr({type:"ordgroup",htmlBuilder:function(c,f){return c.semisimple?Ht.makeFragment(Jt(c.body,f,!1)):Ht.makeSpan(["mord"],Jt(c.body,f,!0),f)},mathmlBuilder:function(c,f){return Ni(c.body,f,!0)}}),Fn({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(c,f){var h=c.parser,b=f[0];return{type:"overline",mode:h.mode,body:b}},htmlBuilder:function(c,f){var h=wr(c.body,f.havingCrampedStyle()),b=Ht.makeLineSpan("overline-line",f),B=f.fontMetrics().defaultRuleThickness,q=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:3*B},{type:"elem",elem:b},{type:"kern",size:B}]},f);return Ht.makeSpan(["mord","overline"],[q],f)},mathmlBuilder:function(c,f){var h=new sr.MathNode("mo",[new sr.TextNode("\u203E")]);h.setAttribute("stretchy","true");var b=new sr.MathNode("mover",[Vr(c.body,f),h]);return b.setAttribute("accent","true"),b}}),Fn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(c,f){var h=c.parser,b=f[0];return{type:"phantom",mode:h.mode,body:Ir(b)}},htmlBuilder:function(c,f){var h=Jt(c.body,f.withPhantom(),!1);return Ht.makeFragment(h)},mathmlBuilder:function(c,f){var h=Mi(c.body,f);return new sr.MathNode("mphantom",h)}}),Fn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(c,f){var h=c.parser,b=f[0];return{type:"hphantom",mode:h.mode,body:b}},htmlBuilder:function(c,f){var h=Ht.makeSpan([],[wr(c.body,f.withPhantom())]);if(h.height=0,h.depth=0,h.children)for(var b=0;b<h.children.length;b++)h.children[b].height=0,h.children[b].depth=0;return h=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},f),Ht.makeSpan(["mord"],[h],f)},mathmlBuilder:function(c,f){var h=Mi(Ir(c.body),f),b=new sr.MathNode("mphantom",h),B=new sr.MathNode("mpadded",[b]);return B.setAttribute("height","0px"),B.setAttribute("depth","0px"),B}}),Fn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(c,f){var h=c.parser,b=f[0];return{type:"vphantom",mode:h.mode,body:b}},htmlBuilder:function(c,f){var h=Ht.makeSpan(["inner"],[wr(c.body,f.withPhantom())]),b=Ht.makeSpan(["fix"],[]);return Ht.makeSpan(["mord","rlap"],[h,b],f)},mathmlBuilder:function(c,f){var h=Mi(Ir(c.body),f),b=new sr.MathNode("mphantom",h),B=new sr.MathNode("mpadded",[b]);return B.setAttribute("width","0px"),B}}),Fn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(c,f){var h=c.parser,b=Un(f[0],"size").value,B=f[1];return{type:"raisebox",mode:h.mode,dy:b,body:B}},htmlBuilder:function(c,f){var h=wr(c.body,f),b=ye(c.dy,f);return Ht.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:h}]},f)},mathmlBuilder:function(c,f){var h=new sr.MathNode("mpadded",[Vr(c.body,f)]),b=c.dy.number+c.dy.unit;return h.setAttribute("voffset",b),h}}),Fn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(c,f,h){var b=c.parser,B=h[0],q=Un(f[0],"size"),Me=Un(f[1],"size");return{type:"rule",mode:b.mode,shift:B&&Un(B,"size").value,width:q.value,height:Me.value}},htmlBuilder:function(c,f){var h=Ht.makeSpan(["mord","rule"],[],f),b=ye(c.width,f),B=ye(c.height,f),q=c.shift?ye(c.shift,f):0;return h.style.borderRightWidth=b+"em",h.style.borderTopWidth=B+"em",h.style.bottom=q+"em",h.width=b,h.height=B+q,h.depth=-q,h.maxFontSize=B*1.125*f.sizeMultiplier,h},mathmlBuilder:function(c,f){var h=ye(c.width,f),b=ye(c.height,f),B=c.shift?ye(c.shift,f):0,q=f.color&&f.getColor()||"black",Me=new sr.MathNode("mspace");Me.setAttribute("mathbackground",q),Me.setAttribute("width",h+"em"),Me.setAttribute("height",b+"em");var et=new sr.MathNode("mpadded",[Me]);return B>=0?et.setAttribute("height","+"+B+"em"):(et.setAttribute("height",B+"em"),et.setAttribute("depth","+"+-B+"em")),et.setAttribute("voffset",B+"em"),et}});function qs(U,c,f){for(var h=Jt(U,c,!1),b=c.sizeMultiplier/f.sizeMultiplier,B=0;B<h.length;B++){var q=h[B].classes.indexOf("sizing");q<0?Array.prototype.push.apply(h[B].classes,c.sizingClasses(f)):h[B].classes[q+1]==="reset-size"+c.size&&(h[B].classes[q+1]="reset-size"+f.size),h[B].height*=b,h[B].depth*=b}return Ht.makeFragment(h)}var Fo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Cl=function(c,f){var h=f.havingSize(c.size);return qs(c.body,h,f)};Fn({type:"sizing",names:Fo,props:{numArgs:0,allowedInText:!0},handler:function(c,f){var h=c.breakOnTokenText,b=c.funcName,B=c.parser,q=B.parseExpression(!1,h);return{type:"sizing",mode:B.mode,size:Fo.indexOf(b)+1,body:q}},htmlBuilder:Cl,mathmlBuilder:function(c,f){var h=f.havingSize(c.size),b=Mi(c.body,h),B=new sr.MathNode("mstyle",b);return B.setAttribute("mathsize",h.sizeMultiplier+"em"),B}}),Fn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(c,f,h){var b=c.parser,B=!1,q=!1,Me=h[0]&&Un(h[0],"ordgroup");if(Me)for(var et="",yt=0;yt<Me.body.length;++yt){var Xt=Me.body[yt];if(et=Xt.text,et==="t")B=!0;else if(et==="b")q=!0;else{B=!1,q=!1;break}}else B=!0,q=!0;var fn=f[0];return{type:"smash",mode:b.mode,body:fn,smashHeight:B,smashDepth:q}},htmlBuilder:function(c,f){var h=Ht.makeSpan([],[wr(c.body,f)]);if(!c.smashHeight&&!c.smashDepth)return h;if(c.smashHeight&&(h.height=0,h.children))for(var b=0;b<h.children.length;b++)h.children[b].height=0;if(c.smashDepth&&(h.depth=0,h.children))for(var B=0;B<h.children.length;B++)h.children[B].depth=0;var q=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},f);return Ht.makeSpan(["mord"],[q],f)},mathmlBuilder:function(c,f){var h=new sr.MathNode("mpadded",[Vr(c.body,f)]);return c.smashHeight&&h.setAttribute("height","0px"),c.smashDepth&&h.setAttribute("depth","0px"),h}}),Fn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(c,f,h){var b=c.parser,B=h[0],q=f[0];return{type:"sqrt",mode:b.mode,body:q,index:B}},htmlBuilder:function(c,f){var h=wr(c.body,f.havingCrampedStyle());h.height===0&&(h.height=f.fontMetrics().xHeight),h=Ht.wrapFragment(h,f);var b=f.fontMetrics(),B=b.defaultRuleThickness,q=B;f.style.id<w.TEXT.id&&(q=f.fontMetrics().xHeight);var Me=B+q/4,et=h.height+h.depth+Me+B,yt=mi.sqrtImage(et,f),Xt=yt.span,fn=yt.ruleWidth,Sn=yt.advanceWidth,kn=Xt.height-fn;kn>h.height+h.depth+Me&&(Me=(Me+kn-h.height-h.depth)/2);var Kn=Xt.height-h.height-Me-fn;h.style.paddingLeft=Sn+"em";var jn=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h,wrapperClasses:["svg-align"]},{type:"kern",size:-(h.height+Kn)},{type:"elem",elem:Xt},{type:"kern",size:fn}]},f);if(c.index){var ar=f.havingStyle(w.SCRIPTSCRIPT),qn=wr(c.index,ar,f),rr=.6*(jn.height-jn.depth),dr=Ht.makeVList({positionType:"shift",positionData:-rr,children:[{type:"elem",elem:qn}]},f),Tr=Ht.makeSpan(["root"],[dr]);return Ht.makeSpan(["mord","sqrt"],[Tr,jn],f)}else return Ht.makeSpan(["mord","sqrt"],[jn],f)},mathmlBuilder:function(c,f){var h=c.body,b=c.index;return b?new sr.MathNode("mroot",[Vr(h,f),Vr(b,f)]):new sr.MathNode("msqrt",[Vr(h,f)])}});var $o={display:w.DISPLAY,text:w.TEXT,script:w.SCRIPT,scriptscript:w.SCRIPTSCRIPT};Fn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(c,f){var h=c.breakOnTokenText,b=c.funcName,B=c.parser,q=B.parseExpression(!0,h),Me=b.slice(1,b.length-5);return{type:"styling",mode:B.mode,style:Me,body:q}},htmlBuilder:function(c,f){var h=$o[c.style],b=f.havingStyle(h).withFont("");return qs(c.body,b,f)},mathmlBuilder:function(c,f){var h=$o[c.style],b=f.havingStyle(h),B=Mi(c.body,b),q=new sr.MathNode("mstyle",B),Me={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},et=Me[c.style];return q.setAttribute("scriptlevel",et[0]),q.setAttribute("displaystyle",et[1]),q}});var wl=function(c,f){var h=c.base;if(h)if(h.type==="op"){var b=h.limits&&(f.style.size===w.DISPLAY.size||h.alwaysHandleSupSub);return b?Ms:null}else if(h.type==="operatorname"){var B=h.alwaysHandleSupSub&&(f.style.size===w.DISPLAY.size||h.limits);return B?xo:null}else{if(h.type==="accent")return V.isCharacterBox(h.base)?br:null;if(h.type==="horizBrace"){var q=!c.sub;return q===h.isOver?Bo:null}else return null}else return null};yr({type:"supsub",htmlBuilder:function(c,f){var h=wl(c,f);if(h)return h(c,f);var b=c.base,B=c.sup,q=c.sub,Me=wr(b,f),et,yt,Xt=f.fontMetrics(),fn=0,Sn=0,kn=b&&V.isCharacterBox(b);if(B){var Kn=f.havingStyle(f.style.sup());et=wr(B,Kn,f),kn||(fn=Me.height-Kn.fontMetrics().supDrop*Kn.sizeMultiplier/f.sizeMultiplier)}if(q){var jn=f.havingStyle(f.style.sub());yt=wr(q,jn,f),kn||(Sn=Me.depth+jn.fontMetrics().subDrop*jn.sizeMultiplier/f.sizeMultiplier)}var ar;f.style===w.DISPLAY?ar=Xt.sup1:f.style.cramped?ar=Xt.sup3:ar=Xt.sup2;var qn=f.sizeMultiplier,rr=.5/Xt.ptPerEm/qn+"em",dr=null;if(yt){var Tr=c.base&&c.base.type==="op"&&c.base.name&&(c.base.name==="\\oiint"||c.base.name==="\\oiiint");(Me instanceof _e||Tr)&&(dr=-Me.italic+"em")}var Or;if(et&&yt){fn=Math.max(fn,ar,et.depth+.25*Xt.xHeight),Sn=Math.max(Sn,Xt.sub2);var hr=Xt.defaultRuleThickness,Gr=4*hr;if(fn-et.depth-(yt.height-Sn)<Gr){Sn=Gr-(fn-et.depth)+yt.height;var qr=.8*Xt.xHeight-(fn-et.depth);qr>0&&(fn+=qr,Sn-=qr)}var Ri=[{type:"elem",elem:yt,shift:Sn,marginRight:rr,marginLeft:dr},{type:"elem",elem:et,shift:-fn,marginRight:rr}];Or=Ht.makeVList({positionType:"individualShift",children:Ri},f)}else if(yt){Sn=Math.max(Sn,Xt.sub1,yt.height-.8*Xt.xHeight);var bi=[{type:"elem",elem:yt,marginLeft:dr,marginRight:rr}];Or=Ht.makeVList({positionType:"shift",positionData:Sn,children:bi},f)}else if(et)fn=Math.max(fn,ar,et.depth+.25*Xt.xHeight),Or=Ht.makeVList({positionType:"shift",positionData:-fn,children:[{type:"elem",elem:et,marginRight:rr}]},f);else throw new Error("supsub must have either sup or sub.");var hn=xr(Me,"right")||"mord";return Ht.makeSpan([hn],[Me,Ht.makeSpan(["msupsub"],[Or])],f)},mathmlBuilder:function(c,f){var h=!1,b,B,q=er(c.base,"horizBrace");q&&(B=!!c.sup,B===q.isOver&&(h=!0,b=q.isOver)),c.base&&(c.base.type==="op"||c.base.type==="operatorname")&&(c.base.parentIsSupSub=!0);var Me=[Vr(c.base,f)];c.sub&&Me.push(Vr(c.sub,f)),c.sup&&Me.push(Vr(c.sup,f));var et;if(h)et=b?"mover":"munder";else if(c.sub)if(c.sup){var fn=c.base;fn&&fn.type==="op"&&fn.limits&&f.style===w.DISPLAY||fn&&fn.type==="operatorname"&&fn.alwaysHandleSupSub&&(f.style===w.DISPLAY||fn.limits)?et="munderover":et="msubsup"}else{var Xt=c.base;Xt&&Xt.type==="op"&&Xt.limits&&(f.style===w.DISPLAY||Xt.alwaysHandleSupSub)||Xt&&Xt.type==="operatorname"&&Xt.alwaysHandleSupSub&&(Xt.limits||f.style===w.DISPLAY)?et="munder":et="msub"}else{var yt=c.base;yt&&yt.type==="op"&&yt.limits&&(f.style===w.DISPLAY||yt.alwaysHandleSupSub)||yt&&yt.type==="operatorname"&&yt.alwaysHandleSupSub&&(yt.limits||f.style===w.DISPLAY)?et="mover":et="msup"}var Sn=new sr.MathNode(et,Me);return Sn}}),yr({type:"atom",htmlBuilder:function(c,f){return Ht.mathsym(c.text,c.mode,f,["m"+c.family])},mathmlBuilder:function(c,f){var h=new sr.MathNode("mo",[wi(c.text,c.mode)]);if(c.family==="bin"){var b=Wi(c,f);b==="bold-italic"&&h.setAttribute("mathvariant",b)}else c.family==="punct"?h.setAttribute("separator","true"):(c.family==="open"||c.family==="close")&&h.setAttribute("stretchy","false");return h}});var Eo={mi:"italic",mn:"normal",mtext:"normal"};yr({type:"mathord",htmlBuilder:function(c,f){return Ht.makeOrd(c,f,"mathord")},mathmlBuilder:function(c,f){var h=new sr.MathNode("mi",[wi(c.text,c.mode,f)]),b=Wi(c,f)||"italic";return b!==Eo[h.type]&&h.setAttribute("mathvariant",b),h}}),yr({type:"textord",htmlBuilder:function(c,f){return Ht.makeOrd(c,f,"textord")},mathmlBuilder:function(c,f){var h=wi(c.text,c.mode,f),b=Wi(c,f)||"normal",B;return c.mode==="text"?B=new sr.MathNode("mtext",[h]):/[0-9]/.test(c.text)?B=new sr.MathNode("mn",[h]):c.text==="\\prime"?B=new sr.MathNode("mo",[h]):B=new sr.MathNode("mi",[h]),b!==Eo[B.type]&&B.setAttribute("mathvariant",b),B}});var po={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},eo={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};yr({type:"spacing",htmlBuilder:function(c,f){if(eo.hasOwnProperty(c.text)){var h=eo[c.text].className||"";if(c.mode==="text"){var b=Ht.makeOrd(c,f,"textord");return b.classes.push(h),b}else return Ht.makeSpan(["mspace",h],[Ht.mathsym(c.text,c.mode,f)],f)}else{if(po.hasOwnProperty(c.text))return Ht.makeSpan(["mspace",po[c.text]],[],f);throw new g('Unknown type of space "'+c.text+'"')}},mathmlBuilder:function(c,f){var h;if(eo.hasOwnProperty(c.text))h=new sr.MathNode("mtext",[new sr.TextNode("\xA0")]);else{if(po.hasOwnProperty(c.text))return new sr.MathNode("mspace");throw new g('Unknown type of space "'+c.text+'"')}return h}});var uo=function(){var c=new sr.MathNode("mtd",[]);return c.setAttribute("width","50%"),c};yr({type:"tag",mathmlBuilder:function(c,f){var h=new sr.MathNode("mtable",[new sr.MathNode("mtr",[uo(),new sr.MathNode("mtd",[Ni(c.body,f)]),uo(),new sr.MathNode("mtd",[Ni(c.tag,f)])])]);return h.setAttribute("width","100%"),h}});var zo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Zo={"\\textbf":"textbf","\\textmd":"textmd"},Uo={"\\textit":"textit","\\textup":"textup"},So=function(c,f){var h=c.font;return h?zo[h]?f.withTextFontFamily(zo[h]):Zo[h]?f.withTextFontWeight(Zo[h]):f.withTextFontShape(Uo[h]):f};Fn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(c,f){var h=c.parser,b=c.funcName,B=f[0];return{type:"text",mode:h.mode,body:Ir(B),font:b}},htmlBuilder:function(c,f){var h=So(c,f),b=Jt(c.body,h,!0);return Ht.makeSpan(["mord","text"],Ht.tryCombineChars(b),h)},mathmlBuilder:function(c,f){var h=So(c,f);return Ni(c.body,h)}}),Fn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(c,f){var h=c.parser;return{type:"underline",mode:h.mode,body:f[0]}},htmlBuilder:function(c,f){var h=wr(c.body,f),b=Ht.makeLineSpan("underline-line",f),B=f.fontMetrics().defaultRuleThickness,q=Ht.makeVList({positionType:"top",positionData:h.height,children:[{type:"kern",size:B},{type:"elem",elem:b},{type:"kern",size:3*B},{type:"elem",elem:h}]},f);return Ht.makeSpan(["mord","underline"],[q],f)},mathmlBuilder:function(c,f){var h=new sr.MathNode("mo",[new sr.TextNode("\u203E")]);h.setAttribute("stretchy","true");var b=new sr.MathNode("munder",[Vr(c.body,f),h]);return b.setAttribute("accentunder","true"),b}}),Fn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(c,f,h){throw new g("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(c,f){for(var h=Ko(c),b=[],B=f.havingStyle(f.style.text()),q=0;q<h.length;q++){var Me=h[q];Me==="~"&&(Me="\\textasciitilde"),b.push(Ht.makeSymbol(Me,"Typewriter-Regular",c.mode,B,["mord","texttt"]))}return Ht.makeSpan(["mord","text"].concat(B.sizingClasses(f)),Ht.tryCombineChars(b),B)},mathmlBuilder:function(c,f){var h=new sr.TextNode(Ko(c)),b=new sr.MathNode("mtext",[h]);return b.setAttribute("mathvariant","monospace"),b}});var Ko=function(c){return c.body.replace(/ /g,c.star?"\u2423":"\xA0")},_o=nr,co=_o,jo=`[ \r
|
|
|
]`,Co="\\\\[a-zA-Z@]+",il="\\\\[^\uD800-\uDFFF]",al=""+Co+jo+"*",sl=new RegExp("^("+Co+")"+jo+"*$"),wo="[\u0300-\u036F]",Tl=new RegExp(wo+"+$"),go="("+jo+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(wo+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(wo+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+al)+("|"+il+")"),ol=function(){function U(f,h){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=f,this.settings=h,this.tokenRegex=new RegExp(go,"g"),this.catcodes={"%":14}}var c=U.prototype;return c.setCatcode=function(h,b){this.catcodes[h]=b},c.lex=function(){var h=this.input,b=this.tokenRegex.lastIndex;if(b===h.length)return new he("EOF",new L(this,b,b));var B=this.tokenRegex.exec(h);if(B===null||B.index!==b)throw new g("Unexpected character: '"+h[b]+"'",new he(h[b],new L(this,b,b+1)));var q=B[2]||" ";if(this.catcodes[q]===14){var Me=h.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return Me===-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=Me+1,this.lex()}var et=q.match(sl);return et&&(q=et[1]),new he(q,new L(this,b,this.tokenRegex.lastIndex))},U}(),ll=function(){function U(f,h){f===void 0&&(f={}),h===void 0&&(h={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=h,this.builtins=f,this.undefStack=[]}var c=U.prototype;return c.beginGroup=function(){this.undefStack.push({})},c.endGroup=function(){if(this.undefStack.length===0)throw new g("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var h=this.undefStack.pop();for(var b in h)h.hasOwnProperty(b)&&(h[b]===void 0?delete this.current[b]:this.current[b]=h[b])},c.has=function(h){return this.current.hasOwnProperty(h)||this.builtins.hasOwnProperty(h)},c.get=function(h){return this.current.hasOwnProperty(h)?this.current[h]:this.builtins[h]},c.set=function(h,b,B){if(B===void 0&&(B=!1),B){for(var q=0;q<this.undefStack.length;q++)delete this.undefStack[q][h];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][h]=b)}else{var Me=this.undefStack[this.undefStack.length-1];Me&&!Me.hasOwnProperty(h)&&(Me[h]=this.current[h])}this.current[h]=b},U}(),Ho={},ul=Ho;function Zt(U,c){Ho[U]=c}Zt("\\@firstoftwo",function(U){var c=U.consumeArgs(2);return{tokens:c[0],numArgs:0}}),Zt("\\@secondoftwo",function(U){var c=U.consumeArgs(2);return{tokens:c[1],numArgs:0}}),Zt("\\@ifnextchar",function(U){var c=U.consumeArgs(3),f=U.future();return c[0].length===1&&c[0][0].text===f.text?{tokens:c[1],numArgs:0}:{tokens:c[2],numArgs:0}}),Zt("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Zt("\\TextOrMath",function(U){var c=U.consumeArgs(2);return U.mode==="text"?{tokens:c[0],numArgs:0}:{tokens:c[1],numArgs:0}});var Wo={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};Zt("\\char",function(U){var c=U.popToken(),f,h="";if(c.text==="'")f=8,c=U.popToken();else if(c.text==='"')f=16,c=U.popToken();else if(c.text==="`")if(c=U.popToken(),c.text[0]==="\\")h=c.text.charCodeAt(1);else{if(c.text==="EOF")throw new g("\\char` missing argument");h=c.text.charCodeAt(0)}else f=10;if(f){if(h=Wo[c.text],h==null||h>=f)throw new g("Invalid base-"+f+" digit "+c.text);for(var b;(b=Wo[U.future().text])!=null&&b<f;)h*=f,h+=b,U.popToken()}return"\\@char{"+h+"}"});var To=function(c,f){var h=c.consumeArgs(1)[0];if(h.length!==1)throw new g("\\gdef's first argument must be a macro name");var b=h[0].text,B=0;for(h=c.consumeArgs(1)[0];h.length===1&&h[0].text==="#";){if(h=c.consumeArgs(1)[0],h.length!==1)throw new g('Invalid argument number length "'+h.length+'"');if(!/^[1-9]$/.test(h[0].text))throw new g('Invalid argument number "'+h[0].text+'"');if(B++,parseInt(h[0].text)!==B)throw new g('Argument number "'+h[0].text+'" out of order');h=c.consumeArgs(1)[0]}return c.macros.set(b,{tokens:h,numArgs:B},f),""};Zt("\\gdef",function(U){return To(U,!0)}),Zt("\\def",function(U){return To(U,!1)}),Zt("\\global",function(U){var c=U.consumeArgs(1)[0];if(c.length!==1)throw new g("Invalid command after \\global");var f=c[0].text;if(f==="\\def")return To(U,!0);throw new g("Invalid command '"+f+"' after \\global")});var Ao=function(c,f,h){var b=c.consumeArgs(1)[0];if(b.length!==1)throw new g("\\newcommand's first argument must be a macro name");var B=b[0].text,q=c.isDefined(B);if(q&&!f)throw new g("\\newcommand{"+B+"} attempting to redefine "+(B+"; use \\renewcommand"));if(!q&&!h)throw new g("\\renewcommand{"+B+"} when command "+B+" does not yet exist; use \\newcommand");var Me=0;if(b=c.consumeArgs(1)[0],b.length===1&&b[0].text==="["){for(var et="",yt=c.expandNextToken();yt.text!=="]"&&yt.text!=="EOF";)et+=yt.text,yt=c.expandNextToken();if(!et.match(/^\s*[0-9]+\s*$/))throw new g("Invalid number of arguments: "+et);Me=parseInt(et),b=c.consumeArgs(1)[0]}return c.macros.set(B,{tokens:b,numArgs:Me}),""};Zt("\\newcommand",function(U){return Ao(U,!1,!0)}),Zt("\\renewcommand",function(U){return Ao(U,!0,!1)}),Zt("\\providecommand",function(U){return Ao(U,!0,!0)}),Zt("\\bgroup","{"),Zt("\\egroup","}"),Zt("\\lq","`"),Zt("\\rq","'"),Zt("\\aa","\\r a"),Zt("\\AA","\\r A"),Zt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Zt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Zt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Zt("\u212C","\\mathscr{B}"),Zt("\u2130","\\mathscr{E}"),Zt("\u2131","\\mathscr{F}"),Zt("\u210B","\\mathscr{H}"),Zt("\u2110","\\mathscr{I}"),Zt("\u2112","\\mathscr{L}"),Zt("\u2133","\\mathscr{M}"),Zt("\u211B","\\mathscr{R}"),Zt("\u212D","\\mathfrak{C}"),Zt("\u210C","\\mathfrak{H}"),Zt("\u2128","\\mathfrak{Z}"),Zt("\\Bbbk","\\Bbb{k}"),Zt("\xB7","\\cdotp"),Zt("\\llap","\\mathllap{\\textrm{#1}}"),Zt("\\rlap","\\mathrlap{\\textrm{#1}}"),Zt("\\clap","\\mathclap{\\textrm{#1}}"),Zt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Zt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Zt("\\ne","\\neq"),Zt("\u2260","\\neq"),Zt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Zt("\u2209","\\notin"),Zt("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Zt("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Zt("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Zt("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Zt("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Zt("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Zt("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Zt("\u27C2","\\perp"),Zt("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Zt("\u220C","\\notni"),Zt("\u231C","\\ulcorner"),Zt("\u231D","\\urcorner"),Zt("\u231E","\\llcorner"),Zt("\u231F","\\lrcorner"),Zt("\xA9","\\copyright"),Zt("\xAE","\\textregistered"),Zt("\uFE0F","\\textregistered"),Zt("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Zt("\u22EE","\\vdots"),Zt("\\varGamma","\\mathit{\\Gamma}"),Zt("\\varDelta","\\mathit{\\Delta}"),Zt("\\varTheta","\\mathit{\\Theta}"),Zt("\\varLambda","\\mathit{\\Lambda}"),Zt("\\varXi","\\mathit{\\Xi}"),Zt("\\varPi","\\mathit{\\Pi}"),Zt("\\varSigma","\\mathit{\\Sigma}"),Zt("\\varUpsilon","\\mathit{\\Upsilon}"),Zt("\\varPhi","\\mathit{\\Phi}"),Zt("\\varPsi","\\mathit{\\Psi}"),Zt("\\varOmega","\\mathit{\\Omega}"),Zt("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Zt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Zt("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Zt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Zt("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Zt("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Vo={",":"\\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"};Zt("\\dots",function(U){var c="\\dotso",f=U.expandAfterFuture().text;return f in Vo?c=Vo[f]:(f.substr(0,4)==="\\not"||f in gt.math&&V.contains(["bin","rel"],gt.math[f].group))&&(c="\\dotsb"),c});var to={")":!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};Zt("\\dotso",function(U){var c=U.future().text;return c in to?"\\ldots\\,":"\\ldots"}),Zt("\\dotsc",function(U){var c=U.future().text;return c in to&&c!==","?"\\ldots\\,":"\\ldots"}),Zt("\\cdots",function(U){var c=U.future().text;return c in to?"\\@cdots\\,":"\\@cdots"}),Zt("\\dotsb","\\cdots"),Zt("\\dotsm","\\cdots"),Zt("\\dotsi","\\!\\cdots"),Zt("\\dotsx","\\ldots\\,"),Zt("\\DOTSI","\\relax"),Zt("\\DOTSB","\\relax"),Zt("\\DOTSX","\\relax"),Zt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Zt("\\,","\\tmspace+{3mu}{.1667em}"),Zt("\\thinspace","\\,"),Zt("\\>","\\mskip{4mu}"),Zt("\\:","\\tmspace+{4mu}{.2222em}"),Zt("\\medspace","\\:"),Zt("\\;","\\tmspace+{5mu}{.2777em}"),Zt("\\thickspace","\\;"),Zt("\\!","\\tmspace-{3mu}{.1667em}"),Zt("\\negthinspace","\\!"),Zt("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Zt("\\negthickspace","\\tmspace-{5mu}{.277em}"),Zt("\\enspace","\\kern.5em "),Zt("\\enskip","\\hskip.5em\\relax"),Zt("\\quad","\\hskip1em\\relax"),Zt("\\qquad","\\hskip2em\\relax"),Zt("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Zt("\\tag@paren","\\tag@literal{({#1})}"),Zt("\\tag@literal",function(U){if(U.macros.get("\\df@tag"))throw new g("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Zt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Zt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Zt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Zt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Zt("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Zt("\\\\","\\newline"),Zt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var bs=de["Main-Regular"][84][1]-.7*de["Main-Regular"][65][1]+"em";Zt("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+bs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Zt("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+bs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Zt("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Zt("\\@hspace","\\hskip #1\\relax"),Zt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Zt("\\ordinarycolon",":"),Zt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Zt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Zt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Zt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Zt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Zt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Zt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Zt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Zt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Zt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Zt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Zt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Zt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Zt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Zt("\u2237","\\dblcolon"),Zt("\u2239","\\eqcolon"),Zt("\u2254","\\coloneqq"),Zt("\u2255","\\eqqcolon"),Zt("\u2A74","\\Coloneqq"),Zt("\\ratio","\\vcentcolon"),Zt("\\coloncolon","\\dblcolon"),Zt("\\colonequals","\\coloneqq"),Zt("\\coloncolonequals","\\Coloneqq"),Zt("\\equalscolon","\\eqqcolon"),Zt("\\equalscoloncolon","\\Eqqcolon"),Zt("\\colonminus","\\coloneq"),Zt("\\coloncolonminus","\\Coloneq"),Zt("\\minuscolon","\\eqcolon"),Zt("\\minuscoloncolon","\\Eqcolon"),Zt("\\coloncolonapprox","\\Colonapprox"),Zt("\\coloncolonsim","\\Colonsim"),Zt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Zt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Zt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Zt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Zt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Zt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Zt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Zt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Zt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Zt("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Zt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Zt("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Zt("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Zt("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Zt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Zt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Zt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Zt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Zt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Zt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Zt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Zt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Zt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Zt("\u27E6","\\llbracket"),Zt("\u27E7","\\rrbracket"),Zt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Zt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Zt("\u2983","\\lBrace"),Zt("\u2984","\\rBrace"),Zt("\\darr","\\downarrow"),Zt("\\dArr","\\Downarrow"),Zt("\\Darr","\\Downarrow"),Zt("\\lang","\\langle"),Zt("\\rang","\\rangle"),Zt("\\uarr","\\uparrow"),Zt("\\uArr","\\Uparrow"),Zt("\\Uarr","\\Uparrow"),Zt("\\N","\\mathbb{N}"),Zt("\\R","\\mathbb{R}"),Zt("\\Z","\\mathbb{Z}"),Zt("\\alef","\\aleph"),Zt("\\alefsym","\\aleph"),Zt("\\Alpha","\\mathrm{A}"),Zt("\\Beta","\\mathrm{B}"),Zt("\\bull","\\bullet"),Zt("\\Chi","\\mathrm{X}"),Zt("\\clubs","\\clubsuit"),Zt("\\cnums","\\mathbb{C}"),Zt("\\Complex","\\mathbb{C}"),Zt("\\Dagger","\\ddagger"),Zt("\\diamonds","\\diamondsuit"),Zt("\\empty","\\emptyset"),Zt("\\Epsilon","\\mathrm{E}"),Zt("\\Eta","\\mathrm{H}"),Zt("\\exist","\\exists"),Zt("\\harr","\\leftrightarrow"),Zt("\\hArr","\\Leftrightarrow"),Zt("\\Harr","\\Leftrightarrow"),Zt("\\hearts","\\heartsuit"),Zt("\\image","\\Im"),Zt("\\infin","\\infty"),Zt("\\Iota","\\mathrm{I}"),Zt("\\isin","\\in"),Zt("\\Kappa","\\mathrm{K}"),Zt("\\larr","\\leftarrow"),Zt("\\lArr","\\Leftarrow"),Zt("\\Larr","\\Leftarrow"),Zt("\\lrarr","\\leftrightarrow"),Zt("\\lrArr","\\Leftrightarrow"),Zt("\\Lrarr","\\Leftrightarrow"),Zt("\\Mu","\\mathrm{M}"),Zt("\\natnums","\\mathbb{N}"),Zt("\\Nu","\\mathrm{N}"),Zt("\\Omicron","\\mathrm{O}"),Zt("\\plusmn","\\pm"),Zt("\\rarr","\\rightarrow"),Zt("\\rArr","\\Rightarrow"),Zt("\\Rarr","\\Rightarrow"),Zt("\\real","\\Re"),Zt("\\reals","\\mathbb{R}"),Zt("\\Reals","\\mathbb{R}"),Zt("\\Rho","\\mathrm{P}"),Zt("\\sdot","\\cdot"),Zt("\\sect","\\S"),Zt("\\spades","\\spadesuit"),Zt("\\sub","\\subset"),Zt("\\sube","\\subseteq"),Zt("\\supe","\\supseteq"),Zt("\\Tau","\\mathrm{T}"),Zt("\\thetasym","\\vartheta"),Zt("\\weierp","\\wp"),Zt("\\Zeta","\\mathrm{Z}"),Zt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Zt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Zt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Zt("\\blue","\\textcolor{##6495ed}{#1}"),Zt("\\orange","\\textcolor{##ffa500}{#1}"),Zt("\\pink","\\textcolor{##ff00af}{#1}"),Zt("\\red","\\textcolor{##df0030}{#1}"),Zt("\\green","\\textcolor{##28ae7b}{#1}"),Zt("\\gray","\\textcolor{gray}{#1}"),Zt("\\purple","\\textcolor{##9d38bd}{#1}"),Zt("\\blueA","\\textcolor{##ccfaff}{#1}"),Zt("\\blueB","\\textcolor{##80f6ff}{#1}"),Zt("\\blueC","\\textcolor{##63d9ea}{#1}"),Zt("\\blueD","\\textcolor{##11accd}{#1}"),Zt("\\blueE","\\textcolor{##0c7f99}{#1}"),Zt("\\tealA","\\textcolor{##94fff5}{#1}"),Zt("\\tealB","\\textcolor{##26edd5}{#1}"),Zt("\\tealC","\\textcolor{##01d1c1}{#1}"),Zt("\\tealD","\\textcolor{##01a995}{#1}"),Zt("\\tealE","\\textcolor{##208170}{#1}"),Zt("\\greenA","\\textcolor{##b6ffb0}{#1}"),Zt("\\greenB","\\textcolor{##8af281}{#1}"),Zt("\\greenC","\\textcolor{##74cf70}{#1}"),Zt("\\greenD","\\textcolor{##1fab54}{#1}"),Zt("\\greenE","\\textcolor{##0d923f}{#1}"),Zt("\\goldA","\\textcolor{##ffd0a9}{#1}"),Zt("\\goldB","\\textcolor{##ffbb71}{#1}"),Zt("\\goldC","\\textcolor{##ff9c39}{#1}"),Zt("\\goldD","\\textcolor{##e07d10}{#1}"),Zt("\\goldE","\\textcolor{##a75a05}{#1}"),Zt("\\redA","\\textcolor{##fca9a9}{#1}"),Zt("\\redB","\\textcolor{##ff8482}{#1}"),Zt("\\redC","\\textcolor{##f9685d}{#1}"),Zt("\\redD","\\textcolor{##e84d39}{#1}"),Zt("\\redE","\\textcolor{##bc2612}{#1}"),Zt("\\maroonA","\\textcolor{##ffbde0}{#1}"),Zt("\\maroonB","\\textcolor{##ff92c6}{#1}"),Zt("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Zt("\\maroonD","\\textcolor{##ca337c}{#1}"),Zt("\\maroonE","\\textcolor{##9e034e}{#1}"),Zt("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Zt("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Zt("\\purpleC","\\textcolor{##aa87ff}{#1}"),Zt("\\purpleD","\\textcolor{##7854ab}{#1}"),Zt("\\purpleE","\\textcolor{##543b78}{#1}"),Zt("\\mintA","\\textcolor{##f5f9e8}{#1}"),Zt("\\mintB","\\textcolor{##edf2df}{#1}"),Zt("\\mintC","\\textcolor{##e0e5cc}{#1}"),Zt("\\grayA","\\textcolor{##f6f7f7}{#1}"),Zt("\\grayB","\\textcolor{##f0f1f2}{#1}"),Zt("\\grayC","\\textcolor{##e3e5e6}{#1}"),Zt("\\grayD","\\textcolor{##d6d8da}{#1}"),Zt("\\grayE","\\textcolor{##babec2}{#1}"),Zt("\\grayF","\\textcolor{##888d93}{#1}"),Zt("\\grayG","\\textcolor{##626569}{#1}"),Zt("\\grayH","\\textcolor{##3b3e40}{#1}"),Zt("\\grayI","\\textcolor{##21242c}{#1}"),Zt("\\kaBlue","\\textcolor{##314453}{#1}"),Zt("\\kaGreen","\\textcolor{##71B307}{#1}");var Io={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Go=function(){function U(f,h,b){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(f),this.macros=new ll(ul,h.macros),this.mode=b,this.stack=[]}var c=U.prototype;return c.feed=function(h){this.lexer=new ol(h,this.settings)},c.switchMode=function(h){this.mode=h},c.beginGroup=function(){this.macros.beginGroup()},c.endGroup=function(){this.macros.endGroup()},c.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},c.popToken=function(){return this.future(),this.stack.pop()},c.pushToken=function(h){this.stack.push(h)},c.pushTokens=function(h){var b;(b=this.stack).push.apply(b,h)},c.consumeSpaces=function(){for(;;){var h=this.future();if(h.text===" ")this.stack.pop();else break}},c.consumeArgs=function(h){for(var b=[],B=0;B<h;++B){this.consumeSpaces();var q=this.popToken();if(q.text==="{"){for(var Me=[],et=1;et!==0;){var yt=this.popToken();if(Me.push(yt),yt.text==="{")++et;else if(yt.text==="}")--et;else if(yt.text==="EOF")throw new g("End of input in macro argument",q)}Me.pop(),Me.reverse(),b[B]=Me}else{if(q.text==="EOF")throw new g("End of input expecting macro argument");b[B]=[q]}}return b},c.expandOnce=function(){var h=this.popToken(),b=h.text,B=this._getExpansion(b);if(B==null)return this.pushToken(h),h;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new g("Too many expansions: infinite loop or need to increase maxExpand setting");var q=B.tokens;if(B.numArgs){var Me=this.consumeArgs(B.numArgs);q=q.slice();for(var et=q.length-1;et>=0;--et){var yt=q[et];if(yt.text==="#"){if(et===0)throw new g("Incomplete placeholder at end of macro body",yt);if(yt=q[--et],yt.text==="#")q.splice(et+1,1);else if(/^[1-9]$/.test(yt.text)){var Xt;(Xt=q).splice.apply(Xt,[et,2].concat(Me[+yt.text-1]))}else throw new g("Not a valid argument number",yt)}}}return this.pushTokens(q),q},c.expandAfterFuture=function(){return this.expandOnce(),this.future()},c.expandNextToken=function(){for(;;){var h=this.expandOnce();if(h instanceof he)if(h.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},c.expandMacro=function(h){if(this.macros.get(h)){var b=[],B=this.stack.length;for(this.pushToken(new he(h));this.stack.length>B;){var q=this.expandOnce();q instanceof he&&b.push(this.stack.pop())}return b}},c.expandMacroAsText=function(h){var b=this.expandMacro(h);return b&&b.map(function(B){return B.text}).join("")},c._getExpansion=function(h){var b=this.macros.get(h);if(b==null)return b;var B=typeof b=="function"?b(this):b;if(typeof B=="string"){var q=0;if(B.indexOf("#")!==-1)for(var Me=B.replace(/##/g,"");Me.indexOf("#"+(q+1))!==-1;)++q;for(var et=new ol(B,this.settings),yt=[],Xt=et.lex();Xt.text!=="EOF";)yt.push(Xt),Xt=et.lex();yt.reverse();var fn={tokens:yt,numArgs:q};return fn}return B},c.isDefined=function(h){return this.macros.has(h)||co.hasOwnProperty(h)||gt.math.hasOwnProperty(h)||gt.text.hasOwnProperty(h)||Io.hasOwnProperty(h)},U}(),be={"\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"}},ge={\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"},it=function(){function U(f,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 Go(f,h,this.mode),this.settings=h,this.leftrightDepth=0}var c=U.prototype;return c.expect=function(h,b){if(b===void 0&&(b=!0),this.fetch().text!==h)throw new g("Expected '"+h+"', got '"+this.fetch().text+"'",this.fetch());b&&this.consume()},c.consume=function(){this.nextToken=null},c.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},c.switchMode=function(h){this.mode=h,this.gullet.switchMode(h)},c.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},c.parseExpression=function(h,b){for(var B=[];;){this.mode==="math"&&this.consumeSpaces();var q=this.fetch();if(U.endOfExpression.indexOf(q.text)!==-1||b&&q.text===b||h&&co[q.text]&&co[q.text].infix)break;var Me=this.parseAtom(b);if(!Me)break;B.push(Me)}return this.mode==="text"&&this.formLigatures(B),this.handleInfixNodes(B)},c.handleInfixNodes=function(h){for(var b=-1,B,q=0;q<h.length;q++){var Me=er(h[q],"infix");if(Me){if(b!==-1)throw new g("only one infix operator per group",Me.token);b=q,B=Me.replaceWith}}if(b!==-1&&B){var et,yt,Xt=h.slice(0,b),fn=h.slice(b+1);Xt.length===1&&Xt[0].type==="ordgroup"?et=Xt[0]:et={type:"ordgroup",mode:this.mode,body:Xt},fn.length===1&&fn[0].type==="ordgroup"?yt=fn[0]:yt={type:"ordgroup",mode:this.mode,body:fn};var Sn;return B==="\\\\abovefrac"?Sn=this.callFunction(B,[et,h[b],yt],[]):Sn=this.callFunction(B,[et,yt],[]),[Sn]}else return h},c.handleSupSubscript=function(h){var b=this.fetch(),B=b.text;this.consume();var q=this.parseGroup(h,!1,U.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!q)throw new g("Expected group after '"+B+"'",b);return q},c.formatUnsupportedCmd=function(h){for(var b=[],B=0;B<h.length;B++)b.push({type:"textord",mode:"text",text:h[B]});var q={type:"text",mode:this.mode,body:b},Me={type:"color",mode:this.mode,color:this.settings.errorColor,body:[q]};return Me},c.parseAtom=function(h){var b=this.parseGroup("atom",!1,null,h);if(this.mode==="text")return b;for(var B,q;;){this.consumeSpaces();var Me=this.fetch();if(Me.text==="\\limits"||Me.text==="\\nolimits"){var et=er(b,"op");if(et){var yt=Me.text==="\\limits";et.limits=yt,et.alwaysHandleSupSub=!0}else if(et=er(b,"operatorname"),et&&et.alwaysHandleSupSub){var Xt=Me.text==="\\limits";et.limits=Xt}else throw new g("Limit controls must follow a math operator",Me);this.consume()}else if(Me.text==="^"){if(B)throw new g("Double superscript",Me);B=this.handleSupSubscript("superscript")}else if(Me.text==="_"){if(q)throw new g("Double subscript",Me);q=this.handleSupSubscript("subscript")}else if(Me.text==="'"){if(B)throw new g("Double superscript",Me);var fn={type:"textord",mode:this.mode,text:"\\prime"},Sn=[fn];for(this.consume();this.fetch().text==="'";)Sn.push(fn),this.consume();this.fetch().text==="^"&&Sn.push(this.handleSupSubscript("superscript")),B={type:"ordgroup",mode:this.mode,body:Sn}}else break}return B||q?{type:"supsub",mode:this.mode,base:b,sup:B,sub:q}:b},c.parseFunction=function(h,b,B){var q=this.fetch(),Me=q.text,et=co[Me];if(!et)return null;if(this.consume(),B!=null&&et.greediness<=B)throw new g("Got function '"+Me+"' with no arguments"+(b?" as "+b:""),q);if(this.mode==="text"&&!et.allowedInText)throw new g("Can't use function '"+Me+"' in text mode",q);if(this.mode==="math"&&et.allowedInMath===!1)throw new g("Can't use function '"+Me+"' in math mode",q);var yt=this.parseArguments(Me,et),Xt=yt.args,fn=yt.optArgs;return this.callFunction(Me,Xt,fn,q,h)},c.callFunction=function(h,b,B,q,Me){var et={funcName:h,parser:this,token:q,breakOnTokenText:Me},yt=co[h];if(yt&&yt.handler)return yt.handler(et,b,B);throw new g("No function handler for "+h)},c.parseArguments=function(h,b){var B=b.numArgs+b.numOptionalArgs;if(B===0)return{args:[],optArgs:[]};for(var q=b.greediness,Me=[],et=[],yt=0;yt<B;yt++){var Xt=b.argTypes&&b.argTypes[yt],fn=yt<b.numOptionalArgs,Sn=yt>0&&!fn||yt===0&&!fn&&this.mode==="math",kn=this.parseGroupOfType("argument to '"+h+"'",Xt,fn,q,Sn);if(!kn){if(fn){et.push(null);continue}throw new g("Expected group after '"+h+"'",this.fetch())}(fn?et:Me).push(kn)}return{args:Me,optArgs:et}},c.parseGroupOfType=function(h,b,B,q,Me){switch(b){case"color":return Me&&this.consumeSpaces(),this.parseColorGroup(B);case"size":return Me&&this.consumeSpaces(),this.parseSizeGroup(B);case"url":return this.parseUrlGroup(B,Me);case"math":case"text":return this.parseGroup(h,B,q,void 0,b,Me);case"hbox":{var et=this.parseGroup(h,B,q,void 0,"text",Me);if(!et)return et;var yt={type:"styling",mode:et.mode,body:[et],style:"text"};return yt}case"raw":{if(Me&&this.consumeSpaces(),B&&this.fetch().text==="{")return null;var Xt=this.parseStringGroup("raw",B,!0);if(Xt)return{type:"raw",mode:"text",string:Xt.text};throw new g("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(h,B,q,void 0,void 0,Me);default:throw new g("Unknown group type as "+h,this.fetch())}},c.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},c.parseStringGroup=function(h,b,B){var q=b?"[":"{",Me=b?"]":"}",et=this.fetch();if(et.text!==q){if(b)return null;if(B&&et.text!=="EOF"&&/[^{}[\]]/.test(et.text))return this.consume(),et}var yt=this.mode;this.mode="text",this.expect(q);for(var Xt="",fn=this.fetch(),Sn=0,kn=fn,Kn;(Kn=this.fetch()).text!==Me||B&&Sn>0;){switch(Kn.text){case"EOF":throw new g("Unexpected end of input in "+h,fn.range(kn,Xt));case q:Sn++;break;case Me:Sn--;break}kn=Kn,Xt+=kn.text,this.consume()}return this.expect(Me),this.mode=yt,fn.range(kn,Xt)},c.parseRegexGroup=function(h,b){var B=this.mode;this.mode="text";for(var q=this.fetch(),Me=q,et="",yt;(yt=this.fetch()).text!=="EOF"&&h.test(et+yt.text);)Me=yt,et+=Me.text,this.consume();if(et==="")throw new g("Invalid "+b+": '"+q.text+"'",q);return this.mode=B,q.range(Me,et)},c.parseColorGroup=function(h){var b=this.parseStringGroup("color",h);if(!b)return null;var B=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(b.text);if(!B)throw new g("Invalid color: '"+b.text+"'",b);var q=B[0];return/^[0-9a-f]{6}$/i.test(q)&&(q="#"+q),{type:"color-token",mode:this.mode,color:q}},c.parseSizeGroup=function(h){var b,B=!1;if(!h&&this.fetch().text!=="{"?b=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):b=this.parseStringGroup("size",h),!b)return null;!h&&b.text.length===0&&(b.text="0pt",B=!0);var q=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(b.text);if(!q)throw new g("Invalid size: '"+b.text+"'",b);var Me={number:+(q[1]+q[2]),unit:q[3]};if(!Yt(Me))throw new g("Invalid unit: '"+Me.unit+"'",b);return{type:"size",mode:this.mode,value:Me,isBlank:B}},c.parseUrlGroup=function(h,b){this.gullet.lexer.setCatcode("%",13);var B=this.parseStringGroup("url",h,!0);if(this.gullet.lexer.setCatcode("%",14),!B)return null;var q=B.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:q}},c.parseGroup=function(h,b,B,q,Me,et){var yt=this.mode;Me&&this.switchMode(Me),et&&this.consumeSpaces();var Xt=this.fetch(),fn=Xt.text,Sn;if(b?fn==="[":fn==="{"||fn==="\\begingroup"){this.consume();var kn=U.endOfGroup[fn];this.gullet.beginGroup();var Kn=this.parseExpression(!1,kn),jn=this.fetch();this.expect(kn),this.gullet.endGroup(),Sn={type:"ordgroup",mode:this.mode,loc:L.range(Xt,jn),body:Kn,semisimple:fn==="\\begingroup"||void 0}}else if(b)Sn=null;else if(Sn=this.parseFunction(q,h,B)||this.parseSymbol(),Sn==null&&fn[0]==="\\"&&!Io.hasOwnProperty(fn)){if(this.settings.throwOnError)throw new g("Undefined control sequence: "+fn,Xt);Sn=this.formatUnsupportedCmd(fn),this.consume()}return Me&&this.switchMode(yt),Sn},c.formLigatures=function(h){for(var b=h.length-1,B=0;B<b;++B){var q=h[B],Me=q.text;Me==="-"&&h[B+1].text==="-"&&(B+1<b&&h[B+2].text==="-"?(h.splice(B,3,{type:"textord",mode:"text",loc:L.range(q,h[B+2]),text:"---"}),b-=2):(h.splice(B,2,{type:"textord",mode:"text",loc:L.range(q,h[B+1]),text:"--"}),b-=1)),(Me==="'"||Me==="`")&&h[B+1].text===Me&&(h.splice(B,2,{type:"textord",mode:"text",loc:L.range(q,h[B+1]),text:Me+Me}),b-=1)}},c.parseSymbol=function(){var h=this.fetch(),b=h.text;if(/^\\verb[^a-zA-Z]/.test(b)){this.consume();var B=b.slice(5),q=B.charAt(0)==="*";if(q&&(B=B.slice(1)),B.length<2||B.charAt(0)!==B.slice(-1))throw new g(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return B=B.slice(1,-1),{type:"verb",mode:"text",body:B,star:q}}ge.hasOwnProperty(b[0])&&!gt[this.mode][b[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+b[0]+'" used in math mode',h),b=ge[b[0]]+b.substr(1));var Me=Tl.exec(b);Me&&(b=b.substring(0,Me.index),b==="i"?b="\u0131":b==="j"&&(b="\u0237"));var et;if(gt[this.mode][b]){this.settings.strict&&this.mode==="math"&&Be.indexOf(b)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+b[0]+'" used in math mode',h);var yt=gt[this.mode][b].group,Xt=L.range(h),fn;if(Vt.hasOwnProperty(yt)){var Sn=yt;fn={type:"atom",mode:this.mode,family:Sn,loc:Xt,text:b}}else fn={type:yt,mode:this.mode,loc:Xt,text:b};et=fn}else if(b.charCodeAt(0)>=128)this.settings.strict&&(ct(b.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+b[0]+'" used in math mode',h):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+b[0]+'"'+(" ("+b.charCodeAt(0)+")"),h)),et={type:"textord",mode:"text",loc:L.range(h),text:b};else return null;if(this.consume(),Me)for(var kn=0;kn<Me[0].length;kn++){var Kn=Me[0][kn];if(!be[Kn])throw new g("Unknown accent ' "+Kn+"'",h);var jn=be[Kn][this.mode];if(!jn)throw new g("Accent "+Kn+" unsupported in "+this.mode+" mode",h);et={type:"accent",mode:this.mode,loc:L.range(h),label:jn,isStretchy:!1,isShifty:!0,base:et}}return et},U}();it.endOfExpression=["}","\\endgroup","\\end","\\right","&"],it.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},it.SUPSUB_GREEDINESS=1;var Et=function(c,f){if(!(typeof c=="string"||c instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var h=new it(c,f);delete h.gullet.macros.current["\\df@tag"];var b=h.parse();if(h.gullet.macros.get("\\df@tag")){if(!f.displayMode)throw new g("\\tag works only in display equations");h.gullet.feed("\\df@tag"),b=[{type:"tag",mode:"text",body:b,tag:h.parse()}]}return b},Gt=Et,nn=function(c,f,h){f.textContent="";var b=xn(c,h).toNode();f.appendChild(b)};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."),nn=function(){throw new g("KaTeX doesn't work in quirks mode.")});var mn=function(c,f){var h=xn(c,f).toMarkup();return h},ln=function(c,f){var h=new R(f);return Gt(c,h)},_n=function(c,f,h){if(h.throwOnError||!(c instanceof g))throw c;var b=Ht.makeSpan(["katex-error"],[new _e(f)]);return b.setAttribute("title",c.toString()),b.setAttribute("style","color:"+h.errorColor),b},xn=function(c,f){var h=new R(f);try{var b=Gt(c,h);return hi(b,c,h)}catch(B){return _n(B,c,h)}},Qn=function(c,f){var h=new R(f);try{var b=Gt(c,h);return ki(b,c,h)}catch(B){return _n(B,c,h)}},Nn={version:"0.11.1",render:nn,renderToString:mn,ParseError:g,__parse:ln,__renderToDomTree:xn,__renderToHTMLTree:Qn,__setFontMetrics:_t,__defineSymbol:E,__defineMacro:Zt,__domTree:{Span:Pe,Anchor:Ge,SymbolNode:_e,SvgNode:Ie,PathNode:Te,LineNode:ze}},Mn=u.default=Nn}]).default})},32834:function($n){(function(Rt,u){$n.exports=u()})(this,function(){"use strict";function Rt(rt,st){for(var xt=0;xt<st.length;xt++){var pe=st[xt];pe.enumerable=pe.enumerable||!1,pe.configurable=!0,"value"in pe&&(pe.writable=!0),Object.defineProperty(rt,pe.key,pe)}}function u(rt,st,xt){return st&&Rt(rt.prototype,st),xt&&Rt(rt,xt),rt}function i(rt,st){if(rt){if(typeof rt=="string")return K(rt,st);var xt=Object.prototype.toString.call(rt).slice(8,-1);if(xt==="Object"&&rt.constructor&&(xt=rt.constructor.name),xt==="Map"||xt==="Set")return Array.from(rt);if(xt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(xt))return K(rt,st)}}function K(rt,st){(st==null||st>rt.length)&&(st=rt.length);for(var xt=0,pe=new Array(st);xt<st;xt++)pe[xt]=rt[xt];return pe}function L(rt,st){var xt=typeof Symbol!="undefined"&&rt[Symbol.iterator]||rt["@@iterator"];if(xt)return(xt=xt.call(rt)).next.bind(xt);if(Array.isArray(rt)||(xt=i(rt))||st&&rt&&typeof rt.length=="number"){xt&&(rt=xt);var pe=0;return function(){return pe>=rt.length?{done:!0}:{done:!1,value:rt[pe++]}}}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 he={exports:{}};function Z(){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 g(rt){he.exports.defaults=rt}he.exports={defaults:Z(),getDefaults:Z,changeDefaults:g};var W=/[&<>"']/,Y=/[&<>"']/g,l=/[<>"']|&(?!#?\w+;)/,x=/[<>"']|&(?!#?\w+;)/g,N={"&":"&","<":"<",">":">",'"':""","'":"'"},y=function(st){return N[st]};function T(rt,st){if(st){if(W.test(rt))return rt.replace(Y,y)}else if(l.test(rt))return rt.replace(x,y);return rt}var A=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function $(rt){return rt.replace(A,function(st,xt){return xt=xt.toLowerCase(),xt==="colon"?":":xt.charAt(0)==="#"?xt.charAt(1)==="x"?String.fromCharCode(parseInt(xt.substring(2),16)):String.fromCharCode(+xt.substring(1)):""})}var H=/(^|[^\[])\^/g;function X(rt,st){rt=rt.source||rt,st=st||"";var xt={replace:function(Ee,nt){return nt=nt.source||nt,nt=nt.replace(H,"$1"),rt=rt.replace(Ee,nt),xt},getRegex:function(){return new RegExp(rt,st)}};return xt}var V=/[^\w:]/g,R=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Q(rt,st,xt){if(rt){var pe;try{pe=decodeURIComponent($(xt)).replace(V,"").toLowerCase()}catch(Ee){return null}if(pe.indexOf("javascript:")===0||pe.indexOf("vbscript:")===0||pe.indexOf("data:")===0)return null}st&&!R.test(xt)&&(xt=me(st,xt));try{xt=encodeURI(xt).replace(/%25/g,"%")}catch(Ee){return null}return xt}var O={},I=/^[^:]+:\/*[^/]*$/,ue=/^([^:]+:)[\s\S]*$/,Se=/^([^:]+:\/*[^/]*)[\s\S]*$/;function me(rt,st){O[" "+rt]||(I.test(rt)?O[" "+rt]=rt+"/":O[" "+rt]=We(rt,"/",!0)),rt=O[" "+rt];var xt=rt.indexOf(":")===-1;return st.substring(0,2)==="//"?xt?st:rt.replace(ue,"$1")+st:st.charAt(0)==="/"?xt?st:rt.replace(Se,"$1")+st:rt+st}var Ke={exec:function(){}};function Je(rt){for(var st=1,xt,pe;st<arguments.length;st++){xt=arguments[st];for(pe in xt)Object.prototype.hasOwnProperty.call(xt,pe)&&(rt[pe]=xt[pe])}return rt}function ke(rt,st){var xt=rt.replace(/\|/g,function(nt,Ze,z){for(var St=!1,fe=Ze;--fe>=0&&z[fe]==="\\";)St=!St;return St?"|":" |"}),pe=xt.split(/ \|/),Ee=0;if(pe.length>st)pe.splice(st);else for(;pe.length<st;)pe.push("");for(;Ee<pe.length;Ee++)pe[Ee]=pe[Ee].trim().replace(/\\\|/g,"|");return pe}function We(rt,st,xt){var pe=rt.length;if(pe===0)return"";for(var Ee=0;Ee<pe;){var nt=rt.charAt(pe-Ee-1);if(nt===st&&!xt)Ee++;else if(nt!==st&&xt)Ee++;else break}return rt.substr(0,pe-Ee)}function oe(rt,st){if(rt.indexOf(st[1])===-1)return-1;for(var xt=rt.length,pe=0,Ee=0;Ee<xt;Ee++)if(rt[Ee]==="\\")Ee++;else if(rt[Ee]===st[0])pe++;else if(rt[Ee]===st[1]&&(pe--,pe<0))return Ee;return-1}function k(rt){rt&&rt.sanitize&&!rt.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 _(rt,st){if(st<1)return"";for(var xt="";st>1;)st&1&&(xt+=rt),st>>=1,rt+=rt;return xt+rt}var ee={escape:T,unescape:$,edit:X,cleanUrl:Q,resolveUrl:me,noopTest:Ke,merge:Je,splitCells:ke,rtrim:We,findClosingBracket:oe,checkSanitizeDeprecation:k,repeatString:_},ne=he.exports.defaults,se=ee.rtrim,w=ee.splitCells,D=ee.escape,ce=ee.findClosingBracket;function Oe(rt,st,xt){var pe=st.href,Ee=st.title?D(st.title):null,nt=rt[1].replace(/\\([\[\]])/g,"$1");return rt[0].charAt(0)!=="!"?{type:"link",raw:xt,href:pe,title:Ee,text:nt}:{type:"image",raw:xt,href:pe,title:Ee,text:D(nt)}}function ct(rt,st){var xt=rt.match(/^(\s+)(?:```)/);if(xt===null)return st;var pe=xt[1];return st.split(`
|
|
|
`).map(function(Ee){var nt=Ee.match(/^\s+/);if(nt===null)return Ee;var Ze=nt[0];return Ze.length>=pe.length?Ee.slice(pe.length):Ee}).join(`
|
|
|
`)}var Tt=function(){function rt(xt){this.options=xt||ne}var st=rt.prototype;return st.space=function(pe){var Ee=this.rules.block.newline.exec(pe);if(Ee)return Ee[0].length>1?{type:"space",raw:Ee[0]}:{raw:`
|
|
|
`}},st.code=function(pe){var Ee=this.rules.block.code.exec(pe);if(Ee){var nt=Ee[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Ee[0],codeBlockStyle:"indented",text:this.options.pedantic?nt:se(nt,`
|
|
|
`)}}},st.fences=function(pe){var Ee=this.rules.block.fences.exec(pe);if(Ee){var nt=Ee[0],Ze=ct(nt,Ee[3]||"");return{type:"code",raw:nt,lang:Ee[2]?Ee[2].trim():Ee[2],text:Ze}}},st.heading=function(pe){var Ee=this.rules.block.heading.exec(pe);if(Ee){var nt=Ee[2].trim();if(/#$/.test(nt)){var Ze=se(nt,"#");(this.options.pedantic||!Ze||/ $/.test(Ze))&&(nt=Ze.trim())}return{type:"heading",raw:Ee[0],depth:Ee[1].length,text:nt}}},st.nptable=function(pe){var Ee=this.rules.block.nptable.exec(pe);if(Ee){var nt={type:"table",header:w(Ee[1].replace(/^ *| *\| *$/g,"")),align:Ee[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ee[3]?Ee[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:Ee[0]};if(nt.header.length===nt.align.length){var Ze=nt.align.length,z;for(z=0;z<Ze;z++)/^ *-+: *$/.test(nt.align[z])?nt.align[z]="right":/^ *:-+: *$/.test(nt.align[z])?nt.align[z]="center":/^ *:-+ *$/.test(nt.align[z])?nt.align[z]="left":nt.align[z]=null;for(Ze=nt.cells.length,z=0;z<Ze;z++)nt.cells[z]=w(nt.cells[z],nt.header.length);return nt}}},st.hr=function(pe){var Ee=this.rules.block.hr.exec(pe);if(Ee)return{type:"hr",raw:Ee[0]}},st.blockquote=function(pe){var Ee=this.rules.block.blockquote.exec(pe);if(Ee){var nt=Ee[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Ee[0],text:nt}}},st.list=function(pe){var Ee=this.rules.block.list.exec(pe);if(Ee){var nt=Ee[0],Ze=Ee[2],z=Ze.length>1,St={type:"list",raw:nt,ordered:z,start:z?+Ze.slice(0,-1):"",loose:!1,items:[]},fe=Ee[0].match(this.rules.block.item),Kt=!1,dn,Bt,J,we,M,Ct,ot,dt,$t,Ft=fe.length;J=this.rules.block.listItemStart.exec(fe[0]);for(var Mt=0;Mt<Ft;Mt++){if(dn=fe[Mt],nt=dn,this.options.pedantic||($t=dn.match(new RegExp("\\n\\s*\\n {0,"+(J[0].length-1)+"}\\S")),$t&&(M=dn.length-$t.index+fe.slice(Mt+1).join(`
|
|
|
`).length,St.raw=St.raw.substring(0,St.raw.length-M),dn=dn.substring(0,$t.index),nt=dn,Ft=Mt+1)),Mt!==Ft-1){if(we=this.rules.block.listItemStart.exec(fe[Mt+1]),this.options.pedantic?we[1].length>J[1].length:we[1].length>=J[0].length||we[1].length>3){fe.splice(Mt,2,fe[Mt]+(!this.options.pedantic&&we[1].length<J[0].length&&!fe[Mt].match(/\n$/)?"":`
|
|
|
`)+fe[Mt+1]),Mt--,Ft--;continue}else(!this.options.pedantic||this.options.smartLists?we[2][we[2].length-1]!==Ze[Ze.length-1]:z===(we[2].length===1))&&(M=fe.slice(Mt+1).join(`
|
|
|
`).length,St.raw=St.raw.substring(0,St.raw.length-M),Mt=Ft-1);J=we}Bt=dn.length,dn=dn.replace(/^ *([*+-]|\d+[.)]) ?/,""),~dn.indexOf(`
|
|
|
`)&&(Bt-=dn.length,dn=this.options.pedantic?dn.replace(/^ {1,4}/gm,""):dn.replace(new RegExp("^ {1,"+Bt+"}","gm"),"")),dn=se(dn,`
|
|
|
`),Mt!==Ft-1&&(nt=nt+`
|
|
|
`),Ct=Kt||/\n\n(?!\s*$)/.test(nt),Mt!==Ft-1&&(Kt=nt.slice(-2)===`
|
|
|
|
|
|
`,Ct||(Ct=Kt)),Ct&&(St.loose=!0),this.options.gfm&&(ot=/^\[[ xX]\] /.test(dn),dt=void 0,ot&&(dt=dn[1]!==" ",dn=dn.replace(/^\[[ xX]\] +/,""))),St.items.push({type:"list_item",raw:nt,task:ot,checked:dt,loose:Ct,text:dn})}return St}},st.html=function(pe){var Ee=this.rules.block.html.exec(pe);if(Ee)return{type:this.options.sanitize?"paragraph":"html",raw:Ee[0],pre:!this.options.sanitizer&&(Ee[1]==="pre"||Ee[1]==="script"||Ee[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ee[0]):D(Ee[0]):Ee[0]}},st.def=function(pe){var Ee=this.rules.block.def.exec(pe);if(Ee){Ee[3]&&(Ee[3]=Ee[3].substring(1,Ee[3].length-1));var nt=Ee[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:nt,raw:Ee[0],href:Ee[2],title:Ee[3]}}},st.table=function(pe){var Ee=this.rules.block.table.exec(pe);if(Ee){var nt={type:"table",header:w(Ee[1].replace(/^ *| *\| *$/g,"")),align:Ee[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ee[3]?Ee[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(nt.header.length===nt.align.length){nt.raw=Ee[0];var Ze=nt.align.length,z;for(z=0;z<Ze;z++)/^ *-+: *$/.test(nt.align[z])?nt.align[z]="right":/^ *:-+: *$/.test(nt.align[z])?nt.align[z]="center":/^ *:-+ *$/.test(nt.align[z])?nt.align[z]="left":nt.align[z]=null;for(Ze=nt.cells.length,z=0;z<Ze;z++)nt.cells[z]=w(nt.cells[z].replace(/^ *\| *| *\| *$/g,""),nt.header.length);return nt}}},st.lheading=function(pe){var Ee=this.rules.block.lheading.exec(pe);if(Ee)return{type:"heading",raw:Ee[0],depth:Ee[2].charAt(0)==="="?1:2,text:Ee[1]}},st.paragraph=function(pe){var Ee=this.rules.block.paragraph.exec(pe);if(Ee)return{type:"paragraph",raw:Ee[0],text:Ee[1].charAt(Ee[1].length-1)===`
|
|
|
`?Ee[1].slice(0,-1):Ee[1]}},st.text=function(pe){var Ee=this.rules.block.text.exec(pe);if(Ee)return{type:"text",raw:Ee[0],text:Ee[0]}},st.escape=function(pe){var Ee=this.rules.inline.escape.exec(pe);if(Ee)return{type:"escape",raw:Ee[0],text:D(Ee[1])}},st.tag=function(pe,Ee,nt){var Ze=this.rules.inline.tag.exec(pe);if(Ze)return!Ee&&/^<a /i.test(Ze[0])?Ee=!0:Ee&&/^<\/a>/i.test(Ze[0])&&(Ee=!1),!nt&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ze[0])?nt=!0:nt&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ze[0])&&(nt=!1),{type:this.options.sanitize?"text":"html",raw:Ze[0],inLink:Ee,inRawBlock:nt,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ze[0]):D(Ze[0]):Ze[0]}},st.link=function(pe){var Ee=this.rules.inline.link.exec(pe);if(Ee){var nt=Ee[2].trim();if(!this.options.pedantic&&/^</.test(nt)){if(!/>$/.test(nt))return;var Ze=se(nt.slice(0,-1),"\\");if((nt.length-Ze.length)%2===0)return}else{var z=ce(Ee[2],"()");if(z>-1){var St=Ee[0].indexOf("!")===0?5:4,fe=St+Ee[1].length+z;Ee[2]=Ee[2].substring(0,z),Ee[0]=Ee[0].substring(0,fe).trim(),Ee[3]=""}}var Kt=Ee[2],dn="";if(this.options.pedantic){var Bt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Kt);Bt&&(Kt=Bt[1],dn=Bt[3])}else dn=Ee[3]?Ee[3].slice(1,-1):"";return Kt=Kt.trim(),/^</.test(Kt)&&(this.options.pedantic&&!/>$/.test(nt)?Kt=Kt.slice(1):Kt=Kt.slice(1,-1)),Oe(Ee,{href:Kt&&Kt.replace(this.rules.inline._escapes,"$1"),title:dn&&dn.replace(this.rules.inline._escapes,"$1")},Ee[0])}},st.reflink=function(pe,Ee){var nt;if((nt=this.rules.inline.reflink.exec(pe))||(nt=this.rules.inline.nolink.exec(pe))){var Ze=(nt[2]||nt[1]).replace(/\s+/g," ");if(Ze=Ee[Ze.toLowerCase()],!Ze||!Ze.href){var z=nt[0].charAt(0);return{type:"text",raw:z,text:z}}return Oe(nt,Ze,nt[0])}},st.emStrong=function(pe,Ee,nt){nt===void 0&&(nt="");var Ze=this.rules.inline.emStrong.lDelim.exec(pe);if(Ze&&!(Ze[3]&&nt.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 z=Ze[1]||Ze[2]||"";if(!z||z&&(nt===""||this.rules.inline.punctuation.exec(nt))){var St=Ze[0].length-1,fe,Kt,dn=St,Bt=0,J=Ze[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(J.lastIndex=0,Ee=Ee.slice(-1*pe.length+St);(Ze=J.exec(Ee))!=null;)if(fe=Ze[1]||Ze[2]||Ze[3]||Ze[4]||Ze[5]||Ze[6],!!fe){if(Kt=fe.length,Ze[3]||Ze[4]){dn+=Kt;continue}else if((Ze[5]||Ze[6])&&St%3&&!((St+Kt)%3)){Bt+=Kt;continue}if(dn-=Kt,!(dn>0))return Kt=Math.min(Kt,Kt+dn+Bt),Math.min(St,Kt)%2?{type:"em",raw:pe.slice(0,St+Ze.index+Kt+1),text:pe.slice(1,St+Ze.index+Kt)}:{type:"strong",raw:pe.slice(0,St+Ze.index+Kt+1),text:pe.slice(2,St+Ze.index+Kt-1)}}}}},st.codespan=function(pe){var Ee=this.rules.inline.code.exec(pe);if(Ee){var nt=Ee[2].replace(/\n/g," "),Ze=/[^ ]/.test(nt),z=/^ /.test(nt)&&/ $/.test(nt);return Ze&&z&&(nt=nt.substring(1,nt.length-1)),nt=D(nt,!0),{type:"codespan",raw:Ee[0],text:nt}}},st.br=function(pe){var Ee=this.rules.inline.br.exec(pe);if(Ee)return{type:"br",raw:Ee[0]}},st.del=function(pe){var Ee=this.rules.inline.del.exec(pe);if(Ee)return{type:"del",raw:Ee[0],text:Ee[2]}},st.autolink=function(pe,Ee){var nt=this.rules.inline.autolink.exec(pe);if(nt){var Ze,z;return nt[2]==="@"?(Ze=D(this.options.mangle?Ee(nt[1]):nt[1]),z="mailto:"+Ze):(Ze=D(nt[1]),z=Ze),{type:"link",raw:nt[0],text:Ze,href:z,tokens:[{type:"text",raw:Ze,text:Ze}]}}},st.url=function(pe,Ee){var nt;if(nt=this.rules.inline.url.exec(pe)){var Ze,z;if(nt[2]==="@")Ze=D(this.options.mangle?Ee(nt[0]):nt[0]),z="mailto:"+Ze;else{var St;do St=nt[0],nt[0]=this.rules.inline._backpedal.exec(nt[0])[0];while(St!==nt[0]);Ze=D(nt[0]),nt[1]==="www."?z="http://"+Ze:z=Ze}return{type:"link",raw:nt[0],text:Ze,href:z,tokens:[{type:"text",raw:Ze,text:Ze}]}}},st.inlineText=function(pe,Ee,nt){var Ze=this.rules.inline.text.exec(pe);if(Ze){var z;return Ee?z=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ze[0]):D(Ze[0]):Ze[0]:z=D(this.options.smartypants?nt(Ze[0]):Ze[0]),{type:"text",raw:Ze[0],text:z}}},rt}(),Ae=ee.noopTest,qe=ee.edit,ht=ee.merge,tt={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:Ae,table:Ae,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};tt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,tt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,tt.def=qe(tt.def).replace("label",tt._label).replace("title",tt._title).getRegex(),tt.bullet=/(?:[*+-]|\d{1,9}[.)])/,tt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,tt.item=qe(tt.item,"gm").replace(/bull/g,tt.bullet).getRegex(),tt.listItemStart=qe(/^( *)(bull) */).replace("bull",tt.bullet).getRegex(),tt.list=qe(tt.list).replace(/bull/g,tt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+tt.def.source+")").getRegex(),tt._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",tt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,tt.html=qe(tt.html,"i").replace("comment",tt._comment).replace("tag",tt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),tt.paragraph=qe(tt._paragraph).replace("hr",tt.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",tt._tag).getRegex(),tt.blockquote=qe(tt.blockquote).replace("paragraph",tt.paragraph).getRegex(),tt.normal=ht({},tt),tt.gfm=ht({},tt.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*|$)"}),tt.gfm.nptable=qe(tt.gfm.nptable).replace("hr",tt.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",tt._tag).getRegex(),tt.gfm.table=qe(tt.gfm.table).replace("hr",tt.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",tt._tag).getRegex(),tt.pedantic=ht({},tt.normal,{html:qe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",tt._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:Ae,paragraph:qe(tt.normal._paragraph).replace("hr",tt.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",tt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Fe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ae,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:Ae,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Fe._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Fe.punctuation=qe(Fe.punctuation).replace(/punctuation/g,Fe._punctuation).getRegex(),Fe.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Fe.escapedEmSt=/\\\*|\\_/g,Fe._comment=qe(tt._comment).replace("(?:-->|$)","-->").getRegex(),Fe.emStrong.lDelim=qe(Fe.emStrong.lDelim).replace(/punct/g,Fe._punctuation).getRegex(),Fe.emStrong.rDelimAst=qe(Fe.emStrong.rDelimAst,"g").replace(/punct/g,Fe._punctuation).getRegex(),Fe.emStrong.rDelimUnd=qe(Fe.emStrong.rDelimUnd,"g").replace(/punct/g,Fe._punctuation).getRegex(),Fe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Fe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Fe._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])?)+(?![-_])/,Fe.autolink=qe(Fe.autolink).replace("scheme",Fe._scheme).replace("email",Fe._email).getRegex(),Fe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Fe.tag=qe(Fe.tag).replace("comment",Fe._comment).replace("attribute",Fe._attribute).getRegex(),Fe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Fe._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Fe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Fe.link=qe(Fe.link).replace("label",Fe._label).replace("href",Fe._href).replace("title",Fe._title).getRegex(),Fe.reflink=qe(Fe.reflink).replace("label",Fe._label).getRegex(),Fe.reflinkSearch=qe(Fe.reflinkSearch,"g").replace("reflink",Fe.reflink).replace("nolink",Fe.nolink).getRegex(),Fe.normal=ht({},Fe),Fe.pedantic=ht({},Fe.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:qe(/^!?\[(label)\]\((.*?)\)/).replace("label",Fe._label).getRegex(),reflink:qe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Fe._label).getRegex()}),Fe.gfm=ht({},Fe.normal,{escape:qe(Fe.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Fe.gfm.url=qe(Fe.gfm.url,"i").replace("email",Fe.gfm._extended_email).getRegex(),Fe.breaks=ht({},Fe.gfm,{br:qe(Fe.br).replace("{2,}","*").getRegex(),text:qe(Fe.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var jt={block:tt,inline:Fe},bt=Tt,cn=he.exports.defaults,vt=jt.block,pt=jt.inline,Qe=ee.repeatString;function Ne(rt){return rt.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 le(rt){var st="",xt,pe,Ee=rt.length;for(xt=0;xt<Ee;xt++)pe=rt.charCodeAt(xt),Math.random()>.5&&(pe="x"+pe.toString(16)),st+="&#"+pe+";";return st}var Pe=function(){function rt(xt){this.tokens=[],this.tokens.links=Object.create(null),this.options=xt||cn,this.options.tokenizer=this.options.tokenizer||new bt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var pe={block:vt.normal,inline:pt.normal};this.options.pedantic?(pe.block=vt.pedantic,pe.inline=pt.pedantic):this.options.gfm&&(pe.block=vt.gfm,this.options.breaks?pe.inline=pt.breaks:pe.inline=pt.gfm),this.tokenizer.rules=pe}rt.lex=function(pe,Ee){var nt=new rt(Ee);return nt.lex(pe)},rt.lexInline=function(pe,Ee){var nt=new rt(Ee);return nt.inlineTokens(pe)};var st=rt.prototype;return st.lex=function(pe){return pe=pe.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(pe,this.tokens,!0),this.inline(this.tokens),this.tokens},st.blockTokens=function(pe,Ee,nt){Ee===void 0&&(Ee=[]),nt===void 0&&(nt=!0),this.options.pedantic&&(pe=pe.replace(/^ +$/gm,""));for(var Ze,z,St,fe;pe;){if(Ze=this.tokenizer.space(pe)){pe=pe.substring(Ze.raw.length),Ze.type&&Ee.push(Ze);continue}if(Ze=this.tokenizer.code(pe)){pe=pe.substring(Ze.raw.length),fe=Ee[Ee.length-1],fe&&fe.type==="paragraph"?(fe.raw+=`
|
|
|
`+Ze.raw,fe.text+=`
|
|
|
`+Ze.text):Ee.push(Ze);continue}if(Ze=this.tokenizer.fences(pe)){pe=pe.substring(Ze.raw.length),Ee.push(Ze);continue}if(Ze=this.tokenizer.heading(pe)){pe=pe.substring(Ze.raw.length),Ee.push(Ze);continue}if(Ze=this.tokenizer.nptable(pe)){pe=pe.substring(Ze.raw.length),Ee.push(Ze);continue}if(Ze=this.tokenizer.hr(pe)){pe=pe.substring(Ze.raw.length),Ee.push(Ze);continue}if(Ze=this.tokenizer.blockquote(pe)){pe=pe.substring(Ze.raw.length),Ze.tokens=this.blockTokens(Ze.text,[],nt),Ee.push(Ze);continue}if(Ze=this.tokenizer.list(pe)){for(pe=pe.substring(Ze.raw.length),St=Ze.items.length,z=0;z<St;z++)Ze.items[z].tokens=this.blockTokens(Ze.items[z].text,[],!1);Ee.push(Ze);continue}if(Ze=this.tokenizer.html(pe)){pe=pe.substring(Ze.raw.length),Ee.push(Ze);continue}if(nt&&(Ze=this.tokenizer.def(pe))){pe=pe.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(pe)){pe=pe.substring(Ze.raw.length),Ee.push(Ze);continue}if(Ze=this.tokenizer.lheading(pe)){pe=pe.substring(Ze.raw.length),Ee.push(Ze);continue}if(nt&&(Ze=this.tokenizer.paragraph(pe))){pe=pe.substring(Ze.raw.length),Ee.push(Ze);continue}if(Ze=this.tokenizer.text(pe)){pe=pe.substring(Ze.raw.length),fe=Ee[Ee.length-1],fe&&fe.type==="text"?(fe.raw+=`
|
|
|
`+Ze.raw,fe.text+=`
|
|
|
`+Ze.text):Ee.push(Ze);continue}if(pe){var Kt="Infinite loop on byte: "+pe.charCodeAt(0);if(this.options.silent){console.error(Kt);break}else throw new Error(Kt)}}return Ee},st.inline=function(pe){var Ee,nt,Ze,z,St,fe,Kt=pe.length;for(Ee=0;Ee<Kt;Ee++)switch(fe=pe[Ee],fe.type){case"paragraph":case"text":case"heading":{fe.tokens=[],this.inlineTokens(fe.text,fe.tokens);break}case"table":{for(fe.tokens={header:[],cells:[]},z=fe.header.length,nt=0;nt<z;nt++)fe.tokens.header[nt]=[],this.inlineTokens(fe.header[nt],fe.tokens.header[nt]);for(z=fe.cells.length,nt=0;nt<z;nt++)for(St=fe.cells[nt],fe.tokens.cells[nt]=[],Ze=0;Ze<St.length;Ze++)fe.tokens.cells[nt][Ze]=[],this.inlineTokens(St[Ze],fe.tokens.cells[nt][Ze]);break}case"blockquote":{this.inline(fe.tokens);break}case"list":{for(z=fe.items.length,nt=0;nt<z;nt++)this.inline(fe.items[nt].tokens);break}}return pe},st.inlineTokens=function(pe,Ee,nt,Ze){Ee===void 0&&(Ee=[]),nt===void 0&&(nt=!1),Ze===void 0&&(Ze=!1);var z,St,fe=pe,Kt,dn,Bt;if(this.tokens.links){var J=Object.keys(this.tokens.links);if(J.length>0)for(;(Kt=this.tokenizer.rules.inline.reflinkSearch.exec(fe))!=null;)J.includes(Kt[0].slice(Kt[0].lastIndexOf("[")+1,-1))&&(fe=fe.slice(0,Kt.index)+"["+Qe("a",Kt[0].length-2)+"]"+fe.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Kt=this.tokenizer.rules.inline.blockSkip.exec(fe))!=null;)fe=fe.slice(0,Kt.index)+"["+Qe("a",Kt[0].length-2)+"]"+fe.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Kt=this.tokenizer.rules.inline.escapedEmSt.exec(fe))!=null;)fe=fe.slice(0,Kt.index)+"++"+fe.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;pe;){if(dn||(Bt=""),dn=!1,z=this.tokenizer.escape(pe)){pe=pe.substring(z.raw.length),Ee.push(z);continue}if(z=this.tokenizer.tag(pe,nt,Ze)){pe=pe.substring(z.raw.length),nt=z.inLink,Ze=z.inRawBlock;var we=Ee[Ee.length-1];we&&z.type==="text"&&we.type==="text"?(we.raw+=z.raw,we.text+=z.text):Ee.push(z);continue}if(z=this.tokenizer.link(pe)){pe=pe.substring(z.raw.length),z.type==="link"&&(z.tokens=this.inlineTokens(z.text,[],!0,Ze)),Ee.push(z);continue}if(z=this.tokenizer.reflink(pe,this.tokens.links)){pe=pe.substring(z.raw.length);var M=Ee[Ee.length-1];z.type==="link"?(z.tokens=this.inlineTokens(z.text,[],!0,Ze),Ee.push(z)):M&&z.type==="text"&&M.type==="text"?(M.raw+=z.raw,M.text+=z.text):Ee.push(z);continue}if(z=this.tokenizer.emStrong(pe,fe,Bt)){pe=pe.substring(z.raw.length),z.tokens=this.inlineTokens(z.text,[],nt,Ze),Ee.push(z);continue}if(z=this.tokenizer.codespan(pe)){pe=pe.substring(z.raw.length),Ee.push(z);continue}if(z=this.tokenizer.br(pe)){pe=pe.substring(z.raw.length),Ee.push(z);continue}if(z=this.tokenizer.del(pe)){pe=pe.substring(z.raw.length),z.tokens=this.inlineTokens(z.text,[],nt,Ze),Ee.push(z);continue}if(z=this.tokenizer.autolink(pe,le)){pe=pe.substring(z.raw.length),Ee.push(z);continue}if(!nt&&(z=this.tokenizer.url(pe,le))){pe=pe.substring(z.raw.length),Ee.push(z);continue}if(z=this.tokenizer.inlineText(pe,Ze,Ne)){pe=pe.substring(z.raw.length),z.raw.slice(-1)!=="_"&&(Bt=z.raw.slice(-1)),dn=!0,St=Ee[Ee.length-1],St&&St.type==="text"?(St.raw+=z.raw,St.text+=z.text):Ee.push(z);continue}if(pe){var Ct="Infinite loop on byte: "+pe.charCodeAt(0);if(this.options.silent){console.error(Ct);break}else throw new Error(Ct)}}return Ee},u(rt,null,[{key:"rules",get:function(){return{block:vt,inline:pt}}}]),rt}(),Ge=he.exports.defaults,j=ee.cleanUrl,P=ee.escape,_e=function(){function rt(xt){this.options=xt||Ge}var st=rt.prototype;return st.code=function(pe,Ee,nt){var Ze=(Ee||"").match(/\S*/)[0];if(this.options.highlight){var z=this.options.highlight(pe,Ze);z!=null&&z!==pe&&(nt=!0,pe=z)}return pe=pe.replace(/\n$/,"")+`
|
|
|
`,Ze?'<pre><code class="'+this.options.langPrefix+P(Ze,!0)+'">'+(nt?pe:P(pe,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(nt?pe:P(pe,!0))+`</code></pre>
|
|
|
`},st.blockquote=function(pe){return`<blockquote>
|
|
|
`+pe+`</blockquote>
|
|
|
`},st.html=function(pe){return pe},st.heading=function(pe,Ee,nt,Ze){return this.options.headerIds?"<h"+Ee+' id="'+this.options.headerPrefix+Ze.slug(nt)+'">'+pe+"</h"+Ee+`>
|
|
|
`:"<h"+Ee+">"+pe+"</h"+Ee+`>
|
|
|
`},st.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},st.list=function(pe,Ee,nt){var Ze=Ee?"ol":"ul",z=Ee&&nt!==1?' start="'+nt+'"':"";return"<"+Ze+z+`>
|
|
|
`+pe+"</"+Ze+`>
|
|
|
`},st.listitem=function(pe){return"<li>"+pe+`</li>
|
|
|
`},st.checkbox=function(pe){return"<input "+(pe?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},st.paragraph=function(pe){return"<p>"+pe+`</p>
|
|
|
`},st.table=function(pe,Ee){return Ee&&(Ee="<tbody>"+Ee+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+pe+`</thead>
|
|
|
`+Ee+`</table>
|
|
|
`},st.tablerow=function(pe){return`<tr>
|
|
|
`+pe+`</tr>
|
|
|
`},st.tablecell=function(pe,Ee){var nt=Ee.header?"th":"td",Ze=Ee.align?"<"+nt+' align="'+Ee.align+'">':"<"+nt+">";return Ze+pe+"</"+nt+`>
|
|
|
`},st.strong=function(pe){return"<strong>"+pe+"</strong>"},st.em=function(pe){return"<em>"+pe+"</em>"},st.codespan=function(pe){return"<code>"+pe+"</code>"},st.br=function(){return this.options.xhtml?"<br/>":"<br>"},st.del=function(pe){return"<del>"+pe+"</del>"},st.link=function(pe,Ee,nt){if(pe=j(this.options.sanitize,this.options.baseUrl,pe),pe===null)return nt;var Ze='<a href="'+P(pe)+'"';return Ee&&(Ze+=' title="'+Ee+'"'),Ze+=">"+nt+"</a>",Ze},st.image=function(pe,Ee,nt){if(pe=j(this.options.sanitize,this.options.baseUrl,pe),pe===null)return nt;var Ze='<img src="'+pe+'" alt="'+nt+'"';return Ee&&(Ze+=' title="'+Ee+'"'),Ze+=this.options.xhtml?"/>":">",Ze},st.text=function(pe){return pe},rt}(),Ie=function(){function rt(){}var st=rt.prototype;return st.strong=function(pe){return pe},st.em=function(pe){return pe},st.codespan=function(pe){return pe},st.del=function(pe){return pe},st.html=function(pe){return pe},st.text=function(pe){return pe},st.link=function(pe,Ee,nt){return""+nt},st.image=function(pe,Ee,nt){return""+nt},st.br=function(){return""},rt}(),Te=function(){function rt(){this.seen={}}var st=rt.prototype;return st.serialize=function(pe){return pe.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},st.getNextSafeSlug=function(pe,Ee){var nt=pe,Ze=0;if(this.seen.hasOwnProperty(nt)){Ze=this.seen[pe];do Ze++,nt=pe+"-"+Ze;while(this.seen.hasOwnProperty(nt))}return Ee||(this.seen[pe]=Ze,this.seen[nt]=0),nt},st.slug=function(pe,Ee){Ee===void 0&&(Ee={});var nt=this.serialize(pe);return this.getNextSafeSlug(nt,Ee.dryrun)},rt}(),ze=_e,Ue=Ie,ft=Te,de=he.exports.defaults,xe=ee.unescape,Ot=function(){function rt(xt){this.options=xt||de,this.options.renderer=this.options.renderer||new ze,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ue,this.slugger=new ft}rt.parse=function(pe,Ee){var nt=new rt(Ee);return nt.parse(pe)},rt.parseInline=function(pe,Ee){var nt=new rt(Ee);return nt.parseInline(pe)};var st=rt.prototype;return st.parse=function(pe,Ee){Ee===void 0&&(Ee=!0);var nt="",Ze,z,St,fe,Kt,dn,Bt,J,we,M,Ct,ot,dt,$t,Ft,Mt,ie,ve,At=pe.length;for(Ze=0;Ze<At;Ze++)switch(M=pe[Ze],M.type){case"space":continue;case"hr":{nt+=this.renderer.hr();continue}case"heading":{nt+=this.renderer.heading(this.parseInline(M.tokens),M.depth,xe(this.parseInline(M.tokens,this.textRenderer)),this.slugger);continue}case"code":{nt+=this.renderer.code(M.text,M.lang,M.escaped);continue}case"table":{for(J="",Bt="",fe=M.header.length,z=0;z<fe;z++)Bt+=this.renderer.tablecell(this.parseInline(M.tokens.header[z]),{header:!0,align:M.align[z]});for(J+=this.renderer.tablerow(Bt),we="",fe=M.cells.length,z=0;z<fe;z++){for(dn=M.tokens.cells[z],Bt="",Kt=dn.length,St=0;St<Kt;St++)Bt+=this.renderer.tablecell(this.parseInline(dn[St]),{header:!1,align:M.align[St]});we+=this.renderer.tablerow(Bt)}nt+=this.renderer.table(J,we);continue}case"blockquote":{we=this.parse(M.tokens),nt+=this.renderer.blockquote(we);continue}case"list":{for(Ct=M.ordered,ot=M.start,dt=M.loose,fe=M.items.length,we="",z=0;z<fe;z++)Ft=M.items[z],Mt=Ft.checked,ie=Ft.task,$t="",Ft.task&&(ve=this.renderer.checkbox(Mt),dt?Ft.tokens.length>0&&Ft.tokens[0].type==="text"?(Ft.tokens[0].text=ve+" "+Ft.tokens[0].text,Ft.tokens[0].tokens&&Ft.tokens[0].tokens.length>0&&Ft.tokens[0].tokens[0].type==="text"&&(Ft.tokens[0].tokens[0].text=ve+" "+Ft.tokens[0].tokens[0].text)):Ft.tokens.unshift({type:"text",text:ve}):$t+=ve),$t+=this.parse(Ft.tokens,dt),we+=this.renderer.listitem($t,ie,Mt);nt+=this.renderer.list(we,Ct,ot);continue}case"html":{nt+=this.renderer.html(M.text);continue}case"paragraph":{nt+=this.renderer.paragraph(this.parseInline(M.tokens));continue}case"text":{for(we=M.tokens?this.parseInline(M.tokens):M.text;Ze+1<At&&pe[Ze+1].type==="text";)M=pe[++Ze],we+=`
|
|
|
`+(M.tokens?this.parseInline(M.tokens):M.text);nt+=Ee?this.renderer.paragraph(we):we;continue}default:{var Be='Token with "'+M.type+'" type was not found.';if(this.options.silent){console.error(Be);return}else throw new Error(Be)}}return nt},st.parseInline=function(pe,Ee){Ee=Ee||this.renderer;var nt="",Ze,z,St=pe.length;for(Ze=0;Ze<St;Ze++)switch(z=pe[Ze],z.type){case"escape":{nt+=Ee.text(z.text);break}case"html":{nt+=Ee.html(z.text);break}case"link":{nt+=Ee.link(z.href,z.title,this.parseInline(z.tokens,Ee));break}case"image":{nt+=Ee.image(z.href,z.title,z.text);break}case"strong":{nt+=Ee.strong(this.parseInline(z.tokens,Ee));break}case"em":{nt+=Ee.em(this.parseInline(z.tokens,Ee));break}case"codespan":{nt+=Ee.codespan(z.text);break}case"br":{nt+=Ee.br();break}case"del":{nt+=Ee.del(this.parseInline(z.tokens,Ee));break}case"text":{nt+=Ee.text(z.text);break}default:{var fe='Token with "'+z.type+'" type was not found.';if(this.options.silent){console.error(fe);return}else throw new Error(fe)}}return nt},rt}(),_t=Pe,Pt=Ot,kt=Tt,mt=_e,Vt=Ie,Nt=Te,De=ee.merge,gt=ee.checkSanitizeDeprecation,E=ee.escape,S=he.exports.getDefaults,je=he.exports.changeDefaults,G=he.exports.defaults;function Ce(rt,st,xt){if(typeof rt=="undefined"||rt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof rt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(rt)+", string expected");if(typeof st=="function"&&(xt=st,st=null),st=De({},Ce.defaults,st||{}),gt(st),xt){var pe=st.highlight,Ee;try{Ee=_t.lex(rt,st)}catch(St){return xt(St)}var nt=function(fe){var Kt;if(!fe)try{st.walkTokens&&Ce.walkTokens(Ee,st.walkTokens),Kt=Pt.parse(Ee,st)}catch(dn){fe=dn}return st.highlight=pe,fe?xt(fe):xt(null,Kt)};if(!pe||pe.length<3||(delete st.highlight,!Ee.length))return nt();var Ze=0;Ce.walkTokens(Ee,function(St){St.type==="code"&&(Ze++,setTimeout(function(){pe(St.text,St.lang,function(fe,Kt){if(fe)return nt(fe);Kt!=null&&Kt!==St.text&&(St.text=Kt,St.escaped=!0),Ze--,Ze===0&&nt()})},0))}),Ze===0&&nt();return}try{var z=_t.lex(rt,st);return st.walkTokens&&Ce.walkTokens(z,st.walkTokens),Pt.parse(z,st)}catch(St){if(St.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,st.silent)return"<p>An error occurred:</p><pre>"+E(St.message+"",!0)+"</pre>";throw St}}Ce.options=Ce.setOptions=function(rt){return De(Ce.defaults,rt),je(Ce.defaults),Ce},Ce.getDefaults=S,Ce.defaults=G,Ce.use=function(rt){var st=De({},rt);if(rt.renderer&&function(){var pe=Ce.defaults.renderer||new mt,Ee=function(z){var St=pe[z];pe[z]=function(){for(var fe=arguments.length,Kt=new Array(fe),dn=0;dn<fe;dn++)Kt[dn]=arguments[dn];var Bt=rt.renderer[z].apply(pe,Kt);return Bt===!1&&(Bt=St.apply(pe,Kt)),Bt}};for(var nt in rt.renderer)Ee(nt);st.renderer=pe}(),rt.tokenizer&&function(){var pe=Ce.defaults.tokenizer||new kt,Ee=function(z){var St=pe[z];pe[z]=function(){for(var fe=arguments.length,Kt=new Array(fe),dn=0;dn<fe;dn++)Kt[dn]=arguments[dn];var Bt=rt.tokenizer[z].apply(pe,Kt);return Bt===!1&&(Bt=St.apply(pe,Kt)),Bt}};for(var nt in rt.tokenizer)Ee(nt);st.tokenizer=pe}(),rt.walkTokens){var xt=Ce.defaults.walkTokens;st.walkTokens=function(pe){rt.walkTokens(pe),xt&&xt(pe)}}Ce.setOptions(st)},Ce.walkTokens=function(rt,st){for(var xt=L(rt),pe;!(pe=xt()).done;){var Ee=pe.value;switch(st(Ee),Ee.type){case"table":{for(var nt=L(Ee.tokens.header),Ze;!(Ze=nt()).done;){var z=Ze.value;Ce.walkTokens(z,st)}for(var St=L(Ee.tokens.cells),fe;!(fe=St()).done;)for(var Kt=fe.value,dn=L(Kt),Bt;!(Bt=dn()).done;){var J=Bt.value;Ce.walkTokens(J,st)}break}case"list":{Ce.walkTokens(Ee.items,st);break}default:Ee.tokens&&Ce.walkTokens(Ee.tokens,st)}}},Ce.parseInline=function(rt,st){if(typeof rt=="undefined"||rt===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof rt!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(rt)+", string expected");st=De({},Ce.defaults,st||{}),gt(st);try{var xt=_t.lexInline(rt,st);return st.walkTokens&&Ce.walkTokens(xt,st.walkTokens),Pt.parseInline(xt,st)}catch(pe){if(pe.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,st.silent)return"<p>An error occurred:</p><pre>"+E(pe.message+"",!0)+"</pre>";throw pe}},Ce.Parser=Pt,Ce.parser=Pt.parse,Ce.Renderer=mt,Ce.TextRenderer=Vt,Ce.Lexer=_t,Ce.lexer=_t.lex,Ce.Tokenizer=kt,Ce.Slugger=Nt,Ce.parse=Ce;var en=Ce;return en})},11690:function($n){const Rt=/[&<>"']/,u=/[&<>"']/g,i=/[<>"']|&(?!#?\w+;)/,K=/[<>"']|&(?!#?\w+;)/g,L={"&":"&","<":"<",">":">",'"':""","'":"'"},he=me=>L[me];function Z(me,Ke){if(Ke){if(Rt.test(me))return me.replace(u,he)}else if(i.test(me))return me.replace(K,he);return me}const g=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function W(me){return me.replace(g,(Ke,Je)=>(Je=Je.toLowerCase(),Je==="colon"?":":Je.charAt(0)==="#"?Je.charAt(1)==="x"?String.fromCharCode(parseInt(Je.substring(2),16)):String.fromCharCode(+Je.substring(1)):""))}const Y=/(^|[^\[])\^/g;function l(me,Ke){me=me.source||me,Ke=Ke||"";const Je={replace:(ke,We)=>(We=We.source||We,We=We.replace(Y,"$1"),me=me.replace(ke,We),Je),getRegex:()=>new RegExp(me,Ke)};return Je}const x=/[^\w:]/g,N=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function y(me,Ke,Je){if(me){let ke;try{ke=decodeURIComponent(W(Je)).replace(x,"").toLowerCase()}catch(We){return null}if(ke.indexOf("javascript:")===0||ke.indexOf("vbscript:")===0||ke.indexOf("data:")===0)return null}Ke&&!N.test(Je)&&(Je=X(Ke,Je));try{Je=encodeURI(Je).replace(/%25/g,"%")}catch(ke){return null}return Je}const T={},A=/^[^:]+:\/*[^/]*$/,$=/^([^:]+:)[\s\S]*$/,H=/^([^:]+:\/*[^/]*)[\s\S]*$/;function X(me,Ke){T[" "+me]||(A.test(me)?T[" "+me]=me+"/":T[" "+me]=O(me,"/",!0)),me=T[" "+me];const Je=me.indexOf(":")===-1;return Ke.substring(0,2)==="//"?Je?Ke:me.replace($,"$1")+Ke:Ke.charAt(0)==="/"?Je?Ke:me.replace(H,"$1")+Ke:me+Ke}const V={exec:function(){}};function R(me){let Ke=1,Je,ke;for(;Ke<arguments.length;Ke++){Je=arguments[Ke];for(ke in Je)Object.prototype.hasOwnProperty.call(Je,ke)&&(me[ke]=Je[ke])}return me}function Q(me,Ke){const Je=me.replace(/\|/g,(oe,k,_)=>{let ee=!1,ne=k;for(;--ne>=0&&_[ne]==="\\";)ee=!ee;return ee?"|":" |"}),ke=Je.split(/ \|/);let We=0;if(ke.length>Ke)ke.splice(Ke);else for(;ke.length<Ke;)ke.push("");for(;We<ke.length;We++)ke[We]=ke[We].trim().replace(/\\\|/g,"|");return ke}function O(me,Ke,Je){const ke=me.length;if(ke===0)return"";let We=0;for(;We<ke;){const oe=me.charAt(ke-We-1);if(oe===Ke&&!Je)We++;else if(oe!==Ke&&Je)We++;else break}return me.substr(0,ke-We)}function I(me,Ke){if(me.indexOf(Ke[1])===-1)return-1;const Je=me.length;let ke=0,We=0;for(;We<Je;We++)if(me[We]==="\\")We++;else if(me[We]===Ke[0])ke++;else if(me[We]===Ke[1]&&(ke--,ke<0))return We;return-1}function ue(me){me&&me.sanitize&&!me.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 Se(me,Ke){if(Ke<1)return"";let Je="";for(;Ke>1;)Ke&1&&(Je+=me),Ke>>=1,me+=me;return Je+me}$n.exports={escape:Z,unescape:W,edit:l,cleanUrl:y,resolveUrl:X,noopTest:V,merge:R,splitCells:Q,rtrim:O,findClosingBracket:I,checkSanitizeDeprecation:ue,repeatString:Se}},75918:function($n,Rt,u){"use strict";u.d(Rt,{Wi:function(){return g},Z0:function(){return W},aU:function(){return Z},eZ:function(){return l},wY:function(){return Y}});var i=u(4348),K=u(69323),L=u(13268),he=function(x,N,y,T){function A($){return $ instanceof y?$:new y(function(H){H($)})}return new(y||(y=Promise))(function($,H){function X(Q){try{R(T.next(Q))}catch(O){H(O)}}function V(Q){try{R(T.throw(Q))}catch(O){H(O)}}function R(Q){Q.done?$(Q.value):A(Q.value).then(X,V)}R((T=T.apply(x,N||[])).next())})};class Z extends K.JT{constructor(N,y="",T="",A=!0,$){super(),this._onDidChange=this._register(new i.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=N,this._label=y,this._cssClass=T,this._enabled=A,this._actionCallback=$}get id(){return this._id}get label(){return this._label}set label(N){this._setLabel(N)}_setLabel(N){this._label!==N&&(this._label=N,this._onDidChange.fire({label:N}))}get tooltip(){return this._tooltip||""}set tooltip(N){this._setTooltip(N)}_setTooltip(N){this._tooltip!==N&&(this._tooltip=N,this._onDidChange.fire({tooltip:N}))}get class(){return this._cssClass}set class(N){this._setClass(N)}_setClass(N){this._cssClass!==N&&(this._cssClass=N,this._onDidChange.fire({class:N}))}get enabled(){return this._enabled}set enabled(N){this._setEnabled(N)}_setEnabled(N){this._enabled!==N&&(this._enabled=N,this._onDidChange.fire({enabled:N}))}get checked(){return this._checked}set checked(N){this._setChecked(N)}_setChecked(N){this._checked!==N&&(this._checked=N,this._onDidChange.fire({checked:N}))}run(N,y){return he(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(N))})}}class g extends K.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new i.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new i.Q5),this.onDidRun=this._onDidRun.event}run(N,y){return he(this,void 0,void 0,function*(){if(!N.enabled)return;this._onBeforeRun.fire({action:N});let T;try{yield this.runAction(N,y)}catch(A){T=A}this._onDidRun.fire({action:N,error:T})})}runAction(N,y){return he(this,void 0,void 0,function*(){yield N.run(y)})}}class W extends Z{constructor(N){super(W.ID,N,N?"separator text":"separator"),this.checked=!1,this.enabled=!1}}W.ID="vs.actions.separator";class Y{constructor(N,y,T,A){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=N,this.label=y,this.class=A,this._actions=T}get actions(){return this._actions}dispose(){}run(){return he(this,void 0,void 0,function*(){})}}class l extends Z{constructor(){super(l.ID,L.N("submenu.empty","(empty)"),void 0,!1)}}l.ID="vs.actions.empty"},76068:function($n,Rt,u){"use strict";u.d(Rt,{ok:function(){return i}});function i(K,L){if(!K)throw new Error(L?`Assertion failed (${L})`:"Assertion Failed")}},52615:function($n,Rt,u){"use strict";u.d(Rt,{CM:function(){return Z},JL:function(){return g},dT:function(){return Y},fK:function(){return he},lA:function(){return W}});var i=u(4348);class K{constructor(){this._icons=new Map,this._onDidRegister=new i.Q5}add(x){const N=this._icons.get(x.id);N?x.description?N.description=x.description:console.error(`Duplicate registration of codicon ${x.id}`):(this._icons.set(x.id,x),this._onDidRegister.fire(x))}get(x){return this._icons.get(x)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const L=new K,he=L;function Z(l,x){return new W(l,x)}function g(l){return l?l.replace(/\$\((.*?)\)/g,(x,N)=>` ${N} `).trim():""}class W{constructor(x,N,y){this.id=x,this.definition=N,this.description=y,L.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var Y;(function(l){l.iconNameSegment="[A-Za-z0-9]+",l.iconNameExpression="[A-Za-z0-9\\-]+",l.iconModifierExpression="~[A-Za-z]+";const x=new RegExp(`^(${l.iconNameExpression})(${l.iconModifierExpression})?$`);function N(A){if(A instanceof W)return["codicon","codicon-"+A.id];const $=x.exec(A.id);if(!$)return N(W.error);let[,H,X]=$;const V=["codicon","codicon-"+H];return X&&V.push("codicon-modifier-"+X.substr(1)),V}l.asClassNameArray=N;function y(A){return N(A).join(" ")}l.asClassName=y;function T(A){return"."+N(A).join(".")}l.asCSSSelector=T})(Y||(Y={})),function(l){l.add=new l("add",{fontCharacter:"\\ea60"}),l.plus=new l("plus",l.add.definition),l.gistNew=new l("gist-new",l.add.definition),l.repoCreate=new l("repo-create",l.add.definition),l.lightbulb=new l("lightbulb",{fontCharacter:"\\ea61"}),l.lightBulb=new l("light-bulb",{fontCharacter:"\\ea61"}),l.repo=new l("repo",{fontCharacter:"\\ea62"}),l.repoDelete=new l("repo-delete",{fontCharacter:"\\ea62"}),l.gistFork=new l("gist-fork",{fontCharacter:"\\ea63"}),l.repoForked=new l("repo-forked",{fontCharacter:"\\ea63"}),l.gitPullRequest=new l("git-pull-request",{fontCharacter:"\\ea64"}),l.gitPullRequestAbandoned=new l("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),l.recordKeys=new l("record-keys",{fontCharacter:"\\ea65"}),l.keyboard=new l("keyboard",{fontCharacter:"\\ea65"}),l.tag=new l("tag",{fontCharacter:"\\ea66"}),l.tagAdd=new l("tag-add",{fontCharacter:"\\ea66"}),l.tagRemove=new l("tag-remove",{fontCharacter:"\\ea66"}),l.person=new l("person",{fontCharacter:"\\ea67"}),l.personFollow=new l("person-follow",{fontCharacter:"\\ea67"}),l.personOutline=new l("person-outline",{fontCharacter:"\\ea67"}),l.personFilled=new l("person-filled",{fontCharacter:"\\ea67"}),l.gitBranch=new l("git-branch",{fontCharacter:"\\ea68"}),l.gitBranchCreate=new l("git-branch-create",{fontCharacter:"\\ea68"}),l.gitBranchDelete=new l("git-branch-delete",{fontCharacter:"\\ea68"}),l.sourceControl=new l("source-control",{fontCharacter:"\\ea68"}),l.mirror=new l("mirror",{fontCharacter:"\\ea69"}),l.mirrorPublic=new l("mirror-public",{fontCharacter:"\\ea69"}),l.star=new l("star",{fontCharacter:"\\ea6a"}),l.starAdd=new l("star-add",{fontCharacter:"\\ea6a"}),l.starDelete=new l("star-delete",{fontCharacter:"\\ea6a"}),l.starEmpty=new l("star-empty",{fontCharacter:"\\ea6a"}),l.comment=new l("comment",{fontCharacter:"\\ea6b"}),l.commentAdd=new l("comment-add",{fontCharacter:"\\ea6b"}),l.alert=new l("alert",{fontCharacter:"\\ea6c"}),l.warning=new l("warning",{fontCharacter:"\\ea6c"}),l.search=new l("search",{fontCharacter:"\\ea6d"}),l.searchSave=new l("search-save",{fontCharacter:"\\ea6d"}),l.logOut=new l("log-out",{fontCharacter:"\\ea6e"}),l.signOut=new l("sign-out",{fontCharacter:"\\ea6e"}),l.logIn=new l("log-in",{fontCharacter:"\\ea6f"}),l.signIn=new l("sign-in",{fontCharacter:"\\ea6f"}),l.eye=new l("eye",{fontCharacter:"\\ea70"}),l.eyeUnwatch=new l("eye-unwatch",{fontCharacter:"\\ea70"}),l.eyeWatch=new l("eye-watch",{fontCharacter:"\\ea70"}),l.circleFilled=new l("circle-filled",{fontCharacter:"\\ea71"}),l.primitiveDot=new l("primitive-dot",{fontCharacter:"\\ea71"}),l.closeDirty=new l("close-dirty",{fontCharacter:"\\ea71"}),l.debugBreakpoint=new l("debug-breakpoint",{fontCharacter:"\\ea71"}),l.debugBreakpointDisabled=new l("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),l.debugHint=new l("debug-hint",{fontCharacter:"\\ea71"}),l.primitiveSquare=new l("primitive-square",{fontCharacter:"\\ea72"}),l.edit=new l("edit",{fontCharacter:"\\ea73"}),l.pencil=new l("pencil",{fontCharacter:"\\ea73"}),l.info=new l("info",{fontCharacter:"\\ea74"}),l.issueOpened=new l("issue-opened",{fontCharacter:"\\ea74"}),l.gistPrivate=new l("gist-private",{fontCharacter:"\\ea75"}),l.gitForkPrivate=new l("git-fork-private",{fontCharacter:"\\ea75"}),l.lock=new l("lock",{fontCharacter:"\\ea75"}),l.mirrorPrivate=new l("mirror-private",{fontCharacter:"\\ea75"}),l.close=new l("close",{fontCharacter:"\\ea76"}),l.removeClose=new l("remove-close",{fontCharacter:"\\ea76"}),l.x=new l("x",{fontCharacter:"\\ea76"}),l.repoSync=new l("repo-sync",{fontCharacter:"\\ea77"}),l.sync=new l("sync",{fontCharacter:"\\ea77"}),l.clone=new l("clone",{fontCharacter:"\\ea78"}),l.desktopDownload=new l("desktop-download",{fontCharacter:"\\ea78"}),l.beaker=new l("beaker",{fontCharacter:"\\ea79"}),l.microscope=new l("microscope",{fontCharacter:"\\ea79"}),l.vm=new l("vm",{fontCharacter:"\\ea7a"}),l.deviceDesktop=new l("device-desktop",{fontCharacter:"\\ea7a"}),l.file=new l("file",{fontCharacter:"\\ea7b"}),l.fileText=new l("file-text",{fontCharacter:"\\ea7b"}),l.more=new l("more",{fontCharacter:"\\ea7c"}),l.ellipsis=new l("ellipsis",{fontCharacter:"\\ea7c"}),l.kebabHorizontal=new l("kebab-horizontal",{fontCharacter:"\\ea7c"}),l.mailReply=new l("mail-reply",{fontCharacter:"\\ea7d"}),l.reply=new l("reply",{fontCharacter:"\\ea7d"}),l.organization=new l("organization",{fontCharacter:"\\ea7e"}),l.organizationFilled=new l("organization-filled",{fontCharacter:"\\ea7e"}),l.organizationOutline=new l("organization-outline",{fontCharacter:"\\ea7e"}),l.newFile=new l("new-file",{fontCharacter:"\\ea7f"}),l.fileAdd=new l("file-add",{fontCharacter:"\\ea7f"}),l.newFolder=new l("new-folder",{fontCharacter:"\\ea80"}),l.fileDirectoryCreate=new l("file-directory-create",{fontCharacter:"\\ea80"}),l.trash=new l("trash",{fontCharacter:"\\ea81"}),l.trashcan=new l("trashcan",{fontCharacter:"\\ea81"}),l.history=new l("history",{fontCharacter:"\\ea82"}),l.clock=new l("clock",{fontCharacter:"\\ea82"}),l.folder=new l("folder",{fontCharacter:"\\ea83"}),l.fileDirectory=new l("file-directory",{fontCharacter:"\\ea83"}),l.symbolFolder=new l("symbol-folder",{fontCharacter:"\\ea83"}),l.logoGithub=new l("logo-github",{fontCharacter:"\\ea84"}),l.markGithub=new l("mark-github",{fontCharacter:"\\ea84"}),l.github=new l("github",{fontCharacter:"\\ea84"}),l.terminal=new l("terminal",{fontCharacter:"\\ea85"}),l.console=new l("console",{fontCharacter:"\\ea85"}),l.repl=new l("repl",{fontCharacter:"\\ea85"}),l.zap=new l("zap",{fontCharacter:"\\ea86"}),l.symbolEvent=new l("symbol-event",{fontCharacter:"\\ea86"}),l.error=new l("error",{fontCharacter:"\\ea87"}),l.stop=new l("stop",{fontCharacter:"\\ea87"}),l.variable=new l("variable",{fontCharacter:"\\ea88"}),l.symbolVariable=new l("symbol-variable",{fontCharacter:"\\ea88"}),l.array=new l("array",{fontCharacter:"\\ea8a"}),l.symbolArray=new l("symbol-array",{fontCharacter:"\\ea8a"}),l.symbolModule=new l("symbol-module",{fontCharacter:"\\ea8b"}),l.symbolPackage=new l("symbol-package",{fontCharacter:"\\ea8b"}),l.symbolNamespace=new l("symbol-namespace",{fontCharacter:"\\ea8b"}),l.symbolObject=new l("symbol-object",{fontCharacter:"\\ea8b"}),l.symbolMethod=new l("symbol-method",{fontCharacter:"\\ea8c"}),l.symbolFunction=new l("symbol-function",{fontCharacter:"\\ea8c"}),l.symbolConstructor=new l("symbol-constructor",{fontCharacter:"\\ea8c"}),l.symbolBoolean=new l("symbol-boolean",{fontCharacter:"\\ea8f"}),l.symbolNull=new l("symbol-null",{fontCharacter:"\\ea8f"}),l.symbolNumeric=new l("symbol-numeric",{fontCharacter:"\\ea90"}),l.symbolNumber=new l("symbol-number",{fontCharacter:"\\ea90"}),l.symbolStructure=new l("symbol-structure",{fontCharacter:"\\ea91"}),l.symbolStruct=new l("symbol-struct",{fontCharacter:"\\ea91"}),l.symbolParameter=new l("symbol-parameter",{fontCharacter:"\\ea92"}),l.symbolTypeParameter=new l("symbol-type-parameter",{fontCharacter:"\\ea92"}),l.symbolKey=new l("symbol-key",{fontCharacter:"\\ea93"}),l.symbolText=new l("symbol-text",{fontCharacter:"\\ea93"}),l.symbolReference=new l("symbol-reference",{fontCharacter:"\\ea94"}),l.goToFile=new l("go-to-file",{fontCharacter:"\\ea94"}),l.symbolEnum=new l("symbol-enum",{fontCharacter:"\\ea95"}),l.symbolValue=new l("symbol-value",{fontCharacter:"\\ea95"}),l.symbolRuler=new l("symbol-ruler",{fontCharacter:"\\ea96"}),l.symbolUnit=new l("symbol-unit",{fontCharacter:"\\ea96"}),l.activateBreakpoints=new l("activate-breakpoints",{fontCharacter:"\\ea97"}),l.archive=new l("archive",{fontCharacter:"\\ea98"}),l.arrowBoth=new l("arrow-both",{fontCharacter:"\\ea99"}),l.arrowDown=new l("arrow-down",{fontCharacter:"\\ea9a"}),l.arrowLeft=new l("arrow-left",{fontCharacter:"\\ea9b"}),l.arrowRight=new l("arrow-right",{fontCharacter:"\\ea9c"}),l.arrowSmallDown=new l("arrow-small-down",{fontCharacter:"\\ea9d"}),l.arrowSmallLeft=new l("arrow-small-left",{fontCharacter:"\\ea9e"}),l.arrowSmallRight=new l("arrow-small-right",{fontCharacter:"\\ea9f"}),l.arrowSmallUp=new l("arrow-small-up",{fontCharacter:"\\eaa0"}),l.arrowUp=new l("arrow-up",{fontCharacter:"\\eaa1"}),l.bell=new l("bell",{fontCharacter:"\\eaa2"}),l.bold=new l("bold",{fontCharacter:"\\eaa3"}),l.book=new l("book",{fontCharacter:"\\eaa4"}),l.bookmark=new l("bookmark",{fontCharacter:"\\eaa5"}),l.debugBreakpointConditionalUnverified=new l("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),l.debugBreakpointConditional=new l("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),l.debugBreakpointConditionalDisabled=new l("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),l.debugBreakpointDataUnverified=new l("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),l.debugBreakpointData=new l("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),l.debugBreakpointDataDisabled=new l("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),l.debugBreakpointLogUnverified=new l("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),l.debugBreakpointLog=new l("debug-breakpoint-log",{fontCharacter:"\\eaab"}),l.debugBreakpointLogDisabled=new l("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),l.briefcase=new l("briefcase",{fontCharacter:"\\eaac"}),l.broadcast=new l("broadcast",{fontCharacter:"\\eaad"}),l.browser=new l("browser",{fontCharacter:"\\eaae"}),l.bug=new l("bug",{fontCharacter:"\\eaaf"}),l.calendar=new l("calendar",{fontCharacter:"\\eab0"}),l.caseSensitive=new l("case-sensitive",{fontCharacter:"\\eab1"}),l.check=new l("check",{fontCharacter:"\\eab2"}),l.checklist=new l("checklist",{fontCharacter:"\\eab3"}),l.chevronDown=new l("chevron-down",{fontCharacter:"\\eab4"}),l.dropDownButton=new l("drop-down-button",l.chevronDown.definition),l.chevronLeft=new l("chevron-left",{fontCharacter:"\\eab5"}),l.chevronRight=new l("chevron-right",{fontCharacter:"\\eab6"}),l.chevronUp=new l("chevron-up",{fontCharacter:"\\eab7"}),l.chromeClose=new l("chrome-close",{fontCharacter:"\\eab8"}),l.chromeMaximize=new l("chrome-maximize",{fontCharacter:"\\eab9"}),l.chromeMinimize=new l("chrome-minimize",{fontCharacter:"\\eaba"}),l.chromeRestore=new l("chrome-restore",{fontCharacter:"\\eabb"}),l.circleOutline=new l("circle-outline",{fontCharacter:"\\eabc"}),l.debugBreakpointUnverified=new l("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),l.circleSlash=new l("circle-slash",{fontCharacter:"\\eabd"}),l.circuitBoard=new l("circuit-board",{fontCharacter:"\\eabe"}),l.clearAll=new l("clear-all",{fontCharacter:"\\eabf"}),l.clippy=new l("clippy",{fontCharacter:"\\eac0"}),l.closeAll=new l("close-all",{fontCharacter:"\\eac1"}),l.cloudDownload=new l("cloud-download",{fontCharacter:"\\eac2"}),l.cloudUpload=new l("cloud-upload",{fontCharacter:"\\eac3"}),l.code=new l("code",{fontCharacter:"\\eac4"}),l.collapseAll=new l("collapse-all",{fontCharacter:"\\eac5"}),l.colorMode=new l("color-mode",{fontCharacter:"\\eac6"}),l.commentDiscussion=new l("comment-discussion",{fontCharacter:"\\eac7"}),l.compareChanges=new l("compare-changes",{fontCharacter:"\\eafd"}),l.creditCard=new l("credit-card",{fontCharacter:"\\eac9"}),l.dash=new l("dash",{fontCharacter:"\\eacc"}),l.dashboard=new l("dashboard",{fontCharacter:"\\eacd"}),l.database=new l("database",{fontCharacter:"\\eace"}),l.debugContinue=new l("debug-continue",{fontCharacter:"\\eacf"}),l.debugDisconnect=new l("debug-disconnect",{fontCharacter:"\\ead0"}),l.debugPause=new l("debug-pause",{fontCharacter:"\\ead1"}),l.debugRestart=new l("debug-restart",{fontCharacter:"\\ead2"}),l.debugStart=new l("debug-start",{fontCharacter:"\\ead3"}),l.debugStepInto=new l("debug-step-into",{fontCharacter:"\\ead4"}),l.debugStepOut=new l("debug-step-out",{fontCharacter:"\\ead5"}),l.debugStepOver=new l("debug-step-over",{fontCharacter:"\\ead6"}),l.debugStop=new l("debug-stop",{fontCharacter:"\\ead7"}),l.debug=new l("debug",{fontCharacter:"\\ead8"}),l.deviceCameraVideo=new l("device-camera-video",{fontCharacter:"\\ead9"}),l.deviceCamera=new l("device-camera",{fontCharacter:"\\eada"}),l.deviceMobile=new l("device-mobile",{fontCharacter:"\\eadb"}),l.diffAdded=new l("diff-added",{fontCharacter:"\\eadc"}),l.diffIgnored=new l("diff-ignored",{fontCharacter:"\\eadd"}),l.diffModified=new l("diff-modified",{fontCharacter:"\\eade"}),l.diffRemoved=new l("diff-removed",{fontCharacter:"\\eadf"}),l.diffRenamed=new l("diff-renamed",{fontCharacter:"\\eae0"}),l.diff=new l("diff",{fontCharacter:"\\eae1"}),l.discard=new l("discard",{fontCharacter:"\\eae2"}),l.editorLayout=new l("editor-layout",{fontCharacter:"\\eae3"}),l.emptyWindow=new l("empty-window",{fontCharacter:"\\eae4"}),l.exclude=new l("exclude",{fontCharacter:"\\eae5"}),l.extensions=new l("extensions",{fontCharacter:"\\eae6"}),l.eyeClosed=new l("eye-closed",{fontCharacter:"\\eae7"}),l.fileBinary=new l("file-binary",{fontCharacter:"\\eae8"}),l.fileCode=new l("file-code",{fontCharacter:"\\eae9"}),l.fileMedia=new l("file-media",{fontCharacter:"\\eaea"}),l.filePdf=new l("file-pdf",{fontCharacter:"\\eaeb"}),l.fileSubmodule=new l("file-submodule",{fontCharacter:"\\eaec"}),l.fileSymlinkDirectory=new l("file-symlink-directory",{fontCharacter:"\\eaed"}),l.fileSymlinkFile=new l("file-symlink-file",{fontCharacter:"\\eaee"}),l.fileZip=new l("file-zip",{fontCharacter:"\\eaef"}),l.files=new l("files",{fontCharacter:"\\eaf0"}),l.filter=new l("filter",{fontCharacter:"\\eaf1"}),l.flame=new l("flame",{fontCharacter:"\\eaf2"}),l.foldDown=new l("fold-down",{fontCharacter:"\\eaf3"}),l.foldUp=new l("fold-up",{fontCharacter:"\\eaf4"}),l.fold=new l("fold",{fontCharacter:"\\eaf5"}),l.folderActive=new l("folder-active",{fontCharacter:"\\eaf6"}),l.folderOpened=new l("folder-opened",{fontCharacter:"\\eaf7"}),l.gear=new l("gear",{fontCharacter:"\\eaf8"}),l.gift=new l("gift",{fontCharacter:"\\eaf9"}),l.gistSecret=new l("gist-secret",{fontCharacter:"\\eafa"}),l.gist=new l("gist",{fontCharacter:"\\eafb"}),l.gitCommit=new l("git-commit",{fontCharacter:"\\eafc"}),l.gitCompare=new l("git-compare",{fontCharacter:"\\eafd"}),l.gitMerge=new l("git-merge",{fontCharacter:"\\eafe"}),l.githubAction=new l("github-action",{fontCharacter:"\\eaff"}),l.githubAlt=new l("github-alt",{fontCharacter:"\\eb00"}),l.globe=new l("globe",{fontCharacter:"\\eb01"}),l.grabber=new l("grabber",{fontCharacter:"\\eb02"}),l.graph=new l("graph",{fontCharacter:"\\eb03"}),l.gripper=new l("gripper",{fontCharacter:"\\eb04"}),l.heart=new l("heart",{fontCharacter:"\\eb05"}),l.home=new l("home",{fontCharacter:"\\eb06"}),l.horizontalRule=new l("horizontal-rule",{fontCharacter:"\\eb07"}),l.hubot=new l("hubot",{fontCharacter:"\\eb08"}),l.inbox=new l("inbox",{fontCharacter:"\\eb09"}),l.issueClosed=new l("issue-closed",{fontCharacter:"\\eba4"}),l.issueReopened=new l("issue-reopened",{fontCharacter:"\\eb0b"}),l.issues=new l("issues",{fontCharacter:"\\eb0c"}),l.italic=new l("italic",{fontCharacter:"\\eb0d"}),l.jersey=new l("jersey",{fontCharacter:"\\eb0e"}),l.json=new l("json",{fontCharacter:"\\eb0f"}),l.kebabVertical=new l("kebab-vertical",{fontCharacter:"\\eb10"}),l.key=new l("key",{fontCharacter:"\\eb11"}),l.law=new l("law",{fontCharacter:"\\eb12"}),l.lightbulbAutofix=new l("lightbulb-autofix",{fontCharacter:"\\eb13"}),l.linkExternal=new l("link-external",{fontCharacter:"\\eb14"}),l.link=new l("link",{fontCharacter:"\\eb15"}),l.listOrdered=new l("list-ordered",{fontCharacter:"\\eb16"}),l.listUnordered=new l("list-unordered",{fontCharacter:"\\eb17"}),l.liveShare=new l("live-share",{fontCharacter:"\\eb18"}),l.loading=new l("loading",{fontCharacter:"\\eb19"}),l.location=new l("location",{fontCharacter:"\\eb1a"}),l.mailRead=new l("mail-read",{fontCharacter:"\\eb1b"}),l.mail=new l("mail",{fontCharacter:"\\eb1c"}),l.markdown=new l("markdown",{fontCharacter:"\\eb1d"}),l.megaphone=new l("megaphone",{fontCharacter:"\\eb1e"}),l.mention=new l("mention",{fontCharacter:"\\eb1f"}),l.milestone=new l("milestone",{fontCharacter:"\\eb20"}),l.mortarBoard=new l("mortar-board",{fontCharacter:"\\eb21"}),l.move=new l("move",{fontCharacter:"\\eb22"}),l.multipleWindows=new l("multiple-windows",{fontCharacter:"\\eb23"}),l.mute=new l("mute",{fontCharacter:"\\eb24"}),l.noNewline=new l("no-newline",{fontCharacter:"\\eb25"}),l.note=new l("note",{fontCharacter:"\\eb26"}),l.octoface=new l("octoface",{fontCharacter:"\\eb27"}),l.openPreview=new l("open-preview",{fontCharacter:"\\eb28"}),l.package_=new l("package",{fontCharacter:"\\eb29"}),l.paintcan=new l("paintcan",{fontCharacter:"\\eb2a"}),l.pin=new l("pin",{fontCharacter:"\\eb2b"}),l.play=new l("play",{fontCharacter:"\\eb2c"}),l.run=new l("run",{fontCharacter:"\\eb2c"}),l.plug=new l("plug",{fontCharacter:"\\eb2d"}),l.preserveCase=new l("preserve-case",{fontCharacter:"\\eb2e"}),l.preview=new l("preview",{fontCharacter:"\\eb2f"}),l.project=new l("project",{fontCharacter:"\\eb30"}),l.pulse=new l("pulse",{fontCharacter:"\\eb31"}),l.question=new l("question",{fontCharacter:"\\eb32"}),l.quote=new l("quote",{fontCharacter:"\\eb33"}),l.radioTower=new l("radio-tower",{fontCharacter:"\\eb34"}),l.reactions=new l("reactions",{fontCharacter:"\\eb35"}),l.references=new l("references",{fontCharacter:"\\eb36"}),l.refresh=new l("refresh",{fontCharacter:"\\eb37"}),l.regex=new l("regex",{fontCharacter:"\\eb38"}),l.remoteExplorer=new l("remote-explorer",{fontCharacter:"\\eb39"}),l.remote=new l("remote",{fontCharacter:"\\eb3a"}),l.remove=new l("remove",{fontCharacter:"\\eb3b"}),l.replaceAll=new l("replace-all",{fontCharacter:"\\eb3c"}),l.replace=new l("replace",{fontCharacter:"\\eb3d"}),l.repoClone=new l("repo-clone",{fontCharacter:"\\eb3e"}),l.repoForcePush=new l("repo-force-push",{fontCharacter:"\\eb3f"}),l.repoPull=new l("repo-pull",{fontCharacter:"\\eb40"}),l.repoPush=new l("repo-push",{fontCharacter:"\\eb41"}),l.report=new l("report",{fontCharacter:"\\eb42"}),l.requestChanges=new l("request-changes",{fontCharacter:"\\eb43"}),l.rocket=new l("rocket",{fontCharacter:"\\eb44"}),l.rootFolderOpened=new l("root-folder-opened",{fontCharacter:"\\eb45"}),l.rootFolder=new l("root-folder",{fontCharacter:"\\eb46"}),l.rss=new l("rss",{fontCharacter:"\\eb47"}),l.ruby=new l("ruby",{fontCharacter:"\\eb48"}),l.saveAll=new l("save-all",{fontCharacter:"\\eb49"}),l.saveAs=new l("save-as",{fontCharacter:"\\eb4a"}),l.save=new l("save",{fontCharacter:"\\eb4b"}),l.screenFull=new l("screen-full",{fontCharacter:"\\eb4c"}),l.screenNormal=new l("screen-normal",{fontCharacter:"\\eb4d"}),l.searchStop=new l("search-stop",{fontCharacter:"\\eb4e"}),l.server=new l("server",{fontCharacter:"\\eb50"}),l.settingsGear=new l("settings-gear",{fontCharacter:"\\eb51"}),l.settings=new l("settings",{fontCharacter:"\\eb52"}),l.shield=new l("shield",{fontCharacter:"\\eb53"}),l.smiley=new l("smiley",{fontCharacter:"\\eb54"}),l.sortPrecedence=new l("sort-precedence",{fontCharacter:"\\eb55"}),l.splitHorizontal=new l("split-horizontal",{fontCharacter:"\\eb56"}),l.splitVertical=new l("split-vertical",{fontCharacter:"\\eb57"}),l.squirrel=new l("squirrel",{fontCharacter:"\\eb58"}),l.starFull=new l("star-full",{fontCharacter:"\\eb59"}),l.starHalf=new l("star-half",{fontCharacter:"\\eb5a"}),l.symbolClass=new l("symbol-class",{fontCharacter:"\\eb5b"}),l.symbolColor=new l("symbol-color",{fontCharacter:"\\eb5c"}),l.symbolConstant=new l("symbol-constant",{fontCharacter:"\\eb5d"}),l.symbolEnumMember=new l("symbol-enum-member",{fontCharacter:"\\eb5e"}),l.symbolField=new l("symbol-field",{fontCharacter:"\\eb5f"}),l.symbolFile=new l("symbol-file",{fontCharacter:"\\eb60"}),l.symbolInterface=new l("symbol-interface",{fontCharacter:"\\eb61"}),l.symbolKeyword=new l("symbol-keyword",{fontCharacter:"\\eb62"}),l.symbolMisc=new l("symbol-misc",{fontCharacter:"\\eb63"}),l.symbolOperator=new l("symbol-operator",{fontCharacter:"\\eb64"}),l.symbolProperty=new l("symbol-property",{fontCharacter:"\\eb65"}),l.wrench=new l("wrench",{fontCharacter:"\\eb65"}),l.wrenchSubaction=new l("wrench-subaction",{fontCharacter:"\\eb65"}),l.symbolSnippet=new l("symbol-snippet",{fontCharacter:"\\eb66"}),l.tasklist=new l("tasklist",{fontCharacter:"\\eb67"}),l.telescope=new l("telescope",{fontCharacter:"\\eb68"}),l.textSize=new l("text-size",{fontCharacter:"\\eb69"}),l.threeBars=new l("three-bars",{fontCharacter:"\\eb6a"}),l.thumbsdown=new l("thumbsdown",{fontCharacter:"\\eb6b"}),l.thumbsup=new l("thumbsup",{fontCharacter:"\\eb6c"}),l.tools=new l("tools",{fontCharacter:"\\eb6d"}),l.triangleDown=new l("triangle-down",{fontCharacter:"\\eb6e"}),l.triangleLeft=new l("triangle-left",{fontCharacter:"\\eb6f"}),l.triangleRight=new l("triangle-right",{fontCharacter:"\\eb70"}),l.triangleUp=new l("triangle-up",{fontCharacter:"\\eb71"}),l.twitter=new l("twitter",{fontCharacter:"\\eb72"}),l.unfold=new l("unfold",{fontCharacter:"\\eb73"}),l.unlock=new l("unlock",{fontCharacter:"\\eb74"}),l.unmute=new l("unmute",{fontCharacter:"\\eb75"}),l.unverified=new l("unverified",{fontCharacter:"\\eb76"}),l.verified=new l("verified",{fontCharacter:"\\eb77"}),l.versions=new l("versions",{fontCharacter:"\\eb78"}),l.vmActive=new l("vm-active",{fontCharacter:"\\eb79"}),l.vmOutline=new l("vm-outline",{fontCharacter:"\\eb7a"}),l.vmRunning=new l("vm-running",{fontCharacter:"\\eb7b"}),l.watch=new l("watch",{fontCharacter:"\\eb7c"}),l.whitespace=new l("whitespace",{fontCharacter:"\\eb7d"}),l.wholeWord=new l("whole-word",{fontCharacter:"\\eb7e"}),l.window=new l("window",{fontCharacter:"\\eb7f"}),l.wordWrap=new l("word-wrap",{fontCharacter:"\\eb80"}),l.zoomIn=new l("zoom-in",{fontCharacter:"\\eb81"}),l.zoomOut=new l("zoom-out",{fontCharacter:"\\eb82"}),l.listFilter=new l("list-filter",{fontCharacter:"\\eb83"}),l.listFlat=new l("list-flat",{fontCharacter:"\\eb84"}),l.listSelection=new l("list-selection",{fontCharacter:"\\eb85"}),l.selection=new l("selection",{fontCharacter:"\\eb85"}),l.listTree=new l("list-tree",{fontCharacter:"\\eb86"}),l.debugBreakpointFunctionUnverified=new l("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),l.debugBreakpointFunction=new l("debug-breakpoint-function",{fontCharacter:"\\eb88"}),l.debugBreakpointFunctionDisabled=new l("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),l.debugStackframeActive=new l("debug-stackframe-active",{fontCharacter:"\\eb89"}),l.debugStackframeDot=new l("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),l.debugStackframe=new l("debug-stackframe",{fontCharacter:"\\eb8b"}),l.debugStackframeFocused=new l("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),l.debugBreakpointUnsupported=new l("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),l.symbolString=new l("symbol-string",{fontCharacter:"\\eb8d"}),l.debugReverseContinue=new l("debug-reverse-continue",{fontCharacter:"\\eb8e"}),l.debugStepBack=new l("debug-step-back",{fontCharacter:"\\eb8f"}),l.debugRestartFrame=new l("debug-restart-frame",{fontCharacter:"\\eb90"}),l.callIncoming=new l("call-incoming",{fontCharacter:"\\eb92"}),l.callOutgoing=new l("call-outgoing",{fontCharacter:"\\eb93"}),l.menu=new l("menu",{fontCharacter:"\\eb94"}),l.expandAll=new l("expand-all",{fontCharacter:"\\eb95"}),l.feedback=new l("feedback",{fontCharacter:"\\eb96"}),l.groupByRefType=new l("group-by-ref-type",{fontCharacter:"\\eb97"}),l.ungroupByRefType=new l("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),l.account=new l("account",{fontCharacter:"\\eb99"}),l.bellDot=new l("bell-dot",{fontCharacter:"\\eb9a"}),l.debugConsole=new l("debug-console",{fontCharacter:"\\eb9b"}),l.library=new l("library",{fontCharacter:"\\eb9c"}),l.output=new l("output",{fontCharacter:"\\eb9d"}),l.runAll=new l("run-all",{fontCharacter:"\\eb9e"}),l.syncIgnored=new l("sync-ignored",{fontCharacter:"\\eb9f"}),l.pinned=new l("pinned",{fontCharacter:"\\eba0"}),l.githubInverted=new l("github-inverted",{fontCharacter:"\\eba1"}),l.debugAlt=new l("debug-alt",{fontCharacter:"\\eb91"}),l.serverProcess=new l("server-process",{fontCharacter:"\\eba2"}),l.serverEnvironment=new l("server-environment",{fontCharacter:"\\eba3"}),l.pass=new l("pass",{fontCharacter:"\\eba4"}),l.stopCircle=new l("stop-circle",{fontCharacter:"\\eba5"}),l.playCircle=new l("play-circle",{fontCharacter:"\\eba6"}),l.record=new l("record",{fontCharacter:"\\eba7"}),l.debugAltSmall=new l("debug-alt-small",{fontCharacter:"\\eba8"}),l.vmConnect=new l("vm-connect",{fontCharacter:"\\eba9"}),l.cloud=new l("cloud",{fontCharacter:"\\ebaa"}),l.merge=new l("merge",{fontCharacter:"\\ebab"}),l.exportIcon=new l("export",{fontCharacter:"\\ebac"}),l.graphLeft=new l("graph-left",{fontCharacter:"\\ebad"}),l.magnet=new l("magnet",{fontCharacter:"\\ebae"}),l.notebook=new l("notebook",{fontCharacter:"\\ebaf"}),l.redo=new l("redo",{fontCharacter:"\\ebb0"}),l.checkAll=new l("check-all",{fontCharacter:"\\ebb1"}),l.pinnedDirty=new l("pinned-dirty",{fontCharacter:"\\ebb2"}),l.passFilled=new l("pass-filled",{fontCharacter:"\\ebb3"}),l.circleLargeFilled=new l("circle-large-filled",{fontCharacter:"\\ebb4"}),l.circleLargeOutline=new l("circle-large-outline",{fontCharacter:"\\ebb5"}),l.combine=new l("combine",{fontCharacter:"\\ebb6"}),l.gather=new l("gather",{fontCharacter:"\\ebb6"}),l.table=new l("table",{fontCharacter:"\\ebb7"}),l.variableGroup=new l("variable-group",{fontCharacter:"\\ebb8"}),l.typeHierarchy=new l("type-hierarchy",{fontCharacter:"\\ebb9"}),l.typeHierarchySub=new l("type-hierarchy-sub",{fontCharacter:"\\ebba"}),l.typeHierarchySuper=new l("type-hierarchy-super",{fontCharacter:"\\ebbb"}),l.gitPullRequestCreate=new l("git-pull-request-create",{fontCharacter:"\\ebbc"}),l.runAbove=new l("run-above",{fontCharacter:"\\ebbd"}),l.runBelow=new l("run-below",{fontCharacter:"\\ebbe"}),l.notebookTemplate=new l("notebook-template",{fontCharacter:"\\ebbf"}),l.debugRerun=new l("debug-rerun",{fontCharacter:"\\ebc0"}),l.workspaceTrusted=new l("workspace-trusted",{fontCharacter:"\\ebc1"}),l.workspaceUntrusted=new l("workspace-untrusted",{fontCharacter:"\\ebc2"}),l.workspaceUnspecified=new l("workspace-unspecified",{fontCharacter:"\\ebc3"}),l.terminalCmd=new l("terminal-cmd",{fontCharacter:"\\ebc4"}),l.terminalDebian=new l("terminal-debian",{fontCharacter:"\\ebc5"}),l.terminalLinux=new l("terminal-linux",{fontCharacter:"\\ebc6"}),l.terminalPowershell=new l("terminal-powershell",{fontCharacter:"\\ebc7"}),l.terminalTmux=new l("terminal-tmux",{fontCharacter:"\\ebc8"}),l.terminalUbuntu=new l("terminal-ubuntu",{fontCharacter:"\\ebc9"}),l.terminalBash=new l("terminal-bash",{fontCharacter:"\\ebca"}),l.arrowSwap=new l("arrow-swap",{fontCharacter:"\\ebcb"}),l.copy=new l("copy",{fontCharacter:"\\ebcc"}),l.personAdd=new l("person-add",{fontCharacter:"\\ebcd"}),l.filterFilled=new l("filter-filled",{fontCharacter:"\\ebce"}),l.wand=new l("wand",{fontCharacter:"\\ebcf"}),l.debugLineByLine=new l("debug-line-by-line",{fontCharacter:"\\ebd0"}),l.inspect=new l("inspect",{fontCharacter:"\\ebd1"}),l.layers=new l("layers",{fontCharacter:"\\ebd2"}),l.layersDot=new l("layers-dot",{fontCharacter:"\\ebd3"}),l.layersActive=new l("layers-active",{fontCharacter:"\\ebd4"}),l.compass=new l("compass",{fontCharacter:"\\ebd5"}),l.compassDot=new l("compass-dot",{fontCharacter:"\\ebd6"}),l.compassActive=new l("compass-active",{fontCharacter:"\\ebd7"}),l.azure=new l("azure",{fontCharacter:"\\ebd8"}),l.issueDraft=new l("issue-draft",{fontCharacter:"\\ebd9"}),l.gitPullRequestClosed=new l("git-pull-request-closed",{fontCharacter:"\\ebda"}),l.gitPullRequestDraft=new l("git-pull-request-draft",{fontCharacter:"\\ebdb"}),l.debugAll=new l("debug-all",{fontCharacter:"\\ebdc"}),l.debugCoverage=new l("debug-coverage",{fontCharacter:"\\ebdd"}),l.runErrors=new l("run-errors",{fontCharacter:"\\ebde"}),l.folderLibrary=new l("folder-library",{fontCharacter:"\\ebdf"}),l.debugContinueSmall=new l("debug-continue-small",{fontCharacter:"\\ebe0"}),l.beakerStop=new l("beaker-stop",{fontCharacter:"\\ebe1"}),l.graphLine=new l("graph-line",{fontCharacter:"\\ebe2"}),l.graphScatter=new l("graph-scatter",{fontCharacter:"\\ebe3"}),l.pieChart=new l("pie-chart",{fontCharacter:"\\ebe4"}),l.bracket=new l("bracket",l.json.definition),l.bracketDot=new l("bracket-dot",{fontCharacter:"\\ebe5"}),l.bracketError=new l("bracket-error",{fontCharacter:"\\ebe6"}),l.lockSmall=new l("lock-small",{fontCharacter:"\\ebe7"}),l.azureDevops=new l("azure-devops",{fontCharacter:"\\ebe8"}),l.verifiedFilled=new l("verified-filled",{fontCharacter:"\\ebe9"})}(W||(W={}))},79881:function($n,Rt,u){"use strict";u.d(Rt,{B8:function(){return N},Cp:function(){return he},F0:function(){return Y},L6:function(){return x},VV:function(){return W},b1:function(){return l},dL:function(){return L},ri:function(){return Z}});class i{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(T){setTimeout(()=>{throw T.stack?new Error(T.message+`
|
|
|
|
|
|
`+T.stack):T},0)}}emit(T){this.listeners.forEach(A=>{A(T)})}onUnexpectedError(T){this.unexpectedErrorHandler(T),this.emit(T)}onUnexpectedExternalError(T){this.unexpectedErrorHandler(T)}}const K=new i;function L(y){W(y)||K.onUnexpectedError(y)}function he(y){W(y)||K.onUnexpectedExternalError(y)}function Z(y){if(y instanceof Error){let{name:T,message:A}=y;const $=y.stacktrace||y.stack;return{$isError:!0,name:T,message:A,stack:$}}return y}const g="Canceled";function W(y){return y instanceof Error&&y.name===g&&y.message===g}function Y(){const y=new Error(g);return y.name=y.message,y}function l(y){return y?new Error(`Illegal argument: ${y}`):new Error("Illegal argument")}function x(y){return y?new Error(`Illegal state: ${y}`):new Error("Illegal state")}class N extends Error{constructor(T){super("NotSupported"),T&&(this.message=T)}}},4348:function($n,Rt,u){"use strict";u.d(Rt,{D0:function(){return N},E7:function(){return y},K3:function(){return x},Q5:function(){return l},ZD:function(){return T},ju:function(){return Z}});var i=u(79881),K=u(69323),L=u(34502),he=u(95830),Z;(function(A){A.None=()=>K.JT.None;function $(_){return(ee,ne=null,se)=>{let w=!1,D;return D=_(ce=>{if(!w)return D?D.dispose():w=!0,ee.call(ne,ce)},null,se),w&&D.dispose(),D}}A.once=$;function H(_,ee){return I((ne,se=null,w)=>_(D=>ne.call(se,ee(D)),null,w))}A.map=H;function X(_,ee){return I((ne,se=null,w)=>_(D=>{ee(D),ne.call(se,D)},null,w))}A.forEach=X;function V(_,ee){return I((ne,se=null,w)=>_(D=>ee(D)&&ne.call(se,D),null,w))}A.filter=V;function R(_){return _}A.signal=R;function Q(..._){return(ee,ne=null,se)=>(0,K.F8)(..._.map(w=>w(D=>ee.call(ne,D),null,se)))}A.any=Q;function O(_,ee,ne){let se=ne;return H(_,w=>(se=ee(se,w),se))}A.reduce=O;function I(_){let ee;const ne=new l({onFirstListenerAdd(){ee=_(ne.fire,ne)},onLastListenerRemove(){ee.dispose()}});return ne.event}function ue(_,ee,ne=100,se=!1,w){let D,ce,Oe,ct=0;const Tt=new l({leakWarningThreshold:w,onFirstListenerAdd(){D=_(Ae=>{ct++,ce=ee(ce,Ae),se&&!Oe&&(Tt.fire(ce),ce=void 0),clearTimeout(Oe),Oe=setTimeout(()=>{const qe=ce;ce=void 0,Oe=void 0,(!se||ct>1)&&Tt.fire(qe),ct=0},ne)})},onLastListenerRemove(){D.dispose()}});return Tt.event}A.debounce=ue;function Se(_,ee=(ne,se)=>ne===se){let ne=!0,se;return V(_,w=>{const D=ne||!ee(w,se);return ne=!1,se=w,D})}A.latch=Se;function me(_,ee){return[A.filter(_,ee),A.filter(_,ne=>!ee(ne))]}A.split=me;function Ke(_,ee=!1,ne=[]){let se=ne.slice(),w=_(Oe=>{se?se.push(Oe):ce.fire(Oe)});const D=()=>{se&&se.forEach(Oe=>ce.fire(Oe)),se=null},ce=new l({onFirstListenerAdd(){w||(w=_(Oe=>ce.fire(Oe)))},onFirstListenerDidAdd(){se&&(ee?setTimeout(D):D())},onLastListenerRemove(){w&&w.dispose(),w=null}});return ce.event}A.buffer=Ke;class Je{constructor(ee){this.event=ee}map(ee){return new Je(H(this.event,ee))}forEach(ee){return new Je(X(this.event,ee))}filter(ee){return new Je(V(this.event,ee))}reduce(ee,ne){return new Je(O(this.event,ee,ne))}latch(){return new Je(Se(this.event))}debounce(ee,ne=100,se=!1,w){return new Je(ue(this.event,ee,ne,se,w))}on(ee,ne,se){return this.event(ee,ne,se)}once(ee,ne,se){return $(this.event)(ee,ne,se)}}function ke(_){return new Je(_)}A.chain=ke;function We(_,ee,ne=se=>se){const se=(...Oe)=>ce.fire(ne(...Oe)),w=()=>_.on(ee,se),D=()=>_.removeListener(ee,se),ce=new l({onFirstListenerAdd:w,onLastListenerRemove:D});return ce.event}A.fromNodeEventEmitter=We;function oe(_,ee,ne=se=>se){const se=(...Oe)=>ce.fire(ne(...Oe)),w=()=>_.addEventListener(ee,se),D=()=>_.removeEventListener(ee,se),ce=new l({onFirstListenerAdd:w,onLastListenerRemove:D});return ce.event}A.fromDOMEventEmitter=oe;function k(_){return new Promise(ee=>$(_)(ee))}A.toPromise=k})(Z||(Z={}));class g{constructor($){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${$}_${g._idPool++}`}start($){this._stopWatch=new he.G(!0),this._listenerCount=$}stop(){if(this._stopWatch){const $=this._stopWatch.elapsed();this._elapsedOverall+=$,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${$.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}g._idPool=0;let W=-1;class Y{constructor($,H=Math.random().toString(18).slice(2,5)){this.customThreshold=$,this.name=H,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check($){let H=W;if(typeof this.customThreshold=="number"&&(H=this.customThreshold),H<=0||$<H)return;this._stacks||(this._stacks=new Map);const X=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),V=this._stacks.get(X)||0;if(this._stacks.set(X,V+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=H*.5;let R,Q=0;for(const[O,I]of this._stacks)(!R||Q<I)&&(R=O,Q=I);console.warn(`[${this.name}] potential listener LEAK detected, having ${$} listeners already. MOST frequent listener (${Q}):`),console.warn(R)}return()=>{const R=this._stacks.get(X)||0;this._stacks.set(X,R-1)}}}class l{constructor($){var H;this._disposed=!1,this._options=$,this._leakageMon=W>0?new Y(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((H=this._options)===null||H===void 0)&&H._profName?new g(this._options._profName):void 0}get event(){return this._event||(this._event=($,H,X)=>{var V;this._listeners||(this._listeners=new L.S);const R=this._listeners.isEmpty();R&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const Q=this._listeners.push(H?[$,H]:$);R&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,$,H);const O=(V=this._leakageMon)===null||V===void 0?void 0:V.check(this._listeners.size),I=(0,K.OF)(()=>{O&&O(),this._disposed||(Q(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return X instanceof K.SL?X.add(I):Array.isArray(X)&&X.push(I),I}),this._event}fire($){var H,X;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new L.S);for(let V of this._listeners)this._deliveryQueue.push([V,$]);for((H=this._perfMon)===null||H===void 0||H.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[V,R]=this._deliveryQueue.shift();try{typeof V=="function"?V.call(void 0,R):V[0].call(V[1],R)}catch(Q){(0,i.dL)(Q)}}(X=this._perfMon)===null||X===void 0||X.stop()}}dispose(){var $,H,X,V,R;this._disposed||(this._disposed=!0,($=this._listeners)===null||$===void 0||$.clear(),(H=this._deliveryQueue)===null||H===void 0||H.clear(),(V=(X=this._options)===null||X===void 0?void 0:X.onLastListenerRemove)===null||V===void 0||V.call(X),(R=this._leakageMon)===null||R===void 0||R.dispose())}}class x extends l{constructor($){super($),this._isPaused=0,this._eventQueue=new L.S,this._mergeFn=$==null?void 0:$.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const $=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn($))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire($){this._listeners&&(this._isPaused!==0?this._eventQueue.push($):super.fire($))}}class N extends x{constructor($){var H;super($),this._delay=(H=$.delay)!==null&&H!==void 0?H:100}fire($){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire($)}}class y{constructor(){this.buffers=[]}wrapEvent($){return(H,X,V)=>$(R=>{const Q=this.buffers[this.buffers.length-1];Q?Q.push(()=>H.call(X,R)):H.call(X,R)},void 0,V)}bufferEvents($){const H=[];this.buffers.push(H);const X=$();return this.buffers.pop(),H.forEach(V=>V()),X}}class T{constructor(){this.listening=!1,this.inputEvent=Z.None,this.inputEventListener=K.JT.None,this.emitter=new l({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($){this.inputEvent=$,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=$(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function($n,Rt,u){"use strict";u.d(Rt,{I:function(){return i}});function i(K){const L=this;let he=!1,Z;return function(){return he||(he=!0,Z=K.apply(L,arguments)),Z}}},88226:function($n,Rt,u){"use strict";u.d(Rt,{$:function(){return i}});var i;(function(K){function L(Q){return Q&&typeof Q=="object"&&typeof Q[Symbol.iterator]=="function"}K.is=L;const he=Object.freeze([]);function Z(){return he}K.empty=Z;function*g(Q){yield Q}K.single=g;function W(Q){return Q||he}K.from=W;function Y(Q){return!Q||Q[Symbol.iterator]().next().done===!0}K.isEmpty=Y;function l(Q){return Q[Symbol.iterator]().next().value}K.first=l;function x(Q,O){for(const I of Q)if(O(I))return!0;return!1}K.some=x;function N(Q,O){for(const I of Q)if(O(I))return I}K.find=N;function*y(Q,O){for(const I of Q)O(I)&&(yield I)}K.filter=y;function*T(Q,O){let I=0;for(const ue of Q)yield O(ue,I++)}K.map=T;function*A(...Q){for(const O of Q)for(const I of O)yield I}K.concat=A;function*$(Q){for(const O of Q)for(const I of O)yield I}K.concatNested=$;function H(Q,O,I){let ue=I;for(const Se of Q)ue=O(ue,Se);return ue}K.reduce=H;function*X(Q,O,I=Q.length){for(O<0&&(O+=Q.length),I<0?I+=Q.length:I>Q.length&&(I=Q.length);O<I;O++)yield Q[O]}K.slice=X;function V(Q,O=Number.POSITIVE_INFINITY){const I=[];if(O===0)return[I,Q];const ue=Q[Symbol.iterator]();for(let Se=0;Se<O;Se++){const me=ue.next();if(me.done)return[I,K.empty()];I.push(me.value)}return[I,{[Symbol.iterator](){return ue}}]}K.consume=V;function R(Q,O,I=(ue,Se)=>ue===Se){const ue=Q[Symbol.iterator](),Se=O[Symbol.iterator]();for(;;){const me=ue.next(),Ke=Se.next();if(me.done!==Ke.done)return!1;if(me.done)return!0;if(!I(me.value,Ke.value))return!1}}K.equals=R})(i||(i={}))},69323:function($n,Rt,u){"use strict";u.d(Rt,{B9:function(){return T},F8:function(){return A},JT:function(){return X},Jz:function(){return R},OF:function(){return $},SL:function(){return H},Wf:function(){return y},XK:function(){return V},dk:function(){return x}});var i=u(17845),K=u(88226);const L=!1;let he=null;function Z(Q){he=Q}if(L){const Q="__is_disposable_tracked__";Z(new class{trackDisposable(O){const I=new Error("Potentially leaked disposable").stack;setTimeout(()=>{O[Q]||console.log(I)},3e3)}setParent(O,I){if(O&&O!==X.None)try{O[Q]=!0}catch(ue){}}markAsDisposed(O){if(O&&O!==X.None)try{O[Q]=!0}catch(I){}}markAsSingleton(O){}})}function g(Q){return he==null||he.trackDisposable(Q),Q}function W(Q){he==null||he.markAsDisposed(Q)}function Y(Q,O){he==null||he.setParent(Q,O)}function l(Q,O){if(he)for(const I of Q)he.setParent(I,O)}function x(Q){return he==null||he.markAsSingleton(Q),Q}class N extends Error{constructor(O){super(`Encountered errors while disposing of store. Errors: [${O.join(", ")}]`),this.errors=O}}function y(Q){return typeof Q.dispose=="function"&&Q.dispose.length===0}function T(Q){if(K.$.is(Q)){let O=[];for(const I of Q)if(I)try{I.dispose()}catch(ue){O.push(ue)}if(O.length===1)throw O[0];if(O.length>1)throw new N(O);return Array.isArray(Q)?[]:Q}else if(Q)return Q.dispose(),Q}function A(...Q){const O=$(()=>T(Q));return l(Q,O),O}function $(Q){const O=g({dispose:(0,i.I)(()=>{W(O),Q()})});return O}class H{constructor(){this._toDispose=new Set,this._isDisposed=!1,g(this)}dispose(){this._isDisposed||(W(this),this._isDisposed=!0,this.clear())}clear(){try{T(this._toDispose.values())}finally{this._toDispose.clear()}}add(O){if(!O)return O;if(O===this)throw new Error("Cannot register a disposable on itself!");return Y(O,this),this._isDisposed?H.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(O),O}}H.DISABLE_DISPOSED_WARNING=!1;class X{constructor(){this._store=new H,g(this),Y(this._store,this)}dispose(){W(this),this._store.dispose()}_register(O){if(O===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(O)}}X.None=Object.freeze({dispose(){}});class V{constructor(){this._isDisposed=!1,g(this)}get value(){return this._isDisposed?void 0:this._value}set value(O){var I;this._isDisposed||O===this._value||((I=this._value)===null||I===void 0||I.dispose(),O&&Y(O,this),this._value=O)}clear(){this.value=void 0}dispose(){var O;this._isDisposed=!0,W(this),(O=this._value)===null||O===void 0||O.dispose(),this._value=void 0}clearAndLeak(){const O=this._value;return this._value=void 0,O&&Y(O,null),O}}class R{constructor(O){this.object=O}dispose(){}}},34502:function($n,Rt,u){"use strict";u.d(Rt,{S:function(){return K}});class i{constructor(he){this.element=he,this.next=i.Undefined,this.prev=i.Undefined}}i.Undefined=new i(void 0);class K{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let he=this._first;for(;he!==i.Undefined;){const Z=he.next;he.prev=i.Undefined,he.next=i.Undefined,he=Z}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(he){return this._insert(he,!1)}push(he){return this._insert(he,!0)}_insert(he,Z){const g=new i(he);if(this._first===i.Undefined)this._first=g,this._last=g;else if(Z){const Y=this._last;this._last=g,g.prev=Y,Y.next=g}else{const Y=this._first;this._first=g,g.next=Y,Y.prev=g}this._size+=1;let W=!1;return()=>{W||(W=!0,this._remove(g))}}shift(){if(this._first!==i.Undefined){const he=this._first.element;return this._remove(this._first),he}}pop(){if(this._last!==i.Undefined){const he=this._last.element;return this._remove(this._last),he}}_remove(he){if(he.prev!==i.Undefined&&he.next!==i.Undefined){const Z=he.prev;Z.next=he.next,he.next.prev=Z}else he.prev===i.Undefined&&he.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):he.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):he.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let he=this._first;for(;he!==i.Undefined;)yield he.element,he=he.next}}},23345:function($n,Rt,u){"use strict";u.d(Rt,{$L:function(){return ue},ED:function(){return R},IJ:function(){return O},OS:function(){return Je},WE:function(){return me},dz:function(){return Q},gn:function(){return Se},li:function(){return $},r:function(){return oe},tY:function(){return I},xS:function(){return Ke}});var i=u(97671),K;const L="en";let he=!1,Z=!1,g=!1,W=!1,Y=!1,l=!1,x=!1,N,y=null,T=null,A;const $=typeof self=="object"?self:typeof u.g=="object"?u.g:{};let H;typeof $.vscode!="undefined"&&typeof $.vscode.process!="undefined"?H=$.vscode.process:typeof i!="undefined"&&(H=i);const X=typeof((K=H==null?void 0:H.versions)===null||K===void 0?void 0:K.electron)=="string"&&H.type==="renderer";if(typeof navigator=="object"&&!X)A=navigator.userAgent,he=A.indexOf("Windows")>=0,Z=A.indexOf("Macintosh")>=0,x=(A.indexOf("Macintosh")>=0||A.indexOf("iPad")>=0||A.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,g=A.indexOf("Linux")>=0,l=!0,N=navigator.language,y=N;else if(typeof H=="object"){he=H.platform==="win32",Z=H.platform==="darwin",g=H.platform==="linux",W=g&&!!H.env.SNAP&&!!H.env.SNAP_REVISION,N=L,y=L;const k=H.env.VSCODE_NLS_CONFIG;if(k)try{const _=JSON.parse(k),ee=_.availableLanguages["*"];N=_.locale,y=ee||L,T=_._translationsConfigFile}catch(_){}Y=!0}else console.error("Unable to resolve platform.");let V=0;Z?V=1:he?V=3:g&&(V=2);const R=he,Q=Z,O=g,I=Y,ue=l,Se=x,me=A,Ke=function(){if($.setImmediate)return $.setImmediate.bind($);if(typeof $.postMessage=="function"&&!$.importScripts){let ee=[];$.addEventListener("message",se=>{if(se.data&&se.data.vscodeSetImmediateId)for(let w=0,D=ee.length;w<D;w++){const ce=ee[w];if(ce.id===se.data.vscodeSetImmediateId){ee.splice(w,1),ce.callback();return}}});let ne=0;return se=>{const w=++ne;ee.push({id:w,callback:se}),$.postMessage({vscodeSetImmediateId:w},"*")}}if(typeof(H==null?void 0:H.nextTick)=="function")return H.nextTick.bind(H);const _=Promise.resolve();return ee=>_.then(ee)}(),Je=Z||x?2:he?1:3;let ke=!0,We=!1;function oe(){if(!We){We=!0;const k=new Uint8Array(2);k[0]=1,k[1]=2,ke=new Uint16Array(k.buffer)[0]===513}return ke}},95830:function($n,Rt,u){"use strict";u.d(Rt,{G:function(){return L}});var i=u(23345);const K=i.li.performance&&typeof i.li.performance.now=="function";class L{constructor(Z){this._highResolution=K&&Z,this._startTime=this._now(),this._stopTime=-1}static create(Z=!0){return new L(Z)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?i.li.performance.now():Date.now()}}},82983:function($n,Rt,u){"use strict";u.d(Rt,{$i:function(){return ct},C8:function(){return tt},GF:function(){return N},HO:function(){return ne},IO:function(){return y},K7:function(){return ht},Kw:function(){return bt},LC:function(){return $},Mh:function(){return Ke},P1:function(){return Je},PJ:function(){return cn},Qe:function(){return Tt},R1:function(){return x},RP:function(){return ce},S6:function(){return vt},TT:function(){return R},Ut:function(){return w},V8:function(){return H},WU:function(){return L},YK:function(){return We},YU:function(){return he},ZG:function(){return ke},ZH:function(){return k},ab:function(){return Ae},c1:function(){return Fe},df:function(){return ue},ec:function(){return Z},fi:function(){return pt},fy:function(){return g},j3:function(){return W},j_:function(){return O},m5:function(){return i},mK:function(){return I},mr:function(){return T},oH:function(){return le},oL:function(){return Y},ok:function(){return me},ow:function(){return X},qq:function(){return Se},qu:function(){return V},rL:function(){return oe},uS:function(){return jt},un:function(){return l},uq:function(){return A},vH:function(){return ee},xe:function(){return qe},zY:function(){return Q}});function i(P){return!P||typeof P!="string"?!0:P.trim().length===0}const K=/{(\d+)}/g;function L(P,..._e){return _e.length===0?P:P.replace(K,function(Ie,Te){const ze=parseInt(Te,10);return isNaN(ze)||ze<0||ze>=_e.length?Ie:_e[ze]})}function he(P){return P.replace(/[<>&]/g,function(_e){switch(_e){case"<":return"<";case">":return">";case"&":return"&";default:return _e}})}function Z(P){return P.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function g(P,_e=" "){const Ie=W(P,_e);return Y(Ie,_e)}function W(P,_e){if(!P||!_e)return P;const Ie=_e.length;if(Ie===0||P.length===0)return P;let Te=0;for(;P.indexOf(_e,Te)===Te;)Te=Te+Ie;return P.substring(Te)}function Y(P,_e){if(!P||!_e)return P;const Ie=_e.length,Te=P.length;if(Ie===0||Te===0)return P;let ze=Te,Ue=-1;for(;Ue=P.lastIndexOf(_e,ze-1),!(Ue===-1||Ue+Ie!==ze);){if(Ue===0)return"";ze=Ue}return P.substring(0,ze)}function l(P){return P.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function x(P){return P.replace(/\*/g,"")}function N(P,_e,Ie={}){if(!P)throw new Error("Cannot create regex from empty string");_e||(P=Z(P)),Ie.wholeWord&&(/\B/.test(P.charAt(0))||(P="\\b"+P),/\B/.test(P.charAt(P.length-1))||(P=P+"\\b"));let Te="";return Ie.global&&(Te+="g"),Ie.matchCase||(Te+="i"),Ie.multiline&&(Te+="m"),Ie.unicode&&(Te+="u"),new RegExp(P,Te)}function y(P){return P.source==="^"||P.source==="^$"||P.source==="$"||P.source==="^\\s*$"?!1:!!(P.exec("")&&P.lastIndex===0)}function T(P){return(P.global?"g":"")+(P.ignoreCase?"i":"")+(P.multiline?"m":"")+(P.unicode?"u":"")}function A(P){return P.split(/\r\n|\r|\n/)}function $(P){for(let _e=0,Ie=P.length;_e<Ie;_e++){const Te=P.charCodeAt(_e);if(Te!==32&&Te!==9)return _e}return-1}function H(P,_e=0,Ie=P.length){for(let Te=_e;Te<Ie;Te++){const ze=P.charCodeAt(Te);if(ze!==32&&ze!==9)return P.substring(_e,Te)}return P.substring(_e,Ie)}function X(P,_e=P.length-1){for(let Ie=_e;Ie>=0;Ie--){const Te=P.charCodeAt(Ie);if(Te!==32&&Te!==9)return Ie}return-1}function V(P,_e){return P<_e?-1:P>_e?1:0}function R(P,_e,Ie=0,Te=P.length,ze=0,Ue=_e.length){for(;Ie<Te&&ze<Ue;Ie++,ze++){let xe=P.charCodeAt(Ie),Ot=_e.charCodeAt(ze);if(xe<Ot)return-1;if(xe>Ot)return 1}const ft=Te-Ie,de=Ue-ze;return ft<de?-1:ft>de?1:0}function Q(P,_e){return O(P,_e,0,P.length,0,_e.length)}function O(P,_e,Ie=0,Te=P.length,ze=0,Ue=_e.length){for(;Ie<Te&&ze<Ue;Ie++,ze++){let xe=P.charCodeAt(Ie),Ot=_e.charCodeAt(ze);if(xe===Ot)continue;if(xe>=128||Ot>=128)return R(P.toLowerCase(),_e.toLowerCase(),Ie,Te,ze,Ue);I(xe)&&(xe-=32),I(Ot)&&(Ot-=32);const _t=xe-Ot;if(_t!==0)return _t}const ft=Te-Ie,de=Ue-ze;return ft<de?-1:ft>de?1:0}function I(P){return P>=97&&P<=122}function ue(P){return P>=65&&P<=90}function Se(P,_e){return P.length===_e.length&&O(P,_e)===0}function me(P,_e){const Ie=_e.length;return _e.length>P.length?!1:O(P,_e,0,Ie)===0}function Ke(P,_e){let Ie,Te=Math.min(P.length,_e.length);for(Ie=0;Ie<Te;Ie++)if(P.charCodeAt(Ie)!==_e.charCodeAt(Ie))return Ie;return Te}function Je(P,_e){let Ie,Te=Math.min(P.length,_e.length);const ze=P.length-1,Ue=_e.length-1;for(Ie=0;Ie<Te;Ie++)if(P.charCodeAt(ze-Ie)!==_e.charCodeAt(Ue-Ie))return Ie;return Te}function ke(P){return 55296<=P&&P<=56319}function We(P){return 56320<=P&&P<=57343}function oe(P,_e){return(P-55296<<10)+(_e-56320)+65536}function k(P,_e,Ie){const Te=P.charCodeAt(Ie);if(ke(Te)&&Ie+1<_e){const ze=P.charCodeAt(Ie+1);if(We(ze))return oe(Te,ze)}return Te}function _(P,_e){const Ie=P.charCodeAt(_e-1);if(We(Ie)&&_e>1){const Te=P.charCodeAt(_e-2);if(ke(Te))return oe(Te,Ie)}return Ie}function ee(P,_e){const Ie=Qe.getInstance(),Te=_e,ze=P.length,Ue=k(P,ze,_e);_e+=Ue>=65536?2:1;let ft=Ie.getGraphemeBreakType(Ue);for(;_e<ze;){const de=k(P,ze,_e),xe=Ie.getGraphemeBreakType(de);if(pt(ft,xe))break;_e+=de>=65536?2:1,ft=xe}return _e-Te}function ne(P,_e){const Ie=Qe.getInstance(),Te=_e,ze=_(P,_e);_e-=ze>=65536?2:1;let Ue=Ie.getGraphemeBreakType(ze);for(;_e>0;){const ft=_(P,_e),de=Ie.getGraphemeBreakType(ft);if(pt(de,Ue))break;_e-=ft>=65536?2:1,Ue=de}return Te-_e}const se=/(?:[\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 w(P){return se.test(P)}const D=/(?:[\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 ce(P){return D.test(P)}const Oe=/^[\t\n\r\x20-\x7E]*$/;function ct(P){return Oe.test(P)}const Tt=/[\u2028\u2029]/;function Ae(P){return Tt.test(P)}function qe(P){for(let _e=0,Ie=P.length;_e<Ie;_e++)if(ht(P.charCodeAt(_e)))return!0;return!1}function ht(P){return P=+P,P>=11904&&P<=55215||P>=63744&&P<=64255||P>=65281&&P<=65374}function tt(P){return P>=127462&&P<=127487||P===8986||P===8987||P===9200||P===9203||P>=9728&&P<=10175||P===11088||P===11093||P>=127744&&P<=128591||P>=128640&&P<=128764||P>=128992&&P<=129003||P>=129280&&P<=129535||P>=129648&&P<=129750}const Fe="\uFEFF";function jt(P){return!!(P&&P.length>0&&P.charCodeAt(0)===65279)}function bt(P,_e=!1){return P?(_e&&(P=P.replace(/\\./g,"")),P.toLowerCase()!==P):!1}function cn(P){return P=P%(2*26),P<26?String.fromCharCode(97+P):String.fromCharCode(65+P-26)}function vt(P){return Qe.getInstance().getGraphemeBreakType(P)}function pt(P,_e){return P===0?_e!==5&&_e!==7:P===2&&_e===3?!1:P===4||P===2||P===3||_e===4||_e===2||_e===3?!0:!(P===8&&(_e===8||_e===9||_e===11||_e===12)||(P===11||P===9)&&(_e===9||_e===10)||(P===12||P===10)&&_e===10||_e===5||_e===13||_e===7||P===1||P===13&&_e===14||P===6&&_e===6)}class Qe{constructor(){this._data=Ne()}static getInstance(){return Qe._INSTANCE||(Qe._INSTANCE=new Qe),Qe._INSTANCE}getGraphemeBreakType(_e){if(_e<32)return _e===10?3:_e===13?2:4;if(_e<127)return 0;const Ie=this._data,Te=Ie.length/3;let ze=1;for(;ze<=Te;)if(_e<Ie[3*ze])ze=2*ze;else if(_e>Ie[3*ze+1])ze=2*ze+1;else return Ie[3*ze+2];return 0}}Qe._INSTANCE=null;function Ne(){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 le(P,_e){if(P===0)return 0;const Ie=Pe(P,_e);if(Ie!==void 0)return Ie;const Te=_(_e,P);return P-=Ge(Te),P}function Pe(P,_e){let Ie=_(_e,P);for(P-=Ge(Ie);j(Ie)||Ie===65039||Ie===8419;){if(P===0)return;Ie=_(_e,P),P-=Ge(Ie)}if(tt(Ie)){if(P>=0){const Te=_(_e,P);Te===8205&&(P-=Ge(Te))}return P}}function Ge(P){return P>=65536?2:1}function j(P){return 127995<=P&&P<=127999}},72999:function($n,Rt,u){"use strict";u.d(Rt,{$E:function(){return $},$K:function(){return W},D8:function(){return y},HD:function(){return K},IU:function(){return H},Jp:function(){return Y},Kn:function(){return L},cW:function(){return x},f6:function(){return X},hj:function(){return he},jn:function(){return Z},kJ:function(){return i},mf:function(){return N},o8:function(){return g},p_:function(){return l},vE:function(){return V}});function i(R){return Array.isArray(R)}function K(R){return typeof R=="string"}function L(R){return typeof R=="object"&&R!==null&&!Array.isArray(R)&&!(R instanceof RegExp)&&!(R instanceof Date)}function he(R){return typeof R=="number"&&!isNaN(R)}function Z(R){return R===!0||R===!1}function g(R){return typeof R=="undefined"}function W(R){return!Y(R)}function Y(R){return g(R)||R===null}function l(R,Q){if(!R)throw new Error(Q?`Unexpected type, expected '${Q}'`:"Unexpected type")}function x(R){if(Y(R))throw new Error("Assertion Failed: argument is undefined or null");return R}function N(R){return typeof R=="function"}function y(R,Q){const O=Math.min(R.length,Q.length);for(let I=0;I<O;I++)T(R[I],Q[I])}function T(R,Q){if(K(Q)){if(typeof R!==Q)throw new Error(`argument does not match constraint: typeof ${Q}`)}else if(N(Q)){try{if(R instanceof Q)return}catch(O){}if(!Y(R)&&R.constructor===Q||Q.length===1&&Q.call(void 0,R)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function A(R){let Q=[],O=Object.getPrototypeOf(R);for(;Object.prototype!==O;)Q=Q.concat(Object.getOwnPropertyNames(O)),O=Object.getPrototypeOf(O);return Q}function $(R){const Q=[];for(const O of A(R))typeof R[O]=="function"&&Q.push(O);return Q}function H(R,Q){const O=ue=>function(){const Se=Array.prototype.slice.call(arguments,0);return Q(ue,Se)};let I={};for(const ue of R)I[ue]=O(ue);return I}function X(R){return R===null?void 0:R}function V(R,Q="Unreachable"){throw new Error(Q)}},13268:function($n,Rt,u){"use strict";u.d(Rt,{N:function(){return K}});function i(L,he){let Z;return he.length===0?Z=L:Z=L.replace(/\{(\d+)\}/g,function(g,W){const Y=W[0];return typeof he[Y]!="undefined"?he[Y]:g}),Z}function K(L,he,...Z){return i(he,Z)}},96236:function($n,Rt,u){"use strict";u.d(Rt,{BH:function(){return H},NZ:function(){return X},U8:function(){return V},co:function(){return $},eH:function(){return A},vr:function(){return T}});var i=u(75918),K=u(52615),L=u(4348),he=u(88226),Z=u(69323),g=u(34502),W=u(35884),Y=u(90689),l=u(16925),x=u(49055),N=function(R,Q,O,I){var ue=arguments.length,Se=ue<3?Q:I===null?I=Object.getOwnPropertyDescriptor(Q,O):I,me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Se=Reflect.decorate(R,Q,O,I);else for(var Ke=R.length-1;Ke>=0;Ke--)(me=R[Ke])&&(Se=(ue<3?me(Se):ue>3?me(Q,O,Se):me(Q,O))||Se);return ue>3&&Se&&Object.defineProperty(Q,O,Se),Se},y=function(R,Q){return function(O,I){Q(O,I,R)}};function T(R){return R.command!==void 0}class A{constructor(Q){this.id=A._idPool++,this._debugName=Q}}A._idPool=0,A.CommandPalette=new A("CommandPalette"),A.EditorContext=new A("EditorContext"),A.SimpleEditorContext=new A("SimpleEditorContext"),A.EditorContextCopy=new A("EditorContextCopy"),A.EditorContextPeek=new A("EditorContextPeek"),A.MenubarEditMenu=new A("MenubarEditMenu"),A.MenubarCopy=new A("MenubarCopy"),A.MenubarGoMenu=new A("MenubarGoMenu"),A.MenubarSelectionMenu=new A("MenubarSelectionMenu"),A.InlineCompletionsActions=new A("InlineCompletionsActions");const $=(0,l.yh)("menuService"),H=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new L.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:R=>R===A.CommandPalette}}addCommand(R){return this.addCommands(he.$.single(R))}addCommands(R){for(const Q of R)this._commands.set(Q.id,Q);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,Z.OF)(()=>{let Q=!1;for(const O of R)Q=this._commands.delete(O.id)||Q;Q&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(R){return this._commands.get(R)}getCommands(){const R=new Map;return this._commands.forEach((Q,O)=>R.set(O,Q)),R}appendMenuItem(R,Q){return this.appendMenuItems(he.$.single({id:R,item:Q}))}appendMenuItems(R){const Q=new Set,O=new g.S;for(const{id:I,item:ue}of R){let Se=this._menuItems.get(I);Se||(Se=new g.S,this._menuItems.set(I,Se)),O.push(Se.push(ue)),Q.add(I)}return this._onDidChangeMenu.fire(Q),(0,Z.OF)(()=>{if(O.size>0){for(let I of O)I();this._onDidChangeMenu.fire(Q),O.clear()}})}getMenuItems(R){let Q;return this._menuItems.has(R)?Q=[...this._menuItems.get(R)]:Q=[],R===A.CommandPalette&&this._appendImplicitItems(Q),Q}_appendImplicitItems(R){const Q=new Set;for(const O of R)T(O)&&(Q.add(O.command.id),O.alt&&Q.add(O.alt.id));this._commands.forEach((O,I)=>{Q.has(I)||R.push({command:O})})}};class X extends i.wY{constructor(Q,O,I,ue){super(`submenuitem.${Q.submenu.id}`,typeof Q.title=="string"?Q.title:Q.title.value,[],"submenu"),this.item=Q,this._menuService=O,this._contextKeyService=I,this._options=ue}get actions(){const Q=[],O=this._menuService.createMenu(this.item.submenu,this._contextKeyService),I=O.getActions(this._options);O.dispose();for(const[,ue]of I)ue.length>0&&(Q.push(...ue),Q.push(new i.Z0));return Q.length&&Q.pop(),Q}}let V=class cc{constructor(Q,O,I,ue,Se){var me,Ke;if(this._commandService=Se,this.id=Q.id,this.label=I!=null&&I.renderShortTitle&&Q.shortTitle?typeof Q.shortTitle=="string"?Q.shortTitle:Q.shortTitle.value:typeof Q.title=="string"?Q.title:Q.title.value,this.tooltip=(Ke=typeof Q.tooltip=="string"?Q.tooltip:(me=Q.tooltip)===null||me===void 0?void 0:me.value)!==null&&Ke!==void 0?Ke:"",this.enabled=!Q.precondition||ue.contextMatchesRules(Q.precondition),this.checked=void 0,Q.toggled){const Je=Q.toggled.condition?Q.toggled:{condition:Q.toggled};this.checked=ue.contextMatchesRules(Je.condition),this.checked&&Je.tooltip&&(this.tooltip=typeof Je.tooltip=="string"?Je.tooltip:Je.tooltip.value),Je.title&&(this.label=typeof Je.title=="string"?Je.title:Je.title.value)}this.item=Q,this.alt=O?new cc(O,void 0,I,ue,Se):void 0,this._options=I,x.kS.isThemeIcon(Q.icon)&&(this.class=K.dT.asClassName(Q.icon))}dispose(){}run(...Q){var O,I;let ue=[];return!((O=this._options)===null||O===void 0)&&O.arg&&(ue=[...ue,this._options.arg]),!((I=this._options)===null||I===void 0)&&I.shouldForwardArgs&&(ue=[...ue,...Q]),this._commandService.executeCommand(this.id,...ue)}};V=N([y(3,Y.i6),y(4,W.H)],V)},35884:function($n,Rt,u){"use strict";u.d(Rt,{H:function(){return W},P:function(){return Y}});var i=u(4348),K=u(88226),L=u(69323),he=u(34502),Z=u(72999),g=u(16925);const W=(0,g.yh)("commandService"),Y=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new i.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(l,x){if(!l)throw new Error("invalid command");if(typeof l=="string"){if(!x)throw new Error("invalid command");return this.registerCommand({id:l,handler:x})}if(l.description){const $=[];for(let X of l.description.args)$.push(X.constraint);const H=l.handler;l.handler=function(X,...V){return(0,Z.D8)(V,$),H(X,...V)}}const{id:N}=l;let y=this._commands.get(N);y||(y=new he.S,this._commands.set(N,y));let T=y.unshift(l),A=(0,L.OF)(()=>{T();const $=this._commands.get(N);$!=null&&$.isEmpty()&&this._commands.delete(N)});return this._onDidRegisterCommand.fire(N),A}registerCommandAlias(l,x){return Y.registerCommand(l,(N,...y)=>N.get(W).executeCommand(x,...y))}getCommand(l){const x=this._commands.get(l);if(!(!x||x.isEmpty()))return K.$.first(x)}getCommands(){const l=new Map;for(const x of this._commands.keys()){const N=this.getCommand(x);N&&l.set(x,N)}return l}};Y.registerCommand("noop",()=>{})},90689:function($n,Rt,u){"use strict";u.d(Rt,{Ao:function(){return W},Eq:function(){return oe},Fb:function(){return Y},K8:function(){return ee},i6:function(){return We},uy:function(){return ke}});var i=u(23345),K=u(82983),L=u(16925);let he=i.WE||"";const Z=new Map;Z.set("false",!1),Z.set("true",!0),Z.set("isMac",i.dz),Z.set("isLinux",i.IJ),Z.set("isWindows",i.ED),Z.set("isWeb",i.$L),Z.set("isMacNative",i.dz&&!i.$L),Z.set("isEdge",he.indexOf("Edg/")>=0),Z.set("isFirefox",he.indexOf("Firefox")>=0),Z.set("isChrome",he.indexOf("Chrome")>=0),Z.set("isSafari",he.indexOf("Safari")>=0);const g=Object.prototype.hasOwnProperty;class W{static has(w){return y.create(w)}static equals(w,D){return T.create(w,D)}static regex(w,D){return ue.create(w,D)}static not(w){return X.create(w)}static and(...w){return Ke.create(w,null)}static or(...w){return Je.create(w,null,!0)}static deserialize(w,D=!1){if(w)return this._deserializeOrExpression(w,D)}static _deserializeOrExpression(w,D){let ce=w.split("||");return Je.create(ce.map(Oe=>this._deserializeAndExpression(Oe,D)),null,!0)}static _deserializeAndExpression(w,D){let ce=w.split("&&");return Ke.create(ce.map(Oe=>this._deserializeOne(Oe,D)),null)}static _deserializeOne(w,D){if(w=w.trim(),w.indexOf("!=")>=0){let ce=w.split("!=");return H.create(ce[0].trim(),this._deserializeValue(ce[1],D))}if(w.indexOf("==")>=0){let ce=w.split("==");return T.create(ce[0].trim(),this._deserializeValue(ce[1],D))}if(w.indexOf("=~")>=0){let ce=w.split("=~");return ue.create(ce[0].trim(),this._deserializeRegexValue(ce[1],D))}if(w.indexOf(" in ")>=0){let ce=w.split(" in ");return A.create(ce[0].trim(),ce[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(w)){const ce=w.split(">=");return Q.create(ce[0].trim(),ce[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(w)){const ce=w.split(">");return R.create(ce[0].trim(),ce[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(w)){const ce=w.split("<=");return I.create(ce[0].trim(),ce[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(w)){const ce=w.split("<");return O.create(ce[0].trim(),ce[1].trim())}return/^\!\s*/.test(w)?X.create(w.substr(1).trim()):y.create(w)}static _deserializeValue(w,D){if(w=w.trim(),w==="true")return!0;if(w==="false")return!1;let ce=/^'([^']*)'$/.exec(w);return ce?ce[1].trim():w}static _deserializeRegexValue(w,D){if((0,K.m5)(w)){if(D)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let ce=w.indexOf("/"),Oe=w.lastIndexOf("/");if(ce===Oe||ce<0){if(D)throw new Error(`bad regexp-value '${w}', missing /-enclosure`);return console.warn(`bad regexp-value '${w}', missing /-enclosure`),null}let ct=w.slice(ce+1,Oe),Tt=w[Oe+1]==="i"?"i":"";try{return new RegExp(ct,Tt)}catch(Ae){if(D)throw new Error(`bad regexp-value '${w}', parse error: ${Ae}`);return console.warn(`bad regexp-value '${w}', parse error: ${Ae}`),null}}}function Y(se,w){const D=se?se.substituteConstants():void 0,ce=w?w.substituteConstants():void 0;return!D&&!ce?!0:!D||!ce?!1:D.equals(ce)}function l(se,w){return se.cmp(w)}class x{constructor(){this.type=0}cmp(w){return this.type-w.type}equals(w){return w.type===this.type}substituteConstants(){return this}evaluate(w){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}x.INSTANCE=new x;class N{constructor(){this.type=1}cmp(w){return this.type-w.type}equals(w){return w.type===this.type}substituteConstants(){return this}evaluate(w){return!0}serialize(){return"true"}keys(){return[]}negate(){return x.INSTANCE}}N.INSTANCE=new N;class y{constructor(w,D){this.key=w,this.negated=D,this.type=2}static create(w,D=null){const ce=Z.get(w);return typeof ce=="boolean"?ce?N.INSTANCE:x.INSTANCE:new y(w,D)}cmp(w){return w.type!==this.type?this.type-w.type:k(this.key,w.key)}equals(w){return w.type===this.type?this.key===w.key:!1}substituteConstants(){const w=Z.get(this.key);return typeof w=="boolean"?w?N.INSTANCE:x.INSTANCE:this}evaluate(w){return!!w.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=X.create(this.key,this)),this.negated}}class T{constructor(w,D,ce){this.key=w,this.value=D,this.negated=ce,this.type=4}static create(w,D,ce=null){if(typeof D=="boolean")return D?y.create(w,ce):X.create(w,ce);const Oe=Z.get(w);return typeof Oe=="boolean"?D===(Oe?"true":"false")?N.INSTANCE:x.INSTANCE:new T(w,D,ce)}cmp(w){return w.type!==this.type?this.type-w.type:_(this.key,this.value,w.key,w.value)}equals(w){return w.type===this.type?this.key===w.key&&this.value===w.value:!1}substituteConstants(){const w=Z.get(this.key);if(typeof w=="boolean"){const D=w?"true":"false";return this.value===D?N.INSTANCE:x.INSTANCE}return this}evaluate(w){return w.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class A{constructor(w,D){this.key=w,this.valueKey=D,this.type=10,this.negated=null}static create(w,D){return new A(w,D)}cmp(w){return w.type!==this.type?this.type-w.type:_(this.key,this.valueKey,w.key,w.valueKey)}equals(w){return w.type===this.type?this.key===w.key&&this.valueKey===w.valueKey:!1}substituteConstants(){return this}evaluate(w){const D=w.getValue(this.valueKey),ce=w.getValue(this.key);return Array.isArray(D)?D.indexOf(ce)>=0:typeof ce=="string"&&typeof D=="object"&&D!==null?g.call(D,ce):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=$.create(this)),this.negated}}class ${constructor(w){this._actual=w,this.type=11}static create(w){return new $(w)}cmp(w){return w.type!==this.type?this.type-w.type:this._actual.cmp(w._actual)}equals(w){return w.type===this.type?this._actual.equals(w._actual):!1}substituteConstants(){return this}evaluate(w){return!this._actual.evaluate(w)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class H{constructor(w,D,ce){this.key=w,this.value=D,this.negated=ce,this.type=5}static create(w,D,ce=null){if(typeof D=="boolean")return D?X.create(w,ce):y.create(w,ce);const Oe=Z.get(w);return typeof Oe=="boolean"?D===(Oe?"true":"false")?x.INSTANCE:N.INSTANCE:new H(w,D,ce)}cmp(w){return w.type!==this.type?this.type-w.type:_(this.key,this.value,w.key,w.value)}equals(w){return w.type===this.type?this.key===w.key&&this.value===w.value:!1}substituteConstants(){const w=Z.get(this.key);if(typeof w=="boolean"){const D=w?"true":"false";return this.value===D?x.INSTANCE:N.INSTANCE}return this}evaluate(w){return w.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class X{constructor(w,D){this.key=w,this.negated=D,this.type=3}static create(w,D=null){const ce=Z.get(w);return typeof ce=="boolean"?ce?x.INSTANCE:N.INSTANCE:new X(w,D)}cmp(w){return w.type!==this.type?this.type-w.type:k(this.key,w.key)}equals(w){return w.type===this.type?this.key===w.key:!1}substituteConstants(){const w=Z.get(this.key);return typeof w=="boolean"?w?x.INSTANCE:N.INSTANCE:this}evaluate(w){return!w.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=y.create(this.key,this)),this.negated}}function V(se,w){if(typeof se=="string"){const D=parseFloat(se);isNaN(D)||(se=D)}return typeof se=="string"||typeof se=="number"?w(se):x.INSTANCE}class R{constructor(w,D,ce){this.key=w,this.value=D,this.negated=ce,this.type=12}static create(w,D,ce=null){return V(D,Oe=>new R(w,Oe,ce))}cmp(w){return w.type!==this.type?this.type-w.type:_(this.key,this.value,w.key,w.value)}equals(w){return w.type===this.type?this.key===w.key&&this.value===w.value:!1}substituteConstants(){return this}evaluate(w){return typeof this.value=="string"?!1:parseFloat(w.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this.value,this)),this.negated}}class Q{constructor(w,D,ce){this.key=w,this.value=D,this.negated=ce,this.type=13}static create(w,D,ce=null){return V(D,Oe=>new Q(w,Oe,ce))}cmp(w){return w.type!==this.type?this.type-w.type:_(this.key,this.value,w.key,w.value)}equals(w){return w.type===this.type?this.key===w.key&&this.value===w.value:!1}substituteConstants(){return this}evaluate(w){return typeof this.value=="string"?!1:parseFloat(w.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class O{constructor(w,D,ce){this.key=w,this.value=D,this.negated=ce,this.type=14}static create(w,D,ce=null){return V(D,Oe=>new O(w,Oe,ce))}cmp(w){return w.type!==this.type?this.type-w.type:_(this.key,this.value,w.key,w.value)}equals(w){return w.type===this.type?this.key===w.key&&this.value===w.value:!1}substituteConstants(){return this}evaluate(w){return typeof this.value=="string"?!1:parseFloat(w.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 I{constructor(w,D,ce){this.key=w,this.value=D,this.negated=ce,this.type=15}static create(w,D,ce=null){return V(D,Oe=>new I(w,Oe,ce))}cmp(w){return w.type!==this.type?this.type-w.type:_(this.key,this.value,w.key,w.value)}equals(w){return w.type===this.type?this.key===w.key&&this.value===w.value:!1}substituteConstants(){return this}evaluate(w){return typeof this.value=="string"?!1:parseFloat(w.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class ue{constructor(w,D){this.key=w,this.regexp=D,this.type=7,this.negated=null}static create(w,D){return new ue(w,D)}cmp(w){if(w.type!==this.type)return this.type-w.type;if(this.key<w.key)return-1;if(this.key>w.key)return 1;const D=this.regexp?this.regexp.source:"",ce=w.regexp?w.regexp.source:"";return D<ce?-1:D>ce?1:0}equals(w){if(w.type===this.type){const D=this.regexp?this.regexp.source:"",ce=w.regexp?w.regexp.source:"";return this.key===w.key&&D===ce}return!1}substituteConstants(){return this}evaluate(w){let D=w.getValue(this.key);return this.regexp?this.regexp.test(D):!1}serialize(){const w=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${w}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Se.create(this)),this.negated}}class Se{constructor(w){this._actual=w,this.type=8}static create(w){return new Se(w)}cmp(w){return w.type!==this.type?this.type-w.type:this._actual.cmp(w._actual)}equals(w){return w.type===this.type?this._actual.equals(w._actual):!1}substituteConstants(){return this}evaluate(w){return!this._actual.evaluate(w)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function me(se){let w=null;for(let D=0,ce=se.length;D<ce;D++){const Oe=se[D].substituteConstants();if(se[D]!==Oe&&w===null){w=[];for(let ct=0;ct<D;ct++)w[ct]=se[ct]}w!==null&&(w[D]=Oe)}return w===null?se:w}class Ke{constructor(w,D){this.expr=w,this.negated=D,this.type=6}static create(w,D){return Ke._normalizeArr(w,D)}cmp(w){if(w.type!==this.type)return this.type-w.type;if(this.expr.length<w.expr.length)return-1;if(this.expr.length>w.expr.length)return 1;for(let D=0,ce=this.expr.length;D<ce;D++){const Oe=l(this.expr[D],w.expr[D]);if(Oe!==0)return Oe}return 0}equals(w){if(w.type===this.type){if(this.expr.length!==w.expr.length)return!1;for(let D=0,ce=this.expr.length;D<ce;D++)if(!this.expr[D].equals(w.expr[D]))return!1;return!0}return!1}substituteConstants(){const w=me(this.expr);return w===this.expr?this:Ke.create(w,this.negated)}evaluate(w){for(let D=0,ce=this.expr.length;D<ce;D++)if(!this.expr[D].evaluate(w))return!1;return!0}static _normalizeArr(w,D){const ce=[];let Oe=!1;for(const ct of w)if(ct){if(ct.type===1){Oe=!0;continue}if(ct.type===0)return x.INSTANCE;if(ct.type===6){ce.push(...ct.expr);continue}ce.push(ct)}if(ce.length===0&&Oe)return N.INSTANCE;if(ce.length!==0){if(ce.length===1)return ce[0];ce.sort(l);for(let ct=1;ct<ce.length;ct++)ce[ct-1].equals(ce[ct])&&(ce.splice(ct,1),ct--);if(ce.length===1)return ce[0];for(;ce.length>1;){const ct=ce[ce.length-1];if(ct.type!==9)break;ce.pop();const Tt=ce.pop(),Ae=ce.length===0,qe=Je.create(ct.expr.map(ht=>Ke.create([ht,Tt],null)),null,Ae);qe&&(ce.push(qe),ce.sort(l))}return ce.length===1?ce[0]:new Ke(ce,D)}}serialize(){return this.expr.map(w=>w.serialize()).join(" && ")}keys(){const w=[];for(let D of this.expr)w.push(...D.keys());return w}negate(){if(!this.negated){const w=[];for(let D of this.expr)w.push(D.negate());this.negated=Je.create(w,this,!0)}return this.negated}}class Je{constructor(w,D){this.expr=w,this.negated=D,this.type=9}static create(w,D,ce){return Je._normalizeArr(w,D,ce)}cmp(w){if(w.type!==this.type)return this.type-w.type;if(this.expr.length<w.expr.length)return-1;if(this.expr.length>w.expr.length)return 1;for(let D=0,ce=this.expr.length;D<ce;D++){const Oe=l(this.expr[D],w.expr[D]);if(Oe!==0)return Oe}return 0}equals(w){if(w.type===this.type){if(this.expr.length!==w.expr.length)return!1;for(let D=0,ce=this.expr.length;D<ce;D++)if(!this.expr[D].equals(w.expr[D]))return!1;return!0}return!1}substituteConstants(){const w=me(this.expr);return w===this.expr?this:Je.create(w,this.negated,!1)}evaluate(w){for(let D=0,ce=this.expr.length;D<ce;D++)if(this.expr[D].evaluate(w))return!0;return!1}static _normalizeArr(w,D,ce){let Oe=[],ct=!1;if(w){for(let Tt=0,Ae=w.length;Tt<Ae;Tt++){const qe=w[Tt];if(qe){if(qe.type===0){ct=!0;continue}if(qe.type===1)return N.INSTANCE;if(qe.type===9){Oe=Oe.concat(qe.expr);continue}Oe.push(qe)}}if(Oe.length===0&&ct)return x.INSTANCE;Oe.sort(l)}if(Oe.length!==0){if(Oe.length===1)return Oe[0];for(let Tt=1;Tt<Oe.length;Tt++)Oe[Tt-1].equals(Oe[Tt])&&(Oe.splice(Tt,1),Tt--);if(Oe.length===1)return Oe[0];if(ce){for(let Tt=0;Tt<Oe.length;Tt++)for(let Ae=Tt+1;Ae<Oe.length;Ae++)ee(Oe[Tt],Oe[Ae])&&(Oe.splice(Ae,1),Ae--);if(Oe.length===1)return Oe[0]}return new Je(Oe,D)}}serialize(){return this.expr.map(w=>w.serialize()).join(" || ")}keys(){const w=[];for(let D of this.expr)w.push(...D.keys());return w}negate(){if(!this.negated){let w=[];for(let D of this.expr)w.push(D.negate());for(;w.length>1;){const D=w.shift(),ce=w.shift(),Oe=[];for(const Tt of ne(D))for(const Ae of ne(ce))Oe.push(Ke.create([Tt,Ae],null));const ct=w.length===0;w.unshift(Je.create(Oe,null,ct))}this.negated=w[0]}return this.negated}}class ke extends y{constructor(w,D,ce){super(w,null),this._defaultValue=D,typeof ce=="object"?ke._info.push(Object.assign(Object.assign({},ce),{key:w})):ce!==!0&&ke._info.push({key:w,description:ce,type:D!=null?typeof D:void 0})}static all(){return ke._info.values()}bindTo(w){return w.createKey(this.key,this._defaultValue)}getValue(w){return w.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(w){return T.create(this.key,w)}}ke._info=[];const We=(0,L.yh)("contextKeyService"),oe="setContext";function k(se,w){return se<w?-1:se>w?1:0}function _(se,w,D,ce){return se<D?-1:se>D?1:w<ce?-1:w>ce?1:0}function ee(se,w){if(w.type===6&&se.type!==9&&se.type!==6){for(const Oe of w.expr)if(se.equals(Oe))return!0}const D=se.negate(),ce=ne(D).concat(ne(w));ce.sort(l);for(let Oe=0;Oe<ce.length;Oe++){const Tt=ce[Oe].negate();for(let Ae=Oe+1;Ae<ce.length;Ae++){const qe=ce[Ae];if(Tt.equals(qe))return!0}}return!1}function ne(se){return se.type===9?se.expr:[se]}},16925:function($n,Rt,u){"use strict";u.d(Rt,{I8:function(){return i},TG:function(){return K},jt:function(){return Z},yh:function(){return he}});var i;(function(g){g.serviceIds=new Map,g.DI_TARGET="$di$target",g.DI_DEPENDENCIES="$di$dependencies";function W(Y){return Y[g.DI_DEPENDENCIES]||[]}g.getServiceDependencies=W})(i||(i={}));const K=he("instantiationService");function L(g,W,Y,l){W[i.DI_TARGET]===W?W[i.DI_DEPENDENCIES].push({id:g,index:Y,optional:l}):(W[i.DI_DEPENDENCIES]=[{id:g,index:Y,optional:l}],W[i.DI_TARGET]=W)}function he(g){if(i.serviceIds.has(g))return i.serviceIds.get(g);const W=function(Y,l,x){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");L(W,Y,x,!1)};return W.toString=()=>g,i.serviceIds.set(g,W),W}function Z(g){return function(W,Y,l){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");L(g,W,l,!0)}}},44650:function($n,Rt,u){"use strict";u.d(Rt,{B:function(){return he}});var i=u(76068),K=u(72999);class L{constructor(){this.data=new Map}add(g,W){i.ok(K.HD(g)),i.ok(K.Kn(W)),i.ok(!this.data.has(g),"There is already an extension with this id"),this.data.set(g,W)}as(g){return this.data.get(g)||null}}const he=new L},66213:function($n,Rt,u){"use strict";u.d(Rt,{e:function(){return i}});var i;(function(K){K.DARK="dark",K.LIGHT="light",K.HIGH_CONTRAST="hc"})(i||(i={}))},49055:function($n,Rt,u){"use strict";u.d(Rt,{EN:function(){return l},IP:function(){return y},Ic:function(){return $},XE:function(){return W},bB:function(){return H},kS:function(){return x},m6:function(){return N}});var i=u(52615),K=u(4348),L=u(69323),he=u(16925),Z=u(44650),g=u(66213);const W=(0,he.yh)("themeService");var Y;(function(X){function V(R){return R&&typeof R=="object"&&typeof R.id=="string"}X.isThemeColor=V})(Y||(Y={}));function l(X){return{id:X}}var x;(function(X){function V(Se){return Se&&typeof Se=="object"&&typeof Se.id=="string"&&(typeof Se.color=="undefined"||Y.isThemeColor(Se.color))}X.isThemeIcon=V;const R=new RegExp(`^\\$\\((${i.dT.iconNameExpression}(?:${i.dT.iconModifierExpression})?)\\)$`);function Q(Se){const me=R.exec(Se);if(!me)return;let[,Ke]=me;return{id:Ke}}X.fromString=Q;function O(Se,me){let Ke=Se.id;const Je=Ke.lastIndexOf("~");return Je!==-1&&(Ke=Ke.substring(0,Je)),me&&(Ke=`${Ke}~${me}`),{id:Ke}}X.modify=O;function I(Se,me){var Ke,Je;return Se.id===me.id&&((Ke=Se.color)===null||Ke===void 0?void 0:Ke.id)===((Je=me.color)===null||Je===void 0?void 0:Je.id)}X.isEqual=I;function ue(Se,me){return{id:Se.id,color:me?l(me):void 0}}X.asThemeIcon=ue,X.asClassNameArray=i.dT.asClassNameArray,X.asClassName=i.dT.asClassName,X.asCSSSelector=i.dT.asCSSSelector})(x||(x={}));function N(X){switch(X){case g.e.DARK:return"vs-dark";case g.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const y={ThemingContribution:"base.contributions.theming"};class T{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new K.Q5}onColorThemeChange(V){return this.themingParticipants.push(V),this.onThemingParticipantAddedEmitter.fire(V),(0,L.OF)(()=>{const R=this.themingParticipants.indexOf(V);this.themingParticipants.splice(R,1)})}getThemingParticipants(){return this.themingParticipants}}let A=new T;Z.B.add(y.ThemingContribution,A);function $(X){return A.onColorThemeChange(X)}class H extends L.JT{constructor(V){super(),this.themeService=V,this.theme=V.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(R=>this.onThemeChange(R)))}onThemeChange(V){this.theme=V,this.updateStyles()}updateStyles(){}}},16632:function($n,Rt,u){"use strict";var i=u(60499),K=u(85899),L=u(18642),he=u(72190),Z=u(42244),g=u(92310),W=u.n(g),Y=u(18929),l=u(59301),x=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],N=(0,l.forwardRef)(function(y,T){var A=y.prefixCls,$=A===void 0?"rc-checkbox":A,H=y.className,X=y.style,V=y.checked,R=y.disabled,Q=y.defaultChecked,O=Q===void 0?!1:Q,I=y.type,ue=I===void 0?"checkbox":I,Se=y.title,me=y.onChange,Ke=(0,Z.Z)(y,x),Je=(0,l.useRef)(null),ke=(0,l.useRef)(null),We=(0,Y.Z)(O,{value:V}),oe=(0,he.Z)(We,2),k=oe[0],_=oe[1];(0,l.useImperativeHandle)(T,function(){return{focus:function(w){var D;(D=Je.current)===null||D===void 0||D.focus(w)},blur:function(){var w;(w=Je.current)===null||w===void 0||w.blur()},input:Je.current,nativeElement:ke.current}});var ee=W()($,H,(0,L.Z)((0,L.Z)({},"".concat($,"-checked"),k),"".concat($,"-disabled"),R)),ne=function(w){R||("checked"in y||_(w.target.checked),me==null||me({target:(0,K.Z)((0,K.Z)({},y),{},{type:ue,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return l.createElement("span",{className:ee,title:Se,style:X,ref:ke},l.createElement("input",(0,i.Z)({},Ke,{className:"".concat($,"-input"),ref:Je,onChange:ne,disabled:R,checked:!!k,type:ue})),l.createElement("span",{className:"".concat($,"-inner")}))});Rt.Z=N},96478:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Se}});var i=u(60499),K=u(18642),L=u(72190),he=u(42244),Z=u(68196),g=u(92310),W=u.n(g),Y=u(8654),l=u(59301),x=u(10228),N=u(16089),y=x.Z.ESC,T=x.Z.TAB;function A(me){var Ke=me.visible,Je=me.triggerRef,ke=me.onVisibleChange,We=me.autoFocus,oe=me.overlayRef,k=l.useRef(!1),_=function(){if(Ke){var w,D;(w=Je.current)===null||w===void 0||(D=w.focus)===null||D===void 0||D.call(w),ke==null||ke(!1)}},ee=function(){var w;return(w=oe.current)!==null&&w!==void 0&&w.focus?(oe.current.focus(),k.current=!0,!0):!1},ne=function(w){switch(w.keyCode){case y:_();break;case T:{var D=!1;k.current||(D=ee()),D?w.preventDefault():_();break}}};l.useEffect(function(){return Ke?(window.addEventListener("keydown",ne),We&&(0,N.Z)(ee,3),function(){window.removeEventListener("keydown",ne),k.current=!1}):function(){k.current=!1}},[Ke])}var $=(0,l.forwardRef)(function(me,Ke){var Je=me.overlay,ke=me.arrow,We=me.prefixCls,oe=(0,l.useMemo)(function(){var _;return typeof Je=="function"?_=Je():_=Je,_},[Je]),k=(0,Y.sQ)(Ke,(0,Y.C4)(oe));return l.createElement(l.Fragment,null,ke&&l.createElement("div",{className:"".concat(We,"-arrow")}),l.cloneElement(oe,{ref:(0,Y.Yr)(oe)?k:void 0}))}),H=$,X={adjustX:1,adjustY:1},V=[0,0],R={topLeft:{points:["bl","tl"],overflow:X,offset:[0,-4],targetOffset:V},top:{points:["bc","tc"],overflow:X,offset:[0,-4],targetOffset:V},topRight:{points:["br","tr"],overflow:X,offset:[0,-4],targetOffset:V},bottomLeft:{points:["tl","bl"],overflow:X,offset:[0,4],targetOffset:V},bottom:{points:["tc","bc"],overflow:X,offset:[0,4],targetOffset:V},bottomRight:{points:["tr","br"],overflow:X,offset:[0,4],targetOffset:V}},Q=R,O=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function I(me,Ke){var Je,ke=me.arrow,We=ke===void 0?!1:ke,oe=me.prefixCls,k=oe===void 0?"rc-dropdown":oe,_=me.transitionName,ee=me.animation,ne=me.align,se=me.placement,w=se===void 0?"bottomLeft":se,D=me.placements,ce=D===void 0?Q:D,Oe=me.getPopupContainer,ct=me.showAction,Tt=me.hideAction,Ae=me.overlayClassName,qe=me.overlayStyle,ht=me.visible,tt=me.trigger,Fe=tt===void 0?["hover"]:tt,jt=me.autoFocus,bt=me.overlay,cn=me.children,vt=me.onVisibleChange,pt=(0,he.Z)(me,O),Qe=l.useState(),Ne=(0,L.Z)(Qe,2),le=Ne[0],Pe=Ne[1],Ge="visible"in me?ht:le,j=l.useRef(null),P=l.useRef(null),_e=l.useRef(null);l.useImperativeHandle(Ke,function(){return j.current});var Ie=function(Pt){Pe(Pt),vt==null||vt(Pt)};A({visible:Ge,triggerRef:_e,onVisibleChange:Ie,autoFocus:jt,overlayRef:P});var Te=function(Pt){var kt=me.onOverlayClick;Pe(!1),kt&&kt(Pt)},ze=function(){return l.createElement(H,{ref:P,overlay:bt,prefixCls:k,arrow:We})},Ue=function(){return typeof bt=="function"?ze:ze()},ft=function(){var Pt=me.minOverlayWidthMatchTrigger,kt=me.alignPoint;return"minOverlayWidthMatchTrigger"in me?Pt:!kt},de=function(){var Pt=me.openClassName;return Pt!==void 0?Pt:"".concat(k,"-open")},xe=l.cloneElement(cn,{className:W()((Je=cn.props)===null||Je===void 0?void 0:Je.className,Ge&&de()),ref:(0,Y.Yr)(cn)?(0,Y.sQ)(_e,(0,Y.C4)(cn)):void 0}),Ot=Tt;return!Ot&&Fe.indexOf("contextMenu")!==-1&&(Ot=["click"]),l.createElement(Z.Z,(0,i.Z)({builtinPlacements:ce},pt,{prefixCls:k,ref:j,popupClassName:W()(Ae,(0,K.Z)({},"".concat(k,"-show-arrow"),We)),popupStyle:qe,action:Fe,showAction:ct,hideAction:Ot,popupPlacement:w,popupAlign:ne,popupTransitionName:_,popupAnimation:ee,popupVisible:Ge,stretch:ft()?"minWidth":"",popup:Ue(),onPopupVisibleChange:Ie,onPopupClick:Te,getPopupContainer:Oe}),xe)}var ue=l.forwardRef(I),Se=ue},66003:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return W}});var i=u(42244),K=u(85899),L=u(43749),he=u(59301),Z=["show"];function g(Y,l){if(!l.max)return!0;var x=l.strategy(Y);return x<=l.max}function W(Y,l){return he.useMemo(function(){var x={};l&&(x.show=(0,L.Z)(l)==="object"&&l.formatter?l.formatter:!!l),x=(0,K.Z)((0,K.Z)({},x),Y);var N=x,y=N.show,T=(0,i.Z)(N,Z);return(0,K.Z)((0,K.Z)({},T),{},{show:!!y,showFormatter:typeof y=="function"?y:void 0,strategy:T.strategy||function(A){return A.length}})},[Y,l])}},36901:function($n,Rt,u){"use strict";u.r(Rt),u.d(Rt,{BaseInput:function(){return x},default:function(){return Q}});var i=u(85899),K=u(60499),L=u(18642),he=u(43749),Z=u(92310),g=u.n(Z),W=u(59301),Y=u(30292),l=W.forwardRef(function(O,I){var ue,Se,me,Ke=O.inputElement,Je=O.children,ke=O.prefixCls,We=O.prefix,oe=O.suffix,k=O.addonBefore,_=O.addonAfter,ee=O.className,ne=O.style,se=O.disabled,w=O.readOnly,D=O.focused,ce=O.triggerFocus,Oe=O.allowClear,ct=O.value,Tt=O.handleReset,Ae=O.hidden,qe=O.classes,ht=O.classNames,tt=O.dataAttrs,Fe=O.styles,jt=O.components,bt=O.onClear,cn=Je!=null?Je:Ke,vt=(jt==null?void 0:jt.affixWrapper)||"span",pt=(jt==null?void 0:jt.groupWrapper)||"span",Qe=(jt==null?void 0:jt.wrapper)||"span",Ne=(jt==null?void 0:jt.groupAddon)||"span",le=(0,W.useRef)(null),Pe=function(Vt){var Nt;(Nt=le.current)!==null&&Nt!==void 0&&Nt.contains(Vt.target)&&(ce==null||ce())},Ge=(0,Y.X3)(O),j=(0,W.cloneElement)(cn,{value:ct,className:g()((ue=cn.props)===null||ue===void 0?void 0:ue.className,!Ge&&(ht==null?void 0:ht.variant))||null}),P=(0,W.useRef)(null);if(W.useImperativeHandle(I,function(){return{nativeElement:P.current||le.current}}),Ge){var _e=null;if(Oe){var Ie=!se&&!w&&ct,Te="".concat(ke,"-clear-icon"),ze=(0,he.Z)(Oe)==="object"&&Oe!==null&&Oe!==void 0&&Oe.clearIcon?Oe.clearIcon:"\u2716";_e=W.createElement("button",{type:"button",tabIndex:-1,onClick:function(Vt){Tt==null||Tt(Vt),bt==null||bt()},onMouseDown:function(Vt){return Vt.preventDefault()},className:g()(Te,(0,L.Z)((0,L.Z)({},"".concat(Te,"-hidden"),!Ie),"".concat(Te,"-has-suffix"),!!oe))},ze)}var Ue="".concat(ke,"-affix-wrapper"),ft=g()(Ue,(0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)({},"".concat(ke,"-disabled"),se),"".concat(Ue,"-disabled"),se),"".concat(Ue,"-focused"),D),"".concat(Ue,"-readonly"),w),"".concat(Ue,"-input-with-clear-btn"),oe&&Oe&&ct),qe==null?void 0:qe.affixWrapper,ht==null?void 0:ht.affixWrapper,ht==null?void 0:ht.variant),de=(oe||Oe)&&W.createElement("span",{className:g()("".concat(ke,"-suffix"),ht==null?void 0:ht.suffix),style:Fe==null?void 0:Fe.suffix},_e,oe);j=W.createElement(vt,(0,K.Z)({className:ft,style:Fe==null?void 0:Fe.affixWrapper,onClick:Pe},tt==null?void 0:tt.affixWrapper,{ref:le}),We&&W.createElement("span",{className:g()("".concat(ke,"-prefix"),ht==null?void 0:ht.prefix),style:Fe==null?void 0:Fe.prefix},We),j,de)}if((0,Y.He)(O)){var xe="".concat(ke,"-group"),Ot="".concat(xe,"-addon"),_t="".concat(xe,"-wrapper"),Pt=g()("".concat(ke,"-wrapper"),xe,qe==null?void 0:qe.wrapper,ht==null?void 0:ht.wrapper),kt=g()(_t,(0,L.Z)({},"".concat(_t,"-disabled"),se),qe==null?void 0:qe.group,ht==null?void 0:ht.groupWrapper);j=W.createElement(pt,{className:kt,ref:P},W.createElement(Qe,{className:Pt},k&&W.createElement(Ne,{className:Ot},k),j,_&&W.createElement(Ne,{className:Ot},_)))}return W.cloneElement(j,{className:g()((Se=j.props)===null||Se===void 0?void 0:Se.className,ee)||null,style:(0,i.Z)((0,i.Z)({},(me=j.props)===null||me===void 0?void 0:me.style),ne),hidden:Ae})}),x=l,N=u(77654),y=u(72190),T=u(42244),A=u(18929),$=u(2738),H=u(66003),X=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],V=(0,W.forwardRef)(function(O,I){var ue=O.autoComplete,Se=O.onChange,me=O.onFocus,Ke=O.onBlur,Je=O.onPressEnter,ke=O.onKeyDown,We=O.onKeyUp,oe=O.prefixCls,k=oe===void 0?"rc-input":oe,_=O.disabled,ee=O.htmlSize,ne=O.className,se=O.maxLength,w=O.suffix,D=O.showCount,ce=O.count,Oe=O.type,ct=Oe===void 0?"text":Oe,Tt=O.classes,Ae=O.classNames,qe=O.styles,ht=O.onCompositionStart,tt=O.onCompositionEnd,Fe=(0,T.Z)(O,X),jt=(0,W.useState)(!1),bt=(0,y.Z)(jt,2),cn=bt[0],vt=bt[1],pt=(0,W.useRef)(!1),Qe=(0,W.useRef)(!1),Ne=(0,W.useRef)(null),le=(0,W.useRef)(null),Pe=function(en){Ne.current&&(0,Y.nH)(Ne.current,en)},Ge=(0,A.Z)(O.defaultValue,{value:O.value}),j=(0,y.Z)(Ge,2),P=j[0],_e=j[1],Ie=P==null?"":String(P),Te=(0,W.useState)(null),ze=(0,y.Z)(Te,2),Ue=ze[0],ft=ze[1],de=(0,H.Z)(ce,D),xe=de.max||se,Ot=de.strategy(Ie),_t=!!xe&&Ot>xe;(0,W.useImperativeHandle)(I,function(){var Ce;return{focus:Pe,blur:function(){var rt;(rt=Ne.current)===null||rt===void 0||rt.blur()},setSelectionRange:function(rt,st,xt){var pe;(pe=Ne.current)===null||pe===void 0||pe.setSelectionRange(rt,st,xt)},select:function(){var rt;(rt=Ne.current)===null||rt===void 0||rt.select()},input:Ne.current,nativeElement:((Ce=le.current)===null||Ce===void 0?void 0:Ce.nativeElement)||Ne.current}}),(0,W.useEffect)(function(){Qe.current&&(Qe.current=!1),vt(function(Ce){return Ce&&_?!1:Ce})},[_]);var Pt=function(en,rt,st){var xt=rt;if(!pt.current&&de.exceedFormatter&&de.max&&de.strategy(rt)>de.max){if(xt=de.exceedFormatter(rt,{max:de.max}),rt!==xt){var pe,Ee;ft([((pe=Ne.current)===null||pe===void 0?void 0:pe.selectionStart)||0,((Ee=Ne.current)===null||Ee===void 0?void 0:Ee.selectionEnd)||0])}}else if(st.source==="compositionEnd")return;_e(xt),Ne.current&&(0,Y.rJ)(Ne.current,en,Se,xt)};(0,W.useEffect)(function(){if(Ue){var Ce;(Ce=Ne.current)===null||Ce===void 0||Ce.setSelectionRange.apply(Ce,(0,N.Z)(Ue))}},[Ue]);var kt=function(en){Pt(en,en.target.value,{source:"change"})},mt=function(en){pt.current=!1,Pt(en,en.currentTarget.value,{source:"compositionEnd"}),tt==null||tt(en)},Vt=function(en){Je&&en.key==="Enter"&&!Qe.current&&(Qe.current=!0,Je(en)),ke==null||ke(en)},Nt=function(en){en.key==="Enter"&&(Qe.current=!1),We==null||We(en)},De=function(en){vt(!0),me==null||me(en)},gt=function(en){Qe.current&&(Qe.current=!1),vt(!1),Ke==null||Ke(en)},E=function(en){_e(""),Pe(),Ne.current&&(0,Y.rJ)(Ne.current,en,Se)},S=_t&&"".concat(k,"-out-of-range"),je=function(){var en=(0,$.Z)(O,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return W.createElement("input",(0,K.Z)({autoComplete:ue},en,{onChange:kt,onFocus:De,onBlur:gt,onKeyDown:Vt,onKeyUp:Nt,className:g()(k,(0,L.Z)({},"".concat(k,"-disabled"),_),Ae==null?void 0:Ae.input),style:qe==null?void 0:qe.input,ref:Ne,size:ee,type:ct,onCompositionStart:function(st){pt.current=!0,ht==null||ht(st)},onCompositionEnd:mt}))},G=function(){var en=Number(xe)>0;if(w||de.show){var rt=de.showFormatter?de.showFormatter({value:Ie,count:Ot,maxLength:xe}):"".concat(Ot).concat(en?" / ".concat(xe):"");return W.createElement(W.Fragment,null,de.show&&W.createElement("span",{className:g()("".concat(k,"-show-count-suffix"),(0,L.Z)({},"".concat(k,"-show-count-has-suffix"),!!w),Ae==null?void 0:Ae.count),style:(0,i.Z)({},qe==null?void 0:qe.count)},rt),w)}return null};return W.createElement(x,(0,K.Z)({},Fe,{prefixCls:k,className:g()(ne,S),handleReset:E,value:Ie,focused:cn,triggerFocus:Pe,suffix:G(),disabled:_,classes:Tt,classNames:Ae,styles:qe}),je())}),R=V,Q=R},30292:function($n,Rt,u){"use strict";u.d(Rt,{He:function(){return i},X3:function(){return K},nH:function(){return Z},rJ:function(){return he}});function i(g){return!!(g.addonBefore||g.addonAfter)}function K(g){return!!(g.prefix||g.suffix||g.allowClear)}function L(g,W,Y){var l=W.cloneNode(!0),x=Object.create(g,{target:{value:l},currentTarget:{value:l}});return l.value=Y,typeof W.selectionStart=="number"&&typeof W.selectionEnd=="number"&&(l.selectionStart=W.selectionStart,l.selectionEnd=W.selectionEnd),l.setSelectionRange=function(){W.setSelectionRange.apply(W,arguments)},x}function he(g,W,Y,l){if(Y){var x=W;if(W.type==="click"){x=L(W,g,""),Y(x);return}if(g.type!=="file"&&l!==void 0){x=L(W,g,l),Y(x);return}Y(x)}}function Z(g,W){if(g){g.focus(W);var Y=W||{},l=Y.cursor;if(l){var x=g.value.length;switch(l){case"start":g.setSelectionRange(0,0);break;case"end":g.setSelectionRange(x,x);break;default:g.setSelectionRange(0,x)}}}}},28321:function($n,Rt,u){"use strict";u.d(Rt,{iz:function(){return Be},ck:function(){return xt},BW:function(){return $e},sN:function(){return xt},Wd:function(){return ve},ZP:function(){return Yt},Xl:function(){return Je}});var i=u(60499),K=u(18642),L=u(85899),he=u(77654),Z=u(72190),g=u(42244),W=u(92310),Y=u.n(W),l=u(83836),x=u(18929),N=u(13697),y=u(48736),T=u(59301),A=u(4676),$=T.createContext(null);function H(ye,at){return ye===void 0?null:"".concat(ye,"-").concat(at)}function X(ye){var at=T.useContext($);return H(at,ye)}var V=u(80547),R=["children","locked"],Q=T.createContext(null);function O(ye,at){var Lt=(0,L.Z)({},ye);return Object.keys(at).forEach(function(Dt){var zt=at[Dt];zt!==void 0&&(Lt[Dt]=zt)}),Lt}function I(ye){var at=ye.children,Lt=ye.locked,Dt=(0,g.Z)(ye,R),zt=T.useContext(Q),an=(0,V.Z)(function(){return O(zt,Dt)},[zt,Dt],function(un,sn){return!Lt&&(un[0]!==sn[0]||!(0,N.Z)(un[1],sn[1],!0))});return T.createElement(Q.Provider,{value:an},at)}var ue=[],Se=T.createContext(null);function me(){return T.useContext(Se)}var Ke=T.createContext(ue);function Je(ye){var at=T.useContext(Ke);return T.useMemo(function(){return ye!==void 0?[].concat((0,he.Z)(at),[ye]):at},[at,ye])}var ke=T.createContext(null),We=T.createContext({}),oe=We,k=u(29194);function _(ye){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,k.Z)(ye)){var Lt=ye.nodeName.toLowerCase(),Dt=["input","select","textarea","button"].includes(Lt)||ye.isContentEditable||Lt==="a"&&!!ye.getAttribute("href"),zt=ye.getAttribute("tabindex"),an=Number(zt),un=null;return zt&&!Number.isNaN(an)?un=an:Dt&&un===null&&(un=0),Dt&&ye.disabled&&(un=null),un!==null&&(un>=0||at&&un<0)}return!1}function ee(ye){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Lt=(0,he.Z)(ye.querySelectorAll("*")).filter(function(Dt){return _(Dt,at)});return _(ye,at)&&Lt.unshift(ye),Lt}var ne=null;function se(){ne=document.activeElement}function w(){ne=null}function D(){if(ne)try{ne.focus()}catch(ye){}}function ce(ye,at){if(at.keyCode===9){var Lt=ee(ye),Dt=Lt[at.shiftKey?0:Lt.length-1],zt=Dt===document.activeElement||ye===document.activeElement;if(zt){var an=Lt[at.shiftKey?Lt.length-1:0];an.focus(),at.preventDefault()}}}var Oe=u(10228),ct=u(16089),Tt=Oe.Z.LEFT,Ae=Oe.Z.RIGHT,qe=Oe.Z.UP,ht=Oe.Z.DOWN,tt=Oe.Z.ENTER,Fe=Oe.Z.ESC,jt=Oe.Z.HOME,bt=Oe.Z.END,cn=[qe,ht,Tt,Ae];function vt(ye,at,Lt,Dt){var zt,an="prev",un="next",sn="children",vn="parent";if(ye==="inline"&&Dt===tt)return{inlineTrigger:!0};var En=(0,K.Z)((0,K.Z)({},qe,an),ht,un),Rn=(0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)({},Tt,Lt?un:an),Ae,Lt?an:un),ht,sn),tt,sn),bn=(0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)({},qe,an),ht,un),tt,sn),Fe,vn),Tt,Lt?sn:vn),Ae,Lt?vn:sn),Cn={inline:En,horizontal:Rn,vertical:bn,inlineSub:En,horizontalSub:bn,verticalSub:bn},Bn=(zt=Cn["".concat(ye).concat(at?"":"Sub")])===null||zt===void 0?void 0:zt[Dt];switch(Bn){case an:return{offset:-1,sibling:!0};case un:return{offset:1,sibling:!0};case vn:return{offset:-1,sibling:!1};case sn:return{offset:1,sibling:!1};default:return null}}function pt(ye){for(var at=ye;at;){if(at.getAttribute("data-menu-list"))return at;at=at.parentElement}return null}function Qe(ye,at){for(var Lt=ye||document.activeElement;Lt;){if(at.has(Lt))return Lt;Lt=Lt.parentElement}return null}function Ne(ye,at){var Lt=ee(ye,!0);return Lt.filter(function(Dt){return at.has(Dt)})}function le(ye,at,Lt){var Dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!ye)return null;var zt=Ne(ye,at),an=zt.length,un=zt.findIndex(function(sn){return Lt===sn});return Dt<0?un===-1?un=an-1:un-=1:Dt>0&&(un+=1),un=(un+an)%an,zt[un]}var Pe=function(at,Lt){var Dt=new Set,zt=new Map,an=new Map;return at.forEach(function(un){var sn=document.querySelector("[data-menu-id='".concat(H(Lt,un),"']"));sn&&(Dt.add(sn),an.set(sn,un),zt.set(un,sn))}),{elements:Dt,key2element:zt,element2key:an}};function Ge(ye,at,Lt,Dt,zt,an,un,sn,vn,En){var Rn=T.useRef(),bn=T.useRef();bn.current=at;var Cn=function(){ct.Z.cancel(Rn.current)};return T.useEffect(function(){return function(){Cn()}},[]),function(Bn){var Pn=Bn.which;if([].concat(cn,[tt,Fe,jt,bt]).includes(Pn)){var ir=an(),In=Pe(ir,Dt),zn=In,Yn=zn.elements,tr=zn.key2element,Jn=zn.element2key,qt=tr.get(at),tn=Qe(qt,Yn),yn=Jn.get(tn),Zn=vt(ye,un(yn,!0).length===1,Lt,Pn);if(!Zn&&Pn!==jt&&Pn!==bt)return;(cn.includes(Pn)||[jt,bt].includes(Pn))&&Bn.preventDefault();var Ht=function(An){if(An){var pn=An,Tn=An.querySelector("a");Tn!=null&&Tn.getAttribute("href")&&(pn=Tn);var Xn=Jn.get(An);sn(Xn),Cn(),Rn.current=(0,ct.Z)(function(){bn.current===Xn&&pn.focus()})}};if([jt,bt].includes(Pn)||Zn.sibling||!tn){var Un;!tn||ye==="inline"?Un=zt.current:Un=pt(tn);var er,lr=Ne(Un,Yn);Pn===jt?er=lr[0]:Pn===bt?er=lr[lr.length-1]:er=le(Un,Yn,tn,Zn.offset),Ht(er)}else if(Zn.inlineTrigger)vn(yn);else if(Zn.offset>0)vn(yn,!0),Cn(),Rn.current=(0,ct.Z)(function(){In=Pe(ir,Dt);var Vn=tn.getAttribute("aria-controls"),An=document.getElementById(Vn),pn=le(An,In.elements);Ht(pn)},5);else if(Zn.offset<0){var _r=un(yn,!0),Ar=_r[_r.length-2],Sr=tr.get(Ar);vn(Ar,!1),Ht(Sr)}}En==null||En(Bn)}}function j(ye){Promise.resolve().then(ye)}var P="__RC_UTIL_PATH_SPLIT__",_e=function(at){return at.join(P)},Ie=function(at){return at.split(P)},Te="rc-menu-more";function ze(){var ye=T.useState({}),at=(0,Z.Z)(ye,2),Lt=at[1],Dt=(0,T.useRef)(new Map),zt=(0,T.useRef)(new Map),an=T.useState([]),un=(0,Z.Z)(an,2),sn=un[0],vn=un[1],En=(0,T.useRef)(0),Rn=(0,T.useRef)(!1),bn=function(){Rn.current||Lt({})},Cn=(0,T.useCallback)(function(tr,Jn){var qt=_e(Jn);zt.current.set(qt,tr),Dt.current.set(tr,qt),En.current+=1;var tn=En.current;j(function(){tn===En.current&&bn()})},[]),Bn=(0,T.useCallback)(function(tr,Jn){var qt=_e(Jn);zt.current.delete(qt),Dt.current.delete(tr)},[]),Pn=(0,T.useCallback)(function(tr){vn(tr)},[]),ir=(0,T.useCallback)(function(tr,Jn){var qt=Dt.current.get(tr)||"",tn=Ie(qt);return Jn&&sn.includes(tn[0])&&tn.unshift(Te),tn},[sn]),In=(0,T.useCallback)(function(tr,Jn){return tr.filter(function(qt){return qt!==void 0}).some(function(qt){var tn=ir(qt,!0);return tn.includes(Jn)})},[ir]),zn=function(){var Jn=(0,he.Z)(Dt.current.keys());return sn.length&&Jn.push(Te),Jn},Yn=(0,T.useCallback)(function(tr){var Jn="".concat(Dt.current.get(tr)).concat(P),qt=new Set;return(0,he.Z)(zt.current.keys()).forEach(function(tn){tn.startsWith(Jn)&&qt.add(zt.current.get(tn))}),qt},[]);return T.useEffect(function(){return function(){Rn.current=!0}},[]),{registerPath:Cn,unregisterPath:Bn,refreshOverflowKeys:Pn,isSubPathKey:In,getKeyPath:ir,getKeys:zn,getSubPathKeys:Yn}}function Ue(ye){var at=T.useRef(ye);at.current=ye;var Lt=T.useCallback(function(){for(var Dt,zt=arguments.length,an=new Array(zt),un=0;un<zt;un++)an[un]=arguments[un];return(Dt=at.current)===null||Dt===void 0?void 0:Dt.call.apply(Dt,[at].concat(an))},[]);return ye?Lt:void 0}var ft=Math.random().toFixed(5).toString().slice(2),de=0;function xe(ye){var at=(0,x.Z)(ye,{value:ye}),Lt=(0,Z.Z)(at,2),Dt=Lt[0],zt=Lt[1];return T.useEffect(function(){de+=1;var an="".concat(ft,"-").concat(de);zt("rc-menu-uuid-".concat(an))},[]),Dt}var Ot=u(38705),_t=u(17212),Pt=u(39153),kt=u(55401),mt=u(2738),Vt=u(8654);function Nt(ye,at,Lt,Dt){var zt=T.useContext(Q),an=zt.activeKey,un=zt.onActive,sn=zt.onInactive,vn={active:an===ye};return at||(vn.onMouseEnter=function(En){Lt==null||Lt({key:ye,domEvent:En}),un(ye)},vn.onMouseLeave=function(En){Dt==null||Dt({key:ye,domEvent:En}),sn(ye)}),vn}function De(ye){var at=T.useContext(Q),Lt=at.mode,Dt=at.rtl,zt=at.inlineIndent;if(Lt!=="inline")return null;var an=ye;return Dt?{paddingRight:an*zt}:{paddingLeft:an*zt}}function gt(ye){var at=ye.icon,Lt=ye.props,Dt=ye.children,zt;return at===null||at===!1?null:(typeof at=="function"?zt=T.createElement(at,(0,L.Z)({},Lt)):typeof at!="boolean"&&(zt=at),zt||Dt||null)}var E=["item"];function S(ye){var at=ye.item,Lt=(0,g.Z)(ye,E);return Object.defineProperty(Lt,"item",{get:function(){return(0,y.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),at}}),Lt}var je=["title","attribute","elementRef"],G=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ce=["active"],en=function(ye){(0,Pt.Z)(Lt,ye);var at=(0,kt.Z)(Lt);function Lt(){return(0,Ot.Z)(this,Lt),at.apply(this,arguments)}return(0,_t.Z)(Lt,[{key:"render",value:function(){var zt=this.props,an=zt.title,un=zt.attribute,sn=zt.elementRef,vn=(0,g.Z)(zt,je),En=(0,mt.Z)(vn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,y.ZP)(!un,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),T.createElement(l.Z.Item,(0,i.Z)({},un,{title:typeof an=="string"?an:void 0},En,{ref:sn}))}}]),Lt}(T.Component),rt=T.forwardRef(function(ye,at){var Lt=ye.style,Dt=ye.className,zt=ye.eventKey,an=ye.warnKey,un=ye.disabled,sn=ye.itemIcon,vn=ye.children,En=ye.role,Rn=ye.onMouseEnter,bn=ye.onMouseLeave,Cn=ye.onClick,Bn=ye.onKeyDown,Pn=ye.onFocus,ir=(0,g.Z)(ye,G),In=X(zt),zn=T.useContext(Q),Yn=zn.prefixCls,tr=zn.onItemClick,Jn=zn.disabled,qt=zn.overflowDisabled,tn=zn.itemIcon,yn=zn.selectedKeys,Zn=zn.onActive,Ht=T.useContext(oe),Un=Ht._internalRenderMenuItem,er="".concat(Yn,"-item"),lr=T.useRef(),_r=T.useRef(),Ar=Jn||un,Sr=(0,Vt.x1)(at,_r),Vn=Je(zt),An=function(Cr){return{key:zt,keyPath:(0,he.Z)(Vn).reverse(),item:lr.current,domEvent:Cr}},pn=sn||tn,Tn=Nt(zt,Ar,Rn,bn),Xn=Tn.active,nr=(0,g.Z)(Tn,Ce),gr=yn.includes(zt),Er=De(Vn.length),Fn=function(Cr){if(!Ar){var Fr=An(Cr);Cn==null||Cn(S(Fr)),tr(Fr)}},yr=function(Cr){if(Bn==null||Bn(Cr),Cr.which===Oe.Z.ENTER){var Fr=An(Cr);Cn==null||Cn(S(Fr)),tr(Fr)}},Ir=function(Cr){Zn(zt),Pn==null||Pn(Cr)},Zr={};ye.role==="option"&&(Zr["aria-selected"]=gr);var Nr=T.createElement(en,(0,i.Z)({ref:lr,elementRef:Sr,role:En===null?"none":En||"menuitem",tabIndex:un?null:-1,"data-menu-id":qt&&In?null:In},(0,mt.Z)(ir,["extra"]),nr,Zr,{component:"li","aria-disabled":un,style:(0,L.Z)((0,L.Z)({},Er),Lt),className:Y()(er,(0,K.Z)((0,K.Z)((0,K.Z)({},"".concat(er,"-active"),Xn),"".concat(er,"-selected"),gr),"".concat(er,"-disabled"),Ar),Dt),onClick:Fn,onKeyDown:yr,onFocus:Ir}),vn,T.createElement(gt,{props:(0,L.Z)((0,L.Z)({},ye),{},{isSelected:gr}),icon:pn}));return Un&&(Nr=Un(Nr,ye,{selected:gr})),Nr});function st(ye,at){var Lt=ye.eventKey,Dt=me(),zt=Je(Lt);return T.useEffect(function(){if(Dt)return Dt.registerPath(Lt,zt),function(){Dt.unregisterPath(Lt,zt)}},[zt]),Dt?null:T.createElement(rt,(0,i.Z)({},ye,{ref:at}))}var xt=T.forwardRef(st),pe=["className","children"],Ee=function(at,Lt){var Dt=at.className,zt=at.children,an=(0,g.Z)(at,pe),un=T.useContext(Q),sn=un.prefixCls,vn=un.mode,En=un.rtl;return T.createElement("ul",(0,i.Z)({className:Y()(sn,En&&"".concat(sn,"-rtl"),"".concat(sn,"-sub"),"".concat(sn,"-").concat(vn==="inline"?"inline":"vertical"),Dt),role:"menu"},an,{"data-menu-list":!0,ref:Lt}),zt)},nt=T.forwardRef(Ee);nt.displayName="SubMenuList";var Ze=nt,z=u(11592);function St(ye,at){return(0,z.Z)(ye).map(function(Lt,Dt){if(T.isValidElement(Lt)){var zt,an,un=Lt.key,sn=(zt=(an=Lt.props)===null||an===void 0?void 0:an.eventKey)!==null&&zt!==void 0?zt:un,vn=sn==null;vn&&(sn="tmp_key-".concat([].concat((0,he.Z)(at),[Dt]).join("-")));var En={key:sn,eventKey:sn};return T.cloneElement(Lt,En)}return Lt})}var fe=u(68196),Kt={adjustX:1,adjustY:1},dn={topLeft:{points:["bl","tl"],overflow:Kt},topRight:{points:["br","tr"],overflow:Kt},bottomLeft:{points:["tl","bl"],overflow:Kt},bottomRight:{points:["tr","br"],overflow:Kt},leftTop:{points:["tr","tl"],overflow:Kt},leftBottom:{points:["br","bl"],overflow:Kt},rightTop:{points:["tl","tr"],overflow:Kt},rightBottom:{points:["bl","br"],overflow:Kt}},Bt={topLeft:{points:["bl","tl"],overflow:Kt},topRight:{points:["br","tr"],overflow:Kt},bottomLeft:{points:["tl","bl"],overflow:Kt},bottomRight:{points:["tr","br"],overflow:Kt},rightTop:{points:["tr","tl"],overflow:Kt},rightBottom:{points:["br","bl"],overflow:Kt},leftTop:{points:["tl","tr"],overflow:Kt},leftBottom:{points:["bl","br"],overflow:Kt}},J=null;function we(ye,at,Lt){if(at)return at;if(Lt)return Lt[ye]||Lt.other}var M={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ct(ye){var at=ye.prefixCls,Lt=ye.visible,Dt=ye.children,zt=ye.popup,an=ye.popupStyle,un=ye.popupClassName,sn=ye.popupOffset,vn=ye.disabled,En=ye.mode,Rn=ye.onVisibleChange,bn=T.useContext(Q),Cn=bn.getPopupContainer,Bn=bn.rtl,Pn=bn.subMenuOpenDelay,ir=bn.subMenuCloseDelay,In=bn.builtinPlacements,zn=bn.triggerSubMenuAction,Yn=bn.forceSubMenuRender,tr=bn.rootClassName,Jn=bn.motion,qt=bn.defaultMotions,tn=T.useState(!1),yn=(0,Z.Z)(tn,2),Zn=yn[0],Ht=yn[1],Un=Bn?(0,L.Z)((0,L.Z)({},Bt),In):(0,L.Z)((0,L.Z)({},dn),In),er=M[En],lr=we(En,Jn,qt),_r=T.useRef(lr);En!=="inline"&&(_r.current=lr);var Ar=(0,L.Z)((0,L.Z)({},_r.current),{},{leavedClassName:"".concat(at,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Sr=T.useRef();return T.useEffect(function(){return Sr.current=(0,ct.Z)(function(){Ht(Lt)}),function(){ct.Z.cancel(Sr.current)}},[Lt]),T.createElement(fe.Z,{prefixCls:at,popupClassName:Y()("".concat(at,"-popup"),(0,K.Z)({},"".concat(at,"-rtl"),Bn),un,tr),stretch:En==="horizontal"?"minWidth":null,getPopupContainer:Cn,builtinPlacements:Un,popupPlacement:er,popupVisible:Zn,popup:zt,popupStyle:an,popupAlign:sn&&{offset:sn},action:vn?[]:[zn],mouseEnterDelay:Pn,mouseLeaveDelay:ir,onPopupVisibleChange:Rn,forceRender:Yn,popupMotion:Ar,fresh:!0},Dt)}var ot=u(77900);function dt(ye){var at=ye.id,Lt=ye.open,Dt=ye.keyPath,zt=ye.children,an="inline",un=T.useContext(Q),sn=un.prefixCls,vn=un.forceSubMenuRender,En=un.motion,Rn=un.defaultMotions,bn=un.mode,Cn=T.useRef(!1);Cn.current=bn===an;var Bn=T.useState(!Cn.current),Pn=(0,Z.Z)(Bn,2),ir=Pn[0],In=Pn[1],zn=Cn.current?Lt:!1;T.useEffect(function(){Cn.current&&In(!1)},[bn]);var Yn=(0,L.Z)({},we(an,En,Rn));Dt.length>1&&(Yn.motionAppear=!1);var tr=Yn.onVisibleChanged;return Yn.onVisibleChanged=function(Jn){return!Cn.current&&!Jn&&In(!0),tr==null?void 0:tr(Jn)},ir?null:T.createElement(I,{mode:an,locked:!Cn.current},T.createElement(ot.default,(0,i.Z)({visible:zn},Yn,{forceRender:vn,removeOnLeave:!1,leavedClassName:"".concat(sn,"-hidden")}),function(Jn){var qt=Jn.className,tn=Jn.style;return T.createElement(Ze,{id:at,className:qt,style:tn},zt)}))}var $t=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ft=["active"],Mt=T.forwardRef(function(ye,at){var Lt=ye.style,Dt=ye.className,zt=ye.title,an=ye.eventKey,un=ye.warnKey,sn=ye.disabled,vn=ye.internalPopupClose,En=ye.children,Rn=ye.itemIcon,bn=ye.expandIcon,Cn=ye.popupClassName,Bn=ye.popupOffset,Pn=ye.popupStyle,ir=ye.onClick,In=ye.onMouseEnter,zn=ye.onMouseLeave,Yn=ye.onTitleClick,tr=ye.onTitleMouseEnter,Jn=ye.onTitleMouseLeave,qt=(0,g.Z)(ye,$t),tn=X(an),yn=T.useContext(Q),Zn=yn.prefixCls,Ht=yn.mode,Un=yn.openKeys,er=yn.disabled,lr=yn.overflowDisabled,_r=yn.activeKey,Ar=yn.selectedKeys,Sr=yn.itemIcon,Vn=yn.expandIcon,An=yn.onItemClick,pn=yn.onOpenChange,Tn=yn.onActive,Xn=T.useContext(oe),nr=Xn._internalRenderSubMenuItem,gr=T.useContext(ke),Er=gr.isSubPathKey,Fn=Je(),yr="".concat(Zn,"-submenu"),Ir=er||sn,Zr=T.useRef(),Nr=T.useRef(),Lr=Rn!=null?Rn:Sr,Cr=bn!=null?bn:Vn,Fr=Un.includes(an),Jt=!lr&&Fr,On=Er(Ar,an),Gn=Nt(an,Ir,tr,Jn),ur=Gn.active,xr=(0,g.Z)(Gn,Ft),jr=T.useState(!1),wr=(0,Z.Z)(jr,2),ni=wr[0],di=wr[1],Ei=function(Zi){Ir||di(Zi)},Dr=function(Zi){Ei(!0),In==null||In({key:an,domEvent:Zi})},fr=function(Zi){Ei(!1),zn==null||zn({key:an,domEvent:Zi})},yi=T.useMemo(function(){return ur||(Ht!=="inline"?ni||Er([_r],an):!1)},[Ht,ur,_r,ni,an,Er]),sr=De(Fn.length),wi=function(Zi){Ir||(Yn==null||Yn({key:an,domEvent:Zi}),Ht==="inline"&&pn(an,!Fr))},Yi=Ue(function(ki){ir==null||ir(S(ki)),An(ki)}),Wi=function(Zi){Ht!=="inline"&&pn(an,Zi)},Mi=function(){Tn(an)},Ni=tn&&"".concat(tn,"-popup"),Vr=T.useMemo(function(){return T.createElement(gt,{icon:Ht!=="horizontal"?Cr:void 0,props:(0,L.Z)((0,L.Z)({},ye),{},{isOpen:Jt,isSubMenu:!0})},T.createElement("i",{className:"".concat(yr,"-arrow")}))},[Ht,Cr,ye,Jt,yr]),Di=T.createElement("div",(0,i.Z)({role:"menuitem",style:sr,className:"".concat(yr,"-title"),tabIndex:Ir?null:-1,ref:Zr,title:typeof zt=="string"?zt:null,"data-menu-id":lr&&tn?null:tn,"aria-expanded":Jt,"aria-haspopup":!0,"aria-controls":Ni,"aria-disabled":Ir,onClick:wi,onFocus:Mi},xr),zt,Vr),ra=T.useRef(Ht);if(Ht!=="inline"&&Fn.length>1?ra.current="vertical":ra.current=Ht,!lr){var zi=ra.current;Di=T.createElement(Ct,{mode:zi,prefixCls:yr,visible:!vn&&Jt&&Ht!=="inline",popupClassName:Cn,popupOffset:Bn,popupStyle:Pn,popup:T.createElement(I,{mode:zi==="horizontal"?"vertical":zi},T.createElement(Ze,{id:Ni,ref:Nr},En)),disabled:Ir,onVisibleChange:Wi},Di)}var hi=T.createElement(l.Z.Item,(0,i.Z)({ref:at,role:"none"},qt,{component:"li",style:Lt,className:Y()(yr,"".concat(yr,"-").concat(Ht),Dt,(0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)({},"".concat(yr,"-open"),Jt),"".concat(yr,"-active"),yi),"".concat(yr,"-selected"),On),"".concat(yr,"-disabled"),Ir)),onMouseEnter:Dr,onMouseLeave:fr}),Di,!lr&&T.createElement(dt,{id:Ni,open:Jt,keyPath:Fn},En));return nr&&(hi=nr(hi,ye,{selected:On,active:yi,open:Jt,disabled:Ir})),T.createElement(I,{onItemClick:Yi,mode:Ht==="horizontal"?"vertical":Ht,itemIcon:Lr,expandIcon:Cr},hi)}),ie=T.forwardRef(function(ye,at){var Lt=ye.eventKey,Dt=ye.children,zt=Je(Lt),an=St(Dt,zt),un=me();T.useEffect(function(){if(un)return un.registerPath(Lt,zt),function(){un.unregisterPath(Lt,zt)}},[zt]);var sn;return un?sn=an:sn=T.createElement(Mt,(0,i.Z)({ref:at},ye),an),T.createElement(Ke.Provider,{value:zt},sn)}),ve=ie,At=u(43749);function Be(ye){var at=ye.className,Lt=ye.style,Dt=T.useContext(Q),zt=Dt.prefixCls,an=me();return an?null:T.createElement("li",{role:"separator",className:Y()("".concat(zt,"-item-divider"),at),style:Lt})}var Le=["className","title","eventKey","children"],ae=T.forwardRef(function(ye,at){var Lt=ye.className,Dt=ye.title,zt=ye.eventKey,an=ye.children,un=(0,g.Z)(ye,Le),sn=T.useContext(Q),vn=sn.prefixCls,En="".concat(vn,"-item-group");return T.createElement("li",(0,i.Z)({ref:at,role:"presentation"},un,{onClick:function(bn){return bn.stopPropagation()},className:Y()(En,Lt)}),T.createElement("div",{role:"presentation",className:"".concat(En,"-title"),title:typeof Dt=="string"?Dt:void 0},Dt),T.createElement("ul",{role:"group",className:"".concat(En,"-list")},an))}),Re=T.forwardRef(function(ye,at){var Lt=ye.eventKey,Dt=ye.children,zt=Je(Lt),an=St(Dt,zt),un=me();return un?an:T.createElement(ae,(0,i.Z)({ref:at},(0,mt.Z)(ye,["warnKey"])),an)}),$e=Re,He=["label","children","key","type","extra"];function ut(ye,at,Lt){var Dt=at.item,zt=at.group,an=at.submenu,un=at.divider;return(ye||[]).map(function(sn,vn){if(sn&&(0,At.Z)(sn)==="object"){var En=sn,Rn=En.label,bn=En.children,Cn=En.key,Bn=En.type,Pn=En.extra,ir=(0,g.Z)(En,He),In=Cn!=null?Cn:"tmp-".concat(vn);return bn||Bn==="group"?Bn==="group"?T.createElement(zt,(0,i.Z)({key:In},ir,{title:Rn}),ut(bn,at,Lt)):T.createElement(an,(0,i.Z)({key:In},ir,{title:Rn}),ut(bn,at,Lt)):Bn==="divider"?T.createElement(un,(0,i.Z)({key:In},ir)):T.createElement(Dt,(0,i.Z)({key:In},ir,{extra:Pn}),Rn,(!!Pn||Pn===0)&&T.createElement("span",{className:"".concat(Lt,"-item-extra")},Pn))}return null}).filter(function(sn){return sn})}function rn(ye,at,Lt,Dt,zt){var an=ye,un=(0,L.Z)({divider:Be,item:xt,group:$e,submenu:ve},Dt);return at&&(an=ut(at,un,zt)),St(an,Lt)}var on=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Ve=[],lt=T.forwardRef(function(ye,at){var Lt,Dt=ye,zt=Dt.prefixCls,an=zt===void 0?"rc-menu":zt,un=Dt.rootClassName,sn=Dt.style,vn=Dt.className,En=Dt.tabIndex,Rn=En===void 0?0:En,bn=Dt.items,Cn=Dt.children,Bn=Dt.direction,Pn=Dt.id,ir=Dt.mode,In=ir===void 0?"vertical":ir,zn=Dt.inlineCollapsed,Yn=Dt.disabled,tr=Dt.disabledOverflow,Jn=Dt.subMenuOpenDelay,qt=Jn===void 0?.1:Jn,tn=Dt.subMenuCloseDelay,yn=tn===void 0?.1:tn,Zn=Dt.forceSubMenuRender,Ht=Dt.defaultOpenKeys,Un=Dt.openKeys,er=Dt.activeKey,lr=Dt.defaultActiveFirst,_r=Dt.selectable,Ar=_r===void 0?!0:_r,Sr=Dt.multiple,Vn=Sr===void 0?!1:Sr,An=Dt.defaultSelectedKeys,pn=Dt.selectedKeys,Tn=Dt.onSelect,Xn=Dt.onDeselect,nr=Dt.inlineIndent,gr=nr===void 0?24:nr,Er=Dt.motion,Fn=Dt.defaultMotions,yr=Dt.triggerSubMenuAction,Ir=yr===void 0?"hover":yr,Zr=Dt.builtinPlacements,Nr=Dt.itemIcon,Lr=Dt.expandIcon,Cr=Dt.overflowedIndicator,Fr=Cr===void 0?"...":Cr,Jt=Dt.overflowedIndicatorPopupClassName,On=Dt.getPopupContainer,Gn=Dt.onClick,ur=Dt.onOpenChange,xr=Dt.onKeyDown,jr=Dt.openAnimation,wr=Dt.openTransitionName,ni=Dt._internalRenderMenuItem,di=Dt._internalRenderSubMenuItem,Ei=Dt._internalComponents,Dr=(0,g.Z)(Dt,on),fr=T.useMemo(function(){return[rn(Cn,bn,Ve,Ei,an),rn(Cn,bn,Ve,{},an)]},[Cn,bn,Ei]),yi=(0,Z.Z)(fr,2),sr=yi[0],wi=yi[1],Yi=T.useState(!1),Wi=(0,Z.Z)(Yi,2),Mi=Wi[0],Ni=Wi[1],Vr=T.useRef(),Di=xe(Pn),ra=Bn==="rtl",zi=(0,x.Z)(Ht,{value:Un,postState:function(Vi){return Vi||Ve}}),hi=(0,Z.Z)(zi,2),ki=hi[0],Zi=hi[1],Br=function(Vi){var aa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ma(){Zi(Vi),ur==null||ur(Vi)}aa?(0,A.flushSync)(Ma):Ma()},ei=T.useState(ki),pr=(0,Z.Z)(ei,2),vr=pr[0],Pr=pr[1],Wr=T.useRef(!1),Ci=T.useMemo(function(){return(In==="inline"||In==="vertical")&&zn?["vertical",zn]:[In,!1]},[In,zn]),br=(0,Z.Z)(Ci,2),Rr=br[0],Mr=br[1],$r=Rr==="inline",ti=T.useState(Rr),ma=(0,Z.Z)(ti,2),Xi=ma[0],ua=ma[1],fi=T.useState(Mr),ri=(0,Z.Z)(fi,2),Ti=ri[0],Oi=ri[1];T.useEffect(function(){ua(Rr),Oi(Mr),Wr.current&&($r?Zi(vr):Br(Ve))},[Rr,Mr]);var ia=T.useState(0),pa=(0,Z.Z)(ia,2),Sa=pa[0],Da=pa[1],Wa=Sa>=sr.length-1||Xi!=="horizontal"||tr;T.useEffect(function(){$r&&Pr(ki)},[ki]),T.useEffect(function(){return Wr.current=!0,function(){Wr.current=!1}},[]);var Ta=ze(),vs=Ta.registerPath,Cs=Ta.unregisterPath,Ds=Ta.refreshOverflowKeys,$a=Ta.isSubPathKey,Rs=Ta.getKeyPath,za=Ta.getKeys,Fs=Ta.getSubPathKeys,$s=T.useMemo(function(){return{registerPath:vs,unregisterPath:Cs}},[vs,Cs]),Ws=T.useMemo(function(){return{isSubPathKey:$a}},[$a]);T.useEffect(function(){Ds(Wa?Ve:sr.slice(Sa+1).map(function(Ki){return Ki.key}))},[Sa,Wa]);var Vs=(0,x.Z)(er||lr&&((Lt=sr[0])===null||Lt===void 0?void 0:Lt.key),{value:er}),ds=(0,Z.Z)(Vs,2),Ya=ds[0],Ai=ds[1],mi=Ue(function(Ki){Ai(Ki)}),Aa=Ue(function(){Ai(void 0)});(0,T.useImperativeHandle)(at,function(){return{list:Vr.current,focus:function(Vi){var aa,Ma=za(),Ka=Pe(Ma,Di),ws=Ka.elements,Os=Ka.key2element,ys=Ka.element2key,Ys=Ne(Vr.current,ws),Ls=Ya!=null?Ya:Ys[0]?ys.get(Ys[0]):(aa=sr.find(function(zs){return!zs.props.disabled}))===null||aa===void 0?void 0:aa.key,Ps=Os.get(Ls);if(Ls&&Ps){var Xs;Ps==null||(Xs=Ps.focus)===null||Xs===void 0||Xs.call(Ps,Vi)}}}});var La=(0,x.Z)(An||[],{value:pn,postState:function(Vi){return Array.isArray(Vi)?Vi:Vi==null?Ve:[Vi]}}),Ui=(0,Z.Z)(La,2),Ea=Ui[0],Za=Ui[1],Ua=function(Vi){if(Ar){var aa=Vi.key,Ma=Ea.includes(aa),Ka;Vn?Ma?Ka=Ea.filter(function(Os){return Os!==aa}):Ka=[].concat((0,he.Z)(Ea),[aa]):Ka=[aa],Za(Ka);var ws=(0,L.Z)((0,L.Z)({},Vi),{},{selectedKeys:Ka});Ma?Xn==null||Xn(ws):Tn==null||Tn(ws)}!Vn&&ki.length&&Xi!=="inline"&&Br(Ve)},rs=Ue(function(Ki){Gn==null||Gn(S(Ki)),Ua(Ki)}),Pa=Ue(function(Ki,Vi){var aa=ki.filter(function(Ka){return Ka!==Ki});if(Vi)aa.push(Ki);else if(Xi!=="inline"){var Ma=Fs(Ki);aa=aa.filter(function(Ka){return!Ma.has(Ka)})}(0,N.Z)(ki,aa,!0)||Br(aa,!0)}),ss=function(Vi,aa){var Ma=aa!=null?aa:!ki.includes(Vi);Pa(Vi,Ma)},Xa=Ge(Xi,Ya,ra,Di,Vr,za,Rs,Ai,ss,xr);T.useEffect(function(){Ni(!0)},[]);var fs=T.useMemo(function(){return{_internalRenderMenuItem:ni,_internalRenderSubMenuItem:di}},[ni,di]),hs=Xi!=="horizontal"||tr?sr:sr.map(function(Ki,Vi){return T.createElement(I,{key:Ki.key,overflowDisabled:Vi>Sa},Ki)}),Gs=T.createElement(l.Z,(0,i.Z)({id:Pn,ref:Vr,prefixCls:"".concat(an,"-overflow"),component:"ul",itemComponent:xt,className:Y()(an,"".concat(an,"-root"),"".concat(an,"-").concat(Xi),vn,(0,K.Z)((0,K.Z)({},"".concat(an,"-inline-collapsed"),Ti),"".concat(an,"-rtl"),ra),un),dir:Bn,style:sn,role:"menu",tabIndex:Rn,data:hs,renderRawItem:function(Vi){return Vi},renderRawRest:function(Vi){var aa=Vi.length,Ma=aa?sr.slice(-aa):null;return T.createElement(ve,{eventKey:Te,title:Fr,disabled:Wa,internalPopupClose:aa===0,popupClassName:Jt},Ma)},maxCount:Xi!=="horizontal"||tr?l.Z.INVALIDATE:l.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Vi){Da(Vi)},onKeyDown:Xa},Dr));return T.createElement(oe.Provider,{value:fs},T.createElement($.Provider,{value:Di},T.createElement(I,{prefixCls:an,rootClassName:un,mode:Xi,openKeys:ki,rtl:ra,disabled:Yn,motion:Mi?Er:null,defaultMotions:Mi?Fn:null,activeKey:Ya,onActive:mi,onInactive:Aa,selectedKeys:Ea,inlineIndent:gr,subMenuOpenDelay:qt,subMenuCloseDelay:yn,forceSubMenuRender:Zn,builtinPlacements:Zr,triggerSubMenuAction:Ir,getPopupContainer:On,itemIcon:Nr,expandIcon:Lr,onItemClick:rs,onOpenChange:Pa},T.createElement(ke.Provider,{value:Ws},Gs),T.createElement("div",{style:{display:"none"},"aria-hidden":!0},T.createElement(Se.Provider,{value:$s},wi)))))}),wt=lt,Qt=wt;Qt.Item=xt,Qt.SubMenu=ve,Qt.ItemGroup=$e,Qt.Divider=Be;var Yt=Qt},83836:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return se}});var i=u(60499),K=u(85899),L=u(72190),he=u(42244),Z=u(59301),g=u(92310),W=u.n(g),Y=u(29301),l=u(34280),x=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],N=void 0;function y(w,D){var ce=w.prefixCls,Oe=w.invalidate,ct=w.item,Tt=w.renderItem,Ae=w.responsive,qe=w.responsiveDisabled,ht=w.registerSize,tt=w.itemKey,Fe=w.className,jt=w.style,bt=w.children,cn=w.display,vt=w.order,pt=w.component,Qe=pt===void 0?"div":pt,Ne=(0,he.Z)(w,x),le=Ae&&!cn;function Pe(Ie){ht(tt,Ie)}Z.useEffect(function(){return function(){Pe(null)}},[]);var Ge=Tt&&ct!==N?Tt(ct,{index:vt}):bt,j;Oe||(j={opacity:le?0:1,height:le?0:N,overflowY:le?"hidden":N,order:Ae?vt:N,pointerEvents:le?"none":N,position:le?"absolute":N});var P={};le&&(P["aria-hidden"]=!0);var _e=Z.createElement(Qe,(0,i.Z)({className:W()(!Oe&&ce,Fe),style:(0,K.Z)((0,K.Z)({},j),jt)},P,Ne,{ref:D}),Ge);return Ae&&(_e=Z.createElement(Y.Z,{onResize:function(Te){var ze=Te.offsetWidth;Pe(ze)},disabled:qe},_e)),_e}var T=Z.forwardRef(y);T.displayName="Item";var A=T,$=u(6089),H=u(4676),X=u(16089);function V(w){if(typeof MessageChannel=="undefined")(0,X.Z)(w);else{var D=new MessageChannel;D.port1.onmessage=function(){return w()},D.port2.postMessage(void 0)}}function R(){var w=Z.useRef(null),D=function(Oe){w.current||(w.current=[],V(function(){(0,H.unstable_batchedUpdates)(function(){w.current.forEach(function(ct){ct()}),w.current=null})})),w.current.push(Oe)};return D}function Q(w,D){var ce=Z.useState(D),Oe=(0,L.Z)(ce,2),ct=Oe[0],Tt=Oe[1],Ae=(0,$.Z)(function(qe){w(function(){Tt(qe)})});return[ct,Ae]}var O=Z.createContext(null),I=["component"],ue=["className"],Se=["className"],me=function(D,ce){var Oe=Z.useContext(O);if(!Oe){var ct=D.component,Tt=ct===void 0?"div":ct,Ae=(0,he.Z)(D,I);return Z.createElement(Tt,(0,i.Z)({},Ae,{ref:ce}))}var qe=Oe.className,ht=(0,he.Z)(Oe,ue),tt=D.className,Fe=(0,he.Z)(D,Se);return Z.createElement(O.Provider,{value:null},Z.createElement(A,(0,i.Z)({ref:ce,className:W()(qe,tt)},ht,Fe)))},Ke=Z.forwardRef(me);Ke.displayName="RawItem";var Je=Ke,ke=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],We="responsive",oe="invalidate";function k(w){return"+ ".concat(w.length," ...")}function _(w,D){var ce=w.prefixCls,Oe=ce===void 0?"rc-overflow":ce,ct=w.data,Tt=ct===void 0?[]:ct,Ae=w.renderItem,qe=w.renderRawItem,ht=w.itemKey,tt=w.itemWidth,Fe=tt===void 0?10:tt,jt=w.ssr,bt=w.style,cn=w.className,vt=w.maxCount,pt=w.renderRest,Qe=w.renderRawRest,Ne=w.prefix,le=w.suffix,Pe=w.component,Ge=Pe===void 0?"div":Pe,j=w.itemComponent,P=w.onVisibleChange,_e=(0,he.Z)(w,ke),Ie=jt==="full",Te=R(),ze=Q(Te,null),Ue=(0,L.Z)(ze,2),ft=Ue[0],de=Ue[1],xe=ft||0,Ot=Q(Te,new Map),_t=(0,L.Z)(Ot,2),Pt=_t[0],kt=_t[1],mt=Q(Te,0),Vt=(0,L.Z)(mt,2),Nt=Vt[0],De=Vt[1],gt=Q(Te,0),E=(0,L.Z)(gt,2),S=E[0],je=E[1],G=Q(Te,0),Ce=(0,L.Z)(G,2),en=Ce[0],rt=Ce[1],st=Q(Te,0),xt=(0,L.Z)(st,2),pe=xt[0],Ee=xt[1],nt=(0,Z.useState)(null),Ze=(0,L.Z)(nt,2),z=Ze[0],St=Ze[1],fe=(0,Z.useState)(null),Kt=(0,L.Z)(fe,2),dn=Kt[0],Bt=Kt[1],J=Z.useMemo(function(){return dn===null&&Ie?Number.MAX_SAFE_INTEGER:dn||0},[dn,ft]),we=(0,Z.useState)(!1),M=(0,L.Z)(we,2),Ct=M[0],ot=M[1],dt="".concat(Oe,"-item"),$t=Math.max(Nt,S),Ft=vt===We,Mt=Tt.length&&Ft,ie=vt===oe,ve=Mt||typeof vt=="number"&&Tt.length>vt,At=(0,Z.useMemo)(function(){var zt=Tt;return Mt?ft===null&&Ie?zt=Tt:zt=Tt.slice(0,Math.min(Tt.length,xe/Fe)):typeof vt=="number"&&(zt=Tt.slice(0,vt)),zt},[Tt,Fe,ft,vt,Mt]),Be=(0,Z.useMemo)(function(){return Mt?Tt.slice(J+1):Tt.slice(At.length)},[Tt,At,Mt,J]),Le=(0,Z.useCallback)(function(zt,an){var un;return typeof ht=="function"?ht(zt):(un=ht&&(zt==null?void 0:zt[ht]))!==null&&un!==void 0?un:an},[ht]),ae=(0,Z.useCallback)(Ae||function(zt){return zt},[Ae]);function Re(zt,an,un){dn===zt&&(an===void 0||an===z)||(Bt(zt),un||(ot(zt<Tt.length-1),P==null||P(zt)),an!==void 0&&St(an))}function $e(zt,an){de(an.clientWidth)}function He(zt,an){kt(function(un){var sn=new Map(un);return an===null?sn.delete(zt):sn.set(zt,an),sn})}function ut(zt,an){je(an),De(S)}function rn(zt,an){rt(an)}function on(zt,an){Ee(an)}function Ve(zt){return Pt.get(Le(At[zt],zt))}(0,l.Z)(function(){if(xe&&typeof $t=="number"&&At){var zt=en+pe,an=At.length,un=an-1;if(!an){Re(0,null);return}for(var sn=0;sn<an;sn+=1){var vn=Ve(sn);if(Ie&&(vn=vn||0),vn===void 0){Re(sn-1,void 0,!0);break}if(zt+=vn,un===0&&zt<=xe||sn===un-1&&zt+Ve(un)<=xe){Re(un,null);break}else if(zt+$t>xe){Re(sn-1,zt-vn-pe+S);break}}le&&Ve(0)+pe>xe&&St(null)}},[xe,Pt,S,en,pe,Le,At]);var lt=Ct&&!!Be.length,wt={};z!==null&&Mt&&(wt={position:"absolute",left:z,top:0});var Qt={prefixCls:dt,responsive:Mt,component:j,invalidate:ie},Yt=qe?function(zt,an){var un=Le(zt,an);return Z.createElement(O.Provider,{key:un,value:(0,K.Z)((0,K.Z)({},Qt),{},{order:an,item:zt,itemKey:un,registerSize:He,display:an<=J})},qe(zt,an))}:function(zt,an){var un=Le(zt,an);return Z.createElement(A,(0,i.Z)({},Qt,{order:an,key:un,item:zt,renderItem:ae,itemKey:un,registerSize:He,display:an<=J}))},ye={order:lt?J:Number.MAX_SAFE_INTEGER,className:"".concat(dt,"-rest"),registerSize:ut,display:lt},at=pt||k,Lt=Qe?Z.createElement(O.Provider,{value:(0,K.Z)((0,K.Z)({},Qt),ye)},Qe(Be)):Z.createElement(A,(0,i.Z)({},Qt,ye),typeof at=="function"?at(Be):at),Dt=Z.createElement(Ge,(0,i.Z)({className:W()(!ie&&Oe,cn),style:bt,ref:D},_e),Ne&&Z.createElement(A,(0,i.Z)({},Qt,{responsive:Ft,responsiveDisabled:!Mt,order:-1,className:"".concat(dt,"-prefix"),registerSize:rn,display:!0}),Ne),At.map(Yt),ve?Lt:null,le&&Z.createElement(A,(0,i.Z)({},Qt,{responsive:Ft,responsiveDisabled:!Mt,order:J,className:"".concat(dt,"-suffix"),registerSize:on,display:!0,style:wt}),le));return Ft?Z.createElement(Y.Z,{onResize:$e,disabled:!Mt},Dt):Dt}var ee=Z.forwardRef(_);ee.displayName="Overflow",ee.Item=Je,ee.RESPONSIVE=We,ee.INVALIDATE=oe;var ne=ee,se=ne},29301:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return oe}});var i=u(60499),K=u(59301),L=u(11592),he=u(48736),Z=u(85899),g=u(43749),W=u(76846),Y=u(8654),l=K.createContext(null);function x(k){var _=k.children,ee=k.onBatchResize,ne=K.useRef(0),se=K.useRef([]),w=K.useContext(l),D=K.useCallback(function(ce,Oe,ct){ne.current+=1;var Tt=ne.current;se.current.push({size:ce,element:Oe,data:ct}),Promise.resolve().then(function(){Tt===ne.current&&(ee==null||ee(se.current),se.current=[])}),w==null||w(ce,Oe,ct)},[ee,w]);return K.createElement(l.Provider,{value:D},_)}var N=u(76374),y=new Map;function T(k){k.forEach(function(_){var ee,ne=_.target;(ee=y.get(ne))===null||ee===void 0||ee.forEach(function(se){return se(ne)})})}var A=new N.Z(T),$=null,H=null;function X(k,_){y.has(k)||(y.set(k,new Set),A.observe(k)),y.get(k).add(_)}function V(k,_){y.has(k)&&(y.get(k).delete(_),y.get(k).size||(A.unobserve(k),y.delete(k)))}var R=u(38705),Q=u(17212),O=u(39153),I=u(55401),ue=function(k){(0,O.Z)(ee,k);var _=(0,I.Z)(ee);function ee(){return(0,R.Z)(this,ee),_.apply(this,arguments)}return(0,Q.Z)(ee,[{key:"render",value:function(){return this.props.children}}]),ee}(K.Component);function Se(k,_){var ee=k.children,ne=k.disabled,se=K.useRef(null),w=K.useRef(null),D=K.useContext(l),ce=typeof ee=="function",Oe=ce?ee(se):ee,ct=K.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Tt=!ce&&K.isValidElement(Oe)&&(0,Y.Yr)(Oe),Ae=Tt?(0,Y.C4)(Oe):null,qe=(0,Y.x1)(Ae,se),ht=function(){var bt;return(0,W.ZP)(se.current)||(se.current&&(0,g.Z)(se.current)==="object"?(0,W.ZP)((bt=se.current)===null||bt===void 0?void 0:bt.nativeElement):null)||(0,W.ZP)(w.current)};K.useImperativeHandle(_,function(){return ht()});var tt=K.useRef(k);tt.current=k;var Fe=K.useCallback(function(jt){var bt=tt.current,cn=bt.onResize,vt=bt.data,pt=jt.getBoundingClientRect(),Qe=pt.width,Ne=pt.height,le=jt.offsetWidth,Pe=jt.offsetHeight,Ge=Math.floor(Qe),j=Math.floor(Ne);if(ct.current.width!==Ge||ct.current.height!==j||ct.current.offsetWidth!==le||ct.current.offsetHeight!==Pe){var P={width:Ge,height:j,offsetWidth:le,offsetHeight:Pe};ct.current=P;var _e=le===Math.round(Qe)?Qe:le,Ie=Pe===Math.round(Ne)?Ne:Pe,Te=(0,Z.Z)((0,Z.Z)({},P),{},{offsetWidth:_e,offsetHeight:Ie});D==null||D(Te,jt,vt),cn&&Promise.resolve().then(function(){cn(Te,jt)})}},[]);return K.useEffect(function(){var jt=ht();return jt&&!ne&&X(jt,Fe),function(){return V(jt,Fe)}},[se.current,ne]),K.createElement(ue,{ref:w},Tt?K.cloneElement(Oe,{ref:qe}):Oe)}var me=K.forwardRef(Se),Ke=me,Je="rc-observer-key";function ke(k,_){var ee=k.children,ne=typeof ee=="function"?[ee]:(0,L.Z)(ee);return ne.map(function(se,w){var D=(se==null?void 0:se.key)||"".concat(Je,"-").concat(w);return K.createElement(Ke,(0,i.Z)({},k,{key:D,ref:w===0?_:void 0}),se)})}var We=K.forwardRef(ke);We.Collection=x;var oe=We},6551:function($n,Rt,u){"use strict";u.d(Rt,{ZP:function(){return W}});var i=u(72190),K=u(59301),L=u(47273),he=0,Z=(0,L.Z)();function g(){var Y;return Z?(Y=he,he+=1):Y="TEST_OR_SSR",Y}function W(Y){var l=K.useState(),x=(0,i.Z)(l,2),N=x[0],y=x[1];return K.useEffect(function(){y("rc_select_".concat(g()))},[]),Y||N}},37463:function($n,Rt,u){"use strict";u.d(Rt,{Ac:function(){return mt},Xo:function(){return Nt},Wx:function(){return gt},ZP:function(){return At},lk:function(){return Q}});var i=u(60499),K=u(77654),L=u(18642),he=u(85899),Z=u(72190),g=u(42244),W=u(43749),Y=u(18929),l=u(48736),x=u(59301),N=u(92310),y=u.n(N),T=u(34280),A=u(49658),$=u(8654),H=function(Le){var ae=Le.className,Re=Le.customizeIcon,$e=Le.customizeIconProps,He=Le.children,ut=Le.onMouseDown,rn=Le.onClick,on=typeof Re=="function"?Re($e):Re;return x.createElement("span",{className:ae,onMouseDown:function(lt){lt.preventDefault(),ut==null||ut(lt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:rn,"aria-hidden":!0},on!==void 0?on:x.createElement("span",{className:y()(ae.split(/\s+/).map(function(Ve){return"".concat(Ve,"-icon")}))},He))},X=H,V=function(Le,ae,Re,$e,He){var ut=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,rn=arguments.length>6?arguments[6]:void 0,on=arguments.length>7?arguments[7]:void 0,Ve=x.useMemo(function(){if((0,W.Z)($e)==="object")return $e.clearIcon;if(He)return He},[$e,He]),lt=x.useMemo(function(){return!!(!ut&&$e&&(Re.length||rn)&&!(on==="combobox"&&rn===""))},[$e,ut,Re.length,rn,on]);return{allowClear:lt,clearIcon:x.createElement(X,{className:"".concat(Le,"-clear"),onMouseDown:ae,customizeIcon:Ve},"\xD7")}},R=x.createContext(null);function Q(){return x.useContext(R)}function O(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Le=x.useState(!1),ae=(0,Z.Z)(Le,2),Re=ae[0],$e=ae[1],He=x.useRef(null),ut=function(){window.clearTimeout(He.current)};x.useEffect(function(){return ut},[]);var rn=function(Ve,lt){ut(),He.current=window.setTimeout(function(){$e(Ve),lt&<()},Be)};return[Re,rn,ut]}function I(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Le=x.useRef(null),ae=x.useRef(null);x.useEffect(function(){return function(){window.clearTimeout(ae.current)}},[]);function Re($e){($e||Le.current===null)&&(Le.current=$e),window.clearTimeout(ae.current),ae.current=window.setTimeout(function(){Le.current=null},Be)}return[function(){return Le.current},Re]}function ue(Be,Le,ae,Re){var $e=x.useRef(null);$e.current={open:Le,triggerOpen:ae,customizedTrigger:Re},x.useEffect(function(){function He(ut){var rn;if(!((rn=$e.current)!==null&&rn!==void 0&&rn.customizedTrigger)){var on=ut.target;on.shadowRoot&&ut.composed&&(on=ut.composedPath()[0]||on),$e.current.open&&Be().filter(function(Ve){return Ve}).every(function(Ve){return!Ve.contains(on)&&Ve!==on})&&$e.current.triggerOpen(!1)}}return window.addEventListener("mousedown",He),function(){return window.removeEventListener("mousedown",He)}},[])}var Se=u(10228);function me(Be){return Be&&![Se.Z.ESC,Se.Z.SHIFT,Se.Z.BACKSPACE,Se.Z.TAB,Se.Z.WIN_KEY,Se.Z.ALT,Se.Z.META,Se.Z.WIN_KEY_RIGHT,Se.Z.CTRL,Se.Z.SEMICOLON,Se.Z.EQUALS,Se.Z.CAPS_LOCK,Se.Z.CONTEXT_MENU,Se.Z.F1,Se.Z.F2,Se.Z.F3,Se.Z.F4,Se.Z.F5,Se.Z.F6,Se.Z.F7,Se.Z.F8,Se.Z.F9,Se.Z.F10,Se.Z.F11,Se.Z.F12].includes(Be)}var Ke=u(26112),Je=u(83836);function ke(Be,Le,ae){var Re=(0,he.Z)((0,he.Z)({},Be),ae?Le:{});return Object.keys(Le).forEach(function($e){var He=Le[$e];typeof He=="function"&&(Re[$e]=function(){for(var ut,rn=arguments.length,on=new Array(rn),Ve=0;Ve<rn;Ve++)on[Ve]=arguments[Ve];return He.apply(void 0,on),(ut=Be[$e])===null||ut===void 0?void 0:ut.call.apply(ut,[Be].concat(on))})}),Re}var We=ke,oe=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],k=function(Le,ae){var Re=Le.prefixCls,$e=Le.id,He=Le.inputElement,ut=Le.autoFocus,rn=Le.autoComplete,on=Le.editable,Ve=Le.activeDescendantId,lt=Le.value,wt=Le.open,Qt=Le.attrs,Yt=(0,g.Z)(Le,oe),ye=He||x.createElement("input",null),at=ye,Lt=at.ref,Dt=at.props;return(0,l.Kp)(!("maxLength"in ye.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ye=x.cloneElement(ye,(0,he.Z)((0,he.Z)((0,he.Z)({type:"search"},We(Yt,Dt,!0)),{},{id:$e,ref:(0,$.sQ)(ae,Lt),autoComplete:rn||"off",autoFocus:ut,className:y()("".concat(Re,"-selection-search-input"),Dt==null?void 0:Dt.className),role:"combobox","aria-expanded":wt||!1,"aria-haspopup":"listbox","aria-owns":"".concat($e,"_list"),"aria-autocomplete":"list","aria-controls":"".concat($e,"_list"),"aria-activedescendant":wt?Ve:void 0},Qt),{},{value:on?lt:"",readOnly:!on,unselectable:on?null:"on",style:(0,he.Z)((0,he.Z)({},Dt.style),{},{opacity:on?null:0})})),ye},_=x.forwardRef(k),ee=_;function ne(Be){return Array.isArray(Be)?Be:Be!==void 0?[Be]:[]}var se=typeof window!="undefined"&&window.document&&window.document.documentElement,w=se;function D(Be){return Be!=null}function ce(Be){return!Be&&Be!==0}function Oe(Be){return["string","number"].includes((0,W.Z)(Be))}function ct(Be){var Le=void 0;return Be&&(Oe(Be.title)?Le=Be.title.toString():Oe(Be.label)&&(Le=Be.label.toString())),Le}function Tt(Be,Le){w?x.useLayoutEffect(Be,Le):x.useEffect(Be,Le)}function Ae(Be){var Le;return(Le=Be.key)!==null&&Le!==void 0?Le:Be.value}var qe=function(Le){Le.preventDefault(),Le.stopPropagation()},ht=function(Le){var ae=Le.id,Re=Le.prefixCls,$e=Le.values,He=Le.open,ut=Le.searchValue,rn=Le.autoClearSearchValue,on=Le.inputRef,Ve=Le.placeholder,lt=Le.disabled,wt=Le.mode,Qt=Le.showSearch,Yt=Le.autoFocus,ye=Le.autoComplete,at=Le.activeDescendantId,Lt=Le.tabIndex,Dt=Le.removeIcon,zt=Le.maxTagCount,an=Le.maxTagTextLength,un=Le.maxTagPlaceholder,sn=un===void 0?function(Xn){return"+ ".concat(Xn.length," ...")}:un,vn=Le.tagRender,En=Le.onToggleOpen,Rn=Le.onRemove,bn=Le.onInputChange,Cn=Le.onInputPaste,Bn=Le.onInputKeyDown,Pn=Le.onInputMouseDown,ir=Le.onInputCompositionStart,In=Le.onInputCompositionEnd,zn=Le.onInputBlur,Yn=x.useRef(null),tr=(0,x.useState)(0),Jn=(0,Z.Z)(tr,2),qt=Jn[0],tn=Jn[1],yn=(0,x.useState)(!1),Zn=(0,Z.Z)(yn,2),Ht=Zn[0],Un=Zn[1],er="".concat(Re,"-selection"),lr=He||wt==="multiple"&&rn===!1||wt==="tags"?ut:"",_r=wt==="tags"||wt==="multiple"&&rn===!1||Qt&&(He||Ht);Tt(function(){tn(Yn.current.scrollWidth)},[lr]);var Ar=function(nr,gr,Er,Fn,yr){return x.createElement("span",{title:ct(nr),className:y()("".concat(er,"-item"),(0,L.Z)({},"".concat(er,"-item-disabled"),Er))},x.createElement("span",{className:"".concat(er,"-item-content")},gr),Fn&&x.createElement(X,{className:"".concat(er,"-item-remove"),onMouseDown:qe,onClick:yr,customizeIcon:Dt},"\xD7"))},Sr=function(nr,gr,Er,Fn,yr,Ir){var Zr=function(Lr){qe(Lr),En(!He)};return x.createElement("span",{onMouseDown:Zr},vn({label:gr,value:nr,disabled:Er,closable:Fn,onClose:yr,isMaxTag:!!Ir}))},Vn=function(nr){var gr=nr.disabled,Er=nr.label,Fn=nr.value,yr=!lt&&!gr,Ir=Er;if(typeof an=="number"&&(typeof Er=="string"||typeof Er=="number")){var Zr=String(Ir);Zr.length>an&&(Ir="".concat(Zr.slice(0,an),"..."))}var Nr=function(Cr){Cr&&Cr.stopPropagation(),Rn(nr)};return typeof vn=="function"?Sr(Fn,Ir,gr,yr,Nr):Ar(nr,Ir,gr,yr,Nr)},An=function(nr){if(!$e.length)return null;var gr=typeof sn=="function"?sn(nr):sn;return typeof vn=="function"?Sr(void 0,gr,!1,!1,void 0,!0):Ar({title:gr},gr,!1)},pn=x.createElement("div",{className:"".concat(er,"-search"),style:{width:qt},onFocus:function(){Un(!0)},onBlur:function(){Un(!1)}},x.createElement(ee,{ref:on,open:He,prefixCls:Re,id:ae,inputElement:null,disabled:lt,autoFocus:Yt,autoComplete:ye,editable:_r,activeDescendantId:at,value:lr,onKeyDown:Bn,onMouseDown:Pn,onChange:bn,onPaste:Cn,onCompositionStart:ir,onCompositionEnd:In,onBlur:zn,tabIndex:Lt,attrs:(0,Ke.Z)(Le,!0)}),x.createElement("span",{ref:Yn,className:"".concat(er,"-search-mirror"),"aria-hidden":!0},lr,"\xA0")),Tn=x.createElement(Je.Z,{prefixCls:"".concat(er,"-overflow"),data:$e,renderItem:Vn,renderRest:An,suffix:pn,itemKey:Ae,maxCount:zt});return x.createElement("span",{className:"".concat(er,"-wrap")},Tn,!$e.length&&!lr&&x.createElement("span",{className:"".concat(er,"-placeholder")},Ve))},tt=ht,Fe=function(Le){var ae=Le.inputElement,Re=Le.prefixCls,$e=Le.id,He=Le.inputRef,ut=Le.disabled,rn=Le.autoFocus,on=Le.autoComplete,Ve=Le.activeDescendantId,lt=Le.mode,wt=Le.open,Qt=Le.values,Yt=Le.placeholder,ye=Le.tabIndex,at=Le.showSearch,Lt=Le.searchValue,Dt=Le.activeValue,zt=Le.maxLength,an=Le.onInputKeyDown,un=Le.onInputMouseDown,sn=Le.onInputChange,vn=Le.onInputPaste,En=Le.onInputCompositionStart,Rn=Le.onInputCompositionEnd,bn=Le.onInputBlur,Cn=Le.title,Bn=x.useState(!1),Pn=(0,Z.Z)(Bn,2),ir=Pn[0],In=Pn[1],zn=lt==="combobox",Yn=zn||at,tr=Qt[0],Jn=Lt||"";zn&&Dt&&!ir&&(Jn=Dt),x.useEffect(function(){zn&&In(!1)},[zn,Dt]);var qt=lt!=="combobox"&&!wt&&!at?!1:!!Jn,tn=Cn===void 0?ct(tr):Cn,yn=x.useMemo(function(){return tr?null:x.createElement("span",{className:"".concat(Re,"-selection-placeholder"),style:qt?{visibility:"hidden"}:void 0},Yt)},[tr,qt,Yt,Re]);return x.createElement("span",{className:"".concat(Re,"-selection-wrap")},x.createElement("span",{className:"".concat(Re,"-selection-search")},x.createElement(ee,{ref:He,prefixCls:Re,id:$e,open:wt,inputElement:ae,disabled:ut,autoFocus:rn,autoComplete:on,editable:Yn,activeDescendantId:Ve,value:Jn,onKeyDown:an,onMouseDown:un,onChange:function(Ht){In(!0),sn(Ht)},onPaste:vn,onCompositionStart:En,onCompositionEnd:Rn,onBlur:bn,tabIndex:ye,attrs:(0,Ke.Z)(Le,!0),maxLength:zn?zt:void 0})),!zn&&tr?x.createElement("span",{className:"".concat(Re,"-selection-item"),title:tn,style:qt?{visibility:"hidden"}:void 0},tr.label):null,yn)},jt=Fe,bt=function(Le,ae){var Re=(0,x.useRef)(null),$e=(0,x.useRef)(!1),He=Le.prefixCls,ut=Le.open,rn=Le.mode,on=Le.showSearch,Ve=Le.tokenWithEnter,lt=Le.disabled,wt=Le.prefix,Qt=Le.autoClearSearchValue,Yt=Le.onSearch,ye=Le.onSearchSubmit,at=Le.onToggleOpen,Lt=Le.onInputKeyDown,Dt=Le.onInputBlur,zt=Le.domRef;x.useImperativeHandle(ae,function(){return{focus:function(tn){Re.current.focus(tn)},blur:function(){Re.current.blur()}}});var an=I(0),un=(0,Z.Z)(an,2),sn=un[0],vn=un[1],En=function(tn){var yn=tn.which,Zn=Re.current instanceof HTMLTextAreaElement;!Zn&&ut&&(yn===Se.Z.UP||yn===Se.Z.DOWN)&&tn.preventDefault(),Lt&&Lt(tn),yn===Se.Z.ENTER&&rn==="tags"&&!$e.current&&!ut&&(ye==null||ye(tn.target.value)),!(Zn&&!ut&&~[Se.Z.UP,Se.Z.DOWN,Se.Z.LEFT,Se.Z.RIGHT].indexOf(yn))&&me(yn)&&at(!0)},Rn=function(){vn(!0)},bn=(0,x.useRef)(null),Cn=function(tn){Yt(tn,!0,$e.current)!==!1&&at(!0)},Bn=function(){$e.current=!0},Pn=function(tn){$e.current=!1,rn!=="combobox"&&Cn(tn.target.value)},ir=function(tn){var yn=tn.target.value;if(Ve&&bn.current&&/[\r\n]/.test(bn.current)){var Zn=bn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");yn=yn.replace(Zn,bn.current)}bn.current=null,Cn(yn)},In=function(tn){var yn=tn.clipboardData,Zn=yn==null?void 0:yn.getData("text");bn.current=Zn||""},zn=function(tn){var yn=tn.target;if(yn!==Re.current){var Zn=document.body.style.msTouchAction!==void 0;Zn?setTimeout(function(){Re.current.focus()}):Re.current.focus()}},Yn=function(tn){var yn=sn();tn.target!==Re.current&&!yn&&!(rn==="combobox"&<)&&tn.preventDefault(),(rn!=="combobox"&&(!on||!yn)||!ut)&&(ut&&Qt!==!1&&Yt("",!0,!1),at())},tr={inputRef:Re,onInputKeyDown:En,onInputMouseDown:Rn,onInputChange:ir,onInputPaste:In,onInputCompositionStart:Bn,onInputCompositionEnd:Pn,onInputBlur:Dt},Jn=rn==="multiple"||rn==="tags"?x.createElement(tt,(0,i.Z)({},Le,tr)):x.createElement(jt,(0,i.Z)({},Le,tr));return x.createElement("div",{ref:zt,className:"".concat(He,"-selector"),onClick:zn,onMouseDown:Yn},wt&&x.createElement("div",{className:"".concat(He,"-prefix")},wt),Jn)},cn=x.forwardRef(bt),vt=cn,pt=u(68196),Qe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ne=function(Le){var ae=Le===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ae,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ae,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ae,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ae,adjustY:1},htmlRegion:"scroll"}}},le=function(Le,ae){var Re=Le.prefixCls,$e=Le.disabled,He=Le.visible,ut=Le.children,rn=Le.popupElement,on=Le.animation,Ve=Le.transitionName,lt=Le.dropdownStyle,wt=Le.dropdownClassName,Qt=Le.direction,Yt=Qt===void 0?"ltr":Qt,ye=Le.placement,at=Le.builtinPlacements,Lt=Le.dropdownMatchSelectWidth,Dt=Le.dropdownRender,zt=Le.dropdownAlign,an=Le.getPopupContainer,un=Le.empty,sn=Le.getTriggerDOMNode,vn=Le.onPopupVisibleChange,En=Le.onPopupMouseEnter,Rn=(0,g.Z)(Le,Qe),bn="".concat(Re,"-dropdown"),Cn=rn;Dt&&(Cn=Dt(rn));var Bn=x.useMemo(function(){return at||Ne(Lt)},[at,Lt]),Pn=on?"".concat(bn,"-").concat(on):Ve,ir=typeof Lt=="number",In=x.useMemo(function(){return ir?null:Lt===!1?"minWidth":"width"},[Lt,ir]),zn=lt;ir&&(zn=(0,he.Z)((0,he.Z)({},zn),{},{width:Lt}));var Yn=x.useRef(null);return x.useImperativeHandle(ae,function(){return{getPopupElement:function(){var Jn;return(Jn=Yn.current)===null||Jn===void 0?void 0:Jn.popupElement}}}),x.createElement(pt.Z,(0,i.Z)({},Rn,{showAction:vn?["click"]:[],hideAction:vn?["click"]:[],popupPlacement:ye||(Yt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Bn,prefixCls:bn,popupTransitionName:Pn,popup:x.createElement("div",{onMouseEnter:En},Cn),ref:Yn,stretch:In,popupAlign:zt,popupVisible:He,getPopupContainer:an,popupClassName:y()(wt,(0,L.Z)({},"".concat(bn,"-empty"),un)),popupStyle:zn,getTriggerDOMNode:sn,onPopupVisibleChange:vn}),ut)},Pe=x.forwardRef(le),Ge=Pe,j=u(48745);function P(Be,Le){var ae=Be.key,Re;return"value"in Be&&(Re=Be.value),ae!=null?ae:Re!==void 0?Re:"rc-index-key-".concat(Le)}function _e(Be){return typeof Be!="undefined"&&!Number.isNaN(Be)}function Ie(Be,Le){var ae=Be||{},Re=ae.label,$e=ae.value,He=ae.options,ut=ae.groupLabel,rn=Re||(Le?"children":"label");return{label:rn,value:$e||"value",options:He||"options",groupLabel:ut||rn}}function Te(Be){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ae=Le.fieldNames,Re=Le.childrenAsData,$e=[],He=Ie(ae,!1),ut=He.label,rn=He.value,on=He.options,Ve=He.groupLabel;function lt(wt,Qt){Array.isArray(wt)&&wt.forEach(function(Yt){if(Qt||!(on in Yt)){var ye=Yt[rn];$e.push({key:P(Yt,$e.length),groupOption:Qt,data:Yt,label:Yt[ut],value:ye})}else{var at=Yt[Ve];at===void 0&&Re&&(at=Yt.label),$e.push({key:P(Yt,$e.length),group:!0,data:Yt,label:at}),lt(Yt[on],!0)}})}return lt(Be,!1),$e}function ze(Be){var Le=(0,he.Z)({},Be);return"props"in Le||Object.defineProperty(Le,"props",{get:function(){return(0,l.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Le}}),Le}var Ue=function(Le,ae,Re){if(!ae||!ae.length)return null;var $e=!1,He=function rn(on,Ve){var lt=(0,j.Z)(Ve),wt=lt[0],Qt=lt.slice(1);if(!wt)return[on];var Yt=on.split(wt);return $e=$e||Yt.length>1,Yt.reduce(function(ye,at){return[].concat((0,K.Z)(ye),(0,K.Z)(rn(at,Qt)))},[]).filter(Boolean)},ut=He(Le,ae);return $e?typeof Re!="undefined"?ut.slice(0,Re):ut:null},ft=x.createContext(null),de=ft;function xe(Be){var Le=Be.visible,ae=Be.values;if(!Le)return null;var Re=50;return x.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ae.slice(0,Re).map(function($e){var He=$e.label,ut=$e.value;return["number","string"].includes((0,W.Z)(He))?He:ut}).join(", ")),ae.length>Re?", ...":null)}var Ot=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],_t=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Pt=function(Le){return Le==="tags"||Le==="multiple"},kt=x.forwardRef(function(Be,Le){var ae,Re=Be.id,$e=Be.prefixCls,He=Be.className,ut=Be.showSearch,rn=Be.tagRender,on=Be.direction,Ve=Be.omitDomProps,lt=Be.displayValues,wt=Be.onDisplayValuesChange,Qt=Be.emptyOptions,Yt=Be.notFoundContent,ye=Yt===void 0?"Not Found":Yt,at=Be.onClear,Lt=Be.mode,Dt=Be.disabled,zt=Be.loading,an=Be.getInputElement,un=Be.getRawInputElement,sn=Be.open,vn=Be.defaultOpen,En=Be.onDropdownVisibleChange,Rn=Be.activeValue,bn=Be.onActiveValueChange,Cn=Be.activeDescendantId,Bn=Be.searchValue,Pn=Be.autoClearSearchValue,ir=Be.onSearch,In=Be.onSearchSplit,zn=Be.tokenSeparators,Yn=Be.allowClear,tr=Be.prefix,Jn=Be.suffixIcon,qt=Be.clearIcon,tn=Be.OptionList,yn=Be.animation,Zn=Be.transitionName,Ht=Be.dropdownStyle,Un=Be.dropdownClassName,er=Be.dropdownMatchSelectWidth,lr=Be.dropdownRender,_r=Be.dropdownAlign,Ar=Be.placement,Sr=Be.builtinPlacements,Vn=Be.getPopupContainer,An=Be.showAction,pn=An===void 0?[]:An,Tn=Be.onFocus,Xn=Be.onBlur,nr=Be.onKeyUp,gr=Be.onKeyDown,Er=Be.onMouseDown,Fn=(0,g.Z)(Be,Ot),yr=Pt(Lt),Ir=(ut!==void 0?ut:yr)||Lt==="combobox",Zr=(0,he.Z)({},Fn);_t.forEach(function(Ai){delete Zr[Ai]}),Ve==null||Ve.forEach(function(Ai){delete Zr[Ai]});var Nr=x.useState(!1),Lr=(0,Z.Z)(Nr,2),Cr=Lr[0],Fr=Lr[1];x.useEffect(function(){Fr((0,A.Z)())},[]);var Jt=x.useRef(null),On=x.useRef(null),Gn=x.useRef(null),ur=x.useRef(null),xr=x.useRef(null),jr=x.useRef(!1),wr=O(),ni=(0,Z.Z)(wr,3),di=ni[0],Ei=ni[1],Dr=ni[2];x.useImperativeHandle(Le,function(){var Ai,mi;return{focus:(Ai=ur.current)===null||Ai===void 0?void 0:Ai.focus,blur:(mi=ur.current)===null||mi===void 0?void 0:mi.blur,scrollTo:function(La){var Ui;return(Ui=xr.current)===null||Ui===void 0?void 0:Ui.scrollTo(La)},nativeElement:Jt.current||On.current}});var fr=x.useMemo(function(){var Ai;if(Lt!=="combobox")return Bn;var mi=(Ai=lt[0])===null||Ai===void 0?void 0:Ai.value;return typeof mi=="string"||typeof mi=="number"?String(mi):""},[Bn,Lt,lt]),yi=Lt==="combobox"&&typeof an=="function"&&an()||null,sr=typeof un=="function"&&un(),wi=(0,$.x1)(On,sr==null||(ae=sr.props)===null||ae===void 0?void 0:ae.ref),Yi=x.useState(!1),Wi=(0,Z.Z)(Yi,2),Mi=Wi[0],Ni=Wi[1];(0,T.Z)(function(){Ni(!0)},[]);var Vr=(0,Y.Z)(!1,{defaultValue:vn,value:sn}),Di=(0,Z.Z)(Vr,2),ra=Di[0],zi=Di[1],hi=Mi?ra:!1,ki=!ye&&Qt;(Dt||ki&&hi&&Lt==="combobox")&&(hi=!1);var Zi=ki?!1:hi,Br=x.useCallback(function(Ai){var mi=Ai!==void 0?Ai:!hi;Dt||(zi(mi),hi!==mi&&(En==null||En(mi)))},[Dt,hi,zi,En]),ei=x.useMemo(function(){return(zn||[]).some(function(Ai){return[`
|
|
|
`,`\r
|
|
|
`].includes(Ai)})},[zn]),pr=x.useContext(de)||{},vr=pr.maxCount,Pr=pr.rawValues,Wr=function(mi,Aa,La){if(!(yr&&_e(vr)&&(Pr==null?void 0:Pr.size)>=vr)){var Ui=!0,Ea=mi;bn==null||bn(null);var Za=Ue(mi,zn,_e(vr)?vr-Pr.size:void 0),Ua=La?null:Za;return Lt!=="combobox"&&Ua&&(Ea="",In==null||In(Ua),Br(!1),Ui=!1),ir&&fr!==Ea&&ir(Ea,{source:Aa?"typing":"effect"}),Ui}},Ci=function(mi){!mi||!mi.trim()||ir(mi,{source:"submit"})};x.useEffect(function(){!hi&&!yr&&Lt!=="combobox"&&Wr("",!1,!1)},[hi]),x.useEffect(function(){ra&&Dt&&zi(!1),Dt&&!jr.current&&Ei(!1)},[Dt]);var br=I(),Rr=(0,Z.Z)(br,2),Mr=Rr[0],$r=Rr[1],ti=x.useRef(!1),ma=function(mi){var Aa=Mr(),La=mi.key,Ui=La==="Enter";if(Ui&&(Lt!=="combobox"&&mi.preventDefault(),hi||Br(!0)),$r(!!fr),La==="Backspace"&&!Aa&&yr&&!fr&<.length){for(var Ea=(0,K.Z)(lt),Za=null,Ua=Ea.length-1;Ua>=0;Ua-=1){var rs=Ea[Ua];if(!rs.disabled){Ea.splice(Ua,1),Za=rs;break}}Za&&wt(Ea,{type:"remove",values:[Za]})}for(var Pa=arguments.length,ss=new Array(Pa>1?Pa-1:0),Xa=1;Xa<Pa;Xa++)ss[Xa-1]=arguments[Xa];if(hi&&(!Ui||!ti.current)){var fs;Ui&&(ti.current=!0),(fs=xr.current)===null||fs===void 0||fs.onKeyDown.apply(fs,[mi].concat(ss))}gr==null||gr.apply(void 0,[mi].concat(ss))},Xi=function(mi){for(var Aa=arguments.length,La=new Array(Aa>1?Aa-1:0),Ui=1;Ui<Aa;Ui++)La[Ui-1]=arguments[Ui];if(hi){var Ea;(Ea=xr.current)===null||Ea===void 0||Ea.onKeyUp.apply(Ea,[mi].concat(La))}mi.key==="Enter"&&(ti.current=!1),nr==null||nr.apply(void 0,[mi].concat(La))},ua=function(mi){var Aa=lt.filter(function(La){return La!==mi});wt(Aa,{type:"remove",values:[mi]})},fi=function(){ti.current=!1},ri=x.useRef(!1),Ti=function(){Ei(!0),Dt||(Tn&&!ri.current&&Tn.apply(void 0,arguments),pn.includes("focus")&&Br(!0)),ri.current=!0},Oi=function(){jr.current=!0,Ei(!1,function(){ri.current=!1,jr.current=!1,Br(!1)}),!Dt&&(fr&&(Lt==="tags"?ir(fr,{source:"submit"}):Lt==="multiple"&&ir("",{source:"blur"})),Xn&&Xn.apply(void 0,arguments))},ia=[];x.useEffect(function(){return function(){ia.forEach(function(Ai){return clearTimeout(Ai)}),ia.splice(0,ia.length)}},[]);var pa=function(mi){var Aa,La=mi.target,Ui=(Aa=Gn.current)===null||Aa===void 0?void 0:Aa.getPopupElement();if(Ui&&Ui.contains(La)){var Ea=setTimeout(function(){var Pa=ia.indexOf(Ea);if(Pa!==-1&&ia.splice(Pa,1),Dr(),!Cr&&!Ui.contains(document.activeElement)){var ss;(ss=ur.current)===null||ss===void 0||ss.focus()}});ia.push(Ea)}for(var Za=arguments.length,Ua=new Array(Za>1?Za-1:0),rs=1;rs<Za;rs++)Ua[rs-1]=arguments[rs];Er==null||Er.apply(void 0,[mi].concat(Ua))},Sa=x.useState({}),Da=(0,Z.Z)(Sa,2),Wa=Da[1];function Ta(){Wa({})}var vs;sr&&(vs=function(mi){Br(mi)}),ue(function(){var Ai;return[Jt.current,(Ai=Gn.current)===null||Ai===void 0?void 0:Ai.getPopupElement()]},Zi,Br,!!sr);var Cs=x.useMemo(function(){return(0,he.Z)((0,he.Z)({},Be),{},{notFoundContent:ye,open:hi,triggerOpen:Zi,id:Re,showSearch:Ir,multiple:yr,toggleOpen:Br})},[Be,ye,Zi,hi,Re,Ir,yr,Br]),Ds=!!Jn||zt,$a;Ds&&($a=x.createElement(X,{className:y()("".concat($e,"-arrow"),(0,L.Z)({},"".concat($e,"-arrow-loading"),zt)),customizeIcon:Jn,customizeIconProps:{loading:zt,searchValue:fr,open:hi,focused:di,showSearch:Ir}}));var Rs=function(){var mi;at==null||at(),(mi=ur.current)===null||mi===void 0||mi.focus(),wt([],{type:"clear",values:lt}),Wr("",!1,!1)},za=V($e,Rs,lt,Yn,qt,Dt,fr,Lt),Fs=za.allowClear,$s=za.clearIcon,Ws=x.createElement(tn,{ref:xr}),Vs=y()($e,He,(0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)({},"".concat($e,"-focused"),di),"".concat($e,"-multiple"),yr),"".concat($e,"-single"),!yr),"".concat($e,"-allow-clear"),Yn),"".concat($e,"-show-arrow"),Ds),"".concat($e,"-disabled"),Dt),"".concat($e,"-loading"),zt),"".concat($e,"-open"),hi),"".concat($e,"-customize-input"),yi),"".concat($e,"-show-search"),Ir)),ds=x.createElement(Ge,{ref:Gn,disabled:Dt,prefixCls:$e,visible:Zi,popupElement:Ws,animation:yn,transitionName:Zn,dropdownStyle:Ht,dropdownClassName:Un,direction:on,dropdownMatchSelectWidth:er,dropdownRender:lr,dropdownAlign:_r,placement:Ar,builtinPlacements:Sr,getPopupContainer:Vn,empty:Qt,getTriggerDOMNode:function(mi){return On.current||mi},onPopupVisibleChange:vs,onPopupMouseEnter:Ta},sr?x.cloneElement(sr,{ref:wi}):x.createElement(vt,(0,i.Z)({},Be,{domRef:On,prefixCls:$e,inputElement:yi,ref:ur,id:Re,prefix:tr,showSearch:Ir,autoClearSearchValue:Pn,mode:Lt,activeDescendantId:Cn,tagRender:rn,values:lt,open:hi,onToggleOpen:Br,activeValue:Rn,searchValue:fr,onSearch:Wr,onSearchSubmit:Ci,onRemove:ua,tokenWithEnter:ei,onInputBlur:fi}))),Ya;return sr?Ya=ds:Ya=x.createElement("div",(0,i.Z)({className:Vs},Zr,{ref:Jt,onMouseDown:pa,onKeyDown:ma,onKeyUp:Xi,onFocus:Ti,onBlur:Oi}),x.createElement(xe,{visible:di&&!hi,values:lt}),ds,$a,Fs&&$s),x.createElement(R.Provider,{value:Cs},Ya)}),mt=kt,Vt=function(){return null};Vt.isSelectOptGroup=!0;var Nt=Vt,De=function(){return null};De.isSelectOption=!0;var gt=De,E=u(80547),S=u(2738),je=u(48911);function G(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ce=["disabled","title","children","style","className"];function en(Be){return typeof Be=="string"||typeof Be=="number"}var rt=function(Le,ae){var Re=Q(),$e=Re.prefixCls,He=Re.id,ut=Re.open,rn=Re.multiple,on=Re.mode,Ve=Re.searchValue,lt=Re.toggleOpen,wt=Re.notFoundContent,Qt=Re.onPopupScroll,Yt=x.useContext(de),ye=Yt.maxCount,at=Yt.flattenOptions,Lt=Yt.onActiveValue,Dt=Yt.defaultActiveFirstOption,zt=Yt.onSelect,an=Yt.menuItemSelectedIcon,un=Yt.rawValues,sn=Yt.fieldNames,vn=Yt.virtual,En=Yt.direction,Rn=Yt.listHeight,bn=Yt.listItemHeight,Cn=Yt.optionRender,Bn="".concat($e,"-item"),Pn=(0,E.Z)(function(){return at},[ut,at],function(An,pn){return pn[0]&&An[1]!==pn[1]}),ir=x.useRef(null),In=x.useMemo(function(){return rn&&_e(ye)&&(un==null?void 0:un.size)>=ye},[rn,ye,un==null?void 0:un.size]),zn=function(pn){pn.preventDefault()},Yn=function(pn){var Tn;(Tn=ir.current)===null||Tn===void 0||Tn.scrollTo(typeof pn=="number"?{index:pn}:pn)},tr=x.useCallback(function(An){return on==="combobox"?!1:un.has(An)},[on,(0,K.Z)(un).toString(),un.size]),Jn=function(pn){for(var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xn=Pn.length,nr=0;nr<Xn;nr+=1){var gr=(pn+nr*Tn+Xn)%Xn,Er=Pn[gr]||{},Fn=Er.group,yr=Er.data;if(!Fn&&!(yr!=null&&yr.disabled)&&(tr(yr.value)||!In))return gr}return-1},qt=x.useState(function(){return Jn(0)}),tn=(0,Z.Z)(qt,2),yn=tn[0],Zn=tn[1],Ht=function(pn){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Zn(pn);var Xn={source:Tn?"keyboard":"mouse"},nr=Pn[pn];if(!nr){Lt(null,-1,Xn);return}Lt(nr.value,pn,Xn)};(0,x.useEffect)(function(){Ht(Dt!==!1?Jn(0):-1)},[Pn.length,Ve]);var Un=x.useCallback(function(An){return on==="combobox"?String(An).toLowerCase()===Ve.toLowerCase():un.has(An)},[on,Ve,(0,K.Z)(un).toString(),un.size]);(0,x.useEffect)(function(){var An=setTimeout(function(){if(!rn&&ut&&un.size===1){var Tn=Array.from(un)[0],Xn=Pn.findIndex(function(nr){var gr=nr.data;return Ve?String(gr.value).startsWith(Ve):gr.value===Tn});Xn!==-1&&(Ht(Xn),Yn(Xn))}});if(ut){var pn;(pn=ir.current)===null||pn===void 0||pn.scrollTo(void 0)}return function(){return clearTimeout(An)}},[ut,Ve]);var er=function(pn){pn!==void 0&&zt(pn,{selected:!un.has(pn)}),rn||lt(!1)};if(x.useImperativeHandle(ae,function(){return{onKeyDown:function(pn){var Tn=pn.which,Xn=pn.ctrlKey;switch(Tn){case Se.Z.N:case Se.Z.P:case Se.Z.UP:case Se.Z.DOWN:{var nr=0;if(Tn===Se.Z.UP?nr=-1:Tn===Se.Z.DOWN?nr=1:G()&&Xn&&(Tn===Se.Z.N?nr=1:Tn===Se.Z.P&&(nr=-1)),nr!==0){var gr=Jn(yn+nr,nr);Yn(gr),Ht(gr,!0)}break}case Se.Z.TAB:case Se.Z.ENTER:{var Er,Fn=Pn[yn];Fn&&!(Fn!=null&&(Er=Fn.data)!==null&&Er!==void 0&&Er.disabled)&&!In?er(Fn.value):er(void 0),ut&&pn.preventDefault();break}case Se.Z.ESC:lt(!1),ut&&pn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pn){Yn(pn)}}}),Pn.length===0)return x.createElement("div",{role:"listbox",id:"".concat(He,"_list"),className:"".concat(Bn,"-empty"),onMouseDown:zn},wt);var lr=Object.keys(sn).map(function(An){return sn[An]}),_r=function(pn){return pn.label};function Ar(An,pn){var Tn=An.group;return{role:Tn?"presentation":"option",id:"".concat(He,"_list_").concat(pn)}}var Sr=function(pn){var Tn=Pn[pn];if(!Tn)return null;var Xn=Tn.data||{},nr=Xn.value,gr=Tn.group,Er=(0,Ke.Z)(Xn,!0),Fn=_r(Tn);return Tn?x.createElement("div",(0,i.Z)({"aria-label":typeof Fn=="string"&&!gr?Fn:null},Er,{key:pn},Ar(Tn,pn),{"aria-selected":Un(nr)}),nr):null},Vn={role:"listbox",id:"".concat(He,"_list")};return x.createElement(x.Fragment,null,vn&&x.createElement("div",(0,i.Z)({},Vn,{style:{height:0,width:0,overflow:"hidden"}}),Sr(yn-1),Sr(yn),Sr(yn+1)),x.createElement(je.Z,{itemKey:"key",ref:ir,data:Pn,height:Rn,itemHeight:bn,fullHeight:!1,onMouseDown:zn,onScroll:Qt,virtual:vn,direction:En,innerProps:vn?null:Vn},function(An,pn){var Tn=An.group,Xn=An.groupOption,nr=An.data,gr=An.label,Er=An.value,Fn=nr.key;if(Tn){var yr,Ir=(yr=nr.title)!==null&&yr!==void 0?yr:en(gr)?gr.toString():void 0;return x.createElement("div",{className:y()(Bn,"".concat(Bn,"-group"),nr.className),title:Ir},gr!==void 0?gr:Fn)}var Zr=nr.disabled,Nr=nr.title,Lr=nr.children,Cr=nr.style,Fr=nr.className,Jt=(0,g.Z)(nr,Ce),On=(0,S.Z)(Jt,lr),Gn=tr(Er),ur=Zr||!Gn&&In,xr="".concat(Bn,"-option"),jr=y()(Bn,xr,Fr,(0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)({},"".concat(xr,"-grouped"),Xn),"".concat(xr,"-active"),yn===pn&&!ur),"".concat(xr,"-disabled"),ur),"".concat(xr,"-selected"),Gn)),wr=_r(An),ni=!an||typeof an=="function"||Gn,di=typeof wr=="number"?wr:wr||Er,Ei=en(di)?di.toString():void 0;return Nr!==void 0&&(Ei=Nr),x.createElement("div",(0,i.Z)({},(0,Ke.Z)(On),vn?{}:Ar(An,pn),{"aria-selected":Un(Er),className:jr,title:Ei,onMouseMove:function(){yn===pn||ur||Ht(pn)},onClick:function(){ur||er(Er)},style:Cr}),x.createElement("div",{className:"".concat(xr,"-content")},typeof Cn=="function"?Cn(An,{index:pn}):di),x.isValidElement(an)||Gn,ni&&x.createElement(X,{className:"".concat(Bn,"-option-state"),customizeIcon:an,customizeIconProps:{value:Er,disabled:ur,isSelected:Gn}},Gn?"\u2713":null))}))},st=x.forwardRef(rt),xt=st,pe=function(Be,Le){var ae=x.useRef({values:new Map,options:new Map}),Re=x.useMemo(function(){var He=ae.current,ut=He.values,rn=He.options,on=Be.map(function(wt){if(wt.label===void 0){var Qt;return(0,he.Z)((0,he.Z)({},wt),{},{label:(Qt=ut.get(wt.value))===null||Qt===void 0?void 0:Qt.label})}return wt}),Ve=new Map,lt=new Map;return on.forEach(function(wt){Ve.set(wt.value,wt),lt.set(wt.value,Le.get(wt.value)||rn.get(wt.value))}),ae.current.values=Ve,ae.current.options=lt,on},[Be,Le]),$e=x.useCallback(function(He){return Le.get(He)||ae.current.options.get(He)},[Le]);return[Re,$e]};function Ee(Be,Le){return ne(Be).join("").toUpperCase().includes(Le)}var nt=function(Be,Le,ae,Re,$e){return x.useMemo(function(){if(!ae||Re===!1)return Be;var He=Le.options,ut=Le.label,rn=Le.value,on=[],Ve=typeof Re=="function",lt=ae.toUpperCase(),wt=Ve?Re:function(Yt,ye){return $e?Ee(ye[$e],lt):ye[He]?Ee(ye[ut!=="children"?ut:"label"],lt):Ee(ye[rn],lt)},Qt=Ve?function(Yt){return ze(Yt)}:function(Yt){return Yt};return Be.forEach(function(Yt){if(Yt[He]){var ye=wt(ae,Qt(Yt));if(ye)on.push(Yt);else{var at=Yt[He].filter(function(Lt){return wt(ae,Qt(Lt))});at.length&&on.push((0,he.Z)((0,he.Z)({},Yt),{},(0,L.Z)({},He,at)))}return}wt(ae,Qt(Yt))&&on.push(Yt)}),on},[Be,Re,$e,ae,Le])},Ze=u(6551),z=u(11592),St=["children","value"],fe=["children"];function Kt(Be){var Le=Be,ae=Le.key,Re=Le.props,$e=Re.children,He=Re.value,ut=(0,g.Z)(Re,St);return(0,he.Z)({key:ae,value:He!==void 0?He:ae,children:$e},ut)}function dn(Be){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,z.Z)(Be).map(function(ae,Re){if(!x.isValidElement(ae)||!ae.type)return null;var $e=ae,He=$e.type.isSelectOptGroup,ut=$e.key,rn=$e.props,on=rn.children,Ve=(0,g.Z)(rn,fe);return Le||!He?Kt(ae):(0,he.Z)((0,he.Z)({key:"__RC_SELECT_GRP__".concat(ut===null?Re:ut,"__"),label:ut},Ve),{},{options:dn(on)})}).filter(function(ae){return ae})}var Bt=function(Le,ae,Re,$e,He){return x.useMemo(function(){var ut=Le,rn=!Le;rn&&(ut=dn(ae));var on=new Map,Ve=new Map,lt=function(Yt,ye,at){at&&typeof at=="string"&&Yt.set(ye[at],ye)},wt=function Qt(Yt){for(var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=0;at<Yt.length;at+=1){var Lt=Yt[at];!Lt[Re.options]||ye?(on.set(Lt[Re.value],Lt),lt(Ve,Lt,Re.label),lt(Ve,Lt,$e),lt(Ve,Lt,He)):Qt(Lt[Re.options],!0)}};return wt(ut),{options:ut,valueOptions:on,labelOptions:Ve}},[Le,ae,Re,$e,He])},J=Bt;function we(Be){var Le=x.useRef();Le.current=Be;var ae=x.useCallback(function(){return Le.current.apply(Le,arguments)},[]);return ae}function M(Be){var Le=Be.mode,ae=Be.options,Re=Be.children,$e=Be.backfill,He=Be.allowClear,ut=Be.placeholder,rn=Be.getInputElement,on=Be.showSearch,Ve=Be.onSearch,lt=Be.defaultOpen,wt=Be.autoFocus,Qt=Be.labelInValue,Yt=Be.value,ye=Be.inputValue,at=Be.optionLabelProp,Lt=isMultiple(Le),Dt=on!==void 0?on:Lt||Le==="combobox",zt=ae||convertChildrenToData(Re);if(warning(Le!=="tags"||zt.every(function(vn){return!vn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Le==="tags"||Le==="combobox"){var an=zt.some(function(vn){return vn.options?vn.options.some(function(En){return typeof("value"in En?En.value:En.key)=="number"}):typeof("value"in vn?vn.value:vn.key)=="number"});warning(!an,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Le!=="combobox"||!at,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Le==="combobox"||!$e,"`backfill` only works with `combobox` mode."),warning(Le==="combobox"||!rn,"`getInputElement` only work with `combobox` mode."),noteOnce(Le!=="combobox"||!rn||!He||!ut,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ve&&!Dt&&Le!=="combobox"&&Le!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!lt||wt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Yt!=null){var un=toArray(Yt);warning(!Qt||un.every(function(vn){return _typeof(vn)==="object"&&("key"in vn||"value"in vn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Lt||Array.isArray(Yt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Re){var sn=null;toNodeArray(Re).some(function(vn){if(!React.isValidElement(vn)||!vn.type)return!1;var En=vn,Rn=En.type;if(Rn.isSelectOption)return!1;if(Rn.isSelectOptGroup){var bn=toNodeArray(vn.props.children).every(function(Cn){return!React.isValidElement(Cn)||!vn.type||Cn.type.isSelectOption?!0:(sn=Cn.type,!1)});return!bn}return sn=Rn,!0}),sn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(sn.displayName||sn.name||sn,"`.")),warning(ye===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ct(Be,Le){if(Be){var ae=function Re($e){for(var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=0;ut<$e.length;ut++){var rn=$e[ut];if(rn[Le==null?void 0:Le.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!He&&Array.isArray(rn[Le==null?void 0:Le.options])&&Re(rn[Le==null?void 0:Le.options],!0))break}};ae(Be)}}var ot=null,dt=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],$t=["inputValue"];function Ft(Be){return!Be||(0,W.Z)(Be)!=="object"}var Mt=x.forwardRef(function(Be,Le){var ae=Be.id,Re=Be.mode,$e=Be.prefixCls,He=$e===void 0?"rc-select":$e,ut=Be.backfill,rn=Be.fieldNames,on=Be.inputValue,Ve=Be.searchValue,lt=Be.onSearch,wt=Be.autoClearSearchValue,Qt=wt===void 0?!0:wt,Yt=Be.onSelect,ye=Be.onDeselect,at=Be.dropdownMatchSelectWidth,Lt=at===void 0?!0:at,Dt=Be.filterOption,zt=Be.filterSort,an=Be.optionFilterProp,un=Be.optionLabelProp,sn=Be.options,vn=Be.optionRender,En=Be.children,Rn=Be.defaultActiveFirstOption,bn=Be.menuItemSelectedIcon,Cn=Be.virtual,Bn=Be.direction,Pn=Be.listHeight,ir=Pn===void 0?200:Pn,In=Be.listItemHeight,zn=In===void 0?20:In,Yn=Be.labelRender,tr=Be.value,Jn=Be.defaultValue,qt=Be.labelInValue,tn=Be.onChange,yn=Be.maxCount,Zn=(0,g.Z)(Be,dt),Ht=(0,Ze.ZP)(ae),Un=Pt(Re),er=!!(!sn&&En),lr=x.useMemo(function(){return Dt===void 0&&Re==="combobox"?!1:Dt},[Dt,Re]),_r=x.useMemo(function(){return Ie(rn,er)},[JSON.stringify(rn),er]),Ar=(0,Y.Z)("",{value:Ve!==void 0?Ve:on,postState:function(ei){return ei||""}}),Sr=(0,Z.Z)(Ar,2),Vn=Sr[0],An=Sr[1],pn=J(sn,En,_r,an,un),Tn=pn.valueOptions,Xn=pn.labelOptions,nr=pn.options,gr=x.useCallback(function(Br){var ei=ne(Br);return ei.map(function(pr){var vr,Pr,Wr,Ci,br;if(Ft(pr))vr=pr;else{var Rr;Wr=pr.key,Pr=pr.label,vr=(Rr=pr.value)!==null&&Rr!==void 0?Rr:Wr}var Mr=Tn.get(vr);if(Mr){var $r;if(Pr===void 0&&(Pr=Mr==null?void 0:Mr[un||_r.label]),Wr===void 0&&(Wr=($r=Mr==null?void 0:Mr.key)!==null&&$r!==void 0?$r:vr),Ci=Mr==null?void 0:Mr.disabled,br=Mr==null?void 0:Mr.title,0)var ti}return{label:Pr,value:vr,key:Wr,disabled:Ci,title:br}})},[_r,un,Tn]),Er=(0,Y.Z)(Jn,{value:tr}),Fn=(0,Z.Z)(Er,2),yr=Fn[0],Ir=Fn[1],Zr=x.useMemo(function(){var Br,ei=Un&&yr===null?[]:yr,pr=gr(ei);return Re==="combobox"&&ce((Br=pr[0])===null||Br===void 0?void 0:Br.value)?[]:pr},[yr,gr,Re,Un]),Nr=pe(Zr,Tn),Lr=(0,Z.Z)(Nr,2),Cr=Lr[0],Fr=Lr[1],Jt=x.useMemo(function(){if(!Re&&Cr.length===1){var Br=Cr[0];if(Br.value===null&&(Br.label===null||Br.label===void 0))return[]}return Cr.map(function(ei){var pr;return(0,he.Z)((0,he.Z)({},ei),{},{label:(pr=typeof Yn=="function"?Yn(ei):ei.label)!==null&&pr!==void 0?pr:ei.value})})},[Re,Cr,Yn]),On=x.useMemo(function(){return new Set(Cr.map(function(Br){return Br.value}))},[Cr]);x.useEffect(function(){if(Re==="combobox"){var Br,ei=(Br=Cr[0])===null||Br===void 0?void 0:Br.value;An(D(ei)?String(ei):"")}},[Cr]);var Gn=we(function(Br,ei){var pr=ei!=null?ei:Br;return(0,L.Z)((0,L.Z)({},_r.value,Br),_r.label,pr)}),ur=x.useMemo(function(){if(Re!=="tags")return nr;var Br=(0,K.Z)(nr),ei=function(vr){return Tn.has(vr)};return(0,K.Z)(Cr).sort(function(pr,vr){return pr.value<vr.value?-1:1}).forEach(function(pr){var vr=pr.value;ei(vr)||Br.push(Gn(vr,pr.label))}),Br},[Gn,nr,Tn,Cr,Re]),xr=nt(ur,_r,Vn,lr,an),jr=x.useMemo(function(){return Re!=="tags"||!Vn||xr.some(function(Br){return Br[an||"value"]===Vn})||xr.some(function(Br){return Br[_r.value]===Vn})?xr:[Gn(Vn)].concat((0,K.Z)(xr))},[Gn,an,Re,xr,Vn,_r]),wr=function Br(ei){var pr=(0,K.Z)(ei).sort(function(vr,Pr){return zt(vr,Pr,{searchValue:Vn})});return pr.map(function(vr){return Array.isArray(vr.options)?(0,he.Z)((0,he.Z)({},vr),{},{options:vr.options.length>0?Br(vr.options):vr.options}):vr})},ni=x.useMemo(function(){return zt?wr(jr):jr},[jr,zt,Vn]),di=x.useMemo(function(){return Te(ni,{fieldNames:_r,childrenAsData:er})},[ni,_r,er]),Ei=function(ei){var pr=gr(ei);if(Ir(pr),tn&&(pr.length!==Cr.length||pr.some(function(Wr,Ci){var br;return((br=Cr[Ci])===null||br===void 0?void 0:br.value)!==(Wr==null?void 0:Wr.value)}))){var vr=qt?pr:pr.map(function(Wr){return Wr.value}),Pr=pr.map(function(Wr){return ze(Fr(Wr.value))});tn(Un?vr:vr[0],Un?Pr:Pr[0])}},Dr=x.useState(null),fr=(0,Z.Z)(Dr,2),yi=fr[0],sr=fr[1],wi=x.useState(0),Yi=(0,Z.Z)(wi,2),Wi=Yi[0],Mi=Yi[1],Ni=Rn!==void 0?Rn:Re!=="combobox",Vr=x.useCallback(function(Br,ei){var pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},vr=pr.source,Pr=vr===void 0?"keyboard":vr;Mi(ei),ut&&Re==="combobox"&&Br!==null&&Pr==="keyboard"&&sr(String(Br))},[ut,Re]),Di=function(ei,pr,vr){var Pr=function(){var ua,fi=Fr(ei);return[qt?{label:fi==null?void 0:fi[_r.label],value:ei,key:(ua=fi==null?void 0:fi.key)!==null&&ua!==void 0?ua:ei}:ei,ze(fi)]};if(pr&&Yt){var Wr=Pr(),Ci=(0,Z.Z)(Wr,2),br=Ci[0],Rr=Ci[1];Yt(br,Rr)}else if(!pr&&ye&&vr!=="clear"){var Mr=Pr(),$r=(0,Z.Z)(Mr,2),ti=$r[0],ma=$r[1];ye(ti,ma)}},ra=we(function(Br,ei){var pr,vr=Un?ei.selected:!0;vr?pr=Un?[].concat((0,K.Z)(Cr),[Br]):[Br]:pr=Cr.filter(function(Pr){return Pr.value!==Br}),Ei(pr),Di(Br,vr),Re==="combobox"?sr(""):(!Pt||Qt)&&(An(""),sr(""))}),zi=function(ei,pr){Ei(ei);var vr=pr.type,Pr=pr.values;(vr==="remove"||vr==="clear")&&Pr.forEach(function(Wr){Di(Wr.value,!1,vr)})},hi=function(ei,pr){if(An(ei),sr(null),pr.source==="submit"){var vr=(ei||"").trim();if(vr){var Pr=Array.from(new Set([].concat((0,K.Z)(On),[vr])));Ei(Pr),Di(vr,!0),An("")}return}pr.source!=="blur"&&(Re==="combobox"&&Ei(ei),lt==null||lt(ei))},ki=function(ei){var pr=ei;Re!=="tags"&&(pr=ei.map(function(Pr){var Wr=Xn.get(Pr);return Wr==null?void 0:Wr.value}).filter(function(Pr){return Pr!==void 0}));var vr=Array.from(new Set([].concat((0,K.Z)(On),(0,K.Z)(pr))));Ei(vr),vr.forEach(function(Pr){Di(Pr,!0)})},Zi=x.useMemo(function(){var Br=Cn!==!1&&Lt!==!1;return(0,he.Z)((0,he.Z)({},pn),{},{flattenOptions:di,onActiveValue:Vr,defaultActiveFirstOption:Ni,onSelect:ra,menuItemSelectedIcon:bn,rawValues:On,fieldNames:_r,virtual:Br,direction:Bn,listHeight:ir,listItemHeight:zn,childrenAsData:er,maxCount:yn,optionRender:vn})},[yn,pn,di,Vr,Ni,ra,bn,On,_r,Cn,Lt,Bn,ir,zn,er,vn]);return x.createElement(de.Provider,{value:Zi},x.createElement(mt,(0,i.Z)({},Zn,{id:Ht,prefixCls:He,ref:Le,omitDomProps:$t,mode:Re,displayValues:Jt,onDisplayValuesChange:zi,direction:Bn,searchValue:Vn,onSearch:hi,autoClearSearchValue:Qt,onSearchSplit:ki,dropdownMatchSelectWidth:Lt,OptionList:xt,emptyOptions:!di.length,activeValue:yi,activeDescendantId:"".concat(Ht,"_list_").concat(Wi)})))}),ie=Mt;ie.Option=gt,ie.OptGroup=Nt;var ve=ie,At=ve},22711:function($n,Rt,u){"use strict";u.r(Rt),u.d(Rt,{ResizableTextArea:function(){return We},default:function(){return ee}});var i=u(60499),K=u(18642),L=u(85899),he=u(77654),Z=u(72190),g=u(42244),W=u(92310),Y=u.n(W),l=u(36901),x=u(66003),N=u(30292),y=u(18929),T=u(59301),A=u(43749),$=u(29301),H=u(34280),X=u(16089),V=`
|
|
|
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;
|
|
|
`,R=["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"],Q={},O;function I(ne){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=ne.getAttribute("id")||ne.getAttribute("data-reactid")||ne.getAttribute("name");if(se&&Q[w])return Q[w];var D=window.getComputedStyle(ne),ce=D.getPropertyValue("box-sizing")||D.getPropertyValue("-moz-box-sizing")||D.getPropertyValue("-webkit-box-sizing"),Oe=parseFloat(D.getPropertyValue("padding-bottom"))+parseFloat(D.getPropertyValue("padding-top")),ct=parseFloat(D.getPropertyValue("border-bottom-width"))+parseFloat(D.getPropertyValue("border-top-width")),Tt=R.map(function(qe){return"".concat(qe,":").concat(D.getPropertyValue(qe))}).join(";"),Ae={sizingStyle:Tt,paddingSize:Oe,borderSize:ct,boxSizing:ce};return se&&w&&(Q[w]=Ae),Ae}function ue(ne){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;O||(O=document.createElement("textarea"),O.setAttribute("tab-index","-1"),O.setAttribute("aria-hidden","true"),O.setAttribute("name","hiddenTextarea"),document.body.appendChild(O)),ne.getAttribute("wrap")?O.setAttribute("wrap",ne.getAttribute("wrap")):O.removeAttribute("wrap");var ce=I(ne,se),Oe=ce.paddingSize,ct=ce.borderSize,Tt=ce.boxSizing,Ae=ce.sizingStyle;O.setAttribute("style","".concat(Ae,";").concat(V)),O.value=ne.value||ne.placeholder||"";var qe=void 0,ht=void 0,tt,Fe=O.scrollHeight;if(Tt==="border-box"?Fe+=ct:Tt==="content-box"&&(Fe-=Oe),w!==null||D!==null){O.value=" ";var jt=O.scrollHeight-Oe;w!==null&&(qe=jt*w,Tt==="border-box"&&(qe=qe+Oe+ct),Fe=Math.max(qe,Fe)),D!==null&&(ht=jt*D,Tt==="border-box"&&(ht=ht+Oe+ct),tt=Fe>ht?"":"hidden",Fe=Math.min(ht,Fe))}var bt={height:Fe,overflowY:tt,resize:"none"};return qe&&(bt.minHeight=qe),ht&&(bt.maxHeight=ht),bt}var Se=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],me=0,Ke=1,Je=2,ke=T.forwardRef(function(ne,se){var w=ne,D=w.prefixCls,ce=w.defaultValue,Oe=w.value,ct=w.autoSize,Tt=w.onResize,Ae=w.className,qe=w.style,ht=w.disabled,tt=w.onChange,Fe=w.onInternalAutoSize,jt=(0,g.Z)(w,Se),bt=(0,y.Z)(ce,{value:Oe,postState:function(gt){return gt!=null?gt:""}}),cn=(0,Z.Z)(bt,2),vt=cn[0],pt=cn[1],Qe=function(gt){pt(gt.target.value),tt==null||tt(gt)},Ne=T.useRef();T.useImperativeHandle(se,function(){return{textArea:Ne.current}});var le=T.useMemo(function(){return ct&&(0,A.Z)(ct)==="object"?[ct.minRows,ct.maxRows]:[]},[ct]),Pe=(0,Z.Z)(le,2),Ge=Pe[0],j=Pe[1],P=!!ct,_e=function(){try{if(document.activeElement===Ne.current){var gt=Ne.current,E=gt.selectionStart,S=gt.selectionEnd,je=gt.scrollTop;Ne.current.setSelectionRange(E,S),Ne.current.scrollTop=je}}catch(G){}},Ie=T.useState(Je),Te=(0,Z.Z)(Ie,2),ze=Te[0],Ue=Te[1],ft=T.useState(),de=(0,Z.Z)(ft,2),xe=de[0],Ot=de[1],_t=function(){Ue(me)};(0,H.Z)(function(){P&&_t()},[Oe,Ge,j,P]),(0,H.Z)(function(){if(ze===me)Ue(Ke);else if(ze===Ke){var De=ue(Ne.current,!1,Ge,j);Ue(Je),Ot(De)}else _e()},[ze]);var Pt=T.useRef(),kt=function(){X.Z.cancel(Pt.current)},mt=function(gt){ze===Je&&(Tt==null||Tt(gt),ct&&(kt(),Pt.current=(0,X.Z)(function(){_t()})))};T.useEffect(function(){return kt},[]);var Vt=P?xe:null,Nt=(0,L.Z)((0,L.Z)({},qe),Vt);return(ze===me||ze===Ke)&&(Nt.overflowY="hidden",Nt.overflowX="hidden"),T.createElement($.Z,{onResize:mt,disabled:!(ct||Tt)},T.createElement("textarea",(0,i.Z)({},jt,{ref:Ne,style:Nt,className:Y()(D,Ae,(0,K.Z)({},"".concat(D,"-disabled"),ht)),disabled:ht,value:vt,onChange:Qe})))}),We=ke,oe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],k=T.forwardRef(function(ne,se){var w,D=ne.defaultValue,ce=ne.value,Oe=ne.onFocus,ct=ne.onBlur,Tt=ne.onChange,Ae=ne.allowClear,qe=ne.maxLength,ht=ne.onCompositionStart,tt=ne.onCompositionEnd,Fe=ne.suffix,jt=ne.prefixCls,bt=jt===void 0?"rc-textarea":jt,cn=ne.showCount,vt=ne.count,pt=ne.className,Qe=ne.style,Ne=ne.disabled,le=ne.hidden,Pe=ne.classNames,Ge=ne.styles,j=ne.onResize,P=ne.onClear,_e=ne.onPressEnter,Ie=ne.readOnly,Te=ne.autoSize,ze=ne.onKeyDown,Ue=(0,g.Z)(ne,oe),ft=(0,y.Z)(D,{value:ce,defaultValue:D}),de=(0,Z.Z)(ft,2),xe=de[0],Ot=de[1],_t=xe==null?"":String(xe),Pt=T.useState(!1),kt=(0,Z.Z)(Pt,2),mt=kt[0],Vt=kt[1],Nt=T.useRef(!1),De=T.useState(null),gt=(0,Z.Z)(De,2),E=gt[0],S=gt[1],je=(0,T.useRef)(null),G=(0,T.useRef)(null),Ce=function(){var ie;return(ie=G.current)===null||ie===void 0?void 0:ie.textArea},en=function(){Ce().focus()};(0,T.useImperativeHandle)(se,function(){var Mt;return{resizableTextArea:G.current,focus:en,blur:function(){Ce().blur()},nativeElement:((Mt=je.current)===null||Mt===void 0?void 0:Mt.nativeElement)||Ce()}}),(0,T.useEffect)(function(){Vt(function(Mt){return!Ne&&Mt})},[Ne]);var rt=T.useState(null),st=(0,Z.Z)(rt,2),xt=st[0],pe=st[1];T.useEffect(function(){if(xt){var Mt;(Mt=Ce()).setSelectionRange.apply(Mt,(0,he.Z)(xt))}},[xt]);var Ee=(0,x.Z)(vt,cn),nt=(w=Ee.max)!==null&&w!==void 0?w:qe,Ze=Number(nt)>0,z=Ee.strategy(_t),St=!!nt&&z>nt,fe=function(ie,ve){var At=ve;!Nt.current&&Ee.exceedFormatter&&Ee.max&&Ee.strategy(ve)>Ee.max&&(At=Ee.exceedFormatter(ve,{max:Ee.max}),ve!==At&&pe([Ce().selectionStart||0,Ce().selectionEnd||0])),Ot(At),(0,N.rJ)(ie.currentTarget,ie,Tt,At)},Kt=function(ie){Nt.current=!0,ht==null||ht(ie)},dn=function(ie){Nt.current=!1,fe(ie,ie.currentTarget.value),tt==null||tt(ie)},Bt=function(ie){fe(ie,ie.target.value)},J=function(ie){ie.key==="Enter"&&_e&&_e(ie),ze==null||ze(ie)},we=function(ie){Vt(!0),Oe==null||Oe(ie)},M=function(ie){Vt(!1),ct==null||ct(ie)},Ct=function(ie){Ot(""),en(),(0,N.rJ)(Ce(),ie,Tt)},ot=Fe,dt;Ee.show&&(Ee.showFormatter?dt=Ee.showFormatter({value:_t,count:z,maxLength:nt}):dt="".concat(z).concat(Ze?" / ".concat(nt):""),ot=T.createElement(T.Fragment,null,ot,T.createElement("span",{className:Y()("".concat(bt,"-data-count"),Pe==null?void 0:Pe.count),style:Ge==null?void 0:Ge.count},dt)));var $t=function(ie){var ve;j==null||j(ie),(ve=Ce())!==null&&ve!==void 0&&ve.style.height&&S(!0)},Ft=!Te&&!cn&&!Ae;return T.createElement(l.BaseInput,{ref:je,value:_t,allowClear:Ae,handleReset:Ct,suffix:ot,prefixCls:bt,classNames:(0,L.Z)((0,L.Z)({},Pe),{},{affixWrapper:Y()(Pe==null?void 0:Pe.affixWrapper,(0,K.Z)((0,K.Z)({},"".concat(bt,"-show-count"),cn),"".concat(bt,"-textarea-allow-clear"),Ae))}),disabled:Ne,focused:mt,className:Y()(pt,St&&"".concat(bt,"-out-of-range")),style:(0,L.Z)((0,L.Z)({},Qe),E&&!Ft?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof dt=="string"?dt:void 0}},hidden:le,readOnly:Ie,onClear:P},T.createElement(We,(0,i.Z)({},Ue,{autoSize:Te,maxLength:qe,onKeyDown:J,onChange:Bt,onFocus:we,onBlur:M,onCompositionStart:Kt,onCompositionEnd:dn,className:Y()(Pe==null?void 0:Pe.textarea),style:(0,L.Z)((0,L.Z)({},Ge==null?void 0:Ge.textarea),{},{resize:Qe==null?void 0:Qe.resize}),disabled:Ne,prefixCls:bt,onResize:$t,ref:G,readOnly:Ie})))}),_=k,ee=_},29125:function($n,Rt,u){"use strict";u.d(Rt,{G:function(){return he},Z:function(){return V}});var i=u(92310),K=u.n(i),L=u(59301);function he(R){var Q=R.children,O=R.prefixCls,I=R.id,ue=R.overlayInnerStyle,Se=R.bodyClassName,me=R.className,Ke=R.style;return L.createElement("div",{className:K()("".concat(O,"-content"),me),style:Ke},L.createElement("div",{className:K()("".concat(O,"-inner"),Se),id:I,role:"tooltip",style:ue},typeof Q=="function"?Q():Q))}var Z=u(60499),g=u(85899),W=u(42244),Y=u(68196),l={shiftX:64,adjustY:1},x={adjustX:1,shiftY:!0},N=[0,0],y={left:{points:["cr","cl"],overflow:x,offset:[-4,0],targetOffset:N},right:{points:["cl","cr"],overflow:x,offset:[4,0],targetOffset:N},top:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:N},bottom:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:N},topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:N},leftTop:{points:["tr","tl"],overflow:x,offset:[-4,0],targetOffset:N},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:N},rightTop:{points:["tl","tr"],overflow:x,offset:[4,0],targetOffset:N},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:N},rightBottom:{points:["bl","br"],overflow:x,offset:[4,0],targetOffset:N},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:N},leftBottom:{points:["br","bl"],overflow:x,offset:[-4,0],targetOffset:N}},T=null,A=u(80402),$=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],H=function(Q,O){var I=Q.overlayClassName,ue=Q.trigger,Se=ue===void 0?["hover"]:ue,me=Q.mouseEnterDelay,Ke=me===void 0?0:me,Je=Q.mouseLeaveDelay,ke=Je===void 0?.1:Je,We=Q.overlayStyle,oe=Q.prefixCls,k=oe===void 0?"rc-tooltip":oe,_=Q.children,ee=Q.onVisibleChange,ne=Q.afterVisibleChange,se=Q.transitionName,w=Q.animation,D=Q.motion,ce=Q.placement,Oe=ce===void 0?"right":ce,ct=Q.align,Tt=ct===void 0?{}:ct,Ae=Q.destroyTooltipOnHide,qe=Ae===void 0?!1:Ae,ht=Q.defaultVisible,tt=Q.getTooltipContainer,Fe=Q.overlayInnerStyle,jt=Q.arrowContent,bt=Q.overlay,cn=Q.id,vt=Q.showArrow,pt=vt===void 0?!0:vt,Qe=Q.classNames,Ne=Q.styles,le=(0,W.Z)(Q,$),Pe=(0,A.Z)(cn),Ge=(0,L.useRef)(null);(0,L.useImperativeHandle)(O,function(){return Ge.current});var j=(0,g.Z)({},le);"visible"in Q&&(j.popupVisible=Q.visible);var P=function(){return L.createElement(he,{key:"content",prefixCls:k,id:Pe,bodyClassName:Qe==null?void 0:Qe.body,overlayInnerStyle:(0,g.Z)((0,g.Z)({},Fe),Ne==null?void 0:Ne.body)},bt)},_e=function(){var Te=L.Children.only(_),ze=(Te==null?void 0:Te.props)||{},Ue=(0,g.Z)((0,g.Z)({},ze),{},{"aria-describedby":bt?Pe:null});return L.cloneElement(_,Ue)};return L.createElement(Y.Z,(0,Z.Z)({popupClassName:K()(I,Qe==null?void 0:Qe.root),prefixCls:k,popup:P,action:Se,builtinPlacements:y,popupPlacement:Oe,ref:Ge,popupAlign:Tt,getPopupContainer:tt,onPopupVisibleChange:ee,afterPopupVisibleChange:ne,popupTransitionName:se,popupAnimation:w,popupMotion:D,defaultPopupVisible:ht,autoDestroy:qe,mouseLeaveDelay:ke,popupStyle:(0,g.Z)((0,g.Z)({},We),Ne==null?void 0:Ne.root),mouseEnterDelay:Ke,arrow:pt},j),_e())},X=(0,L.forwardRef)(H),V=X},639:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Q}});var i=u(60499),K=u(18642),L=u(85899),he=u(72190),Z=u(42244),g=u(59301),W=u(92310),Y=u.n(W),l=u(26112),x=u(30699),N=function(I){for(var ue=I.prefixCls,Se=I.level,me=I.isStart,Ke=I.isEnd,Je="".concat(ue,"-indent-unit"),ke=[],We=0;We<Se;We+=1)ke.push(g.createElement("span",{key:We,className:Y()(Je,(0,K.Z)((0,K.Z)({},"".concat(Je,"-start"),me[We]),"".concat(Je,"-end"),Ke[We]))}));return g.createElement("span",{"aria-hidden":"true",className:"".concat(ue,"-indent")},ke)},y=g.memo(N),T=u(65065),A=u(34061),$=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],H="open",X="close",V="---",R=function(I){var ue,Se,me,Ke=I.eventKey,Je=I.className,ke=I.style,We=I.dragOver,oe=I.dragOverGapTop,k=I.dragOverGapBottom,_=I.isLeaf,ee=I.isStart,ne=I.isEnd,se=I.expanded,w=I.selected,D=I.checked,ce=I.halfChecked,Oe=I.loading,ct=I.domRef,Tt=I.active,Ae=I.data,qe=I.onMouseMove,ht=I.selectable,tt=(0,Z.Z)(I,$),Fe=g.useContext(x.k),jt=g.useContext(x.y),bt=g.useRef(null),cn=g.useState(!1),vt=(0,he.Z)(cn,2),pt=vt[0],Qe=vt[1],Ne=!!(Fe.disabled||I.disabled||(ue=jt.nodeDisabled)!==null&&ue!==void 0&&ue.call(jt,Ae)),le=g.useMemo(function(){return!Fe.checkable||I.checkable===!1?!1:Fe.checkable},[Fe.checkable,I.checkable]),Pe=function(z){Ne||Fe.onNodeSelect(z,(0,A.F)(I))},Ge=function(z){Ne||!le||I.disableCheckbox||Fe.onNodeCheck(z,(0,A.F)(I),!D)},j=g.useMemo(function(){return typeof ht=="boolean"?ht:Fe.selectable},[ht,Fe.selectable]),P=function(z){Fe.onNodeClick(z,(0,A.F)(I)),j?Pe(z):Ge(z)},_e=function(z){Fe.onNodeDoubleClick(z,(0,A.F)(I))},Ie=function(z){Fe.onNodeMouseEnter(z,(0,A.F)(I))},Te=function(z){Fe.onNodeMouseLeave(z,(0,A.F)(I))},ze=function(z){Fe.onNodeContextMenu(z,(0,A.F)(I))},Ue=g.useMemo(function(){return!!(Fe.draggable&&(!Fe.draggable.nodeDraggable||Fe.draggable.nodeDraggable(Ae)))},[Fe.draggable,Ae]),ft=function(z){z.stopPropagation(),Qe(!0),Fe.onNodeDragStart(z,I);try{z.dataTransfer.setData("text/plain","")}catch(St){}},de=function(z){z.preventDefault(),z.stopPropagation(),Fe.onNodeDragEnter(z,I)},xe=function(z){z.preventDefault(),z.stopPropagation(),Fe.onNodeDragOver(z,I)},Ot=function(z){z.stopPropagation(),Fe.onNodeDragLeave(z,I)},_t=function(z){z.stopPropagation(),Qe(!1),Fe.onNodeDragEnd(z,I)},Pt=function(z){z.preventDefault(),z.stopPropagation(),Qe(!1),Fe.onNodeDrop(z,I)},kt=function(z){Oe||Fe.onNodeExpand(z,(0,A.F)(I))},mt=g.useMemo(function(){var Ze=(0,T.Z)(Fe.keyEntities,Ke)||{},z=Ze.children;return!!(z||[]).length},[Fe.keyEntities,Ke]),Vt=g.useMemo(function(){return _===!1?!1:_||!Fe.loadData&&!mt||Fe.loadData&&I.loaded&&!mt},[_,Fe.loadData,mt,I.loaded]);g.useEffect(function(){Oe||typeof Fe.loadData=="function"&&se&&!Vt&&!I.loaded&&Fe.onNodeLoad((0,A.F)(I))},[Oe,Fe.loadData,Fe.onNodeLoad,se,Vt,I]);var Nt=g.useMemo(function(){var Ze;return(Ze=Fe.draggable)!==null&&Ze!==void 0&&Ze.icon?g.createElement("span",{className:"".concat(Fe.prefixCls,"-draggable-icon")},Fe.draggable.icon):null},[Fe.draggable]),De=function(z){var St=I.switcherIcon||Fe.switcherIcon;return typeof St=="function"?St((0,L.Z)((0,L.Z)({},I),{},{isLeaf:z})):St},gt=function(){if(Vt){var z=De(!0);return z!==!1?g.createElement("span",{className:Y()("".concat(Fe.prefixCls,"-switcher"),"".concat(Fe.prefixCls,"-switcher-noop"))},z):null}var St=De(!1);return St!==!1?g.createElement("span",{onClick:kt,className:Y()("".concat(Fe.prefixCls,"-switcher"),"".concat(Fe.prefixCls,"-switcher_").concat(se?H:X))},St):null},E=g.useMemo(function(){if(!le)return null;var Ze=typeof le!="boolean"?le:null;return g.createElement("span",{className:Y()("".concat(Fe.prefixCls,"-checkbox"),(0,K.Z)((0,K.Z)((0,K.Z)({},"".concat(Fe.prefixCls,"-checkbox-checked"),D),"".concat(Fe.prefixCls,"-checkbox-indeterminate"),!D&&ce),"".concat(Fe.prefixCls,"-checkbox-disabled"),Ne||I.disableCheckbox)),onClick:Ge,role:"checkbox","aria-checked":ce?"mixed":D,"aria-disabled":Ne||I.disableCheckbox,"aria-label":"Select ".concat(typeof I.title=="string"?I.title:"tree node")},Ze)},[le,D,ce,Ne,I.disableCheckbox,I.title]),S=g.useMemo(function(){return Vt?null:se?H:X},[Vt,se]),je=g.useMemo(function(){return g.createElement("span",{className:Y()("".concat(Fe.prefixCls,"-iconEle"),"".concat(Fe.prefixCls,"-icon__").concat(S||"docu"),(0,K.Z)({},"".concat(Fe.prefixCls,"-icon_loading"),Oe))})},[Fe.prefixCls,S,Oe]),G=g.useMemo(function(){var Ze=!!Fe.draggable,z=!I.disabled&&Ze&&Fe.dragOverNodeKey===Ke;return z?Fe.dropIndicatorRender({dropPosition:Fe.dropPosition,dropLevelOffset:Fe.dropLevelOffset,indent:Fe.indent,prefixCls:Fe.prefixCls,direction:Fe.direction}):null},[Fe.dropPosition,Fe.dropLevelOffset,Fe.indent,Fe.prefixCls,Fe.direction,Fe.draggable,Fe.dragOverNodeKey,Fe.dropIndicatorRender]),Ce=g.useMemo(function(){var Ze=I.title,z=Ze===void 0?V:Ze,St="".concat(Fe.prefixCls,"-node-content-wrapper"),fe;if(Fe.showIcon){var Kt=I.icon||Fe.icon;fe=Kt?g.createElement("span",{className:Y()("".concat(Fe.prefixCls,"-iconEle"),"".concat(Fe.prefixCls,"-icon__customize"))},typeof Kt=="function"?Kt(I):Kt):je}else Fe.loadData&&Oe&&(fe=je);var dn;return typeof z=="function"?dn=z(Ae):Fe.titleRender?dn=Fe.titleRender(Ae):dn=z,g.createElement("span",{ref:bt,title:typeof z=="string"?z:"",className:Y()(St,"".concat(St,"-").concat(S||"normal"),(0,K.Z)({},"".concat(Fe.prefixCls,"-node-selected"),!Ne&&(w||pt))),onMouseEnter:Ie,onMouseLeave:Te,onContextMenu:ze,onClick:P,onDoubleClick:_e},fe,g.createElement("span",{className:"".concat(Fe.prefixCls,"-title")},dn),G)},[Fe.prefixCls,Fe.showIcon,I,Fe.icon,je,Fe.titleRender,Ae,S,Ie,Te,ze,P,_e]),en=(0,l.Z)(tt,{aria:!0,data:!0}),rt=(0,T.Z)(Fe.keyEntities,Ke)||{},st=rt.level,xt=ne[ne.length-1],pe=!Ne&&Ue,Ee=Fe.draggingNodeKey===Ke,nt=ht!==void 0?{"aria-selected":!!ht}:void 0;return g.createElement("div",(0,i.Z)({ref:ct,role:"treeitem","aria-expanded":_?void 0:se,className:Y()(Je,"".concat(Fe.prefixCls,"-treenode"),(me={},(0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)(me,"".concat(Fe.prefixCls,"-treenode-disabled"),Ne),"".concat(Fe.prefixCls,"-treenode-switcher-").concat(se?"open":"close"),!_),"".concat(Fe.prefixCls,"-treenode-checkbox-checked"),D),"".concat(Fe.prefixCls,"-treenode-checkbox-indeterminate"),ce),"".concat(Fe.prefixCls,"-treenode-selected"),w),"".concat(Fe.prefixCls,"-treenode-loading"),Oe),"".concat(Fe.prefixCls,"-treenode-active"),Tt),"".concat(Fe.prefixCls,"-treenode-leaf-last"),xt),"".concat(Fe.prefixCls,"-treenode-draggable"),Ue),"dragging",Ee),(0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)(me,"drop-target",Fe.dropTargetKey===Ke),"drop-container",Fe.dropContainerKey===Ke),"drag-over",!Ne&&We),"drag-over-gap-top",!Ne&&oe),"drag-over-gap-bottom",!Ne&&k),"filter-node",(Se=Fe.filterTreeNode)===null||Se===void 0?void 0:Se.call(Fe,(0,A.F)(I))),"".concat(Fe.prefixCls,"-treenode-leaf"),Vt))),style:ke,draggable:pe,onDragStart:pe?ft:void 0,onDragEnter:Ue?de:void 0,onDragOver:Ue?xe:void 0,onDragLeave:Ue?Ot:void 0,onDrop:Ue?Pt:void 0,onDragEnd:Ue?_t:void 0,onMouseMove:qe},nt,en),g.createElement(y,{prefixCls:Fe.prefixCls,level:st,isStart:ee,isEnd:ne}),Nt,gt(),E,Ce)};R.isTreeNode=1;var Q=R},30699:function($n,Rt,u){"use strict";u.d(Rt,{k:function(){return K},y:function(){return L}});var i=u(59301),K=i.createContext(null),L=i.createContext({})},87632:function($n,Rt,u){"use strict";u.d(Rt,{OF:function(){return Ke.Z},y6:function(){return X.y},ZP:function(){return Ne}});var i=u(60499),K=u(43749),L=u(85899),he=u(77654),Z=u(38705),g=u(17212),W=u(15793),Y=u(39153),l=u(55401),x=u(18642),N=u(92310),y=u.n(N),T=u(10228),A=u(26112),$=u(48736),H=u(59301),X=u(30699),V=function(Pe){var Ge=Pe.dropPosition,j=Pe.dropLevelOffset,P=Pe.indent,_e={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ge){case-1:_e.top=0,_e.left=-j*P;break;case 1:_e.bottom=0,_e.left=-j*P;break;case 0:_e.bottom=0,_e.left=P;break}return H.createElement("div",{style:_e})},R=V;function Q(le){if(le==null)throw new TypeError("Cannot destructure "+le)}var O=u(72190),I=u(42244),ue=u(34280),Se=u(48911),me=u(77900),Ke=u(639);function Je(le,Pe){var Ge=H.useState(!1),j=(0,O.Z)(Ge,2),P=j[0],_e=j[1];(0,ue.Z)(function(){if(P)return le(),function(){Pe()}},[P]),(0,ue.Z)(function(){return _e(!0),function(){_e(!1)}},[])}var ke=Je,We=u(34061),oe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],k=H.forwardRef(function(le,Pe){var Ge=le.className,j=le.style,P=le.motion,_e=le.motionNodes,Ie=le.motionType,Te=le.onMotionStart,ze=le.onMotionEnd,Ue=le.active,ft=le.treeNodeRequiredProps,de=(0,I.Z)(le,oe),xe=H.useState(!0),Ot=(0,O.Z)(xe,2),_t=Ot[0],Pt=Ot[1],kt=H.useContext(X.k),mt=kt.prefixCls,Vt=_e&&Ie!=="hide";(0,ue.Z)(function(){_e&&Vt!==_t&&Pt(Vt)},[_e]);var Nt=function(){_e&&Te()},De=H.useRef(!1),gt=function(){_e&&!De.current&&(De.current=!0,ze())};ke(Nt,gt);var E=function(je){Vt===je&>()};return _e?H.createElement(me.default,(0,i.Z)({ref:Pe,visible:_t},P,{motionAppear:Ie==="show",onVisibleChanged:E}),function(S,je){var G=S.className,Ce=S.style;return H.createElement("div",{ref:je,className:y()("".concat(mt,"-treenode-motion"),G),style:Ce},_e.map(function(en){var rt=Object.assign({},(Q(en.data),en.data)),st=en.title,xt=en.key,pe=en.isStart,Ee=en.isEnd;delete rt.children;var nt=(0,We.H8)(xt,ft);return H.createElement(Ke.Z,(0,i.Z)({},rt,nt,{title:st,active:Ue,data:en.data,key:xt,isStart:pe,isEnd:Ee}))}))}):H.createElement(Ke.Z,(0,i.Z)({domRef:Pe,className:Ge,style:j},de,{active:Ue}))}),_=k;function ee(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ge=le.length,j=Pe.length;if(Math.abs(Ge-j)!==1)return{add:!1,key:null};function P(_e,Ie){var Te=new Map;_e.forEach(function(Ue){Te.set(Ue,!0)});var ze=Ie.filter(function(Ue){return!Te.has(Ue)});return ze.length===1?ze[0]:null}return Ge<j?{add:!0,key:P(le,Pe)}:{add:!1,key:P(Pe,le)}}function ne(le,Pe,Ge){var j=le.findIndex(function(Te){return Te.key===Ge}),P=le[j+1],_e=Pe.findIndex(function(Te){return Te.key===Ge});if(P){var Ie=Pe.findIndex(function(Te){return Te.key===P.key});return Pe.slice(_e+1,Ie)}return Pe.slice(_e+1)}var se=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],w={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},D=function(){},ce="RC_TREE_MOTION_".concat(Math.random()),Oe={key:ce},ct={key:ce,level:0,index:0,pos:"0",node:Oe,nodes:[Oe]},Tt={parent:null,children:[],pos:ct.pos,data:Oe,title:null,key:ce,isStart:[],isEnd:[]};function Ae(le,Pe,Ge,j){return Pe===!1||!Ge?le:le.slice(0,Math.ceil(Ge/j)+1)}function qe(le){var Pe=le.key,Ge=le.pos;return(0,We.km)(Pe,Ge)}function ht(le){for(var Pe=String(le.data.key),Ge=le;Ge.parent;)Ge=Ge.parent,Pe="".concat(Ge.data.key," > ").concat(Pe);return Pe}var tt=H.forwardRef(function(le,Pe){var Ge=le.prefixCls,j=le.data,P=le.selectable,_e=le.checkable,Ie=le.expandedKeys,Te=le.selectedKeys,ze=le.checkedKeys,Ue=le.loadedKeys,ft=le.loadingKeys,de=le.halfCheckedKeys,xe=le.keyEntities,Ot=le.disabled,_t=le.dragging,Pt=le.dragOverNodeKey,kt=le.dropPosition,mt=le.motion,Vt=le.height,Nt=le.itemHeight,De=le.virtual,gt=le.scrollWidth,E=le.focusable,S=le.activeItem,je=le.focused,G=le.tabIndex,Ce=le.onKeyDown,en=le.onFocus,rt=le.onBlur,st=le.onActiveChange,xt=le.onListChangeStart,pe=le.onListChangeEnd,Ee=(0,I.Z)(le,se),nt=H.useRef(null),Ze=H.useRef(null);H.useImperativeHandle(Pe,function(){return{scrollTo:function(rn){nt.current.scrollTo(rn)},getIndentWidth:function(){return Ze.current.offsetWidth}}});var z=H.useState(Ie),St=(0,O.Z)(z,2),fe=St[0],Kt=St[1],dn=H.useState(j),Bt=(0,O.Z)(dn,2),J=Bt[0],we=Bt[1],M=H.useState(j),Ct=(0,O.Z)(M,2),ot=Ct[0],dt=Ct[1],$t=H.useState([]),Ft=(0,O.Z)($t,2),Mt=Ft[0],ie=Ft[1],ve=H.useState(null),At=(0,O.Z)(ve,2),Be=At[0],Le=At[1],ae=H.useRef(j);ae.current=j;function Re(){var ut=ae.current;we(ut),dt(ut),ie([]),Le(null),pe()}(0,ue.Z)(function(){Kt(Ie);var ut=ee(fe,Ie);if(ut.key!==null)if(ut.add){var rn=J.findIndex(function(Yt){var ye=Yt.key;return ye===ut.key}),on=Ae(ne(J,j,ut.key),De,Vt,Nt),Ve=J.slice();Ve.splice(rn+1,0,Tt),dt(Ve),ie(on),Le("show")}else{var lt=j.findIndex(function(Yt){var ye=Yt.key;return ye===ut.key}),wt=Ae(ne(j,J,ut.key),De,Vt,Nt),Qt=j.slice();Qt.splice(lt+1,0,Tt),dt(Qt),ie(wt),Le("hide")}else J!==j&&(we(j),dt(j))},[Ie,j]),H.useEffect(function(){_t||Re()},[_t]);var $e=mt?ot:j,He={expandedKeys:Ie,selectedKeys:Te,loadedKeys:Ue,loadingKeys:ft,checkedKeys:ze,halfCheckedKeys:de,dragOverNodeKey:Pt,dropPosition:kt,keyEntities:xe};return H.createElement(H.Fragment,null,je&&S&&H.createElement("span",{style:w,"aria-live":"assertive"},ht(S)),H.createElement("div",null,H.createElement("input",{style:w,disabled:E===!1||Ot,tabIndex:E!==!1?G:null,onKeyDown:Ce,onFocus:en,onBlur:rt,value:"",onChange:D,"aria-label":"for screen reader"})),H.createElement("div",{className:"".concat(Ge,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},H.createElement("div",{className:"".concat(Ge,"-indent")},H.createElement("div",{ref:Ze,className:"".concat(Ge,"-indent-unit")}))),H.createElement(Se.Z,(0,i.Z)({},Ee,{data:$e,itemKey:qe,height:Vt,fullHeight:!1,virtual:De,itemHeight:Nt,scrollWidth:gt,prefixCls:"".concat(Ge,"-list"),ref:nt,role:"tree",onVisibleChange:function(rn){rn.every(function(on){return qe(on)!==ce})&&Re()}}),function(ut){var rn=ut.pos,on=Object.assign({},(Q(ut.data),ut.data)),Ve=ut.title,lt=ut.key,wt=ut.isStart,Qt=ut.isEnd,Yt=(0,We.km)(lt,rn);delete on.key,delete on.children;var ye=(0,We.H8)(Yt,He);return H.createElement(_,(0,i.Z)({},on,ye,{title:Ve,active:!!S&<===S.key,pos:rn,data:ut.data,isStart:wt,isEnd:Qt,motion:mt,motionNodes:lt===ce?Mt:null,motionType:Be,onMotionStart:xt,onMotionEnd:Re,treeNodeRequiredProps:He,onMouseMove:function(){st(null)}}))}))}),Fe=tt,jt=u(82661),bt=u(34643),cn=u(65065),vt=10,pt=function(le){(0,Y.Z)(Ge,le);var Pe=(0,l.Z)(Ge);function Ge(){var j;(0,Z.Z)(this,Ge);for(var P=arguments.length,_e=new Array(P),Ie=0;Ie<P;Ie++)_e[Ie]=arguments[Ie];return j=Pe.call.apply(Pe,[this].concat(_e)),(0,x.Z)((0,W.Z)(j),"destroyed",!1),(0,x.Z)((0,W.Z)(j),"delayedDragEnterLogic",void 0),(0,x.Z)((0,W.Z)(j),"loadingRetryTimes",{}),(0,x.Z)((0,W.Z)(j),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,We.w$)()}),(0,x.Z)((0,W.Z)(j),"dragStartMousePosition",null),(0,x.Z)((0,W.Z)(j),"dragNodeProps",null),(0,x.Z)((0,W.Z)(j),"currentMouseOverDroppableNodeKey",null),(0,x.Z)((0,W.Z)(j),"listRef",H.createRef()),(0,x.Z)((0,W.Z)(j),"onNodeDragStart",function(Te,ze){var Ue=j.state,ft=Ue.expandedKeys,de=Ue.keyEntities,xe=j.props.onDragStart,Ot=ze.eventKey;j.dragNodeProps=ze,j.dragStartMousePosition={x:Te.clientX,y:Te.clientY};var _t=(0,jt._5)(ft,Ot);j.setState({draggingNodeKey:Ot,dragChildrenKeys:(0,jt.wA)(Ot,de),indent:j.listRef.current.getIndentWidth()}),j.setExpandedKeys(_t),window.addEventListener("dragend",j.onWindowDragEnd),xe==null||xe({event:Te,node:(0,We.F)(ze)})}),(0,x.Z)((0,W.Z)(j),"onNodeDragEnter",function(Te,ze){var Ue=j.state,ft=Ue.expandedKeys,de=Ue.keyEntities,xe=Ue.dragChildrenKeys,Ot=Ue.flattenNodes,_t=Ue.indent,Pt=j.props,kt=Pt.onDragEnter,mt=Pt.onExpand,Vt=Pt.allowDrop,Nt=Pt.direction,De=ze.pos,gt=ze.eventKey;if(j.currentMouseOverDroppableNodeKey!==gt&&(j.currentMouseOverDroppableNodeKey=gt),!j.dragNodeProps){j.resetDragState();return}var E=(0,jt.OM)(Te,j.dragNodeProps,ze,_t,j.dragStartMousePosition,Vt,Ot,de,ft,Nt),S=E.dropPosition,je=E.dropLevelOffset,G=E.dropTargetKey,Ce=E.dropContainerKey,en=E.dropTargetPos,rt=E.dropAllowed,st=E.dragOverNodeKey;if(xe.includes(G)||!rt){j.resetDragState();return}if(j.delayedDragEnterLogic||(j.delayedDragEnterLogic={}),Object.keys(j.delayedDragEnterLogic).forEach(function(xt){clearTimeout(j.delayedDragEnterLogic[xt])}),j.dragNodeProps.eventKey!==ze.eventKey&&(Te.persist(),j.delayedDragEnterLogic[De]=window.setTimeout(function(){if(j.state.draggingNodeKey!==null){var xt=(0,he.Z)(ft),pe=(0,cn.Z)(de,ze.eventKey);pe&&(pe.children||[]).length&&(xt=(0,jt.L0)(ft,ze.eventKey)),j.props.hasOwnProperty("expandedKeys")||j.setExpandedKeys(xt),mt==null||mt(xt,{node:(0,We.F)(ze),expanded:!0,nativeEvent:Te.nativeEvent})}},800)),j.dragNodeProps.eventKey===G&&je===0){j.resetDragState();return}j.setState({dragOverNodeKey:st,dropPosition:S,dropLevelOffset:je,dropTargetKey:G,dropContainerKey:Ce,dropTargetPos:en,dropAllowed:rt}),kt==null||kt({event:Te,node:(0,We.F)(ze),expandedKeys:ft})}),(0,x.Z)((0,W.Z)(j),"onNodeDragOver",function(Te,ze){var Ue=j.state,ft=Ue.dragChildrenKeys,de=Ue.flattenNodes,xe=Ue.keyEntities,Ot=Ue.expandedKeys,_t=Ue.indent,Pt=j.props,kt=Pt.onDragOver,mt=Pt.allowDrop,Vt=Pt.direction;if(j.dragNodeProps){var Nt=(0,jt.OM)(Te,j.dragNodeProps,ze,_t,j.dragStartMousePosition,mt,de,xe,Ot,Vt),De=Nt.dropPosition,gt=Nt.dropLevelOffset,E=Nt.dropTargetKey,S=Nt.dropContainerKey,je=Nt.dropTargetPos,G=Nt.dropAllowed,Ce=Nt.dragOverNodeKey;ft.includes(E)||!G||(j.dragNodeProps.eventKey===E&>===0?j.state.dropPosition===null&&j.state.dropLevelOffset===null&&j.state.dropTargetKey===null&&j.state.dropContainerKey===null&&j.state.dropTargetPos===null&&j.state.dropAllowed===!1&&j.state.dragOverNodeKey===null||j.resetDragState():De===j.state.dropPosition&>===j.state.dropLevelOffset&&E===j.state.dropTargetKey&&S===j.state.dropContainerKey&&je===j.state.dropTargetPos&&G===j.state.dropAllowed&&Ce===j.state.dragOverNodeKey||j.setState({dropPosition:De,dropLevelOffset:gt,dropTargetKey:E,dropContainerKey:S,dropTargetPos:je,dropAllowed:G,dragOverNodeKey:Ce}),kt==null||kt({event:Te,node:(0,We.F)(ze)}))}}),(0,x.Z)((0,W.Z)(j),"onNodeDragLeave",function(Te,ze){j.currentMouseOverDroppableNodeKey===ze.eventKey&&!Te.currentTarget.contains(Te.relatedTarget)&&(j.resetDragState(),j.currentMouseOverDroppableNodeKey=null);var Ue=j.props.onDragLeave;Ue==null||Ue({event:Te,node:(0,We.F)(ze)})}),(0,x.Z)((0,W.Z)(j),"onWindowDragEnd",function(Te){j.onNodeDragEnd(Te,null,!0),window.removeEventListener("dragend",j.onWindowDragEnd)}),(0,x.Z)((0,W.Z)(j),"onNodeDragEnd",function(Te,ze){var Ue=j.props.onDragEnd;j.setState({dragOverNodeKey:null}),j.cleanDragState(),Ue==null||Ue({event:Te,node:(0,We.F)(ze)}),j.dragNodeProps=null,window.removeEventListener("dragend",j.onWindowDragEnd)}),(0,x.Z)((0,W.Z)(j),"onNodeDrop",function(Te,ze){var Ue,ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,de=j.state,xe=de.dragChildrenKeys,Ot=de.dropPosition,_t=de.dropTargetKey,Pt=de.dropTargetPos,kt=de.dropAllowed;if(kt){var mt=j.props.onDrop;if(j.setState({dragOverNodeKey:null}),j.cleanDragState(),_t!==null){var Vt=(0,L.Z)((0,L.Z)({},(0,We.H8)(_t,j.getTreeNodeRequiredProps())),{},{active:((Ue=j.getActiveItem())===null||Ue===void 0?void 0:Ue.key)===_t,data:(0,cn.Z)(j.state.keyEntities,_t).node}),Nt=xe.includes(_t);(0,$.ZP)(!Nt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var De=(0,jt.yx)(Pt),gt={event:Te,node:(0,We.F)(Vt),dragNode:j.dragNodeProps?(0,We.F)(j.dragNodeProps):null,dragNodesKeys:[j.dragNodeProps.eventKey].concat(xe),dropToGap:Ot!==0,dropPosition:Ot+Number(De[De.length-1])};ft||mt==null||mt(gt),j.dragNodeProps=null}}}),(0,x.Z)((0,W.Z)(j),"cleanDragState",function(){var Te=j.state.draggingNodeKey;Te!==null&&j.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),j.dragStartMousePosition=null,j.currentMouseOverDroppableNodeKey=null}),(0,x.Z)((0,W.Z)(j),"triggerExpandActionExpand",function(Te,ze){var Ue=j.state,ft=Ue.expandedKeys,de=Ue.flattenNodes,xe=ze.expanded,Ot=ze.key,_t=ze.isLeaf;if(!(_t||Te.shiftKey||Te.metaKey||Te.ctrlKey)){var Pt=de.filter(function(mt){return mt.key===Ot})[0],kt=(0,We.F)((0,L.Z)((0,L.Z)({},(0,We.H8)(Ot,j.getTreeNodeRequiredProps())),{},{data:Pt.data}));j.setExpandedKeys(xe?(0,jt._5)(ft,Ot):(0,jt.L0)(ft,Ot)),j.onNodeExpand(Te,kt)}}),(0,x.Z)((0,W.Z)(j),"onNodeClick",function(Te,ze){var Ue=j.props,ft=Ue.onClick,de=Ue.expandAction;de==="click"&&j.triggerExpandActionExpand(Te,ze),ft==null||ft(Te,ze)}),(0,x.Z)((0,W.Z)(j),"onNodeDoubleClick",function(Te,ze){var Ue=j.props,ft=Ue.onDoubleClick,de=Ue.expandAction;de==="doubleClick"&&j.triggerExpandActionExpand(Te,ze),ft==null||ft(Te,ze)}),(0,x.Z)((0,W.Z)(j),"onNodeSelect",function(Te,ze){var Ue=j.state.selectedKeys,ft=j.state,de=ft.keyEntities,xe=ft.fieldNames,Ot=j.props,_t=Ot.onSelect,Pt=Ot.multiple,kt=ze.selected,mt=ze[xe.key],Vt=!kt;Vt?Pt?Ue=(0,jt.L0)(Ue,mt):Ue=[mt]:Ue=(0,jt._5)(Ue,mt);var Nt=Ue.map(function(De){var gt=(0,cn.Z)(de,De);return gt?gt.node:null}).filter(Boolean);j.setUncontrolledState({selectedKeys:Ue}),_t==null||_t(Ue,{event:"select",selected:Vt,node:ze,selectedNodes:Nt,nativeEvent:Te.nativeEvent})}),(0,x.Z)((0,W.Z)(j),"onNodeCheck",function(Te,ze,Ue){var ft=j.state,de=ft.keyEntities,xe=ft.checkedKeys,Ot=ft.halfCheckedKeys,_t=j.props,Pt=_t.checkStrictly,kt=_t.onCheck,mt=ze.key,Vt,Nt={event:"check",node:ze,checked:Ue,nativeEvent:Te.nativeEvent};if(Pt){var De=Ue?(0,jt.L0)(xe,mt):(0,jt._5)(xe,mt),gt=(0,jt._5)(Ot,mt);Vt={checked:De,halfChecked:gt},Nt.checkedNodes=De.map(function(en){return(0,cn.Z)(de,en)}).filter(Boolean).map(function(en){return en.node}),j.setUncontrolledState({checkedKeys:De})}else{var E=(0,bt.S)([].concat((0,he.Z)(xe),[mt]),!0,de),S=E.checkedKeys,je=E.halfCheckedKeys;if(!Ue){var G=new Set(S);G.delete(mt);var Ce=(0,bt.S)(Array.from(G),{checked:!1,halfCheckedKeys:je},de);S=Ce.checkedKeys,je=Ce.halfCheckedKeys}Vt=S,Nt.checkedNodes=[],Nt.checkedNodesPositions=[],Nt.halfCheckedKeys=je,S.forEach(function(en){var rt=(0,cn.Z)(de,en);if(rt){var st=rt.node,xt=rt.pos;Nt.checkedNodes.push(st),Nt.checkedNodesPositions.push({node:st,pos:xt})}}),j.setUncontrolledState({checkedKeys:S},!1,{halfCheckedKeys:je})}kt==null||kt(Vt,Nt)}),(0,x.Z)((0,W.Z)(j),"onNodeLoad",function(Te){var ze,Ue=Te.key,ft=j.state.keyEntities,de=(0,cn.Z)(ft,Ue);if(!(de!=null&&(ze=de.children)!==null&&ze!==void 0&&ze.length)){var xe=new Promise(function(Ot,_t){j.setState(function(Pt){var kt=Pt.loadedKeys,mt=kt===void 0?[]:kt,Vt=Pt.loadingKeys,Nt=Vt===void 0?[]:Vt,De=j.props,gt=De.loadData,E=De.onLoad;if(!gt||mt.includes(Ue)||Nt.includes(Ue))return null;var S=gt(Te);return S.then(function(){var je=j.state.loadedKeys,G=(0,jt.L0)(je,Ue);E==null||E(G,{event:"load",node:Te}),j.setUncontrolledState({loadedKeys:G}),j.setState(function(Ce){return{loadingKeys:(0,jt._5)(Ce.loadingKeys,Ue)}}),Ot()}).catch(function(je){if(j.setState(function(Ce){return{loadingKeys:(0,jt._5)(Ce.loadingKeys,Ue)}}),j.loadingRetryTimes[Ue]=(j.loadingRetryTimes[Ue]||0)+1,j.loadingRetryTimes[Ue]>=vt){var G=j.state.loadedKeys;(0,$.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),j.setUncontrolledState({loadedKeys:(0,jt.L0)(G,Ue)}),Ot()}_t(je)}),{loadingKeys:(0,jt.L0)(Nt,Ue)}})});return xe.catch(function(){}),xe}}),(0,x.Z)((0,W.Z)(j),"onNodeMouseEnter",function(Te,ze){var Ue=j.props.onMouseEnter;Ue==null||Ue({event:Te,node:ze})}),(0,x.Z)((0,W.Z)(j),"onNodeMouseLeave",function(Te,ze){var Ue=j.props.onMouseLeave;Ue==null||Ue({event:Te,node:ze})}),(0,x.Z)((0,W.Z)(j),"onNodeContextMenu",function(Te,ze){var Ue=j.props.onRightClick;Ue&&(Te.preventDefault(),Ue({event:Te,node:ze}))}),(0,x.Z)((0,W.Z)(j),"onFocus",function(){var Te=j.props.onFocus;j.setState({focused:!0});for(var ze=arguments.length,Ue=new Array(ze),ft=0;ft<ze;ft++)Ue[ft]=arguments[ft];Te==null||Te.apply(void 0,Ue)}),(0,x.Z)((0,W.Z)(j),"onBlur",function(){var Te=j.props.onBlur;j.setState({focused:!1}),j.onActiveChange(null);for(var ze=arguments.length,Ue=new Array(ze),ft=0;ft<ze;ft++)Ue[ft]=arguments[ft];Te==null||Te.apply(void 0,Ue)}),(0,x.Z)((0,W.Z)(j),"getTreeNodeRequiredProps",function(){var Te=j.state,ze=Te.expandedKeys,Ue=Te.selectedKeys,ft=Te.loadedKeys,de=Te.loadingKeys,xe=Te.checkedKeys,Ot=Te.halfCheckedKeys,_t=Te.dragOverNodeKey,Pt=Te.dropPosition,kt=Te.keyEntities;return{expandedKeys:ze||[],selectedKeys:Ue||[],loadedKeys:ft||[],loadingKeys:de||[],checkedKeys:xe||[],halfCheckedKeys:Ot||[],dragOverNodeKey:_t,dropPosition:Pt,keyEntities:kt}}),(0,x.Z)((0,W.Z)(j),"setExpandedKeys",function(Te){var ze=j.state,Ue=ze.treeData,ft=ze.fieldNames,de=(0,We.oH)(Ue,Te,ft);j.setUncontrolledState({expandedKeys:Te,flattenNodes:de},!0)}),(0,x.Z)((0,W.Z)(j),"onNodeExpand",function(Te,ze){var Ue=j.state.expandedKeys,ft=j.state,de=ft.listChanging,xe=ft.fieldNames,Ot=j.props,_t=Ot.onExpand,Pt=Ot.loadData,kt=ze.expanded,mt=ze[xe.key];if(!de){var Vt=Ue.includes(mt),Nt=!kt;if((0,$.ZP)(kt&&Vt||!kt&&!Vt,"Expand state not sync with index check"),Ue=Nt?(0,jt.L0)(Ue,mt):(0,jt._5)(Ue,mt),j.setExpandedKeys(Ue),_t==null||_t(Ue,{node:ze,expanded:Nt,nativeEvent:Te.nativeEvent}),Nt&&Pt){var De=j.onNodeLoad(ze);De&&De.then(function(){var gt=(0,We.oH)(j.state.treeData,Ue,xe);j.setUncontrolledState({flattenNodes:gt})}).catch(function(){var gt=j.state.expandedKeys,E=(0,jt._5)(gt,mt);j.setExpandedKeys(E)})}}}),(0,x.Z)((0,W.Z)(j),"onListChangeStart",function(){j.setUncontrolledState({listChanging:!0})}),(0,x.Z)((0,W.Z)(j),"onListChangeEnd",function(){setTimeout(function(){j.setUncontrolledState({listChanging:!1})})}),(0,x.Z)((0,W.Z)(j),"onActiveChange",function(Te){var ze=j.state.activeKey,Ue=j.props,ft=Ue.onActiveChange,de=Ue.itemScrollOffset,xe=de===void 0?0:de;ze!==Te&&(j.setState({activeKey:Te}),Te!==null&&j.scrollTo({key:Te,offset:xe}),ft==null||ft(Te))}),(0,x.Z)((0,W.Z)(j),"getActiveItem",function(){var Te=j.state,ze=Te.activeKey,Ue=Te.flattenNodes;return ze===null?null:Ue.find(function(ft){var de=ft.key;return de===ze})||null}),(0,x.Z)((0,W.Z)(j),"offsetActiveKey",function(Te){var ze=j.state,Ue=ze.flattenNodes,ft=ze.activeKey,de=Ue.findIndex(function(_t){var Pt=_t.key;return Pt===ft});de===-1&&Te<0&&(de=Ue.length),de=(de+Te+Ue.length)%Ue.length;var xe=Ue[de];if(xe){var Ot=xe.key;j.onActiveChange(Ot)}else j.onActiveChange(null)}),(0,x.Z)((0,W.Z)(j),"onKeyDown",function(Te){var ze=j.state,Ue=ze.activeKey,ft=ze.expandedKeys,de=ze.checkedKeys,xe=ze.fieldNames,Ot=j.props,_t=Ot.onKeyDown,Pt=Ot.checkable,kt=Ot.selectable;switch(Te.which){case T.Z.UP:{j.offsetActiveKey(-1),Te.preventDefault();break}case T.Z.DOWN:{j.offsetActiveKey(1),Te.preventDefault();break}}var mt=j.getActiveItem();if(mt&&mt.data){var Vt=j.getTreeNodeRequiredProps(),Nt=mt.data.isLeaf===!1||!!(mt.data[xe.children]||[]).length,De=(0,We.F)((0,L.Z)((0,L.Z)({},(0,We.H8)(Ue,Vt)),{},{data:mt.data,active:!0}));switch(Te.which){case T.Z.LEFT:{Nt&&ft.includes(Ue)?j.onNodeExpand({},De):mt.parent&&j.onActiveChange(mt.parent.key),Te.preventDefault();break}case T.Z.RIGHT:{Nt&&!ft.includes(Ue)?j.onNodeExpand({},De):mt.children&&mt.children.length&&j.onActiveChange(mt.children[0].key),Te.preventDefault();break}case T.Z.ENTER:case T.Z.SPACE:{Pt&&!De.disabled&&De.checkable!==!1&&!De.disableCheckbox?j.onNodeCheck({},De,!de.includes(Ue)):!Pt&&kt&&!De.disabled&&De.selectable!==!1&&j.onNodeSelect({},De);break}}}_t==null||_t(Te)}),(0,x.Z)((0,W.Z)(j),"setUncontrolledState",function(Te){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!j.destroyed){var ft=!1,de=!0,xe={};Object.keys(Te).forEach(function(Ot){if(j.props.hasOwnProperty(Ot)){de=!1;return}ft=!0,xe[Ot]=Te[Ot]}),ft&&(!ze||de)&&j.setState((0,L.Z)((0,L.Z)({},xe),Ue))}}),(0,x.Z)((0,W.Z)(j),"scrollTo",function(Te){j.listRef.current.scrollTo(Te)}),j}return(0,g.Z)(Ge,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var P=this.props,_e=P.activeKey,Ie=P.itemScrollOffset,Te=Ie===void 0?0:Ie;_e!==void 0&&_e!==this.state.activeKey&&(this.setState({activeKey:_e}),_e!==null&&this.scrollTo({key:_e,offset:Te}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var P=this.state,_e=P.focused,Ie=P.flattenNodes,Te=P.keyEntities,ze=P.draggingNodeKey,Ue=P.activeKey,ft=P.dropLevelOffset,de=P.dropContainerKey,xe=P.dropTargetKey,Ot=P.dropPosition,_t=P.dragOverNodeKey,Pt=P.indent,kt=this.props,mt=kt.prefixCls,Vt=kt.className,Nt=kt.style,De=kt.showLine,gt=kt.focusable,E=kt.tabIndex,S=E===void 0?0:E,je=kt.selectable,G=kt.showIcon,Ce=kt.icon,en=kt.switcherIcon,rt=kt.draggable,st=kt.checkable,xt=kt.checkStrictly,pe=kt.disabled,Ee=kt.motion,nt=kt.loadData,Ze=kt.filterTreeNode,z=kt.height,St=kt.itemHeight,fe=kt.scrollWidth,Kt=kt.virtual,dn=kt.titleRender,Bt=kt.dropIndicatorRender,J=kt.onContextMenu,we=kt.onScroll,M=kt.direction,Ct=kt.rootClassName,ot=kt.rootStyle,dt=(0,A.Z)(this.props,{aria:!0,data:!0}),$t;rt&&((0,K.Z)(rt)==="object"?$t=rt:typeof rt=="function"?$t={nodeDraggable:rt}:$t={});var Ft={prefixCls:mt,selectable:je,showIcon:G,icon:Ce,switcherIcon:en,draggable:$t,draggingNodeKey:ze,checkable:st,checkStrictly:xt,disabled:pe,keyEntities:Te,dropLevelOffset:ft,dropContainerKey:de,dropTargetKey:xe,dropPosition:Ot,dragOverNodeKey:_t,indent:Pt,direction:M,dropIndicatorRender:Bt,loadData:nt,filterTreeNode:Ze,titleRender:dn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return H.createElement(X.k.Provider,{value:Ft},H.createElement("div",{className:y()(mt,Vt,Ct,(0,x.Z)((0,x.Z)((0,x.Z)({},"".concat(mt,"-show-line"),De),"".concat(mt,"-focused"),_e),"".concat(mt,"-active-focused"),Ue!==null)),style:ot},H.createElement(Fe,(0,i.Z)({ref:this.listRef,prefixCls:mt,style:Nt,data:Ie,disabled:pe,selectable:je,checkable:!!st,motion:Ee,dragging:ze!==null,height:z,itemHeight:St,virtual:Kt,focusable:gt,focused:_e,tabIndex:S,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:J,onScroll:we,scrollWidth:fe},this.getTreeNodeRequiredProps(),dt))))}}],[{key:"getDerivedStateFromProps",value:function(P,_e){var Ie=_e.prevProps,Te={prevProps:P};function ze(S){return!Ie&&P.hasOwnProperty(S)||Ie&&Ie[S]!==P[S]}var Ue,ft=_e.fieldNames;if(ze("fieldNames")&&(ft=(0,We.w$)(P.fieldNames),Te.fieldNames=ft),ze("treeData")?Ue=P.treeData:ze("children")&&((0,$.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ue=(0,We.zn)(P.children)),Ue){Te.treeData=Ue;var de=(0,We.I8)(Ue,{fieldNames:ft});Te.keyEntities=(0,L.Z)((0,x.Z)({},ce,ct),de.keyEntities)}var xe=Te.keyEntities||_e.keyEntities;if(ze("expandedKeys")||Ie&&ze("autoExpandParent"))Te.expandedKeys=P.autoExpandParent||!Ie&&P.defaultExpandParent?(0,jt.r7)(P.expandedKeys,xe):P.expandedKeys;else if(!Ie&&P.defaultExpandAll){var Ot=(0,L.Z)({},xe);delete Ot[ce];var _t=[];Object.keys(Ot).forEach(function(S){var je=Ot[S];je.children&&je.children.length&&_t.push(je.key)}),Te.expandedKeys=_t}else!Ie&&P.defaultExpandedKeys&&(Te.expandedKeys=P.autoExpandParent||P.defaultExpandParent?(0,jt.r7)(P.defaultExpandedKeys,xe):P.defaultExpandedKeys);if(Te.expandedKeys||delete Te.expandedKeys,Ue||Te.expandedKeys){var Pt=(0,We.oH)(Ue||_e.treeData,Te.expandedKeys||_e.expandedKeys,ft);Te.flattenNodes=Pt}if(P.selectable&&(ze("selectedKeys")?Te.selectedKeys=(0,jt.BT)(P.selectedKeys,P):!Ie&&P.defaultSelectedKeys&&(Te.selectedKeys=(0,jt.BT)(P.defaultSelectedKeys,P))),P.checkable){var kt;if(ze("checkedKeys")?kt=(0,jt.E6)(P.checkedKeys)||{}:!Ie&&P.defaultCheckedKeys?kt=(0,jt.E6)(P.defaultCheckedKeys)||{}:Ue&&(kt=(0,jt.E6)(P.checkedKeys)||{checkedKeys:_e.checkedKeys,halfCheckedKeys:_e.halfCheckedKeys}),kt){var mt=kt,Vt=mt.checkedKeys,Nt=Vt===void 0?[]:Vt,De=mt.halfCheckedKeys,gt=De===void 0?[]:De;if(!P.checkStrictly){var E=(0,bt.S)(Nt,!0,xe);Nt=E.checkedKeys,gt=E.halfCheckedKeys}Te.checkedKeys=Nt,Te.halfCheckedKeys=gt}}return ze("loadedKeys")&&(Te.loadedKeys=P.loadedKeys),Te}}]),Ge}(H.Component);(0,x.Z)(pt,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:R,allowDrop:function(){return!0},expandAction:!1}),(0,x.Z)(pt,"TreeNode",Ke.Z);var Qe=pt,Ne=Qe},82661:function($n,Rt,u){"use strict";u.d(Rt,{BT:function(){return H},E6:function(){return R},L0:function(){return x},OM:function(){return $},_5:function(){return l},r7:function(){return Q},wA:function(){return y},yx:function(){return N}});var i=u(77654),K=u(43749),L=u(48736),he=u(59301),Z=u(639),g=u(65065),W=u(34061),Y=null;function l(O,I){if(!O)return[];var ue=O.slice(),Se=ue.indexOf(I);return Se>=0&&ue.splice(Se,1),ue}function x(O,I){var ue=(O||[]).slice();return ue.indexOf(I)===-1&&ue.push(I),ue}function N(O){return O.split("-")}function y(O,I){var ue=[],Se=(0,g.Z)(I,O);function me(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ke.forEach(function(Je){var ke=Je.key,We=Je.children;ue.push(ke),me(We)})}return me(Se.children),ue}function T(O){if(O.parent){var I=N(O.pos);return Number(I[I.length-1])===O.parent.children.length-1}return!1}function A(O){var I=N(O.pos);return Number(I[I.length-1])===0}function $(O,I,ue,Se,me,Ke,Je,ke,We,oe){var k,_=O.clientX,ee=O.clientY,ne=O.target.getBoundingClientRect(),se=ne.top,w=ne.height,D=(oe==="rtl"?-1:1)*(((me==null?void 0:me.x)||0)-_),ce=(D-12)/Se,Oe=We.filter(function(Ne){var le;return(le=ke[Ne])===null||le===void 0||(le=le.children)===null||le===void 0?void 0:le.length}),ct=(0,g.Z)(ke,ue.eventKey);if(ee<se+w/2){var Tt=Je.findIndex(function(Ne){return Ne.key===ct.key}),Ae=Tt<=0?0:Tt-1,qe=Je[Ae].key;ct=(0,g.Z)(ke,qe)}var ht=ct.key,tt=ct,Fe=ct.key,jt=0,bt=0;if(!Oe.includes(ht))for(var cn=0;cn<ce&&T(ct);cn+=1)ct=ct.parent,bt+=1;var vt=I.data,pt=ct.node,Qe=!0;return A(ct)&&ct.level===0&&ee<se+w/2&&Ke({dragNode:vt,dropNode:pt,dropPosition:-1})&&ct.key===ue.eventKey?jt=-1:(tt.children||[]).length&&Oe.includes(Fe)?Ke({dragNode:vt,dropNode:pt,dropPosition:0})?jt=0:Qe=!1:bt===0?ce>-1.5?Ke({dragNode:vt,dropNode:pt,dropPosition:1})?jt=1:Qe=!1:Ke({dragNode:vt,dropNode:pt,dropPosition:0})?jt=0:Ke({dragNode:vt,dropNode:pt,dropPosition:1})?jt=1:Qe=!1:Ke({dragNode:vt,dropNode:pt,dropPosition:1})?jt=1:Qe=!1,{dropPosition:jt,dropLevelOffset:bt,dropTargetKey:ct.key,dropTargetPos:ct.pos,dragOverNodeKey:Fe,dropContainerKey:jt===0?null:((k=ct.parent)===null||k===void 0?void 0:k.key)||null,dropAllowed:Qe}}function H(O,I){if(O){var ue=I.multiple;return ue?O.slice():O.length?[O[0]]:O}}var X=function(I){return I};function V(O,I){if(!O)return[];var ue=I||{},Se=ue.processProps,me=Se===void 0?X:Se,Ke=Array.isArray(O)?O:[O];return Ke.map(function(Je){var ke=Je.children,We=_objectWithoutProperties(Je,Y),oe=V(ke,I);return React.createElement(TreeNode,_extends({key:We.key},me(We)),oe)})}function R(O){if(!O)return null;var I;if(Array.isArray(O))I={checkedKeys:O,halfCheckedKeys:void 0};else if((0,K.Z)(O)==="object")I={checkedKeys:O.checked||void 0,halfCheckedKeys:O.halfChecked||void 0};else return(0,L.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return I}function Q(O,I){var ue=new Set;function Se(me){if(!ue.has(me)){var Ke=(0,g.Z)(I,me);if(Ke){ue.add(me);var Je=Ke.parent,ke=Ke.node;ke.disabled||Je&&Se(Je.key)}}}return(O||[]).forEach(function(me){Se(me)}),(0,i.Z)(ue)}},34643:function($n,Rt,u){"use strict";u.d(Rt,{S:function(){return W}});var i=u(48736),K=u(65065);function L(Y,l){var x=new Set;return Y.forEach(function(N){l.has(N)||x.add(N)}),x}function he(Y){var l=Y||{},x=l.disabled,N=l.disableCheckbox,y=l.checkable;return!!(x||N)||y===!1}function Z(Y,l,x,N){for(var y=new Set(Y),T=new Set,A=0;A<=x;A+=1){var $=l.get(A)||new Set;$.forEach(function(R){var Q=R.key,O=R.node,I=R.children,ue=I===void 0?[]:I;y.has(Q)&&!N(O)&&ue.filter(function(Se){return!N(Se.node)}).forEach(function(Se){y.add(Se.key)})})}for(var H=new Set,X=x;X>=0;X-=1){var V=l.get(X)||new Set;V.forEach(function(R){var Q=R.parent,O=R.node;if(!(N(O)||!R.parent||H.has(R.parent.key))){if(N(R.parent.node)){H.add(Q.key);return}var I=!0,ue=!1;(Q.children||[]).filter(function(Se){return!N(Se.node)}).forEach(function(Se){var me=Se.key,Ke=y.has(me);I&&!Ke&&(I=!1),!ue&&(Ke||T.has(me))&&(ue=!0)}),I&&y.add(Q.key),ue&&T.add(Q.key),H.add(Q.key)}})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(L(T,y))}}function g(Y,l,x,N,y){for(var T=new Set(Y),A=new Set(l),$=0;$<=N;$+=1){var H=x.get($)||new Set;H.forEach(function(Q){var O=Q.key,I=Q.node,ue=Q.children,Se=ue===void 0?[]:ue;!T.has(O)&&!A.has(O)&&!y(I)&&Se.filter(function(me){return!y(me.node)}).forEach(function(me){T.delete(me.key)})})}A=new Set;for(var X=new Set,V=N;V>=0;V-=1){var R=x.get(V)||new Set;R.forEach(function(Q){var O=Q.parent,I=Q.node;if(!(y(I)||!Q.parent||X.has(Q.parent.key))){if(y(Q.parent.node)){X.add(O.key);return}var ue=!0,Se=!1;(O.children||[]).filter(function(me){return!y(me.node)}).forEach(function(me){var Ke=me.key,Je=T.has(Ke);ue&&!Je&&(ue=!1),!Se&&(Je||A.has(Ke))&&(Se=!0)}),ue||T.delete(O.key),Se&&A.add(O.key),X.add(O.key)}})}return{checkedKeys:Array.from(T),halfCheckedKeys:Array.from(L(A,T))}}function W(Y,l,x,N){var y=[],T;N?T=N:T=he;var A=new Set(Y.filter(function(V){var R=!!(0,K.Z)(x,V);return R||y.push(V),R})),$=new Map,H=0;Object.keys(x).forEach(function(V){var R=x[V],Q=R.level,O=$.get(Q);O||(O=new Set,$.set(Q,O)),O.add(R),H=Math.max(H,Q)}),(0,i.ZP)(!y.length,"Tree missing follow keys: ".concat(y.slice(0,100).map(function(V){return"'".concat(V,"'")}).join(", ")));var X;return l===!0?X=Z(A,$,H,T):X=g(A,l.halfCheckedKeys,$,H,T),X}},65065:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return i}});function i(K,L){return K[L]}},34061:function($n,Rt,u){"use strict";u.d(Rt,{F:function(){return Q},H8:function(){return R},I8:function(){return V},km:function(){return y},oH:function(){return H},w$:function(){return T},zn:function(){return $}});var i=u(43749),K=u(77654),L=u(85899),he=u(42244),Z=u(11592),g=u(2738),W=u(48736),Y=u(65065),l=["children"];function x(O,I){return"".concat(O,"-").concat(I)}function N(O){return O&&O.type&&O.type.isTreeNode}function y(O,I){return O!=null?O:I}function T(O){var I=O||{},ue=I.title,Se=I._title,me=I.key,Ke=I.children,Je=ue||"title";return{title:Je,_title:Se||[Je],key:me||"key",children:Ke||"children"}}function A(O,I){var ue=new Map;function Se(me){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(me||[]).forEach(function(Je){var ke=Je[I.key],We=Je[I.children];warning(ke!=null,"Tree node must have a certain key: [".concat(Ke).concat(ke,"]"));var oe=String(ke);warning(!ue.has(oe)||ke===null||ke===void 0,"Same 'key' exist in the Tree: ".concat(oe)),ue.set(oe,!0),Se(We,"".concat(Ke).concat(oe," > "))})}Se(O)}function $(O){function I(ue){var Se=(0,Z.Z)(ue);return Se.map(function(me){if(!N(me))return(0,W.ZP)(!me,"Tree/TreeNode can only accept TreeNode as children."),null;var Ke=me.key,Je=me.props,ke=Je.children,We=(0,he.Z)(Je,l),oe=(0,L.Z)({key:Ke},We),k=I(ke);return k.length&&(oe.children=k),oe}).filter(function(me){return me})}return I(O)}function H(O,I,ue){var Se=T(ue),me=Se._title,Ke=Se.key,Je=Se.children,ke=new Set(I===!0?[]:I),We=[];function oe(k){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return k.map(function(ee,ne){for(var se=x(_?_.pos:"0",ne),w=y(ee[Ke],se),D,ce=0;ce<me.length;ce+=1){var Oe=me[ce];if(ee[Oe]!==void 0){D=ee[Oe];break}}var ct=Object.assign((0,g.Z)(ee,[].concat((0,K.Z)(me),[Ke,Je])),{title:D,key:w,parent:_,pos:se,children:null,data:ee,isStart:[].concat((0,K.Z)(_?_.isStart:[]),[ne===0]),isEnd:[].concat((0,K.Z)(_?_.isEnd:[]),[ne===k.length-1])});return We.push(ct),I===!0||ke.has(w)?ct.children=oe(ee[Je]||[],ct):ct.children=[],ct})}return oe(O),We}function X(O,I,ue){var Se={};(0,i.Z)(ue)==="object"?Se=ue:Se={externalGetKey:ue},Se=Se||{};var me=Se,Ke=me.childrenPropName,Je=me.externalGetKey,ke=me.fieldNames,We=T(ke),oe=We.key,k=We.children,_=Ke||k,ee;Je?typeof Je=="string"?ee=function(w){return w[Je]}:typeof Je=="function"&&(ee=function(w){return Je(w)}):ee=function(w,D){return y(w[oe],D)};function ne(se,w,D,ce){var Oe=se?se[_]:O,ct=se?x(D.pos,w):"0",Tt=se?[].concat((0,K.Z)(ce),[se]):[];if(se){var Ae=ee(se,ct),qe={node:se,index:w,pos:ct,key:Ae,parentPos:D.node?D.pos:null,level:D.level+1,nodes:Tt};I(qe)}Oe&&Oe.forEach(function(ht,tt){ne(ht,tt,{node:se,pos:ct,level:D?D.level+1:-1},Tt)})}ne(null)}function V(O){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=I.initWrapper,Se=I.processEntity,me=I.onProcessFinished,Ke=I.externalGetKey,Je=I.childrenPropName,ke=I.fieldNames,We=arguments.length>2?arguments[2]:void 0,oe=Ke||We,k={},_={},ee={posEntities:k,keyEntities:_};return ue&&(ee=ue(ee)||ee),X(O,function(ne){var se=ne.node,w=ne.index,D=ne.pos,ce=ne.key,Oe=ne.parentPos,ct=ne.level,Tt=ne.nodes,Ae={node:se,nodes:Tt,index:w,key:ce,pos:D,level:ct},qe=y(ce,D);k[D]=Ae,_[qe]=Ae,Ae.parent=k[Oe],Ae.parent&&(Ae.parent.children=Ae.parent.children||[],Ae.parent.children.push(Ae)),Se&&Se(Ae,ee)},{externalGetKey:oe,childrenPropName:Je,fieldNames:ke}),me&&me(ee),ee}function R(O,I){var ue=I.expandedKeys,Se=I.selectedKeys,me=I.loadedKeys,Ke=I.loadingKeys,Je=I.checkedKeys,ke=I.halfCheckedKeys,We=I.dragOverNodeKey,oe=I.dropPosition,k=I.keyEntities,_=(0,Y.Z)(k,O),ee={eventKey:O,expanded:ue.indexOf(O)!==-1,selected:Se.indexOf(O)!==-1,loaded:me.indexOf(O)!==-1,loading:Ke.indexOf(O)!==-1,checked:Je.indexOf(O)!==-1,halfChecked:ke.indexOf(O)!==-1,pos:String(_?_.pos:""),dragOver:We===O&&oe===0,dragOverGapTop:We===O&&oe===-1,dragOverGapBottom:We===O&&oe===1};return ee}function Q(O){var I=O.data,ue=O.expanded,Se=O.selected,me=O.checked,Ke=O.loaded,Je=O.loading,ke=O.halfChecked,We=O.dragOver,oe=O.dragOverGapTop,k=O.dragOverGapBottom,_=O.pos,ee=O.active,ne=O.eventKey,se=(0,L.Z)((0,L.Z)({},I),{},{expanded:ue,selected:Se,checked:me,loaded:Ke,loading:Je,halfChecked:ke,dragOver:We,dragOverGapTop:oe,dragOverGapBottom:k,pos:_,active:ee,key:ne});return"props"in se||Object.defineProperty(se,"props",{get:function(){return(0,W.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),O}}),se}},8224:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return K}});var i=u(4676);function K(L,he,Z,g){var W=i.unstable_batchedUpdates?function(l){i.unstable_batchedUpdates(Z,l)}:Z;return L!=null&&L.addEventListener&&L.addEventListener(he,W,g),{remove:function(){L!=null&&L.removeEventListener&&L.removeEventListener(he,W,g)}}}},24514:function($n,Rt,u){"use strict";u.d(Rt,{G:function(){return he}});var i=u(47273),K=function(g){if((0,i.Z)()&&window.document.documentElement){var W=Array.isArray(g)?g:[g],Y=window.document.documentElement;return W.some(function(l){return l in Y.style})}return!1},L=function(g,W){if(!K(g))return!1;var Y=document.createElement("div"),l=Y.style[g];return Y.style[g]=W,Y.style[g]!==l};function he(Z,g){return!Array.isArray(Z)&&g!==void 0?L(Z,g):K(Z)}},49658:function($n,Rt){"use strict";Rt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var u=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(u)||/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(u==null?void 0:u.substr(0,4))}},48911:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return vt}});var i=u(60499),K=u(43749),L=u(85899),he=u(18642),Z=u(72190),g=u(42244),W=u(92310),Y=u.n(W),l=u(29301),x=u(70425),N=u(34280),y=u(59301),T=u(4676),A=y.forwardRef(function(pt,Qe){var Ne=pt.height,le=pt.offsetY,Pe=pt.offsetX,Ge=pt.children,j=pt.prefixCls,P=pt.onInnerResize,_e=pt.innerProps,Ie=pt.rtl,Te=pt.extra,ze={},Ue={display:"flex",flexDirection:"column"};return le!==void 0&&(ze={height:Ne,position:"relative",overflow:"hidden"},Ue=(0,L.Z)((0,L.Z)({},Ue),{},(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)({transform:"translateY(".concat(le,"px)")},Ie?"marginRight":"marginLeft",-Pe),"position","absolute"),"left",0),"right",0),"top",0))),y.createElement("div",{style:ze},y.createElement(l.Z,{onResize:function(de){var xe=de.offsetHeight;xe&&P&&P()}},y.createElement("div",(0,i.Z)({style:Ue,className:Y()((0,he.Z)({},"".concat(j,"-holder-inner"),j)),ref:Qe},_e),Ge,Te)))});A.displayName="Filler";var $=A;function H(pt){var Qe=pt.children,Ne=pt.setRef,le=y.useCallback(function(Pe){Ne(Pe)},[]);return y.cloneElement(Qe,{ref:le})}function X(pt,Qe,Ne,le,Pe,Ge,j,P){var _e=P.getKey;return pt.slice(Qe,Ne+1).map(function(Ie,Te){var ze=Qe+Te,Ue=j(Ie,ze,{style:{width:le},offsetX:Pe}),ft=_e(Ie);return y.createElement(H,{key:ft,setRef:function(xe){return Ge(Ie,xe)}},Ue)})}function V(pt,Qe,Ne,le){var Pe=Ne-pt,Ge=Qe-Ne,j=Math.min(Pe,Ge)*2;if(le<=j){var P=Math.floor(le/2);return le%2?Ne+P+1:Ne-P}return Pe>Ge?Ne-(le-Ge):Ne+(le-Pe)}function R(pt,Qe,Ne){var le=pt.length,Pe=Qe.length,Ge,j;if(le===0&&Pe===0)return null;le<Pe?(Ge=pt,j=Qe):(Ge=Qe,j=pt);var P={__EMPTY_ITEM__:!0};function _e(de){return de!==void 0?Ne(de):P}for(var Ie=null,Te=Math.abs(le-Pe)!==1,ze=0;ze<j.length;ze+=1){var Ue=_e(Ge[ze]),ft=_e(j[ze]);if(Ue!==ft){Ie=ze,Te=Te||Ue!==_e(j[ze+1]);break}}return Ie===null?null:{index:Ie,multiple:Te}}function Q(pt,Qe,Ne){var le=y.useState(pt),Pe=(0,Z.Z)(le,2),Ge=Pe[0],j=Pe[1],P=y.useState(null),_e=(0,Z.Z)(P,2),Ie=_e[0],Te=_e[1];return y.useEffect(function(){var ze=R(Ge||[],pt||[],Qe);(ze==null?void 0:ze.index)!==void 0&&(Ne==null||Ne(ze.index),Te(pt[ze.index])),j(pt)},[pt]),[Ie]}var O=u(16089),I=(typeof navigator=="undefined"?"undefined":(0,K.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ue=I,Se=function(pt,Qe,Ne,le){var Pe=(0,y.useRef)(!1),Ge=(0,y.useRef)(null);function j(){clearTimeout(Ge.current),Pe.current=!0,Ge.current=setTimeout(function(){Pe.current=!1},50)}var P=(0,y.useRef)({top:pt,bottom:Qe,left:Ne,right:le});return P.current.top=pt,P.current.bottom=Qe,P.current.left=Ne,P.current.right=le,function(_e,Ie){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ze=_e?Ie<0&&P.current.left||Ie>0&&P.current.right:Ie<0&&P.current.top||Ie>0&&P.current.bottom;return Te&&ze?(clearTimeout(Ge.current),Pe.current=!1):(!ze||Pe.current)&&j(),!Pe.current&&ze}};function me(pt,Qe,Ne,le,Pe,Ge,j){var P=(0,y.useRef)(0),_e=(0,y.useRef)(null),Ie=(0,y.useRef)(null),Te=(0,y.useRef)(!1),ze=Se(Qe,Ne,le,Pe);function Ue(Pt,kt){if(O.Z.cancel(_e.current),!ze(!1,kt)){var mt=Pt;if(!mt._virtualHandled)mt._virtualHandled=!0;else return;P.current+=kt,Ie.current=kt,ue||mt.preventDefault(),_e.current=(0,O.Z)(function(){var Vt=Te.current?10:1;j(P.current*Vt,!1),P.current=0})}}function ft(Pt,kt){j(kt,!0),ue||Pt.preventDefault()}var de=(0,y.useRef)(null),xe=(0,y.useRef)(null);function Ot(Pt){if(pt){O.Z.cancel(xe.current),xe.current=(0,O.Z)(function(){de.current=null},2);var kt=Pt.deltaX,mt=Pt.deltaY,Vt=Pt.shiftKey,Nt=kt,De=mt;(de.current==="sx"||!de.current&&Vt&&mt&&!kt)&&(Nt=mt,De=0,de.current="sx");var gt=Math.abs(Nt),E=Math.abs(De);de.current===null&&(de.current=Ge&>>E?"x":"y"),de.current==="y"?Ue(Pt,De):ft(Pt,Nt)}}function _t(Pt){pt&&(Te.current=Pt.detail===Ie.current)}return[Ot,_t]}function Ke(pt,Qe,Ne,le){var Pe=y.useMemo(function(){return[new Map,[]]},[pt,Ne.id,le]),Ge=(0,Z.Z)(Pe,2),j=Ge[0],P=Ge[1],_e=function(Te){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Te,Ue=j.get(Te),ft=j.get(ze);if(Ue===void 0||ft===void 0)for(var de=pt.length,xe=P.length;xe<de;xe+=1){var Ot,_t=pt[xe],Pt=Qe(_t);j.set(Pt,xe);var kt=(Ot=Ne.get(Pt))!==null&&Ot!==void 0?Ot:le;if(P[xe]=(P[xe-1]||0)+kt,Pt===Te&&(Ue=xe),Pt===ze&&(ft=xe),Ue!==void 0&&ft!==void 0)break}return{top:P[Ue-1]||0,bottom:P[ft]}};return _e}var Je=u(38705),ke=u(17212),We=function(){function pt(){(0,Je.Z)(this,pt),(0,he.Z)(this,"maps",void 0),(0,he.Z)(this,"id",0),(0,he.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,ke.Z)(pt,[{key:"set",value:function(Ne,le){this.diffRecords.set(Ne,this.maps[Ne]),this.maps[Ne]=le,this.id+=1}},{key:"get",value:function(Ne){return this.maps[Ne]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),pt}(),oe=We;function k(pt){var Qe=parseFloat(pt);return isNaN(Qe)?0:Qe}function _(pt,Qe,Ne){var le=y.useState(0),Pe=(0,Z.Z)(le,2),Ge=Pe[0],j=Pe[1],P=(0,y.useRef)(new Map),_e=(0,y.useRef)(new oe),Ie=(0,y.useRef)(0);function Te(){Ie.current+=1}function ze(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Te();var de=function(){var _t=!1;P.current.forEach(function(Pt,kt){if(Pt&&Pt.offsetParent){var mt=Pt.offsetHeight,Vt=getComputedStyle(Pt),Nt=Vt.marginTop,De=Vt.marginBottom,gt=k(Nt),E=k(De),S=mt+gt+E;_e.current.get(kt)!==S&&(_e.current.set(kt,S),_t=!0)}}),_t&&j(function(Pt){return Pt+1})};if(ft)de();else{Ie.current+=1;var xe=Ie.current;Promise.resolve().then(function(){xe===Ie.current&&de()})}}function Ue(ft,de){var xe=pt(ft),Ot=P.current.get(xe);de?(P.current.set(xe,de),ze()):P.current.delete(xe),!Ot!=!de&&(de?Qe==null||Qe(ft):Ne==null||Ne(ft))}return(0,y.useEffect)(function(){return Te},[]),[Ue,ze,_e.current,Ge]}var ee=14/15;function ne(pt,Qe,Ne){var le=(0,y.useRef)(!1),Pe=(0,y.useRef)(0),Ge=(0,y.useRef)(0),j=(0,y.useRef)(null),P=(0,y.useRef)(null),_e,Ie=function(ft){if(le.current){var de=Math.ceil(ft.touches[0].pageX),xe=Math.ceil(ft.touches[0].pageY),Ot=Pe.current-de,_t=Ge.current-xe,Pt=Math.abs(Ot)>Math.abs(_t);Pt?Pe.current=de:Ge.current=xe;var kt=Ne(Pt,Pt?Ot:_t,!1,ft);kt&&ft.preventDefault(),clearInterval(P.current),kt&&(P.current=setInterval(function(){Pt?Ot*=ee:_t*=ee;var mt=Math.floor(Pt?Ot:_t);(!Ne(Pt,mt,!0)||Math.abs(mt)<=.1)&&clearInterval(P.current)},16))}},Te=function(){le.current=!1,_e()},ze=function(ft){_e(),ft.touches.length===1&&!le.current&&(le.current=!0,Pe.current=Math.ceil(ft.touches[0].pageX),Ge.current=Math.ceil(ft.touches[0].pageY),j.current=ft.target,j.current.addEventListener("touchmove",Ie,{passive:!1}),j.current.addEventListener("touchend",Te,{passive:!0}))};_e=function(){j.current&&(j.current.removeEventListener("touchmove",Ie),j.current.removeEventListener("touchend",Te))},(0,N.Z)(function(){return pt&&Qe.current.addEventListener("touchstart",ze,{passive:!0}),function(){var Ue;(Ue=Qe.current)===null||Ue===void 0||Ue.removeEventListener("touchstart",ze),_e(),clearInterval(P.current)}},[pt])}function se(pt){return Math.floor(Math.pow(pt,.5))}function w(pt,Qe){var Ne="touches"in pt?pt.touches[0]:pt;return Ne[Qe?"pageX":"pageY"]-window[Qe?"scrollX":"scrollY"]}function D(pt,Qe,Ne){y.useEffect(function(){var le=Qe.current;if(pt&&le){var Pe=!1,Ge,j,P=function(){O.Z.cancel(Ge)},_e=function Ue(){P(),Ge=(0,O.Z)(function(){Ne(j),Ue()})},Ie=function(){Pe=!1,P()},Te=function(ft){if(!(ft.target.draggable||ft.button!==0)){var de=ft;de._virtualHandled||(de._virtualHandled=!0,Pe=!0)}},ze=function(ft){if(Pe){var de=w(ft,!1),xe=le.getBoundingClientRect(),Ot=xe.top,_t=xe.bottom;if(de<=Ot){var Pt=Ot-de;j=-se(Pt),_e()}else if(de>=_t){var kt=de-_t;j=se(kt),_e()}else P()}};return le.addEventListener("mousedown",Te),le.ownerDocument.addEventListener("mouseup",Ie),le.ownerDocument.addEventListener("mousemove",ze),le.ownerDocument.addEventListener("dragend",Ie),function(){le.removeEventListener("mousedown",Te),le.ownerDocument.removeEventListener("mouseup",Ie),le.ownerDocument.removeEventListener("mousemove",ze),le.ownerDocument.removeEventListener("dragend",Ie),P()}}},[pt])}var ce=10;function Oe(pt,Qe,Ne,le,Pe,Ge,j,P){var _e=y.useRef(),Ie=y.useState(null),Te=(0,Z.Z)(Ie,2),ze=Te[0],Ue=Te[1];return(0,N.Z)(function(){if(ze&&ze.times<ce){if(!pt.current){Ue(function(Ee){return(0,L.Z)({},Ee)});return}Ge();var ft=ze.targetAlign,de=ze.originAlign,xe=ze.index,Ot=ze.offset,_t=pt.current.clientHeight,Pt=!1,kt=ft,mt=null;if(_t){for(var Vt=ft||de,Nt=0,De=0,gt=0,E=Math.min(Qe.length-1,xe),S=0;S<=E;S+=1){var je=Pe(Qe[S]);De=Nt;var G=Ne.get(je);gt=De+(G===void 0?le:G),Nt=gt}for(var Ce=Vt==="top"?Ot:_t-Ot,en=E;en>=0;en-=1){var rt=Pe(Qe[en]),st=Ne.get(rt);if(st===void 0){Pt=!0;break}if(Ce-=st,Ce<=0)break}switch(Vt){case"top":mt=De-Ot;break;case"bottom":mt=gt-_t+Ot;break;default:{var xt=pt.current.scrollTop,pe=xt+_t;De<xt?kt="top":gt>pe&&(kt="bottom")}}mt!==null&&j(mt),mt!==ze.lastTop&&(Pt=!0)}Pt&&Ue((0,L.Z)((0,L.Z)({},ze),{},{times:ze.times+1,targetAlign:kt,lastTop:mt}))}},[ze,pt.current]),function(ft){if(ft==null){P();return}if(O.Z.cancel(_e.current),typeof ft=="number")j(ft);else if(ft&&(0,K.Z)(ft)==="object"){var de,xe=ft.align;"index"in ft?de=ft.index:de=Qe.findIndex(function(Pt){return Pe(Pt)===ft.key});var Ot=ft.offset,_t=Ot===void 0?0:Ot;Ue({times:0,index:de,offset:_t,originAlign:xe})}}}var ct=y.forwardRef(function(pt,Qe){var Ne=pt.prefixCls,le=pt.rtl,Pe=pt.scrollOffset,Ge=pt.scrollRange,j=pt.onStartMove,P=pt.onStopMove,_e=pt.onScroll,Ie=pt.horizontal,Te=pt.spinSize,ze=pt.containerSize,Ue=pt.style,ft=pt.thumbStyle,de=pt.showScrollBar,xe=y.useState(!1),Ot=(0,Z.Z)(xe,2),_t=Ot[0],Pt=Ot[1],kt=y.useState(null),mt=(0,Z.Z)(kt,2),Vt=mt[0],Nt=mt[1],De=y.useState(null),gt=(0,Z.Z)(De,2),E=gt[0],S=gt[1],je=!le,G=y.useRef(),Ce=y.useRef(),en=y.useState(de),rt=(0,Z.Z)(en,2),st=rt[0],xt=rt[1],pe=y.useRef(),Ee=function(){de===!0||de===!1||(clearTimeout(pe.current),xt(!0),pe.current=setTimeout(function(){xt(!1)},3e3))},nt=Ge-ze||0,Ze=ze-Te||0,z=y.useMemo(function(){if(Pe===0||nt===0)return 0;var Ct=Pe/nt;return Ct*Ze},[Pe,nt,Ze]),St=function(ot){ot.stopPropagation(),ot.preventDefault()},fe=y.useRef({top:z,dragging:_t,pageY:Vt,startTop:E});fe.current={top:z,dragging:_t,pageY:Vt,startTop:E};var Kt=function(ot){Pt(!0),Nt(w(ot,Ie)),S(fe.current.top),j(),ot.stopPropagation(),ot.preventDefault()};y.useEffect(function(){var Ct=function(Ft){Ft.preventDefault()},ot=G.current,dt=Ce.current;return ot.addEventListener("touchstart",Ct,{passive:!1}),dt.addEventListener("touchstart",Kt,{passive:!1}),function(){ot.removeEventListener("touchstart",Ct),dt.removeEventListener("touchstart",Kt)}},[]);var dn=y.useRef();dn.current=nt;var Bt=y.useRef();Bt.current=Ze,y.useEffect(function(){if(_t){var Ct,ot=function(Ft){var Mt=fe.current,ie=Mt.dragging,ve=Mt.pageY,At=Mt.startTop;O.Z.cancel(Ct);var Be=G.current.getBoundingClientRect(),Le=ze/(Ie?Be.width:Be.height);if(ie){var ae=(w(Ft,Ie)-ve)*Le,Re=At;!je&&Ie?Re-=ae:Re+=ae;var $e=dn.current,He=Bt.current,ut=He?Re/He:0,rn=Math.ceil(ut*$e);rn=Math.max(rn,0),rn=Math.min(rn,$e),Ct=(0,O.Z)(function(){_e(rn,Ie)})}},dt=function(){Pt(!1),P()};return window.addEventListener("mousemove",ot,{passive:!0}),window.addEventListener("touchmove",ot,{passive:!0}),window.addEventListener("mouseup",dt,{passive:!0}),window.addEventListener("touchend",dt,{passive:!0}),function(){window.removeEventListener("mousemove",ot),window.removeEventListener("touchmove",ot),window.removeEventListener("mouseup",dt),window.removeEventListener("touchend",dt),O.Z.cancel(Ct)}}},[_t]),y.useEffect(function(){return Ee(),function(){clearTimeout(pe.current)}},[Pe]),y.useImperativeHandle(Qe,function(){return{delayHidden:Ee}});var J="".concat(Ne,"-scrollbar"),we={position:"absolute",visibility:st?null:"hidden"},M={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ie?(Object.assign(we,{height:8,left:0,right:0,bottom:0}),Object.assign(M,(0,he.Z)({height:"100%",width:Te},je?"left":"right",z))):(Object.assign(we,(0,he.Z)({width:8,top:0,bottom:0},je?"right":"left",0)),Object.assign(M,{width:"100%",height:Te,top:z})),y.createElement("div",{ref:G,className:Y()(J,(0,he.Z)((0,he.Z)((0,he.Z)({},"".concat(J,"-horizontal"),Ie),"".concat(J,"-vertical"),!Ie),"".concat(J,"-visible"),st)),style:(0,L.Z)((0,L.Z)({},we),Ue),onMouseDown:St,onMouseMove:Ee},y.createElement("div",{ref:Ce,className:Y()("".concat(J,"-thumb"),(0,he.Z)({},"".concat(J,"-thumb-moving"),_t)),style:(0,L.Z)((0,L.Z)({},M),ft),onMouseDown:Kt}))}),Tt=ct,Ae=20;function qe(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ne=pt/Qe*pt;return isNaN(Ne)&&(Ne=0),Ne=Math.max(Ne,Ae),Math.floor(Ne)}var ht=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],tt=[],Fe={overflowY:"auto",overflowAnchor:"none"};function jt(pt,Qe){var Ne=pt.prefixCls,le=Ne===void 0?"rc-virtual-list":Ne,Pe=pt.className,Ge=pt.height,j=pt.itemHeight,P=pt.fullHeight,_e=P===void 0?!0:P,Ie=pt.style,Te=pt.data,ze=pt.children,Ue=pt.itemKey,ft=pt.virtual,de=pt.direction,xe=pt.scrollWidth,Ot=pt.component,_t=Ot===void 0?"div":Ot,Pt=pt.onScroll,kt=pt.onVirtualScroll,mt=pt.onVisibleChange,Vt=pt.innerProps,Nt=pt.extraRender,De=pt.styles,gt=pt.showScrollBar,E=gt===void 0?"optional":gt,S=(0,g.Z)(pt,ht),je=y.useCallback(function(pn){return typeof Ue=="function"?Ue(pn):pn==null?void 0:pn[Ue]},[Ue]),G=_(je,null,null),Ce=(0,Z.Z)(G,4),en=Ce[0],rt=Ce[1],st=Ce[2],xt=Ce[3],pe=!!(ft!==!1&&Ge&&j),Ee=y.useMemo(function(){return Object.values(st.maps).reduce(function(pn,Tn){return pn+Tn},0)},[st.id,st.maps]),nt=pe&&Te&&(Math.max(j*Te.length,Ee)>Ge||!!xe),Ze=de==="rtl",z=Y()(le,(0,he.Z)({},"".concat(le,"-rtl"),Ze),Pe),St=Te||tt,fe=(0,y.useRef)(),Kt=(0,y.useRef)(),dn=(0,y.useRef)(),Bt=(0,y.useState)(0),J=(0,Z.Z)(Bt,2),we=J[0],M=J[1],Ct=(0,y.useState)(0),ot=(0,Z.Z)(Ct,2),dt=ot[0],$t=ot[1],Ft=(0,y.useState)(!1),Mt=(0,Z.Z)(Ft,2),ie=Mt[0],ve=Mt[1],At=function(){ve(!0)},Be=function(){ve(!1)},Le={getKey:je};function ae(pn){M(function(Tn){var Xn;typeof pn=="function"?Xn=pn(Tn):Xn=pn;var nr=Rn(Xn);return fe.current.scrollTop=nr,nr})}var Re=(0,y.useRef)({start:0,end:St.length}),$e=(0,y.useRef)(),He=Q(St,je),ut=(0,Z.Z)(He,1),rn=ut[0];$e.current=rn;var on=y.useMemo(function(){if(!pe)return{scrollHeight:void 0,start:0,end:St.length-1,offset:void 0};if(!nt){var pn;return{scrollHeight:((pn=Kt.current)===null||pn===void 0?void 0:pn.offsetHeight)||0,start:0,end:St.length-1,offset:void 0}}for(var Tn=0,Xn,nr,gr,Er=St.length,Fn=0;Fn<Er;Fn+=1){var yr=St[Fn],Ir=je(yr),Zr=st.get(Ir),Nr=Tn+(Zr===void 0?j:Zr);Nr>=we&&Xn===void 0&&(Xn=Fn,nr=Tn),Nr>we+Ge&&gr===void 0&&(gr=Fn),Tn=Nr}return Xn===void 0&&(Xn=0,nr=0,gr=Math.ceil(Ge/j)),gr===void 0&&(gr=St.length-1),gr=Math.min(gr+1,St.length-1),{scrollHeight:Tn,start:Xn,end:gr,offset:nr}},[nt,pe,we,St,xt,Ge]),Ve=on.scrollHeight,lt=on.start,wt=on.end,Qt=on.offset;Re.current.start=lt,Re.current.end=wt,y.useLayoutEffect(function(){var pn=st.getRecord();if(pn.size===1){var Tn=Array.from(pn.keys())[0],Xn=pn.get(Tn),nr=St[lt];if(nr&&Xn===void 0){var gr=je(nr);if(gr===Tn){var Er=st.get(Tn),Fn=Er-j;ae(function(yr){return yr+Fn})}}}st.resetRecord()},[Ve]);var Yt=y.useState({width:0,height:Ge}),ye=(0,Z.Z)(Yt,2),at=ye[0],Lt=ye[1],Dt=function(Tn){Lt({width:Tn.offsetWidth,height:Tn.offsetHeight})},zt=(0,y.useRef)(),an=(0,y.useRef)(),un=y.useMemo(function(){return qe(at.width,xe)},[at.width,xe]),sn=y.useMemo(function(){return qe(at.height,Ve)},[at.height,Ve]),vn=Ve-Ge,En=(0,y.useRef)(vn);En.current=vn;function Rn(pn){var Tn=pn;return Number.isNaN(En.current)||(Tn=Math.min(Tn,En.current)),Tn=Math.max(Tn,0),Tn}var bn=we<=0,Cn=we>=vn,Bn=dt<=0,Pn=dt>=xe,ir=Se(bn,Cn,Bn,Pn),In=function(){return{x:Ze?-dt:dt,y:we}},zn=(0,y.useRef)(In()),Yn=(0,x.zX)(function(pn){if(kt){var Tn=(0,L.Z)((0,L.Z)({},In()),pn);(zn.current.x!==Tn.x||zn.current.y!==Tn.y)&&(kt(Tn),zn.current=Tn)}});function tr(pn,Tn){var Xn=pn;Tn?((0,T.flushSync)(function(){$t(Xn)}),Yn()):ae(Xn)}function Jn(pn){var Tn=pn.currentTarget.scrollTop;Tn!==we&&ae(Tn),Pt==null||Pt(pn),Yn()}var qt=function(Tn){var Xn=Tn,nr=xe?xe-at.width:0;return Xn=Math.max(Xn,0),Xn=Math.min(Xn,nr),Xn},tn=(0,x.zX)(function(pn,Tn){Tn?((0,T.flushSync)(function(){$t(function(Xn){var nr=Xn+(Ze?-pn:pn);return qt(nr)})}),Yn()):ae(function(Xn){var nr=Xn+pn;return nr})}),yn=me(pe,bn,Cn,Bn,Pn,!!xe,tn),Zn=(0,Z.Z)(yn,2),Ht=Zn[0],Un=Zn[1];ne(pe,fe,function(pn,Tn,Xn,nr){var gr=nr;return ir(pn,Tn,Xn)?!1:!gr||!gr._virtualHandled?(gr&&(gr._virtualHandled=!0),Ht({preventDefault:function(){},deltaX:pn?Tn:0,deltaY:pn?0:Tn}),!0):!1}),D(nt,fe,function(pn){ae(function(Tn){return Tn+pn})}),(0,N.Z)(function(){function pn(Xn){var nr=bn&&Xn.detail<0,gr=Cn&&Xn.detail>0;pe&&!nr&&!gr&&Xn.preventDefault()}var Tn=fe.current;return Tn.addEventListener("wheel",Ht,{passive:!1}),Tn.addEventListener("DOMMouseScroll",Un,{passive:!0}),Tn.addEventListener("MozMousePixelScroll",pn,{passive:!1}),function(){Tn.removeEventListener("wheel",Ht),Tn.removeEventListener("DOMMouseScroll",Un),Tn.removeEventListener("MozMousePixelScroll",pn)}},[pe,bn,Cn]),(0,N.Z)(function(){if(xe){var pn=qt(dt);$t(pn),Yn({x:pn})}},[at.width,xe]);var er=function(){var Tn,Xn;(Tn=zt.current)===null||Tn===void 0||Tn.delayHidden(),(Xn=an.current)===null||Xn===void 0||Xn.delayHidden()},lr=Oe(fe,St,st,j,je,function(){return rt(!0)},ae,er);y.useImperativeHandle(Qe,function(){return{nativeElement:dn.current,getScrollInfo:In,scrollTo:function(Tn){function Xn(nr){return nr&&(0,K.Z)(nr)==="object"&&("left"in nr||"top"in nr)}Xn(Tn)?(Tn.left!==void 0&&$t(qt(Tn.left)),lr(Tn.top)):lr(Tn)}}}),(0,N.Z)(function(){if(mt){var pn=St.slice(lt,wt+1);mt(pn,St)}},[lt,wt,St]);var _r=Ke(St,je,st,j),Ar=Nt==null?void 0:Nt({start:lt,end:wt,virtual:nt,offsetX:dt,offsetY:Qt,rtl:Ze,getSize:_r}),Sr=X(St,lt,wt,xe,dt,en,ze,Le),Vn=null;Ge&&(Vn=(0,L.Z)((0,he.Z)({},_e?"height":"maxHeight",Ge),Fe),pe&&(Vn.overflowY="hidden",xe&&(Vn.overflowX="hidden"),ie&&(Vn.pointerEvents="none")));var An={};return Ze&&(An.dir="rtl"),y.createElement("div",(0,i.Z)({ref:dn,style:(0,L.Z)((0,L.Z)({},Ie),{},{position:"relative"}),className:z},An,S),y.createElement(l.Z,{onResize:Dt},y.createElement(_t,{className:"".concat(le,"-holder"),style:Vn,ref:fe,onScroll:Jn,onMouseEnter:er},y.createElement($,{prefixCls:le,height:Ve,offsetX:dt,offsetY:Qt,scrollWidth:xe,onInnerResize:rt,ref:Kt,innerProps:Vt,rtl:Ze,extra:Ar},Sr))),nt&&Ve>Ge&&y.createElement(Tt,{ref:zt,prefixCls:le,scrollOffset:we,scrollRange:Ve,rtl:Ze,onScroll:tr,onStartMove:At,onStopMove:Be,spinSize:sn,containerSize:at.height,style:De==null?void 0:De.verticalScrollBar,thumbStyle:De==null?void 0:De.verticalScrollBarThumb,showScrollBar:E}),nt&&xe>at.width&&y.createElement(Tt,{ref:an,prefixCls:le,scrollOffset:dt,scrollRange:xe,rtl:Ze,onScroll:tr,onStartMove:At,onStopMove:Be,spinSize:un,containerSize:at.width,horizontal:!0,style:De==null?void 0:De.horizontalScrollBar,thumbStyle:De==null?void 0:De.horizontalScrollBarThumb,showScrollBar:E}))}var bt=y.forwardRef(jt);bt.displayName="List";var cn=bt,vt=cn},83145:function($n,Rt,u){"use strict";Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CopyToClipboard=void 0;var i=L(u(59301)),K=L(u(25769));function L(R){return R&&R.__esModule?R:{default:R}}function he(R){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?he=function(O){return typeof O}:he=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},he(R)}function Z(R,Q){var O=Object.keys(R);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(R);Q&&(I=I.filter(function(ue){return Object.getOwnPropertyDescriptor(R,ue).enumerable})),O.push.apply(O,I)}return O}function g(R){for(var Q=1;Q<arguments.length;Q++){var O=arguments[Q]!=null?arguments[Q]:{};Q%2?Z(O,!0).forEach(function(I){X(R,I,O[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(O)):Z(O).forEach(function(I){Object.defineProperty(R,I,Object.getOwnPropertyDescriptor(O,I))})}return R}function W(R,Q){if(R==null)return{};var O=Y(R,Q),I,ue;if(Object.getOwnPropertySymbols){var Se=Object.getOwnPropertySymbols(R);for(ue=0;ue<Se.length;ue++)I=Se[ue],!(Q.indexOf(I)>=0)&&Object.prototype.propertyIsEnumerable.call(R,I)&&(O[I]=R[I])}return O}function Y(R,Q){if(R==null)return{};var O={},I=Object.keys(R),ue,Se;for(Se=0;Se<I.length;Se++)ue=I[Se],!(Q.indexOf(ue)>=0)&&(O[ue]=R[ue]);return O}function l(R,Q){if(!(R instanceof Q))throw new TypeError("Cannot call a class as a function")}function x(R,Q){for(var O=0;O<Q.length;O++){var I=Q[O];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(R,I.key,I)}}function N(R,Q,O){return Q&&x(R.prototype,Q),O&&x(R,O),R}function y(R,Q){return Q&&(he(Q)==="object"||typeof Q=="function")?Q:A(R)}function T(R){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},T(R)}function A(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function $(R,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(Q&&Q.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Q&&H(R,Q)}function H(R,Q){return H=Object.setPrototypeOf||function(I,ue){return I.__proto__=ue,I},H(R,Q)}function X(R,Q,O){return Q in R?Object.defineProperty(R,Q,{value:O,enumerable:!0,configurable:!0,writable:!0}):R[Q]=O,R}var V=function(R){$(Q,R);function Q(){var O,I;l(this,Q);for(var ue=arguments.length,Se=new Array(ue),me=0;me<ue;me++)Se[me]=arguments[me];return I=y(this,(O=T(Q)).call.apply(O,[this].concat(Se))),X(A(I),"onClick",function(Ke){var Je=I.props,ke=Je.text,We=Je.onCopy,oe=Je.children,k=Je.options,_=i.default.Children.only(oe),ee=(0,K.default)(ke,k);We&&We(ke,ee),_&&_.props&&typeof _.props.onClick=="function"&&_.props.onClick(Ke)}),I}return N(Q,[{key:"render",value:function(){var I=this.props,ue=I.text,Se=I.onCopy,me=I.options,Ke=I.children,Je=W(I,["text","onCopy","options","children"]),ke=i.default.Children.only(Ke);return i.default.cloneElement(ke,g({},Je,{onClick:this.onClick}))}}]),Q}(i.default.PureComponent);Rt.CopyToClipboard=V,X(V,"defaultProps",{onCopy:void 0,options:void 0})},56102:function($n,Rt,u){"use strict";var i=u(83145),K=i.CopyToClipboard;K.CopyToClipboard=K,$n.exports=K},76374:function($n,Rt,u){"use strict";var i=function(){if(typeof Map!="undefined")return Map;function oe(k,_){var ee=-1;return k.some(function(ne,se){return ne[0]===_?(ee=se,!0):!1}),ee}return function(){function k(){this.__entries__=[]}return Object.defineProperty(k.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),k.prototype.get=function(_){var ee=oe(this.__entries__,_),ne=this.__entries__[ee];return ne&&ne[1]},k.prototype.set=function(_,ee){var ne=oe(this.__entries__,_);~ne?this.__entries__[ne][1]=ee:this.__entries__.push([_,ee])},k.prototype.delete=function(_){var ee=this.__entries__,ne=oe(ee,_);~ne&&ee.splice(ne,1)},k.prototype.has=function(_){return!!~oe(this.__entries__,_)},k.prototype.clear=function(){this.__entries__.splice(0)},k.prototype.forEach=function(_,ee){ee===void 0&&(ee=null);for(var ne=0,se=this.__entries__;ne<se.length;ne++){var w=se[ne];_.call(ee,w[1],w[0])}},k}()}(),K=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,L=function(){return typeof u.g!="undefined"&&u.g.Math===Math?u.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),he=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(L):function(oe){return setTimeout(function(){return oe(Date.now())},1e3/60)}}(),Z=2;function g(oe,k){var _=!1,ee=!1,ne=0;function se(){_&&(_=!1,oe()),ee&&D()}function w(){he(se)}function D(){var ce=Date.now();if(_){if(ce-ne<Z)return;ee=!0}else _=!0,ee=!1,setTimeout(w,k);ne=ce}return D}var W=20,Y=["top","right","bottom","left","width","height","size","weight"],l=typeof MutationObserver!="undefined",x=function(){function oe(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=g(this.refresh.bind(this),W)}return oe.prototype.addObserver=function(k){~this.observers_.indexOf(k)||this.observers_.push(k),this.connected_||this.connect_()},oe.prototype.removeObserver=function(k){var _=this.observers_,ee=_.indexOf(k);~ee&&_.splice(ee,1),!_.length&&this.connected_&&this.disconnect_()},oe.prototype.refresh=function(){var k=this.updateObservers_();k&&this.refresh()},oe.prototype.updateObservers_=function(){var k=this.observers_.filter(function(_){return _.gatherActive(),_.hasActive()});return k.forEach(function(_){return _.broadcastActive()}),k.length>0},oe.prototype.connect_=function(){!K||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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)},oe.prototype.disconnect_=function(){!K||!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)},oe.prototype.onTransitionEnd_=function(k){var _=k.propertyName,ee=_===void 0?"":_,ne=Y.some(function(se){return!!~ee.indexOf(se)});ne&&this.refresh()},oe.getInstance=function(){return this.instance_||(this.instance_=new oe),this.instance_},oe.instance_=null,oe}(),N=function(oe,k){for(var _=0,ee=Object.keys(k);_<ee.length;_++){var ne=ee[_];Object.defineProperty(oe,ne,{value:k[ne],enumerable:!1,writable:!1,configurable:!0})}return oe},y=function(oe){var k=oe&&oe.ownerDocument&&oe.ownerDocument.defaultView;return k||L},T=ue(0,0,0,0);function A(oe){return parseFloat(oe)||0}function $(oe){for(var k=[],_=1;_<arguments.length;_++)k[_-1]=arguments[_];return k.reduce(function(ee,ne){var se=oe["border-"+ne+"-width"];return ee+A(se)},0)}function H(oe){for(var k=["top","right","bottom","left"],_={},ee=0,ne=k;ee<ne.length;ee++){var se=ne[ee],w=oe["padding-"+se];_[se]=A(w)}return _}function X(oe){var k=oe.getBBox();return ue(0,0,k.width,k.height)}function V(oe){var k=oe.clientWidth,_=oe.clientHeight;if(!k&&!_)return T;var ee=y(oe).getComputedStyle(oe),ne=H(ee),se=ne.left+ne.right,w=ne.top+ne.bottom,D=A(ee.width),ce=A(ee.height);if(ee.boxSizing==="border-box"&&(Math.round(D+se)!==k&&(D-=$(ee,"left","right")+se),Math.round(ce+w)!==_&&(ce-=$(ee,"top","bottom")+w)),!Q(oe)){var Oe=Math.round(D+se)-k,ct=Math.round(ce+w)-_;Math.abs(Oe)!==1&&(D-=Oe),Math.abs(ct)!==1&&(ce-=ct)}return ue(ne.left,ne.top,D,ce)}var R=function(){return typeof SVGGraphicsElement!="undefined"?function(oe){return oe instanceof y(oe).SVGGraphicsElement}:function(oe){return oe instanceof y(oe).SVGElement&&typeof oe.getBBox=="function"}}();function Q(oe){return oe===y(oe).document.documentElement}function O(oe){return K?R(oe)?X(oe):V(oe):T}function I(oe){var k=oe.x,_=oe.y,ee=oe.width,ne=oe.height,se=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,w=Object.create(se.prototype);return N(w,{x:k,y:_,width:ee,height:ne,top:_,right:k+ee,bottom:ne+_,left:k}),w}function ue(oe,k,_,ee){return{x:oe,y:k,width:_,height:ee}}var Se=function(){function oe(k){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ue(0,0,0,0),this.target=k}return oe.prototype.isActive=function(){var k=O(this.target);return this.contentRect_=k,k.width!==this.broadcastWidth||k.height!==this.broadcastHeight},oe.prototype.broadcastRect=function(){var k=this.contentRect_;return this.broadcastWidth=k.width,this.broadcastHeight=k.height,k},oe}(),me=function(){function oe(k,_){var ee=I(_);N(this,{target:k,contentRect:ee})}return oe}(),Ke=function(){function oe(k,_,ee){if(this.activeObservations_=[],this.observations_=new i,typeof k!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=k,this.controller_=_,this.callbackCtx_=ee}return oe.prototype.observe=function(k){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(k instanceof y(k).Element))throw new TypeError('parameter 1 is not of type "Element".');var _=this.observations_;_.has(k)||(_.set(k,new Se(k)),this.controller_.addObserver(this),this.controller_.refresh())}},oe.prototype.unobserve=function(k){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(k instanceof y(k).Element))throw new TypeError('parameter 1 is not of type "Element".');var _=this.observations_;_.has(k)&&(_.delete(k),_.size||this.controller_.removeObserver(this))}},oe.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},oe.prototype.gatherActive=function(){var k=this;this.clearActive(),this.observations_.forEach(function(_){_.isActive()&&k.activeObservations_.push(_)})},oe.prototype.broadcastActive=function(){if(this.hasActive()){var k=this.callbackCtx_,_=this.activeObservations_.map(function(ee){return new me(ee.target,ee.broadcastRect())});this.callback_.call(k,_,k),this.clearActive()}},oe.prototype.clearActive=function(){this.activeObservations_.splice(0)},oe.prototype.hasActive=function(){return this.activeObservations_.length>0},oe}(),Je=typeof WeakMap!="undefined"?new WeakMap:new i,ke=function(){function oe(k){if(!(this instanceof oe))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var _=x.getInstance(),ee=new Ke(k,_,this);Je.set(this,ee)}return oe}();["observe","unobserve","disconnect"].forEach(function(oe){ke.prototype[oe]=function(){var k;return(k=Je.get(this))[oe].apply(k,arguments)}});var We=function(){return typeof L.ResizeObserver!="undefined"?L.ResizeObserver:ke}();Rt.Z=We},38710:function($n){var Rt=function(u){return u.replace(/[A-Z]/g,function(i){return"-"+i.toLowerCase()}).toLowerCase()};$n.exports=Rt},98040:function($n){$n.exports=function(){var Rt=document.getSelection();if(!Rt.rangeCount)return function(){};for(var u=document.activeElement,i=[],K=0;K<Rt.rangeCount;K++)i.push(Rt.getRangeAt(K));switch(u.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":u.blur();break;default:u=null;break}return Rt.removeAllRanges(),function(){Rt.type==="Caret"&&Rt.removeAllRanges(),Rt.rangeCount||i.forEach(function(L){Rt.addRange(L)}),u&&u.focus()}}},4977:function($n){"use strict";$n.exports="data:image/png;base64,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"},72054:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return K}});var i=u(68688);function K(L,he){var Z=typeof Symbol!="undefined"&&L[Symbol.iterator]||L["@@iterator"];if(!Z){if(Array.isArray(L)||(Z=(0,i.Z)(L))||he&&L&&typeof L.length=="number"){Z&&(L=Z);var g=0,W=function(){};return{s:W,n:function(){return g>=L.length?{done:!0}:{done:!1,value:L[g++]}},e:function(y){throw y},f:W}}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 Y,l=!0,x=!1;return{s:function(){Z=Z.call(L)},n:function(){var y=Z.next();return l=y.done,y},e:function(y){x=!0,Y=y},f:function(){try{l||Z.return==null||Z.return()}finally{if(x)throw Y}}}}},16471:function($n,Rt,u){"use strict";u.d(Rt,{ZP:function(){return bo}});const i=Number.isFinite||function(o){return typeof o=="number"&&isFinite(o)},K=Number.isSafeInteger||function(o){return typeof o=="number"&&Math.abs(o)<=L},L=Number.MAX_SAFE_INTEGER||9007199254740991;let he=function(o){return o.NETWORK_ERROR="networkError",o.MEDIA_ERROR="mediaError",o.KEY_SYSTEM_ERROR="keySystemError",o.MUX_ERROR="muxError",o.OTHER_ERROR="otherError",o}({}),Z=function(o){return o.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",o.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",o.KEY_SYSTEM_NO_SESSION="keySystemNoSession",o.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",o.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",o.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",o.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",o.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",o.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",o.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",o.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",o.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",o.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",o.MANIFEST_LOAD_ERROR="manifestLoadError",o.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",o.MANIFEST_PARSING_ERROR="manifestParsingError",o.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",o.LEVEL_EMPTY_ERROR="levelEmptyError",o.LEVEL_LOAD_ERROR="levelLoadError",o.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",o.LEVEL_PARSING_ERROR="levelParsingError",o.LEVEL_SWITCH_ERROR="levelSwitchError",o.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",o.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",o.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",o.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",o.FRAG_LOAD_ERROR="fragLoadError",o.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",o.FRAG_DECRYPT_ERROR="fragDecryptError",o.FRAG_PARSING_ERROR="fragParsingError",o.FRAG_GAP="fragGap",o.REMUX_ALLOC_ERROR="remuxAllocError",o.KEY_LOAD_ERROR="keyLoadError",o.KEY_LOAD_TIMEOUT="keyLoadTimeOut",o.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",o.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",o.BUFFER_APPEND_ERROR="bufferAppendError",o.BUFFER_APPENDING_ERROR="bufferAppendingError",o.BUFFER_STALLED_ERROR="bufferStalledError",o.BUFFER_FULL_ERROR="bufferFullError",o.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",o.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",o.ASSET_LIST_LOAD_ERROR="assetListLoadError",o.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",o.ASSET_LIST_PARSING_ERROR="assetListParsingError",o.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",o.INTERNAL_EXCEPTION="internalException",o.INTERNAL_ABORTED="aborted",o.ATTACH_MEDIA_ERROR="attachMediaError",o.UNKNOWN="unknown",o}({}),g=function(o){return o.MEDIA_ATTACHING="hlsMediaAttaching",o.MEDIA_ATTACHED="hlsMediaAttached",o.MEDIA_DETACHING="hlsMediaDetaching",o.MEDIA_DETACHED="hlsMediaDetached",o.MEDIA_ENDED="hlsMediaEnded",o.STALL_RESOLVED="hlsStallResolved",o.BUFFER_RESET="hlsBufferReset",o.BUFFER_CODECS="hlsBufferCodecs",o.BUFFER_CREATED="hlsBufferCreated",o.BUFFER_APPENDING="hlsBufferAppending",o.BUFFER_APPENDED="hlsBufferAppended",o.BUFFER_EOS="hlsBufferEos",o.BUFFERED_TO_END="hlsBufferedToEnd",o.BUFFER_FLUSHING="hlsBufferFlushing",o.BUFFER_FLUSHED="hlsBufferFlushed",o.MANIFEST_LOADING="hlsManifestLoading",o.MANIFEST_LOADED="hlsManifestLoaded",o.MANIFEST_PARSED="hlsManifestParsed",o.LEVEL_SWITCHING="hlsLevelSwitching",o.LEVEL_SWITCHED="hlsLevelSwitched",o.LEVEL_LOADING="hlsLevelLoading",o.LEVEL_LOADED="hlsLevelLoaded",o.LEVEL_UPDATED="hlsLevelUpdated",o.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",o.LEVELS_UPDATED="hlsLevelsUpdated",o.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",o.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",o.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",o.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",o.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",o.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",o.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",o.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",o.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",o.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",o.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",o.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",o.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",o.CUES_PARSED="hlsCuesParsed",o.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",o.INIT_PTS_FOUND="hlsInitPtsFound",o.FRAG_LOADING="hlsFragLoading",o.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",o.FRAG_LOADED="hlsFragLoaded",o.FRAG_DECRYPTED="hlsFragDecrypted",o.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",o.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",o.FRAG_PARSING_METADATA="hlsFragParsingMetadata",o.FRAG_PARSED="hlsFragParsed",o.FRAG_BUFFERED="hlsFragBuffered",o.FRAG_CHANGED="hlsFragChanged",o.FPS_DROP="hlsFpsDrop",o.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",o.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",o.ERROR="hlsError",o.DESTROYING="hlsDestroying",o.KEY_LOADING="hlsKeyLoading",o.KEY_LOADED="hlsKeyLoaded",o.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",o.BACK_BUFFER_REACHED="hlsBackBufferReached",o.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",o.ASSET_LIST_LOADING="hlsAssetListLoading",o.ASSET_LIST_LOADED="hlsAssetListLoaded",o.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",o.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",o.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",o.INTERSTITIAL_STARTED="hlsInterstitialStarted",o.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",o.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",o.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",o.INTERSTITIAL_ENDED="hlsInterstitialEnded",o.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",o.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",o.EVENT_CUE_ENTER="hlsEventCueEnter",o}({});var W={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Y={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class l{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class x{constructor(e,t,n,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 l(e),this.fast_=new l(t),this.defaultTTFB_=r,this.ttfb_=new l(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:a}=this;n.halfLife!==e&&(this.slow_=new l(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new l(t,r.getEstimate(),r.getTotalWeight())),a.halfLife!==e&&(this.ttfb_=new l(e,a.getEstimate(),a.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,r=e/1e3,a=n/r;this.fast_.sample(r,a),this.slow_.sample(r,a)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function N(o,e,t){return(e=H(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function y(){return y=Object.assign?Object.assign.bind():function(o){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(o[n]=t[n])}return o},y.apply(null,arguments)}function T(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function A(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?T(Object(t),!0).forEach(function(n){N(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function $(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var n=t.call(o,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function H(o){var e=$(o,"string");return typeof e=="symbol"?e:e+""}class X{constructor(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;const n=`[${e}]:`;this.trace=V,this.debug=t.debug.bind(null,n),this.log=t.log.bind(null,n),this.warn=t.warn.bind(null,n),this.info=t.info.bind(null,n),this.error=t.error.bind(null,n)}}const V=function(){},R={trace:V,debug:V,log:V,warn:V,info:V,error:V};function Q(){return y({},R)}function O(o,e){const t=self.console[o];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${o}] >`):V}function I(o,e,t){return e[o]?e[o].bind(e):O(o,t)}const ue=Q();function Se(o,e,t){const n=Q();if(typeof console=="object"&&o===!0||typeof o=="object"){const r=["debug","log","info","warn","error"];r.forEach(a=>{n[a]=I(a,o,t)});try{n.log(`Debug logs enabled for "${e}" in hls.js version 1.6.15`)}catch(a){return Q()}r.forEach(a=>{ue[a]=I(a,o)})}else y(ue,n);return n}const me=ue;function Ke(o=!0){return typeof self=="undefined"?void 0:(o||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Je(o){return typeof self!="undefined"&&o===self.ManagedMediaSource}function ke(o,e){const t=Object.keys(o),n=Object.keys(e),r=t.length,a=n.length;return!r||!a||r===a&&!t.some(s=>n.indexOf(s)===-1)}function We(o,e=!1){if(typeof TextDecoder!="undefined"){const m=new TextDecoder("utf-8").decode(o);if(e){const v=m.indexOf("\0");return v!==-1?m.substring(0,v):m}return m.replace(/\0/g,"")}const t=o.length;let n,r,a,s="",d=0;for(;d<t;){if(n=o[d++],n===0&&e)return s;if(n===0||n===3)continue;switch(n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(n);break;case 12:case 13:r=o[d++],s+=String.fromCharCode((n&31)<<6|r&63);break;case 14:r=o[d++],a=o[d++],s+=String.fromCharCode((n&15)<<12|(r&63)<<6|(a&63)<<0);break}}return s}function oe(o){let e="";for(let t=0;t<o.length;t++){let n=o[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}function k(o){return Uint8Array.from(o.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function _(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var ee={exports:{}},ne;function se(){return ne||(ne=1,function(o,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,a=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,d={buildAbsoluteURL:function(p,m,v){if(v=v||{},p=p.trim(),m=m.trim(),!m){if(!v.alwaysNormalize)return p;var C=d.parseURL(p);if(!C)throw new Error("Error trying to parse base URL.");return C.path=d.normalizePath(C.path),d.buildURLFromParts(C)}var F=d.parseURL(m);if(!F)throw new Error("Error trying to parse relative URL.");if(F.scheme)return v.alwaysNormalize?(F.path=d.normalizePath(F.path),d.buildURLFromParts(F)):m;var te=d.parseURL(p);if(!te)throw new Error("Error trying to parse base URL.");if(!te.netLoc&&te.path&&te.path[0]!=="/"){var re=r.exec(te.path);te.netLoc=re[1],te.path=re[2]}te.netLoc&&!te.path&&(te.path="/");var Xe={scheme:te.scheme,netLoc:F.netLoc,path:null,params:F.params,query:F.query,fragment:F.fragment};if(!F.netLoc&&(Xe.netLoc=te.netLoc,F.path[0]!=="/"))if(!F.path)Xe.path=te.path,F.params||(Xe.params=te.params,F.query||(Xe.query=te.query));else{var Ye=te.path,It=Ye.substring(0,Ye.lastIndexOf("/")+1)+F.path;Xe.path=d.normalizePath(It)}return Xe.path===null&&(Xe.path=v.alwaysNormalize?d.normalizePath(F.path):F.path),d.buildURLFromParts(Xe)},parseURL:function(p){var m=n.exec(p);return m?{scheme:m[1]||"",netLoc:m[2]||"",path:m[3]||"",params:m[4]||"",query:m[5]||"",fragment:m[6]||""}:null},normalizePath:function(p){for(p=p.split("").reverse().join("").replace(a,"");p.length!==(p=p.replace(s,"")).length;);return p.split("").reverse().join("")},buildURLFromParts:function(p){return p.scheme+p.netLoc+p.path+p.params+p.query+p.fragment}};o.exports=d})()}(ee)),ee.exports}var w=se();class D{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 ce={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class Oe{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,typeof e=="string"&&(e={url:e}),this.base=e,ht(this,"stats")}setByteRange(e,t){const n=e.split("@",2);let r;n.length===1?r=(t==null?void 0:t.byteRangeEndOffset)||0:r=parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get baseurl(){return this.base.url}get byteRange(){return this._byteRange===null?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return this._streams===null&&(this._streams={[ce.AUDIO]:null,[ce.VIDEO]:null,[ce.AUDIOVIDEO]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return this._stats!==null}get hasStreams(){return this._streams!==null}get stats(){return this._stats===null&&(this._stats=new D),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=w.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[ce.AUDIO]=null,e[ce.VIDEO]=null,e[ce.AUDIOVIDEO]=null}}function ct(o){return o.sn!=="initSegment"}class Tt extends Oe{constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get byteLength(){if(this.hasStats){const e=this.stats.total;if(e)return e}if(this.byteRange.length){const e=this.byteRange[0],t=this.byteRange[1];if(i(e)&&i(t))return t-e}return null}get bitrate(){return this.byteLength?this.byteLength*8/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){var e;const{levelkeys:t}=this;if(!t||t.NONE)return null;if(t.identity)this._decryptdata||(this._decryptdata=t.identity.getDecryptData(this.sn));else if(!((e=this._decryptdata)!=null&&e.keyId)){const n=Object.keys(t);if(n.length===1){const r=this._decryptdata=t[n[0]]||null;r&&(this._decryptdata=r.getDecryptData(this.sn,t))}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const e=i(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;if(this.levelkeys){var t;const n=Object.keys(this.levelkeys),r=n.length;if(r>1||r===1&&(t=this.levelkeys[n[0]])!=null&&t.encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){if(!i(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return ct(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){const t=this.levelkeys;if(t){var n;const r=t[e];r&&!((n=this._decryptdata)!=null&&n.keyId)&&(this._decryptdata=r.getDecryptData(this.sn,t))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,n,r,a,s=!1){const{elementaryStreams:d}=this,p=d[e];if(!p){d[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:a,partial:s};return}p.startPTS=Math.min(p.startPTS,t),p.endPTS=Math.max(p.endPTS,n),p.startDTS=Math.min(p.startDTS,r),p.endDTS=Math.max(p.endDTS,a)}}class Ae extends Oe{constructor(e,t,n,r,a){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=r;const s=e.enumeratedString("BYTERANGE");s&&this.setByteRange(s,a),a&&(this.fragOffset=a.fragOffset+a.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function qe(o,e){const t=Object.getPrototypeOf(o);if(t){const n=Object.getOwnPropertyDescriptor(t,e);return n||qe(t,e)}}function ht(o,e){const t=qe(o,e);t&&(t.enumerable=!0,Object.defineProperty(o,e,t))}const tt=Math.pow(2,32)-1,Fe=[].push,jt={video:1,audio:2,id3:3,text:4};function bt(o){return String.fromCharCode.apply(null,o)}function cn(o,e){const t=o[e]<<8|o[e+1];return t<0?65536+t:t}function vt(o,e){const t=Qe(o,e);return t<0?4294967296+t:t}function pt(o,e){let t=vt(o,e);return t*=Math.pow(2,32),t+=vt(o,e+4),t}function Qe(o,e){return o[e]<<24|o[e+1]<<16|o[e+2]<<8|o[e+3]}function Ne(o){const e=o.byteLength;for(let t=0;t<e;){const n=vt(o,t);if(n>8&&o[t+4]===109&&o[t+5]===111&&o[t+6]===111&&o[t+7]===102)return!0;t=n>1?t+n:e}return!1}function le(o,e){const t=[];if(!e.length)return t;const n=o.byteLength;for(let r=0;r<n;){const a=vt(o,r),s=bt(o.subarray(r+4,r+8)),d=a>1?r+a:n;if(s===e[0])if(e.length===1)t.push(o.subarray(r+8,d));else{const p=le(o.subarray(r+8,d),e.slice(1));p.length&&Fe.apply(t,p)}r=d}return t}function Pe(o){const e=[],t=o[0];let n=8;const r=vt(o,n);n+=4;let a=0,s=0;t===0?(a=vt(o,n),s=vt(o,n+4),n+=8):(a=pt(o,n),s=pt(o,n+8),n+=16),n+=2;let d=o.length+s;const p=cn(o,n);n+=2;for(let m=0;m<p;m++){let v=n;const C=vt(o,v);v+=4;const F=C&2147483647;if((C&2147483648)>>>31===1)return me.warn("SIDX has hierarchical references (not supported)"),null;const re=vt(o,v);v+=4,e.push({referenceSize:F,subsegmentDuration:re,info:{duration:re/r,start:d,end:d+F-1}}),d+=F,v+=4,n=v}return{earliestPresentationTime:a,timescale:r,version:t,referencesCount:p,references:e}}function Ge(o){const e=[],t=le(o,["moov","trak"]);for(let r=0;r<t.length;r++){const a=t[r],s=le(a,["tkhd"])[0];if(s){let d=s[0];const p=vt(s,d===0?12:20),m=le(a,["mdia","mdhd"])[0];if(m){d=m[0];const v=vt(m,d===0?12:20),C=le(a,["mdia","hdlr"])[0];if(C){const F=bt(C.subarray(8,12)),te={soun:ce.AUDIO,vide:ce.VIDEO}[F],re=le(a,["mdia","minf","stbl","stsd"])[0],Xe=j(re);te?(e[p]={timescale:v,type:te,stsd:Xe},e[te]=A({timescale:v,id:p},Xe)):e[p]={timescale:v,type:F,stsd:Xe}}}}}return le(o,["moov","mvex","trex"]).forEach(r=>{const a=vt(r,4),s=e[a];s&&(s.default={duration:vt(r,12),flags:vt(r,20)})}),e}function j(o){const e=o.subarray(8),t=e.subarray(86),n=bt(e.subarray(4,8));let r=n,a;const s=n==="enca"||n==="encv";if(s){const m=le(e,[n])[0].subarray(n==="enca"?28:78);le(m,["sinf"]).forEach(C=>{const F=le(C,["schm"])[0];if(F){const te=bt(F.subarray(4,8));if(te==="cbcs"||te==="cenc"){const re=le(C,["frma"])[0];re&&(r=bt(re))}}})}const d=r;switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const p=le(t,["avcC"])[0];p&&p.length>3&&(r+="."+Te(p[1])+Te(p[2])+Te(p[3]),a=P(d==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const p=le(e,[n])[0],m=le(p.subarray(28),["esds"])[0];if(m&&m.length>7){let v=4;if(m[v++]!==3)break;v=Ie(m,v),v+=2;const C=m[v++];if(C&128&&(v+=2),C&64&&(v+=m[v++]),m[v++]!==4)break;v=Ie(m,v);const F=m[v++];if(F===64)r+="."+Te(F);else break;if(v+=12,m[v++]!==5)break;v=Ie(m,v);const te=m[v++];let re=(te&248)>>3;re===31&&(re+=1+((te&7)<<3)+((m[v]&224)>>5)),r+="."+re}break}case"hvc1":case"hev1":{const p=le(t,["hvcC"])[0];if(p&&p.length>12){const m=p[1],v=["","A","B","C"][m>>6],C=m&31,F=vt(p,2),te=(m&32)>>5?"H":"L",re=p[12],Xe=p.subarray(6,12);r+="."+v+C,r+="."+_e(F).toString(16).toUpperCase(),r+="."+te+re;let Ye="";for(let It=Xe.length;It--;){const Ut=Xe[It];(Ut||Ye)&&(Ye="."+Ut.toString(16).toUpperCase()+Ye)}r+=Ye}a=P(d=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{r=P(r,t)||r;break}case"vp09":{const p=le(t,["vpcC"])[0];if(p&&p.length>6){const m=p[4],v=p[5],C=p[6]>>4&15;r+="."+ze(m)+"."+ze(v)+"."+ze(C)}break}case"av01":{const p=le(t,["av1C"])[0];if(p&&p.length>2){const m=p[1]>>>5,v=p[1]&31,C=p[2]>>>7?"H":"M",F=(p[2]&64)>>6,te=(p[2]&32)>>5,re=m===2&&F?te?12:10:F?10:8,Xe=(p[2]&16)>>4,Ye=(p[2]&8)>>3,It=(p[2]&4)>>2,Ut=p[2]&3;r+="."+m+"."+ze(v)+C+"."+ze(re)+"."+Xe+"."+Ye+It+Ut+"."+ze(1)+"."+ze(1)+"."+ze(1)+"."+0,a=P("dav1",t)}break}}return{codec:r,encrypted:s,supplemental:a}}function P(o,e){const t=le(e,["dvvC"]),n=t.length?t[0]:le(e,["dvcC"])[0];if(n){const r=n[2]>>1&127,a=n[2]<<5&32|n[3]>>3&31;return o+"."+ze(r)+"."+ze(a)}}function _e(o){let e=0;for(let t=0;t<32;t++)e|=(o>>t&1)<<31-t;return e>>>0}function Ie(o,e){const t=e+5;for(;o[e++]&128&&e<t;);return e}function Te(o){return("0"+o.toString(16).toUpperCase()).slice(-2)}function ze(o){return(o<10?"0":"")+o}function Ue(o,e){if(!o||!e)return;const t=e.keyId;t&&e.isCommonEncryption&&de(o,(n,r)=>{const a=n.subarray(8,24);a.some(s=>s!==0)||(me.log(`[eme] Patching keyId in 'enc${r?"a":"v"}>sinf>>tenc' box: ${oe(a)} -> ${oe(t)}`),n.set(t,8))})}function ft(o){const e=[];return de(o,t=>e.push(t.subarray(8,24))),e}function de(o,e){le(o,["moov","trak"]).forEach(n=>{const r=le(n,["mdia","minf","stbl","stsd"])[0];if(!r)return;const a=r.subarray(8);let s=le(a,["enca"]);const d=s.length>0;d||(s=le(a,["encv"])),s.forEach(p=>{const m=d?p.subarray(28):p.subarray(78);le(m,["sinf"]).forEach(C=>{const F=xe(C);F&&e(F,d)})})})}function xe(o){const e=le(o,["schm"])[0];if(e){const t=bt(e.subarray(4,8));if(t==="cbcs"||t==="cenc"){const n=le(o,["schi","tenc"])[0];if(n)return n}}}function Ot(o,e,t){const n={},r=le(o,["moof","traf"]);for(let a=0;a<r.length;a++){const s=r[a],d=le(s,["tfhd"])[0],p=vt(d,4),m=e[p];if(!m)continue;n[p]||(n[p]={start:NaN,duration:0,sampleCount:0,timescale:m.timescale,type:m.type});const v=n[p],C=le(s,["tfdt"])[0];if(C){const Wt=C[0];let gn=vt(C,4);Wt===1&&(gn===tt?t.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(gn*=tt+1,gn+=vt(C,8))),i(gn)&&(!i(v.start)||gn<v.start)&&(v.start=gn)}const F=m.default,te=vt(d,0)|(F==null?void 0:F.flags);let re=(F==null?void 0:F.duration)||0;te&8&&(te&2?re=vt(d,12):re=vt(d,8));const Xe=le(s,["trun"]);let Ye=v.start||0,It=0,Ut=re;for(let Wt=0;Wt<Xe.length;Wt++){const gn=Xe[Wt],wn=vt(gn,4),or=v.sampleCount;v.sampleCount+=wn;const Dn=gn[3]&1,Wn=gn[3]&4,Hn=gn[2]&1,Ln=gn[2]&2,mr=gn[2]&4,Hr=gn[2]&8;let ai=8,pi=wn;for(Dn&&(ai+=4),Wn&&wn&&(!(gn[ai+1]&1)&&v.keyFrameIndex===void 0&&(v.keyFrameIndex=or),ai+=4,Hn?(Ut=vt(gn,ai),ai+=4):Ut=re,Ln&&(ai+=4),Hr&&(ai+=4),Ye+=Ut,It+=Ut,pi--);pi--;)Hn?(Ut=vt(gn,ai),ai+=4):Ut=re,Ln&&(ai+=4),mr&&(gn[ai+1]&1||v.keyFrameIndex===void 0&&(v.keyFrameIndex=v.sampleCount-(pi+1),v.keyFrameStart=Ye),ai+=4),Hr&&(ai+=4),Ye+=Ut,It+=Ut;!It&&re&&(It+=re*wn)}v.duration+=It}if(!Object.keys(n).some(a=>n[a].duration)){let a=1/0,s=0;const d=le(o,["sidx"]);for(let p=0;p<d.length;p++){const m=Pe(d[p]);if(m!=null&&m.references){a=Math.min(a,m.earliestPresentationTime/m.timescale);const v=m.references.reduce((C,F)=>C+F.info.duration||0,0);s=Math.max(s,v+m.earliestPresentationTime/m.timescale)}}s&&i(s)&&Object.keys(n).forEach(p=>{n[p].duration||(n[p].duration=s*n[p].timescale-n[p].start)})}return n}function _t(o){const e={valid:null,remainder:null},t=le(o,["moof"]);if(t.length<2)return e.remainder=o,e;const n=t[t.length-1];return e.valid=o.slice(0,n.byteOffset-8),e.remainder=o.slice(n.byteOffset-8),e}function Pt(o,e){const t=new Uint8Array(o.length+e.length);return t.set(o),t.set(e,o.length),t}function kt(o,e){const t=[],n=e.samples,r=e.timescale,a=e.id;let s=!1;return le(n,["moof"]).map(p=>{const m=p.byteOffset-8;le(p,["traf"]).map(C=>{const F=le(C,["tfdt"]).map(te=>{const re=te[0];let Xe=vt(te,4);return re===1&&(Xe*=Math.pow(2,32),Xe+=vt(te,8)),Xe/r})[0];return F!==void 0&&(o=F),le(C,["tfhd"]).map(te=>{const re=vt(te,4),Xe=vt(te,0)&16777215,Ye=(Xe&1)!==0,It=(Xe&2)!==0,Ut=(Xe&8)!==0;let Wt=0;const gn=(Xe&16)!==0;let wn=0;const or=(Xe&32)!==0;let Dn=8;re===a&&(Ye&&(Dn+=8),It&&(Dn+=4),Ut&&(Wt=vt(te,Dn),Dn+=4),gn&&(wn=vt(te,Dn),Dn+=4),or&&(Dn+=4),e.type==="video"&&(s=mt(e.codec)),le(C,["trun"]).map(Wn=>{const Hn=Wn[0],Ln=vt(Wn,0)&16777215,mr=(Ln&1)!==0;let Hr=0;const ai=(Ln&4)!==0,pi=(Ln&256)!==0;let si=0;const kr=(Ln&512)!==0;let oi=0;const Jr=(Ln&1024)!==0,ci=(Ln&2048)!==0;let _i=0;const Ur=vt(Wn,4);let Kr=8;mr&&(Hr=vt(Wn,Kr),Kr+=4),ai&&(Kr+=4);let $i=Hr+m;for(let xa=0;xa<Ur;xa++){if(pi?(si=vt(Wn,Kr),Kr+=4):si=Wt,kr?(oi=vt(Wn,Kr),Kr+=4):oi=wn,Jr&&(Kr+=4),ci&&(Hn===0?_i=vt(Wn,Kr):_i=Qe(Wn,Kr),Kr+=4),e.type===ce.VIDEO){let Hi=0;for(;Hi<oi;){const na=vt(n,$i);if($i+=4,Vt(s,n[$i])){const us=n.subarray($i,$i+na);Nt(us,s?2:1,o+_i/r,t)}$i+=na,Hi+=na+4}}o+=si/r}}))})})}),t}function mt(o){if(!o)return!1;const e=o.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function Vt(o,e){if(o){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Nt(o,e,t,n){const r=De(o);let a=0;a+=e;let s=0,d=0,p=0;for(;a<r.length;){s=0;do{if(a>=r.length)break;p=r[a++],s+=p}while(p===255);d=0;do{if(a>=r.length)break;p=r[a++],d+=p}while(p===255);const m=r.length-a;let v=a;if(d<m)a+=d;else if(d>m){me.error(`Malformed SEI payload. ${d} is too small, only ${m} bytes left to parse.`);break}if(s===4){if(r[v++]===181){const F=cn(r,v);if(v+=2,F===49){const te=vt(r,v);if(v+=4,te===1195456820){const re=r[v++];if(re===3){const Xe=r[v++],Ye=31&Xe,It=64&Xe,Ut=It?2+Ye*3:0,Wt=new Uint8Array(Ut);if(It){Wt[0]=Xe;for(let gn=1;gn<Ut;gn++)Wt[gn]=r[v++]}n.push({type:re,payloadType:s,pts:t,bytes:Wt})}}}}}else if(s===5&&d>16){const C=[];for(let re=0;re<16;re++){const Xe=r[v++].toString(16);C.push(Xe.length==1?"0"+Xe:Xe),(re===3||re===5||re===7||re===9)&&C.push("-")}const F=d-16,te=new Uint8Array(F);for(let re=0;re<F;re++)te[re]=r[v++];n.push({payloadType:s,pts:t,uuid:C.join(""),userData:We(te),userDataBytes:te})}}}function De(o){const e=o.byteLength,t=[];let n=1;for(;n<e-2;)o[n]===0&&o[n+1]===0&&o[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return o;const r=e-t.length,a=new Uint8Array(r);let s=0;for(n=0;n<r;s++,n++)s===t[0]&&(s++,t.shift()),a[n]=o[s];return a}function gt(o){const e=o[0];let t="",n="",r=0,a=0,s=0,d=0,p=0,m=0;if(e===0){for(;bt(o.subarray(m,m+1))!=="\0";)t+=bt(o.subarray(m,m+1)),m+=1;for(t+=bt(o.subarray(m,m+1)),m+=1;bt(o.subarray(m,m+1))!=="\0";)n+=bt(o.subarray(m,m+1)),m+=1;n+=bt(o.subarray(m,m+1)),m+=1,r=vt(o,12),a=vt(o,16),d=vt(o,20),p=vt(o,24),m=28}else if(e===1){m+=4,r=vt(o,m),m+=4;const C=vt(o,m);m+=4;const F=vt(o,m);for(m+=4,s=lc(2,32)*C+F,K(s)||(s=Number.MAX_SAFE_INTEGER,me.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),d=vt(o,m),m+=4,p=vt(o,m),m+=4;bt(o.subarray(m,m+1))!=="\0";)t+=bt(o.subarray(m,m+1)),m+=1;for(t+=bt(o.subarray(m,m+1)),m+=1;bt(o.subarray(m,m+1))!=="\0";)n+=bt(o.subarray(m,m+1)),m+=1;n+=bt(o.subarray(m,m+1)),m+=1}const v=o.subarray(m,o.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:a,eventDuration:d,id:p,payload:v}}function E(o,...e){const t=e.length;let n=8,r=t;for(;r--;)n+=e[r].byteLength;const a=new Uint8Array(n);for(a[0]=n>>24&255,a[1]=n>>16&255,a[2]=n>>8&255,a[3]=n&255,a.set(o,4),r=0,n=8;r<t;r++)a.set(e[r],n),n+=e[r].byteLength;return a}function S(o,e,t){if(o.byteLength!==16)throw new RangeError("Invalid system id");let n,r;n=0,r=new Uint8Array;let a;n>0?(a=new Uint8Array(4),e.length>0&&new DataView(a.buffer).setUint32(0,e.length,!1)):a=new Uint8Array;const s=new Uint8Array(4);return t.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),E([112,115,115,104],new Uint8Array([n,0,0,0]),o,a,r,s,t)}function je(o){const e=[];if(o instanceof ArrayBuffer){const t=o.byteLength;let n=0;for(;n+32<t;){const r=new DataView(o,n),a=G(r);e.push(a),n+=a.size}}return e}function G(o){const e=o.getUint32(0),t=o.byteOffset,n=o.byteLength;if(n<e)return{offset:t,size:n};if(o.getUint32(4)!==1886614376)return{offset:t,size:e};const a=o.getUint32(8)>>>24;if(a!==0&&a!==1)return{offset:t,size:e};const s=o.buffer,d=oe(new Uint8Array(s,t+12,16));let p=null,m=null,v=0;if(a===0)v=28;else{const F=o.getUint32(28);if(!F||n<32+F*16)return{offset:t,size:e};p=[];for(let te=0;te<F;te++)p.push(new Uint8Array(s,t+32+te*16,16));v=32+F*16}if(!v)return{offset:t,size:e};const C=o.getUint32(v);return e-32<C?{offset:t,size:e}:(m=new Uint8Array(s,t+v+4,C),{version:a,systemId:d,kids:p,data:m,offset:t,size:e})}const Ce=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),en={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function rt(o,e){const t=en[e];return!!t&&!!t[o.slice(0,4)]}function st(o,e,t=!0){return!o.split(",").some(n=>!xt(n,e,t))}function xt(o,e,t=!0){var n;const r=Ke(t);return(n=r==null?void 0:r.isTypeSupported(pe(o,e)))!=null?n:!1}function pe(o,e){return`${e}/mp4;codecs=${o}`}function Ee(o){if(o){const e=o.substring(0,4);return en.video[e]}return 2}function nt(o){const e=Ce();return o.split(",").reduce((t,n)=>{const a=e&&mt(n)?9:en.video[n];return a?(a*2+t)/(t?3:2):(en.audio[n]+t)/(t?2:1)},0)}const Ze={};function z(o,e=!0){if(Ze[o])return Ze[o];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[o];for(let r=0;r<t.length;r++){var n;if(xt(t[r],"audio",e))return Ze[o]=t[r],t[r];if(t[r]==="mp3"&&(n=Ke(e))!=null&&n.isTypeSupported("audio/mpeg"))return""}return o}const St=/flac|opus|mp4a\.40\.34/i;function fe(o,e=!0){return o.replace(St,t=>z(t.toLowerCase(),e))}function Kt(o,e){const t=[];if(o){const n=o.split(",");for(let r=0;r<n.length;r++)rt(n[r],"video")||t.push(n[r])}return e&&t.push(e),t.join(",")}function dn(o,e){if(o&&(o.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(o)!==-1)&&(Bt(o,"audio")||Bt(o,"video")))return o;if(e){const t=e.split(",");if(t.length>1){if(o){for(let n=t.length;n--;)if(t[n].substring(0,4)===o.substring(0,4))return t[n]}return t[0]}}return e||o}function Bt(o,e){return rt(o,e)&&xt(o,e)}function J(o){const e=o.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");n.length>2&&n[0]==="avc1"&&(e[t]=`avc1.${parseInt(n[1]).toString(16)}${("000"+parseInt(n[2]).toString(16)).slice(-4)}`)}return e.join(",")}function we(o){if(o.startsWith("av01.")){const e=o.split("."),t=["0","111","01","01","01","0"];for(let n=e.length;n>4&&n<10;n++)e[n]=t[n-4];return e.join(".")}return o}function M(o){const e=Ke(o)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Ct(o){return o.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const ot={supported:!0,powerEfficient:!0,smooth:!0},dt={supported:!1,smooth:!1,powerEfficient:!1},$t={supported:!0,configurations:[],decodingInfoResults:[ot]};function Ft(o,e){return{supported:!1,configurations:e,decodingInfoResults:[dt],error:o}}function Mt(o,e,t,n,r,a){const s=o.videoCodec,d=o.audioCodec?o.audioGroups:null,p=a==null?void 0:a.audioCodec,m=a==null?void 0:a.channels,v=m?parseInt(m):p?1/0:2;let C=null;if(d!=null&&d.length)try{d.length===1&&d[0]?C=e.groups[d[0]].channels:C=d.reduce((F,te)=>{if(te){const re=e.groups[te];if(!re)throw new Error(`Audio track group ${te} not found`);Object.keys(re.channels).forEach(Xe=>{F[Xe]=(F[Xe]||0)+re.channels[Xe]})}return F},{2:0})}catch(F){return!0}return s!==void 0&&(s.split(",").some(F=>mt(F))||o.width>1920&&o.height>1088||o.height>1920&&o.width>1088||o.frameRate>Math.max(n,30)||o.videoRange!=="SDR"&&o.videoRange!==t||o.bitrate>Math.max(r,8e6))||!!C&&i(v)&&Object.keys(C).some(F=>parseInt(F)>v)}function ie(o,e,t,n={}){const r=o.videoCodec;if(!r&&!o.audioCodec||!t)return Promise.resolve($t);const a=[],s=ve(o),d=s.length,p=At(o,e,d>0),m=p.length;for(let v=d||1*m||1;v--;){const C={type:"media-source"};if(d&&(C.video=s[v%d]),m){C.audio=p[v%m];const F=C.audio.bitrate;C.video&&F&&(C.video.bitrate-=F)}a.push(C)}if(r){const v=navigator.userAgent;if(r.split(",").some(C=>mt(C))&&Ce())return Promise.resolve(Ft(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${v})`),a))}return Promise.all(a.map(v=>{const C=ae(v);return n[C]||(n[C]=t.decodingInfo(v))})).then(v=>({supported:!v.some(C=>!C.supported),configurations:a,decodingInfoResults:v})).catch(v=>({supported:!1,configurations:a,decodingInfoResults:[],error:v}))}function ve(o){var e;const t=(e=o.videoCodec)==null?void 0:e.split(","),n=Le(o),r=o.width||640,a=o.height||480,s=o.frameRate||30,d=o.videoRange.toLowerCase();return t?t.map(p=>{const m={contentType:pe(we(p),"video"),width:r,height:a,bitrate:n,framerate:s};return d!=="sdr"&&(m.transferFunction=d),m}):[]}function At(o,e,t){var n;const r=(n=o.audioCodec)==null?void 0:n.split(","),a=Le(o);return r&&o.audioGroups?o.audioGroups.reduce((s,d)=>{var p;const m=d?(p=e.groups[d])==null?void 0:p.tracks:null;return m?m.reduce((v,C)=>{if(C.groupId===d){const F=parseFloat(C.channels||"");r.forEach(te=>{const re={contentType:pe(te,"audio"),bitrate:t?Be(te,a):a};F&&(re.channels=""+F),v.push(re)})}return v},s):s},[]):[]}function Be(o,e){if(e<=1)return 1;let t=128e3;return o==="ec-3"?t=768e3:o==="ac-3"&&(t=64e4),Math.min(e/2,t)}function Le(o){return Math.ceil(Math.max(o.bitrate*.9,o.averageBitrate)/1e3)*1e3||1}function ae(o){let e="";const{audio:t,video:n}=o;if(n){const r=Ct(n.contentType);e+=`${r}_r${n.height}x${n.width}f${Math.ceil(n.framerate)}${n.transferFunction||"sd"}_${Math.ceil(n.bitrate/1e5)}`}if(t){const r=Ct(t.contentType);e+=`${n?"_":""}${r}_c${t.channels}`}return e}const Re=["NONE","TYPE-0","TYPE-1",null];function $e(o){return Re.indexOf(o)>-1}const He=["SDR","PQ","HLG"];function ut(o){return!!o&&He.indexOf(o)>-1}var rn={No:"",Yes:"YES",v2:"v2"};function on(o){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=o,r=n<e/2;return e&&r?t?rn.v2:rn.Yes:rn.No}class Ve{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}addDirectives(e){const t=new self.URL(e);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class lt{constructor(e){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(n=>!!n).map(n=>n.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const n=(t=e.supplemental)==null?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return wt(this._audioGroups,e)}hasSubtitleGroup(e){return wt(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 wt(o,e){return!e||!o?!1:o.indexOf(e)!==-1}function Qt(){if(typeof matchMedia=="function"){const o=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(o.media!==e.media)return o.matches===!0}return!1}function Yt(o,e){let t=!1,n=[];if(o&&(t=o!=="SDR",n=[o]),e){n=e.allowedVideoRanges||He.slice(0);const r=n.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:r&&Qt(),t||(n=["SDR"])}return{preferHDR:t,allowedVideoRanges:n}}const ye=o=>{const e=new WeakSet;return(t,n)=>{if(o&&(n=o(t,n)),typeof n=="object"&&n!==null){if(e.has(n))return;e.add(n)}return n}},at=(o,e)=>JSON.stringify(o,ye(e));function Lt(o,e,t,n,r){const a=Object.keys(o),s=n==null?void 0:n.channels,d=n==null?void 0:n.audioCodec,p=r==null?void 0:r.videoCodec,m=s&&parseInt(s)===2;let v=!1,C=!1,F=1/0,te=1/0,re=1/0,Xe=1/0,Ye=0,It=[];const{preferHDR:Ut,allowedVideoRanges:Wt}=Yt(e,r);for(let Wn=a.length;Wn--;){const Hn=o[a[Wn]];v||(v=Hn.channels[2]>0),F=Math.min(F,Hn.minHeight),te=Math.min(te,Hn.minFramerate),re=Math.min(re,Hn.minBitrate),Wt.filter(mr=>Hn.videoRanges[mr]>0).length>0&&(C=!0)}F=i(F)?F:0,te=i(te)?te:0;const gn=Math.max(1080,F),wn=Math.max(30,te);re=i(re)?re:t,t=Math.max(re,t),C||(e=void 0);const or=a.length>1;return{codecSet:a.reduce((Wn,Hn)=>{const Ln=o[Hn];if(Hn===Wn)return Wn;if(It=C?Wt.filter(mr=>Ln.videoRanges[mr]>0):[],or){if(Ln.minBitrate>t)return Dt(Hn,`min bitrate of ${Ln.minBitrate} > current estimate of ${t}`),Wn;if(!Ln.hasDefaultAudio)return Dt(Hn,"no renditions with default or auto-select sound found"),Wn;if(d&&Hn.indexOf(d.substring(0,4))%5!==0)return Dt(Hn,`audio codec preference "${d}" not found`),Wn;if(s&&!m){if(!Ln.channels[s])return Dt(Hn,`no renditions with ${s} channel sound found (channels options: ${Object.keys(Ln.channels)})`),Wn}else if((!d||m)&&v&&Ln.channels[2]===0)return Dt(Hn,"no renditions with stereo sound found"),Wn;if(Ln.minHeight>gn)return Dt(Hn,`min resolution of ${Ln.minHeight} > maximum of ${gn}`),Wn;if(Ln.minFramerate>wn)return Dt(Hn,`min framerate of ${Ln.minFramerate} > maximum of ${wn}`),Wn;if(!It.some(mr=>Ln.videoRanges[mr]>0))return Dt(Hn,`no variants with VIDEO-RANGE of ${at(It)} found`),Wn;if(p&&Hn.indexOf(p.substring(0,4))%5!==0)return Dt(Hn,`video codec preference "${p}" not found`),Wn;if(Ln.maxScore<Ye)return Dt(Hn,`max score of ${Ln.maxScore} < selected max of ${Ye}`),Wn}return Wn&&(nt(Hn)>=nt(Wn)||Ln.fragmentError>o[Wn].fragmentError)?Wn:(Xe=Ln.minIndex,Ye=Ln.maxScore,Hn)},void 0),videoRanges:It,preferHDR:Ut,minFramerate:te,minBitrate:re,minIndex:Xe}}function Dt(o,e){me.log(`[abr] start candidates with "${o}" ignored because ${e}`)}function zt(o){return o.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 an(o,e,t,n){return o.slice(t,n+1).reduce((r,a,s)=>{if(!a.codecSet)return r;const d=a.audioGroups;let p=r[a.codecSet];p||(r[a.codecSet]=p={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!d,fragmentError:0}),p.minBitrate=Math.min(p.minBitrate,a.bitrate);const m=Math.min(a.height,a.width);return p.minHeight=Math.min(p.minHeight,m),p.minFramerate=Math.min(p.minFramerate,a.frameRate),p.minIndex=Math.min(p.minIndex,s),p.maxScore=Math.max(p.maxScore,a.score),p.fragmentError+=a.fragmentError,p.videoRanges[a.videoRange]=(p.videoRanges[a.videoRange]||0)+1,d&&d.forEach(v=>{if(!v)return;const C=e.groups[v];C&&(p.hasDefaultAudio=p.hasDefaultAudio||e.hasDefaultAudio?C.hasDefault:C.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(C.channels).forEach(F=>{p.channels[F]=(p.channels[F]||0)+C.channels[F]}))}),r},{})}function un(o){if(!o)return o;const{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:a}=o;return{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:a}}function sn(o,e,t){if("attrs"in o){const n=e.indexOf(o);if(n!==-1)return n}for(let n=0;n<e.length;n++){const r=e[n];if(vn(o,r,t))return n}return-1}function vn(o,e,t){const{groupId:n,name:r,lang:a,assocLang:s,default:d}=o,p=o.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(a===void 0||En(a,e.lang))&&(a===void 0||e.assocLang===s)&&(d===void 0||e.default===d)&&(p===void 0||e.forced===p)&&(!("characteristics"in o)||Rn(o.characteristics||"",e.characteristics))&&(t===void 0||t(o,e))}function En(o,e="--"){return o.length===e.length?o===e:o.startsWith(e)||e.startsWith(o)}function Rn(o,e=""){const t=o.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function bn(o,e){const{audioCodec:t,channels:n}=o;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(n===void 0||n===(e.channels||"2"))}function Cn(o,e,t,n,r){const a=e[n],d=e.reduce((F,te,re)=>{const Xe=te.uri;return(F[Xe]||(F[Xe]=[])).push(re),F},{})[a.uri];d.length>1&&(n=Math.max.apply(Math,d));const p=a.videoRange,m=a.frameRate,v=a.codecSet.substring(0,4),C=Bn(e,n,F=>{if(F.videoRange!==p||F.frameRate!==m||F.codecSet.substring(0,4)!==v)return!1;const te=F.audioGroups,re=t.filter(Xe=>!te||te.indexOf(Xe.groupId)!==-1);return sn(o,re,r)>-1});return C>-1?C:Bn(e,n,F=>{const te=F.audioGroups,re=t.filter(Xe=>!te||te.indexOf(Xe.groupId)!==-1);return sn(o,re,r)>-1})}function Bn(o,e,t){for(let n=e;n>-1;n--)if(t(o[n]))return n;for(let n=e+1;n<o.length;n++)if(t(o[n]))return n;return-1}function Pn(o,e){var t;return!!o&&o!==((t=e.loadLevelObj)==null?void 0:t.uri)}class ir extends X{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.supportedCache={},this.bwEstimator=void 0,this._abandonRulesCheck=t=>{var n;const{fragCurrent:r,partCurrent:a,hls:s}=this,{autoLevelEnabled:d,media:p}=s;if(!r||!p)return;const m=performance.now(),v=a?a.stats:r.stats,C=a?a.duration:r.duration,F=m-v.loading.start,te=s.minAutoLevel,re=r.level,Xe=this._nextAutoLevel;if(v.aborted||v.loaded&&v.loaded===v.total||re<=te){this.clearTimer(),this._nextAutoLevel=-1;return}if(!d)return;const Ye=Xe>-1&&Xe!==re,It=!!t||Ye;if(!It&&(p.paused||!p.playbackRate||!p.readyState))return;const Ut=s.mainForwardBufferInfo;if(!It&&Ut===null)return;const Wt=this.bwEstimator.getEstimateTTFB(),gn=Math.abs(p.playbackRate);if(F<=Math.max(Wt,1e3*(C/(gn*2))))return;const wn=Ut?Ut.len/gn:0,or=v.loading.first?v.loading.first-v.loading.start:-1,Dn=v.loaded&&or>-1,Wn=this.getBwEstimate(),Hn=s.levels,Ln=Hn[re],mr=Math.max(v.loaded,Math.round(C*(r.bitrate||Ln.averageBitrate)/8));let Hr=Dn?F-or:F;Hr<1&&Dn&&(Hr=Math.min(F,v.loaded*8/Wn));const ai=Dn?v.loaded*1e3/Hr:0,pi=Wt/1e3,si=ai?(mr-v.loaded)/ai:mr*8/Wn+pi;if(si<=wn)return;const kr=ai?ai*8:Wn,oi=((n=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:n.live)===!0,Jr=this.hls.config.abrBandWidthUpFactor;let ci=Number.POSITIVE_INFINITY,_i;for(_i=re-1;_i>te;_i--){const xa=Hn[_i].maxBitrate,Hi=!Hn[_i].details||oi;if(ci=this.getTimeToLoadFrag(pi,kr,C*xa,Hi),ci<Math.min(wn,C+pi))break}if(ci>=si||ci>C*10)return;Dn?this.bwEstimator.sample(F-Math.min(Wt,or),v.loaded):this.bwEstimator.sampleTTFB(F);const Ur=Hn[_i].maxBitrate;this.getBwEstimate()*Jr>Ur&&this.resetEstimator(Ur);const Kr=this.findBestLevel(Ur,te,_i,0,wn,1,1);Kr>-1&&(_i=Kr),this.warn(`Fragment ${r.sn}${a?" part "+a.index:""} of level ${re} is loading too slowly;
|
|
|
Fragment duration: ${r.duration.toFixed(3)}
|
|
|
Time to underbuffer: ${wn.toFixed(3)} s
|
|
|
Estimated load time for current fragment: ${si.toFixed(3)} s
|
|
|
Estimated load time for down switch fragment: ${ci.toFixed(3)} s
|
|
|
TTFB estimate: ${or|0} ms
|
|
|
Current BW estimate: ${i(Wn)?Wn|0:"Unknown"} bps
|
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
|
Switching to level ${_i} @ ${Ur|0} bps`),s.nextLoadLevel=s.nextAutoLevel=_i,this.clearTimer();const $i=()=>{if(this.clearTimer(),this.fragCurrent===r&&this.hls.loadLevel===_i&&_i>0){const xa=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${_i>0?"and switching down":""}
|
|
|
Fragment duration: ${r.duration.toFixed(3)} s
|
|
|
Time to underbuffer: ${xa.toFixed(3)} s`),r.abortRequests(),this.fragCurrent=this.partCurrent=null,_i>te){let Hi=this.findBestLevel(this.hls.levels[te].bitrate,te,_i,0,xa,1,1);Hi===-1&&(Hi=te),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Hi,this.resetEstimator(this.hls.levels[Hi].bitrate)}}};Ye||si>ci*2?$i():this.timer=self.setInterval($i,ci*1e3),s.trigger(g.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,part:a,stats:v})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(this.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new x(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.FRAG_LOADING,this.onFragLoading,this),e.on(g.FRAG_LOADED,this.onFragLoaded,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this),e.on(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(g.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.FRAG_LOADING,this.onFragLoading,this),e.off(g.FRAG_LOADED,this.onFragLoaded,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this),e.off(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(g.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(g.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=this.supportedCache=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.supportedCache={},this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const n=t.frag;if(!this.ignoreFragment(n)){if(!n.bitrateTest){var r;this.fragCurrent=n,this.partCurrent=(r=t.part)!=null?r:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case Z.BUFFER_ADD_CODEC_ERROR:case Z.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case Z.FRAG_LOAD_TIMEOUT:{const n=t.frag,{fragCurrent:r,partCurrent:a}=this;if(n&&r&&n.sn===r.sn&&n.level===r.level){const s=performance.now(),d=a?a.stats:n.stats,p=s-d.loading.start,m=d.loading.first?d.loading.first-d.loading.start:-1;if(d.loaded&&m>-1){const C=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(p-Math.min(C,m),d.loaded)}else this.bwEstimator.sampleTTFB(p)}break}}}getTimeToLoadFrag(e,t,n,r){const a=e+n/t,s=r?e+this.lastLevelLoadSec:0;return a+s}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,a=r.end-r.first;i(a)&&(this.lastLevelLoadSec=a/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:n}){const r=n?n.stats:t.stats;if(t.type===Y.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 a=n?n.duration:t.duration,s=this.hls.levels[t.level],d=(s.loaded?s.loaded.bytes:0)+r.loaded,p=(s.loaded?s.loaded.duration:0)+a;s.loaded={bytes:d,duration:p},s.realBitrate=Math.round(8*d/p)}if(t.bitrateTest){const a={stats:r,frag:t,part:n,id:t.type};this.onFragBuffered(g.FRAG_BUFFERED,a),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:r}=t,a=r!=null&&r.stats.loaded?r.stats:n.stats;if(a.aborted||this.ignoreFragment(n))return;const s=a.parsing.end-a.loading.start-Math.min(a.loading.first-a.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,a.loaded),a.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==Y.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,a=this.findBestLevel(n,t,e,0,r,1,1);if(a>-1)return a;const s=this.hls.firstLevel,d=Math.min(Math.max(s,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${d}`),d}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 a=n&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const s=this.hls.levels;if(s.length>Math.max(e,a)&&s[e].loadError<=s[a].loadError)return e}return this._nextAutoLevel=a,this.nextAutoLevelKey=this.getAutoLevelKey(),a}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:r,config:a,minAutoLevel:s}=n,d=t?t.duration:e?e.duration:0,p=this.getBwEstimate(),m=this.getStarvationDelay();let v=a.abrBandWidthFactor,C=a.abrBandWidthUpFactor;if(m){const Ye=this.findBestLevel(p,s,r,m,0,v,C);if(Ye>=0)return this.rebufferNotice=-1,Ye}let F=d?Math.min(d,a.maxStarvationDelay):a.maxStarvationDelay;if(!m){const Ye=this.bitrateTestDelay;Ye&&(F=(d?Math.min(d,a.maxLoadingDelay):a.maxLoadingDelay)-Ye,this.info(`bitrate test took ${Math.round(1e3*Ye)}ms, set first fragment max fetchDuration to ${Math.round(1e3*F)} ms`),v=C=1)}const te=this.findBestLevel(p,s,r,m,F,v,C);if(this.rebufferNotice!==te&&(this.rebufferNotice=te,this.info(`${m?"rebuffering expected":"buffer is empty"}, optimal quality level ${te}`)),te>-1)return te;const re=n.levels[s],Xe=n.loadLevelObj;return Xe&&(re==null?void 0:re.bitrate)<Xe.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,a,s,d){var p;const m=r+a,v=this.lastLoadedFragLevel,C=v===-1?this.hls.firstLevel:v,{fragCurrent:F,partCurrent:te}=this,{levels:re,allAudioTracks:Xe,loadLevel:Ye,config:It}=this.hls;if(re.length===1)return 0;const Ut=re[C],Wt=!!((p=this.hls.latestLevelDetails)!=null&&p.live),gn=Ye===-1||v===-1;let wn,or="SDR",Dn=(Ut==null?void 0:Ut.frameRate)||0;const{audioPreference:Wn,videoPreference:Hn}=It,Ln=this.audioTracksByGroup||(this.audioTracksByGroup=zt(Xe));let mr=-1;if(gn){if(this.firstSelection!==-1)return this.firstSelection;const kr=this.codecTiers||(this.codecTiers=an(re,Ln,t,n)),oi=Lt(kr,or,e,Wn,Hn),{codecSet:Jr,videoRanges:ci,minFramerate:_i,minBitrate:Ur,minIndex:Kr,preferHDR:$i}=oi;mr=Kr,wn=Jr,or=$i?ci[ci.length-1]:ci[0],Dn=_i,e=Math.max(e,Ur),this.log(`picked start tier ${at(oi)}`)}else wn=Ut==null?void 0:Ut.codecSet,or=Ut==null?void 0:Ut.videoRange;const Hr=te?te.duration:F?F.duration:0,ai=this.bwEstimator.getEstimateTTFB()/1e3,pi=[];for(let kr=n;kr>=t;kr--){var si;const oi=re[kr],Jr=kr>C;if(!oi)continue;if(It.useMediaCapabilities&&!oi.supportedResult&&!oi.supportedPromise){const Hi=navigator.mediaCapabilities;typeof(Hi==null?void 0:Hi.decodingInfo)=="function"&&Mt(oi,Ln,or,Dn,e,Wn)?(oi.supportedPromise=ie(oi,Ln,Hi,this.supportedCache),oi.supportedPromise.then(na=>{if(!this.hls)return;oi.supportedResult=na;const us=this.hls.levels,as=us.indexOf(oi);na.error?this.warn(`MediaCapabilities decodingInfo error: "${na.error}" for level ${as} ${at(na)}`):na.supported?na.decodingInfoResults.some(Ns=>Ns.smooth===!1||Ns.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${as} not smooth or powerEfficient: ${at(na)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${as} ${at(na)}`),as>-1&&us.length>1&&(this.log(`Removing unsupported level ${as}`),this.hls.removeLevel(as),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(na=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${na}`)})):oi.supportedResult=$t}if((wn&&oi.codecSet!==wn||or&&oi.videoRange!==or||Jr&&Dn>oi.frameRate||!Jr&&Dn>0&&Dn<oi.frameRate||(si=oi.supportedResult)!=null&&(si=si.decodingInfoResults)!=null&&si.some(Hi=>Hi.smooth===!1))&&(!gn||kr!==mr)){pi.push(kr);continue}const ci=oi.details,_i=(te?ci==null?void 0:ci.partTarget:ci==null?void 0:ci.averagetargetduration)||Hr;let Ur;Jr?Ur=d*e:Ur=s*e;const Kr=Hr&&r>=Hr*2&&a===0?oi.averageBitrate:oi.maxBitrate,$i=this.getTimeToLoadFrag(ai,Ur,Kr*_i,ci===void 0);if(Ur>=Kr&&(kr===v||oi.loadError===0&&oi.fragmentError===0)&&($i<=ai||!i($i)||Wt&&!this.bitrateTestDelay||$i<m)){const Hi=this.forcedAutoLevel;return kr!==Ye&&(Hi===-1||Hi!==Ye)&&(pi.length&&this.trace(`Skipped level(s) ${pi.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${re[pi[0]].codecs}" ${re[pi[0]].videoRange}; not compatible with "${wn}" ${or}`),this.info(`switch candidate:${C}->${kr} adjustedbw(${Math.round(Ur)})-bitrate=${Math.round(Ur-Kr)} ttfb:${ai.toFixed(1)} avgDuration:${_i.toFixed(1)} maxFetchDuration:${m.toFixed(1)} fetchDuration:${$i.toFixed(1)} firstSelection:${gn} codecSet:${oi.codecSet} videoRange:${oi.videoRange} hls.loadLevel:${Ye}`)),gn&&(this.firstSelection=kr),kr}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls;return Math.min(Math.max(e,n),t)}}const In={search:function(o,e){let t=0,n=o.length-1,r=null,a=null;for(;t<=n;){r=(t+n)/2|0,a=o[r];const s=e(a);if(s>0)t=r+1;else if(s<0)n=r-1;else return a}return null}};function zn(o,e,t){if(e===null||!Array.isArray(o)||!o.length||!i(e))return null;const n=o[0].programDateTime;if(e<(n||0))return null;const r=o[o.length-1].endProgramDateTime;if(e>=(r||0))return null;for(let a=0;a<o.length;++a){const s=o[a];if(qt(e,t,s))return s}return null}function Yn(o,e,t=0,n=0,r=.005){let a=null;if(o){a=e[1+o.sn-e[0].sn]||null;const d=o.endDTS-t;d>0&&d<15e-7&&(t+=15e-7),a&&o.level!==a.level&&a.end<=o.end&&(a=e[2+o.sn-e[0].sn]||null)}else t===0&&e[0].start===0&&(a=e[0]);if(a&&((!o||o.level===a.level)&&Jn(t,n,a)===0||tr(a,o,Math.min(r,n))))return a;const s=In.search(e,Jn.bind(null,t,n));return s&&(s!==o||!a)?s:a}function tr(o,e,t){if(e&&e.start===0&&e.level<o.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,a)=>(a[0]==="INF"&&(r+=parseFloat(a[1])),r),t);return o.start<=n}return!1}function Jn(o=0,e=0,t){if(t.start<=o&&t.start+t.duration>o)return 0;const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-n<=o?1:t.start-n>o&&t.start?-1:0}function qt(o,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>o}function tn(o,e,t){if(o&&o.startCC<=e&&o.endCC>=e){let n=o.fragments;const{fragmentHint:r}=o;r&&(n=n.concat(r));let a;return In.search(n,s=>s.cc<e?1:s.cc>e?-1:(a=s,s.end<=t?1:s.start>t?-1:0)),a||null}return null}function yn(o){switch(o.details){case Z.FRAG_LOAD_TIMEOUT:case Z.KEY_LOAD_TIMEOUT:case Z.LEVEL_LOAD_TIMEOUT:case Z.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Zn(o){return o.details.startsWith("key")}function Ht(o){return Zn(o)&&!!o.frag&&!o.frag.decryptdata}function Un(o,e){const t=yn(e);return o.default[`${t?"timeout":"error"}Retry`]}function er(o,e){const t=o.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*o.retryDelayMs,o.maxRetryDelayMs)}function lr(o){return A(A({},o),{errorRetry:null,timeoutRetry:null})}function _r(o,e,t,n){if(!o)return!1;const r=n==null?void 0:n.code,a=e<o.maxNumRetry&&(Ar(r)||!!t);return o.shouldRetry?o.shouldRetry(o,e,t,n,a):a}function Ar(o){return Sr(o)||!!o&&(o<400||o>499)}function Sr(o){return o===0&&navigator.onLine===!1}var Vn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},An={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4,SwitchToSDR:8};class pn extends X{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(g.ERROR,this.onError,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(g.ERROR,this.onError,this),e.off(g.ERROR,this.onErrorOut,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===Y.MAIN?e.level:this.getVariantIndex()}getVariantIndex(){var e;const t=this.hls,n=t.currentLevel;return(e=t.loadLevelObj)!=null&&e.details||n===-1?t.loadLevel:n}variantHasKey(e,t){if(e){var n;if((n=e.details)!=null&&n.hasKey(t))return!0;const r=e.audioGroups;if(r)return this.hls.allAudioTracks.filter(s=>r.indexOf(s.groupId)>=0).some(s=>{var d;return(d=s.details)==null?void 0:d.hasKey(t)})}return!1}onManifestLoading(){this.playlistError=0}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const r=this.hls,a=t.context;switch(t.details){case Z.FRAG_LOAD_ERROR:case Z.FRAG_LOAD_TIMEOUT:case Z.KEY_LOAD_ERROR:case Z.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case Z.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction=Tn();return}case Z.FRAG_GAP:case Z.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Vn.SendAlternateToPenaltyBox;return}case Z.LEVEL_EMPTY_ERROR:case Z.LEVEL_PARSING_ERROR:{var s;const p=t.parent===Y.MAIN?t.level:r.loadLevel;t.details===Z.LEVEL_EMPTY_ERROR&&((s=t.context)!=null&&(s=s.levelDetails)!=null&&s.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,p):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,p))}return;case Z.LEVEL_LOAD_ERROR:case Z.LEVEL_LOAD_TIMEOUT:typeof(a==null?void 0:a.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,a.level));return;case Z.AUDIO_TRACK_LOAD_ERROR:case Z.AUDIO_TRACK_LOAD_TIMEOUT:case Z.SUBTITLE_LOAD_ERROR:case Z.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const p=r.loadLevelObj;if(p&&(a.type===W.AUDIO_TRACK&&p.hasAudioGroup(a.groupId)||a.type===W.SUBTITLE_TRACK&&p.hasSubtitleGroup(a.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=Vn.SendAlternateToPenaltyBox,t.errorAction.flags=An.MoveAllAlternatesMatchingHost;return}}return;case Z.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:t.errorAction={action:Vn.SendAlternateToPenaltyBox,flags:An.MoveAllAlternatesMatchingHDCP};return;case Z.KEY_SYSTEM_SESSION_UPDATE_FAILED:case Z.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case Z.KEY_SYSTEM_NO_SESSION:t.errorAction={action:Vn.SendAlternateToPenaltyBox,flags:An.MoveAllAlternatesMatchingKey};return;case Z.BUFFER_ADD_CODEC_ERROR:case Z.REMUX_ALLOC_ERROR:case Z.BUFFER_APPEND_ERROR:if(!t.errorAction){var d;t.errorAction=this.getLevelSwitchAction(t,(d=t.level)!=null?d:r.loadLevel)}return;case Z.INTERNAL_EXCEPTION:case Z.BUFFER_APPENDING_ERROR:case Z.BUFFER_FULL_ERROR:case Z.LEVEL_SWITCH_ERROR:case Z.BUFFER_STALLED_ERROR:case Z.BUFFER_SEEK_OVER_HOLE:case Z.BUFFER_NUDGE_ON_STALL:t.errorAction=Tn();return}t.type===he.KEY_SYSTEM_ERROR&&(t.levelRetry=!1,t.errorAction=Tn())}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=Un(n.config.playlistLoadPolicy,e),a=this.playlistError++;if(_r(r,a,yn(e),e.response))return{action:Vn.RetryRequest,flags:An.None,retryConfig:r,retryCount:a};const d=this.getLevelSwitchAction(e,t);return r&&(d.retryConfig=r,d.retryCount=a),d}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:a,keyLoadPolicy:s}=t.config,d=Un(Zn(e)?s:a,e),p=t.levels.reduce((v,C)=>v+C.fragmentError,0);if(r&&(e.details!==Z.FRAG_GAP&&r.fragmentError++,!Ht(e)&&_r(d,p,yn(e),e.response)))return{action:Vn.RetryRequest,flags:An.None,retryConfig:d,retryCount:p};const m=this.getLevelSwitchAction(e,n);return d&&(m.retryConfig=d,m.retryCount=p),m}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var a,s;const m=e.details;r.loadError++,m===Z.BUFFER_APPEND_ERROR&&r.fragmentError++;let v=-1;const{levels:C,loadLevel:F,minAutoLevel:te,maxAutoLevel:re}=n;!n.autoLevelEnabled&&!n.config.preserveManualLevelOnError&&(n.loadLevel=-1);const Xe=(a=e.frag)==null?void 0:a.type,It=(Xe===Y.AUDIO&&m===Z.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(m===Z.BUFFER_ADD_CODEC_ERROR||m===Z.BUFFER_APPEND_ERROR))&&C.some(({audioCodec:or})=>r.audioCodec!==or),Wt=e.sourceBufferName==="video"&&(m===Z.BUFFER_ADD_CODEC_ERROR||m===Z.BUFFER_APPEND_ERROR)&&C.some(({codecSet:or,audioCodec:Dn})=>r.codecSet!==or&&r.audioCodec===Dn),{type:gn,groupId:wn}=(s=e.context)!=null?s:{};for(let or=C.length;or--;){const Dn=(or+F)%C.length;if(Dn!==F&&Dn>=te&&Dn<=re&&C[Dn].loadError===0){var d,p;const Wn=C[Dn];if(m===Z.FRAG_GAP&&Xe===Y.MAIN&&e.frag){const Hn=C[Dn].details;if(Hn){const Ln=Yn(e.frag,Hn.fragments,e.frag.start);if(Ln!=null&&Ln.gap)continue}}else{if(gn===W.AUDIO_TRACK&&Wn.hasAudioGroup(wn)||gn===W.SUBTITLE_TRACK&&Wn.hasSubtitleGroup(wn))continue;if(Xe===Y.AUDIO&&(d=r.audioGroups)!=null&&d.some(Hn=>Wn.hasAudioGroup(Hn))||Xe===Y.SUBTITLE&&(p=r.subtitleGroups)!=null&&p.some(Hn=>Wn.hasSubtitleGroup(Hn))||It&&r.audioCodec===Wn.audioCodec||Wt&&r.codecSet===Wn.codecSet||!It&&r.codecSet!==Wn.codecSet)continue}v=Dn;break}}if(v>-1&&n.loadLevel!==v)return e.levelRetry=!0,this.playlistError=0,{action:Vn.SendAlternateToPenaltyBox,flags:An.None,nextAutoLevel:v}}return{action:Vn.SendAlternateToPenaltyBox,flags:An.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case Vn.DoNothing:break;case Vn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==Z.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 Vn.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r}=n,a=n.nextAutoLevel;switch(r){case An.None:this.switchLevel(e,a);break;case An.MoveAllAlternatesMatchingHDCP:{const p=this.getVariantLevelIndex(e.frag),m=t.levels[p],v=m==null?void 0:m.attrs["HDCP-LEVEL"];if(n.hdcpLevel=v,v==="NONE")this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(v){t.maxHdcpLevel=Re[Re.indexOf(v)-1],n.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}}case An.MoveAllAlternatesMatchingKey:{const p=e.decryptdata;if(p){const m=this.hls.levels,v=m.length;for(let F=v;F--;)if(this.variantHasKey(m[F],p)){var s,d;this.log(`Banned key found in level ${F} (${m[F].bitrate}bps) or audio group "${(s=m[F].audioGroups)==null?void 0:s.join(",")}" (${(d=e.frag)==null?void 0:d.type} fragment) ${oe(p.keyId||[])}`),m[F].fragmentError++,m[F].loadError++,this.log(`Removing level ${F} with key error (${e.error})`),this.hls.removeLevel(F)}const C=e.frag;if(this.hls.levels.length<v)n.resolved=!0;else if(C&&C.type!==Y.MAIN){const F=C.decryptdata;F&&!p.matches(F)&&(n.resolved=!0)}}break}}n.resolved||this.switchLevel(e,a)}switchLevel(e,t){if(t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===Z.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const n=Ct(e.mimeType),r=this.hls.levels;for(let a=r.length;a--;)r[a][`${e.sourceBufferName}Codec`]===n&&(this.log(`Removing level ${a} for ${e.details} ("${n}" not supported)`),this.hls.removeLevel(a))}}}function Tn(o){const e={action:Vn.DoNothing,flags:An.None};return o&&(e.resolved=!0),e}var Xn={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class nr{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e&&(e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.BUFFER_APPENDED,this.onBufferAppended,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this),e.on(g.FRAG_LOADED,this.onFragLoaded,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.BUFFER_APPENDED,this.onBufferAppended,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this),e.off(g.FRAG_LOADED,this.onFragLoaded,this))}destroy(){this._unregisterListeners(),this.hls=this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let r=n.length;r--;){const a=n[r];if(!a)break;if(a.start<=e&&e<=a.end&&a.loaded)return a}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:r}=this,a=Object.keys(r);for(let s=a.length;s--;){const d=r[a[s]];if((d==null?void 0:d.body.type)===t&&(!n||d.buffered)){const p=d.body;if(p.start<=e&&e<=p.end)return p}}return null}detectEvictedFragments(e,t,n,r,a){this.timeRanges&&(this.timeRanges[e]=t);const s=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(d=>{const p=this.fragments[d];if(!p||s>=p.body.sn)return;if(!p.buffered&&(!p.loaded||a)){p.body.type===n&&this.removeFragment(p.body);return}const m=p.range[e];if(m){if(m.time.length===0){this.removeFragment(p.body);return}m.time.some(v=>{const C=!this.isTimeBuffered(v.startPTS,v.endPTS,t);return C&&this.removeFragment(p.body),C})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const n=e.frag,r=Er(n),a=this.fragments[r];if(!a||a.buffered&&n.gap)return;const s=!n.relurl;Object.keys(t).forEach(d=>{const p=n.elementaryStreams[d];if(!p)return;const m=t[d],v=s||p.partial===!0;a.range[d]=this.getBufferedTimes(n,e.part,v,m)}),a.loaded=null,Object.keys(a.range).length?(this.bufferedEnd(a,n),gr(a)||this.removeParts(n.sn-1,n.type)):this.removeFragment(a.body)}bufferedEnd(e,t){e.buffered=!0,(e.body.endList=t.endList||e.body.endList)&&(this.endListFragments[e.body.type]=e)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=Fn(n,r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=Er(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,this.bufferedEnd(r,e))}getBufferedTimes(e,t,n,r){const a={time:[],partial:n},s=e.start,d=e.end,p=e.minEndPTS||d,m=e.maxStartPTS||s;for(let v=0;v<r.length;v++){const C=r.start(v)-this.bufferPadding,F=r.end(v)+this.bufferPadding;if(m>=C&&p<=F){a.time.push({startPTS:Math.max(s,r.start(v)),endPTS:Math.min(d,r.end(v))});break}else if(s<F&&d>C){const te=Math.max(s,r.start(v)),re=Math.min(d,r.end(v));re>te&&(a.partial=!0,a.time.push({startPTS:te,endPTS:re}))}else if(d<=C)break}return a}getPartialFragment(e){let t=null,n,r,a,s=0;const{bufferPadding:d,fragments:p}=this;return Object.keys(p).forEach(m=>{const v=p[m];v&&gr(v)&&(r=v.body.start-d,a=v.body.end+d,e>=r&&e<=a&&(n=Math.min(e-r,a-e),s<=n&&(t=v.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||gr(t))}getState(e){const t=Er(e),n=this.fragments[t];return n?n.buffered?gr(n)?Xn.PARTIAL:Xn.OK:Xn.APPENDING:Xn.NOT_LOADED}isTimeBuffered(e,t,n){let r,a;for(let s=0;s<n.length;s++){if(r=n.start(s)-this.bufferPadding,a=n.end(s)+this.bufferPadding,e>=r&&t<=a)return!0;if(t<=r)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if(t.frag.sn==="initSegment"||t.frag.bitrateTest)return;const n=t.frag,r=t.part?null:t,a=Er(n);this.fragments[a]={body:n,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:a,type:s}=t;if(n.sn==="initSegment")return;const d=n.type;if(r){let m=this.activePartLists[d];m||(this.activePartLists[d]=m=[]),m.push(r)}this.timeRanges=a;const p=a[s];this.detectEvictedFragments(s,p,d,r)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Er(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let r=n.length;r--;){const a=t[n[r]];if((a==null?void 0:a.body.type)===e)return!0}return!1}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,n,r,a){r&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const d=this.fragments[s];if(!d)return;const p=d.body;p.type!==n||r&&!p.gap||p.start<t&&p.end>e&&(d.buffered||a)&&this.removeFragment(p)})}removeFragment(e){const t=Er(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=Fn(n,a=>a.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const t=(e=this.hls)==null||(e=e.latestLevelDetails)==null?void 0:e.partList;t&&t.forEach(n=>n.clearElementaryStreamInfo())}}function gr(o){var e,t,n;return o.buffered&&!!(o.body.gap||(e=o.range.video)!=null&&e.partial||(t=o.range.audio)!=null&&t.partial||(n=o.range.audiovideo)!=null&&n.partial)}function Er(o){return`${o.type}_${o.level}_${o.sn}`}function Fn(o,e){return o.filter(t=>{const n=e(t);return n||t.clearElementaryStreamInfo(),n})}var yr={cbc:0,ctr:1};class Ir{constructor(e,t,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=n}decrypt(e,t){switch(this.aesMode){case yr.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case yr.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function Zr(o){const e=o.byteLength,t=e&&new DataView(o.buffer).getUint8(e-1);return t?o.slice(0,e-t):o}class Nr{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],a=n[1],s=n[2],d=n[3],p=this.invSubMix,m=p[0],v=p[1],C=p[2],F=p[3],te=new Uint32Array(256);let re=0,Xe=0,Ye=0;for(Ye=0;Ye<256;Ye++)Ye<128?te[Ye]=Ye<<1:te[Ye]=Ye<<1^283;for(Ye=0;Ye<256;Ye++){let It=Xe^Xe<<1^Xe<<2^Xe<<3^Xe<<4;It=It>>>8^It&255^99,e[re]=It,t[It]=re;const Ut=te[re],Wt=te[Ut],gn=te[Wt];let wn=te[It]*257^It*16843008;r[re]=wn<<24|wn>>>8,a[re]=wn<<16|wn>>>16,s[re]=wn<<8|wn>>>24,d[re]=wn,wn=gn*16843009^Wt*65537^Ut*257^re*16843008,m[It]=wn<<24|wn>>>8,v[It]=wn<<16|wn>>>16,C[It]=wn<<8|wn>>>24,F[It]=wn,re?(re=Ut^te[te[te[gn^Ut]]],Xe^=te[te[Xe]]):re=Xe=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 a=this.keySize=t.length;if(a!==4&&a!==6&&a!==8)throw new Error("Invalid aes key size="+a);const s=this.ksRows=(a+6+1)*4;let d,p;const m=this.keySchedule=new Uint32Array(s),v=this.invKeySchedule=new Uint32Array(s),C=this.sBox,F=this.rcon,te=this.invSubMix,re=te[0],Xe=te[1],Ye=te[2],It=te[3];let Ut,Wt;for(d=0;d<s;d++){if(d<a){Ut=m[d]=t[d];continue}Wt=Ut,d%a===0?(Wt=Wt<<8|Wt>>>24,Wt=C[Wt>>>24]<<24|C[Wt>>>16&255]<<16|C[Wt>>>8&255]<<8|C[Wt&255],Wt^=F[d/a|0]<<24):a>6&&d%a===4&&(Wt=C[Wt>>>24]<<24|C[Wt>>>16&255]<<16|C[Wt>>>8&255]<<8|C[Wt&255]),m[d]=Ut=(m[d-a]^Wt)>>>0}for(p=0;p<s;p++)d=s-p,p&3?Wt=m[d]:Wt=m[d-4],p<4||d<=4?v[p]=Wt:v[p]=re[C[Wt>>>24]]^Xe[C[Wt>>>16&255]]^Ye[C[Wt>>>8&255]]^It[C[Wt&255]],v[p]=v[p]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,n){const r=this.keySize+6,a=this.invKeySchedule,s=this.invSBox,d=this.invSubMix,p=d[0],m=d[1],v=d[2],C=d[3],F=this.uint8ArrayToUint32Array_(n);let te=F[0],re=F[1],Xe=F[2],Ye=F[3];const It=new Int32Array(e),Ut=new Int32Array(It.length);let Wt,gn,wn,or,Dn,Wn,Hn,Ln,mr,Hr,ai,pi,si,kr;const oi=this.networkToHostOrderSwap;for(;t<It.length;){for(mr=oi(It[t]),Hr=oi(It[t+1]),ai=oi(It[t+2]),pi=oi(It[t+3]),Dn=mr^a[0],Wn=pi^a[1],Hn=ai^a[2],Ln=Hr^a[3],si=4,kr=1;kr<r;kr++)Wt=p[Dn>>>24]^m[Wn>>16&255]^v[Hn>>8&255]^C[Ln&255]^a[si],gn=p[Wn>>>24]^m[Hn>>16&255]^v[Ln>>8&255]^C[Dn&255]^a[si+1],wn=p[Hn>>>24]^m[Ln>>16&255]^v[Dn>>8&255]^C[Wn&255]^a[si+2],or=p[Ln>>>24]^m[Dn>>16&255]^v[Wn>>8&255]^C[Hn&255]^a[si+3],Dn=Wt,Wn=gn,Hn=wn,Ln=or,si=si+4;Wt=s[Dn>>>24]<<24^s[Wn>>16&255]<<16^s[Hn>>8&255]<<8^s[Ln&255]^a[si],gn=s[Wn>>>24]<<24^s[Hn>>16&255]<<16^s[Ln>>8&255]<<8^s[Dn&255]^a[si+1],wn=s[Hn>>>24]<<24^s[Ln>>16&255]<<16^s[Dn>>8&255]<<8^s[Wn&255]^a[si+2],or=s[Ln>>>24]<<24^s[Dn>>16&255]<<16^s[Wn>>8&255]<<8^s[Hn&255]^a[si+3],Ut[t]=oi(Wt^te),Ut[t+1]=oi(or^re),Ut[t+2]=oi(wn^Xe),Ut[t+3]=oi(gn^Ye),te=mr,re=Hr,Xe=ai,Ye=pi,t=t+4}return Ut.buffer}}class Lr{constructor(e,t,n){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=n}expandKey(){const e=Cr(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function Cr(o){switch(o){case yr.cbc:return"AES-CBC";case yr.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${o}`)}}const Fr=16;class Jt{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const n=self.crypto;n&&(this.subtle=n.subtle||n.webkitSubtle)}catch(n){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const n=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?Zr(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n,r){return this.useSoftware?new Promise((a,s)=>{const d=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(d,t,n,r);const p=this.flush();p?a(p.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n,r)}softwareDecrypt(e,t,n,r){const{currentIV:a,currentResult:s,remainderData:d}=this;if(r!==yr.cbc||t.byteLength!==16)return me.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),d&&(e=Pt(d,e),this.remainderData=null);const p=this.getValidChunk(e);if(!p.length)return null;a&&(n=a);let m=this.softwareDecrypter;m||(m=this.softwareDecrypter=new Nr),m.expandKey(t);const v=s;return this.currentResult=m.decrypt(p.buffer,0,n),this.currentIV=p.slice(-16).buffer,v||null}webCryptoDecrypt(e,t,n,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,r));this.key=t,this.fastAesKey=new Lr(this.subtle,t,r)}return this.fastAesKey.expandKey().then(a=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Ir(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,a)):Promise.reject(new Error("web crypto not initialized"))).catch(a=>(me.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${a.name}: ${a.message}`),this.onWebCryptoError(e,t,n,r)))}onWebCryptoError(e,t,n,r){const a=this.enableSoftwareAES;if(a){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,r);const s=this.flush();if(s)return s.buffer}throw new Error("WebCrypto"+(a?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%Fr;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(me.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const On=Math.pow(2,17);class Gn{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 wr({type:he.NETWORK_ERROR,details:Z.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,a=r.fLoader,s=r.loader;return new Promise((d,p)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(re=>re[0]==="GAP")){p(xr(e));return}else e.gap=!1;const m=this.loader=a?new a(r):new s(r),v=ur(e);e.loader=m;const C=lr(r.fragLoadPolicy.default),F={loadPolicy:C,timeout:C.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:On};e.stats=m.stats;const te={onSuccess:(re,Xe,Ye,It)=>{this.resetLoader(e,m);let Ut=re.data;Ye.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(Ut.slice(0,16)),Ut=Ut.slice(16)),d({frag:e,part:null,payload:Ut,networkDetails:It})},onError:(re,Xe,Ye,It)=>{this.resetLoader(e,m),p(new wr({type:he.NETWORK_ERROR,details:Z.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:A({url:n,data:void 0},re),error:new Error(`HTTP Error ${re.code} ${re.text}`),networkDetails:Ye,stats:It}))},onAbort:(re,Xe,Ye)=>{this.resetLoader(e,m),p(new wr({type:he.NETWORK_ERROR,details:Z.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:Ye,stats:re}))},onTimeout:(re,Xe,Ye)=>{this.resetLoader(e,m),p(new wr({type:he.NETWORK_ERROR,details:Z.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${F.timeout}ms`),networkDetails:Ye,stats:re}))}};t&&(te.onProgress=(re,Xe,Ye,It)=>t({frag:e,part:null,payload:Ye,networkDetails:It})),m.load(v,F,te)})}loadPart(e,t,n){this.abort();const r=this.config,a=r.fLoader,s=r.loader;return new Promise((d,p)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){p(xr(e,t));return}const m=this.loader=a?new a(r):new s(r),v=ur(e,t);e.loader=m;const C=lr(r.fragLoadPolicy.default),F={loadPolicy:C,timeout:C.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:On};t.stats=m.stats,m.load(v,F,{onSuccess:(te,re,Xe,Ye)=>{this.resetLoader(e,m),this.updateStatsFromPart(e,t);const It={frag:e,part:t,payload:te.data,networkDetails:Ye};n(It),d(It)},onError:(te,re,Xe,Ye)=>{this.resetLoader(e,m),p(new wr({type:he.NETWORK_ERROR,details:Z.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:A({url:v.url,data:void 0},te),error:new Error(`HTTP Error ${te.code} ${te.text}`),networkDetails:Xe,stats:Ye}))},onAbort:(te,re,Xe)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,m),p(new wr({type:he.NETWORK_ERROR,details:Z.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:Xe,stats:te}))},onTimeout:(te,re,Xe)=>{this.resetLoader(e,m),p(new wr({type:he.NETWORK_ERROR,details:Z.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${F.timeout}ms`),networkDetails:Xe,stats:te}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,a=r.total;if(n.loaded+=r.loaded,a){const p=Math.round(e.duration/t.duration),m=Math.min(Math.round(n.loaded/a),p),C=(p-m)*Math.round(n.loaded/m);n.total=n.loaded+C}else n.total=Math.max(n.loaded,n.total);const s=n.loading,d=r.loading;s.start?s.first+=d.first-d.start:(s.start=d.start,s.first=d.first),s.end=d.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function ur(o,e=null){const t=e||o,n={frag:o,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},r=t.byteRangeStartOffset,a=t.byteRangeEndOffset;if(i(r)&&i(a)){var s;let d=r,p=a;if(o.sn==="initSegment"&&jr((s=o.decryptdata)==null?void 0:s.method)){const m=a-r;m%16&&(p=a+(16-m%16)),r!==0&&(n.resetIV=!0,d=r-16)}n.rangeStart=d,n.rangeEnd=p}return n}function xr(o,e){const t=new Error(`GAP ${o.gap?"tag":"attribute"} found`),n={type:he.MEDIA_ERROR,details:Z.FRAG_GAP,fatal:!1,frag:o,error:t,networkDetails:null};return e&&(n.part=e),(e||o).stats.aborted=!0,new wr(n)}function jr(o){return o==="AES-128"||o==="AES-256"}class wr extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class ni extends X{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class di{constructor(e,t,n,r=0,a=-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=Ei(),this.buffering={audio:Ei(),video:Ei(),audiovideo:Ei()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=a,this.partial=s}}function Ei(){return{start:0,executeStart:0,executeEnd:0,end:0}}const Dr={length:0,start:()=>0,end:()=>0};class fr{static isBuffered(e,t){if(e){const n=fr.getBuffered(e);for(let r=n.length;r--;)if(t>=n.start(r)&&t<=n.end(r))return!0}return!1}static bufferedRanges(e){if(e){const t=fr.getBuffered(e);return fr.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}static bufferInfo(e,t,n){if(e){const r=fr.bufferedRanges(e);if(r.length)return fr.bufferedInfo(r,t,n)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.length>1&&e.sort((v,C)=>v.start-C.start||C.end-v.end);let r=-1,a=[];if(n)for(let v=0;v<e.length;v++){t>=e[v].start&&t<=e[v].end&&(r=v);const C=a.length;if(C){const F=a[C-1].end;e[v].start-F<n?e[v].end>F&&(a[C-1].end=e[v].end):a.push(e[v])}else a.push(e[v])}else a=e;let s=0,d,p=t,m=t;for(let v=0;v<a.length;v++){const C=a[v].start,F=a[v].end;if(r===-1&&t>=C&&t<=F&&(r=v),t+n>=C&&t<F)p=C,m=F,s=m-t;else if(t+n<C){d=C;break}}return{len:s,start:p||0,end:m||0,nextStart:d,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||Dr}catch(t){return me.log("failed to get media.buffered",t),Dr}}}const yi=/\{\$([a-zA-Z0-9-_]+)\}/g;function sr(o){return yi.test(o)}function wi(o,e){if(o.variableList!==null||o.hasVariableRefs){const t=o.variableList;return e.replace(yi,n=>{const r=n.substring(2,n.length-1),a=t==null?void 0:t[r];return a===void 0?(o.playlistParsingError||(o.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):a})}return e}function Yi(o,e,t){let n=o.variableList;n||(o.variableList=n={});let r,a;if("QUERYPARAM"in e){r=e.QUERYPARAM;try{const s=new self.URL(t).searchParams;if(s.has(r))a=s.get(r);else throw new Error(`"${r}" does not match any query parameter in URI: "${t}"`)}catch(s){o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else r=e.NAME,a=e.VALUE;r in n?o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=a||""}function Wi(o,e,t){const n=e.IMPORT;if(t&&n in t){let r=o.variableList;r||(o.variableList=r={}),r[n]=t[n]}else o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}const Mi=/^(\d+)x(\d+)$/,Ni=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Vr{constructor(e,t){typeof e=="string"&&(e=Vr.parseAttrList(e,t)),y(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const n=new Uint8Array(t.length/2);for(let r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(r*2,r*2+2),16);return n}return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const n=this[e];return(n?n.split(/[ ,]+/):[]).reduce((r,a)=>(r[a.toLowerCase()]=!0,r),t)}bool(e){return this[e]==="YES"}decimalResolution(e){const t=Mi.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;const r={},a='"';for(Ni.lastIndex=0;(n=Ni.exec(e))!==null;){const s=n[1].trim();let d=n[2];const p=d.indexOf(a)===0&&d.lastIndexOf(a)===d.length-1;let m=!1;if(p)d=d.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":m=!0}if(t&&(p||m))d=wi(t,d);else if(!m&&!p)switch(s){case"CLOSED-CAPTIONS":if(d==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":me.warn(`${e}: attribute ${s} is missing quotes`)}r[s]=d}return r}}const Di="com.apple.hls.interstitial";function ra(o){return o!=="ID"&&o!=="CLASS"&&o!=="CUE"&&o!=="START-DATE"&&o!=="DURATION"&&o!=="END-DATE"&&o!=="END-ON-NEXT"}function zi(o){return o==="SCTE35-OUT"||o==="SCTE35-IN"||o==="SCTE35-CMD"}class hi{constructor(e,t,n=0){var r;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(t==null?void 0:t.tagAnchor)||null,this.tagOrder=(r=t==null?void 0:t.tagOrder)!=null?r:n,t){const a=t.attr;for(const s in a)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]!==a[s]){me.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=s;break}e=y(new Vr({}),a,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const a=(t==null?void 0:t.endDate)||new Date(this.attr["END-DATE"]);i(a.getTime())&&(this._endDate=a)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return e===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return e===null||e.programDateTime===null?(me.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return t!==null?this._dateAtEnd=new Date(this._startDate.getTime()+t*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(i(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===Di}get isValid(){return!!this.id&&!this._badValueForSameId&&i(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const ki=10;class Zi{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&n>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1}hasKey(e){return this.encryptedFragments.some(t=>{let n=t.decryptdata;return n||(t.setKeyFormat(e.keyFormat),n=t.decryptdata),!!n&&e.matches(n)})}get hasProgramDateTime(){return this.fragments.length?i(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||ki}get drift(){const e=this.driftEndTime-this.driftStartTime;return e>0?(this.driftEnd-this.driftStart)*1e3/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){return this.fragments.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(t!==-1){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function Br(o,e){return o.length===e.length?!o.some((t,n)=>t!==e[n]):!1}function ei(o,e){return!o&&!e?!0:!o||!e?!1:Br(o,e)}function pr(o){return o==="AES-128"||o==="AES-256"||o==="AES-256-CTR"}function vr(o){switch(o){case"AES-128":case"AES-256":return yr.cbc;case"AES-256-CTR":return yr.ctr;default:throw new Error(`invalid full segment method ${o}`)}}function Pr(o){return Uint8Array.from(atob(o),e=>e.charCodeAt(0))}function Wr(o){return Uint8Array.from(unescape(encodeURIComponent(o)),e=>e.charCodeAt(0))}function Ci(o){const e=Wr(o).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function br(o){const e=function(n,r,a){const s=n[r];n[r]=n[a],n[a]=s};e(o,0,3),e(o,1,2),e(o,4,5),e(o,6,7)}function Rr(o){const e=o.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 a=r[0]==="base64",s=r[1];a?(n.splice(-1,1),t=Pr(s)):t=Ci(s)}}return t}const Mr=typeof self!="undefined"?self:void 0;var $r={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},ti={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function ma(o){switch(o){case ti.FAIRPLAY:return $r.FAIRPLAY;case ti.PLAYREADY:return $r.PLAYREADY;case ti.WIDEVINE:return $r.WIDEVINE;case ti.CLEARKEY:return $r.CLEARKEY}}function Xi(o){switch(o){case $r.FAIRPLAY:return ti.FAIRPLAY;case $r.PLAYREADY:return ti.PLAYREADY;case $r.WIDEVINE:return ti.WIDEVINE;case $r.CLEARKEY:return ti.CLEARKEY}}function ua(o){const{drmSystems:e,widevineLicenseUrl:t}=o,n=e?[$r.FAIRPLAY,$r.WIDEVINE,$r.PLAYREADY,$r.CLEARKEY].filter(r=>!!e[r]):[];return!n[$r.WIDEVINE]&&t&&n.push($r.WIDEVINE),n}const fi=function(o){return Mr!=null&&(o=Mr.navigator)!=null&&o.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function ri(o,e,t,n){let r;switch(o){case $r.FAIRPLAY:r=["cenc","sinf"];break;case $r.WIDEVINE:case $r.PLAYREADY:r=["cenc"];break;case $r.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${o}`)}return Ti(r,e,t,n)}function Ti(o,e,t,n){return[{initDataTypes:o,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map(a=>({contentType:`audio/mp4; codecs=${a}`,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null})),videoCapabilities:t.map(a=>({contentType:`video/mp4; codecs=${a}`,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}))}]}function Oi(o){var e;return!!o&&(o.sessionType==="persistent-license"||!!((e=o.sessionTypes)!=null&&e.some(t=>t==="persistent-license")))}function ia(o){const e=new Uint16Array(o.buffer,o.byteOffset,o.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 d=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(d){const p=Pr(d).subarray(0,16);return br(p),p}}return null}let pa={};class Sa{static clearKeyUriToKeyIdMap(){pa={}}static setKeyIdForUri(e,t){pa[e]=t}static addKeyIdForUri(e){const t=Object.keys(pa).length%Number.MAX_SAFE_INTEGER,n=new Uint8Array(16);return new DataView(n.buffer,12,4).setUint32(0,t),pa[e]=n,n}constructor(e,t,n,r=[1],a=null,s){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=a,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!pr(e),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(k(s)))}matches(e){return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&Br(e.keyFormatVersions,this.keyFormatVersions)&&ei(e.iv,this.iv)&&ei(e.keyId,this.keyId)}isSupported(){if(this.method){if(pr(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case ti.FAIRPLAY:case ti.WIDEVINE:case ti.PLAYREADY:case ti.CLEARKEY:return["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e,t){if(!this.encrypted||!this.uri)return null;if(pr(this.method)){let a=this.iv;return a||(typeof e!="number"&&(me.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0),a=Ta(e)),new Sa(this.method,this.uri,"identity",this.keyFormatVersions,a)}if(this.keyId){const a=pa[this.uri];if(a&&!Br(this.keyId,a)&&Sa.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const n=Rr(this.uri);if(n)switch(this.keyFormat){case ti.WIDEVINE:if(this.pssh=n,!this.keyId){const a=je(n.buffer);if(a.length){var r;const s=a[0];this.keyId=(r=s.kids)!=null&&r.length?s.kids[0]:null}}this.keyId||(this.keyId=Wa(t));break;case ti.PLAYREADY:{const a=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=S(a,null,n),this.keyId=ia(n);break}default:{let a=n.subarray(0,16);if(a.length!==16){const s=new Uint8Array(16);s.set(a,16-a.length),a=s}this.keyId=a;break}}if(!this.keyId||this.keyId.byteLength!==16){let a;a=Da(t),a||(a=Wa(t),a||(a=pa[this.uri])),a&&(this.keyId=a,Sa.setKeyIdForUri(this.uri,a))}return this}}function Da(o){const e=o==null?void 0:o[ti.WIDEVINE];return e?e.keyId:null}function Wa(o){const e=o==null?void 0:o[ti.PLAYREADY];if(e){const t=Rr(e.uri);if(t)return ia(t)}return null}function Ta(o){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=o>>8*(15-t)&255;return e}const vs=/#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,Cs=/#EXT-X-MEDIA:(.*)/g,Ds=/^#EXT(?:INF|-X-TARGETDURATION):/m,$a=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),Rs=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class za{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 w.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return Ds.test(e)}static parseMasterPlaylist(e,t){const n=sr(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},a=[];if(vs.lastIndex=0,!e.startsWith("#EXTM3U"))return r.playlistParsingError=new Error("no EXTM3U delimiter"),r;let s;for(;(s=vs.exec(e))!=null;)if(s[1]){var d;const m=new Vr(s[1],r),v=wi(r,s[2]),C={attrs:m,bitrate:m.decimalInteger("BANDWIDTH")||m.decimalInteger("AVERAGE-BANDWIDTH"),name:m.NAME,url:za.resolve(v,t)},F=m.decimalResolution("RESOLUTION");F&&(C.width=F.width,C.height=F.height),ds(m.CODECS,C);const te=m["SUPPLEMENTAL-CODECS"];te&&(C.supplemental={},ds(te,C.supplemental)),(d=C.unknownCodecs)!=null&&d.length||a.push(C),r.levels.push(C)}else if(s[3]){const m=s[3],v=s[4];switch(m){case"SESSION-DATA":{const C=new Vr(v,r),F=C["DATA-ID"];F&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[F]=C);break}case"SESSION-KEY":{const C=Ws(v,t,r);C.encrypted&&C.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(C)):me.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${v}"`);break}case"DEFINE":{{const C=new Vr(v,r);Yi(r,C,t)}break}case"CONTENT-STEERING":{const C=new Vr(v,r);r.contentSteering={uri:za.resolve(C["SERVER-URI"],t),pathwayId:C["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=Vs(v);break}}}const p=a.length>0&&a.length<r.levels.length;return r.levels=p?a:r.levels,r.levels.length===0&&(r.playlistParsingError=new Error("no levels found in manifest")),r}static parseMasterPlaylistMedia(e,t,n){let r;const a={},s=n.levels,d={AUDIO:s.map(m=>({id:m.attrs.AUDIO,audioCodec:m.audioCodec})),SUBTITLES:s.map(m=>({id:m.attrs.SUBTITLES,textCodec:m.textCodec})),"CLOSED-CAPTIONS":[]};let p=0;for(Cs.lastIndex=0;(r=Cs.exec(e))!==null;){const m=new Vr(r[1],n),v=m.TYPE;if(v){const C=d[v],F=a[v]||[];a[v]=F;const te=m.LANGUAGE,re=m["ASSOC-LANGUAGE"],Xe=m.CHANNELS,Ye=m.CHARACTERISTICS,It=m["INSTREAM-ID"],Ut={attrs:m,bitrate:0,id:p++,groupId:m["GROUP-ID"]||"",name:m.NAME||te||"",type:v,default:m.bool("DEFAULT"),autoselect:m.bool("AUTOSELECT"),forced:m.bool("FORCED"),lang:te,url:m.URI?za.resolve(m.URI,t):""};if(re&&(Ut.assocLang=re),Xe&&(Ut.channels=Xe),Ye&&(Ut.characteristics=Ye),It&&(Ut.instreamId=It),C!=null&&C.length){const Wt=za.findGroup(C,Ut.groupId)||C[0];Ya(Ut,Wt,"audioCodec"),Ya(Ut,Wt,"textCodec")}F.push(Ut)}}return a}static parseLevelPlaylist(e,t,n,r,a,s){var d;const p={url:t},m=new Zi(t),v=m.fragments,C=[];let F=null,te=0,re=0,Xe=0,Ye=0,It=0,Ut=null,Wt=new Tt(r,p),gn,wn,or,Dn=-1,Wn=!1,Hn=null,Ln;if($a.lastIndex=0,m.m3u8=e,m.hasVariableRefs=sr(e),((d=$a.exec(e))==null?void 0:d[0])!=="#EXTM3U")return m.playlistParsingError=new Error("Missing format identifier #EXTM3U"),m;for(;(gn=$a.exec(e))!==null;){Wn&&(Wn=!1,Wt=new Tt(r,p),Wt.playlistOffset=Xe,Wt.setStart(Xe),Wt.sn=te,Wt.cc=Ye,It&&(Wt.bitrate=It),Wt.level=n,F&&(Wt.initSegment=F,F.rawProgramDateTime&&(Wt.rawProgramDateTime=F.rawProgramDateTime,F.rawProgramDateTime=null),Hn&&(Wt.setByteRange(Hn),Hn=null)));const pi=gn[1];if(pi){Wt.duration=parseFloat(pi);const si=(" "+gn[2]).slice(1);Wt.title=si||null,Wt.tagList.push(si?["INF",pi,si]:["INF",pi])}else if(gn[3]){if(i(Wt.duration)){Wt.playlistOffset=Xe,Wt.setStart(Xe),or&&La(Wt,or,m),Wt.sn=te,Wt.level=n,Wt.cc=Ye,v.push(Wt);const si=(" "+gn[3]).slice(1);Wt.relurl=wi(m,si),mi(Wt,Ut,C),Ut=Wt,Xe+=Wt.duration,te++,re=0,Wn=!0}}else{if(gn=gn[0].match(Rs),!gn){me.warn("No matches on slow regex match for level playlist!");continue}for(wn=1;wn<gn.length&&gn[wn]===void 0;wn++);const si=(" "+gn[wn]).slice(1),kr=(" "+gn[wn+1]).slice(1),oi=gn[wn+2]?(" "+gn[wn+2]).slice(1):null;switch(si){case"BYTERANGE":Ut?Wt.setByteRange(kr,Ut):Wt.setByteRange(kr);break;case"PROGRAM-DATE-TIME":Wt.rawProgramDateTime=kr,Wt.tagList.push(["PROGRAM-DATE-TIME",kr]),Dn===-1&&(Dn=v.length);break;case"PLAYLIST-TYPE":m.type&&Ui(m,si,gn),m.type=kr.toUpperCase();break;case"MEDIA-SEQUENCE":m.startSN!==0?Ui(m,si,gn):v.length>0&&Ea(m,si,gn),te=m.startSN=parseInt(kr);break;case"SKIP":{m.skippedSegments&&Ui(m,si,gn);const Jr=new Vr(kr,m),ci=Jr.decimalInteger("SKIPPED-SEGMENTS");if(i(ci)){m.skippedSegments+=ci;for(let Ur=ci;Ur--;)v.push(null);te+=ci}const _i=Jr.enumeratedString("RECENTLY-REMOVED-DATERANGES");_i&&(m.recentlyRemovedDateranges=(m.recentlyRemovedDateranges||[]).concat(_i.split(" ")));break}case"TARGETDURATION":m.targetduration!==0&&Ui(m,si,gn),m.targetduration=Math.max(parseInt(kr),1);break;case"VERSION":m.version!==null&&Ui(m,si,gn),m.version=parseInt(kr);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":m.live||Ui(m,si,gn),m.live=!1;break;case"#":(kr||oi)&&Wt.tagList.push(oi?[kr,oi]:[kr]);break;case"DISCONTINUITY":Ye++,Wt.tagList.push(["DIS"]);break;case"GAP":Wt.gap=!0,Wt.tagList.push([si]);break;case"BITRATE":Wt.tagList.push([si,kr]),It=parseInt(kr)*1e3,i(It)?Wt.bitrate=It:It=0;break;case"DATERANGE":{const Jr=new Vr(kr,m),ci=new hi(Jr,m.dateRanges[Jr.ID],m.dateRangeTagCount);m.dateRangeTagCount++,ci.isValid||m.skippedSegments?m.dateRanges[ci.id]=ci:me.warn(`Ignoring invalid DATERANGE tag: "${kr}"`),Wt.tagList.push(["EXT-X-DATERANGE",kr]);break}case"DEFINE":{{const Jr=new Vr(kr,m);"IMPORT"in Jr?Wi(m,Jr,s):Yi(m,Jr,t)}break}case"DISCONTINUITY-SEQUENCE":m.startCC!==0?Ui(m,si,gn):v.length>0&&Ea(m,si,gn),m.startCC=Ye=parseInt(kr);break;case"KEY":{const Jr=Ws(kr,t,m);if(Jr.isSupported()){if(Jr.method==="NONE"){or=void 0;break}or||(or={});const ci=or[Jr.keyFormat];ci!=null&&ci.matches(Jr)||(ci&&(or=y({},or)),or[Jr.keyFormat]=Jr)}else me.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${kr}"`);break}case"START":m.startTimeOffset=Vs(kr);break;case"MAP":{const Jr=new Vr(kr,m);if(Wt.duration){const ci=new Tt(r,p);Aa(ci,Jr,n,or),F=ci,Wt.initSegment=F,F.rawProgramDateTime&&!Wt.rawProgramDateTime&&(Wt.rawProgramDateTime=F.rawProgramDateTime)}else{const ci=Wt.byteRangeEndOffset;if(ci){const _i=Wt.byteRangeStartOffset;Hn=`${ci-_i}@${_i}`}else Hn=null;Aa(Wt,Jr,n,or),F=Wt,Wn=!0}F.cc=Ye;break}case"SERVER-CONTROL":{Ln&&Ui(m,si,gn),Ln=new Vr(kr),m.canBlockReload=Ln.bool("CAN-BLOCK-RELOAD"),m.canSkipUntil=Ln.optionalFloat("CAN-SKIP-UNTIL",0),m.canSkipDateRanges=m.canSkipUntil>0&&Ln.bool("CAN-SKIP-DATERANGES"),m.partHoldBack=Ln.optionalFloat("PART-HOLD-BACK",0),m.holdBack=Ln.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{m.partTarget&&Ui(m,si,gn);const Jr=new Vr(kr);m.partTarget=Jr.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Jr=m.partList;Jr||(Jr=m.partList=[]);const ci=re>0?Jr[Jr.length-1]:void 0,_i=re++,Ur=new Vr(kr,m),Kr=new Ae(Ur,Wt,p,_i,ci);Jr.push(Kr),Wt.duration+=Kr.duration;break}case"PRELOAD-HINT":{const Jr=new Vr(kr,m);m.preloadHint=Jr;break}case"RENDITION-REPORT":{const Jr=new Vr(kr,m);m.renditionReports=m.renditionReports||[],m.renditionReports.push(Jr);break}default:me.warn(`line parsed but not handled: ${gn}`);break}}}Ut&&!Ut.relurl?(v.pop(),Xe-=Ut.duration,m.partList&&(m.fragmentHint=Ut)):m.partList&&(mi(Wt,Ut,C),Wt.cc=Ye,m.fragmentHint=Wt,or&&La(Wt,or,m)),m.targetduration||(m.playlistParsingError=new Error("Missing Target Duration"));const mr=v.length,Hr=v[0],ai=v[mr-1];if(Xe+=m.skippedSegments*m.targetduration,Xe>0&&mr&&ai){m.averagetargetduration=Xe/mr;const pi=ai.sn;m.endSN=pi!=="initSegment"?pi:0,m.live||(ai.endList=!0),Dn>0&&(Ai(v,Dn),Hr&&C.unshift(Hr))}return m.fragmentHint&&(Xe+=m.fragmentHint.duration),m.totalduration=Xe,C.length&&m.dateRangeTagCount&&Hr&&Fs(C,m),m.endCC=Ye,m}}function Fs(o,e){let t=o.length;if(!t)if(e.hasProgramDateTime){const d=e.fragments[e.fragments.length-1];o.push(d),t++}else return;const n=o[t-1],r=e.live?1/0:e.totalduration,a=Object.keys(e.dateRanges);for(let d=a.length;d--;){const p=e.dateRanges[a[d]],m=p.startDate.getTime();p.tagAnchor=n.ref;for(let v=t;v--;){var s;if(((s=o[v])==null?void 0:s.sn)<e.startSN)break;const C=$s(e,m,o,v,r);if(C!==-1){p.tagAnchor=e.fragments[C].ref;break}}}}function $s(o,e,t,n,r){const a=t[n];if(a){const d=a.programDateTime;if(e>=d||n===0){var s;const p=(((s=t[n+1])==null?void 0:s.start)||r)-a.start;if(e<=d+p*1e3){const m=t[n].sn-o.startSN;if(m<0)return-1;const v=o.fragments;if(v.length>t.length){const F=(t[n+1]||v[v.length-1]).sn-o.startSN;for(let te=F;te>m;te--){const re=v[te].programDateTime;if(e>=re&&e<re+v[te].duration*1e3)return te}}return m}}}return-1}function Ws(o,e,t){var n,r;const a=new Vr(o,t),s=(n=a.METHOD)!=null?n:"",d=a.URI,p=a.hexadecimalInteger("IV"),m=a.KEYFORMATVERSIONS,v=(r=a.KEYFORMAT)!=null?r:"identity";d&&a.IV&&!p&&me.error(`Invalid IV: ${a.IV}`);const C=d?za.resolve(d,e):"",F=(m||"1").split("/").map(Number).filter(Number.isFinite);return new Sa(s,C,v,F,p,a.KEYID)}function Vs(o){const t=new Vr(o).decimalFloatingPoint("TIME-OFFSET");return i(t)?t:null}function ds(o,e){let t=(o||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(a=>rt(a,n));r.length&&(e[`${n}Codec`]=r.map(a=>a.split("/")[0]).join(","),t=t.filter(a=>r.indexOf(a)===-1))}),e.unknownCodecs=t}function Ya(o,e,t){const n=e[t];n&&(o[t]=n)}function Ai(o,e){let t=o[e];for(let n=e;n--;){const r=o[n];if(!r)return;r.programDateTime=t.programDateTime-r.duration*1e3,t=r}}function mi(o,e,t){o.rawProgramDateTime?t.push(o):e!=null&&e.programDateTime&&(o.programDateTime=e.endProgramDateTime)}function Aa(o,e,t,n){o.relurl=e.URI,e.BYTERANGE&&o.setByteRange(e.BYTERANGE),o.level=t,o.sn="initSegment",n&&(o.levelkeys=n),o.initSegment=null}function La(o,e,t){o.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(o)}function Ui(o,e,t){o.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function Ea(o,e,t){o.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function Za(o,e){const t=e.startPTS;if(i(t)){let n=0,r;e.sn>o.sn?(n=t-o.start,r=o):(n=o.start-t,r=e),r.duration!==n&&r.setDuration(n)}else e.sn>o.sn?o.cc===e.cc&&o.minEndPTS?e.setStart(o.start+(o.minEndPTS-o.start)):e.setStart(o.start+o.duration):e.setStart(Math.max(o.start-e.duration,0))}function Ua(o,e,t,n,r,a,s){n-t<=0&&(s.warn("Fragment should have a positive duration",e),n=t+e.duration,a=r+e.duration);let p=t,m=n;const v=e.startPTS,C=e.endPTS;if(i(v)){const It=Math.abs(v-t);o&&It>o.totalduration?s.warn(`media timestamps and playlist times differ by ${It}s for level ${e.level} ${o.url}`):i(e.deltaPTS)?e.deltaPTS=Math.max(It,e.deltaPTS):e.deltaPTS=It,p=Math.max(t,v),t=Math.min(t,v),r=e.startDTS!==void 0?Math.min(r,e.startDTS):r,m=Math.min(n,C),n=Math.max(n,C),a=e.endDTS!==void 0?Math.max(a,e.endDTS):a}const F=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(n-e.start),e.startPTS=t,e.maxStartPTS=p,e.startDTS=r,e.endPTS=n,e.minEndPTS=m,e.endDTS=a;const te=e.sn;if(!o||te<o.startSN||te>o.endSN)return 0;let re;const Xe=te-o.startSN,Ye=o.fragments;for(Ye[Xe]=e,re=Xe;re>0;re--)Za(Ye[re],Ye[re-1]);for(re=Xe;re<Ye.length-1;re++)Za(Ye[re],Ye[re+1]);return o.fragmentHint&&Za(Ye[Ye.length-1],o.fragmentHint),o.PTSKnown=o.alignedSliding=!0,F}function rs(o,e,t){if(o===e)return;let n=null;const r=o.fragments;for(let v=r.length-1;v>=0;v--){const C=r[v].initSegment;if(C){n=C;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;let a;Xa(o,e,(v,C,F,te)=>{if((!e.startCC||e.skippedSegments)&&C.cc!==v.cc){const re=v.cc-C.cc;for(let Xe=F;Xe<te.length;Xe++)te[Xe].cc+=re;e.endCC=te[te.length-1].cc}i(v.startPTS)&&i(v.endPTS)&&(C.setStart(C.startPTS=v.startPTS),C.startDTS=v.startDTS,C.maxStartPTS=v.maxStartPTS,C.endPTS=v.endPTS,C.endDTS=v.endDTS,C.minEndPTS=v.minEndPTS,C.setDuration(v.endPTS-v.startPTS),C.duration&&(a=C),e.PTSKnown=e.alignedSliding=!0),v.hasStreams&&(C.elementaryStreams=v.elementaryStreams),C.loader=v.loader,v.hasStats&&(C.stats=v.stats),v.initSegment&&(C.initSegment=v.initSegment,n=v.initSegment)});const s=e.fragments,d=e.fragmentHint?s.concat(e.fragmentHint):s;if(n&&d.forEach(v=>{var C;v&&(!v.initSegment||v.initSegment.relurl===((C=n)==null?void 0:C.relurl))&&(v.initSegment=n)}),e.skippedSegments){if(e.deltaUpdateFailed=s.some(v=>!v),e.deltaUpdateFailed){t.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let v=e.skippedSegments;v--;)s.shift();e.startSN=s[0].sn}else{e.canSkipDateRanges&&(e.dateRanges=Pa(o.dateRanges,e,t));const v=o.fragments.filter(C=>C.rawProgramDateTime);if(o.hasProgramDateTime&&!e.hasProgramDateTime)for(let C=1;C<d.length;C++)d[C].programDateTime===null&&mi(d[C],d[C-1],v);Fs(v,e)}e.endCC=s[s.length-1].cc}if(!e.startCC){var p;const v=Vi(o,e.startSN-1);e.startCC=(p=v==null?void 0:v.cc)!=null?p:s[0].cc}ss(o.partList,e.partList,(v,C)=>{C.elementaryStreams=v.elementaryStreams,C.stats=v.stats}),a?Ua(e,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS,t):hs(o,e),s.length&&(e.totalduration=e.edge-s[0].start),e.driftStartTime=o.driftStartTime,e.driftStart=o.driftStart;const m=e.advancedDateTime;if(e.advanced&&m){const v=e.edge;e.driftStart||(e.driftStartTime=m,e.driftStart=v),e.driftEndTime=m,e.driftEnd=v}else e.driftEndTime=o.driftEndTime,e.driftEnd=o.driftEnd,e.advancedDateTime=o.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=o.requestScheduled)}function Pa(o,e,t){const{dateRanges:n,recentlyRemovedDateranges:r}=e,a=y({},o);r&&r.forEach(p=>{delete a[p]});const d=Object.keys(a).length;return d?(Object.keys(n).forEach(p=>{const m=a[p],v=new hi(n[p].attr,m);v.isValid?(a[p]=v,m||(v.tagOrder+=d)):t.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${at(n[p].attr)}"`)}),a):n}function ss(o,e,t){if(o&&e){let n=0;for(let r=0,a=o.length;r<=a;r++){const s=o[r],d=e[r+n];s&&d&&s.index===d.index&&s.fragment.sn===d.fragment.sn?t(s,d):n--}}}function Xa(o,e,t){const n=e.skippedSegments,r=Math.max(o.startSN,e.startSN)-e.startSN,a=(o.fragmentHint?1:0)+(n?e.endSN:Math.min(o.endSN,e.endSN))-e.startSN,s=e.startSN-o.startSN,d=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,p=o.fragmentHint?o.fragments.concat(o.fragmentHint):o.fragments;for(let m=r;m<=a;m++){const v=p[s+m];let C=d[m];if(n&&!C&&v&&(C=e.fragments[m]=v),v&&C){t(v,C,m,d);const F=v.relurl,te=C.relurl;if(F&&ws(F,te)){e.playlistParsingError=fs(`media sequence mismatch ${C.sn}:`,o,e,v,C);return}else if(v.cc!==C.cc){e.playlistParsingError=fs(`discontinuity sequence mismatch (${v.cc}!=${C.cc})`,o,e,v,C);return}}}}function fs(o,e,t,n,r){return new Error(`${o} ${r.url}
|
|
|
Playlist starting @${e.startSN}
|
|
|
${e.m3u8}
|
|
|
|
|
|
Playlist starting @${t.startSN}
|
|
|
${t.m3u8}`)}function hs(o,e,t=!0){const n=e.startSN+e.skippedSegments-o.startSN,r=o.fragments,a=n>=0;let s=0;if(a&&n<r.length)s=r[n].start;else if(a&&e.startSN===o.endSN+1)s=o.fragmentEnd;else if(a&&t)s=o.fragmentStart+n*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)s=o.fragmentStart;else return;Gs(e,s)}function Gs(o,e){if(e){const t=o.fragments;for(let n=o.skippedSegments;n<t.length;n++)t[n].addStart(e);o.fragmentHint&&o.fragmentHint.addStart(e)}}function Ki(o,e=1/0){let t=1e3*o.targetduration;if(o.updated){const n=o.fragments;if(n.length&&t*4>e){const a=n[n.length-1].duration*1e3;a<t&&(t=a)}}else t/=2;return Math.round(t)}function Vi(o,e,t){if(!o)return null;let n=o.fragments[e-o.startSN];return n||(n=o.fragmentHint,n&&n.sn===e)?n:e<o.startSN&&t&&t.sn===e?t:null}function aa(o,e,t){return o?Ma(o.partList,e,t):null}function Ma(o,e,t){if(o)for(let n=o.length;n--;){const r=o[n];if(r.index===t&&r.fragment.sn===e)return r}return null}function Ka(o){o.forEach((e,t)=>{var n;(n=e.details)==null||n.fragments.forEach(r=>{r.level=t,r.initSegment&&(r.initSegment.level=t)})})}function ws(o,e){return o!==e&&e?Os(o)!==Os(e):!1}function Os(o){return o.replace(/\?[^?]*$/,"")}function ys(o,e){for(let n=0,r=o.length;n<r;n++){var t;if(((t=o[n])==null?void 0:t.cc)===e)return o[n]}return null}function Ys(o,e){return!!(o&&e.startCC<o.endCC&&e.endCC>o.startCC)}function Ls(o,e){const t=o.start+e;o.startPTS=t,o.setStart(t),o.endPTS=t+o.duration}function Ps(o,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)Ls(t[n],o);e.fragmentHint&&Ls(e.fragmentHint,o),e.alignedSliding=!0}function Xs(o,e){o&&(zs(e,o),e.alignedSliding||so(e,o),!e.alignedSliding&&!e.skippedSegments&&hs(o,e,!1))}function zs(o,e){if(!Ys(e,o))return;const t=Math.min(e.endCC,o.endCC),n=ys(e.fragments,t),r=ys(o.fragments,t);if(!n||!r)return;me.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const a=n.start-r.start;Ps(a,o)}function so(o,e){if(!o.hasProgramDateTime||!e.hasProgramDateTime)return;const t=o.fragments,n=e.fragments;if(!t.length||!n.length)return;let r,a;const s=Math.min(e.endCC,o.endCC);e.startCC<s&&o.startCC<s&&(r=ys(n,s),a=ys(t,s)),(!r||!a)&&(r=n[Math.floor(n.length/2)],a=ys(t,r.cc)||t[Math.floor(t.length/2)]);const d=r.programDateTime,p=a.programDateTime;if(!d||!p)return;const m=(p-d)/1e3-(a.start-r.start);Ps(m,o)}function ja(o,e,t){Qa(o,e,t),o.addEventListener(e,t)}function Qa(o,e,t){o.removeEventListener(e,t)}const Bo={toString:function(o){let e="";const t=o.length;for(let n=0;n<t;n++)e+=`[${o.start(n).toFixed(3)}-${o.end(n).toFixed(3)}]`;return e}},cr={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 oo extends ni{constructor(e,t,n,r,a){super(r,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=cr.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{const{config:s,fragCurrent:d,media:p,mediaBuffer:m,state:v}=this,C=p?p.currentTime:0,F=fr.bufferInfo(m||p,C,s.maxBufferHole),te=!F.len;if(this.log(`Media seeking to ${i(C)?C.toFixed(3):C}, state: ${v}, ${te?"out of":"in"} buffer`),this.state===cr.ENDED)this.resetLoadingState();else if(d){const re=s.maxFragLookUpTolerance,Xe=d.start-re,Ye=d.start+d.duration+re;if(te||Ye<F.start||Xe>F.end){const It=C>Ye;(C<Xe||It)&&(It&&d.loader&&(this.log(`Cancelling fragment load for seek (sn: ${d.sn})`),d.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(p){this.fragmentTracker.removeFragmentsInRange(C,1/0,this.playlistType,!0);const re=this.lastCurrentTime;if(C>re&&(this.lastCurrentTime=C),!this.loadingParts){const Xe=Math.max(F.end,C),Ye=this.shouldLoadParts(this.getLevelDetails(),Xe);Ye&&(this.log(`LL-Part loading ON after seeking to ${C.toFixed(2)} with buffer @${Xe.toFixed(2)}`),this.loadingParts=Ye)}}this.hls.hasEnoughToStart||(this.log(`Setting ${te?"startPosition":"nextLoadPosition"} to ${C} for seek without enough to start`),this.nextLoadPosition=C,te&&(this.startPosition=C)),te&&this.state===cr.IDLE&&this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=a,this.hls=e,this.fragmentLoader=new Gn(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Jt(e.config)}registerListeners(){const{hls:e}=this;e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(g.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===cr.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=cr.STOPPED}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;return t===-1&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const n=e.end||0,r=this.config.timelineOffset||0;if(n<=r)return!1;const a=e.buffered;this.config.maxBufferHole&&a&&a.length>1&&(e=fr.bufferedInfo(a,e.start,0));const s=e.nextStart;if(s&&s>r&&s<t.edge||this.media.currentTime<e.start)return!1;const p=t.partList;if(p!=null&&p.length){const v=p[p.length-1];return fr.isBuffered(this.media,v.start+v.duration/2)}const m=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(m)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null)return this.levelLastLoaded.details}get timelineOffset(){const e=this.config.timelineOffset;if(e){var t;return((t=this.getLevelDetails())==null?void 0:t.appliedTimelineOffset)||e}return 0}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;ja(n,"seeking",this.onMediaSeeking),ja(n,"ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===cr.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(r!==null){if(r.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),Qa(r,"seeking",this.onMediaSeeking),Qa(r,"ended",this.onMediaEnded),this.keyLoader&&!n&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,n){this.resetLoadingState(),this.resetTransmuxer();return}this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=cr.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this.startFragRequested=!0,this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){const r=a=>{const s=a.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${a.part?" part: "+a.part.index:""} of ${this.fragInfo(s,!1,a.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(a)};this._doFragLoad(e,t,n,r).then(a=>{if(!a)return;const s=this.state,d=a.frag;if(this.fragContextChanged(d)){(s===cr.FRAG_LOADING||!this.fragCurrent&&s===cr.PARSING)&&(this.fragmentTracker.removeFragment(d),this.state=cr.IDLE);return}"payload"in a&&(this.log(`Loaded ${d.type} sn: ${d.sn} of ${this.playlistLabel()} ${d.level}`),this.hls.trigger(g.FRAG_LOADED,a)),this._handleFragmentLoadComplete(a)}).catch(a=>{this.state===cr.STOPPED||this.state===cr.ERROR||(this.warn(`Frag error: ${(a==null?void 0:a.message)||a}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===Xn.APPENDING){const a=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,a),d=Math.max(e.duration,s?s.len:this.config.maxBufferLength),p=this.backtrackFragment;((p?e.sn-p.sn:0)===1||this.reduceMaxBufferLength(d,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)===Xn.PARTIAL&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){const t=e.details;return(t==null?void 0:t.live)&&t.type!=="EVENT"&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:n};this.hls.trigger(g.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(n=>{const r=n==null?void 0:n.frag;if(!r||this.fragContextChanged(r)||!this.levels)throw new Error("init load aborted");return n}).then(n=>{const{hls:r}=this,{frag:a,payload:s}=n,d=a.decryptdata;if(s&&s.byteLength>0&&d!=null&&d.key&&d.iv&&pr(d.method)){const p=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),d.key.buffer,d.iv.buffer,vr(d.method)).catch(m=>{throw r.trigger(g.ERROR,{type:he.MEDIA_ERROR,details:Z.FRAG_DECRYPT_ERROR,fatal:!1,error:m,reason:m.message,frag:a}),m}).then(m=>{const v=self.performance.now();return r.trigger(g.FRAG_DECRYPTED,{frag:a,payload:m,stats:{tstart:p,tdecrypt:v}}),n.payload=m,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===cr.STOPPED||this.state===cr.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!==cr.STOPPED&&(this.state=cr.IDLE),e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}unhandledEncryptionError(e,t){var n,r;const a=e.tracks;if(a&&!t.encrypted&&((n=a.audio)!=null&&n.encrypted||(r=a.video)!=null&&r.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const s=this.media,d=new Error(`Encrypted track with no key in ${this.fragInfo(t)} (media ${s?"attached mediaKeys: "+s.mediaKeys:"detached"})`);return this.warn(d.message),!s||s.mediaKeys?!1:(this.hls.trigger(g.ERROR,{type:he.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_NO_KEYS,fatal:!1,error:d,frag:t}),this.resetTransmuxer(),!0)}return!1}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){const n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${n?Bo.toString(fr.getBuffered(n)):"(detached)"})`),ct(e)){var r;if(e.type!==Y.SUBTITLE){const s=e.elementaryStreams;if(!Object.keys(s).some(d=>!!s[d])){this.state=cr.IDLE;return}}const a=(r=this.levels)==null?void 0:r[e.level];a!=null&&a.fragmentError&&(this.log(`Resetting level fragment error count of ${a.fragmentError} on frag buffered`),a.fragmentError=0)}this.state=cr.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:a}=e,s=!a||a.length===0||a.some(p=>!p),d=new di(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!s);t.flush(d)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var a;this.fragCurrent=e;const s=t.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let d=null;if(e.encrypted&&!((a=e.decryptdata)!=null&&a.key)){if(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=cr.KEY_LOADING,this.fragCurrent=e,d=this.keyLoader.load(e).then(F=>{if(!this.fragContextChanged(F.frag))return this.hls.trigger(g.KEY_LOADED,F),this.state===cr.KEY_LOADING&&(this.state=cr.IDLE),F}),this.hls.trigger(g.KEY_LOADING,{frag:e}),this.fragCurrent===null)return this.log("context changed in KEY_LOADING"),Promise.resolve(null)}else e.encrypted||(d=this.keyLoader.loadClear(e,s.encryptedFragments,this.startFragRequested),d&&this.log("[eme] blocking frag load until media-keys acquired"));const p=this.fragPrevious;if(ct(e)&&(!p||e.sn!==p.sn)){const F=this.shouldLoadParts(t.details,e.end);F!==this.loadingParts&&(this.log(`LL-Part loading ${F?"ON":"OFF"} loading sn ${p==null?void 0:p.sn}->${e.sn}`),this.loadingParts=F)}if(n=Math.max(e.start,n||0),this.loadingParts&&ct(e)){const F=s.partList;if(F&&r){n>s.fragmentEnd&&s.fragmentHint&&(e=s.fragmentHint);const te=this.getNextPart(F,e,n);if(te>-1){const re=F[te];e=this.fragCurrent=re.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${re.index} (${te}/${F.length-1}) of ${this.fragInfo(e,!1,re)}) cc: ${e.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=re.start+re.duration,this.state=cr.FRAG_LOADING;let Xe;return d?Xe=d.then(Ye=>!Ye||this.fragContextChanged(Ye.frag)?null:this.doFragPartsLoad(e,re,t,r)).catch(Ye=>this.handleFragLoadError(Ye)):Xe=this.doFragPartsLoad(e,re,t,r).catch(Ye=>this.handleFragLoadError(Ye)),this.hls.trigger(g.FRAG_LOADING,{frag:e,part:re,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Xe}else if(!e.url||this.loadedEndOfParts(F,n))return Promise.resolve(null)}}if(ct(e)&&this.loadingParts){var m;this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)} Check buffer at sn: ${e.sn} loaded parts: ${(m=s.partList)==null?void 0:m.filter(F=>F.loaded).map(F=>`[${F.start}-${F.end}]`)}`),this.loadingParts=!1}else if(!e.url)return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)}) cc: ${e.cc} ${"["+s.startSN+"-"+s.endSN+"]"}, target: ${parseFloat(n.toFixed(3))}`),i(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=cr.FRAG_LOADING;const v=this.config.progressive&&e.type!==Y.SUBTITLE;let C;return v&&d?C=d.then(F=>!F||this.fragContextChanged(F.frag)?null:this.fragmentLoader.load(e,r)).catch(F=>this.handleFragLoadError(F)):C=Promise.all([this.fragmentLoader.load(e,v?r:void 0),d]).then(([F])=>(!v&&r&&r(F),F)).catch(F=>this.handleFragLoadError(F)),this.hls.trigger(g.FRAG_LOADING,{frag:e,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):C}doFragPartsLoad(e,t,n,r){return new Promise((a,s)=>{var d;const p=[],m=(d=n.details)==null?void 0:d.partList,v=C=>{this.fragmentLoader.loadPart(e,C,r).then(F=>{p[C.index]=F;const te=F.part;this.hls.trigger(g.FRAG_LOADED,F);const re=aa(n.details,e.sn,C.index+1)||Ma(m,e.sn,C.index+1);if(re)v(re);else return a({frag:e,part:te,partsLoaded:p})}).catch(s)};v(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;t.frag&&t.details===Z.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):t.frag&&t.type===he.KEY_SYSTEM_ERROR?(t.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(t.frag)):this.hls.trigger(g.ERROR,t)}else this.hls.trigger(g.ERROR,{type:he.OTHER_ERROR,details:Z.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==cr.PARSING){!this.fragCurrent&&this.state!==cr.STOPPED&&this.state!==cr.ERROR&&(this.state=cr.IDLE);return}const{frag:n,part:r,level:a}=t,s=self.performance.now();n.stats.parsing.end=s,r&&(r.stats.parsing.end=s);const d=this.getLevelDetails(),m=d&&n.sn>d.endSN||this.shouldLoadParts(d,n.end);m!==this.loadingParts&&(this.log(`LL-Part loading ${m?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=m),this.updateLevelTiming(n,r,a,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e.partList){var n;const a=e.partList[0];if(a.fragment.type===Y.SUBTITLE)return!1;const s=a.end+(((n=e.fragmentHint)==null?void 0:n.duration)||0);if(t>=s){var r;if((this.hls.hasEnoughToStart?((r=this.media)==null?void 0:r.currentTime)||this.lastCurrentTime:this.getLoadPosition())>a.start-a.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:a,part:s}=e;if(!(t!=null&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${a} of ${this.playlistLabel()} ${r}. The current chunk will not be buffered.`),null;const d=t[r],p=d.details,m=s>-1?aa(p,a,s):null,v=m?m.fragment:Vi(p,a,n);return v?(n&&n!==v&&(v.stats=n.stats),{frag:v,part:m,level:d}):null}bufferFragmentData(e,t,n,r,a){if(this.state!==cr.PARSING)return;const{data1:s,data2:d}=e;let p=s;if(d&&(p=Pt(s,d)),!p.length)return;const m=this.initPTS[t.cc],v=m?-m.baseTime/m.timescale:void 0,C={type:e.type,frag:t,part:n,chunkMeta:r,offset:v,parent:t.type,data:p};if(this.hls.trigger(g.BUFFER_APPENDING,C),e.dropped&&e.independent&&!n){if(a)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!fr.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=fr.bufferInfo(t,n,0),a=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,a*.25),d=Math.max(Math.min(e.start-s,r.end-s),n+s);e.start-d>s&&this.flushMainBuffer(d,e.start)}getFwdBufferInfo(e,t){var n;const r=this.getLoadPosition();if(!i(r))return null;const s=this.lastCurrentTime>r||(n=this.media)!=null&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,r,t,s)}getFwdBufferInfoAtPos(e,t,n,r){const a=fr.bufferInfo(e,t,r);if(a.len===0&&a.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(t,n);if(s&&(a.nextStart<=s.end||s.gap)){const d=Math.max(Math.min(a.nextStart,s.end)-t,r);return fr.bufferInfo(e,t,d)}}return a}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),a=Math.max(e-t*3,n.maxMaxBufferLength/2,r);return a>=r?(n.maxMaxBufferLength=a,this.warn(`Reduce max buffer length to ${a}s`),!0):!1}getAppendedFrag(e,t=Y.MAIN){const n=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(e,t):null;return n&&"fragment"in n?n.fragment:n}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:a}=this,s=n[0].start,d=a.lowLatencyMode&&!!t.partList;let p=null;if(t.live){const C=a.initialLiveManifestSize;if(r<C)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${C})`),null;if(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s){var m;d&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),p=this.getInitialLiveFragment(t);const F=this.hls.startPosition,te=this.hls.liveSyncPosition,re=p?(F!==-1&&F>=s?F:te)||p.start:e;this.log(`Setting startPosition to ${re} to match start frag at live edge. mainStart: ${F} liveSyncPosition: ${te} frag.start: ${(m=p)==null?void 0:m.start}`),this.startPosition=this.nextLoadPosition=re}}else e<=s&&(p=n[0]);if(!p){const C=this.loadingParts?t.partEnd:t.fragmentEnd;p=this.getFragmentAtPosition(e,C,t)}let v=this.filterReplacedPrimary(p,t);if(!v&&p){const C=p.sn-t.startSN;v=this.filterReplacedPrimary(n[C+1]||null,t)}return this.mapToInitFragWhenRequired(v)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===Xn.OK||n===Xn.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,a){let s=null;if(e.gap&&(s=this.getNextFragment(this.nextLoadPosition,t),s&&!s.gap&&n.nextStart)){const d=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r,0);if(d!==null&&n.len+d.len>=a){const p=s.sn;return this.loopSn!==p&&(this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${p}`),this.loopSn=p),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(ui(this.config)){var e;if((e=this.hls.interstitialsManager)==null||(e=e.playingItem)==null?void 0:e.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(ui(this.config)&&e.type!==Y.SUBTITLE){const n=this.hls.interstitialsManager,r=n==null?void 0:n.bufferingItem;if(r){const s=r.event;if(s){if(s.appendInPlace||Math.abs(e.start-r.start)>1||r.start===0)return null}else if(e.end<=r.start&&(t==null?void 0:t.live)===!1||e.start>r.end&&r.nextEvent&&(r.nextEvent.appendInPlace||e.start-r.end>1))return null}const a=n==null?void 0:n.playerQueue;if(a)for(let s=a.length;s--;){const d=a[s].interstitial;if(d.appendInPlace&&e.start>=d.startTime&&e.end<=d.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!e.initSegment.data&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,n){let r=-1,a=!1,s=!0;for(let d=0,p=e.length;d<p;d++){const m=e[d];if(s=s&&!m.independent,r>-1&&n<m.start)break;const v=m.loaded;v?r=-1:(a||(m.independent||s)&&m.fragment===t)&&(m.fragment!==t&&this.warn(`Need buffer at ${n} but next unloaded part starts at ${m.start}`),r=d),a=v}return r}loadedEndOfParts(e,t){let n;for(let r=e.length;r--;){if(n=e[r],!n.loaded)return!1;if(t>n.start)return!0}return!1}getInitialLiveFragment(e){const t=e.fragments,n=this.fragPrevious;let r=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),r=zn(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){const a=n.sn+1;if(a>=e.startSN&&a<=e.endSN){const s=t[a-e.startSN];n.cc===s.cc&&(r=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=tn(e,n.cc,n.end),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const a=this.hls.liveSyncPosition;a!==null&&(r=this.getFragmentAtPosition(a,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){const{config:r}=this;let{fragPrevious:a}=this,{fragments:s,endSN:d}=n;const{fragmentHint:p}=n,{maxFragLookUpTolerance:m}=r,v=n.partList,C=!!(this.loadingParts&&v!=null&&v.length&&p);C&&!this.bitrateTest&&v[v.length-1].fragment.sn===p.sn&&(s=s.concat(p),d=p.sn);let F;if(e<t){var te;const Xe=e<this.lastCurrentTime||e>t-m||(te=this.media)!=null&&te.paused||!this.startFragRequested?0:m;F=Yn(a,s,e,Xe)}else F=s[s.length-1];if(F){const re=F.sn-n.startSN,Xe=this.fragmentTracker.getState(F);if((Xe===Xn.OK||Xe===Xn.PARTIAL&&F.gap)&&(a=F),a&&F.sn===a.sn&&(!C||v[0].fragment.sn>F.sn||!n.live)&&F.level===a.level){const It=s[re+1];F.sn<d&&this.fragmentTracker.getState(It)!==Xn.OK?F=It:F=null}}return F}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const a=e.fragmentStart,s=!t,d=e.alignedSliding&&i(a);if(s||!d&&!a){Xs(n,e);const p=e.fragmentStart;return this.log(`Live playlist sliding: ${p.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${r}`),p}return a}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let n=this.startPosition;n<t&&(n=-1);const r=this.timelineOffset;if(n===-1){const a=this.startTimeOffset!==null,s=a?this.startTimeOffset:e.startTimeOffset;s!==null&&i(s)?(n=t+s,s<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Setting startPosition to ${n} for start time offset ${s} found in ${a?"multivariant":"media"} playlist`),this.startPosition=n):e.live?(n=this.hls.liveSyncPosition||t,this.log(`Setting startPosition to -1 to start at live edge ${n}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=n=0),this.lastCurrentTime=n+r}this.nextLoadPosition=n+r}getLoadPosition(){var e;const{media:t}=this;let n=0;return(e=this.hls)!=null&&e.hasEnoughToStart&&t?n=t.currentTime:this.nextLoadPosition>=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&ct(e)&&e.stats.aborted&&(this.log(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==cr.FRAG_LOADING_WAITING_RETRY)&&(this.state=cr.IDLE)}onFragmentOrKeyLoadError(e,t){var n;if(t.chunkMeta&&!t.frag){const It=this.getCurrentContext(t.chunkMeta);It&&(t.frag=It.frag)}const r=t.frag;if(!r||r.type!==e||!this.levels)return;if(this.fragContextChanged(r)){var a;this.warn(`Frag load error must match current frag to retry ${r.url} > ${(a=this.fragCurrent)==null?void 0:a.url}`);return}const s=t.details===Z.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(r,!0);const d=t.errorAction;if(!d){this.state=cr.ERROR;return}const{action:p,flags:m,retryCount:v=0,retryConfig:C}=d,F=!!C,te=F&&p===Vn.RetryRequest,re=F&&!d.resolved&&m===An.MoveAllAlternatesMatchingHost,Xe=(n=this.hls.latestLevelDetails)==null?void 0:n.live;if(!te&&re&&ct(r)&&!r.endList&&Xe&&!Ht(t))this.resetFragmentErrors(e),this.treatAsGap(r),d.resolved=!0;else if((te||re)&&v<C.maxNumRetry){var Ye;const It=Sr((Ye=t.response)==null?void 0:Ye.code),Ut=er(C,v);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+Ut,this.state=cr.FRAG_LOADING_WAITING_RETRY,d.resolved=!0,It){this.log("Waiting for connection (offline)"),this.retryDate=1/0,t.reason="offline";return}this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${v+1}/${C.maxNumRetry} in ${Ut}ms`)}else if(C)if(this.resetFragmentErrors(e),v<C.maxNumRetry)!s&&p!==Vn.RemoveAlternatePermanently&&(d.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${v})`);return}else p===Vn.SendAlternateToPenaltyBox?this.state=cr.WAITING_LEVEL:this.state=cr.ERROR;this.tickImmediate()}checkRetryDate(){const e=self.performance.now(),t=this.retryDate,n=t===1/0;(!t||e>=t||n&&!Sr(0))&&(n&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=cr.IDLE)}reduceLengthAndFlushBuffer(e){if(this.state===cr.PARSING||this.state===cr.PARSED){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),a=r&&r.len>.5;a&&this.reduceMaxBufferLength(r.len,(t==null?void 0:t.duration)||10);const s=!a;return s&&this.warn(`Buffer full error while media.currentTime (${this.getLoadPosition()}) is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===Y.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==cr.STOPPED&&(this.state=cr.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=fr.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===cr.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==cr.STOPPED&&(this.state=cr.IDLE)}resetStartWhenNotLoaded(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const e=this.levelLastLoaded,t=e?e.details:null;t!=null&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.log(`Loading context changed while buffering sn ${e.sn} of ${this.playlistLabel()} ${e.level===-1?"<removed>":e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,r){const a=n.details;if(!a){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((p,m)=>{const v=e.elementaryStreams[m];if(v){const C=v.endPTS-v.startPTS;if(C<=0)return this.warn(`Could not parse fragment ${e.sn} ${m} duration reliably (${C})`),p||!1;const F=r?0:Ua(a,e,v.startPTS,v.endPTS,v.startDTS,v.endDTS,this);return this.hls.trigger(g.LEVEL_PTS_UPDATED,{details:a,level:n,drift:F,type:m,frag:e,start:v.startPTS,end:v.endPTS}),!0}return p},!1)){var d;const p=((d=this.transmuxer)==null?void 0:d.error)===null;if((n.fragmentError===0||p&&(n.fragmentError<2||e.endList))&&this.treatAsGap(e,n),p){const m=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(m.message),this.hls.trigger(g.ERROR,{type:he.MEDIA_ERROR,details:Z.FRAG_PARSING_ERROR,fatal:!1,error:m,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=cr.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(g.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===Y.MAIN?"level":"track"}fragInfo(e,t=!0,n){var r,a;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${((r=t&&!n?e.startPTS:(n||e).start)!=null?r:NaN).toFixed(3)}-${((a=t&&!n?e.endPTS:(n||e).end)!=null?a:NaN).toFixed(3)}]${n&&e.type==="main"?"INDEPENDENT="+(n.independent?"YES":"NO"):""}`}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;(e=this.transmuxer)==null||e.reset()}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function ui(o){return!!o.interstitialsController&&o.enableInterstitialPlayback!==!1}class Zs{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=Qs(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function Qs(o,e){const t=new Uint8Array(e);let n=0;for(let r=0;r<o.length;r++){const a=o[r];t.set(a,n),n+=a.length}return t}var Ms={exports:{}},Js;function _l(){return Js||(Js=1,function(o){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(p,m,v){this.fn=p,this.context=m,this.once=v||!1}function a(p,m,v,C,F){if(typeof v!="function")throw new TypeError("The listener must be a function");var te=new r(v,C||p,F),re=t?t+m:m;return p._events[re]?p._events[re].fn?p._events[re]=[p._events[re],te]:p._events[re].push(te):(p._events[re]=te,p._eventsCount++),p}function s(p,m){--p._eventsCount===0?p._events=new n:delete p._events[m]}function d(){this._events=new n,this._eventsCount=0}d.prototype.eventNames=function(){var m=[],v,C;if(this._eventsCount===0)return m;for(C in v=this._events)e.call(v,C)&&m.push(t?C.slice(1):C);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(v)):m},d.prototype.listeners=function(m){var v=t?t+m:m,C=this._events[v];if(!C)return[];if(C.fn)return[C.fn];for(var F=0,te=C.length,re=new Array(te);F<te;F++)re[F]=C[F].fn;return re},d.prototype.listenerCount=function(m){var v=t?t+m:m,C=this._events[v];return C?C.fn?1:C.length:0},d.prototype.emit=function(m,v,C,F,te,re){var Xe=t?t+m:m;if(!this._events[Xe])return!1;var Ye=this._events[Xe],It=arguments.length,Ut,Wt;if(Ye.fn){switch(Ye.once&&this.removeListener(m,Ye.fn,void 0,!0),It){case 1:return Ye.fn.call(Ye.context),!0;case 2:return Ye.fn.call(Ye.context,v),!0;case 3:return Ye.fn.call(Ye.context,v,C),!0;case 4:return Ye.fn.call(Ye.context,v,C,F),!0;case 5:return Ye.fn.call(Ye.context,v,C,F,te),!0;case 6:return Ye.fn.call(Ye.context,v,C,F,te,re),!0}for(Wt=1,Ut=new Array(It-1);Wt<It;Wt++)Ut[Wt-1]=arguments[Wt];Ye.fn.apply(Ye.context,Ut)}else{var gn=Ye.length,wn;for(Wt=0;Wt<gn;Wt++)switch(Ye[Wt].once&&this.removeListener(m,Ye[Wt].fn,void 0,!0),It){case 1:Ye[Wt].fn.call(Ye[Wt].context);break;case 2:Ye[Wt].fn.call(Ye[Wt].context,v);break;case 3:Ye[Wt].fn.call(Ye[Wt].context,v,C);break;case 4:Ye[Wt].fn.call(Ye[Wt].context,v,C,F);break;default:if(!Ut)for(wn=1,Ut=new Array(It-1);wn<It;wn++)Ut[wn-1]=arguments[wn];Ye[Wt].fn.apply(Ye[Wt].context,Ut)}}return!0},d.prototype.on=function(m,v,C){return a(this,m,v,C,!1)},d.prototype.once=function(m,v,C){return a(this,m,v,C,!0)},d.prototype.removeListener=function(m,v,C,F){var te=t?t+m:m;if(!this._events[te])return this;if(!v)return s(this,te),this;var re=this._events[te];if(re.fn)re.fn===v&&(!F||re.once)&&(!C||re.context===C)&&s(this,te);else{for(var Xe=0,Ye=[],It=re.length;Xe<It;Xe++)(re[Xe].fn!==v||F&&!re[Xe].once||C&&re[Xe].context!==C)&&Ye.push(re[Xe]);Ye.length?this._events[te]=Ye.length===1?Ye[0]:Ye:s(this,te)}return this},d.prototype.removeAllListeners=function(m){var v;return m?(v=t?t+m:m,this._events[v]&&s(this,v)):(this._events=new n,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=t,d.EventEmitter=d,o.exports=d}(Ms)),Ms.exports}var rl=_l(),xo=_(rl);const lo="1.6.15",qs={};function Fo(){return typeof __HLS_WORKER_BUNDLE__=="function"}function Cl(){const o=qs[lo];if(o)return o.clientCount++,o;const e=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),t=self.URL.createObjectURL(e),r={worker:new self.Worker(t),objectURL:t,clientCount:1};return qs[lo]=r,r}function $o(o){const e=qs[o];if(e)return e.clientCount++,e;const t=new self.URL(o,self.location.href).href,r={worker:new self.Worker(t),scriptURL:t,clientCount:1};return qs[o]=r,r}function wl(o){const e=qs[o||lo];if(e&&e.clientCount--===1){const{worker:n,objectURL:r}=e;delete qs[o||lo],r&&self.URL.revokeObjectURL(r),n.terminate()}}function Eo(o,e){return e+10<=o.length&&o[e]===51&&o[e+1]===68&&o[e+2]===73&&o[e+3]<255&&o[e+4]<255&&o[e+6]<128&&o[e+7]<128&&o[e+8]<128&&o[e+9]<128}function po(o,e){return e+10<=o.length&&o[e]===73&&o[e+1]===68&&o[e+2]===51&&o[e+3]<255&&o[e+4]<255&&o[e+6]<128&&o[e+7]<128&&o[e+8]<128&&o[e+9]<128}function eo(o,e){let t=0;return t=(o[e]&127)<<21,t|=(o[e+1]&127)<<14,t|=(o[e+2]&127)<<7,t|=o[e+3]&127,t}function uo(o,e){const t=e;let n=0;for(;po(o,e);){n+=10;const r=eo(o,e+6);n+=r,Eo(o,e+10)&&(n+=10),e+=n}if(n>0)return o.subarray(t,t+n)}function zo(o,e,t,n){const r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],a=e[t+2],s=a>>2&15;if(s>12){const te=new Error(`invalid ADTS sampling index:${s}`);o.emit(g.ERROR,g.ERROR,{type:he.MEDIA_ERROR,details:Z.FRAG_PARSING_ERROR,fatal:!0,error:te,reason:te.message});return}const d=(a>>6&3)+1,p=e[t+3]>>6&3|(a&1)<<2,m="mp4a.40."+d,v=r[s];let C=s;(d===5||d===29)&&(C-=3);const F=[d<<3|(C&14)>>1,(C&1)<<7|p<<3];return me.log(`manifest codec:${n}, parsed codec:${m}, channels:${p}, rate:${v} (ADTS object type:${d} sampling index:${s})`),{config:F,samplerate:v,channelCount:p,codec:m,parsedCodec:m,manifestCodec:n}}function Zo(o,e){return o[e]===255&&(o[e+1]&246)===240}function Uo(o,e){return o[e+1]&1?7:9}function So(o,e){return(o[e+3]&3)<<11|o[e+4]<<3|(o[e+5]&224)>>>5}function Ko(o,e){return e+5<o.length}function _o(o,e){return e+1<o.length&&Zo(o,e)}function co(o,e){return Ko(o,e)&&Zo(o,e)&&So(o,e)<=o.length-e}function jo(o,e){if(_o(o,e)){const t=Uo(o,e);if(e+t>=o.length)return!1;const n=So(o,e);if(n<=t)return!1;const r=e+n;return r===o.length||_o(o,r)}return!1}function Co(o,e,t,n,r){if(!o.samplerate){const a=zo(e,t,n,r);if(!a)return;y(o,a)}}function il(o){return 1024*9e4/o}function al(o,e){const t=Uo(o,e);if(e+t<=o.length){const n=So(o,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function sl(o,e,t,n,r){const a=il(o.samplerate),s=n+r*a,d=al(e,t);let p;if(d){const{frameLength:C,headerLength:F}=d,te=F+C,re=Math.max(0,t+te-e.length);re?(p=new Uint8Array(te-F),p.set(e.subarray(t+F,e.length),0)):p=e.subarray(t+F,t+te);const Xe={unit:p,pts:s};return re||o.samples.push(Xe),{sample:Xe,length:te,missing:re}}const m=e.length-t;return p=new Uint8Array(m),p.set(e.subarray(t,e.length),0),{sample:{unit:p,pts:s},length:m,missing:-1}}function wo(o,e){return po(o,e)&&eo(o,e+6)+10<=o.length-e}function Tl(o){return o instanceof ArrayBuffer?o:o.byteOffset==0&&o.byteLength==o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer}function go(o,e=0,t=1/0){return ol(o,e,t,Uint8Array)}function ol(o,e,t,n){const r=ll(o);let a=1;"BYTES_PER_ELEMENT"in n&&(a=n.BYTES_PER_ELEMENT);const s=Ho(o)?o.byteOffset:0,d=(s+o.byteLength)/a,p=(s+e)/a,m=Math.floor(Math.max(0,Math.min(p,d))),v=Math.floor(Math.min(m+Math.max(t,0),d));return new n(r,m,v-m)}function ll(o){return o instanceof ArrayBuffer?o:o.buffer}function Ho(o){return o&&o.buffer instanceof ArrayBuffer&&o.byteLength!==void 0&&o.byteOffset!==void 0}function ul(o){const e={key:o.type,description:"",data:"",mimeType:null,pictureType:null},t=3;if(o.size<2)return;if(o.data[0]!==t){console.log("Ignore frame with unrecognized character encoding");return}const n=o.data.subarray(1).indexOf(0);if(n===-1)return;const r=We(go(o.data,1,n)),a=o.data[2+n],s=o.data.subarray(3+n).indexOf(0);if(s===-1)return;const d=We(go(o.data,3+n,s));let p;return r==="-->"?p=We(go(o.data,4+n+s)):p=Tl(o.data.subarray(4+n+s)),e.mimeType=r,e.pictureType=a,e.description=d,e.data=p,e}function Zt(o){if(o.size<2)return;const e=We(o.data,!0),t=new Uint8Array(o.data.subarray(e.length+1));return{key:o.type,info:e,data:t.buffer}}function Wo(o){if(o.size<2)return;if(o.type==="TXXX"){let t=1;const n=We(o.data.subarray(t),!0);t+=n.length+1;const r=We(o.data.subarray(t));return{key:o.type,info:n,data:r}}const e=We(o.data.subarray(1));return{key:o.type,info:"",data:e}}function To(o){if(o.type==="WXXX"){if(o.size<2)return;let t=1;const n=We(o.data.subarray(t),!0);t+=n.length+1;const r=We(o.data.subarray(t));return{key:o.type,info:n,data:r}}const e=We(o.data);return{key:o.type,info:"",data:e}}function Ao(o){return o.type==="PRIV"?Zt(o):o.type[0]==="W"?To(o):o.type==="APIC"?ul(o):Wo(o)}function Vo(o){const e=String.fromCharCode(o[0],o[1],o[2],o[3]),t=eo(o,4),n=10;return{type:e,size:t,data:o.subarray(n,n+t)}}const to=10,bs=10;function Io(o){let e=0;const t=[];for(;po(o,e);){const n=eo(o,e+6);o[e+5]>>6&1&&(e+=to),e+=to;const r=e+n;for(;e+bs<r;){const a=Vo(o.subarray(e)),s=Ao(a);s&&t.push(s),e+=a.size+to}Eo(o,e)&&(e+=to)}return t}function Go(o){return o&&o.key==="PRIV"&&o.info==="com.apple.streaming.transportStreamTimestamp"}function be(o){if(o.data.byteLength===8){const e=new Uint8Array(o.data),t=e[3]&1;let n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,t&&(n+=4772185884e-2),Math.round(n)}}function ge(o){const e=Io(o);for(let t=0;t<e.length;t++){const n=e[t];if(Go(n))return be(n)}}let it=function(o){return o.audioId3="org.id3",o.dateRange="com.apple.quicktime.HLS",o.emsg="https://aomedia.org/emsg/ID3",o.misbklv="urn:misb:KLV:bin:1910.1",o}({});function Et(o="",e=9e4){return{type:o,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Gt{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=Pt(this.cachedData,e),this.cachedData=null);let n=uo(e,0),r=n?n.length:0,a;const s=this._audioTrack,d=this._id3Track,p=n?ge(n):void 0,m=e.length;for((this.basePTS===null||this.frameIndex===0&&i(p))&&(this.basePTS=nn(p,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),n&&n.length>0&&d.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:it.audioId3,duration:Number.POSITIVE_INFINITY});r<m;){if(this.canParse(e,r)){const v=this.appendFrame(s,e,r);v?(this.frameIndex++,this.lastPTS=v.sample.pts,r+=v.length,a=r):r=m}else wo(e,r)?(n=uo(e,r),d.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:it.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,a=r):r++;if(r===m&&a!==m){const v=e.slice(a);this.cachedData?this.cachedData=Pt(this.cachedData,v):this.cachedData=v}}return{audioTrack:s,videoTrack:Et(),id3Track:d,textTrack:Et()}}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:Et(),id3Track:this._id3Track,textTrack:Et()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const nn=(o,e,t)=>{if(i(o))return o*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};let mn=null;const ln=[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],_n=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],xn=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Qn=[0,1,1,4];function Nn(o,e,t,n,r){if(t+24>e.length)return;const a=Mn(e,t);if(a&&t+a.frameLength<=e.length){const s=a.samplesPerFrame*9e4/a.sampleRate,d=n+r*s,p={unit:e.subarray(t,t+a.frameLength),pts:d,dts:d};return o.config=[],o.channelCount=a.channelCount,o.samplerate=a.sampleRate,o.samples.push(p),{sample:p,length:a.frameLength,missing:0}}}function Mn(o,e){const t=o[e+1]>>3&3,n=o[e+1]>>1&3,r=o[e+2]>>4&15,a=o[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&a!==3){const s=o[e+2]>>1&1,d=o[e+3]>>6,p=t===3?3-n:n===3?3:4,m=ln[p*14+r-1]*1e3,C=_n[(t===3?0:t===2?1:2)*3+a],F=d===3?1:2,te=xn[t][n],re=Qn[n],Xe=te*8*re,Ye=Math.floor(te*m/C+s)*re;if(mn===null){const Wt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);mn=Wt?parseInt(Wt[1]):0}return!!mn&&mn<=87&&n===2&&m>=224e3&&d===0&&(o[e+3]=o[e+3]|128),{sampleRate:C,channelCount:F,frameLength:Ye,samplesPerFrame:Xe}}}function U(o,e){return o[e]===255&&(o[e+1]&224)===224&&(o[e+1]&6)!==0}function c(o,e){return e+1<o.length&&U(o,e)}function f(o,e){return U(o,e)&&4<=o.length-e}function h(o,e){if(e+1<o.length&&U(o,e)){const n=Mn(o,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const a=e+r;return a===o.length||c(o,a)}return!1}class b extends Gt{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const n=uo(e,0);let r=(n==null?void 0:n.length)||0;if(h(e,r))return!1;for(let a=e.length;r<a;r++)if(jo(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return co(e,t)}appendFrame(e,t,n){Co(e,this.observer,t,n,e.manifestCodec);const r=sl(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const B=(o,e)=>{let t=0,n=5;e+=n;const r=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);for(;n>0;){s[0]=o[e];const d=Math.min(n,8),p=8-d;a[0]=4278190080>>>24+p<<p,r[0]=(s[0]&a[0])>>p,t=t?t<<d|r[0]:r[0],e+=1,n-=d}return t};class q extends Gt{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=Me(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=uo(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&ge(t)!==void 0&&B(e,n)<16}}function Me(o,e,t,n,r){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const a=e[t+4]>>6;if(a>=3)return-1;const d=[48e3,44100,32e3][a],p=e[t+4]&63,v=[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][p*3+a]*2;if(t+v>e.length)return-1;const C=e[t+6]>>5;let F=0;C===2?F+=2:(C&1&&C!==1&&(F+=2),C&4&&(F+=2));const te=(e[t+6]<<8|e[t+7])>>12-F&1,Xe=[2,1,2,3,3,4,4,5][C]+te,Ye=e[t+5]>>3,It=e[t+5]&7,Ut=new Uint8Array([a<<6|Ye<<1|It>>2,(It&3)<<6|C<<3|te<<2|p>>4,p<<4&224]),Wt=1536/d*9e4,gn=n+r*Wt,wn=e.subarray(t,t+v);return o.config=Ut,o.channelCount=Xe,o.samplerate=d,o.samples.push({unit:wn,pts:gn}),v}class et extends Gt{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=uo(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&ge(t)!==void 0&&B(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(h(e,n))return me.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return f(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return Nn(e,t,n,this.basePTS,this.frameIndex)}}const yt=/\/emsg[-/]ID3/i;class Xt{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 a=this.videoTrack=Et("video",1),s=this.audioTrack=Et("audio",1),d=this.txtTrack=Et("text",1);if(this.id3Track=Et("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const p=Ge(e);if(p.video){const{id:m,timescale:v,codec:C,supplemental:F}=p.video;a.id=m,a.timescale=d.timescale=v,a.codec=C,a.supplemental=F}if(p.audio){const{id:m,timescale:v,codec:C}=p.audio;s.id=m,s.timescale=v,s.codec=C}d.id=jt.text,a.sampleDuration=0,a.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return Ne(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,a=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=Pt(this.remainderData,e));const d=_t(n);this.remainderData=d.remainder,r.samples=d.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return a.samples=kt(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=kt(e,t),{videoTrack:t,audioTrack:Et(),id3Track:r,textTrack:Et()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=le(e.samples,["emsg"]);r&&r.forEach(a=>{const s=gt(a);if(yt.test(s.schemeIdUri)){const d=fn(s,t);let p=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;p<=.001&&(p=Number.POSITIVE_INFINITY);const m=s.payload;n.samples.push({data:m,len:m.byteLength,dts:d,pts:d,type:it.emsg,duration:p})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const d=fn(s,t);n.samples.push({data:s.payload,len:s.payload.byteLength,dts:d,pts:d,type:it.misbklv,duration:Number.POSITIVE_INFINITY})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function fn(o,e){return i(o.presentationTime)?o.presentationTime/o.timeScale:e+o.presentationTimeDelta/o.timeScale}class Sn{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new Jt(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,yr.cbc)}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const a=r.subarray(16,r.length-r.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(s).then(d=>{const p=new Uint8Array(d);r.set(p,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)}).catch(n)}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length){n();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,n=new Int8Array(t);let r=0;for(let a=32;a<e.length-16;a+=160,r+=16)n.set(e.subarray(a,a+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let a=32;a<e.length-16;a+=160,r+=16)e.set(n.subarray(r,r+16),a);return e}decryptAvcSample(e,t,n,r,a){const s=De(a.data),d=this.getAvcEncryptedData(s);this.decryptBuffer(d.buffer).then(p=>{a.data=this.getAvcDecryptedUnit(s,p),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,r)}).catch(r)}decryptAvcSamples(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length){r();return}const a=e[t].units;for(;!(n>=a.length);n++){const s=a[n];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(e,t,n,r,s),!this.decrypter.isSync()))return}}}}class kn{constructor(){this.VideoSample=null}createVideoSample(e,t,n){return{key:e,frame:!1,pts:t,dts:n,units:[],length:0}}getLastNalUnit(e){var t;let n=this.VideoSample,r;if((!n||n.units.length===0)&&(n=e[e.length-1]),(t=n)!=null&&t.units){const a=n.units;r=a[a.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 a=n[r-1];e.pts=a.pts,e.dts=a.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,n){const r=t.byteLength;let a=e.naluState||0;const s=a,d=[];let p=0,m,v,C,F=-1,te=0;for(a===-1&&(F=0,te=this.getNALuType(t,0),a=0,p=1);p<r;){if(m=t[p++],!a){a=m?0:1;continue}if(a===1){a=m?0:2;continue}if(!m)a=3;else if(m===1){if(v=p-a-1,F>=0){const re={data:t.subarray(F,v),type:te};d.push(re)}else{const re=this.getLastNalUnit(e.samples);re&&(s&&p<=4-s&&re.state&&(re.data=re.data.subarray(0,re.data.byteLength-s)),v>0&&(re.data=Pt(re.data,t.subarray(0,v)),re.state=0))}p<r?(C=this.getNALuType(t,p),F=p,te=C,a=0):a=-1}else a=0}if(F>=0&&a>=0){const re={data:t.subarray(F,r),type:te,state:a};d.push(re)}if(d.length===0){const re=this.getLastNalUnit(e.samples);re&&(re.data=Pt(re.data,t))}return e.naluState=a,d}}class Kn{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),a=Math.min(4,t);if(a===0)throw new Error("no bytes available");r.set(e.subarray(n,n+a)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=a*8,this.bytesAvailable-=a}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&&me.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?n<<t|this.readBits(t):n}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class jn extends kn{parsePES(e,t,n,r){const a=this.parseNALu(e,n.data,r);let s=this.VideoSample,d,p=!1;n.data=null,s&&a.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),a.forEach(m=>{var v,C;switch(m.type){case 1:{let Xe=!1;d=!0;const Ye=m.data;if(p&&Ye.length>4){const It=this.readSliceType(Ye);(It===2||It===4||It===7||It===9)&&(Xe=!0)}if(Xe){var F;(F=s)!=null&&F.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.frame=!0,s.key=Xe;break}case 5:d=!0,(v=s)!=null&&v.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 6:{d=!0,Nt(m.data,1,n.pts,t.samples);break}case 7:{var te,re;d=!0,p=!0;const Xe=m.data,Ye=this.readSPS(Xe);if(!e.sps||e.width!==Ye.width||e.height!==Ye.height||((te=e.pixelRatio)==null?void 0:te[0])!==Ye.pixelRatio[0]||((re=e.pixelRatio)==null?void 0:re[1])!==Ye.pixelRatio[1]){e.width=Ye.width,e.height=Ye.height,e.pixelRatio=Ye.pixelRatio,e.sps=[Xe];const It=Xe.subarray(1,4);let Ut="avc1.";for(let Wt=0;Wt<3;Wt++){let gn=It[Wt].toString(16);gn.length<2&&(gn="0"+gn),Ut+=gn}e.codec=Ut}break}case 8:d=!0,e.pps=[m.data];break;case 9:d=!0,e.audFound=!0,(C=s)!=null&&C.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:d=!0;break;default:d=!1;break}s&&d&&s.units.push(m)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}getNALuType(e,t){return e[t]&31}readSliceType(e){const t=new Kn(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n=8,r=8,a;for(let s=0;s<e;s++)r!==0&&(a=t.readEG(),r=(n+a+256)%256),n=r===0?n:r}readSPS(e){const t=new Kn(e);let n=0,r=0,a=0,s=0,d,p,m;const v=t.readUByte.bind(t),C=t.readBits.bind(t),F=t.readUEG.bind(t),te=t.readBoolean.bind(t),re=t.skipBits.bind(t),Xe=t.skipEG.bind(t),Ye=t.skipUEG.bind(t),It=this.skipScalingList.bind(this);v();const Ut=v();if(C(5),re(3),v(),Ye(),Ut===100||Ut===110||Ut===122||Ut===244||Ut===44||Ut===83||Ut===86||Ut===118||Ut===128){const Wn=F();if(Wn===3&&re(1),Ye(),Ye(),re(1),te())for(p=Wn!==3?8:12,m=0;m<p;m++)te()&&(m<6?It(16,t):It(64,t))}Ye();const Wt=F();if(Wt===0)F();else if(Wt===1)for(re(1),Xe(),Xe(),d=F(),m=0;m<d;m++)Xe();Ye(),re(1);const gn=F(),wn=F(),or=C(1);or===0&&re(1),re(1),te()&&(n=F(),r=F(),a=F(),s=F());let Dn=[1,1];if(te()&&te())switch(v()){case 1:Dn=[1,1];break;case 2:Dn=[12,11];break;case 3:Dn=[10,11];break;case 4:Dn=[16,11];break;case 5:Dn=[40,33];break;case 6:Dn=[24,11];break;case 7:Dn=[20,11];break;case 8:Dn=[32,11];break;case 9:Dn=[80,33];break;case 10:Dn=[18,11];break;case 11:Dn=[15,11];break;case 12:Dn=[64,33];break;case 13:Dn=[160,99];break;case 14:Dn=[4,3];break;case 15:Dn=[3,2];break;case 16:Dn=[2,1];break;case 255:{Dn=[v()<<8|v(),v()<<8|v()];break}}return{width:Math.ceil((gn+1)*16-n*2-r*2),height:(2-or)*(wn+1)*16-(or?2:4)*(a+s),pixelRatio:Dn}}}class ar extends kn{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,r){const a=this.parseNALu(e,n.data,r);let s=this.VideoSample,d,p=!1;n.data=null,s&&a.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),a.forEach(m=>{var v,C;switch(m.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),s.frame=!0,d=!0;break;case 16:case 17:case 18:case 21:if(d=!0,p){var F;(F=s)!=null&&F.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:d=!0,(v=s)!=null&&v.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 39:d=!0,Nt(m.data,2,n.pts,t.samples);break;case 32:d=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=y(e.params,this.readVPS(m.data)),this.initVPS=m.data),e.vps=[m.data];break;case 33:if(d=!0,p=!0,e.vps!==void 0&&e.vps[0]!==this.initVPS&&e.sps!==void 0&&!this.matchSPS(e.sps[0],m.data)&&(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const te=this.readSPS(m.data);e.width=te.width,e.height=te.height,e.pixelRatio=te.pixelRatio,e.codec=te.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const re in te.params)e.params[re]=te.params[re]}this.pushParameterSet(e.sps,m.data,e.vps),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0;break;case 34:if(d=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const te=this.readPPS(m.data);for(const re in te)e.params[re]=te[re]}this.pushParameterSet(e.pps,m.data,e.vps)}break;case 35:d=!0,e.audFound=!0,(C=s)!=null&&C.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:d=!1;break}s&&d&&s.units.push(m)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}pushParameterSet(e,t,n){(n&&n[0]===this.initVPS||!n&&!e.length)&&e.push(t)}getNALuType(e,t){return(e[t]&126)>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let n=0;for(let r=0;r<e.byteLength;r++)r>=2&&e[r]===3&&e[r-1]===0&&e[r-2]===0||(t[n]=e[r],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new Kn(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);const n=t.readBits(3),r=t.readBoolean();return{numTemporalLayers:n+1,temporalIdNested:r}}readSPS(e){const t=new Kn(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const r=t.readBits(2),a=t.readBoolean(),s=t.readBits(5),d=t.readUByte(),p=t.readUByte(),m=t.readUByte(),v=t.readUByte(),C=t.readUByte(),F=t.readUByte(),te=t.readUByte(),re=t.readUByte(),Xe=t.readUByte(),Ye=t.readUByte(),It=t.readUByte(),Ut=[],Wt=[];for(let va=0;va<n;va++)Ut.push(t.readBoolean()),Wt.push(t.readBoolean());if(n>0)for(let va=n;va<8;va++)t.readBits(2);for(let va=0;va<n;va++)Ut[va]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),Wt[va]&&t.readUByte();t.readUEG();const gn=t.readUEG();gn==3&&t.skipBits(1);const wn=t.readUEG(),or=t.readUEG(),Dn=t.readBoolean();let Wn=0,Hn=0,Ln=0,mr=0;Dn&&(Wn+=t.readUEG(),Hn+=t.readUEG(),Ln+=t.readUEG(),mr+=t.readUEG());const Hr=t.readUEG(),ai=t.readUEG(),pi=t.readUEG(),si=t.readBoolean();for(let va=si?0:n;va<=n;va++)t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.readBoolean()&&t.readBoolean())for(let cs=0;cs<4;cs++)for(let Bs=0;Bs<(cs===3?2:6);Bs++)if(!t.readBoolean())t.readUEG();else{const Hs=Math.min(64,1<<4+(cs<<1));cs>1&&t.readEG();for(let nl=0;nl<Hs;nl++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const Jr=t.readUEG();let ci=0;for(let va=0;va<Jr;va++){let cs=!1;if(va!==0&&(cs=t.readBoolean()),cs){va===Jr&&t.readUEG(),t.readBoolean(),t.readUEG();let Bs=0;for(let ko=0;ko<=ci;ko++){const Hs=t.readBoolean();let nl=!1;Hs||(nl=t.readBoolean()),(Hs||nl)&&Bs++}ci=Bs}else{const Bs=t.readUEG(),ko=t.readUEG();ci=Bs+ko;for(let Hs=0;Hs<Bs;Hs++)t.readUEG(),t.readBoolean();for(let Hs=0;Hs<ko;Hs++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const va=t.readUEG();for(let cs=0;cs<va;cs++){for(let Bs=0;Bs<pi+4;Bs++)t.readBits(1);t.readBits(1)}}let Ur=0,Kr=1,$i=1,xa=!0,Hi=1,na=0;t.readBoolean(),t.readBoolean();let us=!1;if(t.readBoolean()){if(t.readBoolean()){const No=t.readUByte(),rc=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Xl=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];No>0&&No<16?(Kr=rc[No-1],$i=Xl[No-1]):No===255&&(Kr=t.readBits(16),$i=t.readBits(16))}if(t.readBoolean()&&t.readBoolean(),t.readBoolean()&&(t.readBits(3),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())),t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),us=t.readBoolean(),us&&(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG()),t.readBoolean()&&(Hi=t.readBits(32),na=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const Xl=t.readBoolean(),ic=t.readBoolean();let El=!1;(Xl||ic)&&(El=t.readBoolean(),El&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),El&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let ac=0;ac<=n;ac++){xa=t.readBoolean();const Vd=xa||t.readBoolean();let sc=!1;Vd?t.readEG():sc=t.readBoolean();const oc=sc?1:t.readUEG()+1;if(Xl)for(let Sl=0;Sl<oc;Sl++)t.readUEG(),t.readUEG(),El&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(ic)for(let Sl=0;Sl<oc;Sl++)t.readUEG(),t.readUEG(),El&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),Ur=t.readUEG())}let Ns=wn,ao=or;if(Dn){let va=1,cs=1;gn===1?va=cs=2:gn==2&&(va=2),Ns=wn-va*Hn-va*Wn,ao=or-cs*mr-cs*Ln}const Mo=r?["A","B","C"][r]:"",Wd=d<<24|p<<16|m<<8|v;let bu=0;for(let va=0;va<32;va++)bu=(bu|(Wd>>va&1)<<31-va)>>>0;let xu=bu.toString(16);return s===1&&xu==="2"&&(xu="6"),{codecString:`hvc1.${Mo}${s}.${xu}.${a?"H":"L"}${It}.B0`,params:{general_tier_flag:a,general_profile_idc:s,general_profile_space:r,general_profile_compatibility_flags:[d,p,m,v],general_constraint_indicator_flags:[C,F,te,re,Xe,Ye],general_level_idc:It,bit_depth:Hr+8,bit_depth_luma_minus8:Hr,bit_depth_chroma_minus8:ai,min_spatial_segmentation_idc:Ur,chroma_format_idc:gn,frame_rate:{fixed:xa,fps:na/Hi}},width:Ns,height:ao,pixelRatio:[Kr,$i]}}readPPS(e){const t=new Kn(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2),t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const r=t.readBoolean(),a=t.readBoolean();let s=1;return a&&r?s=0:a?s=3:r&&(s=2),{parallelismType:s}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const qn=188;class rr{constructor(e,t,n,r){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.videoParser=null}static probe(e,t){const n=rr.syncOffset(e);return n>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),n!==-1}static syncOffset(e){const t=e.length;let n=Math.min(qn*5,t-qn)+1,r=0;for(;r<n;){let a=!1,s=-1,d=0;for(let p=r;p<t;p+=qn)if(e[p]===71&&(t-p===qn||e[p+qn]===71)){if(d++,s===-1&&(s=p,s!==0&&(n=Math.min(s+qn*99,e.length-qn)+1)),a||(a=dr(e,p)===0),a&&d>1&&(s===0&&d>2||p+qn>n))return s}else{if(d)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:jt[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,n,r){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=rr.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=rr.createTrack("audio",r),this._id3Track=rr.createTrack("id3"),this._txtTrack=rr.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,r=!1){n||(this.sampleAes=null);let a;const s=this._videoTrack,d=this._audioTrack,p=this._id3Track,m=this._txtTrack;let v=s.pid,C=s.pesData,F=d.pid,te=p.pid,re=d.pesData,Xe=p.pesData,Ye=null,It=this.pmtParsed,Ut=this._pmtId,Wt=e.length;if(this.remainderData&&(e=Pt(this.remainderData,e),Wt=e.length,this.remainderData=null),Wt<qn&&!r)return this.remainderData=e,{audioTrack:d,videoTrack:s,id3Track:p,textTrack:m};const gn=Math.max(0,rr.syncOffset(e));Wt-=(Wt-gn)%qn,Wt<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,Wt,e.buffer.byteLength-Wt));let wn=0;for(let Dn=gn;Dn<Wt;Dn+=qn)if(e[Dn]===71){const Wn=!!(e[Dn+1]&64),Hn=dr(e,Dn),Ln=(e[Dn+3]&48)>>4;let mr;if(Ln>1){if(mr=Dn+5+e[Dn+4],mr===Dn+qn)continue}else mr=Dn+4;switch(Hn){case v:Wn&&(C&&(a=qr(C,this.logger))&&(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(s,m,a,!1)),C={data:[],size:0}),C&&(C.data.push(e.subarray(mr,Dn+qn)),C.size+=Dn+qn-mr);break;case F:if(Wn){if(re&&(a=qr(re,this.logger)))switch(d.segmentCodec){case"aac":this.parseAACPES(d,a);break;case"mp3":this.parseMPEGPES(d,a);break;case"ac3":this.parseAC3PES(d,a);break}re={data:[],size:0}}re&&(re.data.push(e.subarray(mr,Dn+qn)),re.size+=Dn+qn-mr);break;case te:Wn&&(Xe&&(a=qr(Xe,this.logger))&&this.parseID3PES(p,a),Xe={data:[],size:0}),Xe&&(Xe.data.push(e.subarray(mr,Dn+qn)),Xe.size+=Dn+qn-mr);break;case 0:Wn&&(mr+=e[mr]+1),Ut=this._pmtId=Tr(e,mr);break;case Ut:{Wn&&(mr+=e[mr]+1);const Hr=Or(e,mr,this.typeSupported,n,this.observer,this.logger);v=Hr.videoPid,v>0&&(s.pid=v,s.segmentCodec=Hr.segmentVideoCodec),F=Hr.audioPid,F>0&&(d.pid=F,d.segmentCodec=Hr.segmentAudioCodec),te=Hr.id3Pid,te>0&&(p.pid=te),Ye!==null&&!It&&(this.logger.warn(`MPEG-TS PMT found at ${Dn} after unknown PID '${Ye}'. Backtracking to sync byte @${gn} to parse all TS packets.`),Ye=null,Dn=gn-188),It=this.pmtParsed=!0;break}case 17:case 8191:break;default:Ye=Hn;break}}else wn++;wn>0&&hr(this.observer,new Error(`Found ${wn} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=C,d.pesData=re,p.pesData=Xe;const or={audioTrack:d,videoTrack:s,id3Track:p,textTrack:m};return r&&this.extractRemainingSamples(or),or}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:a}=e,s=n.pesData,d=t.pesData,p=r.pesData;let m;if(s&&(m=qr(s,this.logger))?(this.readyVideoParser(n.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(n,a,m,!0),n.pesData=null)):n.pesData=s,d&&(m=qr(d,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,m);break;case"mp3":this.parseMPEGPES(t,m);break;case"ac3":this.parseAC3PES(t,m);break}t.pesData=null}else d!=null&&d.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=d;p&&(m=qr(p,this.logger))?(this.parseID3PES(r,m),r.pesData=null):r.pesData=p}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),a=this.sampleAes=new Sn(this.observer,this.config,t);return this.decrypt(r,a)}readyVideoParser(e){this.videoParser===null&&(e==="avc"?this.videoParser=new jn:e==="hevc"&&(this.videoParser=new ar))}decrypt(e,t){return new Promise(n=>{const{audioTrack:r,videoTrack:a}=e;r.samples&&r.segmentCodec==="aac"?t.decryptAacSamples(r.samples,0,()=>{a.samples?t.decryptAvcSamples(a.samples,0,0,()=>{n(e)}):n(e)}):a.samples&&t.decryptAvcSamples(a.samples,0,0,()=>{n(e)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let a=t.data;if(r){this.aacOverFlow=null;const C=r.missing,F=r.sample.unit.byteLength;if(C===-1)a=Pt(r.sample.unit,a);else{const te=F-C;r.sample.unit.set(a.subarray(0,C),te),e.samples.push(r.sample),n=r.missing}}let s,d;for(s=n,d=a.length;s<d-1&&!_o(a,s);s++);if(s!==n){let C;const F=s<d-1;if(F?C=`AAC PES did not start with ADTS header,offset:${s}`:C="No ADTS header found in AAC PES",hr(this.observer,new Error(C),F,this.logger),!F)return}Co(e,this.observer,a,s,this.audioCodec);let p;if(t.pts!==void 0)p=t.pts;else if(r){const C=il(e.samplerate);p=r.sample.pts+C}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let m=0,v;for(;s<d;)if(v=sl(e,a,s,p,m),s+=v.length,v.missing){this.aacOverFlow=v;break}else for(m++;s<d-1&&!_o(a,s);s++);}parseMPEGPES(e,t){const n=t.data,r=n.length;let a=0,s=0;const d=t.pts;if(d===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<r;)if(c(n,s)){const p=Nn(e,n,s,d,a);if(p)s+=p.length,a++;else break}else s++}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(r===void 0){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const a=n.length;let s=0,d=0,p;for(;d<a&&(p=Me(e,n,d,r,s++))>0;)d+=p}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=y({},t,{type:this._videoTrack?it.emsg:it.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function dr(o,e){return((o[e+1]&31)<<8)+o[e+2]}function Tr(o,e){return(o[e+10]&31)<<8|o[e+11]}function Or(o,e,t,n,r,a){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},d=(o[e+1]&15)<<8|o[e+2],p=e+3+d-4,m=(o[e+10]&15)<<8|o[e+11];for(e+=12+m;e<p;){const v=dr(o,e),C=(o[e+3]&15)<<8|o[e+4];switch(o[e]){case 207:if(!n){Gr("ADTS AAC",a);break}case 15:s.audioPid===-1&&(s.audioPid=v);break;case 21:s.id3Pid===-1&&(s.id3Pid=v);break;case 219:if(!n){Gr("H.264",a);break}case 27:s.videoPid===-1&&(s.videoPid=v);break;case 3:case 4:!t.mpeg&&!t.mp3?a.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=v,s.segmentAudioCodec="mp3");break;case 193:if(!n){Gr("AC-3",a);break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=v,s.segmentAudioCodec="ac3"):a.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&C>0){let F=e+5,te=C;for(;te>2;){switch(o[F]){case 106:t.ac3!==!0?a.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=v,s.segmentAudioCodec="ac3");break}const Xe=o[F+1]+2;F+=Xe,te-=Xe}}break;case 194:case 135:return hr(r,new Error("Unsupported EC-3 in M2TS found"),void 0,a),s;case 36:s.videoPid===-1&&(s.videoPid=v,s.segmentVideoCodec="hevc",a.log("HEVC in M2TS found"));break}e+=C+5}return s}function hr(o,e,t,n){n.warn(`parsing error: ${e.message}`),o.emit(g.ERROR,g.ERROR,{type:he.MEDIA_ERROR,details:Z.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Gr(o,e){e.log(`${o} with AES-128-CBC encryption found in unencrypted stream`)}function qr(o,e){let t=0,n,r,a,s,d;const p=o.data;if(!o||o.size===0)return null;for(;p[0].length<19&&p.length>1;)p[0]=Pt(p[0],p[1]),p.splice(1,1);if(n=p[0],(n[0]<<16)+(n[1]<<8)+n[2]===1){if(r=(n[4]<<8)+n[5],r&&r>o.size-6)return null;const v=n[7];v&192&&(s=(n[9]&14)*536870912+(n[10]&255)*4194304+(n[11]&254)*16384+(n[12]&255)*128+(n[13]&254)/2,v&64?(d=(n[14]&14)*536870912+(n[15]&255)*4194304+(n[16]&254)*16384+(n[17]&255)*128+(n[18]&254)/2,s-d>60*9e4&&(e.warn(`${Math.round((s-d)/9e4)}s delta between PTS and DTS, align them`),s=d)):d=s),a=n[8];let C=a+9;if(o.size<=C)return null;o.size-=C;const F=new Uint8Array(o.size);for(let te=0,re=p.length;te<re;te++){n=p[te];let Xe=n.byteLength;if(C)if(C>Xe){C-=Xe;continue}else n=n.subarray(C),Xe-=C,C=0;F.set(n,t),t+=Xe}return r&&(r-=a+3),{data:F,pts:s,dts:d,len:r}}return null}class Ri{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 bi=Math.pow(2,32)-1;class hn{static init(){hn.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in hn.types)hn.types.hasOwnProperty(e)&&(hn.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]);hn.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]),a=new Uint8Array([0,0,0,0,0,0,0,0]);hn.STTS=hn.STSC=hn.STCO=a,hn.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),hn.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),hn.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),hn.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),d=new Uint8Array([97,118,99,49]),p=new Uint8Array([0,0,0,1]);hn.FTYP=hn.box(hn.types.ftyp,s,p,s,d),hn.DINF=hn.box(hn.types.dinf,hn.box(hn.types.dref,r))}static box(e,...t){let n=8,r=t.length;const a=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<a;r++)s.set(t[r],n),n+=t[r].byteLength;return s}static hdlr(e){return hn.box(hn.types.hdlr,hn.HDLR_TYPES[e])}static mdat(e){return hn.box(hn.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(bi+1)),r=Math.floor(t%(bi+1));return hn.box(hn.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 hn.box(hn.types.mdia,hn.mdhd(e.timescale||0,e.duration||0),hn.hdlr(e.type),hn.minf(e))}static mfhd(e){return hn.box(hn.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"?hn.box(hn.types.minf,hn.box(hn.types.smhd,hn.SMHD),hn.DINF,hn.stbl(e)):hn.box(hn.types.minf,hn.box(hn.types.vmhd,hn.VMHD),hn.DINF,hn.stbl(e))}static moof(e,t,n){return hn.box(hn.types.moof,hn.mfhd(e),hn.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=hn.trak(e[t]);return hn.box.apply(null,[hn.types.moov,hn.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(hn.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=hn.trex(e[t]);return hn.box.apply(null,[hn.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(bi+1)),r=Math.floor(t%(bi+1)),a=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 hn.box(hn.types.mvhd,a)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let r,a;for(r=0;r<t.length;r++)a=t[r].flags,n[r+4]=a.dependsOn<<4|a.isDependedOn<<2|a.hasRedundancy;return hn.box(hn.types.sdtp,n)}static stbl(e){return hn.box(hn.types.stbl,hn.stsd(e),hn.box(hn.types.stts,hn.STTS),hn.box(hn.types.stsc,hn.STSC),hn.box(hn.types.stsz,hn.STSZ),hn.box(hn.types.stco,hn.STCO))}static avc1(e){let t=[],n=[],r,a,s;for(r=0;r<e.sps.length;r++)a=e.sps[r],s=a.byteLength,t.push(s>>>8&255),t.push(s&255),t=t.concat(Array.prototype.slice.call(a));for(r=0;r<e.pps.length;r++)a=e.pps[r],s=a.byteLength,n.push(s>>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(a));const d=hn.box(hn.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(n))),p=e.width,m=e.height,v=e.pixelRatio[0],C=e.pixelRatio[1];return hn.box(hn.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,p>>8&255,p&255,m>>8&255,m&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),d,hn.box(hn.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),hn.box(hn.types.pasp,new Uint8Array([v>>24,v>>16&255,v>>8&255,v&255,C>>24,C>>16&255,C>>8&255,C&255])))}static esds(e){const t=e.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return hn.box(hn.types.mp4a,hn.audioStsd(e),hn.box(hn.types.esds,hn.esds(e)))}static mp3(e){return hn.box(hn.types[".mp3"],hn.audioStsd(e))}static ac3(e){return hn.box(hn.types["ac-3"],hn.audioStsd(e),hn.box(hn.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return hn.box(hn.types.stsd,hn.STSD,hn.mp4a(e));if(t==="ac3"&&e.config)return hn.box(hn.types.stsd,hn.STSD,hn.ac3(e));if(t==="mp3"&&e.codec==="mp3")return hn.box(hn.types.stsd,hn.STSD,hn.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return hn.box(hn.types.stsd,hn.STSD,hn.avc1(e));if(t==="hevc"&&e.vps)return hn.box(hn.types.stsd,hn.STSD,hn.hvc1(e))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){const t=e.id,n=(e.duration||0)*(e.timescale||0),r=e.width||0,a=e.height||0,s=Math.floor(n/(bi+1)),d=Math.floor(n%(bi+1));return hn.box(hn.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,d>>24,d>>16&255,d>>8&255,d&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,a>>8&255,a&255,0,0]))}static traf(e,t){const n=hn.sdtp(e),r=e.id,a=Math.floor(t/(bi+1)),s=Math.floor(t%(bi+1));return hn.box(hn.types.traf,hn.box(hn.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),hn.box(hn.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,a&255,s>>24,s>>16&255,s>>8&255,s&255])),hn.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,hn.box(hn.types.trak,hn.tkhd(e),hn.mdia(e))}static trex(e){const t=e.id;return hn.box(hn.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,a=12+16*r,s=new Uint8Array(a);let d,p,m,v,C,F;for(t+=8+a,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),d=0;d<r;d++)p=n[d],m=p.duration,v=p.size,C=p.flags,F=p.cts,s.set([m>>>24&255,m>>>16&255,m>>>8&255,m&255,v>>>24&255,v>>>16&255,v>>>8&255,v&255,C.isLeading<<2|C.dependsOn,C.isDependedOn<<6|C.hasRedundancy<<4|C.paddingValue<<1|C.isNonSync,C.degradPrio&61440,C.degradPrio&15,F>>>24&255,F>>>16&255,F>>>8&255,F&255],12+16*d);return hn.box(hn.types.trun,s)}static initSegment(e){hn.types||hn.init();const t=hn.moov(e);return Pt(hn.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],r=4,a=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),r-1|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]);let s=a.length;for(let re=0;re<n.length;re+=1){s+=3;for(let Xe=0;Xe<n[re].length;Xe+=1)s+=2+n[re][Xe].length}const d=new Uint8Array(s);d.set(a,0),s=a.length;const p=n.length-1;for(let re=0;re<n.length;re+=1){d.set(new Uint8Array([32+re|(re===p?128:0),0,n[re].length]),s),s+=3;for(let Xe=0;Xe<n[re].length;Xe+=1)d.set(new Uint8Array([n[re][Xe].length>>8,n[re][Xe].length&255]),s),s+=2,d.set(n[re][Xe],s),s+=n[re][Xe].length}const m=hn.box(hn.types.hvcC,d),v=e.width,C=e.height,F=e.pixelRatio[0],te=e.pixelRatio[1];return hn.box(hn.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,v>>8&255,v&255,C>>8&255,C&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),m,hn.box(hn.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),hn.box(hn.types.pasp,new Uint8Array([F>>24,F>>16&255,F>>8&255,F&255,te>>24,te>>16&255,te>>8&255,te&255])))}}hn.types=void 0,hn.HDLR_TYPES=void 0,hn.STTS=void 0,hn.STSC=void 0,hn.STCO=void 0,hn.STSZ=void 0,hn.VMHD=void 0,hn.SMHD=void 0,hn.STSD=void 0,hn.FTYP=void 0,hn.DINF=void 0;const Li=9e4;function ya(o,e,t=1,n=!1){const r=o*e*t;return n?Math.round(r):r}function vi(o,e,t=1,n=!1){return ya(o,e,1/t,n)}function li(o,e=!1){return ya(o,1e3,1/Li,e)}function ca(o,e=1){return ya(o,Li,1/e)}function da(o){const{baseTime:e,timescale:t,trackId:n}=o;return`${e/t} (${e}/${t}) trackId: ${n}`}const Xr=10*1e3,gi=1024,zr=1152,Yr=1536;let Si=null,Ii=null;function ea(o,e,t,n){return{duration:e,size:t,cts:n,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:o?2:1,isNonSync:o?0:1}}}class Qi extends X{constructor(e,t,n,r){if(super("mp4-remuxer",r),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1,Si===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Si=s?parseInt(s[1]):0}if(Ii===null){const a=navigator.userAgent.match(/Safari\/(\d+)/i);Ii=a?parseInt(a[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){const t=this._initPTS;(!t||!e||e.trackId!==t.trackId||e.baseTime!==t.baseTime||e.timescale!==t.timescale)&&this.log(`Reset initPTS: ${t&&da(t)} > ${e&&da(e)}`),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.log("ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,r=e.reduce((a,s)=>{let d=s.pts,p=d-a;return p<-4294967296&&(t=!0,d=sa(d,n),p=d-a),p>0?a:d},n);return t&&this.debug("PTS rollover detected"),r}remux(e,t,n,r,a,s,d,p){let m,v,C,F,te,re,Xe=a,Ye=a;const It=e.pid>-1,Ut=t.pid>-1,Wt=t.samples.length,gn=e.samples.length>0,wn=d&&Wt>0||Wt>1;if((!It||gn)&&(!Ut||wn)||this.ISGenerated||d){if(this.ISGenerated){var Dn,Wn,Hn,Ln;const pi=this.videoTrackConfig;(pi&&(t.width!==pi.width||t.height!==pi.height||((Dn=t.pixelRatio)==null?void 0:Dn[0])!==((Wn=pi.pixelRatio)==null?void 0:Wn[0])||((Hn=t.pixelRatio)==null?void 0:Hn[1])!==((Ln=pi.pixelRatio)==null?void 0:Ln[1]))||!pi&&wn||this.nextAudioTs===null&&gn)&&this.resetInitSegment()}this.ISGenerated||(C=this.generateIS(e,t,a,s));const mr=this.isVideoContiguous;let Hr=-1,ai;if(wn&&(Hr=ka(t.samples),!mr&&this.config.forceKeyFrameOnDiscontinuity))if(re=!0,Hr>0){this.warn(`Dropped ${Hr} out of ${Wt} video samples due to a missing keyframe`);const pi=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(Hr),t.dropped+=Hr,Ye+=(t.samples[0].pts-pi)/t.inputTimeScale,ai=Ye}else Hr===-1&&(this.warn(`No keyframe found out of ${Wt} video samples`),re=!1);if(this.ISGenerated){if(gn&&wn){const pi=this.getVideoStartPts(t.samples),kr=(sa(e.samples[0].pts,pi)-pi)/t.inputTimeScale;Xe+=Math.max(0,kr),Ye+=Math.max(0,-kr)}if(gn){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),C=this.generateIS(e,t,a,s)),v=this.remuxAudio(e,Xe,this.isAudioContiguous,s,Ut||wn||p===Y.AUDIO?Ye:void 0),wn){const pi=v?v.endPTS-v.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),C=this.generateIS(e,t,a,s)),m=this.remuxVideo(t,Ye,mr,pi)}}else wn&&(m=this.remuxVideo(t,Ye,mr,0));m&&(m.firstKeyFrame=Hr,m.independent=Hr!==-1,m.firstKeyFramePTS=ai)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(te=Qr(n,a,this._initPTS,this._initDTS)),r.samples.length&&(F=ii(r,a,this._initPTS))),{audio:v,video:m,initSegment:C,independent:re,text:F,id3:te}}computeInitPts(e,t,n,r){const a=Math.round(n*t);let s=sa(e,a);if(s<a+t)for(this.log(`Adjusting PTS for rollover in timeline near ${(a-s)/t} ${r}`);s<a+t;)s+=8589934592;return s-a}generateIS(e,t,n,r){const a=e.samples,s=t.samples,d=this.typeSupported,p={},m=this._initPTS;let v=!m||r,C="audio/mp4",F,te,re,Xe=-1;if(v&&(F=te=1/0),e.config&&a.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":d.mpeg?(C="audio/mpeg",e.codec=""):d.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}p.audio={id:"audio",container:C,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&d.mpeg?new Uint8Array(0):hn.initSegment([e]),metadata:{channelCount:e.channelCount}},v&&(Xe=e.id,re=e.inputTimeScale,!m||re!==m.timescale?F=te=this.computeInitPts(a[0].pts,re,n,"audio"):v=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,p.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:hn.initSegment([t]),metadata:{width:t.width,height:t.height}},v)if(Xe=t.id,re=t.inputTimeScale,!m||re!==m.timescale){const Ye=this.getVideoStartPts(s),It=sa(s[0].dts,Ye),Ut=this.computeInitPts(It,re,n,"video"),Wt=this.computeInitPts(Ye,re,n,"video");te=Math.min(te,Ut),F=Math.min(F,Wt)}else v=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(p).length)return this.ISGenerated=!0,v?(m&&this.warn(`Timestamps at playlist time: ${r?"":"~"}${n} ${F/re} != initPTS: ${m.baseTime/m.timescale} (${m.baseTime}/${m.timescale}) trackId: ${m.trackId}`),this.log(`Found initPTS at playlist time: ${n} offset: ${F/re} (${F}/${re}) trackId: ${Xe}`),this._initPTS={baseTime:F,timescale:re,trackId:Xe},this._initDTS={baseTime:te,timescale:re,trackId:Xe}):F=re=void 0,{tracks:p,initPTS:F,timescale:re,trackId:Xe}}remuxVideo(e,t,n,r){const a=e.inputTimeScale,s=e.samples,d=[],p=s.length,m=this._initPTS,v=m.baseTime*a/m.timescale;let C=this.nextVideoTs,F=8,te=this.videoSampleDuration,re,Xe,Ye=Number.POSITIVE_INFINITY,It=Number.NEGATIVE_INFINITY,Ut=!1;if(!n||C===null){const Ur=v+t*a,Kr=s[0].pts-sa(s[0].dts,s[0].pts);Si&&C!==null&&Math.abs(Ur-Kr-(C+v))<15e3?n=!0:C=Ur-Kr-v}const Wt=C+v;for(let Ur=0;Ur<p;Ur++){const Kr=s[Ur];Kr.pts=sa(Kr.pts,Wt),Kr.dts=sa(Kr.dts,Wt),Kr.dts<s[Ur>0?Ur-1:Ur].dts&&(Ut=!0)}Ut&&s.sort(function(Ur,Kr){const $i=Ur.dts-Kr.dts,xa=Ur.pts-Kr.pts;return $i||xa}),re=s[0].dts,Xe=s[s.length-1].dts;const gn=Xe-re,wn=gn?Math.round(gn/(p-1)):te||e.inputTimeScale/30;if(n){const Ur=re-Wt,Kr=Ur>wn,$i=Ur<-1;if((Kr||$i)&&(Kr?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${li(Ur,!0)} ms (${Ur}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${li(-Ur,!0)} ms (${Ur}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!$i||Wt>=s[0].pts||Si)){re=Wt;const xa=s[0].pts-Ur;if(Kr)s[0].dts=re,s[0].pts=xa;else{let Hi=!0;for(let na=0;na<s.length&&!(s[na].dts>xa&&Hi);na++){const us=s[na].pts;if(s[na].dts-=Ur,s[na].pts-=Ur,na<s.length-1){const as=s[na+1].pts,Ns=s[na].pts,ao=as<=Ns,Mo=as<=us;Hi=ao==Mo}}}this.log(`Video: Initial PTS/DTS adjusted: ${li(xa,!0)}/${li(re,!0)}, delta: ${li(Ur,!0)} ms`)}}re=Math.max(0,re);let or=0,Dn=0,Wn=re;for(let Ur=0;Ur<p;Ur++){const Kr=s[Ur],$i=Kr.units,xa=$i.length;let Hi=0;for(let na=0;na<xa;na++)Hi+=$i[na].data.length;Dn+=Hi,or+=xa,Kr.length=Hi,Kr.dts<Wn?(Kr.dts=Wn,Wn+=wn/4|0||1):Wn=Kr.dts,Ye=Math.min(Kr.pts,Ye),It=Math.max(Kr.pts,It)}Xe=s[p-1].dts;const Hn=Dn+4*or+8;let Ln;try{Ln=new Uint8Array(Hn)}catch(Ur){this.observer.emit(g.ERROR,g.ERROR,{type:he.MUX_ERROR,details:Z.REMUX_ALLOC_ERROR,fatal:!1,error:Ur,bytes:Hn,reason:`fail allocating video mdat ${Hn}`});return}const mr=new DataView(Ln.buffer);mr.setUint32(0,Hn),Ln.set(hn.types.mdat,4);let Hr=!1,ai=Number.POSITIVE_INFINITY,pi=Number.POSITIVE_INFINITY,si=Number.NEGATIVE_INFINITY,kr=Number.NEGATIVE_INFINITY;for(let Ur=0;Ur<p;Ur++){const Kr=s[Ur],$i=Kr.units;let xa=0;for(let us=0,as=$i.length;us<as;us++){const Ns=$i[us],ao=Ns.data,Mo=Ns.data.byteLength;mr.setUint32(F,Mo),F+=4,Ln.set(ao,F),F+=Mo,xa+=4+Mo}let Hi;if(Ur<p-1)te=s[Ur+1].dts-Kr.dts,Hi=s[Ur+1].pts-Kr.pts;else{const us=this.config,as=Ur>0?Kr.dts-s[Ur-1].dts:wn;if(Hi=Ur>0?Kr.pts-s[Ur-1].pts:wn,us.stretchShortVideoTrack&&this.nextAudioTs!==null){const Ns=Math.floor(us.maxBufferHole*a),ao=(r?Ye+r*a:this.nextAudioTs+v)-Kr.pts;ao>Ns?(te=ao-as,te<0?te=as:Hr=!0,this.log(`It is approximately ${ao/90} ms to the next segment; using duration ${te/90} ms for the last video frame.`)):te=as}else te=as}const na=Math.round(Kr.pts-Kr.dts);ai=Math.min(ai,te),si=Math.max(si,te),pi=Math.min(pi,Hi),kr=Math.max(kr,Hi),d.push(ea(Kr.key,te,xa,na))}if(d.length){if(Si){if(Si<70){const Ur=d[0].flags;Ur.dependsOn=2,Ur.isNonSync=0}}else if(Ii&&kr-pi<si-ai&&wn/si<.025&&d[0].cts===0){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let Ur=re;for(let Kr=0,$i=d.length;Kr<$i;Kr++){const xa=Ur+d[Kr].duration,Hi=Ur+d[Kr].cts;if(Kr<$i-1){const na=xa+d[Kr+1].cts;d[Kr].duration=na-Hi}else d[Kr].duration=Kr?d[Kr-1].duration:wn;d[Kr].cts=0,Ur=xa}}}te=Hr||!te?wn:te;const oi=Xe+te;this.nextVideoTs=C=oi-v,this.videoSampleDuration=te,this.isVideoContiguous=!0;const _i={data1:hn.moof(e.sequenceNumber++,re,y(e,{samples:d})),data2:Ln,startPTS:(Ye-v)/a,endPTS:(It+te-v)/a,startDTS:(re-v)/a,endDTS:C/a,type:"video",hasAudio:!1,hasVideo:!0,nb:d.length,dropped:e.dropped};return e.samples=[],e.dropped=0,_i}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return zr;case"ac3":return Yr;default:return gi}}remuxAudio(e,t,n,r,a){const s=e.inputTimeScale,d=e.samplerate?e.samplerate:s,p=s/d,m=this.getSamplesPerFrame(e),v=m*p,C=this._initPTS,F=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,te=[],re=a!==void 0;let Xe=e.samples,Ye=F?0:8,It=this.nextAudioTs||-1;const Ut=C.baseTime*s/C.timescale,Wt=Ut+t*s;if(this.isAudioContiguous=n=n||Xe.length&&It>0&&(r&&Math.abs(Wt-(It+Ut))<9e3||Math.abs(sa(Xe[0].pts,Wt)-(It+Ut))<20*v),Xe.forEach(function(kr){kr.pts=sa(kr.pts,Wt)}),!n||It<0){const kr=Xe.length;if(Xe=Xe.filter(oi=>oi.pts>=0),kr!==Xe.length&&this.warn(`Removed ${Xe.length-kr} of ${kr} samples (initPTS ${Ut} / ${s})`),!Xe.length)return;a===0?It=0:r&&!re?It=Math.max(0,Wt-Ut):It=Xe[0].pts-Ut}if(e.segmentCodec==="aac"){const kr=this.config.maxAudioFramesDrift;for(let oi=0,Jr=It+Ut;oi<Xe.length;oi++){const ci=Xe[oi],_i=ci.pts,Ur=_i-Jr,Kr=Math.abs(1e3*Ur/s);if(Ur<=-kr*v&&re)oi===0&&(this.warn(`Audio frame @ ${(_i/s).toFixed(3)}s overlaps marker by ${Math.round(1e3*Ur/s)} ms.`),this.nextAudioTs=It=_i-Ut,Jr=_i);else if(Ur>=kr*v&&Kr<Xr&&re){let $i=Math.round(Ur/v);for(Jr=_i-$i*v;Jr<0&&$i&&v;)$i--,Jr+=v;oi===0&&(this.nextAudioTs=It=Jr-Ut),this.warn(`Injecting ${$i} audio frames @ ${((Jr-Ut)/s).toFixed(3)}s due to ${Math.round(1e3*Ur/s)} ms gap.`);for(let xa=0;xa<$i;xa++){let Hi=Ri.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);Hi||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),Hi=ci.unit.subarray()),Xe.splice(oi,0,{unit:Hi,pts:Jr}),Jr+=v,oi++}}ci.pts=Jr,Jr+=v}}let gn=null,wn=null,or,Dn=0,Wn=Xe.length;for(;Wn--;)Dn+=Xe[Wn].unit.byteLength;for(let kr=0,oi=Xe.length;kr<oi;kr++){const Jr=Xe[kr],ci=Jr.unit;let _i=Jr.pts;if(wn!==null){const Kr=te[kr-1];Kr.duration=Math.round((_i-wn)/p)}else if(n&&e.segmentCodec==="aac"&&(_i=It+Ut),gn=_i,Dn>0){Dn+=Ye;try{or=new Uint8Array(Dn)}catch(Kr){this.observer.emit(g.ERROR,g.ERROR,{type:he.MUX_ERROR,details:Z.REMUX_ALLOC_ERROR,fatal:!1,error:Kr,bytes:Dn,reason:`fail allocating audio mdat ${Dn}`});return}F||(new DataView(or.buffer).setUint32(0,Dn),or.set(hn.types.mdat,4))}else return;or.set(ci,Ye);const Ur=ci.byteLength;Ye+=Ur,te.push(ea(!0,m,Ur,0)),wn=_i}const Hn=te.length;if(!Hn)return;const Ln=te[te.length-1];It=wn-Ut,this.nextAudioTs=It+p*Ln.duration;const mr=F?new Uint8Array(0):hn.moof(e.sequenceNumber++,gn/p,y({},e,{samples:te}));e.samples=[];const Hr=(gn-Ut)/s,ai=this.nextAudioTs/s,si={data1:mr,data2:or,startPTS:Hr,endPTS:ai,startDTS:Hr,endDTS:ai,type:"audio",hasAudio:!0,hasVideo:!1,nb:Hn};return this.isAudioContiguous=!0,si}}function sa(o,e){let t;if(e===null)return o;for(e<o?t=-8589934592:t=8589934592;Math.abs(o-e)>4294967296;)o+=t;return o}function ka(o){for(let e=0;e<o.length;e++)if(o[e].key)return e;return-1}function Qr(o,e,t,n){const r=o.samples.length;if(!r)return;const a=o.inputTimeScale;for(let d=0;d<r;d++){const p=o.samples[d];p.pts=sa(p.pts-t.baseTime*a/t.timescale,e*a)/a,p.dts=sa(p.dts-n.baseTime*a/n.timescale,e*a)/a}const s=o.samples;return o.samples=[],{samples:s}}function ii(o,e,t){const n=o.samples.length;if(!n)return;const r=o.inputTimeScale;for(let s=0;s<n;s++){const d=o.samples[s];d.pts=sa(d.pts-t.baseTime*r/t.timescale,e*r)/r}o.samples.sort((s,d)=>s.pts-d.pts);const a=o.samples;return o.samples=[],{samples:a}}class Bi extends X{constructor(e,t,n,r){super("passthrough-remuxer",r),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1}destroy(){}resetTimeStamp(e){this.lastEndTime=null;const t=this.initPTS;t&&e&&t.baseTime===e.baseTime&&t.timescale===e.timescale||(this.initPTS=e)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(e,r),this.emitInitSegment=!0}generateInitSegment(e,t){let{audioCodec:n,videoCodec:r}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const{audio:a,video:s}=this.initData=Ge(e);if(t)Ue(e,t);else{const p=a||s;p!=null&&p.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${p.codec}")!`)}a&&(n=Ha(a,ce.AUDIO,this)),s&&(r=Ha(s,ce.VIDEO,this));const d={};a&&s?d.audiovideo={container:"video/mp4",codec:n+","+r,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:a?d.audio={container:"audio/mp4",codec:n,encrypted:a.encrypted,initSegment:e,id:"audio"}:s?d.video={container:"video/mp4",codec:r,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=d}remux(e,t,n,r,a,s){var d,p;let{initPTS:m,lastEndTime:v}=this;const C={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};i(v)||(v=this.lastEndTime=a||0);const F=t.samples;if(!F.length)return C;const te={initPTS:void 0,timescale:void 0,trackId:void 0};let re=this.initData;if((d=re)!=null&&d.length||(this.generateInitSegment(F),re=this.initData),!((p=re)!=null&&p.length))return this.warn("Failed to generate initSegment."),C;this.emitInitSegment&&(te.tracks=this.initTracks,this.emitInitSegment=!1);const Xe=Ot(F,re,this),Ye=re.audio?Xe[re.audio.id]:null,It=re.video?Xe[re.video.id]:null,Ut=ta(It,1/0),Wt=ta(Ye,1/0),gn=ta(It,0,!0),wn=ta(Ye,0,!0);let or=a,Dn=0;const Wn=Ye&&(!It||!m&&Wt<Ut||m&&m.trackId===re.audio.id),Hn=Wn?Ye:It;if(Hn){const Jr=Hn.timescale,ci=Hn.start-a*Jr,_i=Wn?re.audio.id:re.video.id;or=Hn.start/Jr,Dn=Wn?wn-Wt:gn-Ut,(s||!m)&&(Fi(m,or,a,Dn)||Jr!==m.timescale)&&(m&&this.warn(`Timestamps at playlist time: ${s?"":"~"}${a} ${ci/Jr} != initPTS: ${m.baseTime/m.timescale} (${m.baseTime}/${m.timescale}) trackId: ${m.trackId}`),this.log(`Found initPTS at playlist time: ${a} offset: ${or-a} (${ci}/${Jr}) trackId: ${_i}`),m=null,te.initPTS=ci,te.timescale=Jr,te.trackId=_i)}else this.warn(`No audio or video samples found for initPTS at playlist time: ${a}`);m?(te.initPTS=m.baseTime,te.timescale=m.timescale,te.trackId=m.trackId):((!te.timescale||te.trackId===void 0||te.initPTS===void 0)&&(this.warn("Could not set initPTS"),te.initPTS=or,te.timescale=1,te.trackId=-1),this.initPTS=m={baseTime:te.initPTS,timescale:te.timescale,trackId:te.trackId});const Ln=or-m.baseTime/m.timescale,mr=Ln+Dn;Dn>0?this.lastEndTime=mr:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const Hr=!!re.audio,ai=!!re.video;let pi="";Hr&&(pi+="audio"),ai&&(pi+="video");const si=(re.audio?re.audio.encrypted:!1)||(re.video?re.video.encrypted:!1),kr={data1:F,startPTS:Ln,startDTS:Ln,endPTS:mr,endDTS:mr,type:pi,hasAudio:Hr,hasVideo:ai,nb:1,dropped:0,encrypted:si};C.audio=Hr&&!ai?kr:void 0,C.video=ai?kr:void 0;const oi=It==null?void 0:It.sampleCount;if(oi){const Jr=It.keyFrameIndex,ci=Jr!==-1;kr.nb=oi,kr.dropped=Jr===0||this.isVideoContiguous?0:ci?Jr:oi,kr.independent=ci,kr.firstKeyFrame=Jr,ci&&It.keyFrameStart&&(kr.firstKeyFramePTS=(It.keyFrameStart-m.baseTime)/m.timescale),this.isVideoContiguous||(C.independent=ci),this.isVideoContiguous||(this.isVideoContiguous=ci),kr.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${Jr}/${oi} dropped: ${kr.dropped} start: ${kr.firstKeyFramePTS||"NA"}`)}return C.initSegment=te,C.id3=Qr(n,a,m,m),r.samples.length&&(C.text=ii(r,a,m)),C}}function ta(o,e,t=!1){return(o==null?void 0:o.start)!==void 0?(o.start+(t?o.duration:0))/o.timescale:e}function Fi(o,e,t,n){if(o===null)return!0;const r=Math.max(n,1),a=e-o.baseTime/o.timescale;return Math.abs(a-t)>r}function Ha(o,e,t){const n=o.codec;return n&&n.length>4?n:e===ce.AUDIO?n==="ec-3"||n==="ac-3"||n==="alac"?n:n==="fLaC"||n==="Opus"?fe(n,!1):(t.warn(`Unhandled audio codec "${n}" in mp4 MAP`),n||"mp4a"):(t.warn(`Unhandled video codec "${n}" in mp4 MAP`),n||"avc1")}let ga;try{ga=self.performance.now.bind(self.performance)}catch(o){ga=Date.now}const os=[{demux:Xt,remux:Bi},{demux:rr,remux:Qi},{demux:b,remux:Qi},{demux:et,remux:Qi}];os.splice(2,0,{demux:q,remux:Qi});class ba{constructor(e,t,n,r,a,s){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.id=a,this.logger=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const a=n.transmuxing;a.executeStart=ga();let s=new Uint8Array(e);const{currentTransmuxState:d,transmuxConfig:p}=this;r&&(this.currentTransmuxState=r);const{contiguous:m,discontinuity:v,trackSwitch:C,accurateTimeOffset:F,timeOffset:te,initSegmentChange:re}=r||d,{audioCodec:Xe,videoCodec:Ye,defaultInitPts:It,duration:Ut,initSegmentData:Wt}=p,gn=Ji(s,t);if(gn&&pr(gn.method)){const Wn=this.getDecrypter(),Hn=vr(gn.method);if(Wn.isSync()){let Ln=Wn.softwareDecrypt(s,gn.key.buffer,gn.iv.buffer,Hn);if(n.part>-1){const Hr=Wn.flush();Ln=Hr&&Hr.buffer}if(!Ln)return a.executeEnd=ga(),fa(n);s=new Uint8Array(Ln)}else return this.asyncResult=!0,this.decryptionPromise=Wn.webCryptoDecrypt(s,gn.key.buffer,gn.iv.buffer,Hn).then(Ln=>{const mr=this.push(Ln,null,n);return this.decryptionPromise=null,mr}),this.decryptionPromise}const wn=this.needsProbing(v,C);if(wn){const Wn=this.configureTransmuxer(s);if(Wn)return this.logger.warn(`[transmuxer] ${Wn.message}`),this.observer.emit(g.ERROR,g.ERROR,{type:he.MEDIA_ERROR,details:Z.FRAG_PARSING_ERROR,fatal:!1,error:Wn,reason:Wn.message}),a.executeEnd=ga(),fa(n)}(v||C||re||wn)&&this.resetInitSegment(Wt,Xe,Ye,Ut,t),(v||re||wn)&&this.resetInitialTimestamp(It),m||this.resetContiguity();const or=this.transmux(s,gn,te,F,n);this.asyncResult=oa(or);const Dn=this.currentTransmuxState;return Dn.contiguous=!0,Dn.discontinuity=!1,Dn.trackSwitch=!1,a.executeEnd=ga(),or}flush(e){const t=e.transmuxing;t.executeStart=ga();const{decrypter:n,currentTransmuxState:r,decryptionPromise:a}=this;if(a)return this.asyncResult=!0,a.then(()=>this.flush(e));const s=[],{timeOffset:d}=r;if(n){const C=n.flush();C&&s.push(this.push(C.buffer,null,e))}const{demuxer:p,remuxer:m}=this;if(!p||!m){t.executeEnd=ga();const C=[fa(e)];return this.asyncResult?Promise.resolve(C):C}const v=p.flush(d);return oa(v)?(this.asyncResult=!0,v.then(C=>(this.flushRemux(s,C,e),s))):(this.flushRemux(s,v,e),this.asyncResult?Promise.resolve(s):s)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:a,id3Track:s,textTrack:d}=t,{accurateTimeOffset:p,timeOffset:m}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===Y.MAIN?"level":"track"} ${n.level}`);const v=this.remuxer.remux(r,a,s,d,m,p,!0,this.id);e.push({remuxResult:v,chunkMeta:n}),n.transmuxing.executeEnd=ga()}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,a){const{demuxer:s,remuxer:d}=this;!s||!d||(s.resetInitSegment(e,t,n,r),d.resetInitSegment(e,t,n,a))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,a){let s;return t&&t.method==="SAMPLE-AES"?s=this.transmuxSampleAes(e,t,n,r,a):s=this.transmuxUnencrypted(e,n,r,a),s}transmuxUnencrypted(e,t,n,r){const{audioTrack:a,videoTrack:s,id3Track:d,textTrack:p}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(a,s,d,p,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,a){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:a}))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r}=this;let a;for(let C=0,F=os.length;C<F;C++){var s;if((s=os[C].demux)!=null&&s.probe(e,this.logger)){a=os[C];break}}if(!a)return new Error("Failed to find demuxer by probing fragment data");const d=this.demuxer,p=this.remuxer,m=a.remux,v=a.demux;(!p||!(p instanceof m))&&(this.remuxer=new m(n,t,r,this.logger)),(!d||!(d instanceof v))&&(this.demuxer=new v(n,t,r,this.logger),this.probe=v.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new Jt(this.config)),e}}function Ji(o,e){let t=null;return o.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const fa=o=>({remuxResult:{},chunkMeta:o});function oa(o){return"then"in o&&o.then instanceof Function}class Na{constructor(e,t,n,r,a){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=a||null}}class Ra{constructor(e,t,n,r,a,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=a,this.initSegmentChange=s}}let Gi=0;class Ca{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Gi++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=p=>{const m=p.data,v=this.hls;if(!(!v||!(m!=null&&m.event)||m.instanceNo!==this.instanceNo))switch(m.event){case"init":{var C;const F=(C=this.workerContext)==null?void 0:C.objectURL;F&&self.URL.revokeObjectURL(F);break}case"transmuxComplete":{this.handleTransmuxComplete(m.data);break}case"flush":{this.onFlush(m.data);break}case"workerLog":{v.logger[m.data.logType]&&v.logger[m.data.logType](m.data.message);break}default:{m.data=m.data||{},m.data.frag=this.frag,m.data.part=this.part,m.data.id=this.id,v.trigger(m.event,m.data);break}}},this.onWorkerError=p=>{if(!this.hls)return;const m=new Error(`${p.message} (${p.filename}:${p.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(g.ERROR,{type:he.OTHER_ERROR,details:Z.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:m})};const a=e.config;this.hls=e,this.id=t,this.useWorker=!!a.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const s=(p,m)=>{m=m||{},m.frag=this.frag||void 0,p===g.ERROR&&(m=m,m.parent=this.id,m.part=this.part,this.error=m.error),this.hls.trigger(p,m)};this.observer=new xo,this.observer.on(g.FRAG_DECRYPTED,s),this.observer.on(g.ERROR,s);const d=M(a.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const p=this.hls.logger;if(a.workerPath||Fo()){try{a.workerPath?(p.log(`loading Web Worker ${a.workerPath} for "${t}"`),this.workerContext=$o(a.workerPath)):(p.log(`injecting Web Worker for "${t}"`),this.workerContext=Cl());const{worker:v}=this.workerContext;v.addEventListener("message",this.onWorkerMessage),v.addEventListener("error",this.onWorkerError),v.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:d,id:t,config:at(a)})}catch(v){p.warn(`Error setting up "${t}" Web Worker, fallback to inline`,v),this.terminateWorker(),this.error=null,this.transmuxer=new ba(this.observer,d,a,"",t,e.logger)}return}}this.transmuxer=new ba(this.observer,d,a,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=Gi++;const t=this.hls.config,n=M(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:at(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),wl(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,n,r,a,s,d,p,m,v){var C,F;m.transmuxing.start=self.performance.now();const{instanceNo:te,transmuxer:re}=this,Xe=s?s.start:a.start,Ye=a.decryptdata,It=this.frag,Ut=!(It&&a.cc===It.cc),Wt=!(It&&m.level===It.level),gn=It?m.sn-It.sn:-1,wn=this.part?m.part-this.part.index:-1,or=gn===0&&m.id>1&&m.id===(It==null?void 0:It.stats.chunkCount),Dn=!Wt&&(gn===1||gn===0&&(wn===1||or&&wn<=0)),Wn=self.performance.now();(Wt||gn||a.stats.parsing.start===0)&&(a.stats.parsing.start=Wn),s&&(wn||!Dn)&&(s.stats.parsing.start=Wn);const Hn=!(It&&((C=a.initSegment)==null?void 0:C.url)===((F=It.initSegment)==null?void 0:F.url)),Ln=new Ra(Ut,Dn,p,Wt,Xe,Hn);if(!Dn||Ut||Hn){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${a.type} sn: ${m.sn}${m.part>-1?" part: "+m.part:""} ${this.id===Y.MAIN?"level":"track"}: ${m.level} id: ${m.id}
|
|
|
discontinuity: ${Ut}
|
|
|
trackSwitch: ${Wt}
|
|
|
contiguous: ${Dn}
|
|
|
accurateTimeOffset: ${p}
|
|
|
timeOffset: ${Xe}
|
|
|
initSegmentChange: ${Hn}`);const mr=new Na(n,r,t,d,v);this.configureTransmuxer(mr)}if(this.frag=a,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:te,cmd:"demux",data:e,decryptdata:Ye,chunkMeta:m,state:Ln},e instanceof ArrayBuffer?[e]:[]);else if(re){const mr=re.push(e,Ye,m,Ln);oa(mr)?mr.then(Hr=>{this.handleTransmuxComplete(Hr)}).catch(Hr=>{this.transmuxerError(Hr,m,"transmuxer-interface push error")}):this.handleTransmuxComplete(mr)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(n){const r=n.flush(e);oa(r)?r.then(a=>{this.handleFlushResult(a,e)}).catch(a=>{this.transmuxerError(a,e,"transmuxer-interface flush error")}):this.handleFlushResult(r,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(g.ERROR,{type:he.MEDIA_ERROR,details:Z.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(n=>{this.handleTransmuxComplete(n)}),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const la=100;class Va extends oo{constructor(e,t,n){super(e,t,n,"audio-stream-controller",Y.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(g.BUFFER_RESET,this.onBufferReset,this),e.on(g.BUFFER_CREATED,this.onBufferCreated,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(g.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(g.FRAG_LOADING,this.onFragLoading,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(g.BUFFER_RESET,this.onBufferReset,this),e.off(g.BUFFER_CREATED,this.onBufferCreated,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(g.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(g.FRAG_LOADING,this.onFragLoading,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:a,trackId:s}){if(n===Y.MAIN){const d=t.cc,p=this.fragCurrent;if(this.initPTS[d]={baseTime:r,timescale:a,trackId:s},this.log(`InitPTS for cc: ${d} found from main: ${r/a} (${r}/${a}) trackId: ${s}`),this.mainAnchor=t,this.state===cr.WAITING_INIT_PTS){const m=this.waitingData;(!m&&!this.loadingParts||m&&m.frag.cc!==d)&&this.syncWithAnchor(t,m==null?void 0:m.frag)}else!this.hls.hasEnoughToStart&&p&&p.cc!==d?(p.abortRequests(),this.syncWithAnchor(t,p)):this.state===cr.IDLE&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var n;const r=((n=this.mainFragLoading)==null?void 0:n.frag)||null;if(t&&(r==null?void 0:r.cc)===t.cc)return;const a=(r||e).cc,s=this.getLevelDetails(),d=this.getLoadPosition(),p=tn(s,a,d);p&&(this.log(`Syncing with main frag at ${p.start} cc ${p.cc}`),this.startFragRequested=!1,this.nextLoadPosition=p.start,this.resetLoadingState(),this.state===cr.IDLE&&this.doTickIdle())}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=cr.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(la),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=cr.IDLE):this.state=cr.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case cr.IDLE:this.doTickIdle();break;case cr.WAITING_TRACK:{const{levels:e,trackId:t}=this,n=e==null?void 0:e[t],r=n==null?void 0:n.details;if(r&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(r))break;this.state=cr.WAITING_INIT_PTS}break}case cr.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case cr.WAITING_INIT_PTS:{const e=this.waitingData;if(e){const{frag:t,part:n,cache:r,complete:a}=e,s=this.mainAnchor;if(this.initPTS[t.cc]!==void 0){this.waitingData=null,this.state=cr.FRAG_LOADING;const d=r.flush().buffer,p={frag:t,part:n,payload:d,networkDetails:null};this._handleFragmentLoadProgress(p),a&&super._handleFragmentLoadComplete(p)}else s&&s.cc!==e.frag.cc&&this.syncWithAnchor(s,e.frag)}else this.state=cr.IDLE}}this.onTickEnd()}resetLoadingState(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:n,media:r,trackId:a}=this,s=t.config;if(!this.buffering||!r&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(n!=null&&n[a]))return;const d=n[a],p=d.details;if(!p||this.waitForLive(d)||this.waitForCdnTuneIn(p)){this.state=cr.WAITING_TRACK,this.startFragRequested=!1;return}const m=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&m&&(this.bufferFlushed=!1,this.afterBufferFlushed(m,ce.AUDIO,Y.AUDIO));const v=this.getFwdBufferInfo(m,Y.AUDIO);if(v===null)return;if(!this.switchingTrack&&this._streamEnded(v,p)){t.trigger(g.BUFFER_EOS,{type:"audio"}),this.state=cr.ENDED;return}const C=v.len,F=t.maxBufferLength,te=p.fragments,re=te[0].start,Xe=this.getLoadPosition(),Ye=this.flushing?Xe:v.end;if(this.switchingTrack&&r){const Wt=Xe;p.PTSKnown&&Wt<re&&(v.end>re||v.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=re+.05)}if(C>=F&&!this.switchingTrack&&Ye<te[te.length-1].start)return;let It=this.getNextFragment(Ye,p);if(It&&this.isLoopLoading(It,Ye)&&(It=this.getNextFragmentLoopLoading(It,p,v,Y.MAIN,F)),!It){this.bufferFlushed=!0;return}let Ut=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&Ut&&ct(It)&&!It.endList&&(!p.live||!this.loadingParts&&Ye<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(Ut)===Xn.OK&&(this.mainFragLoading=Ut=null),Ut&&ct(Ut))){if(It.start>Ut.end){const gn=this.fragmentTracker.getFragAtPos(Ye,Y.MAIN);gn&&gn.end>Ut.end&&(Ut=gn,this.mainFragLoading={frag:gn,targetBufferTime:null})}if(It.start>Ut.end)return}this.loadFragment(It,d,Ye)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new lt(n))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==cr.STOPPED&&(this.setInterval(la),this.state=cr.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(g.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n;const{levels:r}=this,{details:a,id:s,groupId:d,track:p}=t;if(!r){this.warn(`Audio tracks reset while loading track ${s} "${p.name}" of "${d}"`);return}const m=this.mainDetails;if(!m||a.endCC>m.endCC||m.expired){this.cachedTrackLoadedData=t,this.state!==cr.STOPPED&&(this.state=cr.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${p.name}" of "${d}" loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""},duration:${a.totalduration}`);const v=r[s];let C=0;if(a.live||(n=v.details)!=null&&n.live){if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;if(v.details){var F;C=this.alignPlaylists(a,v.details,(F=this.levelLastLoaded)==null?void 0:F.details)}a.alignedSliding||(zs(a,m),a.alignedSliding||so(a,m),C=a.fragmentStart)}v.details=a,this.levelLastLoaded=v,this.startFragRequested||this.setStartPosition(m,C),this.hls.trigger(g.AUDIO_TRACK_UPDATED,{details:a,id:s,groupId:t.groupId}),this.state===cr.WAITING_TRACK&&!this.waitForCdnTuneIn(a)&&(this.state=cr.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:a}=e,{config:s,trackId:d,levels:p}=this;if(!p){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 m=p[d];if(!m){this.warn("Audio track is undefined on fragment load progress");return}const v=m.details;if(!v){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const C=s.defaultAudioCodec||m.audioCodec||"mp4a.40.2";let F=this.transmuxer;F||(F=this.transmuxer=new Ca(this.hls,Y.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const te=this.initPTS[n.cc],re=(t=n.initSegment)==null?void 0:t.data;if(te!==void 0){const Ye=r?r.index:-1,It=Ye!==-1,Ut=new di(n.level,n.sn,n.stats.chunkCount,a.byteLength,Ye,It);F.push(a,re,C,"",n,r,v.totalduration,!1,Ut,te)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${v.startSN} ,${v.endSN}],track ${d}`);const{cache:Xe}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new Zs,complete:!1};Xe.push(new Uint8Array(a)),this.state!==cr.STOPPED&&(this.state=cr.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===Y.MAIN&&ct(t.frag)&&(this.mainFragLoading=t,this.state===cr.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==Y.AUDIO){!this.audioOnly&&n.type===Y.MAIN&&!n.elementaryStreams.video&&!n.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(ct(n)){this.fragPrevious=n;const a=this.switchingTrack;a&&(this.bufferedTrack=a,this.switchingTrack=null,this.hls.trigger(g.AUDIO_TRACK_SWITCHED,A({},a)))}this.fragBufferedComplete(n,r),this.media&&this.tick()}onError(e,t){var n;if(t.fatal){this.state=cr.ERROR;return}switch(t.details){case Z.FRAG_GAP:case Z.FRAG_PARSING_ERROR:case Z.FRAG_DECRYPT_ERROR:case Z.FRAG_LOAD_ERROR:case Z.FRAG_LOAD_TIMEOUT:case Z.KEY_LOAD_ERROR:case Z.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Y.AUDIO,t);break;case Z.AUDIO_TRACK_LOAD_ERROR:case Z.AUDIO_TRACK_LOAD_TIMEOUT:case Z.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===cr.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===W.AUDIO_TRACK&&(this.state=cr.IDLE);break;case Z.BUFFER_ADD_CODEC_ERROR:case Z.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)||this.resetLoadingState();break;case Z.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case Z.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==ce.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==ce.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===cr.ENDED&&(this.state=cr.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,Y.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:a,chunkMeta:s}=e,d=this.getCurrentContext(s);if(!d){this.resetWhenMissingContext(s);return}const{frag:p,part:m,level:v}=d,{details:C}=v,{audio:F,text:te,id3:re,initSegment:Xe}=a;if(this.fragContextChanged(p)||!C){this.fragmentTracker.removeFragment(p);return}if(this.state=cr.PARSING,this.switchingTrack&&F&&this.completeAudioSwitch(this.switchingTrack),Xe!=null&&Xe.tracks){const Ye=p.initSegment||p;if(this.unhandledEncryptionError(Xe,p))return;this._bufferInitSegment(v,Xe.tracks,Ye,s),r.trigger(g.FRAG_PARSING_INIT_SEGMENT,{frag:Ye,id:n,tracks:Xe.tracks})}if(F){const{startPTS:Ye,endPTS:It,startDTS:Ut,endDTS:Wt}=F;m&&(m.elementaryStreams[ce.AUDIO]={startPTS:Ye,endPTS:It,startDTS:Ut,endDTS:Wt}),p.setElementaryStreamInfo(ce.AUDIO,Ye,It,Ut,Wt),this.bufferFragmentData(F,p,m,s)}if(re!=null&&(t=re.samples)!=null&&t.length){const Ye=y({id:n,frag:p,details:C},re);r.trigger(g.FRAG_PARSING_METADATA,Ye)}if(te){const Ye=y({id:n,frag:p,details:C},te);r.trigger(g.FRAG_PARSING_USERDATA,Ye)}}_bufferInitSegment(e,t,n,r){if(this.state!==cr.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const a=t.audio;a.id=Y.AUDIO;const s=e.audioCodec;this.log(`Init audio buffer, container:${a.container}, codecs[level/parsed]=[${s}/${a.codec}]`),s&&s.split(",").length===1&&(a.levelCodec=s),this.hls.trigger(g.BUFFER_CODECS,t);const d=a.initSegment;if(d!=null&&d.byteLength){const p={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:d};this.hls.trigger(g.BUFFER_APPENDING,p)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.switchingTrack||r===Xn.NOT_LOADED||r===Xn.PARTIAL){var a;if(!ct(e))this._loadInitSegment(e,t);else if((a=t.details)!=null&&a.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=cr.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==t.details.fragmentStart&&so(t.details,s)}else super.loadFragment(e,t,n)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:r,characteristics:a,audioCodec:s,channels:d}=this.bufferedTrack;vn({name:t,lang:n,assocLang:r,characteristics:a,audioCodec:s,channels:d},e,bn)||(Pn(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(g.AUDIO_TRACK_SWITCHED,A({},e))}}class wa extends X{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=t==null?void 0:t.renditionReports;if(r){let a=-1;for(let s=0;s<r.length;s++){const d=r[s];let p;try{p=new self.URL(d.URI,t.url).href}catch(m){this.warn(`Could not construct new URL for Rendition Report: ${m}`),p=d.URI||""}if(p===e){a=s;break}else p===e.substring(0,p.length)&&(a=s)}if(a!==-1){const s=r[a],d=parseInt(s["LAST-MSN"])||t.lastPartSn;let p=parseInt(s["LAST-PART"])||t.lastPartIndex;if(this.hls.config.lowLatencyMode){const v=Math.min(t.age-t.partTarget,t.targetduration);p>=0&&v>t.partTarget&&(p+=1)}const m=n&&on(n);return new Ve(d,p>=0?p:void 0,m)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(n){this.warn(`Could not construct new URL with HLS Delivery Directives: ${n}`)}return e}playlistLoaded(e,t,n){const{details:r,stats:a}=t,s=self.performance.now(),d=a.loading.first?Math.max(0,s-a.loading.first):0;r.advancedDateTime=Date.now()-d;const p=this.hls.config.timelineOffset;if(p!==r.appliedTimelineOffset){const v=Math.max(p||0,0);r.appliedTimelineOffset=v,r.fragments.forEach(C=>{C.setStart(C.playlistOffset+v)})}if(r.live||n!=null&&n.live){const v="levelInfo"in t?t.levelInfo:t.track;if(r.reloaded(n),n&&r.fragments.length>0){rs(n,r,this);const Ut=r.playlistParsingError;if(Ut){this.warn(Ut);const Wt=this.hls;if(!Wt.config.ignorePlaylistParsingErrors){var m;const{networkDetails:gn}=t;Wt.trigger(g.ERROR,{type:he.NETWORK_ERROR,details:Z.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:Ut,reason:Ut.message,level:t.level||void 0,parent:(m=r.fragments[0])==null?void 0:m.type,networkDetails:gn,stats:a});return}r.playlistParsingError=null}}r.requestScheduled===-1&&(r.requestScheduled=a.loading.start);const C=this.hls.mainForwardBufferInfo,F=C?C.end-C.len:0,te=(r.edge-F)*1e3,re=Ki(r,te);if(r.requestScheduled+re<s?r.requestScheduled=s:r.requestScheduled+=re,this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),!this.canLoad||!r.live)return;let Xe,Ye,It;if(r.canBlockReload&&r.endSN&&r.advanced){const Ut=this.hls.config.lowLatencyMode,Wt=r.lastPartSn,gn=r.endSN,wn=r.lastPartIndex,or=wn!==-1,Dn=Wt===gn;or?Dn?(Ye=gn+1,It=Ut?0:wn):(Ye=Wt,It=Ut?wn+1:r.maxPartIndex):Ye=gn+1;const Wn=r.age,Hn=Wn+r.ageHeader;let Ln=Math.min(Hn-r.partTarget,r.targetduration*1.5);if(Ln>0){if(Hn>r.targetduration*3)this.log(`Playlist last advanced ${Wn.toFixed(2)}s ago. Omitting segment and part directives.`),Ye=void 0,It=void 0;else if(n!=null&&n.tuneInGoal&&Hn-r.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${Ln} with playlist age: ${r.age}`),Ln=0;else{const mr=Math.floor(Ln/r.targetduration);if(Ye+=mr,It!==void 0){const Hr=Math.round(Ln%r.targetduration/r.partTarget);It+=Hr}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${Wn.toFixed(2)}s goal: ${Ln} skip sn ${mr} to part ${It}`)}r.tuneInGoal=Ln}if(Xe=this.getDeliveryDirectives(r,t.deliveryDirectives,Ye,It),Ut||!Dn){r.requestScheduled=s,this.loadingPlaylist(v,Xe);return}}else(r.canBlockReload||r.canSkipUntil)&&(Xe=this.getDeliveryDirectives(r,t.deliveryDirectives,Ye,It));Xe&&Ye!==void 0&&r.canBlockReload&&(r.requestScheduled=a.loading.first+Math.max(re-d*2,re/2)),this.scheduleLoading(v,Xe,r)}else this.clearTimer()}scheduleLoading(e,t,n){const r=n||e.details;if(!r){this.loadingPlaylist(e,t);return}const a=self.performance.now(),s=r.requestScheduled;if(a>=s){this.loadingPlaylist(e,t);return}const d=s-a;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(d)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),d)}getDeliveryDirectives(e,t,n,r){let a=on(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,a=rn.No),new Ve(n,r,a)}checkRetry(e){const t=e.details,n=yn(e),r=e.errorAction,{action:a,retryCount:s=0,retryConfig:d}=r||{},p=!!r&&!!d&&(a===Vn.RetryRequest||!r.resolved&&a===Vn.SendAlternateToPenaltyBox);if(p){var m;if(s>=d.maxNumRetry)return!1;if(n&&(m=e.context)!=null&&m.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${d.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const v=er(d,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),v),this.warn(`Retrying playlist loading ${s+1}/${d.maxNumRetry} after "${t}" in ${v}ms`)}e.levelRetry=!0,r.resolved=!0}return p}}function Ja(o,e){if(o.length!==e.length)return!1;for(let t=0;t<o.length;t++)if(!xs(o[t].attrs,e[t].attrs))return!1;return!0}function xs(o,e,t){const n=o["STABLE-RENDITION-ID"];return n&&!t?n===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(r=>o[r]!==e[r])}function fo(o,e){return e.label.toLowerCase()===o.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(o.lang||"").toLowerCase())}class _a extends wa{constructor(e){super(e,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.LEVEL_LOADING,this.onLevelLoading,this),e.on(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.LEVEL_LOADING,this.onLevelLoading,this),e.off(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(g.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:a}=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 d=s.details;s.details=t.details,this.log(`Audio track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${a.startSN}-${a.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,d)}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 a=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(d=>(r==null?void 0:r.indexOf(d))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const d=this.tracks.filter(F=>!n||n.indexOf(F.groupId)!==-1);if(d.length)this.selectDefaultTrack&&!d.some(F=>F.default)&&(this.selectDefaultTrack=!1),d.forEach((F,te)=>{F.id=te});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=d;const p=this.hls.config.audioPreference;if(!a&&p){const F=sn(p,d,bn);if(F>-1)a=d[F];else{const te=sn(p,this.tracks);a=this.tracks[te]}}let m=this.findTrackId(a);m===-1&&a&&(m=this.findTrackId(null));const v={audioTracks:d};this.log(`Updating audio tracks, ${d.length} track(s) found in group(s): ${n==null?void 0:n.join(",")}`),this.hls.trigger(g.AUDIO_TRACKS_UPDATED,v);const C=this.trackId;if(m!==-1&&C===-1)this.setAudioTrack(m);else if(d.length&&C===-1){var s;const F=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${d.length}`);this.warn(F.message),this.hls.trigger(g.ERROR,{type:he.MEDIA_ERROR,details:Z.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:F})}}}onError(e,t){t.fatal||!t.context||t.context.type===W.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&vn(e,r,bn))return r;const a=sn(e,this.tracksInGroup,bn);if(a>-1){const s=this.tracksInGroup[a];return this.setAudioTrack(a),s}else if(r){let s=t.loadLevel;s===-1&&(s=t.firstAutoLevel);const d=Cn(e,t.levels,n,s,bn);if(d===-1)return null;t.nextLoadLevel=d}if(e.channels||e.audioCodec){const s=sn(e,n);if(s>-1)return n[s]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e],a=r.details&&!r.details.live;if(e===this.trackId&&r===n&&a||(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(g.AUDIO_TRACK_SWITCHING,A({},r)),a))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||vn(e,r,bn)))return n}if(e){const{name:n,lang:r,assocLang:a,characteristics:s,audioCodec:d,channels:p}=e;for(let m=0;m<t.length;m++){const v=t[m];if(vn({name:n,lang:r,assocLang:a,characteristics:s,audioCodec:d,channels:p},v,bn))return m}for(let m=0;m<t.length;m++){const v=t[m];if(xs(e.attrs,v.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return m}for(let m=0;m<t.length;m++){const v=t[m];if(xs(e.attrs,v.attrs,["LANGUAGE"]))return m}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&Pn(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,a=this.getUrlWithDirectives(e.url,t),s=e.details,d=s==null?void 0:s.age;this.log(`Loading audio-track ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${d&&s.live?" age "+d.toFixed(1)+(s.type?" "+s.type||0:""):""} ${a}`),this.hls.trigger(g.AUDIO_TRACK_LOADING,{url:a,id:n,groupId:r,deliveryDirectives:t||null,track:e})}}class Do{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,n){if(this.queues===null||this.tracks===null)return;const r=this.queues[t];r.push(e),r.length===1&&!n&&this.executeNext(t)}appendBlocker(e){return new Promise(t=>{const n={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,e)})}prependBlocker(e){return new Promise(t=>{if(this.queues){const n={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(n)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;const n=(t=e[0])==null?void 0:t.label;(n==="async-blocker"||n==="async-blocker-prepend")&&(e[0].execute(),e.splice(0,1))})}unblockAudio(e){if(this.queues===null)return;this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(this.queues===null||this.tracks===null)return;const t=this.queues[e];if(t.length){const r=t[0];try{r.execute()}catch(a){var n;if(r.onError(a),this.queues===null||this.tracks===null)return;const s=(n=this.tracks[e])==null?void 0:n.buffer;s!=null&&s.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues!==null&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return((t=this.queues)==null?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return e===null||t===null?"<destroyed>":`
|
|
|
${this.list("video")}
|
|
|
${this.list("audio")}
|
|
|
${this.list("audiovideo")}}`}list(e){var t,n;return(t=this.queues)!=null&&t[e]||(n=this.tracks)!=null&&n[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const n=(t=this.tracks)==null?void 0:t[e],r=n==null?void 0:n.buffer;return r?`SourceBuffer${r.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(e){var t;return((t=this.queues)==null?void 0:t[e].map(n=>n.label).join(", "))||""}}const qa=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,ms="HlsJsTrackRemovedError";class ps extends Error{constructor(e){super(e),this.name=ms}}class is extends X{constructor(e,t){super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=n=>{var r;this.hls&&((r=this.mediaSource)==null?void 0:r.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=n=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=n=>{const{media:r,mediaSource:a}=this;n&&this.log("Media source opened"),!(!r||!a)&&(a.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(g.MEDIA_ATTACHED,{media:r,mediaSource:a}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:n,_objectUrl:r}=this;n!==r&&this.error(`Media element src was set while attaching MediaSource (${r} > ${n})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=Je(Ke(e.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:e}=this;e.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.BUFFER_RESET,this.onBufferReset,this),e.on(g.BUFFER_APPENDING,this.onBufferAppending,this),e.on(g.BUFFER_CODECS,this.onBufferCodecs,this),e.on(g.BUFFER_EOS,this.onBufferEos,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(g.FRAG_PARSED,this.onFragParsed,this),e.on(g.FRAG_CHANGED,this.onFragChanged,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.BUFFER_RESET,this.onBufferReset,this),e.off(g.BUFFER_APPENDING,this.onBufferAppending,this),e.off(g.BUFFER_CODECS,this.onBufferCodecs,this),e.off(g.BUFFER_EOS,this.onBufferEos,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(g.FRAG_PARSED,this.onFragParsed,this),e.off(g.FRAG_CHANGED,this.onFragChanged,this),e.off(g.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const n={};if(this.operationQueue){const a=this.isUpdating();a||this.operationQueue.removeBlockers();const s=this.isQueued();(a||s)&&this.warn(`Transfering MediaSource with${s?" operations in queue":""}${a?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const r=this.transferData;return!this.sourceBufferCount&&r&&r.mediaSource===t?y(n,r.tracks):this.sourceBuffers.forEach(a=>{const[s]=a;s&&(n[s]=y({},this.tracks[s]),this.removeBuffer(s)),a[0]=a[1]=null}),{media:e,mediaSource:t,tracks:n}}initTracks(){const e={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=e,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var n;let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsTotal=r,this.log(`${r} bufferCodec event(s) expected.`),(n=this.transferData)!=null&&n.mediaSource&&this.sourceBufferCount&&r&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media;this.transferData=this.overrides=void 0;const r=Ke(this.appendSource);if(r){const a=!!t.mediaSource;(a||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const s=this.mediaSource=t.mediaSource||new r;if(this.assignMediaSource(s),a)this._objectUrl=n.src,this.attachTransferred();else{const d=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{n.removeAttribute("src");const p=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||p&&s instanceof p,es(n),Es(n,d),n.load()}catch(p){n.src=d}else n.src=d}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,n;this.log(`${((t=this.transferData)==null?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${(n=e.constructor)==null?void 0:n.name}`),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const n=this.tracks,r=t.tracks,a=r?Object.keys(r):null,s=a?a.length:0,d=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(r&&a&&s){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})
|
|
|
required tracks: ${at(n,(p,m)=>p==="initSegment"?void 0:m)};
|
|
|
transfer tracks: ${at(r,(p,m)=>p==="initSegment"?void 0:m)}}`),!ke(r,n)){t.mediaSource=null,t.tracks=void 0;const p=e.currentTime,m=this.details,v=Math.max(p,(m==null?void 0:m.fragments[0].start)||0);if(v-p>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${p} -> ${v}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(r)}"->"${Object.keys(n)}") start time: ${v} currentTime: ${p}`),this.onMediaDetaching(g.MEDIA_DETACHING,{}),this.onMediaAttaching(g.MEDIA_ATTACHING,t),e.currentTime=v;return}this.transferData=void 0,a.forEach(p=>{const m=p,v=r[m];if(v){const C=v.buffer;if(C){const F=this.fragmentTracker,te=v.id;if(F.hasFragments(te)||F.hasParts(te)){const Ye=fr.getBuffered(C);F.detectEvictedFragments(m,Ye,te,null,!0)}const re=ks(m),Xe=[m,C];this.sourceBuffers[re]=Xe,C.updating&&this.operationQueue&&this.operationQueue.prependBlocker(m),this.trackSourceBuffer(m,v)}}}),d(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),d()}get mediaSourceOpenOrEnded(){var e;const t=(e=this.mediaSource)==null?void 0:e.readyState;return t==="open"||t==="ended"}onMediaDetaching(e,t){const n=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:r,mediaSource:a,_objectUrl:s}=this;if(a){if(this.log(`media source ${n?"transferring":"detaching"}`),n)this.sourceBuffers.forEach(([d])=>{d&&this.removeBuffer(d)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const d=a.readyState==="open";try{const p=a.sourceBuffers;for(let m=p.length;m--;)d&&p[m].abort(),a.removeSourceBuffer(p[m]);d&&a.endOfStream()}catch(p){this.warn(`onMediaDetaching: ${p.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}a.removeEventListener("sourceopen",this._onMediaSourceOpen),a.removeEventListener("sourceended",this._onMediaSourceEnded),a.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(a.removeEventListener("startstreaming",this._onStartStreaming),a.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}r&&(r.removeEventListener("emptied",this._onMediaEmptied),n||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(r.removeAttribute("src"),this.appendSource&&es(r),r.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(g.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t;const n=(t=this.tracks[e])==null?void 0:t.buffer;if(this.removeBuffer(e),n)try{var r;(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(a){this.warn(`onBufferReset ${e}`,a)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[ks(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new Do(this.tracks)}onBufferCodecs(e,t){var n;const r=this.tracks,a=Object.keys(t);this.log(`BUFFER_CODECS: "${a}" (current SB count ${this.sourceBufferCount})`);const s="audiovideo"in t&&(r.audio||r.video)||r.audiovideo&&("audio"in t||"video"in t),d=!s&&this.sourceBufferCount&&this.media&&a.some(p=>!r[p]);if(s||d){this.warn(`Unsupported transition between "${Object.keys(r)}" and "${a}" SourceBuffers`);return}a.forEach(p=>{var m,v;const C=t[p],{id:F,codec:te,levelCodec:re,container:Xe,metadata:Ye,supplemental:It}=C;let Ut=r[p];const Wt=(m=this.transferData)==null||(m=m.tracks)==null?void 0:m[p],gn=Wt!=null&&Wt.buffer?Wt:Ut,wn=(gn==null?void 0:gn.pendingCodec)||(gn==null?void 0:gn.codec),or=gn==null?void 0:gn.levelCodec;Ut||(Ut=r[p]={buffer:void 0,listeners:[],codec:te,supplemental:It,container:Xe,levelCodec:re,metadata:Ye,id:F});const Dn=dn(wn,or),Wn=Dn==null?void 0:Dn.replace(qa,"$1");let Hn=dn(te,re);const Ln=(v=Hn)==null?void 0:v.replace(qa,"$1");Hn&&Dn&&Wn!==Ln&&(p.slice(0,5)==="audio"&&(Hn=fe(Hn,this.appendSource)),this.log(`switching codec ${wn} to ${Hn}`),Hn!==(Ut.pendingCodec||Ut.codec)&&(Ut.pendingCodec=Hn),Ut.container=Xe,this.appendChangeType(p,Xe,Hn))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!t.video&&((n=t.audio)==null?void 0:n.id)==="main"&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((e,t)=>{const n=this.tracks[t];return e[t]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},e},{})}appendChangeType(e,t,n){const r=`${t};codecs=${n}`,a={label:`change-type=${r}`,execute:()=>{const s=this.tracks[e];if(s){const d=s.buffer;d!=null&&d.changeType&&(this.log(`changing ${e} sourceBuffer type to ${r}`),d.changeType(r),s.codec=n,s.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${e} SourceBuffer type`,s)}};this.append(a,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,r=n+e.duration*.05;if(((t=this.fragmentTracker.getAppendedFrag(n,Y.MAIN))==null?void 0:t.gap)===!0)return;const s={label:"block-audio",execute:()=>{var d;const p=this.tracks.video;(this.lastVideoAppendEnd>r||p!=null&&p.buffer&&fr.isBuffered(p.buffer,r)||((d=this.fragmentTracker.getAppendedFrag(r,Y.MAIN))==null?void 0:d.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:d=>{this.warn("Error executing block-audio operation",d)}};this.blockedAudioAppend={op:s,frag:e},this.append(s,"audio",!0)}unblockAudio(){const{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){const{tracks:n}=this,{data:r,type:a,parent:s,frag:d,part:p,chunkMeta:m,offset:v}=t,C=m.buffering[a],{sn:F,cc:te}=d,re=self.performance.now();C.start=re;const Xe=d.stats.buffering,Ye=p?p.stats.buffering:null;Xe.start===0&&(Xe.start=re),Ye&&Ye.start===0&&(Ye.start=re);const It=n.audio;let Ut=!1;a==="audio"&&(It==null?void 0:It.container)==="audio/mpeg"&&(Ut=!this.lastMpegAudioChunk||m.id===1||this.lastMpegAudioChunk.sn!==m.sn,this.lastMpegAudioChunk=m);const Wt=n.video,gn=Wt==null?void 0:Wt.buffer;if(gn&&F!=="initSegment"){const Dn=p||d,Wn=this.blockedAudioAppend;if(a==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(Wt.ending||Wt.ended)){const Ln=Dn.start+Dn.duration*.05,mr=gn.buffered,Hr=this.currentOp("video");!mr.length&&!Hr?this.blockAudio(Dn):!Hr&&!fr.isBuffered(gn,Ln)&&this.lastVideoAppendEnd<Ln&&this.blockAudio(Dn)}else if(a==="video"){const Hn=Dn.end;if(Wn){const Ln=Wn.frag.start;(Hn>Ln||Hn<this.lastVideoAppendEnd||fr.isBuffered(gn,Ln))&&this.unblockAudio()}this.lastVideoAppendEnd=Hn}}const wn=(p||d).start,or={label:`append-${a}`,execute:()=>{var Dn;C.executeStart=self.performance.now();const Wn=(Dn=this.tracks[a])==null?void 0:Dn.buffer;Wn&&(Ut?this.updateTimestampOffset(Wn,wn,.1,a,F,te):v!==void 0&&i(v)&&this.updateTimestampOffset(Wn,v,1e-6,a,F,te)),this.appendExecutor(r,a)},onStart:()=>{},onComplete:()=>{const Dn=self.performance.now();C.executeEnd=C.end=Dn,Xe.first===0&&(Xe.first=Dn),Ye&&Ye.first===0&&(Ye.first=Dn);const Wn={};this.sourceBuffers.forEach(([Hn,Ln])=>{Hn&&(Wn[Hn]=fr.getBuffered(Ln))}),this.appendErrors[a]=0,a==="audio"||a==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(g.BUFFER_APPENDED,{type:a,frag:d,part:p,chunkMeta:m,parent:d.type,timeRanges:Wn})},onError:Dn=>{var Wn;const Hn={type:he.MEDIA_ERROR,parent:d.type,details:Z.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:d,part:p,chunkMeta:m,error:Dn,err:Dn,fatal:!1},Ln=(Wn=this.media)==null?void 0:Wn.error;if(Dn.code===DOMException.QUOTA_EXCEEDED_ERR||Dn.name=="QuotaExceededError"||"quota"in Dn)Hn.details=Z.BUFFER_FULL_ERROR;else if(Dn.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!Ln)Hn.errorAction=Tn(!0);else if(Dn.name===ms&&this.sourceBufferCount===0)Hn.errorAction=Tn(!0);else{const mr=++this.appendErrors[a];this.warn(`Failed ${mr}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${a}" sourceBuffer (${Ln||"no media error"})`),(mr>=this.hls.config.appendErrorMaxRetry||Ln)&&(Hn.fatal=!0)}this.hls.trigger(g.ERROR,Hn)}};this.log(`queuing "${a}" append sn: ${F}${p?" p: "+p.index:""} of ${d.type===Y.MAIN?"level":"track"} ${d.level} cc: ${te}`),this.append(or,a,this.isPending(this.tracks[a]))}getFlushOp(e,t,n){return this.log(`queuing "${e}" remove ${t}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(g.BUFFER_FLUSHED,{type:e})},onError:r=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,r)}}}onBufferFlushing(e,t){const{type:n,startOffset:r,endOffset:a}=t;n?this.append(this.getFlushOp(n,r,a),n):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,r,a),s)})}onFragParsed(e,t){const{frag:n,part:r}=t,a=[],s=r?r.elementaryStreams:n.elementaryStreams;s[ce.AUDIOVIDEO]?a.push("audiovideo"):(s[ce.AUDIO]&&a.push("audio"),s[ce.VIDEO]&&a.push("video"));const d=()=>{const p=self.performance.now();n.stats.buffering.end=p,r&&(r.stats.buffering.end=p);const m=r?r.stats:n.stats;this.hls.trigger(g.FRAG_BUFFERED,{frag:n,part:r,stats:m,id:n.type})};a.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers(d,a).catch(p=>{this.warn(`Fragment buffered callback ${p}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{if(e){const t=this.tracks[e];if(t)return!t.ended||t.ending}return!1})}onBufferEos(e,t){var n;this.sourceBuffers.forEach(([s])=>{if(s){const d=this.tracks[s];(!t.type||t.type===s)&&(d.ending=!0,d.ended||(d.ended=!0,this.log(`${s} buffer reached EOS`)))}});const r=((n=this.overrides)==null?void 0:n.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([s])=>{var d;return s&&!((d=this.tracks[s])!=null&&d.ended)})?r?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:s}=this;if(!s||s.readyState!=="open"){s&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${s.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),s.endOfStream(),this.hls.trigger(g.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(g.BUFFERED_TO_END,void 0)):t.type==="video"&&this.unblockAudio()}tracksEnded(){this.sourceBuffers.forEach(([e])=>{if(e!==null){const t=this.tracks[e];t&&(t.ending=!1)}})}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){this.blockUntilOpen(()=>{const e=this.getDurationAndRange();e&&this.updateMediaSource(e)})}onError(e,t){if(t.details===Z.BUFFER_APPEND_ERROR&&t.frag){var n;const r=(n=t.errorAction)==null?void 0:n.nextAutoLevel;i(r)&&r!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||t===null||!this.sourceBufferCount)return;const r=e.config,a=n.currentTime,s=t.levelTargetDuration,d=t.live&&r.liveBackBufferLength!==null?r.liveBackBufferLength:r.backBufferLength;if(i(d)&&d>=0){const m=Math.max(d,s),v=Math.floor(a/s)*s-m;this.flushBackBuffer(a,s,v)}const p=r.frontBufferFlushThreshold;if(i(p)&&p>0){const m=Math.max(r.maxBufferLength,p),v=Math.max(m,s),C=Math.floor(a/s)*s+v;this.flushFrontBuffer(a,s,C)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([r,a])=>{if(a){const d=fr.getBuffered(a);if(d.length>0&&n>d.start(0)){var s;this.hls.trigger(g.BACK_BUFFER_REACHED,{bufferEnd:n});const p=this.tracks[r];if((s=this.details)!=null&&s.live)this.hls.trigger(g.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(p!=null&&p.ended){this.log(`Cannot flush ${r} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(g.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:r})}}})}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach(([r,a])=>{if(a){const s=fr.getBuffered(a),d=s.length;if(d<2)return;const p=s.start(d-1),m=s.end(d-1);if(n>p||e>=p&&e<=m)return;this.hls.trigger(g.BUFFER_FLUSHING,{startOffset:p,endOffset:1/0,type:r})}})}getDurationAndRange(){var e;const{details:t,mediaSource:n}=this;if(!t||!this.media||(n==null?void 0:n.readyState)!=="open")return null;const r=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&n.setLiveSeekableRange){const m=Math.max(0,t.fragmentStart),v=Math.max(m,r);return{duration:1/0,start:m,end:v}}return{duration:1/0}}const a=(e=this.overrides)==null?void 0:e.duration;if(a)return i(a)?{duration:a}:null;const s=this.media.duration,d=i(n.duration)?n.duration:0;return r>d&&r>s||!i(s)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;!this.media||!r||r.readyState!=="open"||(r.duration!==e&&(i(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),r.duration=e),t!==void 0&&n!==void 0&&(this.log(`MediaSource duration is set to ${r.duration}. Setting seekable range to ${t}-${n}.`),r.setLiveSeekableRange(t,n)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${at(n)}`),this.tracksReady){var r;const a=(r=this.transferData)==null?void 0:r.tracks;a&&Object.keys(a).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach(([t,n])=>{if(t){const r=this.tracks[t];e[t]={buffer:n,container:r.container,codec:r.codec,supplemental:r.supplemental,levelCodec:r.levelCodec,id:r.id,metadata:r.metadata}}}),this.hls.trigger(g.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([t])=>{this.executeNext(t)})}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(g.ERROR,{type:he.MEDIA_ERROR,details:Z.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const a in e){const s=a,d=e[s];if(this.isPending(d)){const p=this.getTrackCodec(d,s),m=`${d.container};codecs=${p}`;d.codec=p,this.log(`creating sourceBuffer(${m})${this.currentOp(s)?" Queued":""} ${at(d)}`);try{const v=n.addSourceBuffer(m),C=ks(s),F=[s,v];t[C]=F,d.buffer=v}catch(v){var r;this.error(`error while trying to add sourceBuffer: ${v.message}`),this.shiftAndExecuteNext(s),(r=this.operationQueue)==null||r.removeBlockers(),delete this.tracks[s],this.hls.trigger(g.ERROR,{type:he.MEDIA_ERROR,details:Z.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:v,sourceBufferName:s,mimeType:m,parent:d.id});return}this.trackSourceBuffer(s,d)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let r=e.codec;n&&(t==="video"||t==="audiovideo")&&st(n,"video")&&(r=Kt(r,n));const a=dn(r,e.levelCodec);return a?t.slice(0,5)==="audio"?fe(a,this.appendSource):a:""}trackSourceBuffer(e,t){const n=t.buffer;if(!n)return;const r=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:r,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",(a,s)=>{const d=s.removedRanges;d!=null&&d.length&&this.hls.trigger(g.BUFFER_FLUSHED,{type:a})})}get mediaSrc(){var e,t;const n=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return n==null?void 0:n.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const n=this.currentOp(e);n&&(n.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var n;const r=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(n=this.mediaSource)==null?void 0:n.readyState}`);this.error(`${r}`,t),this.hls.trigger(g.ERROR,{type:he.MEDIA_ERROR,details:Z.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const a=this.currentOp(e);a&&a.onError(r)}updateTimestampOffset(e,t,n,r,a,s){const d=t-e.timestampOffset;Math.abs(d)>=n&&(this.log(`Updating ${r} SourceBuffer timestampOffset to ${t} (sn: ${a} cc: ${s})`),e.timestampOffset=t)}removeExecutor(e,t,n){const{media:r,mediaSource:a}=this,s=this.tracks[e],d=s==null?void 0:s.buffer;if(!r||!a||!d){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}const p=i(r.duration)?r.duration:1/0,m=i(a.duration)?a.duration:1/0,v=Math.max(0,t),C=Math.min(n,p,m);C>v&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${v},${C}] from the ${e} SourceBuffer`),d.remove(v,C)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],r=n==null?void 0:n.buffer;if(!r)throw new ps(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,r.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch(t=>{this.warn(`SourceBuffer blocked callback ${t}`),this.stepOperationQueue(this.sourceBufferTypes)});else try{e()}catch(t){this.warn(`Callback run without blocking ${this.operationQueue} ${t}`)}}isUpdating(){return this.sourceBuffers.some(([e,t])=>e&&t.updating)}isQueued(){return this.sourceBuffers.some(([e])=>e&&!!this.currentOp(e))}isPending(e){return!!e&&!e.buffer}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);const{operationQueue:n}=this,r=t.map(s=>this.appendBlocker(s));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(r).then(s=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(e){e.forEach(t=>{var n;const r=(n=this.tracks[t])==null?void 0:n.buffer;!r||r.updating||this.shiftAndExecuteNext(t)})}append(e,t,n){this.operationQueue&&this.operationQueue.append(e,t,n)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((e,t)=>e+(this.isPending(this.tracks[t])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((e,[t])=>e+(t?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([e])=>e).filter(e=>!!e)}addBufferListener(e,t,n){const r=this.tracks[e];if(!r)return;const a=r.buffer;if(!a)return;const s=n.bind(this,e);r.listeners.push({event:t,listener:s}),a.addEventListener(t,s)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach(r=>{n.removeEventListener(r.event,r.listener)}),t.listeners.length=0)}}function es(o){const e=o.querySelectorAll("source");[].slice.call(e).forEach(t=>{o.removeChild(t)})}function Es(o,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,o.appendChild(t)}function ks(o){return o==="audio"?1:0}class Ss{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(g.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(g.BUFFER_CODECS,this.onBufferCodecs,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(g.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(g.BUFFER_CODECS,this.onBufferCodecs,this),e.off(g.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&&i(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const n=t.filter((r,a)=>this.isLevelAllowed(r)&&a<=e);return this.clientRect=null,Ss.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,!t.width&&!t.height&&(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(t){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some(n=>e.bitrate===n.bitrate&&e.width===n.width&&e.height===n.height)}static getMaxLevelByMediaSize(e,t,n){if(!(e!=null&&e.length))return-1;const r=(d,p)=>p?d.width!==p.width||d.height!==p.height:!0;let a=e.length-1;const s=Math.max(t,n);for(let d=0;d<e.length;d+=1){const p=e[d];if((p.width>=s||p.height>=s)&&r(p,e[d+1])){a=d;break}}return a}}const ts={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},cl={HLS:"h"};class gs{constructor(e,t){Array.isArray(e)&&(e=e.map(n=>n instanceof gs?n:new gs(n))),this.value=e,this.params=t}}const dl="Dict";function xi(o){return Array.isArray(o)?JSON.stringify(o):o instanceof Map?"Map{}":o instanceof Set?"Set{}":typeof o=="object"?JSON.stringify(o):String(o)}function qi(o,e,t,n){return new Error(`failed to ${o} "${xi(e)}" as ${t}`,{cause:n})}function ha(o,e,t){return qi("serialize",o,e,t)}class Oa{constructor(e){this.description=e}}const ns="Bare Item",_s="Boolean";function Ts(o){if(typeof o!="boolean")throw ha(o,_s);return o?"?1":"?0"}function Ga(o){return btoa(String.fromCharCode(...o))}const Ql="Byte Sequence";function Il(o){if(ArrayBuffer.isView(o)===!1)throw ha(o,Ql);return`:${Ga(o)}:`}const Yo="Integer";function vo(o){return o<-999999999999999||999999999999999<o}function Dl(o){if(vo(o))throw ha(o,Yo);return o.toString()}function Rl(o){return`@${Dl(o.getTime()/1e3)}`}function Ol(o,e){if(o<0)return-Ol(-o,e);const t=Math.pow(10,e);if(Math.abs(o*t%1-.5)<Number.EPSILON){const r=Math.floor(o*t);return(r%2===0?r:r+1)/t}else return Math.round(o*t)/t}const Ll="Decimal";function Jl(o){const e=Ol(o,3);if(Math.floor(Math.abs(e)).toString().length>12)throw ha(o,Ll);const t=e.toString();return t.includes(".")?t:`${t}.0`}const Pl="String",Xo=/[\x00-\x1f\x7f]+/;function Ml(o){if(Xo.test(o))throw ha(o,Pl);return`"${o.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function ql(o){return o.description||o.toString().slice(7,-1)}const kl="Token";function fl(o){const e=ql(o);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw ha(e,kl);return e}function hl(o){switch(typeof o){case"number":if(!i(o))throw ha(o,ns);return Number.isInteger(o)?Dl(o):Jl(o);case"string":return Ml(o);case"symbol":return fl(o);case"boolean":return Ts(o);case"object":if(o instanceof Date)return Rl(o);if(o instanceof Uint8Array)return Il(o);if(o instanceof Oa)return fl(o);default:throw ha(o,ns)}}const eu="Key";function ml(o){if(/^[a-z*][a-z0-9\-_.*]*$/.test(o)===!1)throw ha(o,eu);return o}function Qo(o){return o==null?"":Object.entries(o).map(([e,t])=>t===!0?`;${ml(e)}`:`;${ml(e)}=${hl(t)}`).join("")}function Ro(o){return o instanceof gs?`${hl(o.value)}${Qo(o.params)}`:hl(o)}function pl(o){return`(${o.value.map(Ro).join(" ")})${Qo(o.params)}`}function gl(o,e={whitespace:!0}){if(typeof o!="object"||o==null)throw ha(o,dl);const t=o instanceof Map?o.entries():Object.entries(o),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,a])=>{a instanceof gs||(a=new gs(a));let s=ml(r);return a.value===!0?s+=Qo(a.params):(s+="=",Array.isArray(a.value)?s+=pl(a):s+=Ro(a)),s}).join(`,${n}`)}function vl(o,e){return gl(o,e)}const As="CMCD-Object",Ia="CMCD-Request",no="CMCD-Session",ro="CMCD-Status",Nl={br:As,ab:As,d:As,ot:As,tb:As,tpb:As,lb:As,tab:As,lab:As,url:As,pb:Ia,bl:Ia,tbl:Ia,dl:Ia,ltc:Ia,mtp:Ia,nor:Ia,nrr:Ia,rc:Ia,sn:Ia,sta:Ia,su:Ia,ttfb:Ia,ttfbb:Ia,ttlb:Ia,cmsdd:Ia,cmsds:Ia,smrt:Ia,df:Ia,cs:Ia,ts:Ia,cid:no,pr:no,sf:no,sid:no,st:no,v:no,msd:no,bs:ro,bsd:ro,cdn:ro,rtp:ro,bg:ro,pt:ro,ec:ro,e:ro},yl={REQUEST:Ia};function Bl(o){return Object.keys(o).reduce((e,t)=>{var n;return(n=o[t])===null||n===void 0||n.forEach(r=>e[r]=t),e},{})}function bl(o,e){const t={};if(!o)return t;const n=Object.keys(o),r=e?Bl(e):{};return n.reduce((a,s)=>{var d;const p=Nl[s]||r[s]||yl.REQUEST,m=(d=a[p])!==null&&d!==void 0?d:a[p]={};return m[s]=o[s],a},t)}function Fl(o){return["ot","sf","st","e","sta"].includes(o)}function tu(o){return typeof o=="number"?i(o):o!=null&&o!==""&&o!==!1}const Pi="event";function ji(o,e){const t=new URL(o),n=new URL(e);if(t.origin!==n.origin)return o;const r=t.pathname.split("/").slice(1),a=n.pathname.split("/").slice(1,-1);for(;r[0]===a[0];)r.shift(),a.shift();for(;a.length;)a.shift(),r.unshift("..");return r.join("/")+t.search+t.hash}const Ba=o=>Math.round(o),ls=(o,e)=>Array.isArray(o)?o.map(t=>ls(t,e)):o instanceof gs&&typeof o.value=="string"?new gs(ls(o.value,e),o.params):(e.baseUrl&&(o=ji(o,e.baseUrl)),e.version===1?encodeURIComponent(o):o),Fa=o=>Ba(o/100)*100,ho={br:Ba,d:Ba,bl:Fa,dl:Fa,mtp:Fa,nor:(o,e)=>{let t=o;return e.version>=2&&(o instanceof gs&&typeof o.value=="string"?t=new gs([o]):typeof o=="string"&&(t=[o])),ls(t,e)},rtp:Fa,tb:Ba},io="request",yo="response",Lo=["ab","bg","bl","br","bs","bsd","cdn","cid","cs","df","ec","lab","lb","ltc","msd","mtp","pb","pr","pt","sf","sid","sn","st","sta","tab","tb","tbl","tpb","ts","v"],dc=["e"],fc=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function $l(o){return fc.test(o)}function hc(o){return Lo.includes(o)||dc.includes(o)||$l(o)}const Eu=["d","dl","nor","ot","rtp","su"];function mc(o){return Lo.includes(o)||Eu.includes(o)||$l(o)}const pc=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function gc(o){return Lo.includes(o)||Eu.includes(o)||pc.includes(o)||$l(o)}const vc=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function yc(o){return vc.includes(o)||$l(o)}const bc={[yo]:gc,[Pi]:hc,[io]:mc};function Su(o,e={}){const t={};if(o==null||typeof o!="object")return t;const n=e.version||o.v||1,r=e.reportingMode||io,a=n===1?yc:bc[r];let s=Object.keys(o).filter(a);const d=e.filter;typeof d=="function"&&(s=s.filter(d));const p=r===yo||r===Pi;p&&!s.includes("ts")&&s.push("ts"),n>1&&!s.includes("v")&&s.push("v");const m=y({},ho,e.formatters),v={version:n,reportingMode:r,baseUrl:e.baseUrl};return s.sort().forEach(C=>{let F=o[C];const te=m[C];if(typeof te=="function"&&(F=te(F,v)),C==="v"){if(n===1)return;F=n}C=="pr"&&F===1||(p&&C==="ts"&&!i(F)&&(F=Date.now()),tu(F)&&(Fl(C)&&typeof F=="string"&&(F=new Oa(F)),t[C]=F))}),t}function xc(o,e={}){const t={};if(!o)return t;const n=Su(o,e),r=bl(n,e==null?void 0:e.customHeaderMap);return Object.entries(r).reduce((a,[s,d])=>{const p=vl(d,{whitespace:!1});return p&&(a[s]=p),a},t)}function Ec(o,e,t){return y(o,xc(e,t))}const Sc="CMCD";function _c(o,e={}){return o?vl(Su(o,e),{whitespace:!1}):""}function Cc(o,e={}){if(!o)return"";const t=_c(o,e);return encodeURIComponent(t)}function wc(o,e={}){if(!o)return"";const t=Cc(o,e);return`${Sc}=${t}`}const _u=/CMCD=[^&#]+/;function Tc(o,e,t){const n=wc(e,t);if(!n)return o;if(_u.test(o))return o.replace(_u,n);const r=o.includes("?")?"&":"?";return`${o}${r}${n}`}class Ac{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:ts.MANIFEST,su:!this.initialized})}catch(a){this.hls.logger.warn("Could not generate manifest CMCD data.",a)}},this.applyFragmentData=r=>{try{const{frag:a,part:s}=r,d=this.hls.levels[a.level],p=this.getObjectType(a),m={d:(s||a).duration*1e3,ot:p};(p===ts.VIDEO||p===ts.AUDIO||p==ts.MUXED)&&(m.br=d.bitrate/1e3,m.tb=this.getTopBandwidth(p)/1e3,m.bl=this.getBufferLength(p));const v=s?this.getNextPart(s):this.getNextFrag(a);v!=null&&v.url&&v.url!==a.url&&(m.nor=v.url),this.apply(r,m)}catch(a){this.hls.logger.warn("Could not generate segment CMCD data.",a)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;n!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=n.useHeaders===!0,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHED,this.onMediaDetached,this),e.on(g.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHED,this.onMediaDetached,this),e.off(g.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var n,r;this.audioBuffer=(n=t.tracks.audio)==null?void 0:n.buffer,this.videoBuffer=(r=t.tracks.video)==null?void 0:r.buffer}createData(){var e;return{v:1,sf:cl.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){y(t,this.createData());const n=t.ot===ts.INIT||t.ot===ts.VIDEO||t.ot===ts.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:r}=this;r&&(t=Object.keys(t).reduce((s,d)=>(r.includes(d)&&(s[d]=t[d]),s),{}));const a={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),Ec(e.headers,t,a)):e.url=Tc(e.url,t,a)}getNextFrag(e){var t;const n=(t=this.hls.levels[e.level])==null?void 0:t.details;if(n){const r=e.sn-n.startSN;return n.fragments[r+1]}}getNextPart(e){var t;const{index:n,fragment:r}=e,a=(t=this.hls.levels[r.level])==null||(t=t.details)==null?void 0:t.partList;if(a){const{sn:s}=r;for(let d=a.length-1;d>=0;d--){const p=a[d];if(p.index===n&&p.fragment.sn===s)return a[d+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return ts.TIMED_TEXT;if(e.sn==="initSegment")return ts.INIT;if(t==="audio")return ts.AUDIO;if(t==="main")return this.hls.audioTracks.length?ts.VIDEO:ts.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===ts.AUDIO)n=r.audioTracks;else{const a=r.maxAutoLevel,s=a>-1?a+1:r.levels.length;n=r.levels.slice(0,s)}return n.forEach(a=>{a.bitrate>t&&(t=a.bitrate)}),t>0?t:NaN}getBufferLength(e){const t=this.media,n=e===ts.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:fr.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(a){this.loader=void 0,this.loader=new n(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,s,d){t(a),this.loader.load(a,s,d)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(a){this.loader=void 0,this.loader=new n(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,s,d){t(a),this.loader.load(a,s,d)}}}}const Ic=3e5;class Dc extends X{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((e,t)=>(e.indexOf(t.pathwayId)===-1&&e.push(t.pathwayId),e),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(n=>n!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:n}=t;n!==null&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((n==null?void 0:n.action)===Vn.SendAlternateToPenaltyBox&&n.flags===An.MoveAllAlternatesMatchingHost){const r=this.levels;let a=this._pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:d,pathwayId:p,type:m}=t.context;d&&r?s=this.getPathwayForGroupId(d,m,s):p&&(s=p)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!a&&r&&(a=this.pathways()),a&&a.length>1&&(this.updatePathwayPriority(a),n.resolved=this.pathwayId!==s),t.details===Z.BUFFER_APPEND_ERROR&&!t.fatal?n.resolved=!0:n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${r&&r.length} priorities: ${at(a)} penalized: ${at(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(a=>{r-n[a]>Ic&&delete n[a]});for(let a=0;a<e.length;a++){const s=e[a];if(s in n)continue;if(s===this.pathwayId)return;const d=this.hls.nextLoadLevel,p=this.hls.levels[d];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,Ka(t),this.hls.trigger(g.LEVELS_UPDATED,{levels:t});const m=this.hls.levels[d];p&&m&&this.levels&&(m.attrs["STABLE-VARIANT-ID"]!==p.attrs["STABLE-VARIANT-ID"]&&m.bitrate!==p.bitrate&&this.log(`Unstable Pathways change from bitrate ${p.bitrate} to ${m.bitrate}`),this.hls.nextLoadLevel=d);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let a=0;a<r.length;a++)if(t===W.AUDIO_TRACK&&r[a].hasAudioGroup(e)||t===W.SUBTITLE_TRACK&&r[a].hasSubtitleGroup(e))return r[a].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};e.forEach(a=>{const{ID:s,"BASE-ID":d,"URI-REPLACEMENT":p}=a;if(t.some(v=>v.pathwayId===s))return;const m=this.getLevelsForPathway(d).map(v=>{const C=new Vr(v.attrs);C["PATHWAY-ID"]=s;const F=C.AUDIO&&`${C.AUDIO}_clone_${s}`,te=C.SUBTITLES&&`${C.SUBTITLES}_clone_${s}`;F&&(n[C.AUDIO]=F,C.AUDIO=F),te&&(r[C.SUBTITLES]=te,C.SUBTITLES=te);const re=wu(v.uri,C["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",p),Xe=new lt({attrs:C,audioCodec:v.audioCodec,bitrate:v.bitrate,height:v.height,name:v.name,url:re,videoCodec:v.videoCodec,width:v.width});if(v.audioGroups)for(let Ye=1;Ye<v.audioGroups.length;Ye++)Xe.addGroupId("audio",`${v.audioGroups[Ye]}_clone_${s}`);if(v.subtitleGroups)for(let Ye=1;Ye<v.subtitleGroups.length;Ye++)Xe.addGroupId("text",`${v.subtitleGroups[Ye]}_clone_${s}`);return Xe});t.push(...m),Cu(this.audioTracks,n,p,s),Cu(this.subtitleTracks,r,p,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(v){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const v=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+v)}const a={responseType:"json",url:r.href},s=t.steeringManifestLoadPolicy.default,d=s.errorRetry||s.timeoutRetry||{},p={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:d.maxNumRetry||0,retryDelay:d.retryDelayMs||0,maxRetryDelay:d.maxRetryDelayMs||0},m={onSuccess:(v,C,F,te)=>{this.log(`Loaded steering manifest: "${r}"`);const re=v.data;if((re==null?void 0:re.VERSION)!==1){this.log(`Steering VERSION ${re.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=re.TTL;const{"RELOAD-URI":Xe,"PATHWAY-CLONES":Ye,"PATHWAY-PRIORITY":It}=re;if(Xe)try{this.uri=new self.URL(Xe,r).href}catch(Wt){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${Xe}`);return}this.scheduleRefresh(this.uri||F.url),Ye&&this.clonePathways(Ye);const Ut={steeringManifest:re,url:r.toString()};this.hls.trigger(g.STEERING_MANIFEST_LOADED,Ut),It&&this.updatePathwayPriority(It)},onError:(v,C,F,te)=>{if(this.log(`Error loading steering manifest: ${v.code} ${v.text} (${C.url})`),this.stopLoad(),v.code===410){this.enabled=!1,this.log(`Steering manifest ${C.url} no longer available`);return}let re=this.timeToLoad*1e3;if(v.code===429){const Xe=this.loader;if(typeof(Xe==null?void 0:Xe.getResponseHeader)=="function"){const Ye=Xe.getResponseHeader("Retry-After");Ye&&(re=parseFloat(Ye)*1e3)}this.log(`Steering manifest ${C.url} rate limited`);return}this.scheduleRefresh(this.uri||C.url,re)},onTimeout:(v,C,F)=>{this.log(`Timeout loading steering manifest (${C.url})`),this.scheduleRefresh(this.uri||C.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(a,p,m)}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 Cu(o,e,t,n){o&&Object.keys(e).forEach(r=>{const a=o.filter(s=>s.groupId===r).map(s=>{const d=y({},s);return d.details=void 0,d.attrs=new Vr(d.attrs),d.url=d.attrs.URI=wu(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),d.groupId=d.attrs["GROUP-ID"]=e[r],d.attrs["PATHWAY-ID"]=n,d});o.push(...a)})}function wu(o,e,t,n){const{HOST:r,PARAMS:a,[t]:s}=n;let d;e&&(d=s==null?void 0:s[e],d&&(o=d));const p=new self.URL(o);return r&&!d&&(p.host=r),a&&Object.keys(a).sort().forEach(m=>{m&&p.searchParams.set(m,a[m])}),p.href}class Jo extends X{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.mediaResolved=void 0,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=Jo.CDMCleanupPromise?[Jo.CDMCleanupPromise]:[],this.bannedKeyIds={},this.onMediaEncrypted=t=>{const{initDataType:n,initData:r}=t,a=`"${t.type}" event: init data type: "${n}"`;if(this.debug(a),r!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=ua(this.config));const d=s.map(Xi).filter(p=>!!p);this.keyFormatPromise=this.getKeyFormatPromise(d)}this.keyFormatPromise.then(s=>{const d=ma(s);if(n!=="sinf"||d!==$r.FAIRPLAY){this.log(`Ignoring "${t.type}" event with init data type: "${n}" for selected key-system ${d}`);return}let p;try{const te=bt(new Uint8Array(r)),re=Pr(JSON.parse(te).sinf),Xe=xe(re);if(!Xe)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");p=new Uint8Array(Xe.subarray(8,24))}catch(te){this.warn(`${a} Failed to parse sinf: ${te}`);return}const m=oe(p),{keyIdToKeySessionPromise:v,mediaKeySessions:C}=this;let F=v[m];for(let te=0;te<C.length;te++){const re=C[te],Xe=re.decryptdata;if(!Xe.keyId)continue;const Ye=oe(Xe.keyId);if(Br(p,Xe.keyId)||Xe.uri.replace(/-/g,"").indexOf(m)!==-1){if(F=v[Ye],!F)continue;if(Xe.pssh)break;delete v[Ye],Xe.pssh=new Uint8Array(r),Xe.keyId=p,F=v[m]=F.then(()=>this.generateRequestWithPreferredKeySession(re,n,r,"encrypted-event-key-match")),F.catch(It=>this.handleError(It));break}}F||this.handleError(new Error(`Key ID ${m} not encountered in playlist. Key-system sessions ${C.length}.`))}).catch(s=>this.handleError(s))}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(g.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(g.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(g.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(g.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(g.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(g.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t==null?void 0:t[e];if(r)return r.licenseUrl;if(e===$r.WIDEVINE&&n)return n}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(t===void 0)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,n=t==null?void 0:t[e];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,n=(s,d,p)=>!!s&&p.indexOf(s)===d,r=t.map(s=>s.audioCodec).filter(n),a=t.map(s=>s.videoCodec).filter(n);return r.length+a.length===0&&a.push("avc1.42e01e"),new Promise((s,d)=>{const p=m=>{const v=m.shift();this.getMediaKeysPromise(v,r,a).then(C=>s({keySystem:v,mediaKeys:C})).catch(C=>{m.length?p(m):C instanceof Is?d(C):d(new Is({type:he.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_NO_ACCESS,error:C,fatal:!0},C.message))})};p(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let r=`Configured requestMediaKeySystemAccess is not a function ${n}`;return fi===null&&self.location.protocol==="http:"&&(r=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(r))}return n(e,t)}getMediaKeysPromise(e,t,n){var r;const a=ri(e,t,n,this.config.drmSystemOptions||{});let s=this.keySystemAccessPromises[e],d=(r=s)==null?void 0:r.keySystemAccess;if(!d){this.log(`Requesting encrypted media "${e}" key-system access with config: ${at(a)}`),d=this.requestMediaKeySystemAccess(e,a);const p=s=this.keySystemAccessPromises[e]={keySystemAccess:d};return d.catch(m=>{this.log(`Failed to obtain access to key-system "${e}": ${m}`)}),d.then(m=>{this.log(`Access for key-system "${m.keySystem}" obtained`);const v=this.fetchServerCertificate(e);this.log(`Create media-keys for "${e}"`);const C=p.mediaKeys=m.createMediaKeys().then(F=>(this.log(`Media-keys created for "${e}"`),p.hasMediaKeys=!0,v.then(te=>te?this.setMediaKeysServerCertificate(F,e,te):F)));return C.catch(F=>{this.error(`Failed to create media-keys for "${e}"}: ${F}`)}),C})}return d.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${oe(e.keyId||[])} keyUri: ${e.uri}`);const r=n.createSession(),a={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:r,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),r=zl(t),a="cenc";this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,a,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}updateKeySession(e,t){const n=e.mediaKeysSession;return this.log(`Updating key-session "${n.sessionId}" for keyId ${oe(e.decryptdata.keyId||[])}
|
|
|
} (data length: ${t.byteLength})`),n.update(t)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map(e=>({keySystem:e,hasMediaKeys:this.keySystemAccessPromises[e].hasMediaKeys})).filter(({hasMediaKeys:e})=>!!e).map(({keySystem:e})=>Xi(e)).filter(e=>!!e)}getKeySystemAccess(e){return this.getKeySystemSelectionPromise(e).then(({keySystem:t,mediaKeys:n})=>this.attemptSetMediaKeys(t,n))}selectKeySystem(e){return new Promise((t,n)=>{this.getKeySystemSelectionPromise(e).then(({keySystem:r})=>{const a=Xi(r);a?t(a):n(new Error(`Unable to find format for key-system "${r}"`))}).catch(n)})}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){const t=ua(this.config),n=e.map(ma).filter(r=>!!r&&t.indexOf(r)!==-1);return this.selectKeySystem(n)}getKeyStatus(e){const{mediaKeySessions:t}=this;for(let n=0;n<t.length;n++){const r=Rc(e,t[n]);if(r)return r}}loadKey(e){const t=e.keyInfo.decryptdata,n=zl(t),r=this.bannedKeyIds[n];if(r||this.getKeyStatus(t)==="internal-error"){const d=Tu(r||"internal-error",t);return this.handleError(d,e.frag),Promise.reject(d)}const a=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${a}`);const s=this.keyIdToKeySessionPromise[n];if(!s){const d=this.getKeySystemForKeyPromise(t).then(({keySystem:p,mediaKeys:m})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${a}`),this.attemptSetMediaKeys(p,m).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:p,mediaKeys:m,decryptdata:t}))))).then(p=>{const m="cenc",v=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(p,m,v,"playlist-key")});return d.catch(p=>this.handleError(p,e.frag)),this.keyIdToKeySessionPromise[n]=d,d}return s.catch(d=>{if(d instanceof Is){const p=A({},d.data);this.getKeyStatus(t)==="internal-error"&&(p.decryptdata=t);const m=new Is(p,d.message);this.handleError(m,e.frag)}}),s}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e,t){if(this.hls)if(e instanceof Is){t&&(e.data.frag=t);const n=e.data.decryptdata;this.error(`${e.message}${n?` (${oe(n.keyId||[])})`:""}`),this.hls.trigger(g.ERROR,e.data)}else this.error(e.message),this.hls.trigger(g.ERROR,{type:he.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0})}getKeySystemForKeyPromise(e){const t=zl(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=ma(e.keyFormat),a=r?[r]:ua(this.config);return this.attemptKeySystemAccess(a)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=ua(this.config)),e.length===0)throw new Is({type:he.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${at({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){if(this.mediaResolved=void 0,this.mediaKeys===t)return Promise.resolve();const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const r=Promise.all(n).then(()=>this.media?this.media.setMediaKeys(t):new Promise((a,s)=>{this.mediaResolved=()=>{if(this.mediaResolved=void 0,!this.media)return s(new Error("Attempted to set mediaKeys without media element attached"));this.mediaKeys=t,this.media.setMediaKeys(t).then(a).catch(s)}}));return this.mediaKeys=t,this.setMediaKeysQueue.push(r),r.then(()=>{this.log(`Media-keys set for "${e}"`),n.push(r),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(a=>n.indexOf(a)===-1)})}generateRequestWithPreferredKeySession(e,t,n,r){var a;const s=(a=this.config.drmSystems)==null||(a=a[e.keySystem])==null?void 0:a.generateRequest;if(s)try{const re=s.call(this.hls,t,n,e);if(!re)throw new Error("Invalid response from configured generateRequest filter");t=re.initDataType,n=re.initData?re.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(re){if(this.warn(re.message),this.hls&&this.hls.config.debug)throw re}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const d=zl(e.decryptdata),p=e.decryptdata.uri;this.log(`Generating key-session request for "${r}" keyId: ${d} URI: ${p} (init data type: ${t} length: ${n.byteLength})`);const m=new xo,v=e._onmessage=re=>{const Xe=e.mediaKeysSession;if(!Xe){m.emit("error",new Error("invalid state"));return}const{messageType:Ye,message:It}=re;this.log(`"${Ye}" message event for session "${Xe.sessionId}" message size: ${It.byteLength}`),Ye==="license-request"||Ye==="license-renewal"?this.renewLicense(e,It).catch(Ut=>{m.eventNames().length?m.emit("error",Ut):this.handleError(Ut)}):Ye==="license-release"?e.keySystem===$r.FAIRPLAY&&this.updateKeySession(e,Wr("acknowledged")).then(()=>this.removeSession(e)).catch(Ut=>this.handleError(Ut)):this.warn(`unhandled media key message type "${Ye}"`)},C=(re,Xe)=>{Xe.keyStatus=re;let Ye;re.startsWith("usable")?m.emit("resolved"):re==="internal-error"||re==="output-restricted"||re==="output-downscaled"?Ye=Tu(re,Xe.decryptdata):re==="expired"?Ye=new Error(`key expired (keyId: ${d})`):re==="released"?Ye=new Error("key released"):re==="status-pending"||this.warn(`unhandled key status change "${re}" (keyId: ${d})`),Ye&&(m.eventNames().length?m.emit("error",Ye):this.handleError(Ye))},F=e._onkeystatuseschange=re=>{if(!e.mediaKeysSession){m.emit("error",new Error("invalid state"));return}const Ye=this.getKeyStatuses(e);if(!Object.keys(Ye).some(gn=>Ye[gn]!=="status-pending"))return;if(Ye[d]==="expired"){this.log(`Expired key ${at(Ye)} in key-session "${e.mediaKeysSession.sessionId}"`),this.renewKeySession(e);return}let Ut=Ye[d];if(Ut)C(Ut,e);else{var Wt;e.keyStatusTimeouts||(e.keyStatusTimeouts={}),(Wt=e.keyStatusTimeouts)[d]||(Wt[d]=self.setTimeout(()=>{if(!e.mediaKeysSession||!this.mediaKeys)return;const wn=this.getKeyStatus(e.decryptdata);if(wn&&wn!=="status-pending")return this.log(`No status for keyId ${d} in key-session "${e.mediaKeysSession.sessionId}". Using session key-status ${wn} from other session.`),C(wn,e);this.log(`key status for ${d} in key-session "${e.mediaKeysSession.sessionId}" timed out after 1000ms`),Ut="internal-error",C(Ut,e)},1e3)),this.log(`No status for keyId ${d} (${at(Ye)}).`)}};ja(e.mediaKeysSession,"message",v),ja(e.mediaKeysSession,"keystatuseschange",F);const te=new Promise((re,Xe)=>{m.on("error",Xe),m.on("resolved",re)});return e.mediaKeysSession.generateRequest(t,n).then(()=>{this.log(`Request generated for key-session "${e.mediaKeysSession.sessionId}" keyId: ${d} URI: ${p}`)}).catch(re=>{throw new Is({type:he.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_NO_SESSION,error:re,decryptdata:e.decryptdata,fatal:!1},`Error generating key-session request: ${re}`)}).then(()=>te).catch(re=>(m.removeAllListeners(),this.removeSession(e).then(()=>{throw re}))).then(()=>(m.removeAllListeners(),e))}getKeyStatuses(e){const t={};return e.mediaKeysSession.keyStatuses.forEach((n,r)=>{if(typeof r=="string"&&typeof n=="object"){const d=r;r=n,n=d}const a="buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r);if(e.keySystem===$r.PLAYREADY&&a.length===16){const d=oe(a);t[d]=n,br(a)}const s=oe(a);n==="internal-error"&&(this.bannedKeyIds[s]=n),this.log(`key status change "${n}" for keyStatuses keyId: ${s} key-session "${e.mediaKeysSession.sessionId}"`),t[s]=n}),t}fetchServerCertificate(e){const t=this.config,n=t.loader,r=new n(t),a=this.getServerCertificateUrl(e);return a?(this.log(`Fetching server certificate for "${e}"`),new Promise((s,d)=>{const p={responseType:"arraybuffer",url:a},m=t.certLoadPolicy.default,v={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},C={onSuccess:(F,te,re,Xe)=>{s(F.data)},onError:(F,te,re,Xe)=>{d(new Is({type:he.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:re,response:A({url:p.url,data:void 0},F)},`"${e}" certificate request failed (${a}). Status: ${F.code} (${F.text})`))},onTimeout:(F,te,re)=>{d(new Is({type:he.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:re,response:{url:p.url,data:void 0}},`"${e}" certificate request timed out (${a})`))},onAbort:(F,te,re)=>{d(new Error("aborted"))}};r.load(p,v,C)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((r,a)=>{e.setServerCertificate(n).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${n.byteLength}) on "${t}"`),r(e)}).catch(s=>{a(new Is({type:he.KEY_SYSTEM_ERROR,details:Z.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 Is({type:he.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:e.decryptdata,error:r,fatal:!1},r.message)}))}unpackPlayReadyKeyMessage(e,t){const n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const r=new DOMParser().parseFromString(n,"application/xml"),a=r.querySelectorAll("HttpHeader");if(a.length>0){let v;for(let C=0,F=a.length;C<F;C++){var s,d;v=a[C];const te=(s=v.querySelector("name"))==null?void 0:s.textContent,re=(d=v.querySelector("value"))==null?void 0:d.textContent;te&&re&&e.setRequestHeader(te,re)}}const p=r.querySelector("Challenge"),m=p==null?void 0:p.textContent;if(!m)throw new Error("Cannot find <Challenge> in key message");return Wr(atob(m))}setupLicenseXHR(e,t,n,r){const a=this.config.licenseXhrSetup;return a?Promise.resolve().then(()=>{if(!n.decryptdata)throw new Error("Key removed");return a.call(this.hls,e,t,n,r)}).catch(s=>{if(!n.decryptdata)throw s;return e.open("POST",t,!0),a.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,a)=>{const s=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${s}`);const d=new XMLHttpRequest;d.responseType="arraybuffer",d.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return a(new Error("invalid state"));if(d.readyState===4)if(d.status===200){this._requestLicenseFailureCount=0;let p=d.response;this.log(`License received ${p instanceof ArrayBuffer?p.byteLength:p}`);const m=this.config.licenseResponseCallback;if(m)try{p=m.call(this.hls,d,s,e)}catch(v){this.error(v)}r(p)}else{const p=n.errorRetry,m=p?p.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>m||d.status>=400&&d.status<500)a(new Is({type:he.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:e.decryptdata,fatal:!0,networkDetails:d,response:{url:s,data:void 0,code:d.status,text:d.statusText}},`License Request XHR failed (${s}). Status: ${d.status} (${d.statusText})`));else{const v=m-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${v} attempts left`),this.requestLicense(e,t).then(r,a)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=d,this.setupLicenseXHR(d,s,e,t).then(({xhr:p,licenseChallenge:m})=>{e.keySystem==$r.PLAYREADY&&(m=this.unpackPlayReadyKeyMessage(p,m)),p.send(m)}).catch(a)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,ja(n,"encrypted",this.onMediaEncrypted),ja(n,"waitingforkey",this.onWaitingForKey);const r=this.mediaResolved;r?r():this.mediaKeys=n.mediaKeys}onMediaDetached(){const e=this.media;e&&(Qa(e,"encrypted",this.onMediaEncrypted),Qa(e,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var e;this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},this.bannedKeyIds={};const t=this.mediaResolved;if(t&&t(),!this.mediaKeys&&!this.mediaKeySessions.length)return;const n=this.media,r=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,Sa.clearKeyUriToKeyIdMap();const a=r.length;Jo.CDMCleanupPromise=Promise.all(r.map(s=>this.removeSession(s)).concat((n==null||(e=n.setMediaKeys(null))==null?void 0:e.catch(s=>{this.log(`Could not clear media keys: ${s}`),this.hls&&this.hls.trigger(g.ERROR,{type:he.OTHER_ERROR,details:Z.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${s}`)})}))||Promise.resolve())).catch(s=>{this.log(`Could not close sessions and clear media keys: ${s}`),this.hls&&this.hls.trigger(g.ERROR,{type:he.OTHER_ERROR,details:Z.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${s}`)})}).then(()=>{a&&this.log("finished closing key sessions and clearing media keys")})}onManifestLoading(){this._clear()}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const n=t.reduce((r,a)=>(r.indexOf(a.keyFormat)===-1&&r.push(a.keyFormat),r),[]);this.log(`Selecting key-system from session-keys ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n,decryptdata:r}=e;if(t){this.log(`Remove licenses and keys and close session "${t.sessionId}" keyId: ${oe((r==null?void 0:r.keyId)||[])}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const a=this.mediaKeySessions.indexOf(e);a>-1&&this.mediaKeySessions.splice(a,1);const{keyStatusTimeouts:s}=e;s&&Object.keys(s).forEach(m=>self.clearTimeout(s[m]));const{drmSystemOptions:d}=this.config;return(Oi(d)?new Promise((m,v)=>{self.setTimeout(()=>v(new Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(m).catch(v)}):Promise.resolve()).catch(m=>{this.log(`Could not remove session: ${m}`),this.hls&&this.hls.trigger(g.ERROR,{type:he.OTHER_ERROR,details:Z.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${m}`)})}).then(()=>t.close()).catch(m=>{this.log(`Could not close session: ${m}`),this.hls&&this.hls.trigger(g.ERROR,{type:he.OTHER_ERROR,details:Z.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${m}`)})})}return Promise.resolve()}}Jo.CDMCleanupPromise=void 0;function zl(o){if(!o)throw new Error("Could not read keyId of undefined decryptdata");if(o.keyId===null)throw new Error("keyId is null");return oe(o.keyId)}function Rc(o,e){if(o.keyId&&e.mediaKeysSession.keyStatuses.has(o.keyId))return e.mediaKeysSession.keyStatuses.get(o.keyId);if(o.matches(e.decryptdata))return e.keyStatus}class Is extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}function Tu(o,e){const t=o==="output-restricted",n=t?Z.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:Z.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Is({type:he.KEY_SYSTEM_ERROR,details:n,fatal:!1,decryptdata:e},t?"HDCP level output restricted":`key status changed to "${o}"`)}class Oc{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(g.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(g.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(g.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const r=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=r,r&&typeof r.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){const r=performance.now();if(t){if(this.lastTime){const a=r-this.lastTime,s=n-this.lastDroppedFrames,d=t-this.lastDecodedFrames,p=1e3*s/a,m=this.hls;if(m.trigger(g.FPS_DROP,{currentDropped:s,currentDecoded:d,totalDroppedFrames:n}),p>0&&s>m.config.fpsDroppedMonitoringThreshold*d){let v=m.currentLevel;m.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+v),v>0&&(m.autoLevelCapping===-1||m.autoLevelCapping>=v)&&(v=v-1,m.trigger(g.FPS_DROP_LEVEL_CAPPING,{level:v,droppedLevel:m.currentLevel}),m.autoLevelCapping=v,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}function Au(o,e){let t;try{t=new Event("addtrack")}catch(n){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=o,e.dispatchEvent(t)}function Iu(o,e){const t=o.mode;if(t==="disabled"&&(o.mode="hidden"),o.cues&&!o.cues.getCueById(e.id))try{if(o.addCue(e),!o.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){me.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,o.addCue(r)}catch(r){me.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(o.mode=t)}function qo(o,e){const t=o.mode;if(t==="disabled"&&(o.mode="hidden"),o.cues)for(let n=o.cues.length;n--;)e&&o.cues[n].removeEventListener("enter",e),o.removeCue(o.cues[n]);t==="disabled"&&(o.mode=t)}function nu(o,e,t,n){const r=o.mode;if(r==="disabled"&&(o.mode="hidden"),o.cues&&o.cues.length>0){const a=Pc(o.cues,e,t);for(let s=0;s<a.length;s++)(!n||n(a[s]))&&o.removeCue(a[s])}r==="disabled"&&(o.mode=r)}function Lc(o,e){if(e<=o[0].startTime)return 0;const t=o.length-1;if(e>o[t].endTime)return-1;let n=0,r=t,a;for(;n<=r;)if(a=Math.floor((r+n)/2),e<o[a].startTime)r=a-1;else if(e>o[a].startTime&&n<t)n=a+1;else return a;return o[n].startTime-e<e-o[r].startTime?n:r}function Pc(o,e,t){const n=[],r=Lc(o,e);if(r>-1)for(let a=r,s=o.length;a<s;a++){const d=o[a];if(d.startTime>=e&&d.endTime<=t)n.push(d);else if(d.startTime>t)return n}return n}function Zl(o){const e=[];for(let t=0;t<o.length;t++){const n=o[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(o[t])}return e}class Mc extends wa{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const n=Zl(this.media.textTracks);for(let a=0;a<n.length;a++)if(n[a].mode==="hidden")t=n[a];else if(n[a].mode==="showing"){t=n[a];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(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.LEVEL_LOADING,this.onLevelLoading,this),e.on(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.LEVEL_LOADING,this.onLevelLoading,this),e.off(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(g.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){const n=this.media;if(!n)return;const r=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,r)return;Zl(n.textTracks).forEach(s=>{qo(s)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:n,groupId:r,details:a}=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 d=s.details;s.details=t.details,this.log(`Subtitle track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${a.startSN}-${a.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,d)}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 a=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(v=>!n||n.indexOf(v.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(v=>v.default)&&(this.selectDefaultTrack=!1),s.forEach((v,C)=>{v.id=C});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const d=this.hls.config.subtitlePreference;if(!a&&d){this.selectDefaultTrack=!1;const v=sn(d,s);if(v>-1)a=s[v];else{const C=sn(d,this.tracks);a=this.tracks[C]}}let p=this.findTrackId(a);p===-1&&a&&(p=this.findTrackId(null));const m={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(g.SUBTITLE_TRACKS_UPDATED,m),p!==-1&&this.trackId===-1&&this.setSubtitleTrack(p)}}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let r=0;r<t.length;r++){const a=t[r];if(!(n&&!a.default||!n&&!e)&&(!e||vn(a,e)))return r}if(e){for(let r=0;r<t.length;r++){const a=t[r];if(xs(e.attrs,a.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const a=t[r];if(xs(e.attrs,a.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(fo(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===W.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(e.id===-1)return this.setSubtitleTrack(-1),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&vn(e,n))return n;const r=sn(e,this.tracksInGroup);if(r>-1){const a=this.tracksInGroup[r];return this.setSubtitleTrack(r),a}else{if(n)return null;{const a=sn(e,t);if(a>-1)return t[a]}}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,a=this.getUrlWithDirectives(e.url,t),s=e.details,d=s==null?void 0:s.age;this.log(`Loading subtitle ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${d&&s.live?" age "+d.toFixed(1)+(s.type?" "+s.type||0:""):""} ${a}`),this.hls.trigger(g.SUBTITLE_TRACK_LOADING,{url:a,id:n,groupId:r,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=Zl(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(a=>fo(n,a))[0],r||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach(a=>{a.mode!=="disabled"&&a!==r&&(a.mode="disabled")}),r){const a=this.subtitleDisplay?"showing":"hidden";r.mode!==a&&(r.mode=a)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!i(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r){this.hls.trigger(g.SUBTITLE_TRACK_SWITCH,{id:e});return}const a=!!r.details&&!r.details.live;if(e===this.trackId&&r===n&&a)return;this.log(`Switching to subtitle-track ${e}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));const{id:s,groupId:d="",name:p,type:m,url:v}=r;this.hls.trigger(g.SUBTITLE_TRACK_SWITCH,{id:s,groupId:d,name:p,type:m,url:v});const C=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(C)}}function kc(){try{return crypto.randomUUID()}catch(o){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 a=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r=="x"?a:a&3|8).toString(16)})}}}function xl(o){let e=5381,t=o.length;for(;t;)e=e*33^o.charCodeAt(--t);return(e>>>0).toString()}const el=.025;let Ul=function(o){return o[o.Point=0]="Point",o[o.Range=1]="Range",o}({});function Nc(o,e,t){return`${o.identifier}-${t+1}-${xl(e)}`}class Bc{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,(e=this.assetListLoader)==null||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){var t;if(e>0&&e>=this.assetList.length)return!0;const n=this.playoutLimit;return e<=0||isNaN(n)?!1:n===0?!0:(((t=this.assetList[e])==null?void 0:t.startOffset)||0)>n}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return ru(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime,n=ru(t,e);return t-n<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=i(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return ru(e,t)}return e}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<el))}set appendInPlace(e){if(this.appendInPlaceStarted){this.resetOnResume=!e;return}this.appendInPlaceDisabled=!e}get timelineStart(){return this._timelineStart!==null?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return this._duration!==null?t=this._duration:this.dateRange.duration?t=this.dateRange.duration:t=this.dateRange.plannedDuration||0,!isNaN(e)&&e<t&&(t=e),t}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return this.dateRange.attr["X-TIMELINE-OCCUPIES"]==="RANGE"?Ul.Range:Ul.Point}get supplementsPrimary(){return this.dateRange.attr["X-TIMELINE-STYLE"]==="PRIMARY"}get contentMayVary(){return this.dateRange.attr["X-CONTENT-MAY-VARY"]!=="NO"}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||this.assetListResponse!==null}toString(){return Fc(this)}}function ru(o,e){return o-e.start<e.duration/2&&!(Math.abs(o-(e.start+e.duration))<el)?e.start:e.start+e.duration}function Du(o,e,t){const n=new self.URL(o,t);return n.protocol!=="data:"&&n.searchParams.set("_HLS_primary_id",e),n}function iu(o,e){for(;(t=o.assetList[++e])!=null&&t.error;)var t;return e}function Fc(o){return`["${o.identifier}" ${o.cue.pre?"<pre>":o.cue.post?"<post>":""}${o.timelineStart.toFixed(2)}-${o.resumeTime.toFixed(2)}]`}function tl(o){const e=o.timelineStart,t=o.duration||0;return`["${o.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class $c{constructor(e,t,n,r){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{this.reachedPlayout(this.currentTime)&&this.hls&&this.hls.trigger(g.PLAYOUT_LIMIT_REACHED,{})};const a=this.hls=new e(t);this.interstitial=n,this.assetItem=r;const s=()=>{this.hasDetails=!0};a.once(g.LEVEL_LOADED,s),a.once(g.AUDIO_TRACK_LOADED,s),a.once(g.SUBTITLE_TRACK_LOADED,s),a.on(g.MEDIA_ATTACHING,(d,{media:p})=>{this.removeMediaListeners(),this.mediaAttached=p,this.interstitial.playoutLimit&&(p.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&a.on(g.BUFFER_APPENDED,()=>{const v=this.bufferedEnd;this.reachedPlayout(v)&&(this._bufferedEosTime=v,a.trigger(g.BUFFERED_TO_END,void 0))}))})}get appendInPlace(){return this.interstitial.appendInPlace}loadSource(){const e=this.hls;if(e)if(e.url)e.levels.length&&!e.started&&e.startLoad(-1,!0);else{let t=this.assetItem.uri;try{t=Du(t,e.config.primarySessionId||"").href}catch(n){}e.loadSource(t)}}bufferedInPlaceToEnd(e){var t;if(!this.appendInPlace)return!1;if((t=this.hls)!=null&&t.bufferedToEnd)return!0;if(!e)return!1;const n=Math.min(this._bufferedEosTime||1/0,this.duration),r=this.timelineOffset,a=fr.bufferInfo(e,r,0);return this.getAssetTime(a.end)>=n-.02}reachedPlayout(e){const n=this.interstitial.playoutLimit;return this.startOffset+e>=n}get destroyed(){var e;return!((e=this.hls)!=null&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return((e=this.hls)==null?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=fr.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;if(!e)return 0;const t=this.interstitial.playoutLimit;if(t){const n=t-this.startOffset;if(n>0&&n<e)return n}return e}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return((e=this.hls)==null?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const n=e-t;if(Math.abs(n)>1/9e4&&this.hls){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,n=this.duration;return Math.min(Math.max(0,e-t),n)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var e;(e=this.hls)!=null&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){var t;this.loadSource(),(t=this.hls)==null||t.attachMedia(e)}detachMedia(){var e;this.removeMediaListeners(),this.mediaAttached=null,(e=this.hls)==null||e.detachMedia()}resumeBuffering(){var e;(e=this.hls)==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.hls)==null||e.pauseBuffering()}transferMedia(){var e;return this.bufferSnapShot(),((e=this.hls)==null?void 0:e.transferMedia())||null}resetDetails(){const e=this.hls;if(e&&this.hasDetails){e.stopLoad();const t=n=>delete n.details;e.levels.forEach(t),e.allAudioTracks.forEach(t),e.allSubtitleTracks.forEach(t),this.hasDetails=!1}}on(e,t,n){var r;(r=this.hls)==null||r.on(e,t)}once(e,t,n){var r;(r=this.hls)==null||r.once(e,t)}off(e,t,n){var r;(r=this.hls)==null||r.off(e,t)}toString(){var e;return`HlsAssetPlayer: ${tl(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const Ru=.033;class zc extends X{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(e=>e.reset()),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce((n,r)=>e<=r.startOffset&&t>r.startOffset?(delete r.error,n+1):n,0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);const r=this.items;if(r)for(r[n]||(t===void 0&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&(a=r[n])!=null&&a.event;){var a;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let r=0;r<n.length;r++){let a=n[r];if(t&&t!=="primary"&&(a=a[t]),e===a.start||e>a.start&&e<a.end)return r}return-1}findJumpRestrictedIndex(e,t){const n=this.items;if(n)for(let r=e;r<=t&&n[r];r++){const a=n[r].event;if(a!=null&&a.restrictions.jump&&!a.appendInPlace)return r}return-1}findEventIndex(e){const t=this.items;if(t)for(let r=t.length;r--;){var n;if(((n=t[r].event)==null?void 0:n.identifier)===e)return r}return-1}findAssetIndex(e,t){const n=e.assetList,r=n.length;if(r>1)for(let a=0;a<r;a++){const s=n[a];if(!s.error){const d=s.timelineStart;if(t===d||t>d&&(t<d+(s.duration||0)||a===r-1))return a}}return 0}get assetIdAtEnd(){var e;const t=(e=this.items)==null||(e=e[this.length-1])==null?void 0:e.event;if(t){const n=t.assetList,r=n[n.length-1];if(r)return r.identifier}return null}parseInterstitialDateRanges(e,t){const n=e.main.details,{dateRanges:r}=n,a=this.events,s=this.parseDateRanges(r,{url:n.url},t),d=Object.keys(r),p=a?a.filter(m=>!d.includes(m.identifier)):[];s.length&&s.sort((m,v)=>{const C=m.cue.pre,F=m.cue.post,te=v.cue.pre,re=v.cue.post;if(C&&!te)return-1;if(te&&!C||F&&!re)return 1;if(re&&!F)return-1;if(!C&&!te&&!F&&!re){const Xe=m.startTime,Ye=v.startTime;if(Xe!==Ye)return Xe-Ye}return m.dateRange.tagOrder-v.dateRange.tagOrder}),this.events=s,p.forEach(m=>{this.removeEvent(m)}),this.updateSchedule(e,p)}updateSchedule(e,t=[],n=!1){const r=this.events||[];if(r.length||t.length||this.length<2){const a=this.items,s=this.parseSchedule(r,e);(n||t.length||(a==null?void 0:a.length)!==s.length||s.some((p,m)=>Math.abs(p.playout.start-a[m].playout.start)>.005||Math.abs(p.playout.end-a[m].playout.end)>.005))&&(this.items=s,this.onScheduleUpdate(t,a))}}parseDateRanges(e,t,n){const r=[],a=Object.keys(e);for(let s=0;s<a.length;s++){const d=a[s],p=e[d];if(p.isInterstitial){let m=this.eventMap[d];m?m.setDateRange(p):(m=new Bc(p,t),this.eventMap[d]=m,n===!1&&(m.appendInPlace=n)),r.push(m)}}return r}parseSchedule(e,t){const n=[],r=t.main.details,a=r.live?1/0:r.edge;let s=0;if(e=e.filter(p=>!p.error&&!(p.cue.once&&p.hasPlayed)),e.length){this.resolveOffsets(e,t);let p=0,m=0;if(e.forEach((v,C)=>{const F=v.cue.pre,te=v.cue.post,re=e[C-1]||null,Xe=v.appendInPlace,Ye=te?a:v.startOffset,It=v.duration,Ut=v.timelineOccupancy===Ul.Range?It:0,Wt=v.resumptionOffset,gn=(re==null?void 0:re.startTime)===Ye,wn=Ye+v.cumulativeDuration;let or=Xe?wn+It:Ye+Wt;if(F||!te&&Ye<=0){const Wn=m;m+=Ut,v.timelineStart=wn;const Hn=s;s+=It,n.push({event:v,start:wn,end:or,playout:{start:Hn,end:s},integrated:{start:Wn,end:m}})}else if(Ye<=a){if(!gn){const Ln=Ye-p;if(Ln>Ru){const mr=p,Hr=m;m+=Ln;const ai=s;s+=Ln;const pi={previousEvent:e[C-1]||null,nextEvent:v,start:mr,end:mr+Ln,playout:{start:ai,end:s},integrated:{start:Hr,end:m}};n.push(pi)}else Ln>0&&re&&(re.cumulativeDuration+=Ln,n[n.length-1].end=Ye)}te&&(or=wn),v.timelineStart=wn;const Wn=m;m+=Ut;const Hn=s;s+=It,n.push({event:v,start:wn,end:or,playout:{start:Hn,end:s},integrated:{start:Wn,end:m}})}else return;const Dn=v.resumeTime;te||Dn>a?p=a:p=Dn}),p<a){var d;const v=p,C=m,F=a-p;m+=F;const te=s;s+=F,n.push({previousEvent:((d=n[n.length-1])==null?void 0:d.event)||null,nextEvent:null,start:p,end:v+F,playout:{start:te,end:s},integrated:{start:C,end:m}})}this.setDurations(a,s,m)}else n.push({previousEvent:null,nextEvent:null,start:0,end:a,playout:{start:0,end:a},integrated:{start:0,end:a}}),this.setDurations(a,a,a);return n}setDurations(e,t,n){this.durations={primary:e,playout:t,integrated:n}}resolveOffsets(e,t){const n=t.main.details,r=n.live?1/0:n.edge;let a=0,s=-1;e.forEach((d,p)=>{const m=d.cue.pre,v=d.cue.post,C=m?0:v?r:d.startTime;this.updateAssetDurations(d),s===C?d.cumulativeDuration=a:(a=0,s=C),!v&&d.snapOptions.in&&(d.resumeAnchor=Yn(null,n.fragments,d.startOffset+d.resumptionOffset,0,0)||void 0),d.appendInPlace&&!d.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(d,t)||(d.appendInPlace=!1)),!d.appendInPlace&&p+1<e.length&&e[p+1].startTime-e[p].resumeTime<Ru&&(e[p+1].appendInPlace=!1,e[p+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${d}`));const te=i(d.resumeOffset)?d.resumeOffset:d.duration;a+=te})}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,r=e.startTime+e.resumptionOffset;return Math.abs(n-r)>el?(this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${r}`),!1):!Object.keys(t).some(s=>{const d=t[s].details,p=d.edge;if(n>=p)return this.log(`"${e.identifier}" resumption ${n} past ${s} playlist end ${p}`),!1;const m=Yn(null,d.fragments,n);if(!m)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${s} playlist (${d.fragStart}-${d.fragmentEnd})`),!0;const v=s==="audio"?.175:0;return Math.abs(m.start-n)<el+v||Math.abs(m.end-n)<el+v?!1:(this.log(`"${e.identifier}" resumption ${n} not aligned with ${s} fragment bounds (${m.start}-${m.end} sn: ${m.sn} cc: ${m.cc})`),!0)})}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,r=!1,a=!1;for(let s=0;s<e.assetList.length;s++){const d=e.assetList[s],p=t+n;d.startOffset=n,d.timelineStart=p,r||(r=d.duration===null),a||(a=!!d.error);const m=d.error?0:d.duration||0;n+=m}r&&!a?e.duration=Math.max(n,e.duration):e.duration=n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function Ks(o){return`[${o.event?'"'+o.event.identifier+'"':"primary"}: ${o.start.toFixed(2)}-${o.end.toFixed(2)}]`}class Zc{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let r;try{r=Du(n,this.hls.sessionId,e.baseUrl)}catch(F){const te=this.assignAssetListError(e,Z.ASSET_LIST_LOAD_ERROR,F,n);this.hls.trigger(g.ERROR,te);return}t&&r.protocol!=="data:"&&r.searchParams.set("_HLS_start_offset",""+t);const a=this.hls.config,s=a.loader,d=new s(a),p={responseType:"json",url:r.href},m=a.interstitialAssetListLoadPolicy.default,v={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},C={onSuccess:(F,te,re,Xe)=>{const Ye=F.data,It=Ye==null?void 0:Ye.ASSETS;if(!Array.isArray(It)){const Ut=this.assignAssetListError(e,Z.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),re.url,te,Xe);this.hls.trigger(g.ERROR,Ut);return}e.assetListResponse=Ye,this.hls.trigger(g.ASSET_LIST_LOADED,{event:e,assetListResponse:Ye,networkDetails:Xe})},onError:(F,te,re,Xe)=>{const Ye=this.assignAssetListError(e,Z.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${F.code} ${F.text} (${te.url})`),te.url,Xe,re);this.hls.trigger(g.ERROR,Ye)},onTimeout:(F,te,re)=>{const Xe=this.assignAssetListError(e,Z.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${te.url})`),te.url,F,re);this.hls.trigger(g.ERROR,Xe)}};return d.load(p,v,C),this.hls.trigger(g.ASSET_LIST_LOADING,{event:e}),d}assignAssetListError(e,t,n,r,a,s){return e.error=n,{type:he.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:s,stats:a}}}function Ou(o){var e;o==null||(e=o.play())==null||e.catch(()=>{})}function Kl(o,e){return`[${o}] Advancing timeline position to ${e}`}class Uc extends X{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled||!this.schedule)return;const r=n-this.timelinePos;if(Math.abs(r)<1/7056e5)return;const s=r<=-.01;this.timelinePos=n,this.bufferedPos=n;const d=this.playingItem;if(!d){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(n,n-r)&&this.updateSchedule(!0),this.checkBuffer(),s&&n<d.start||n>=d.end){var p;const te=this.findItemIndex(d);let re=this.schedule.findItemIndexAtTime(n);if(re===-1&&(re=te+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${n} (resolving from ${te} to ${re})`)),!this.isInterstitial(d)&&(p=this.media)!=null&&p.paused&&(this.shouldPlay=!1),!s&&re>te){const Xe=this.schedule.findJumpRestrictedIndex(te+1,re);if(Xe>te){this.setSchedulePosition(Xe);return}}this.setSchedulePosition(re);return}const m=this.playingAsset;if(!m){if(this.playingLastItem&&this.isInterstitial(d)){const te=d.event.assetList[0];te&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,te))}return}const v=m.timelineStart,C=m.duration||0;if(s&&n<v||n>=v+C){var F;(F=d.event)!=null&&F.appendInPlace&&(this.clearAssetPlayers(d.event,d),this.flushFrontBuffer(n)),this.setScheduleToAssetAtTime(n,m)}},this.onTimeupdate=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled)return;if(n>this.timelinePos)this.timelinePos=n,n>this.bufferedPos&&this.checkBuffer();else return;const r=this.playingItem;if(!r||this.playingLastItem)return;if(n>=r.end){this.timelinePos=r.end;const d=this.findItemIndex(r);this.setSchedulePosition(d+1)}const a=this.playingAsset;if(!a)return;const s=a.timelineStart+(a.duration||0);n>=s&&this.setScheduleToAssetAtTime(n,a)},this.onScheduleUpdate=(n,r)=>{const a=this.schedule;if(!a)return;const s=this.playingItem,d=a.events||[],p=a.items||[],m=a.durations,v=n.map(Xe=>Xe.identifier),C=!!(d.length||v.length);(C||r)&&this.log(`INTERSTITIALS_UPDATED (${d.length}): ${d}
|
|
|
Schedule: ${p.map(Xe=>Ks(Xe))} pos: ${this.timelinePos}`),v.length&&this.log(`Removed events ${v}`);let F=null,te=null;s&&(F=this.updateItem(s,this.timelinePos),this.itemsMatch(s,F)?this.playingItem=F:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const re=this.bufferingItem;if(re&&(te=this.updateItem(re,this.bufferedPos),this.itemsMatch(re,te)?this.bufferingItem=te:re.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(re.event,null))),n.forEach(Xe=>{Xe.assetList.forEach(Ye=>{this.clearAssetPlayer(Ye.identifier,null)})}),this.playerQueue.forEach(Xe=>{if(Xe.interstitial.appendInPlace){const Ye=Xe.assetItem.timelineStart,It=Xe.timelineOffset-Ye;if(It)try{Xe.timelineOffset=Ye}catch(Ut){Math.abs(It)>el&&this.warn(`${Ut} ("${Xe.assetId}" ${Xe.timelineOffset}->${Ye})`)}}}),C||r){if(this.hls.trigger(g.INTERSTITIALS_UPDATED,{events:d.slice(0),schedule:p.slice(0),durations:m,removedIds:v}),this.isInterstitial(s)&&v.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}s&&this.trimInPlace(F,s),re&&te!==F&&this.trimInPlace(te,re),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Zc(e),this.schedule=new zc(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e&&(e.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(g.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(g.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(g.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(g.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(g.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(g.BUFFER_APPENDED,this.onBufferAppended,this),e.on(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(g.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(g.MEDIA_ENDED,this.onMediaEnded,this),e.on(g.ERROR,this.onError,this),e.on(g.DESTROYING,this.onDestroying,this))}unregisterListeners(){const e=this.hls;e&&(e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(g.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(g.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(g.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(g.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(g.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(g.BUFFER_CODECS,this.onBufferCodecs,this),e.off(g.BUFFER_APPENDED,this.onBufferAppended,this),e.off(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(g.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(g.MEDIA_ENDED,this.onMediaEnded,this),e.off(g.ERROR,this.onError,this),e.off(g.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;(e=this.getBufferingPlayer())==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.getBufferingPlayer())==null||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.schedule=this.manager=null,this.hls=this.HlsPlayerClass=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){Qa(e,"play",this.onPlay),Qa(e,"pause",this.onPause),Qa(e,"seeking",this.onSeeking),Qa(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;ja(n,"seeking",this.onSeeking),ja(n,"timeupdate",this.onTimeupdate),ja(n,"play",this.onPlay),ja(n,"pause",this.onPause)}onMediaAttached(e,t){const n=this.effectivePlayingItem,r=this.detachedData;if(this.detachedData=null,n===null)this.checkStart();else if(!r){this.clearScheduleState();const a=this.findItemIndex(n);this.setSchedulePosition(a)}}clearScheduleState(){this.log("clear schedule state"),this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(this.media=null,!n&&(r&&this.removeMediaListeners(r),this.detachedData)){const a=this.getBufferingPlayer();a&&(this.log(`Removing schedule state for detachedData and ${a}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,a.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.hls)return null;if(this.manager)return this.manager;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=C=>C&&e.getAssetPlayer(C.identifier),r=(C,F,te,re,Xe)=>{if(C){let Ye=C[F].start;const It=C.event;if(It){if(F==="playout"||It.timelineOccupancy!==Ul.Point){const Ut=n(te);(Ut==null?void 0:Ut.interstitial)===It&&(Ye+=Ut.assetItem.startOffset+Ut[Xe])}}else{const Ut=re==="bufferedPos"?s():e[re];Ye+=Ut-C.start}return Ye}return 0},a=(C,F)=>{var te;if(C!==0&&F!=="primary"&&(te=e.schedule)!=null&&te.length){var re;const Xe=e.schedule.findItemIndexAtTime(C),Ye=(re=e.schedule.items)==null?void 0:re[Xe];if(Ye){const It=Ye[F].start-Ye.start;return C+It}}return C},s=()=>{const C=e.bufferedPos;return C===Number.MAX_VALUE?d("primary"):Math.max(C,0)},d=C=>{var F,te;return(F=e.primaryDetails)!=null&&F.live?e.primaryDetails.edge:((te=e.schedule)==null?void 0:te.durations[C])||0},p=(C,F)=>{var te,re;const Xe=e.effectivePlayingItem;if(Xe!=null&&(te=Xe.event)!=null&&te.restrictions.skip||!e.schedule)return;e.log(`seek to ${C} "${F}"`);const Ye=e.effectivePlayingItem,It=e.schedule.findItemIndexAtTime(C,F),Ut=(re=e.schedule.items)==null?void 0:re[It],Wt=e.getBufferingPlayer(),gn=Wt==null?void 0:Wt.interstitial,wn=gn==null?void 0:gn.appendInPlace,or=Ye&&e.itemsMatch(Ye,Ut);if(Ye&&(wn||or)){const Dn=n(e.playingAsset),Wn=(Dn==null?void 0:Dn.media)||e.primaryMedia;if(Wn){const Hn=F==="primary"?Wn.currentTime:r(Ye,F,e.playingAsset,"timelinePos","currentTime"),Ln=C-Hn,mr=(wn?Hn:Wn.currentTime)+Ln;if(mr>=0&&(!Dn||wn||mr<=Dn.duration)){Wn.currentTime=mr;return}}}if(Ut){let Dn=C;if(F!=="primary"){const Hn=Ut[F].start,Ln=C-Hn;Dn=Ut.start+Ln}const Wn=!e.isInterstitial(Ut);if((!e.isInterstitial(Ye)||Ye.event.appendInPlace)&&(Wn||Ut.event.appendInPlace)){const Hn=e.media||(wn?Wt==null?void 0:Wt.media:null);Hn&&(Hn.currentTime=Dn)}else if(Ye){const Hn=e.findItemIndex(Ye);if(It>Hn){const mr=e.schedule.findJumpRestrictedIndex(Hn+1,It);if(mr>Hn){e.setSchedulePosition(mr);return}}let Ln=0;if(Wn)e.timelinePos=Dn,e.checkBuffer();else{const mr=Ut.event.assetList,Hr=C-(Ut[F]||Ut).start;for(let ai=mr.length;ai--;){const pi=mr[ai];if(pi.duration&&Hr>=pi.startOffset&&Hr<pi.startOffset+pi.duration){Ln=ai;break}}}e.setSchedulePosition(It,Ln)}}},m=()=>{const C=e.effectivePlayingItem;if(e.isInterstitial(C))return C;const F=t();return e.isInterstitial(F)?F:null},v={get bufferedEnd(){const C=t(),F=e.bufferingItem;if(F&&F===C){var te;return r(F,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-F.playout.start||((te=e.bufferingAsset)==null?void 0:te.startOffset)||0}return 0},get currentTime(){const C=m(),F=e.effectivePlayingItem;return F&&F===C?r(F,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-F.playout.start:0},set currentTime(C){const F=m(),te=e.effectivePlayingItem;te&&te===F&&p(C+te.playout.start,"playout")},get duration(){const C=m();return C?C.playout.end-C.playout.start:0},get assetPlayers(){var C;const F=(C=m())==null?void 0:C.event.assetList;return F?F.map(te=>e.getAssetPlayer(te.identifier)):[]},get playingIndex(){var C;const F=(C=m())==null?void 0:C.event;return F&&e.effectivePlayingAsset?F.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return m()}};return this.manager={get events(){var C;return((C=e.schedule)==null||(C=C.events)==null?void 0:C.slice(0))||[]},get schedule(){var C;return((C=e.schedule)==null||(C=C.items)==null?void 0:C.slice(0))||[]},get interstitialPlayer(){return m()?v:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const C=t();return e.findItemIndex(C)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const C=e.effectivePlayingItem;return e.findItemIndex(C)},primary:{get bufferedEnd(){return s()},get currentTime(){const C=e.timelinePos;return C>0?C:0},set currentTime(C){p(C,"primary")},get duration(){return d("primary")},get seekableStart(){var C;return((C=e.primaryDetails)==null?void 0:C.fragmentStart)||0}},integrated:{get bufferedEnd(){return r(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return r(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(C){p(C,"integrated")},get duration(){return d("integrated")},get seekableStart(){var C;return a(((C=e.primaryDetails)==null?void 0:C.fragmentStart)||0,"integrated")}},skip:()=>{const C=e.effectivePlayingItem,F=C==null?void 0:C.event;if(F&&!F.restrictions.skip){const te=e.findItemIndex(C);if(F.appendInPlace){const re=C.playout.start+C.event.duration;p(re+.001,"playout")}else e.advanceAfterAssetEnded(F,te,1/0)}}}}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,n=(e=this.schedule)==null?void 0:e.items;return!this.playbackStarted||!t||!n?!1:this.findItemIndex(t)===n.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var e,t;if(this.mediaSelection===null)return;const n=this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&!n.event.appendInPlace)return;let r=this.media;!r&&(e=this.bufferingItem)!=null&&(e=e.event)!=null&&e.appendInPlace&&(r=this.primaryMedia);const a=(t=r)==null?void 0:t.currentTime;if(!(a===void 0||!i(a)))return a}get primaryMedia(){var e;return this.media||((e=this.detachedData)==null?void 0:e.media)||null}isInterstitial(e){return!!(e!=null&&e.event)}retreiveMediaSource(e,t){const n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){const n=e.interstitial.appendInPlace,r=e.media;if(n&&r===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&r){this.detachedData={media:r};return}const a=e.transferMedia();this.log(`transfer MediaSource from ${e} ${at(a)}`),this.detachedData=a}else t&&r&&(this.shouldPlay||(this.shouldPlay=!r.paused))}transferMediaTo(e,t){var n,r;if(e.media===t)return;let a=null;const s=this.hls,d=e!==s,p=d&&e.interstitial.appendInPlace,m=(n=this.detachedData)==null?void 0:n.mediaSource;let v;if(s.media)p&&(a=s.transferMedia(),this.detachedData=a),v="Primary";else if(m){const re=this.getBufferingPlayer();re?(a=re.transferMedia(),v=`${re}`):v="detached MediaSource"}else v="detached media";if(!a){if(m)a=this.detachedData,this.log(`using detachedData: MediaSource ${at(a)}`);else if(!this.detachedData||s.media===t){const re=this.playerQueue;re.length>1&&re.forEach(Xe=>{if(d&&Xe.interstitial.appendInPlace!==p){const Ye=Xe.interstitial;this.clearInterstitial(Xe.interstitial,null),Ye.appendInPlace=!1,Ye.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${Ye}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const C=a&&"mediaSource"in a&&((r=a.mediaSource)==null?void 0:r.readyState)!=="closed",F=C&&a?a:t;this.log(`${C?"transfering MediaSource":"attaching media"} to ${d?e:"Primary"} from ${v} (media.currentTime: ${t.currentTime})`);const te=this.schedule;if(F===a&&te){const re=d&&e.assetId===te.assetIdAtEnd;F.overrides={duration:te.duration,endOfStream:!d||re,cueRemoval:!d}}e.attachMedia(F)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e==null?void 0:e.events;if(!t||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const n=this.timelinePos,r=this.effectivePlayingItem;if(n===-1){const a=this.hls.startPosition;if(this.log(Kl("checkStart",a)),this.timelinePos=a,t.length&&t[0].cue.pre){const s=e.findEventIndex(t[0].identifier);this.setSchedulePosition(s)}else if(a>=0||!this.primaryLive){const s=this.timelinePos=a>0?a:0,d=e.findItemIndexAtTime(s);this.setSchedulePosition(d)}}else if(r&&!this.playingItem){const a=e.findItemIndex(r);this.setSchedulePosition(a)}}advanceAssetBuffering(e,t){const n=e.event,r=n.findAssetIndex(t),a=iu(n,r);if(!n.isAssetPastPlayoutLimit(a))this.bufferedToEvent(e,a);else if(this.schedule){var s;const d=(s=this.schedule.items)==null?void 0:s[this.findItemIndex(e)+1];d&&this.bufferedToItem(d)}}advanceAfterAssetEnded(e,t,n){const r=iu(e,n);if(e.isAssetPastPlayoutLimit(r)){if(this.schedule){const a=this.schedule.items;if(a){const s=t+1,d=a.length;if(s>=d){this.setSchedulePosition(-1);return}const p=e.resumeTime;this.timelinePos<p&&(this.log(Kl("advanceAfterAssetEnded",p)),this.timelinePos=p,e.appendInPlace&&this.advanceInPlace(p),this.checkBuffer(this.bufferedPos<p)),this.setSchedulePosition(s)}}}else{if(e.appendInPlace){const a=e.assetList[r];a&&this.advanceInPlace(a.timelineStart)}this.setSchedulePosition(t,r)}}setScheduleToAssetAtTime(e,t){const n=this.schedule;if(!n)return;const r=t.parentIdentifier,a=n.getEvent(r);if(a){const s=n.findEventIndex(r),d=n.findAssetIndex(a,e);this.advanceAfterAssetEnded(a,s,d-1)}}setSchedulePosition(e,t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(!r||this.playbackDisabled)return;const a=e>=0?r[e]:null;this.log(`setSchedulePosition ${e}, ${t} (${a&&Ks(a)}) pos: ${this.timelinePos}`);const s=this.waitingItem||this.playingItem,d=this.playingLastItem;if(this.isInterstitial(s)){const v=s.event,C=this.playingAsset,F=C==null?void 0:C.identifier,te=F?this.getAssetPlayer(F):null;if(te&&F&&(!this.eventItemsMatch(s,a)||t!==void 0&&F!==v.assetList[t].identifier)){var p;const re=v.findAssetIndex(C);if(this.log(`INTERSTITIAL_ASSET_ENDED ${re+1}/${v.assetList.length} ${tl(C)}`),this.endedAsset=C,this.playingAsset=null,this.hls.trigger(g.INTERSTITIAL_ASSET_ENDED,{asset:C,assetListIndex:re,event:v,schedule:r.slice(0),scheduleIndex:e,player:te}),s!==this.playingItem){this.itemsMatch(s,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(v,this.findItemIndex(this.playingItem),re);return}this.retreiveMediaSource(F,a),te.media&&!((p=this.detachedData)!=null&&p.mediaSource)&&te.detachMedia()}if(!this.eventItemsMatch(s,a)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${v} ${Ks(s)}`),v.hasPlayed=!0,this.hls.trigger(g.INTERSTITIAL_ENDED,{event:v,schedule:r.slice(0),scheduleIndex:e}),v.cue.once)){var m;this.updateSchedule();const re=(m=this.schedule)==null?void 0:m.items;if(a&&re){const Xe=this.findItemIndex(a);this.advanceSchedule(Xe,re,t,s,d)}return}}this.advanceSchedule(e,r,t,s,d)}advanceSchedule(e,t,n,r,a){const s=this.schedule;if(!s)return;const d=t[e]||null,p=this.primaryMedia,m=this.playerQueue;if(m.length&&m.forEach(v=>{const C=v.interstitial,F=s.findEventIndex(C.identifier);(F<e||F>e+1)&&this.clearInterstitial(C,d)}),this.isInterstitial(d)){this.timelinePos=Math.min(Math.max(this.timelinePos,d.start),d.end);const v=d.event;if(n===void 0){n=s.findAssetIndex(v,this.timelinePos);const re=iu(v,n-1);if(v.isAssetPastPlayoutLimit(re)||v.appendInPlace&&this.timelinePos===d.end){this.advanceAfterAssetEnded(v,e,n);return}n=re}const C=this.waitingItem;this.assetsBuffered(d,p)||this.setBufferingItem(d);let F=this.preloadAssets(v,n);if(this.eventItemsMatch(d,C||r)||(this.waitingItem=d,this.log(`INTERSTITIAL_STARTED ${Ks(d)} ${v.appendInPlace?"append in place":""}`),this.hls.trigger(g.INTERSTITIAL_STARTED,{event:v,schedule:t.slice(0),scheduleIndex:e})),!v.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${v}`);return}if(v.assetListLoader&&(v.assetListLoader.destroy(),v.assetListLoader=void 0),!p){this.log(`Waiting for attachMedia to start Interstitial ${v}`);return}this.waitingItem=this.endedItem=null,this.playingItem=d;const te=v.assetList[n];if(!te){this.advanceAfterAssetEnded(v,e,n||0);return}if(F||(F=this.getAssetPlayer(te.identifier)),F===null||F.destroyed){const re=v.assetList.length;this.warn(`asset ${n+1}/${re} player destroyed ${v}`),F=this.createAssetPlayer(v,te,n),F.loadSource()}if(!this.eventItemsMatch(d,this.bufferingItem)&&v.appendInPlace&&this.isAssetBuffered(te))return;this.startAssetPlayer(F,n,t,e,p),this.shouldPlay&&Ou(F.media)}else d?(this.resumePrimary(d,e,r),this.shouldPlay&&Ou(this.hls.media)):a&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(s.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var e;return(e=this.mediaSelection)==null?void 0:e.main.details}get primaryLive(){var e;return!!((e=this.primaryDetails)!=null&&e.live)}resumePrimary(e,t,n){var r,a;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${Ks(e)}`),!((r=this.detachedData)!=null&&r.mediaSource)){let d=this.timelinePos;(d<e.start||d>=e.end)&&(d=this.getPrimaryResumption(e,t),this.log(Kl("resumePrimary",d)),this.timelinePos=d),this.attachPrimary(d,e)}if(!n)return;const s=(a=this.schedule)==null?void 0:a.items;s&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${Ks(e)}`),this.hls.trigger(g.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const n=e.start;if(this.primaryLive){const r=this.primaryDetails;if(t===0)return this.hls.startPosition;if(r&&(n<r.fragmentStart||n>r.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);return t!=null&&t.hls?t.hls.bufferedToEnd:fr.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const r=this.primaryMedia;if(!r)return;const a=this.hls;a.media?this.checkBuffer():(this.transferMediaTo(a,r),n&&this.startLoadingPrimaryAt(e,n)),n||(this.log(Kl("attachPrimary",e)),this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;const r=this.hls;!r.loadingEnabled||!r.media||Math.abs((((n=r.mainForwardBufferInfo)==null?void 0:n.start)||r.media.currentTime)-e)>.5?r.startLoad(e,t):r.bufferingEnabled||r.resumeBuffering()}onManifestLoading(){var e;this.stopLoad(),(e=this.schedule)==null||e.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(g.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(g.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(t.level===-1||!this.schedule)return;const n=this.hls.levels[t.level];if(!n.details)return;const r=A(A({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=r,this.schedule.parseInterstitialDateRanges(r,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=A(A({},this.altSelection),{},{audio:n});return}const a=A(A({},r),{},{audio:n});this.mediaSelection=a}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=A(A({},this.altSelection),{},{subtitles:n});return}const a=A(A({},r),{},{subtitles:n});this.mediaSelection=a}onAudioTrackSwitching(e,t){const n=un(t);this.playerQueue.forEach(({hls:r})=>r&&(r.setAudioOption(t)||r.setAudioOption(n)))}onSubtitleTrackSwitch(e,t){const n=un(t);this.playerQueue.forEach(({hls:r})=>r&&(r.setSubtitleOption(t)||t.id!==-1&&r.setSubtitleOption(n)))}onBufferCodecs(e,t){const n=t.tracks;n&&(this.requiredTracks=n)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){const r=this.timelinePos;this.bufferedPos=r,this.checkBuffer()}}onBufferedToEnd(e){if(!this.schedule)return;const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let r=0;r<t.length;r++){const a=t[r];if(a.cue.post){var n;const s=this.schedule.findEventIndex(a.identifier),d=(n=this.schedule.items)==null?void 0:n[s];this.isInterstitial(d)&&this.eventItemsMatch(d,this.bufferingItem)&&this.bufferedToItem(d,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const n=this.findItemIndex(t);this.setSchedulePosition(n+1)}else this.shouldPlay=!1}updateItem(e,t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(e&&r){const a=this.findItemIndex(e,t);return r[a]||null}return null}trimInPlace(e,t){if(this.isInterstitial(e)&&e.event.appendInPlace&&t.end-e.end>.25){e.event.assetList.forEach((a,s)=>{e.event.isAssetPastPlayoutLimit(s)&&this.clearAssetPlayer(a.identifier,null)});const n=e.end+.25,r=fr.bufferInfo(this.primaryMedia,n,0);(r.end>n||(r.nextStart||0)>n)&&(this.log(`trim buffered interstitial ${Ks(e)} (was ${Ks(t)})`),this.attachPrimary(n,null,!0),this.flushFrontBuffer(n))}}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var n;return!!t&&(e===t||e.event.identifier===((n=t.event)==null?void 0:n.identifier))}findItemIndex(e,t){return e&&this.schedule?this.schedule.findItemIndex(e,t):-1}updateSchedule(e=!1){var t;const n=this.mediaSelection;n&&((t=this.schedule)==null||t.updateSchedule(n,[],e))}checkBuffer(e){var t;const n=(t=this.schedule)==null?void 0:t.items;if(!n)return;const r=fr.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=r.len<1),this.updateBufferedPos(r.end,n,e)}updateBufferedPos(e,t,n){const r=this.schedule,a=this.bufferingItem;if(this.bufferedPos>e||!r)return;if(t.length===1&&this.itemsMatch(t[0],a)){this.bufferedPos=e;return}const s=this.playingItem,d=this.findItemIndex(s);let p=r.findItemIndexAtTime(e);if(this.bufferedPos<e){var m;const v=this.findItemIndex(a),C=Math.min(v+1,t.length-1),F=t[C];if((p===-1&&a&&e>=a.end||(m=F.event)!=null&&m.appendInPlace&&e+.01>=F.start)&&(p=C),this.isInterstitial(a)){const te=a.event;if(C-d>1&&te.appendInPlace===!1||te.assetList.length===0&&te.assetListLoader)return}if(this.bufferedPos=e,p>v&&p>d)this.bufferedToItem(F);else{const te=this.primaryDetails;this.primaryLive&&te&&e>te.edge-te.targetduration&&F.start<te.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(F)&&this.preloadAssets(F.event,0)}}else n&&s&&!this.itemsMatch(s,a)&&(p===d?this.bufferedToItem(s):p===d+1&&this.bufferedToItem(t[p]))}assetsBuffered(e,t){return e.event.assetList.length===0?!1:!e.event.assetList.some(r=>{const a=this.getAssetPlayer(r.identifier);return!(a!=null&&a.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(!this.itemsMatch(e,t)&&n){const{items:r,events:a}=n;if(!r||!a)return t;const s=this.isInterstitial(e),d=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));const p=d?d.remaining:t?t.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${Ks(e)}`+(t?` (${p.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const m=n.findAssetIndex(e.event,this.bufferedPos);e.event.assetList.forEach((v,C)=>{const F=this.getAssetPlayer(v.identifier);F&&(C===m&&F.loadSource(),F.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(m=>m.pauseBuffering());this.hls.trigger(g.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:a.slice(0),schedule:r.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}else this.bufferingItem!==e&&(this.bufferingItem=e);return t}bufferedToItem(e,t=0){const n=this.setBufferingItem(e);if(!this.playbackDisabled){if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(n!==null){this.bufferingAsset=null;const r=this.detachedData;r?r.mediaSource?this.attachPrimary(e.start,e,!0):this.preloadPrimary(e):this.preloadPrimary(e)}}}preloadPrimary(e){const t=this.findItemIndex(e),n=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(n)}bufferedToEvent(e,t){const n=e.event,r=n.assetList.length===0&&!n.assetListLoader,a=n.cue.once;if(r||!a){const s=this.preloadAssets(n,t);if(s!=null&&s.interstitial.appendInPlace){const d=this.primaryMedia;d&&this.bufferAssetPlayer(s,d)}}}preloadAssets(e,t){const n=e.assetUrl,r=e.assetList.length,a=r===0&&!e.assetListLoader,s=e.cue.once;if(a){const p=e.timelineStart;if(e.appendInPlace){var d;const F=this.playingItem;!this.isInterstitial(F)&&(F==null||(d=F.nextEvent)==null?void 0:d.identifier)===e.identifier&&this.flushFrontBuffer(p+.25)}let m,v=0;if(!this.playingItem&&this.primaryLive&&(v=this.hls.startPosition,v===-1&&(v=this.hls.liveSyncPosition||0)),v&&!(e.cue.pre||e.cue.post)){const F=v-p;F>0&&(m=Math.round(F*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:r} ${e}${m?` live-start: ${v} start-offset: ${m}`:""}`),n)return this.createAsset(e,0,0,p,e.duration,n);const C=this.assetListLoader.loadAssetList(e,m);C&&(e.assetListLoader=C)}else if(!s&&r){for(let m=t;m<r;m++){const v=e.assetList[m],C=this.getAssetPlayerQueueIndex(v.identifier);(C===-1||this.playerQueue[C].destroyed)&&!v.error&&this.createAssetPlayer(e,v,m)}const p=e.assetList[t];if(p){const m=this.getAssetPlayer(p.identifier);return m&&m.loadSource(),m}}return null}flushFrontBuffer(e){const t=this.requiredTracks;if(!t)return;this.log(`Removing front buffer starting at ${e}`),Object.keys(t).forEach(r=>{this.hls.trigger(g.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:r})})}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let n=0;n<t.length;n++)if(e===t[n].assetId)return n;return-1}getAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}getBufferingPlayer(){const{playerQueue:e,primaryMedia:t}=this;if(t){for(let n=0;n<e.length;n++)if(e[n].media===t)return e[n]}return null}createAsset(e,t,n,r,a,s){const d={parentIdentifier:e.identifier,identifier:Nc(e,s,t),duration:a,startOffset:n,timelineStart:r,uri:s};return this.createAssetPlayer(e,d,t)}createAssetPlayer(e,t,n){const r=this.hls,a=r.userConfig;let s=a.videoPreference;const d=r.loadLevelObj||r.levels[r.currentLevel];(s||d)&&(s=y({},s),d.videoCodec&&(s.videoCodec=d.videoCodec),d.videoRange&&(s.allowedVideoRanges=[d.videoRange]));const p=r.audioTracks[r.audioTrack],m=r.subtitleTracks[r.subtitleTrack];let v=0;if(this.primaryLive||e.appendInPlace){const gn=this.timelinePos-t.timelineStart;if(gn>1){const wn=t.duration;wn&&gn<wn&&(v=gn)}}const C=t.identifier,F=A(A({},a),{},{maxMaxBufferLength:Math.min(180,r.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:C,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:v,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:p||a.audioPreference,subtitlePreference:m||a.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(F.timelineOffset=t.timelineStart));const te=F.cmcd;te!=null&&te.sessionId&&te.contentId&&(F.cmcd=y({},te,{contentId:xl(t.uri)})),this.getAssetPlayer(C)&&this.warn(`Duplicate date range identifier ${e} and asset ${C}`);const re=new $c(this.HlsPlayerClass,F,e,t);this.playerQueue.push(re),e.assetList[n]=t;let Xe=!0;const Ye=gn=>{if(gn.live){var wn;const Wn=new Error(`Interstitials MUST be VOD assets ${e}`),Hn={fatal:!0,type:he.OTHER_ERROR,details:Z.INTERSTITIAL_ASSET_ITEM_ERROR,error:Wn},Ln=((wn=this.schedule)==null?void 0:wn.findEventIndex(e.identifier))||-1;this.handleAssetItemError(Hn,e,Ln,n,Wn.message);return}const or=gn.edge-gn.fragmentStart,Dn=t.duration;(Xe||Dn===null||or>Dn)&&(Xe=!1,this.log(`Interstitial asset "${C}" duration change ${Dn} > ${or}`),t.duration=or,this.updateSchedule())};re.on(g.LEVEL_UPDATED,(gn,{details:wn})=>Ye(wn)),re.on(g.LEVEL_PTS_UPDATED,(gn,{details:wn})=>Ye(wn)),re.on(g.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const It=(gn,wn)=>{const or=this.getAssetPlayer(C);if(or&&wn.tracks){or.off(g.BUFFER_CODECS,It),or.tracks=wn.tracks;const Dn=this.primaryMedia;this.bufferingAsset===or.assetItem&&Dn&&!or.media&&this.bufferAssetPlayer(or,Dn)}};re.on(g.BUFFER_CODECS,It);const Ut=()=>{var gn;const wn=this.getAssetPlayer(C);if(this.log(`buffered to end of asset ${wn}`),!wn||!this.schedule)return;const or=this.schedule.findEventIndex(e.identifier),Dn=(gn=this.schedule.items)==null?void 0:gn[or];this.isInterstitial(Dn)&&this.advanceAssetBuffering(Dn,t)};re.on(g.BUFFERED_TO_END,Ut);const Wt=gn=>()=>{if(!this.getAssetPlayer(C)||!this.schedule)return;this.shouldPlay=!0;const or=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,or,gn)};return re.once(g.MEDIA_ENDED,Wt(n)),re.once(g.PLAYOUT_LIMIT_REACHED,Wt(1/0)),re.on(g.ERROR,(gn,wn)=>{if(!this.schedule)return;const or=this.getAssetPlayer(C);if(wn.details===Z.BUFFER_STALLED_ERROR){if(or!=null&&or.appendInPlace){this.handleInPlaceStall(e);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(wn,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${wn.error} ${e}`)}),re.on(g.DESTROYING,()=>{if(!this.getAssetPlayer(C)||!this.schedule)return;const wn=new Error(`Asset player destroyed unexpectedly ${C}`),or={fatal:!0,type:he.OTHER_ERROR,details:Z.INTERSTITIAL_ASSET_ITEM_ERROR,error:wn};this.handleAssetItemError(or,e,this.schedule.findEventIndex(e.identifier),n,wn.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${tl(t)}`),this.hls.trigger(g.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:re}),re}clearInterstitial(e,t){this.clearAssetPlayers(e,t),e.reset()}clearAssetPlayers(e,t){e.assetList.forEach(n=>{this.clearAssetPlayer(n.identifier,t)})}resetAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);if(t!==-1){this.log(`reset asset player "${e}" after error`);const n=this.playerQueue[t];this.transferMediaFromPlayer(n,null),n.resetDetails()}}clearAssetPlayer(e,t){const n=this.getAssetPlayerQueueIndex(e);if(n!==-1){const r=this.playerQueue[n];this.log(`clear ${r} toSegment: ${t&&Ks(t)}`),this.transferMediaFromPlayer(r,t),this.playerQueue.splice(n,1),r.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,n,r,a){const{interstitial:s,assetItem:d,assetId:p}=e,m=s.assetList.length,v=this.playingAsset;this.endedAsset=null,this.playingAsset=d,(!v||v.identifier!==p)&&(v&&(this.clearAssetPlayer(v.identifier,n[r]),delete v.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${m} ${tl(d)}`),this.hls.trigger(g.INTERSTITIAL_ASSET_STARTED,{asset:d,assetListIndex:t,event:s,schedule:n.slice(0),scheduleIndex:r,player:e})),this.bufferAssetPlayer(e,a)}bufferAssetPlayer(e,t){var n,r;if(!this.schedule)return;const{interstitial:a,assetItem:s}=e,d=this.schedule.findEventIndex(a.identifier),p=(n=this.schedule.items)==null?void 0:n[d];if(!p)return;e.loadSource(),this.setBufferingItem(p),this.bufferingAsset=s;const m=this.getBufferingPlayer();if(m===e)return;const v=a.appendInPlace;if(v&&(m==null?void 0:m.interstitial.appendInPlace)===!1)return;const C=(m==null?void 0:m.tracks)||((r=this.detachedData)==null?void 0:r.tracks)||this.requiredTracks;if(v&&s!==this.playingAsset){if(!e.tracks){this.log(`Waiting for track info before buffering ${e}`);return}if(C&&!ke(C,e.tracks)){const F=new Error(`Asset ${tl(s)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(C)}')`),te={fatal:!0,type:he.OTHER_ERROR,details:Z.INTERSTITIAL_ASSET_ITEM_ERROR,error:F},re=a.findAssetIndex(s);this.handleAssetItemError(te,a,d,re,F.message);return}}this.transferMediaTo(e,t)}handleInPlaceStall(e){const t=this.schedule,n=this.primaryMedia;if(!t||!n)return;const r=n.currentTime,a=t.findAssetIndex(e,r),s=e.assetList[a];if(s){const d=this.getAssetPlayer(s.identifier);if(d){const p=d.currentTime||r-s.timelineStart,m=d.duration-p;if(this.warn(`Stalled at ${p} of ${p+m} in ${d} ${e} (media.currentTime: ${r})`),p&&(m/n.playbackRate<.5||d.bufferedInPlaceToEnd(n))&&d.hls){const v=t.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,v,a)}}}}advanceInPlace(e){const t=this.primaryMedia;t&&t.currentTime<e&&(t.currentTime=e)}handleAssetItemError(e,t,n,r,a){if(e.details===Z.BUFFER_STALLED_ERROR)return;const s=t.assetList[r]||null;if(this.warn(`INTERSTITIAL_ASSET_ERROR ${s&&tl(s)} ${e.error}`),!this.schedule)return;const d=(s==null?void 0:s.identifier)||"",p=this.getAssetPlayerQueueIndex(d),m=this.playerQueue[p]||null,v=this.schedule.items,C=y({},e,{fatal:!1,errorAction:Tn(!0),asset:s,assetListIndex:r,event:t,schedule:v,scheduleIndex:n,player:m});if(this.hls.trigger(g.INTERSTITIAL_ASSET_ERROR,C),!e.fatal)return;const F=this.playingAsset,te=this.bufferingAsset,re=new Error(a);if(s&&(this.clearAssetPlayer(d,null),s.error=re),!t.assetList.some(Xe=>!Xe.error))t.error=re;else for(let Xe=r;Xe<t.assetList.length;Xe++)this.resetAssetPlayer(t.assetList[Xe].identifier);this.updateSchedule(!0),t.error?this.primaryFallback(t):F&&F.identifier===d?this.advanceAfterAssetEnded(t,n,r):te&&te.identifier===d&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,te)}primaryFallback(e){const t=e.timelineStart,n=this.effectivePlayingItem;let r=this.timelinePos;if(n){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${r} playing: ${Ks(n)} error: ${e.error}`),r===-1&&(r=this.hls.startPosition);const s=this.updateItem(n,r);this.itemsMatch(n,s)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t))}else if(r===-1){this.checkStart();return}if(!this.schedule)return;const a=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(a)}onAssetListLoaded(e,t){var n,r;const a=t.event,s=a.identifier,d=t.assetListResponse.ASSETS;if(!((n=this.schedule)!=null&&n.hasEvent(s)))return;const p=a.timelineStart,m=a.duration;let v=0;d.forEach((Xe,Ye)=>{const It=parseFloat(Xe.DURATION);this.createAsset(a,Ye,v,p+v,It,Xe.URI),v+=It}),a.duration=v,this.log(`Loaded asset-list with duration: ${v} (was: ${m}) ${a}`);const C=this.waitingItem,F=(C==null?void 0:C.event.identifier)===s;this.updateSchedule();const te=(r=this.bufferingItem)==null?void 0:r.event;if(F){var re;const Xe=this.schedule.findEventIndex(s),Ye=(re=this.schedule.items)==null?void 0:re[Xe];if(Ye){if(!this.playingItem&&this.timelinePos>Ye.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==Xe){a.error=new Error(`Interstitial ${d.length?"no longer within playback range":"asset-list is empty"} ${this.timelinePos} ${a}`),this.log(a.error.message),this.updateSchedule(!0),this.primaryFallback(a);return}this.setBufferingItem(Ye)}this.setSchedulePosition(Xe)}else if((te==null?void 0:te.identifier)===s){const Xe=a.assetList[0];if(Xe){const Ye=this.getAssetPlayer(Xe.identifier);if(te.appendInPlace){const It=this.primaryMedia;Ye&&It&&this.bufferAssetPlayer(Ye,It)}else Ye&&Ye.loadSource()}}}onError(e,t){if(this.schedule)switch(t.details){case Z.ASSET_LIST_PARSING_ERROR:case Z.ASSET_LIST_LOAD_ERROR:case Z.ASSET_LIST_LOAD_TIMEOUT:{const n=t.interstitial;n&&(this.updateSchedule(!0),this.primaryFallback(n));break}case Z.BUFFER_STALLED_ERROR:{const n=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&n.event.appendInPlace){this.handleInPlaceStall(n.event);return}this.log(`Primary player stall @${this.timelinePos} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0);break}}}}const Lu=500;class Kc extends oo{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",Y.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(g.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(g.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(g.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(g.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=cr.IDLE,this.setInterval(Lu),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,success:r}=t;if(this.fragContextChanged(n)||(ct(n)&&(this.fragPrevious=n),this.state=cr.IDLE),!r)return;const a=this.tracksBuffered[this.currentTrackId];if(!a)return;let s;const d=n.start;for(let m=0;m<a.length;m++)if(d>=a[m].start&&d<=a[m].end){s=a[m];break}const p=n.start+n.duration;s?s.end=p:(s={start:d,end:p},a.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:n,endOffset:r}=t;if(n===0&&r!==Number.POSITIVE_INFINITY){const a=r-1;if(a<=0)return;t.endOffsetSubtitles=Math.max(0,a),this.tracksBuffered.forEach(s=>{for(let d=0;d<s.length;){if(s[d].end<=a){s.shift();continue}else if(s[d].start<a)s[d].start=a;else break;d++}}),this.fragmentTracker.removeFragmentsInRange(n,a,Y.SUBTITLE)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===Y.SUBTITLE&&(t.details===Z.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==cr.STOPPED&&(this.state=cr.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Ja(this.levels,t)){this.levels=t.map(n=>new lt(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new lt(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Y.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,!((n=this.levels)!=null&&n.length)||this.currentTrackId===-1){this.clearInterval();return}const r=this.levels[this.currentTrackId];r!=null&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.state!==cr.STOPPED&&this.setInterval(Lu)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:a}=this,{details:s,id:d}=t;if(!a){this.warn(`Subtitle tracks were reset while loading level ${d}`);return}const p=a[d];if(d>=a.length||!p)return;this.log(`Subtitle track ${d} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let m=0;if(s.live||(n=p.details)!=null&&n.live){if(s.deltaUpdateFailed)return;const C=this.mainDetails;if(!C){this.startFragRequested=!1;return}const F=C.fragments[0];if(!p.details)s.hasProgramDateTime&&C.hasProgramDateTime?(so(s,C),m=s.fragmentStart):F&&(m=F.start,Gs(s,m));else{var v;m=this.alignPlaylists(s,p.details,(v=this.levelLastLoaded)==null?void 0:v.details),m===0&&F&&(m=F.start,Gs(s,m))}C&&!this.startFragRequested&&this.setStartPosition(C,m)}p.details=s,this.levelLastLoaded=p,d===r&&(this.hls.trigger(g.SUBTITLE_TRACK_UPDATED,{details:s,id:d,groupId:t.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===cr.IDLE&&(Yn(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),p.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e,r=t.decryptdata,a=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&r!=null&&r.key&&r.iv&&pr(r.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,vr(r.method)).catch(d=>{throw a.trigger(g.ERROR,{type:he.MEDIA_ERROR,details:Z.FRAG_DECRYPT_ERROR,fatal:!1,error:d,reason:d.message,frag:t}),d}).then(d=>{const p=performance.now();a.trigger(g.FRAG_DECRYPTED,{frag:t,payload:d,stats:{tstart:s,tdecrypt:p}})}).catch(d=>{this.warn(`${d.name}: ${d.message}`),this.state=cr.IDLE})}}doTick(){if(!this.media){this.state=cr.IDLE;return}if(this.state===cr.IDLE){const{currentTrackId:e,levels:t}=this,n=t==null?void 0:t[e];if(!n||!t.length||!n.details||this.waitForLive(n))return;const{config:r}=this,a=this.getLoadPosition(),s=fr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],a,r.maxBufferHole),{end:d,len:p}=s,m=n.details,v=this.hls.maxBufferLength+m.levelTargetDuration;if(p>v)return;const C=m.fragments,F=C.length,te=m.edge;let re=null;const Xe=this.fragPrevious;if(d<te){const Ut=r.maxFragLookUpTolerance,Wt=d>te-Ut?0:Ut;re=Yn(Xe,C,Math.max(C[0].start,d),Wt),!re&&Xe&&Xe.start<C[0].start&&(re=C[0])}else re=C[F-1];if(re=this.filterReplacedPrimary(re,n.details),!re)return;const Ye=re.sn-m.startSN,It=C[Ye-1];if(It&&It.cc===re.cc&&this.fragmentTracker.getState(It)===Xn.NOT_LOADED&&(re=It),this.fragmentTracker.getState(re)===Xn.NOT_LOADED){const Ut=this.mapToInitFragWhenRequired(re);Ut&&this.loadFragment(Ut,n,d)}}}loadFragment(e,t,n){ct(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new jc(this.tracksBuffered[this.currentTrackId]||[])}}class jc{constructor(e){this.buffered=void 0;const t=(n,r,a)=>{if(r=r>>>0,r>a-1)throw new DOMException(`Failed to execute '${n}' on 'TimeRanges': The index provided (${r}) is greater than the maximum bound (${a})`);return e[r][n]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}const Hc={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},Pu=o=>String.fromCharCode(Hc[o]||o),js=15,mo=100,Wc={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Vc={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Gc={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Yc={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Xc=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Qc{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;me.log(`${this.time} [${e}] ${n}`)}}}const Po=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class Mu{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 Jc{constructor(){this.uchar=" ",this.penState=new Mu}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 qc{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Mu,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<mo;t++)this.chars.push(new Jc);this.logger=e}equals(e){for(let t=0;t<mo;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<mo;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<mo;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>mo&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=mo)}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=Pu(e);if(this.pos>=mo){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<mo;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<mo;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 au{constructor(e){this.rows=[],this.currRow=js-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<js;t++)this.rows.push(new qc(e));this.logger=e}reset(){for(let e=0;e<js;e++)this.rows[e].clear();this.currRow=js-1}equals(e){let t=!0;for(let n=0;n<js;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<js;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<js;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 = "+at(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let d=0;d<js;d++)this.rows[d].clear();const a=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const d=s.rows[a].cueStartTime,p=this.logger.time;if(d!==null&&p!==null&&d<p)for(let m=0;m<this.nrRollUpRows;m++)this.rows[t-this.nrRollUpRows+m+1].copy(s.rows[a+m])}}this.currRow=t;const n=this.rows[this.currRow];if(e.indent!==null){const a=e.indent,s=Math.max(a-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 = "+at(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 a=0;a<js;a++){const s=this.rows[a].getTextString();s&&(r=a+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 ku{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 au(n),this.nonDisplayedMemory=new au(n),this.lastOutputScreen=new au(n),this.currRollUpRow=this.displayedMemory.rows[js-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[js-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: "+at(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 Nu{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=td(),this.logger=void 0;const r=this.logger=new Qc;this.channels=[null,new ku(e,t,r),new ku(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,a=t[n+1]&127;let s=!1,d=null;if(r===0&&a===0)continue;this.logger.log(3,()=>"["+Po([t[n],t[n+1]])+"] -> ("+Po([r,a])+")");const p=this.cmdHistory;if(r>=16&&r<=31){if(ed(r,a,p)){jl(null,null,p),this.logger.log(3,()=>"Repeated command ("+Po([r,a])+") is dropped");continue}jl(r,a,this.cmdHistory),s=this.parseCmd(r,a),s||(s=this.parseMidrow(r,a)),s||(s=this.parsePAC(r,a)),s||(s=this.parseBackgroundAttributes(r,a))}else jl(null,null,p);if(!s&&(d=this.parseChars(r,a),d)){const v=this.currentChannel;v&&v>0?this.channels[v].insertChars(d):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!d&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Po([r,a])+" orig: "+Po([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 a=e===20||e===21||e===23?1:2,s=this.channels[a];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=a,!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 ("+Po([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,a=(e===16||e===24)&&t>=64&&t<=95;if(!(r||a))return!1;const s=e<=23?1:2;t>=64&&t<=95?n=s===1?Wc[e]:Gc[e]:n=s===1?Vc[e]:Yc[e];const d=this.channels[s];return d?(d.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,a=null;if(e>=25?(n=2,a=e-8):(n=1,a=e),a>=17&&a<=19){let s;a===17?s=t+80:a===18?s=t+112:s=t+144,this.logger.log(2,()=>"Special char '"+Pu(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 = "+Po(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 a;const s={};e===16||e===24?(a=Math.floor((t-32)/2),s.background=Xc[a],t%2===1&&(s.background=s.background+"_semi")):t===45?s.background="transparent":(s.foreground="black",t===47&&(s.underline=!0));const d=e<=23?1:2;return this.channels[d].setBkgData(s),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}jl(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 jl(o,e,t){t.a=o,t.b=e}function ed(o,e,t){return t.a===o&&t.b===e}function td(){return{a:null,b:null}}var su=function(){if(Mr!=null&&Mr.VTTCue)return self.VTTCue;const o=["","lr","rl"],e=["start","middle","end","left","right"];function t(d,p){if(typeof p!="string"||!Array.isArray(d))return!1;const m=p.toLowerCase();return~d.indexOf(m)?m:!1}function n(d){return t(o,d)}function r(d){return t(e,d)}function a(d,...p){let m=1;for(;m<arguments.length;m++){const v=arguments[m];for(const C in v)d[C]=v[C]}return d}function s(d,p,m){const v=this,C={enumerable:!0};v.hasBeenReset=!1;let F="",te=!1,re=d,Xe=p,Ye=m,It=null,Ut="",Wt=!0,gn="auto",wn="start",or=50,Dn="middle",Wn=50,Hn="middle";Object.defineProperty(v,"id",a({},C,{get:function(){return F},set:function(Ln){F=""+Ln}})),Object.defineProperty(v,"pauseOnExit",a({},C,{get:function(){return te},set:function(Ln){te=!!Ln}})),Object.defineProperty(v,"startTime",a({},C,{get:function(){return re},set:function(Ln){if(typeof Ln!="number")throw new TypeError("Start time must be set to a number.");re=Ln,this.hasBeenReset=!0}})),Object.defineProperty(v,"endTime",a({},C,{get:function(){return Xe},set:function(Ln){if(typeof Ln!="number")throw new TypeError("End time must be set to a number.");Xe=Ln,this.hasBeenReset=!0}})),Object.defineProperty(v,"text",a({},C,{get:function(){return Ye},set:function(Ln){Ye=""+Ln,this.hasBeenReset=!0}})),Object.defineProperty(v,"region",a({},C,{get:function(){return It},set:function(Ln){It=Ln,this.hasBeenReset=!0}})),Object.defineProperty(v,"vertical",a({},C,{get:function(){return Ut},set:function(Ln){const mr=n(Ln);if(mr===!1)throw new SyntaxError("An invalid or illegal string was specified.");Ut=mr,this.hasBeenReset=!0}})),Object.defineProperty(v,"snapToLines",a({},C,{get:function(){return Wt},set:function(Ln){Wt=!!Ln,this.hasBeenReset=!0}})),Object.defineProperty(v,"line",a({},C,{get:function(){return gn},set:function(Ln){if(typeof Ln!="number"&&Ln!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");gn=Ln,this.hasBeenReset=!0}})),Object.defineProperty(v,"lineAlign",a({},C,{get:function(){return wn},set:function(Ln){const mr=r(Ln);if(!mr)throw new SyntaxError("An invalid or illegal string was specified.");wn=mr,this.hasBeenReset=!0}})),Object.defineProperty(v,"position",a({},C,{get:function(){return or},set:function(Ln){if(Ln<0||Ln>100)throw new Error("Position must be between 0 and 100.");or=Ln,this.hasBeenReset=!0}})),Object.defineProperty(v,"positionAlign",a({},C,{get:function(){return Dn},set:function(Ln){const mr=r(Ln);if(!mr)throw new SyntaxError("An invalid or illegal string was specified.");Dn=mr,this.hasBeenReset=!0}})),Object.defineProperty(v,"size",a({},C,{get:function(){return Wn},set:function(Ln){if(Ln<0||Ln>100)throw new Error("Size must be between 0 and 100.");Wn=Ln,this.hasBeenReset=!0}})),Object.defineProperty(v,"align",a({},C,{get:function(){return Hn},set:function(Ln){const mr=r(Ln);if(!mr)throw new SyntaxError("An invalid or illegal string was specified.");Hn=mr,this.hasBeenReset=!0}})),v.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class nd{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Bu(o){function e(n,r,a,s){return(n|0)*3600+(r|0)*60+(a|0)+parseFloat(s||0)}const t=o.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 rd{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 Fu(o,e,t,n){const r=n?o.split(n):[o];for(const a in r){if(typeof r[a]!="string")continue;const s=r[a].split(t);if(s.length!==2)continue;const d=s[0],p=s[1];e(d,p)}}const ou=new su(0,0,""),Hl=ou.align==="middle"?"middle":"center";function id(o,e,t){const n=o;function r(){const d=Bu(o);if(d===null)throw new Error("Malformed timestamp: "+n);return o=o.replace(/^[^\sa-zA-Z-]+/,""),d}function a(d,p){const m=new rd;Fu(d,function(F,te){let re;switch(F){case"region":for(let Xe=t.length-1;Xe>=0;Xe--)if(t[Xe].id===te){m.set(F,t[Xe].region);break}break;case"vertical":m.alt(F,te,["rl","lr"]);break;case"line":re=te.split(","),m.integer(F,re[0]),m.percent(F,re[0])&&m.set("snapToLines",!1),m.alt(F,re[0],["auto"]),re.length===2&&m.alt("lineAlign",re[1],["start",Hl,"end"]);break;case"position":re=te.split(","),m.percent(F,re[0]),re.length===2&&m.alt("positionAlign",re[1],["start",Hl,"end","line-left","line-right","auto"]);break;case"size":m.percent(F,te);break;case"align":m.alt(F,te,["start",Hl,"end","left","right"]);break}},/:/,/\s/),p.region=m.get("region",null),p.vertical=m.get("vertical","");let v=m.get("line","auto");v==="auto"&&ou.line===-1&&(v=-1),p.line=v,p.lineAlign=m.get("lineAlign","start"),p.snapToLines=m.get("snapToLines",!0),p.size=m.get("size",100),p.align=m.get("align",Hl);let C=m.get("position","auto");C==="auto"&&ou.position===50&&(C=p.align==="start"||p.align==="left"?0:p.align==="end"||p.align==="right"?100:50),p.position=C}function s(){o=o.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),o.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+n);o=o.slice(3),s(),e.endTime=r(),s(),a(o,e)}function $u(o){return o.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}class ad{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new nd,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 a=t.buffer,s=0;for(a=$u(a);s<a.length&&a[s]!=="\r"&&a[s]!==`
|
|
|
`;)++s;const d=a.slice(0,s);return a[s]==="\r"&&++s,a[s]===`
|
|
|
`&&++s,t.buffer=a.slice(s),d}function r(a){Fu(a,function(s,d){},/:/)}try{let a="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;a=n();const d=a.match(/^()?WEBVTT([ \t].*)?$/);if(!(d!=null&&d[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:a=n(),t.state){case"HEADER":/:/.test(a)?r(a):a||(t.state="ID");continue;case"NOTE":a||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){t.state="NOTE";break}if(!a)continue;if(t.cue=new su(0,0,""),t.state="CUE",a.indexOf("-->")===-1){t.cue.id=a;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{id(a,t.cue,t.regionList)}catch(d){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const d=a.indexOf("-->")!==-1;if(!a||d&&(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+=a}continue;case"BADCUE":a||(t.state="ID")}}}catch(a){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 sd=/\r\n|\n\r|\n|\r/g,lu=function(e,t,n=0){return e.slice(n,n+t.length)===t},od=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),a=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!i(t)||!i(n)||!i(r)||!i(a))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*a,t};function uu(o,e,t){return xl(o.toString())+xl(e.toString())+xl(t)}const ld=function(e,t,n){let r=e[t],a=e[r.prevCC];if(!a||!a.new&&r.new){e.ccOffset=e.presentationOffset=r.start,r.new=!1;return}for(;(s=a)!=null&&s.new;){var s;e.ccOffset+=r.start-a.start,r.new=!1,r=a,a=e[r.prevCC]}e.presentationOffset=n};function ud(o,e,t,n,r,a,s){const d=new ad,p=We(new Uint8Array(o)).trim().replace(sd,`
|
|
|
`).split(`
|
|
|
`),m=[],v=e?ca(e.baseTime,e.timescale):0;let C="00:00.000",F=0,te=0,re,Xe=!0;d.oncue=function(Ye){const It=t[n];let Ut=t.ccOffset;const Wt=(F-v)/9e4;if(It!=null&&It.new&&(te!==void 0?Ut=t.ccOffset=It.start:ld(t,n,Wt)),Wt){if(!e){re=new Error("Missing initPTS for VTT MPEGTS");return}Ut=Wt-t.presentationOffset}const gn=Ye.endTime-Ye.startTime,wn=sa((Ye.startTime+Ut-te)*9e4,r*9e4)/9e4;Ye.startTime=Math.max(wn,0),Ye.endTime=Math.max(wn+gn,0);const or=Ye.text.trim();Ye.text=decodeURIComponent(encodeURIComponent(or)),Ye.id||(Ye.id=uu(Ye.startTime,Ye.endTime,or)),Ye.endTime>0&&m.push(Ye)},d.onparsingerror=function(Ye){re=Ye},d.onflush=function(){if(re){s(re);return}a(m)},p.forEach(Ye=>{if(Xe)if(lu(Ye,"X-TIMESTAMP-MAP=")){Xe=!1,Ye.slice(16).split(",").forEach(It=>{lu(It,"LOCAL:")?C=It.slice(6):lu(It,"MPEGTS:")&&(F=parseInt(It.slice(7)))});try{te=od(C)/1e3}catch(It){re=It}return}else Ye===""&&(Xe=!1);d.parse(Ye+`
|
|
|
`)}),d.flush()}const cu="stpp.ttml.im1t",zu=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Zu=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,cd={left:"start",center:"center",right:"end",start:"start",end:"end"};function Uu(o,e,t,n){const r=le(new Uint8Array(o),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const a=r.map(d=>We(d)),s=vi(e.baseTime,1,e.timescale);try{a.forEach(d=>t(dd(d,s)))}catch(d){n(d)}}function dd(o,e){const r=new DOMParser().parseFromString(o,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const a={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(a).reduce((C,F)=>(C[F]=r.getAttribute(`ttp:${F}`)||a[F],C),{}),d=r.getAttribute("xml:space")!=="preserve",p=Ku(du(r,"styling","style")),m=Ku(du(r,"layout","region")),v=du(r,"body","[begin]");return[].map.call(v,C=>{const F=ju(C,d);if(!F||!C.hasAttribute("begin"))return null;const te=hu(C.getAttribute("begin"),s),re=hu(C.getAttribute("dur"),s);let Xe=hu(C.getAttribute("end"),s);if(te===null)throw Hu(C);if(Xe===null){if(re===null)throw Hu(C);Xe=te+re}const Ye=new su(te-e,Xe-e,F);Ye.id=uu(Ye.startTime,Ye.endTime,Ye.text);const It=m[C.getAttribute("region")],Ut=p[C.getAttribute("style")],Wt=fd(It,Ut,p),{textAlign:gn}=Wt;if(gn){const wn=cd[gn];wn&&(Ye.lineAlign=wn),Ye.align=gn}return y(Ye,Wt),Ye}).filter(C=>C!==null)}function du(o,e,t){const n=o.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function Ku(o){return o.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function ju(o,e){return[].slice.call(o.childNodes).reduce((t,n,r)=>{var a;return n.nodeName==="br"&&r?t+`
|
|
|
`:(a=n.childNodes)!=null&&a.length?ju(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function fd(o,e,t){const n="http://www.w3.org/ns/ttml#styling";let r=null;const a=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=o!=null&&o.hasAttribute("style")?o.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(r=t[s]),a.reduce((d,p)=>{const m=fu(e,n,p)||fu(o,n,p)||fu(r,n,p);return m&&(d[p]=m),d},{})}function fu(o,e,t){return o&&o.hasAttributeNS(e,t)?o.getAttributeNS(e,t):null}function Hu(o){return new Error(`Could not parse ttml timestamp ${o}`)}function hu(o,e){if(!o)return null;let t=Bu(o);return t===null&&(zu.test(o)?t=hd(o,e):Zu.test(o)&&(t=md(o,e))),t}function hd(o,e){const t=zu.exec(o),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 md(o,e){const t=Zu.exec(o),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 Wl{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class pd{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=Gu(),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(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(g.FRAG_LOADING,this.onFragLoading,this),e.on(g.FRAG_LOADED,this.onFragLoaded,this),e.on(g.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(g.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(g.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(g.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(g.FRAG_LOADING,this.onFragLoading,this),e.off(g.FRAG_LOADED,this.onFragLoaded,this),e.off(g.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(g.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(g.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(g.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new Wl(this,"textTrack1"),t=new Wl(this,"textTrack2"),n=new Wl(this,"textTrack3"),r=new Wl(this,"textTrack4");this.cea608Parser1=new Nu(1,e,t),this.cea608Parser2=new Nu(3,n,r)}addCues(e,t,n,r,a){let s=!1;for(let d=a.length;d--;){const p=a[d],m=gd(p[0],p[1],t,n);if(m>=0&&(p[0]=Math.min(p[0],t),p[1]=Math.max(p[1],n),s=!0,m/(n-t)>.5))return}if(s||a.push([t,n]),this.config.renderTextTracksNatively){const d=this.captionsTracks[e];this.Cues.newCue(d,t,n,r)}else{const d=this.Cues.newCue(null,t,n,r);this.hls.trigger(g.CUES_PARSED,{type:"captions",cues:d,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:a,trackId:s}){const{unparsedVttFrags:d}=this;n===Y.MAIN&&(this.initPTS[t.cc]={baseTime:r,timescale:a,trackId:s}),d.length&&(this.unparsedVttFrags=[],d.forEach(p=>{this.initPTS[p.frag.cc]?this.onFragLoaded(g.FRAG_LOADED,p):this.hls.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:p.frag,error:new Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const a=n.textTracks[r];if(Vu(a,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return a}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:a,languageCode:s}=t[e],d=this.getExistingTrack(a,s);if(d)n[e]=d,qo(n[e]),Au(n[e],r);else{const p=this.createTextTrack("captions",a,s);p&&(p[e]=!0,n[e]=p)}}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(g.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}createTextTrack(e,t,n){const r=this.media;if(r)return r.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){const n=!!t.transferMedia;if(this.media=null,n)return;const{captionsTracks:r}=this;Object.keys(r).forEach(a=>{qo(r[a]),delete r[a]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Gu(),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++)qo(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(a=>a.textCodec===cu);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(Ja(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,d=s?Zl(s.textTracks):null;if(this.tracks.forEach((p,m)=>{let v;if(d){let C=null;for(let F=0;F<d.length;F++)if(d[F]&&Vu(d[F],p)){C=d[F],d[F]=null;break}C&&(v=C)}if(v)qo(v);else{const C=Wu(p);v=this.createTextTrack(C,p.name,p.lang),v&&(v.mode="disabled")}v&&this.textTracks.push(v)}),d!=null&&d.length){const p=d.filter(m=>m!==null).map(m=>m.label);p.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${p.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(d=>({label:d.name,kind:d.type.toLowerCase(),default:d.default,subtitleTrack:d}));this.hls.trigger(g.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 a=`textTrack${r[1]}`,s=this.captionsProperties[a];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===Y.MAIN){var n,r;const{cea608Parser1:a,cea608Parser2:s,lastSn:d}=this,{cc:p,sn:m}=t.frag,v=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;a&&s&&(m!==d+1||m===d&&v!==this.lastPartIndex+1||p!==this.lastCc)&&(a.reset(),s.reset()),this.lastCc=p,this.lastSn=m,this.lastPartIndex=v}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===Y.SUBTITLE)if(r.byteLength){const a=n.decryptdata,s="stats"in t;if(a==null||!a.encrypted||s){const d=this.tracks[n.level],p=this.vttCCs;p[n.cc]||(p[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),d&&d.textCodec===cu?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;Uu(t,this.initPTS[e.cc],r=>{this._appendCues(r,e.level),n.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},r=>{n.logger.log(`Failed to parse IMSC1: ${r}`),n.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:r})})}_parseVTTs(e){var t;const{frag:n,payload:r}=e,{initPTS:a,unparsedVttFrags:s}=this,d=a.length-1;if(!a[n.cc]&&d===-1){s.push(e);return}const p=this.hls,m=(t=n.initSegment)!=null&&t.data?Pt(n.initSegment.data,new Uint8Array(r)).buffer:r;ud(m,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,v=>{this._appendCues(v,n.level),p.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},v=>{const C=v.message==="Missing initPTS for VTT MPEGTS";C?s.push(e):this._fallbackToIMSC1(n,r),p.logger.log(`Failed to parse VTT cue: ${v}`),!(C&&d>n.cc)&&p.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:v})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||Uu(t,this.initPTS[e.cc],()=>{n.textCodec=cu,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(a=>Iu(r,a))}else{const r=this.tracks[t];if(!r)return;const a=r.default?"default":"subtitles"+t;n.trigger(g.CUES_PARSED,{type:"subtitles",cues:e,track:a})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===Y.SUBTITLE&&this.onFragLoaded(g.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:r}=t;if(!(n.type===Y.MAIN&&this.closedCaptionsForLevel(n)==="NONE"))for(let a=0;a<r.length;a++){const s=r[a].bytes;if(s){this.cea608Parser1||this.initCea608Parsers();const d=this.extractCea608Data(s);this.cea608Parser1.addData(r[a].pts,d[0]),this.cea608Parser2.addData(r[a].pts,d[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:r,type:a}){const{media:s}=this;if(!(!s||s.currentTime<n)){if(!a||a==="video"){const{captionsTracks:d}=this;Object.keys(d).forEach(p=>nu(d[p],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:d}=this;Object.keys(d).forEach(p=>nu(d[p],t,r))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let r=2;for(let a=0;a<n;a++){const s=e[r++],d=127&e[r++],p=127&e[r++];if(d===0&&p===0)continue;if((4&s)!==0){const v=3&s;(v===0||v===1)&&(t[v].push(d),t[v].push(p))}}return t}}function Wu(o){return o.characteristics&&/transcribes-spoken-dialog/gi.test(o.characteristics)&&/describes-music-and-sound/gi.test(o.characteristics)?"captions":"subtitles"}function Vu(o,e){return!!o&&o.kind===Wu(e)&&fo(e,o)}function gd(o,e,t,n){return Math.min(e,n)-Math.max(o,t)}function Gu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const vd=/\s/,yd={newCue(o,e,t,n){const r=[];let a,s,d,p,m;const v=self.VTTCue||self.TextTrackCue;for(let F=0;F<n.rows.length;F++)if(a=n.rows[F],d=!0,p=0,m="",!a.isEmpty()){var C;for(let Xe=0;Xe<a.chars.length;Xe++)vd.test(a.chars[Xe].uchar)&&d?p++:(m+=a.chars[Xe].uchar,d=!1);a.cueStartTime=e,e===t&&(t+=1e-4),p>=16?p--:p++;const te=$u(m.trim()),re=uu(e,t,te);o!=null&&(C=o.cues)!=null&&C.getCueById(re)||(s=new v(e,t,te),s.id=re,s.line=F+1,s.align="left",s.position=10+Math.min(80,Math.floor(p*8/32)*10),r.push(s))}return o&&r.length&&(r.sort((F,te)=>F.line==="auto"||te.line==="auto"?0:F.line>8&&te.line>8?te.line-F.line:F.line-te.line),r.forEach(F=>Iu(o,F))),r}};function bd(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(o){}return!1}const xd=/(\d+)-(\d+)\/(\d+)/;class Yu{constructor(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||Cd,this.controller=new self.AbortController,this.stats=new D}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 a=Ed(e,this.controller.signal),s=e.responseType==="arraybuffer",d=s?"byteLength":"length",{maxTimeToFirstByteMs:p,maxLoadTimeMs:m}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,a),self.clearTimeout(this.requestTimeout),t.timeout=p&&i(p)?p:m,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},t.timeout),(oa(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(C=>{var F;this.response=this.loader=C;const te=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=m,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},m-(te-r.loading.start)),!C.ok){const{status:Xe,statusText:Ye}=C;throw new wd(Ye||"fetch, bad network response",Xe,C)}r.loading.first=te,r.total=_d(C.headers)||r.total;const re=(F=this.callbacks)==null?void 0:F.onProgress;return re&&i(t.highWaterMark)?this.loadProgressively(C,r,e,t.highWaterMark,re):s?C.arrayBuffer():e.responseType==="json"?C.json():C.text()}).then(C=>{var F,te;const re=this.response;if(!re)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const Xe=C[d];Xe&&(r.loaded=r.total=Xe);const Ye={url:re.url,data:C,code:re.status},It=(F=this.callbacks)==null?void 0:F.onProgress;It&&!i(t.highWaterMark)&&It(r,e,C,re),(te=this.callbacks)==null||te.onSuccess(Ye,r,e,re)}).catch(C=>{var F;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const te=C&&C.code||0,re=C?C.message:null;(F=this.callbacks)==null||F.onError({code:te,text:re},e,C?C.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,a){const s=new Zs,d=e.body.getReader(),p=()=>d.read().then(m=>{if(m.done)return s.dataLength&&a(t,n,s.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const v=m.value,C=v.length;return t.loaded+=C,C<r||s.dataLength?(s.push(v),s.dataLength>=r&&a(t,n,s.flush().buffer,e)):a(t,n,v.buffer,e),p()}).catch(()=>Promise.reject());return p()}}function Ed(o,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(y({},o.headers))};return o.rangeEnd&&t.headers.set("Range","bytes="+o.rangeStart+"-"+String(o.rangeEnd-1)),t}function Sd(o){const e=xd.exec(o);if(e)return parseInt(e[2])-parseInt(e[1])+1}function _d(o){const e=o.get("Content-Range");if(e){const n=Sd(e);if(i(n))return n}const t=o.get("Content-Length");if(t)return parseInt(t)}function Cd(o,e){return new self.Request(o.url,e)}class wd extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const Td=/^age:\s*[\d.]+\s*$/im;class Xu{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 D,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 a=this.xhrSetup;a?Promise.resolve().then(()=>{if(!(this.loader!==n||this.stats.aborted))return a(n,t.url)}).catch(s=>{if(!(this.loader!==n||this.stats.aborted))return n.open("GET",t.url,!0),a(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(s=>{var d;(d=this.callbacks)==null||d.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:a,maxLoadTimeMs:s}=n.loadPolicy;if(r)for(const d in r)e.setRequestHeader(d,r[d]);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=a&&i(a)?a: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,a=this.config;if(!n.aborted&&r>=2&&(n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),a.timeout!==a.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),a.timeout=a.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),r===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const m=t.status,v=t.responseType==="text"?t.responseText:null;if(m>=200&&m<300){const re=v!=null?v:t.response;if(re!=null){var s,d;n.loading.end=Math.max(self.performance.now(),n.loading.first);const Xe=t.responseType==="arraybuffer"?re.byteLength:re.length;n.loaded=n.total=Xe,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first);const Ye=(s=this.callbacks)==null?void 0:s.onProgress;Ye&&Ye(n,e,re,t);const It={url:t.responseURL,data:re,code:m};(d=this.callbacks)==null||d.onSuccess(It,n,e,t);return}}const C=a.loadPolicy.errorRetry,F=n.retry,te={url:e.url,data:void 0,code:m};if(_r(C,F,!1,te))this.retry(C);else{var p;me.error(`${m} while loading ${e.url}`),(p=this.callbacks)==null||p.onError({code:m,text:t.statusText},e,t,n)}}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(_r(e,t,!0))this.retry(e);else{var n;me.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=er(e,n.retry),n.retry++,me.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&&Td.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}const Ad={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Id=A(A({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:Xu,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:ir,bufferController:is,capLevelController:Ss,errorController:pn,fpsController:Oc,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:fi,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:Ad},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},Dd()),{},{subtitleStreamController:Kc,subtitleTrackController:Mc,timelineController:pd,audioStreamController:Va,audioTrackController:_a,emeController:Jo,cmcdController:Ac,contentSteeringController:Dc,interstitialsController:Uc});function Dd(){return{cueHandler:yd,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 Rd(o,e,t){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const n=mu(o),r=["manifest","level","frag"],a=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(s=>{const d=`${s==="level"?"playlist":s}LoadPolicy`,p=e[d]===void 0,m=[];a.forEach(v=>{const C=`${s}Loading${v}`,F=e[C];if(F!==void 0&&p){m.push(C);const te=n[d].default;switch(e[d]={default:te},v){case"TimeOut":te.maxLoadTimeMs=F,te.maxTimeToFirstByteMs=F;break;case"MaxRetry":te.errorRetry.maxNumRetry=F,te.timeoutRetry.maxNumRetry=F;break;case"RetryDelay":te.errorRetry.retryDelayMs=F,te.timeoutRetry.retryDelayMs=F;break;case"MaxRetryTimeout":te.errorRetry.maxRetryDelayMs=F,te.timeoutRetry.maxRetryDelayMs=F;break}}}),m.length&&t.warn(`hls.js config: "${m.join('", "')}" setting(s) are deprecated, use "${d}": ${at(e[d])}`)}),A(A({},n),e)}function mu(o){return o&&typeof o=="object"?Array.isArray(o)?o.map(mu):Object.keys(o).reduce((e,t)=>(e[t]=mu(o[t]),e),{}):o}function Od(o,e){const t=o.loader;t!==Yu&&t!==Xu?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),o.progressive=!1):bd()&&(o.loader=Yu,o.progressive=!0,o.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const Vl=2,Ld=.1,Pd=.05,Md=100;class kd extends ni{constructor(e,t){super("gap-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var n;(n=this.media)!=null&&n.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var n;this.ended=((n=this.media)==null?void 0:n.currentTime)||1,this.hls.trigger(g.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(Md),this.mediaSource=t.mediaSource;const n=this.media=t.media;ja(n,"playing",this.onMediaPlaying),ja(n,"waiting",this.onMediaWaiting),ja(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(Qa(n,"playing",this.onMediaPlaying),Qa(n,"waiting",this.onMediaWaiting),Qa(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(!((e=this.media)!=null&&e.readyState)||!this.hasBuffered)return;const t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var n,r;const a=(n=this.hls)==null?void 0:n.config;if(!a)return;const s=this.media;if(!s)return;const{seeking:d}=s,p=this.seeking&&!d,m=!this.seeking&&d,v=s.paused&&!d||s.ended||s.playbackRate===0;if(this.seeking=d,e!==t){t&&(this.ended=0),this.moved=!0,d||(this.nudgeRetry=0,a.nudgeOnVideoHole&&!v&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(m||p){p&&this.stallResolved(e);return}if(v){this.nudgeRetry=0,this.stallResolved(e),!this.ended&&s.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(g.MEDIA_ENDED,{stalled:!1}));return}if(!fr.getBuffered(s).length){this.nudgeRetry=0;return}const C=fr.bufferInfo(s,e,0),F=C.nextStart||0,te=this.fragmentTracker;if(d&&te&&this.hls){const or=Qu(this.hls.inFlightFragments,e),Dn=C.len>Vl,Wn=!F||or||F-e>Vl&&!te.getPartialFragment(e);if(Dn||Wn)return;this.moved=!1}const re=(r=this.hls)==null?void 0:r.latestLevelDetails;if(!this.moved&&this.stalled!==null&&te){if(!(C.len>0)&&!F)return;const Dn=Math.max(F,C.start||0)-e,Hn=!!(re!=null&&re.live)?re.targetduration*2:Vl,Ln=Gl(e,te);if(Dn>0&&(Dn<=Hn||Ln)){s.paused||this._trySkipBufferHole(Ln);return}}const Xe=a.detectStallWithCurrentTimeMs,Ye=self.performance.now(),It=this.waiting;let Ut=this.stalled;if(Ut===null)if(It>0&&Ye-It<Xe)Ut=this.stalled=It;else{this.stalled=Ye;return}const Wt=Ye-Ut;if(!d&&(Wt>=Xe||It)&&this.hls){var gn;if(((gn=this.mediaSource)==null?void 0:gn.readyState)==="ended"&&!(re!=null&&re.live)&&Math.abs(e-((re==null?void 0:re.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(g.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(C),!this.media||!this.hls)return}const wn=fr.bufferInfo(s,e,a.maxBufferHole);this._tryFixBufferStall(wn,Wt,e)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const n=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(n)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(g.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;const r=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(n=this.buffered.audio)!=null&&n.length&&r&&r.length>1&&e>r.end(0)){const a=fr.bufferedInfo(fr.timeRangesToArray(this.buffered.audio),e,0);if(a.len>1&&t>=a.start){const s=fr.timeRangesToArray(r),d=fr.bufferedInfo(s,t,0).bufferedIndex;if(d>-1&&d<s.length-1){const p=fr.bufferedInfo(s,e,0).bufferedIndex,m=s[d].end,v=s[d+1].start;if((p===-1||p>d)&&v-m<1&&e-m<2){const C=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${m} -> ${v} buffered index: ${p}`);this.warn(C.message),this.media.currentTime+=1e-6;let F=Gl(e,this.fragmentTracker);F&&"fragment"in F?F=F.fragment:F||(F=void 0);const te=fr.bufferInfo(this.media,e,0);this.hls.trigger(g.ERROR,{type:he.MEDIA_ERROR,details:Z.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:C,reason:C.message,frag:F,buffer:te.len,bufferInfo:te})}}}}}_tryFixBufferStall(e,t,n){var r,a;const{fragmentTracker:s,media:d}=this,p=(r=this.hls)==null?void 0:r.config;if(!d||!s||!p)return;const m=(a=this.hls)==null?void 0:a.latestLevelDetails,v=Gl(n,s);if((v||m!=null&&m.live&&n<m.fragmentStart)&&(this._trySkipBufferHole(v)||!this.media))return;const C=e.buffered,F=this.adjacentTraversal(e,n);(C&&C.length>1&&e.len>p.maxBufferHole||e.nextStart&&(e.nextStart-n<p.maxBufferHole||F))&&(t>p.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}adjacentTraversal(e,t){const n=this.fragmentTracker,r=e.nextStart;if(n&&r){const a=n.getFragAtPos(t,Y.MAIN),s=n.getFragAtPos(r,Y.MAIN);if(a&&s)return s.sn-a.sn<2}return!1}_reportStall(e){const{hls:t,media:n,stallReported:r,stalled:a}=this;if(!r&&a!==null&&n&&t){this.stallReported=!0;const s=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${at(e)})`);this.warn(s.message),t.trigger(g.ERROR,{type:he.MEDIA_ERROR,details:Z.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len,bufferInfo:e,stalled:{start:a}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:r}=this,a=(t=this.hls)==null?void 0:t.config;if(!r||!n||!a)return 0;const s=r.currentTime,d=fr.bufferInfo(r,s,0),p=s<d.start?d.start:d.nextStart;if(p&&this.hls){const v=d.len<=a.maxBufferHole,C=d.len>0&&d.len<1&&r.readyState<3,F=p-s;if(F>0&&(v||C)){if(F>a.maxBufferHole){let re=!1;if(s===0){const Xe=n.getAppendedFrag(0,Y.MAIN);Xe&&p<Xe.end&&(re=!0)}if(!re&&e){var m;if(!((m=this.hls.loadLevelObj)!=null&&m.details)||Qu(this.hls.inFlightFragments,p))return 0;let Ye=!1,It=e.end;for(;It<p;){const Ut=Gl(It,n);if(Ut)It+=Ut.duration;else{Ye=!0;break}}if(Ye)return 0}}const te=Math.max(p+Pd,s+Ld);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${te}`),this.moved=!0,r.currentTime=te,!(e!=null&&e.gap)){const re=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${te}`),Xe={type:he.MEDIA_ERROR,details:Z.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:re,reason:re.message,buffer:d.len,bufferInfo:d};e&&("fragment"in e?Xe.part=e:Xe.frag=e),this.hls.trigger(g.ERROR,Xe)}return te}}return 0}_tryNudgeBuffer(e){const{hls:t,media:n,nudgeRetry:r}=this,a=t==null?void 0:t.config;if(!n||!a)return 0;const s=n.currentTime;if(this.nudgeRetry++,r<a.nudgeMaxRetry){const d=s+(r+1)*a.nudgeOffset,p=new Error(`Nudging 'currentTime' from ${s} to ${d}`);this.warn(p.message),n.currentTime=d,t.trigger(g.ERROR,{type:he.MEDIA_ERROR,details:Z.BUFFER_NUDGE_ON_STALL,error:p,fatal:!1,buffer:e.len,bufferInfo:e})}else{const d=new Error(`Playhead still not moving while enough data buffered @${s} after ${a.nudgeMaxRetry} nudges`);this.error(d.message),t.trigger(g.ERROR,{type:he.MEDIA_ERROR,details:Z.BUFFER_STALLED_ERROR,error:d,fatal:!0,buffer:e.len,bufferInfo:e})}}}function Qu(o,e){const t=Ju(o.main);if(t&&t.start<=e)return t;const n=Ju(o.audio);return n&&n.start<=e?n:null}function Ju(o){if(!o)return null;switch(o.state){case cr.IDLE:case cr.STOPPED:case cr.ENDED:case cr.ERROR:return null}return o.frag}function Gl(o,e){return e.getAppendedFrag(o,Y.MAIN)||e.getPartialFragment(o)}const Nd=.25;function pu(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function gu(o,e,t,n,r){let a=new o(e,t,"");try{a.value=n,r&&(a.type=r)}catch(s){a=new o(e,t,at(r?A({type:r},n):n))}return a}const Yl=(()=>{const o=pu();try{o&&new o(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class Bd{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(g.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e&&(e.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(g.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(g.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(e,t){var n;this.media=t.media,((n=t.overrides)==null?void 0:n.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){var e;const t=(e=this.hls)==null?void 0:e.latestLevelDetails;t&&this.updateDateRangeCues(t)}onMediaDetaching(e,t){this.media=null,!t.transferMedia&&(this.id3Track&&(this.removeCues&&qo(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const n=e[t];if(n.kind==="metadata"&&n.label==="id3")return Au(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media||!this.hls)return;const{enableEmsgMetadataCues:n,enableID3MetadataCues:r}=this.hls.config;if(!n&&!r)return;const{samples:a}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=pu();if(s)for(let d=0;d<a.length;d++){const p=a[d].type;if(p===it.emsg&&!n||!r)continue;const m=Io(a[d].data),v=a[d].pts;let C=v+a[d].duration;C>Yl&&(C=Yl),C-v<=0&&(C=v+Nd);for(let te=0;te<m.length;te++){const re=m[te];if(!Go(re)){this.updateId3CueEnds(v,p);const Xe=gu(s,v,C,re,p);Xe&&this.id3Track.addCue(Xe)}}}}updateId3CueEnds(e,t){var n;const r=(n=this.id3Track)==null?void 0:n.cues;if(r)for(let a=r.length;a--;){const s=r[a];s.type===t&&s.startTime<e&&s.endTime===Yl&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:a,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:d,enableID3MetadataCues:p}}=s;if(a&&(d||p)){let m;r==="audio"?m=v=>v.type===it.audioId3&&p:r==="video"?m=v=>v.type===it.emsg&&d:m=v=>v.type===it.audioId3&&p||v.type===it.emsg&&d,nu(a,t,n,m)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.hls||!this.media)return;const{assetPlayerId:n,timelineOffset:r,enableDateRangeMetadataCues:a,interstitialsController:s}=this.hls.config;if(!a)return;const d=pu();if(n&&r&&!s){const{fragmentStart:Xe,fragmentEnd:Ye}=e;let It=this.assetCue;It?(It.startTime=Xe,It.endTime=Ye):d&&(It=this.assetCue=gu(d,Xe,Ye,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),It&&(It.id=n,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(It),It.addEventListener("enter",this.onEventCueEnter)))}if(!e.hasProgramDateTime)return;const{id3Track:p}=this,{dateRanges:m}=e,v=Object.keys(m);let C=this.dateRangeCuesAppended;if(p&&t){var F;if((F=p.cues)!=null&&F.length){const Xe=Object.keys(C).filter(Ye=>!v.includes(Ye));for(let Ye=Xe.length;Ye--;){var te;const It=Xe[Ye],Ut=(te=C[It])==null?void 0:te.cues;delete C[It],Ut&&Object.keys(Ut).forEach(Wt=>{const gn=Ut[Wt];if(gn){gn.removeEventListener("enter",this.onEventCueEnter);try{p.removeCue(gn)}catch(wn){}}})}}else C=this.dateRangeCuesAppended={}}const re=e.fragments[e.fragments.length-1];if(!(v.length===0||!i(re==null?void 0:re.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let Xe=0;Xe<v.length;Xe++){const Ye=v[Xe],It=m[Ye],Ut=It.startTime,Wt=C[Ye],gn=(Wt==null?void 0:Wt.cues)||{};let wn=(Wt==null?void 0:Wt.durationKnown)||!1,or=Yl;const{duration:Dn,endDate:Wn}=It;if(Wn&&Dn!==null)or=Ut+Dn,wn=!0;else if(It.endOnNext&&!wn){const Ln=v.reduce((mr,Hr)=>{if(Hr!==It.id){const ai=m[Hr];if(ai.class===It.class&&ai.startDate>It.startDate&&(!mr||It.startDate<mr.startDate))return ai}return mr},null);Ln&&(or=Ln.startTime,wn=!0)}const Hn=Object.keys(It.attr);for(let Ln=0;Ln<Hn.length;Ln++){const mr=Hn[Ln];if(!ra(mr))continue;const Hr=gn[mr];if(Hr)wn&&!(Wt!=null&&Wt.durationKnown)?Hr.endTime=or:Math.abs(Hr.startTime-Ut)>.01&&(Hr.startTime=Ut,Hr.endTime=or);else if(d){let ai=It.attr[mr];zi(mr)&&(ai=k(ai));const si=gu(d,Ut,or,{key:mr,data:ai},it.dateRange);si&&(si.id=Ye,this.id3Track.addCue(si),gn[mr]=si,s&&(mr==="X-ASSET-LIST"||mr==="X-ASSET-URL")&&si.addEventListener("enter",this.onEventCueEnter))}}C[Ye]={cues:gn,dateRange:It,durationKnown:wn}}}}}class Fd{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:t}=this,n=this.levelDetails;if(!t||!n)return;this.currentTime=t.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:a,maxLiveSyncPlaybackRate:s}=this.config;if(!a||s===1||!n.live)return;const d=this.targetLatency;if(d===null)return;const p=r-d,m=Math.min(this.maxLatency,d+n.targetduration);if(p<m&&p>.05&&this.forwardBufferLength>1){const C=Math.min(2,Math.max(1,s)),F=Math.round(2/(1+Math.exp(-.75*p-this.edgeStalled))*20)/20,te=Math.min(C,Math.max(1,F));this.changeMediaPlaybackRate(t,te)}else t.playbackRate!==1&&t.playbackRate!==0&&this.changeMediaPlaybackRate(t,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return((e=this.hls)==null?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:e}=this;if(e.liveMaxLatencyDuration!==void 0)return e.liveMaxLatencyDuration;const t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const e=this.levelDetails;if(e===null||this.hls===null)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:a,liveSyncDurationCount:s,lowLatencyMode:d}=this.config,p=this.hls.userConfig;let m=d&&n||t;(this._targetLatencyUpdated||p.liveSyncDuration||p.liveSyncDurationCount||m===0)&&(m=a!==void 0?a:s*r);const v=r;return m+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,v)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(e===null||t===null)return null;const n=this.levelDetails;if(n===null)return null;const r=n.edge,a=e-t-this.edgeStalled,s=r-n.totalduration,d=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,a),d)}get drift(){const e=this.levelDetails;return e===null?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(g.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(g.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var n;t.details===Z.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(n=this.levelDetails)!=null&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,r;e.playbackRate!==t&&((n=this.hls)==null||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(r=this.targetLatency)==null?void 0:r.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}class $d extends wa{constructor(e,t){super(e,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this),e.on(g.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this),e.off(g.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=[],a={},s={};let d=!1,p=!1,m=!1;t.levels.forEach(v=>{const C=v.attrs;let{audioCodec:F,videoCodec:te}=v;F&&(v.audioCodec=F=fe(F,n)||void 0),te&&(te=v.videoCodec=J(te));const{width:re,height:Xe,unknownCodecs:Ye}=v,It=(Ye==null?void 0:Ye.length)||0;if(d||(d=!!(re&&Xe)),p||(p=!!te),m||(m=!!F),It||F&&!this.isAudioSupported(F)||te&&!this.isVideoSupported(te)){this.log(`Some or all CODECS not supported "${C.CODECS}"`);return}const{CODECS:Ut,"FRAME-RATE":Wt,"HDCP-LEVEL":gn,"PATHWAY-ID":wn,RESOLUTION:or,"VIDEO-RANGE":Dn}=C,Hn=`${`${wn||"."}-`}${v.bitrate}-${or}-${Wt}-${Ut}-${Dn}-${gn}`;if(a[Hn])if(a[Hn].uri!==v.url&&!v.attrs["PATHWAY-ID"]){const Ln=s[Hn]+=1;v.attrs["PATHWAY-ID"]=new Array(Ln+1).join(".");const mr=this.createLevel(v);a[Hn]=mr,r.push(mr)}else a[Hn].addGroupId("audio",C.AUDIO),a[Hn].addGroupId("text",C.SUBTITLES);else{const Ln=this.createLevel(v);a[Hn]=Ln,s[Hn]=1,r.push(Ln)}}),this.filterAndSortMediaOptions(r,t,d,p,m)}createLevel(e){const t=new lt(e),n=e.supplemental;if(n!=null&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const r=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(r.message),t.supportedResult=Ft(r,[])}return t}isAudioSupported(e){return st(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return st(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,r,a){var s;let d=[],p=[],m=e;const v=((s=t.stats)==null?void 0:s.parsing)||{};if((n||r)&&a&&(m=m.filter(({videoCodec:Ut,videoRange:Wt,width:gn,height:wn})=>(!!Ut||!!(gn&&wn))&&ut(Wt))),m.length===0){Promise.resolve().then(()=>{if(this.hls){let Ut="no level with compatible codecs found in manifest",Wt=Ut;t.levels.length&&(Wt=`one or more CODECS in variant not supported: ${at(t.levels.map(wn=>wn.attrs.CODECS).filter((wn,or,Dn)=>Dn.indexOf(wn)===or))}`,this.warn(Wt),Ut+=` (${Wt})`);const gn=new Error(Ut);this.hls.trigger(g.ERROR,{type:he.MEDIA_ERROR,details:Z.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:gn,reason:Wt})}}),v.end=performance.now();return}t.audioTracks&&(d=t.audioTracks.filter(Ut=>!Ut.audioCodec||this.isAudioSupported(Ut.audioCodec)),qu(d)),t.subtitles&&(p=t.subtitles,qu(p));const C=m.slice(0);m.sort((Ut,Wt)=>{if(Ut.attrs["HDCP-LEVEL"]!==Wt.attrs["HDCP-LEVEL"])return(Ut.attrs["HDCP-LEVEL"]||"")>(Wt.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&Ut.height!==Wt.height)return Ut.height-Wt.height;if(Ut.frameRate!==Wt.frameRate)return Ut.frameRate-Wt.frameRate;if(Ut.videoRange!==Wt.videoRange)return He.indexOf(Ut.videoRange)-He.indexOf(Wt.videoRange);if(Ut.videoCodec!==Wt.videoCodec){const gn=Ee(Ut.videoCodec),wn=Ee(Wt.videoCodec);if(gn!==wn)return wn-gn}if(Ut.uri===Wt.uri&&Ut.codecSet!==Wt.codecSet){const gn=nt(Ut.codecSet),wn=nt(Wt.codecSet);if(gn!==wn)return wn-gn}return Ut.averageBitrate!==Wt.averageBitrate?Ut.averageBitrate-Wt.averageBitrate:0});let F=C[0];if(this.steering&&(m=this.steering.filterParsedLevels(m),m.length!==C.length)){for(let Ut=0;Ut<C.length;Ut++)if(C[Ut].pathwayId===m[0].pathwayId){F=C[Ut];break}}this._levels=m;for(let Ut=0;Ut<m.length;Ut++)if(m[Ut]===F){var te;this._firstLevel=Ut;const Wt=F.bitrate,gn=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${m.length} level(s) found, first bitrate: ${Wt}`),((te=this.hls.userConfig)==null?void 0:te.abrEwmaDefaultEstimate)===void 0){const wn=Math.min(Wt,this.hls.config.abrEwmaDefaultEstimateMax);wn>gn&&gn===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=wn)}break}const re=a&&!r,Xe=this.hls.config,Ye=!!(Xe.audioStreamController&&Xe.audioTrackController),It={levels:m,audioTracks:d,subtitleTracks:p,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:a,video:r,altAudio:Ye&&!re&&d.some(Ut=>!!Ut.url)};v.end=performance.now(),this.hls.trigger(g.MANIFEST_PARSED,It)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const v=new Error("invalid level idx"),C=e<0;if(this.hls.trigger(g.ERROR,{type:he.OTHER_ERROR,details:Z.LEVEL_SWITCH_ERROR,level:e,fatal:C,error:v,reason:v.message}),C)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,a=r?r.attrs["PATHWAY-ID"]:void 0,s=t[e],d=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&r&&a===d)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${d?" with Pathway "+d:""} from level ${n}${a?" with Pathway "+a:""}`);const p={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(g.LEVEL_SWITCHING,p);const m=s.details;if(!m||m.live){const v=this.switchParams(s.uri,r==null?void 0:r.details,m);this.loadPlaylist(v)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),n=e.filter(r=>t.indexOf(r)!==-1);if(e.length<1){this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);return}this.steering.pathwayPriority=n}}onError(e,t){t.fatal||!t.context||t.context.type===W.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===Y.MAIN){const n=t.elementaryStreams;if(!Object.keys(n).some(a=>!!n[a]))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:a}=t,s=t.levelInfo;if(!s){var d;this.warn(`Invalid level index ${r}`),(d=t.deliveryDirectives)!=null&&d.skip&&(a.deltaUpdateFailed=!0);return}if(s===this.currentLevel||t.withoutMultiVariant){s.fragmentError===0&&(s.loadError=0);let p=s.details;p===t.details&&p.advanced&&(p=void 0),this.playlistLoaded(r,t,p)}else(n=t.deliveryDirectives)!=null&&n.skip&&(a.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=this.getUrlWithDirectives(e.uri,t),r=this.currentLevelIndex,a=e.attrs["PATHWAY-ID"],s=e.details,d=s==null?void 0:s.age;this.log(`Loading level index ${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${a?" Pathway "+a:""}${d&&s.live?" age "+d.toFixed(1)+(s.type?" "+s.type||0:""):""} ${n}`),this.hls.trigger(g.LEVEL_LOADING,{url:n,level:r,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(this._levels.length===1)return;const n=this._levels.filter((a,s)=>s!==e?!0:(this.steering&&this.steering.removeLevel(a),a===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,a.details&&a.details.fragments.forEach(d=>d.level=-1)),!1));Ka(n),this._levels=n,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const r=n.length-1;this._firstLevel=Math.min(this._firstLevel,r),this._startLevel&&(this._startLevel=Math.min(this._startLevel,r)),this.hls.trigger(g.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(g.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function qu(o){const e={};o.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}function ec(){return self.SourceBuffer||self.WebKitSourceBuffer}function tc(){if(!Ke())return!1;const e=ec();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function zd(){if(!tc())return!1;const o=Ke();return typeof(o==null?void 0:o.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>o.isTypeSupported(pe(e,"video")))||["mp4a.40.2","fLaC"].some(e=>o.isTypeSupported(pe(e,"audio"))))}function Zd(){var o;const e=ec();return typeof(e==null||(o=e.prototype)==null?void 0:o.changeType)=="function"}const Ud=100;class Kd extends oo{constructor(e,t,n){super(e,t,n,"stream-controller",Y.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const r=this.media,a=r?r.currentTime:null;if(a===null||!i(a)||(this.log(`Media seeked to ${a.toFixed(3)}`),!this.getBufferedFrag(a)))return;const s=this.getFwdBufferInfoAtPos(r,a,Y.MAIN,0);if(s===null||s.len===0){this.warn(`Main forward buffer length at ${a} on "seeked" event ${s?s.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.LEVEL_LOADING,this.onLevelLoading,this),e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(g.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(g.BUFFER_CREATED,this.onBufferCreated,this),e.on(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(g.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(g.BUFFER_CREATED,this.onBufferCreated,this),e.off(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:n,hls:r}=this;if(this.stopLoad(),this.setInterval(Ud),this.level=-1,!this.startFragRequested){let a=r.startLevel;a===-1&&(r.config.testBandwidth&&this.levels.length>1?(a=0,this.bitrateTest=!0):a=r.firstAutoLevel),r.nextLoadLevel=a,this.level=r.loadLevel,this._hasEnoughToStart=!!t}n>0&&e===-1&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=cr.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=cr.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case cr.WAITING_LEVEL:{const{levels:e,level:t}=this,n=e==null?void 0:e[t],r=n==null?void 0:n.details;if(r&&(!r.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(r))break;this.state=cr.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=cr.IDLE;break}break}case cr.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===cr.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),(e=this.media)!=null&&e.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(t===null||!r&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const a=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(n!=null&&n[a]))return;const s=n[a],d=this.getMainFwdBufferInfo();if(d===null)return;const p=this.getLevelDetails();if(p&&this._streamEnded(d,p)){const Xe={};this.altAudio===2&&(Xe.type="video"),this.hls.trigger(g.BUFFER_EOS,Xe),this.state=cr.ENDED;return}if(!this.buffering)return;e.loadLevel!==a&&e.manualLevel===-1&&this.log(`Adapting to level ${a} from level ${this.level}`),this.level=e.nextLoadLevel=a;const m=s.details;if(!m||this.state===cr.WAITING_LEVEL||this.waitForLive(s)){this.level=a,this.state=cr.WAITING_LEVEL,this.startFragRequested=!1;return}const v=d.len,C=this.getMaxBufferLength(s.maxBitrate);if(v>=C)return;this.backtrackFragment&&this.backtrackFragment.start>d.end&&(this.backtrackFragment=null);const F=this.backtrackFragment?this.backtrackFragment.start:d.end;let te=this.getNextFragment(F,m);if(this.couldBacktrack&&!this.fragPrevious&&te&&ct(te)&&this.fragmentTracker.getState(te)!==Xn.OK){var re;const Ye=((re=this.backtrackFragment)!=null?re:te).sn-m.startSN,It=m.fragments[Ye-1];It&&te.cc===It.cc&&(te=It,this.fragmentTracker.removeFragment(It))}else this.backtrackFragment&&d.len&&(this.backtrackFragment=null);if(te&&this.isLoopLoading(te,F)){if(!te.gap){const Ye=this.audioOnly&&!this.altAudio?ce.AUDIO:ce.VIDEO,It=(Ye===ce.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;It&&this.afterBufferFlushed(It,Ye,Y.MAIN)}te=this.getNextFragmentLoopLoading(te,m,d,Y.MAIN,C)}te&&(te.initSegment&&!te.initSegment.data&&!this.bitrateTest&&(te=te.initSegment),this.loadFragment(te,s,F))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===Xn.NOT_LOADED||r===Xn.PARTIAL?ct(e)?this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,n):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,Y.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 a=this.getLevelDetails();if(a!=null&&a.live){const d=this.getMainFwdBufferInfo();if(!d||d.len<a.targetduration*2)return}if(!t.paused&&e){const d=this.hls.nextLoadLevel,p=e[d],m=this.fragLastKbps;m&&this.fragCurrent?n=this.fragCurrent.duration*p.maxBitrate/(1e3*m)+1:n=0}else n=0;const s=this.getBufferedFrag(t.currentTime+n);if(s){const d=this.followingBufferedFrag(s);if(d){this.abortCurrentFrag();const p=d.maxStartPTS?d.maxStartPTS:d.start,m=d.duration,v=Math.max(s.end,p+Math.min(Math.max(m-this.config.maxFragLookUpTolerance,m*(this.couldBacktrack?.5:.125)),m*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(v,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 cr.KEY_LOADING:case cr.FRAG_LOADING:case cr.FRAG_LOADING_WAITING_RETRY:case cr.PARSING:case cr.PARSED:this.state=cr.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio===2?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;ja(n,"playing",this.onMediaPlaying),ja(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(Qa(n,"playing",this.onMediaPlaying),Qa(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t),!t.transferMedia&&(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(g.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,r=!1;for(let a=0;a<t.levels.length;a++){const s=t.levels[a].audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,r=r||s.indexOf("mp4a.40.5")!==-1)}this.audioCodecSwitch=n&&r&&!Zd(),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!==cr.IDLE)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=cr.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r,startFragRequested:a}=this,s=t.level,d=t.details,p=d.totalduration;if(!r){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${d.startSN},${d.endSN}]${d.lastPartSn?`[part-${d.lastPartSn}-${d.lastPartIndex}]`:""}, cc [${d.startCC}, ${d.endCC}] duration:${p}`);const m=t.levelInfo,v=this.fragCurrent;v&&(this.state===cr.FRAG_LOADING||this.state===cr.FRAG_LOADING_WAITING_RETRY)&&v.level!==t.level&&v.loader&&this.abortCurrentFrag();let C=0;if(d.live||(n=m.details)!=null&&n.live){var F;if(this.checkLiveUpdate(d),d.deltaUpdateFailed)return;C=this.alignPlaylists(d,m.details,(F=this.levelLastLoaded)==null?void 0:F.details)}if(m.details=d,this.levelLastLoaded=m,a||this.setStartPosition(d,C),this.hls.trigger(g.LEVEL_UPDATED,{details:d,level:s}),this.state===cr.WAITING_LEVEL){if(this.waitForCdnTuneIn(d))return;this.state=cr.IDLE}a&&d.live&&this.synchronizeToLiveEdge(d),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,a=this.getLoadPosition(),s=e.fragmentStart,d=e.edge,p=a>=s-t.maxFragLookUpTolerance&&a<=d;if(r!==null&&n.duration>r&&(a<r||!p)){const v=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!p&&n.readyState<4||a<d-v)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState))if(this.warn(`Playback: ${a.toFixed(3)} is located too far from the end of live sliding playlist: ${d}, reset currentTime to : ${r.toFixed(3)}`),this.config.liveSyncMode==="buffered"){var m;const C=fr.bufferInfo(n,r,0);if(!((m=C.buffered)!=null&&m.length)){n.currentTime=r;return}if(C.start<=a){n.currentTime=r;return}const{nextStart:te}=fr.bufferedInfo(C.buffered,a,0);te&&(n.currentTime=te)}else n.currentTime=r}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:a}=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 d=s[n.level];if(!d){this.warn(`Level ${n.level} not found on progress`);return}const p=d.details;if(!p){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const m=d.videoCodec,v=p.PTSKnown||!p.live,C=(t=n.initSegment)==null?void 0:t.data,F=this._getAudioCodec(d),te=this.transmuxer=this.transmuxer||new Ca(this.hls,Y.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),re=r?r.index:-1,Xe=re!==-1,Ye=new di(n.level,n.sn,n.stats.chunkCount,a.byteLength,re,Xe),It=this.initPTS[n.cc];te.push(a,C,F,m,n,r,p.totalduration,v,Ye,It)}onAudioTrackSwitching(e,t){const n=this.hls,r=this.altAudio!==0;if(Pn(t.url,n))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const s=this.fragCurrent;s&&(this.log("Switching to main audio track, cancel main fragment load"),s.abortRequests(),this.fragmentTracker.removeFragment(s)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(r){this.altAudio=0,this.fragmentTracker.removeAllFragments(),n.once(g.BUFFER_FLUSHED,()=>{this.hls&&this.hls.trigger(g.AUDIO_TRACK_SWITCHED,t)}),n.trigger(g.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}n.trigger(g.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=Pn(t.url,this.hls);if(n){const r=this.videoBuffer;r&&this.mediaBuffer!==r&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=r)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){const n=t.tracks;let r,a,s=!1;for(const d in n){const p=n[d];if(p.id==="main"){if(a=d,r=p,d==="video"){const m=n[d];m&&(this.videoBuffer=m.buffer)}}else s=!0}s&&r?(this.log(`Alternate track found, use ${a}.buffered to schedule main fragment loading`),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t,a=n.type===Y.MAIN;if(a){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===cr.PARSED&&(this.state=cr.IDLE);return}const d=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*d.total/(d.buffering.end-d.loading.first)),ct(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const s=this.media;s&&(!this._hasEnoughToStart&&fr.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),a&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal){this.state=cr.ERROR;return}switch(t.details){case Z.FRAG_GAP:case Z.FRAG_PARSING_ERROR:case Z.FRAG_DECRYPT_ERROR:case Z.FRAG_LOAD_ERROR:case Z.FRAG_LOAD_TIMEOUT:case Z.KEY_LOAD_ERROR:case Z.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Y.MAIN,t);break;case Z.LEVEL_LOAD_ERROR:case Z.LEVEL_LOAD_TIMEOUT:case Z.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===cr.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===W.LEVEL&&(this.state=cr.IDLE);break;case Z.BUFFER_ADD_CODEC_ERROR:case Z.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case Z.BUFFER_FULL_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case Z.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=cr.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==ce.AUDIO||!this.altAudio){const n=(t===ce.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,t,Y.MAIN),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let n=this.startPosition;if(n>=0&&t<n){if(e.seeking){this.log(`could not seek to ${n}, already seeking at ${t}`);return}const r=this.timelineOffset;r&&n&&(n+=r);const a=this.getLevelDetails(),s=fr.getBuffered(e),d=s.length?s.start(0):0,p=d-n,m=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||p>0&&(p<m||this.loadingParts&&p<2*((a==null?void 0:a.partTarget)||0)))&&(this.log(`adjusting start position by ${p} to match buffer start`),n+=p,this.startPosition=n),t<n&&(this.log(`seek to target start position ${n} from current time ${t} buffer start ${d}`),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,a=n==null?void 0:n.frag;if(!a||this.fragContextChanged(a))return;t.fragmentError=0,this.state=cr.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=a.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),r.trigger(g.FRAG_LOADED,n),a.bitrateTest=!1}).catch(n=>{this.state===cr.STOPPED||this.state===cr.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}_handleTransmuxComplete(e){const t=this.playlistType,{hls:n}=this,{remuxResult:r,chunkMeta:a}=e,s=this.getCurrentContext(a);if(!s){this.resetWhenMissingContext(a);return}const{frag:d,part:p,level:m}=s,{video:v,text:C,id3:F,initSegment:te}=r,{details:re}=m,Xe=this.altAudio?void 0:r.audio;if(this.fragContextChanged(d)){this.fragmentTracker.removeFragment(d);return}if(this.state=cr.PARSING,te){const Ye=te.tracks;if(Ye){const gn=d.initSegment||d;if(this.unhandledEncryptionError(te,d))return;this._bufferInitSegment(m,Ye,gn,a),n.trigger(g.FRAG_PARSING_INIT_SEGMENT,{frag:gn,id:t,tracks:Ye})}const It=te.initPTS,Ut=te.timescale,Wt=this.initPTS[d.cc];if(i(It)&&(!Wt||Wt.baseTime!==It||Wt.timescale!==Ut)){const gn=te.trackId;this.initPTS[d.cc]={baseTime:It,timescale:Ut,trackId:gn},n.trigger(g.INIT_PTS_FOUND,{frag:d,id:t,initPTS:It,timescale:Ut,trackId:gn})}}if(v&&re){Xe&&v.type==="audiovideo"&&this.logMuxedErr(d);const Ye=re.fragments[d.sn-1-re.startSN],It=d.sn===re.startSN,Ut=!Ye||d.cc>Ye.cc;if(r.independent!==!1){const{startPTS:Wt,endPTS:gn,startDTS:wn,endDTS:or}=v;if(p)p.elementaryStreams[v.type]={startPTS:Wt,endPTS:gn,startDTS:wn,endDTS:or};else if(v.firstKeyFrame&&v.independent&&a.id===1&&!Ut&&(this.couldBacktrack=!0),v.dropped&&v.independent){const Dn=this.getMainFwdBufferInfo(),Wn=(Dn?Dn.end:this.getLoadPosition())+this.config.maxBufferHole,Hn=v.firstKeyFramePTS?v.firstKeyFramePTS:Wt;if(!It&&Wn<Hn-this.config.maxBufferHole&&!Ut){this.backtrack(d);return}else Ut&&(d.gap=!0);d.setElementaryStreamInfo(v.type,d.start,gn,d.start,or,!0)}else It&&Wt-(re.appliedTimelineOffset||0)>Vl&&(d.gap=!0);d.setElementaryStreamInfo(v.type,Wt,gn,wn,or),this.backtrackFragment&&(this.backtrackFragment=d),this.bufferFragmentData(v,d,p,a,It||Ut)}else if(It||Ut)d.gap=!0;else{this.backtrack(d);return}}if(Xe){const{startPTS:Ye,endPTS:It,startDTS:Ut,endDTS:Wt}=Xe;p&&(p.elementaryStreams[ce.AUDIO]={startPTS:Ye,endPTS:It,startDTS:Ut,endDTS:Wt}),d.setElementaryStreamInfo(ce.AUDIO,Ye,It,Ut,Wt),this.bufferFragmentData(Xe,d,p,a)}if(re&&F!=null&&F.samples.length){const Ye={id:t,frag:d,details:re,samples:F.samples};n.trigger(g.FRAG_PARSING_METADATA,Ye)}if(re&&C){const Ye={id:t,frag:d,details:re,samples:C.samples};n.trigger(g.FRAG_PARSING_USERDATA,Ye)}}logMuxedErr(e){this.warn(`${ct(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==cr.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:a,video:s,audiovideo:d}=t;if(a){const m=e.audioCodec;let v=dn(a.codec,m);v==="mp4a"&&(v="mp4a.40.5");const C=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){v&&(v.indexOf("mp4a.40.5")!==-1?v="mp4a.40.2":v="mp4a.40.5");const F=a.metadata;F&&"channelCount"in F&&(F.channelCount||1)!==1&&C.indexOf("firefox")===-1&&(v="mp4a.40.5")}v&&v.indexOf("mp4a.40.5")!==-1&&C.indexOf("android")!==-1&&a.container!=="audio/mpeg"&&(v="mp4a.40.2",this.log(`Android: force audio codec to ${v}`)),m&&m!==v&&this.log(`Swapping manifest audio codec "${m}" for "${v}"`),a.levelCodec=v,a.id=Y.MAIN,this.log(`Init audio buffer, container:${a.container}, codecs[selected/level/parsed]=[${v||""}/${m||""}/${a.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=Y.MAIN;const m=s.codec;if((m==null?void 0:m.length)===4)switch(m){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${m}]${s.codec!==m?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete t.audiovideo}d&&(this.log(`Init audiovideo buffer, container:${d.container}, codecs[level/parsed]=[${e.codecs}/${d.codec}]`),delete t.video,delete t.audio);const p=Object.keys(t);if(p.length){if(this.hls.trigger(g.BUFFER_CODECS,t),!this.hls)return;p.forEach(m=>{const C=t[m].initSegment;C!=null&&C.byteLength&&this.hls.trigger(g.BUFFER_APPENDING,{type:m,data:C,frag:n,part:null,chunkMeta:r,parent:n.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,Y.MAIN)}get maxBufferLength(){const{levels:e,level:t}=this,n=e==null?void 0:e[t];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=cr.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(fr.isBuffered(e,n)?t=this.getAppendedFrag(n):fr.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const r=this.fragPlaying,a=t.level;(!r||t.sn!==r.sn||r.level!==a)&&(this.fragPlaying=t,this.hls.trigger(g.FRAG_CHANGED,{frag:t}),(!r||r.level!==a)&&this.hls.trigger(g.LEVEL_SWITCHED,{level:a}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;return i(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(i(t)){const n=this.getLevelDetails(),r=this.currentFrag||(n?Yn(null,n.fragments,t):null);if(r){const a=r.programDateTime;if(a!==null){const s=a+(t-r.start)*1e3;return new Date(s)}}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class jd extends X{constructor(e,t){super("key-loader",t),this.config=void 0,this.keyIdToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyIdToKeyInfo){const r=this.keyIdToKeyInfo[n].loader;if(r){var t;if(e&&e!==((t=r.context)==null?void 0:t.frag.type))return;r.abort()}}}detach(){for(const e in this.keyIdToKeyInfo){const t=this.keyIdToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyIdToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyIdToKeyInfo){const t=this.keyIdToKeyInfo[e].loader;t&&t.destroy()}this.keyIdToKeyInfo={}}createKeyLoadError(e,t=Z.KEY_LOAD_ERROR,n,r,a){return new wr({type:he.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:a,error:n,networkDetails:r})}loadClear(e,t,n){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(t.length)for(let r=0,a=t.length;r<a;r++){const s=t[r];if(e.cc<=s.cc&&(!ct(e)||!ct(s)||e.sn<s.sn)||!n&&r==a-1)return this.emeController.selectKeySystemFormat(s).then(d=>{if(!this.emeController)return;s.setKeyFormat(d);const p=ma(d);if(p)return this.emeController.getKeySystemAccess([p])})}if(this.config.requireKeySystemAccessOnStart){const r=ua(this.config);if(r.length)return this.emeController.getKeySystemAccess(r)}}return null}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(t=>this.loadInternal(e,t)):this.loadInternal(e)}loadInternal(e,t){var n,r;t&&e.setKeyFormat(t);const a=e.decryptdata;if(!a){const m=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:`Missing decryption data on fragment in onKeyLoading (emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`);return Promise.reject(this.createKeyLoadError(e,Z.KEY_LOAD_ERROR,m))}const s=a.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,Z.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const d=vu(a);let p=this.keyIdToKeyInfo[d];if((n=p)!=null&&n.decryptdata.key)return a.key=p.decryptdata.key,Promise.resolve({frag:e,keyInfo:p});if(this.emeController&&(r=p)!=null&&r.keyLoadPromise)switch(this.emeController.getKeyStatus(p.decryptdata)){case"usable":case"usable-in-future":return p.keyLoadPromise.then(v=>{const{keyInfo:C}=v;return a.key=C.decryptdata.key,{frag:e,keyInfo:C}})}switch(this.log(`${this.keyIdToKeyInfo[d]?"Rel":"L"}oading${a.keyId?" keyId: "+oe(a.keyId):""} URI: ${a.uri} from ${e.type} ${e.level}`),p=this.keyIdToKeyInfo[d]={decryptdata:a,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},a.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return a.keyFormat==="identity"?this.loadKeyHTTP(p,e):this.loadKeyEME(p,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(p,e);default:return Promise.reject(this.createKeyLoadError(e,Z.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${a.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){var r;if(!e.decryptdata.keyId&&(r=t.initSegment)!=null&&r.data){const s=ft(t.initSegment.data);if(s.length){let d=s[0];d.some(p=>p!==0)?(this.log(`Using keyId found in init segment ${oe(d)}`),Sa.setKeyIdForUri(e.decryptdata.uri,d)):(d=Sa.addKeyIdForUri(e.decryptdata.uri),this.log(`Generating keyId to patch media ${oe(d)}`)),e.decryptdata.keyId=d}}if(!e.decryptdata.keyId&&!ct(t))return Promise.resolve(n);const a=this.emeController.loadKey(n);return(e.keyLoadPromise=a.then(s=>(e.mediaKeySessionContext=s,n))).catch(s=>{throw e.keyLoadPromise=null,"data"in s&&(s.data.frag=t),s})}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,r=n.loader,a=new r(n);return t.keyLoader=e.loader=a,e.keyLoadPromise=new Promise((s,d)=>{const p={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},m=n.keyLoadPolicy.default,v={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},C={onSuccess:(F,te,re,Xe)=>{const{frag:Ye,keyInfo:It}=re,Ut=vu(It.decryptdata);if(!Ye.decryptdata||It!==this.keyIdToKeyInfo[Ut])return d(this.createKeyLoadError(Ye,Z.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Xe));It.decryptdata.key=Ye.decryptdata.key=new Uint8Array(F.data),Ye.keyLoader=null,It.loader=null,s({frag:Ye,keyInfo:It})},onError:(F,te,re,Xe)=>{this.resetLoader(te),d(this.createKeyLoadError(t,Z.KEY_LOAD_ERROR,new Error(`HTTP Error ${F.code} loading key ${F.text}`),re,A({url:p.url,data:void 0},F)))},onTimeout:(F,te,re)=>{this.resetLoader(te),d(this.createKeyLoadError(t,Z.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),re))},onAbort:(F,te,re)=>{this.resetLoader(te),d(this.createKeyLoadError(t,Z.INTERNAL_ABORTED,new Error("key loading aborted"),re))}};a.load(p,v,C)})}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,a=n.loader;t.keyLoader===a&&(t.keyLoader=null,n.loader=null);const s=vu(n.decryptdata)||r;delete this.keyIdToKeyInfo[s],a&&a.destroy()}}function vu(o){if(o.keyFormat!==ti.FAIRPLAY){const e=o.keyId;if(e)return oe(e)}return o.uri}function nc(o){const{type:e}=o;switch(e){case W.AUDIO_TRACK:return Y.AUDIO;case W.SUBTITLE_TRACK:return Y.SUBTITLE;default:return Y.MAIN}}function yu(o,e){let t=o.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Hd{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.LEVEL_LOADING,this.onLevelLoading,this),e.on(g.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(g.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.LEVEL_LOADING,this.onLevelLoading,this),e.off(g.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(g.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,a=n||r,s=new a(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:W.MANIFEST,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:a,url:s,deliveryDirectives:d,levelInfo:p}=t;this.load({id:n,level:r,pathwayId:a,responseType:"text",type:W.LEVEL,url:s,deliveryDirectives:d,levelOrTrack:p})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:a,deliveryDirectives:s,track:d}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:W.AUDIO_TRACK,url:a,deliveryDirectives:s,levelOrTrack:d})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:a,deliveryDirectives:s,track:d}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:W.SUBTITLE_TRACK,url:a,deliveryDirectives:s,levelOrTrack:d})}onLevelsUpdated(e,t){const n=this.loaders[W.LEVEL];if(n){const r=n.context;r&&!t.levels.some(a=>a===r.levelOrTrack)&&(n.abort(),delete this.loaders[W.LEVEL])}}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const m=this.hls.logger,v=r.context;if(v&&v.levelOrTrack===e.levelOrTrack&&(v.url===e.url||v.deliveryDirectives&&!e.deliveryDirectives)){v.url===e.url?m.log(`[playlist-loader]: ignore ${e.url} ongoing request`):m.log(`[playlist-loader]: ignore ${e.url} in favor of ${v.url}`);return}m.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let a;if(e.type===W.MANIFEST?a=n.manifestLoadPolicy.default:a=y({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),i((t=e.deliveryDirectives)==null?void 0:t.part)){let m;if(e.type===W.LEVEL&&e.level!==null?m=this.hls.levels[e.level].details:e.type===W.AUDIO_TRACK&&e.id!==null?m=this.hls.audioTracks[e.id].details:e.type===W.SUBTITLE_TRACK&&e.id!==null&&(m=this.hls.subtitleTracks[e.id].details),m){const v=m.partTarget,C=m.targetduration;if(v&&C){const F=Math.max(v*3,C*.8)*1e3;a=y({},a,{maxTimeToFirstByteMs:Math.min(F,a.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(F,a.maxTimeToFirstByteMs)})}}}const s=a.errorRetry||a.timeoutRetry||{},d={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},p={onSuccess:(m,v,C,F)=>{const te=this.getInternalLoader(C);this.resetInternalLoader(C.type);const re=m.data;v.parsing.start=performance.now(),za.isMediaPlaylist(re)||C.type!==W.MANIFEST?this.handleTrackOrLevelPlaylist(m,v,C,F||null,te):this.handleMasterPlaylist(m,v,C,F)},onError:(m,v,C,F)=>{this.handleNetworkError(v,C,!1,m,F)},onTimeout:(m,v,C)=>{this.handleNetworkError(v,C,!0,void 0,m)}};r.load(e,d,p)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:n}=this.hls;(e||n)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,n,r){const a=this.hls,s=e.data,d=yu(e,n),p=za.parseMasterPlaylist(s,d);if(p.playlistParsingError){t.parsing.end=performance.now(),this.handleManifestParsingError(e,n,p.playlistParsingError,r,t);return}const{contentSteering:m,levels:v,sessionData:C,sessionKeys:F,startTimeOffset:te,variableList:re}=p;this.variableList=re,v.forEach(Ut=>{const{unknownCodecs:Wt}=Ut;if(Wt){const{preferManagedMediaSource:gn}=this.hls.config;let{audioCodec:wn,videoCodec:or}=Ut;for(let Dn=Wt.length;Dn--;){const Wn=Wt[Dn];st(Wn,"audio",gn)?(Ut.audioCodec=wn=wn?`${wn},${Wn}`:Wn,en.audio[wn.substring(0,4)]=2,Wt.splice(Dn,1)):st(Wn,"video",gn)&&(Ut.videoCodec=or=or?`${or},${Wn}`:Wn,en.video[or.substring(0,4)]=2,Wt.splice(Dn,1))}}});const{AUDIO:Xe=[],SUBTITLES:Ye,"CLOSED-CAPTIONS":It}=za.parseMasterPlaylistMedia(s,d,p);Xe.length&&!Xe.some(Wt=>!Wt.url)&&v[0].audioCodec&&!v[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Xe.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Vr({}),bitrate:0,url:""})),a.trigger(g.MANIFEST_LOADED,{levels:v,audioTracks:Xe,subtitles:Ye,captions:It,contentSteering:m,url:d,stats:t,networkDetails:r,sessionData:C,sessionKeys:F,startTimeOffset:te,variableList:re})}handleTrackOrLevelPlaylist(e,t,n,r,a){const s=this.hls,{id:d,level:p,type:m}=n,v=yu(e,n),C=i(p)?p:i(d)?d:0,F=nc(n),te=za.parseLevelPlaylist(e.data,v,C,F,0,this.variableList);if(m===W.MANIFEST){const re={attrs:new Vr({}),bitrate:0,details:te,name:"",url:v};te.requestScheduled=t.loading.start+Ki(te,0),s.trigger(g.MANIFEST_LOADED,{levels:[re],audioTracks:[],url:v,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=te,this.handlePlaylistLoaded(te,e,t,n,r,a)}handleManifestParsingError(e,t,n,r,a){this.hls.trigger(g.ERROR,{type:he.NETWORK_ERROR,details:Z.MANIFEST_PARSING_ERROR,fatal:t.type===W.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:a})}handleNetworkError(e,t,n=!1,r,a){let s=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===W.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===W.AUDIO_TRACK||e.type===W.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const d=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let p=Z.UNKNOWN,m=!1;const v=this.getInternalLoader(e);switch(e.type){case W.MANIFEST:p=n?Z.MANIFEST_LOAD_TIMEOUT:Z.MANIFEST_LOAD_ERROR,m=!0;break;case W.LEVEL:p=n?Z.LEVEL_LOAD_TIMEOUT:Z.LEVEL_LOAD_ERROR,m=!1;break;case W.AUDIO_TRACK:p=n?Z.AUDIO_TRACK_LOAD_TIMEOUT:Z.AUDIO_TRACK_LOAD_ERROR,m=!1;break;case W.SUBTITLE_TRACK:p=n?Z.SUBTITLE_TRACK_LOAD_TIMEOUT:Z.SUBTITLE_LOAD_ERROR,m=!1;break}v&&this.resetInternalLoader(e.type);const C={type:he.NETWORK_ERROR,details:p,fatal:m,url:e.url,loader:v,context:e,error:d,networkDetails:t,stats:a};if(r){const F=(t==null?void 0:t.url)||e.url;C.response=A({url:F,data:void 0},r)}this.hls.trigger(g.ERROR,C)}handlePlaylistLoaded(e,t,n,r,a,s){const d=this.hls,{type:p,level:m,levelOrTrack:v,id:C,groupId:F,deliveryDirectives:te}=r,re=yu(t,r),Xe=nc(r);let Ye=typeof r.level=="number"&&Xe===Y.MAIN?m:void 0;const It=e.playlistParsingError;if(It){if(this.hls.logger.warn(`${It} ${e.url}`),!d.config.ignorePlaylistParsingErrors){d.trigger(g.ERROR,{type:he.NETWORK_ERROR,details:Z.LEVEL_PARSING_ERROR,fatal:!1,url:re,error:It,reason:It.message,response:t,context:r,level:Ye,parent:Xe,networkDetails:a,stats:n});return}e.playlistParsingError=null}if(!e.fragments.length){const Ut=e.playlistParsingError=new Error("No Segments found in Playlist");d.trigger(g.ERROR,{type:he.NETWORK_ERROR,details:Z.LEVEL_EMPTY_ERROR,fatal:!1,url:re,error:Ut,reason:Ut.message,response:t,context:r,level:Ye,parent:Xe,networkDetails:a,stats:n});return}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),p){case W.MANIFEST:case W.LEVEL:if(Ye){if(!v)Ye=0;else if(v!==d.levels[Ye]){const Ut=d.levels.indexOf(v);Ut>-1&&(Ye=Ut)}}d.trigger(g.LEVEL_LOADED,{details:e,levelInfo:v||d.levels[0],level:Ye||0,id:C||0,stats:n,networkDetails:a,deliveryDirectives:te,withoutMultiVariant:p===W.MANIFEST});break;case W.AUDIO_TRACK:d.trigger(g.AUDIO_TRACK_LOADED,{details:e,track:v,id:C||0,groupId:F||"",stats:n,networkDetails:a,deliveryDirectives:te});break;case W.SUBTITLE_TRACK:d.trigger(g.SUBTITLE_TRACK_LOADED,{details:e,track:v,id:C||0,groupId:F||"",stats:n,networkDetails:a,deliveryDirectives:te});break}}}class bo{static get version(){return lo}static isMSESupported(){return tc()}static isSupported(){return zd()}static getMediaSource(){return Ke()}static get Events(){return g}static get MetadataSchema(){return it}static get ErrorTypes(){return he}static get ErrorDetails(){return Z}static get DefaultConfig(){return bo.defaultConfig?bo.defaultConfig:Id}static set DefaultConfig(e){bo.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new xo,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const t=this.logger=Se(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=Rd(bo.DefaultConfig,e,t);this.userConfig=e,n.progressive&&Od(n,t);const{abrController:r,bufferController:a,capLevelController:s,errorController:d,fpsController:p}=n,m=new d(this),v=this.abrController=new r(this),C=new nr(this),F=n.interstitialsController,te=F?this.interstitialsController=new F(this,bo):null,re=this.bufferController=new a(this,C),Xe=this.capLevelController=new s(this),Ye=new p(this),It=new Hd(this),Ut=n.contentSteeringController,Wt=Ut?new Ut(this):null,gn=this.levelController=new $d(this,Wt),wn=new Bd(this),or=new jd(this.config,this.logger),Dn=this.streamController=new Kd(this,C,or),Wn=this.gapController=new kd(this,C);Xe.setStreamController(Dn),Ye.setStreamController(Dn);const Hn=[It,gn,Dn];te&&Hn.splice(1,0,te),Wt&&Hn.splice(1,0,Wt),this.networkControllers=Hn;const Ln=[v,re,Wn,Xe,Ye,wn,C];this.audioTrackController=this.createController(n.audioTrackController,Hn);const mr=n.audioStreamController;mr&&Hn.push(this.audioStreamController=new mr(this,C,or)),this.subtitleTrackController=this.createController(n.subtitleTrackController,Hn);const Hr=n.subtitleStreamController;Hr&&Hn.push(this.subtititleStreamController=new Hr(this,C,or)),this.createController(n.timelineController,Ln),or.emeController=this.emeController=this.createController(n.emeController,Ln),this.cmcdController=this.createController(n.cmcdController,Ln),this.latencyController=this.createController(Fd,Ln),this.coreComponents=Ln,Hn.push(m);const ai=m.onErrorOut;typeof ai=="function"&&this.on(g.ERROR,ai,m),this.on(g.MANIFEST_LOADED,It.onManifestLoaded,It)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(n){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+n.message+'". Here is a stacktrace:',n),!this.triggeringException){this.triggeringException=!0;const r=e===g.ERROR;this.trigger(g.ERROR,{type:he.OTHER_ERROR,details:Z.INTERNAL_EXCEPTION,fatal:r,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(g.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(t=>t.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(t=>t.destroy()),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const a=new Error(`attachMedia failed: invalid argument (${e})`);this.trigger(g.ERROR,{type:he.OTHER_ERROR,details:Z.ATTACH_MEDIA_ERROR,fatal:!0,error:a});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,n=t?e.media:e,r=t?e:{media:n};this._media=n,this.trigger(g.MEDIA_ATTACHING,r)}detachMedia(){this.logger.log("detachMedia"),this.trigger(g.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(g.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,n=this._url,r=this._url=w.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${r}`),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(g.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n<this.networkControllers.length&&(this.networkControllers[n].startLoad(e,t),!(!this.started||!this.networkControllers));n++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}get loadingEnabled(){return this.started}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()}))}get inFlightFragments(){const e={[Y.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[Y.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[Y.SUBTITLE]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=e==null?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=kc()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){$e(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 a=r;a--;){const s=e[a].attrs["HDCP-LEVEL"];if(s&&s<=n)return a}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return((t=this.audioTrackController)==null?void 0:t.setAudioOption(e))||null}setSubtitleOption(e){var t;return((t=this.subtitleTrackController)==null?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!!((e=this.bufferController)!=null&&e.bufferedToEnd)}get interstitialsManager(){var e;return((e=this.interstitialsController)==null?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){const n=zt(t);return ie(e,n,navigator.mediaCapabilities)}}bo.defaultConfig=void 0},16722:function($n,Rt,u){"use strict";u.d(Rt,{Z:function(){return Y}});const i=l=>typeof l=="object"&&l!=null&&l.nodeType===1,K=(l,x)=>(!x||l!=="hidden")&&l!=="visible"&&l!=="clip",L=(l,x)=>{if(l.clientHeight<l.scrollHeight||l.clientWidth<l.scrollWidth){const N=getComputedStyle(l,null);return K(N.overflowY,x)||K(N.overflowX,x)||(y=>{const T=(A=>{if(!A.ownerDocument||!A.ownerDocument.defaultView)return null;try{return A.ownerDocument.defaultView.frameElement}catch($){return null}})(y);return!!T&&(T.clientHeight<y.scrollHeight||T.clientWidth<y.scrollWidth)})(l)}return!1},he=(l,x,N,y,T,A,$,H)=>A<l&&$>x||A>l&&$<x?0:A<=l&&H<=N||$>=x&&H>=N?A-l-y:$>x&&H<N||A<l&&H>N?$-x+T:0,Z=l=>{const x=l.parentElement;return x==null?l.getRootNode().host||null:x},g=(l,x)=>{var N,y,T,A;if(typeof document=="undefined")return[];const{scrollMode:$,block:H,inline:X,boundary:V,skipOverflowHiddenElements:R}=x,Q=typeof V=="function"?V:Tt=>Tt!==V;if(!i(l))throw new TypeError("Invalid target");const O=document.scrollingElement||document.documentElement,I=[];let ue=l;for(;i(ue)&&Q(ue);){if(ue=Z(ue),ue===O){I.push(ue);break}ue!=null&&ue===document.body&&L(ue)&&!L(document.documentElement)||ue!=null&&L(ue,R)&&I.push(ue)}const Se=(y=(N=window.visualViewport)==null?void 0:N.width)!=null?y:innerWidth,me=(A=(T=window.visualViewport)==null?void 0:T.height)!=null?A:innerHeight,{scrollX:Ke,scrollY:Je}=window,{height:ke,width:We,top:oe,right:k,bottom:_,left:ee}=l.getBoundingClientRect(),{top:ne,right:se,bottom:w,left:D}=(Tt=>{const Ae=window.getComputedStyle(Tt);return{top:parseFloat(Ae.scrollMarginTop)||0,right:parseFloat(Ae.scrollMarginRight)||0,bottom:parseFloat(Ae.scrollMarginBottom)||0,left:parseFloat(Ae.scrollMarginLeft)||0}})(l);let ce=H==="start"||H==="nearest"?oe-ne:H==="end"?_+w:oe+ke/2-ne+w,Oe=X==="center"?ee+We/2-D+se:X==="end"?k+se:ee-D;const ct=[];for(let Tt=0;Tt<I.length;Tt++){const Ae=I[Tt],{height:qe,width:ht,top:tt,right:Fe,bottom:jt,left:bt}=Ae.getBoundingClientRect();if($==="if-needed"&&oe>=0&&ee>=0&&_<=me&&k<=Se&&(Ae===O&&!L(Ae)||oe>=tt&&_<=jt&&ee>=bt&&k<=Fe))return ct;const cn=getComputedStyle(Ae),vt=parseInt(cn.borderLeftWidth,10),pt=parseInt(cn.borderTopWidth,10),Qe=parseInt(cn.borderRightWidth,10),Ne=parseInt(cn.borderBottomWidth,10);let le=0,Pe=0;const Ge="offsetWidth"in Ae?Ae.offsetWidth-Ae.clientWidth-vt-Qe:0,j="offsetHeight"in Ae?Ae.offsetHeight-Ae.clientHeight-pt-Ne:0,P="offsetWidth"in Ae?Ae.offsetWidth===0?0:ht/Ae.offsetWidth:0,_e="offsetHeight"in Ae?Ae.offsetHeight===0?0:qe/Ae.offsetHeight:0;if(O===Ae)le=H==="start"?ce:H==="end"?ce-me:H==="nearest"?he(Je,Je+me,me,pt,Ne,Je+ce,Je+ce+ke,ke):ce-me/2,Pe=X==="start"?Oe:X==="center"?Oe-Se/2:X==="end"?Oe-Se:he(Ke,Ke+Se,Se,vt,Qe,Ke+Oe,Ke+Oe+We,We),le=Math.max(0,le+Je),Pe=Math.max(0,Pe+Ke);else{le=H==="start"?ce-tt-pt:H==="end"?ce-jt+Ne+j:H==="nearest"?he(tt,jt,qe,pt,Ne+j,ce,ce+ke,ke):ce-(tt+qe/2)+j/2,Pe=X==="start"?Oe-bt-vt:X==="center"?Oe-(bt+ht/2)+Ge/2:X==="end"?Oe-Fe+Qe+Ge:he(bt,Fe,ht,vt,Qe+Ge,Oe,Oe+We,We);const{scrollLeft:Ie,scrollTop:Te}=Ae;le=_e===0?0:Math.max(0,Math.min(Te+le/_e,Ae.scrollHeight-qe/_e+j)),Pe=P===0?0:Math.max(0,Math.min(Ie+Pe/P,Ae.scrollWidth-ht/P+Ge)),ce+=Te-le,Oe+=Ie-Pe}ct.push({el:Ae,top:le,left:Pe})}return ct},W=l=>l===!1?{block:"end",inline:"nearest"}:(x=>x===Object(x)&&Object.keys(x).length!==0)(l)?l:{block:"start",inline:"nearest"};function Y(l,x){if(!l.isConnected||!(T=>{let A=T;for(;A&&A.parentNode;){if(A.parentNode===document)return!0;A=A.parentNode instanceof ShadowRoot?A.parentNode.host:A.parentNode}return!1})(l))return;const N=(T=>{const A=window.getComputedStyle(T);return{top:parseFloat(A.scrollMarginTop)||0,right:parseFloat(A.scrollMarginRight)||0,bottom:parseFloat(A.scrollMarginBottom)||0,left:parseFloat(A.scrollMarginLeft)||0}})(l);if((T=>typeof T=="object"&&typeof T.behavior=="function")(x))return x.behavior(g(l,x));const y=typeof x=="boolean"||x==null?void 0:x.behavior;for(const{el:T,top:A,left:$}of g(l,W(x))){const H=A-N.top+N.bottom,X=$-N.left+N.right;T.scroll({top:H,left:X,behavior:y})}}}}]);
|
|
|
}()); |