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

44 lines
287 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[4928],{25877:function(Qe,ue,l){"use strict";l.d(ue,{Z:function(){return q}});var s=l(87462),w=l(67294),T={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"},k=T,A=l(74643),g=function(u,P){return w.createElement(A.Z,(0,s.Z)({},u,{ref:P,icon:k}))},q=w.forwardRef(g)},22751:function(Qe,ue,l){"use strict";l.d(ue,{Z:function(){return q}});var s=l(87462),w=l(67294),T={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"},k=T,A=l(74643),g=function(u,P){return w.createElement(A.Z,(0,s.Z)({},u,{ref:P,icon:k}))},q=w.forwardRef(g)},91034:function(Qe,ue,l){"use strict";l.d(ue,{Z:function(){return q}});var s=l(87462),w=l(67294),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},k=T,A=l(74643),g=function(u,P){return w.createElement(A.Z,(0,s.Z)({},u,{ref:P,icon:k}))},q=w.forwardRef(g)},6104:function(Qe,ue,l){"use strict";l.d(ue,{Z:function(){return H}});var s=l(67294),w=l(2453),T=l(85418),k=l(24577),A=l(67631),g=l.n(A),q=l(52262),te=l(74855),u=l(51959),P={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"},ne=l(35973),Y=(x,y,_)=>new Promise((L,v)=>{var I=X=>{try{N(_.next(X))}catch(ae){v(ae)}},K=X=>{try{N(_.throw(X))}catch(ae){v(ae)}},N=X=>X.done?L(X.value):Promise.resolve(X.value).then(I,K);N((_=_.apply(x,y)).next())});function O(x){if(isNaN(x))return{minutes:"00",seconds:"00"};const y=new Date(x*1e3).toISOString().substr(11,8);return{hour:y.substr(0,2),minutes:y.substr(3,2),seconds:y.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function G(x,y){return x-y}function he(x){x.sort(G);let y=0;for(let _=0;_<x.length-1;_++){let L=Math.abs(x[_+1]-x[_]);L<21&&(y+=L)}return y}const re=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var H=(0,s.forwardRef)(({allow_skip:x,src:y,toLog:_,videoId:L,logWatchHistory:v,courseId:I=null,startTime:K,handlePause:N=()=>{},handlePlay:X=()=>{},handlePlayEnded:ae=()=>{},autoPlay:xe=!1,onPlayEnded:Te=()=>{},isShowWaterMark:Ue=!0},Fe)=>{var Le;const we=(0,ne.useIntl)(),rt=((Le=y==null?void 0:y.split("."))==null?void 0:Le.pop())==="flv",$=(0,s.useRef)(),Be=(0,s.useRef)(),fe=(0,s.useRef)(),Ge=(0,s.useRef)(),Oe=(0,s.useRef)(),pe=(0,s.useRef)(),ye=(0,s.useRef)(),mt=(0,s.useRef)(),Je=(0,s.useRef)(),ut=(0,s.useRef)(),vt=(0,s.useRef)(),pt=(0,s.useRef)(),qe=(0,s.useRef)(),We=(0,s.useRef)(),Dt=navigator.userAgent.toLowerCase().match(re),it=Dt?Dt[0]:"pc",Re=(0,s.useRef)(!1),M=(0,q.eY)();let c=0,d=0,a=0,m=null,R=!1,h=20,E=1,S=!1,o=!1,U=[];(0,s.useImperativeHandle)(Fe,()=>({getLastUpdatedTime:()=>$.current.currentTime,getDuration:()=>$.current.duration})),w.ZP.config({maxCount:1,getContainer:()=>fe.current});const W=(0,s.useCallback)((ke,dt=!1)=>{let z={point:$.current.currentTime};m?(z.log_id=m,z.watch_duration=he(U),z.total_duration=d):(I?(z.video_id=parseInt(L,10),z.course_id=I):z.video_id=L,z.duration=c,z.device=it),dt&&(z.ed="1");function ct(){return Y(this,null,function*(){S=!0,m=yield v==null?void 0:v(z),S=!1,ke&&ke()})}ct()},[L,I]);(0,s.useEffect)(()=>{$.current&&(Ge.current.style.display="none",Oe.current.style.display="block"),w.ZP.destroy();let ke=null;return k.Z.isSupported&&rt&&y&&(y==null?void 0:y.indexOf(".m3u8"))<0?(ke=k.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:y,muted:!1}),$.current&&(ke.attachMediaElement($.current),ke.load())):$.current.setAttribute("src",y),ge(),()=>{ke&&(ke.unload(),ke.pause(),ke.destroy(),ke=null)}},[$,rt,y]);function oe(){$.current.paused?(Ge.current.style.display="none",Oe.current.style.display="block"):(Ge.current.style.display="block",Oe.current.style.display="none")}function ge(){vt.current.style.display="none",qe.current.style.display="none",pt.current.style.display="none",$.current.muted||$.current.volume===0?vt.current.style.display="block":$.current.volume>0&&$.current.volume<=.5?qe.current.style.display="block":pt.current.style.display="block"}(0,s.useEffect)(()=>{const ke=document.getElementById("play"),dt=document.querySelectorAll(".playback-icons use");function z(){X(),K&&!Re.current&&($.current.currentTime=K),Re.current=!0,U.push($.current.currentTime),R||(R=!0,_&&W())}function ct(){return Y(this,null,function*(){oe(),U.push($.current.currentTime),_&&W(()=>{m=null,a=0,R=!1,S=!1,o=!1,U=[],d=0,E=1},!0),Te()})}function _t(){pe.current.value=Math.round($.current.currentTime),ye.current.value=Math.round($.current.currentTime)}function Bt(){const ve=O(Math.round($.current.currentTime));Je.current.innerText=`${ve.hour>0?ve.hour+":":""}${ve.minutes}:${ve.seconds}`,Je.current.setAttribute("datetime",`${ve.hour>0?" "+ve.hour+" ":""}${ve.minutes}m ${ve.seconds}s`)}function et(){var ve,Xe,It,jt,kt,qt,$e;const Xt=Math.round((ve=$.current)==null?void 0:ve.duration);(It=(Xe=pe.current)==null?void 0:Xe.setAttribute)==null||It.call(Xe,"max",Xt),(kt=(jt=ye.current)==null?void 0:jt.setAttribute)==null||kt.call(jt,"max",Xt);const Z=O(Xt);mt.current&&(mt.current.innerText=`${Z.hour>0?Z.hour+":":""}${Z.minutes}:${Z.seconds}`,($e=(qt=mt.current).setAttribute)==null||$e.call(qt,"datetime",`${Z.hour>0?" "+Z.hour+" ":""}${Z.minutes}m ${Z.seconds}s`))}function ht(){try{const ve=Math.round($.current.duration);pe.current.setAttribute("max",ve),ye.current.setAttribute("max",ve);const Xe=O(ve);mt.current.innerText=`${Xe.hour>0?Xe.hour+":":""}${Xe.minutes}:${Xe.seconds}`,mt.current.setAttribute("datetime",`${Xe.hour>0?" "+Xe.hour+" ":""}${Xe.minutes}m ${Xe.seconds}s`),_t(),Bt();const{width:It,height:jt,x:kt,y:qt}=Be.current.getBoundingClientRect();if(kt<0||qt<0||!It)return;if(!o){let $e=$.current.currentTime,Xt=$e-a;Math.abs(Xt)<10?(d+=Math.abs(Xt),a=$e,S||d-E*h>=0&&(E++,U.push(a),_&&W())):(a=$e,_&&W())}}catch(ve){console.log(ve)}}function Rt(){o=!0}function Ct(){$.current.playing&&U.push($.current.currentTime,a),a=$.current.currentTime,o=!1}function xt(){c=$.current.duration,c<=20&&(h=c/3),$.current.addEventListener("play",z)}function Tt(ve){ve.preventDefault(),(0,u.vp)()?($.current.style.width="100%",$.current.style.height="100%"):$.current.style.cssText=""}function Kt(){N()}function $t(ve){if(!x){w.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Xe=ve.target.dataset.seek?ve.target.dataset.seek:ve.target.value;$.current.currentTime=Xe,ye.current.value=Xe,pe.current.value=Xe}function Ht(ve){const Xe=Math.round(ve.offsetX/ve.target.clientWidth*parseInt(ve.target.getAttribute("max"),10));pe.current.setAttribute("data-seek",Xe);const It=O(Xe);ut.current.textContent=`${It.hour>0?It.hour+":":""}${It.minutes}:${It.seconds}`;const jt=$.current.getBoundingClientRect();ut.current.style.left=`${ve.pageX-jt.left}px`}function rn(ve){switch(ve.code){case"Space":ve.preventDefault(),Ae();break;case"ArrowRight":if(ve.preventDefault(),!x){w.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if($.current.currentTime>=$.current.duration)break;$.current.currentTime=parseInt($.current.currentTime)+5,_t();break;case"ArrowLeft":if(ve.preventDefault(),!x){w.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if($.current.currentTime===0)break;$.current.currentTime=parseInt($.current.currentTime)-5,_t();break;case"ArrowUp":ve.preventDefault(),$.current.volume<1&&($.current.volume=(parseInt($.current.volume*10)+1)/10);break;case"ArrowDown":ve.preventDefault(),$.current.volume>0&&($.current.volume=(parseInt($.current.volume*10)-1)/10);break}}return fe.current.addEventListener((0,u.gH)(),Tt),$.current.addEventListener("canplay",xt),$.current.addEventListener("ended",ct),$.current.addEventListener("seeking",Rt),$.current.addEventListener("seeked",Ct),$.current.addEventListener("loadedmetadata",et),pe.current.addEventListener("mousemove",Ht),pe.current.addEventListener("input",$t),$.current.addEventListener("timeupdate",ht),$.current.addEventListener("pause",Kt),$.current.addEventListener("volumechange",ge),document.addEventListener("keydown",rn),()=>{var ve,Xe,It,jt,kt,qt,$e,Xt,Z,e,t,n;(ve=$.current)==null||ve.removeEventListener("canplay",xt),(Xe=$.current)==null||Xe.removeEventListener("play",z),(It=$.current)==null||It.removeEventListener("ended",ct),(jt=$.current)==null||jt.removeEventListener("seeking",Rt),(kt=$.current)==null||kt.removeEventListener("seeked",Ct),(qt=pe.current)==null||qt.removeEventListener("mousemove",Ht),($e=pe.current)==null||$e.removeEventListener("input",$t),(Xt=$.current)==null||Xt.removeEventListener("timeupdate",ht),(Z=$.current)==null||Z.removeEventListener("pause",Kt),(e=$.current)==null||e.removeEventListener("loadedmetadata",et),(t=$.current)==null||t.removeEventListener("volumechange",ge),document.removeEventListener("keydown",rn),(n=$.current)!=null&&n.playing&&(U.push(a,$.current.currentTime),_&&W())}},[$,y]),(0,s.useEffect)(()=>{if($.current.onended=()=>{ae($)},$.current.oncontextmenu=()=>!1,(y==null?void 0:y.indexOf(".m3u8"))>-1){if($.current.canPlayType("application/vnd.apple.mpegurl"))$.current.src=y;else if(g().isSupported()){var ke=new(g());ke.loadSource(y),ke.attachMedia($.current)}}},[y]);const[me,le]=(0,s.useState)(1),Ae=()=>{$.current.paused||$.current.ended?$.current.play():$.current.pause(),oe()};function Ze(){$.current.muted=!$.current.muted,$.current.muted?(We.current.setAttribute("data-volume",volume.value),We.current.value=0):We.current.value=We.current.dataset.volume}return s.createElement("div",{style:{position:"relative"},ref:fe},s.createElement("div",{ref:Be,className:`${P.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${P.animate__loop}`},Ue&&M?M.login:" "),s.createElement("div",{className:P.container},s.createElement("div",{className:P["video-container"],id:"video-container"},s.createElement("div",{className:P["playback-animation"],id:"playback-animation"},s.createElement("svg",{className:P["playback-icons"]},s.createElement("use",{className:"hidden",href:"#play-icon"}),s.createElement("use",{href:"#pause"}))),s.createElement("video",{className:P.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:$,autoPlay:xe}),s.createElement("div",{className:`${P["video-controls"]} `,id:"video-controls"},s.createElement("div",{className:P["bottom-controls"]},s.createElement("div",{className:P["left-controls"]},s.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Ae},s.createElement("svg",{className:P["playback-icons"]},s.createElement("use",{ref:Oe,href:"#play-icon"}),s.createElement("use",{ref:Ge,style:{display:"none"},href:"#pause"}))),s.createElement("div",{className:P.time},s.createElement("time",{id:"time-elapsed",ref:Je},"00:00"),s.createElement("span",null," / "),s.createElement("time",{id:"duration",ref:mt},"00:00"))),s.createElement("div",{className:P["right-controls"]},x&&s.createElement(T.Z,{placement:"top",overlayClassName:P.rateOverlay,getPopupContainer:ke=>ke.parentNode,menu:{items:[{key:"1",label:s.createElement("span",{onClick:()=>{le(1),$.current.playbackRate=1}},"1.0x")},{key:"2",label:s.createElement("span",{onClick:()=>{le(1.5),$.current.playbackRate=1.5}},"1.5x")},{key:"3",label:s.createElement("span",{onClick:()=>{le(2),$.current.playbackRate=2}},"2.0x")}]}},s.createElement("div",{className:`${P.controlText} mr5`},we.formatMessage({id:"classroomUploadVideoResourcesCheckIn.playbackSpeed",defaultMessage:"\u500D\u901F"}))),s.createElement(te.CopyToClipboard,{text:y,onCopy:()=>w.ZP.success(we.formatMessage({id:"classrooms.copySuccess",defaultMessage:"\u590D\u5236\u6210\u529F"}))},s.createElement("button",{"data-title":we.formatMessage({id:"classrooms.copyLink",defaultMessage:"\u590D\u5236\u94FE\u63A5"})},s.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),s.createElement("div",{className:P["volume-controls"]},s.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:P["volume-button"],id:"volume-button",onClick:Ze},s.createElement("i",{ref:vt,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),s.createElement("i",{ref:qe,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),s.createElement("i",{ref:pt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),s.createElement("input",{className:P.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:We,style:{display:"none"},onClick:ge})),s.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:P["fullscreen-button"],onClick:()=>{(0,u.vp)()?(0,u.BU)():(0,u.Dj)(fe.current)}},s.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),s.createElement("div",{className:P["video-progress"]},s.createElement("progress",{ref:ye,value:"0",min:"0"}),s.createElement("input",{className:P.seek,ref:pe,value:"0",min:"0",type:"range",step:"1"}),s.createElement("div",{className:P["seek-tooltip"],ref:ut,id:"seek-tooltip"},"00:00"))))),s.createElement("svg",{style:{display:"none"}},s.createElement("defs",null,s.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},s.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),s.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},s.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),s.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},s.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),s.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},s.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),s.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},s.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),s.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},s.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),s.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},s.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),s.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},s.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},71941:function(Qe,ue,l){"use strict";l.r(ue),l.d(ue,{default:function(){return H}});var s=l(67294),w=l(35973),T=l(46303),k=l(14446),A={flex_box_center:"flex_box_center___yF0Vb",flex_space_between:"flex_space_between___vsNYO",flex_box_vertical_center:"flex_box_vertical_center___C4UqH",flex_box_center_end:"flex_box_center_end___EGtmE",flex_box_column:"flex_box_column___uX9g9",bg:"bg___sRga2",menu:"menu___s8xQl",desc:"desc___poG1Z",listItem:"listItem___ml9kN",info:"info___Z8R2Z",add:"add___jH8te",addForm:"addForm___O999t",attendanceCode:"attendanceCode___hPKyl",signInStatus:"signInStatus___usMPT",colorE02020:"colorE02020___hZvSz",color0152d9:"color0152d9___RgXzd",colorFA6400:"colorFA6400___g2yU6",iframe:"iframe___HRzMh"},g=l(52262);const q={init:[{stage_name:"\u521D\u59CB\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7EEA\u8BBA",parent:0,key:1},{discipline_name:"\u7EEA\u8BBA",shixun_count:"1",video_count:"2",parent:1,key:"11"},{shixun_name:"\u7EEA\u8BBA1",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f066ae1a9a8f418f837e5bf8d02b2690/76df907c20efd95bea0fa23424f10693-hd.m3u8",parent:"11",key:"111"},{shixun_name:"\u7EEA\u8BBA2",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/068ca7853da448c794eeffb0dee8bed4/5bb446a882043683e37474ff408f601b-hd.m3u8",parent:"11",key:"112"},{shixun_name:"C++\u5F00\u53D1\u73AF\u5883\u5E94\u7528\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/zxb937qn/challenges",parent:"11",key:"113"},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:2},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:2,key:"21"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"21",key:"212"},{discipline_name:"\u5224\u65AD\u8BED\u53E5",shixun_count:"2",video_count:"2",parent:2,key:"22"},{shixun_name:"if\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/3b4e821b200443948c553e4c6b51d940/b9601216238e60440192c2deb58adc53-hd.m3u8",parent:"22",key:"221"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08if\u591A\u91CD\u9009\u62E9\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/23xkyrmn/challenges",parent:"22",key:"222"},{shixun_name:"switch\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/3b4e821b200443948c553e4c6b51d940/b9601216238e60440192c2deb58adc53-hd.m3u8",parent:"22",key:"223"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"22",key:"224"},{discipline_name:"\u5FAA\u73AF",shixun_count:"2",video_count:"2",parent:2,key:"23"},{shixun_name:"while\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/dda06371a1594f5d865479a0fadc77bb/cb504e3af36ebe2ba979e8fe5fbb2222-hd.m3u8",parent:"23",key:"231"},{shixun_name:"C++\u5FAA\u73AF\u7ED3\u6784\u2014\u2014\uFF08\u719F\u6089while\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/8yhf4sn6/challenges",parent:"23",key:"232"},{shixun_name:"for\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/503194c483f44ccfacc7f9ee14cda70a/36cbd964c6657d1bbc43eb33b98f0c51-hd.m3u8",parent:"23",key:"233"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"23",key:"234"},{stage_name:"\u51FD\u6570",parent:0,key:3},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"31",key:"311"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"31",key:"312"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"31",key:"313"},{discipline_name:"\u4F20\u8F93\u4F20\u9012",shixun_count:"2",video_count:"1",parent:3,key:"32"},{shixun_name:"\u51FD\u6570\u7684\u53C2\u6570",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"32",key:"321"},{shixun_name:"C++\u53C2\u6570\u4F20\u90121",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/2phrn8yk/challenges",parent:"32",key:"322"},{shixun_name:"C++\u53C2\u6570\u4F20\u90122",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xsq7p4a6/challenges",parent:"32",key:"323"},{discipline_name:"\u51FD\u6570\u91CD\u8F7D",shixun_count:"1",video_count:"1",parent:3,key:"33"},{shixun_name:"\u51FD\u6570\u91CD\u8F7D",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"33",key:"331"},{shixun_name:"C++\u51FD\u6570\u91CD\u8F7D",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/6hbqpv7e/challenges",parent:"33",key:"332"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"34"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"34",key:"341"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"34",key:"342"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"34",key:"343"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:4},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"41",key:"411"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"41",key:"412"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"41",key:"413"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:5},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"51",key:"511"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"51",key:"512"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:6},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:6,key:"61"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"61",key:"611"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"61",key:"612"},{discipline_name:"\u6307\u9488",shixun_count:"3",video_count:"1",parent:6,key:"62"},{shixun_name:"\u6307\u9488",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/00a5448862c84c42b1a369ac2be88ae9/9b9627710a725e570ede478663c2589d-hd.m3u8",parent:"62",key:"621"},{shixun_name:"\u6307\u9488\u7EC3\u624B-\u5B57\u7B26\u4E32\u5012\u5E8F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lkn6xuc3/challenges",parent:"62",key:"622"},{shixun_name:"\u6307\u9488\u6570\u7EC4-\u5355\u8BCD\u5012\u5E8F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/vtk73ny2/challenges",parent:"62",key:"623"},{shixun_name:"\u7528\u6307\u9488\u89E3\u51B3\u95EE\u9898-\u6587\u672C\u683C\u5F0F\u5904\u7406",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xfnp73fz/challenges",parent:"62",key:"624"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:7},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"1",video_count:"3",parent:7,key:"71"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(3)",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7806?subject_id=jpl5vs26",parent:"71",key:"713"},{shixun_name:"\u7EE7\u627F\u4E0E\u6D3E\u751F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/f83ipgyo/challenges",parent:"71",key:"714"},{stage_name:"\u591A\u6001\u6027",parent:0,key:8},{discipline_name:"\u591A\u6001\u6027",shixun_count:"1",video_count:"2",parent:8,key:"81"},{shixun_name:"\u591A\u6001\u6027(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/5a960b51ebf346d2b77afb3b70d00768/73d6fa00824f4c73b885d33f688c3294-hd.m3u8",parent:"81",key:"811"},{shixun_name:"\u591A\u6001\u6027(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/08fe97a36e184cf1bf27cdd7a24794c9/625c4e9e863840443f5332ccc02761fc-hd.m3u8",parent:"81",key:"812"},{shixun_name:"\u865A\u51FD\u6570\u4E0E\u591A\u6001\u6027",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/9pjmg7uf/challenges",parent:"81",key:"813"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:9},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"1",video_count:"3",parent:9,key:"91"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/459f2693af7b48f8b854033e666a77f8/f5b140c5adc0f24ac56b72492373306a-hd.m3u8",parent:"91",key:"912"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(3)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/ccea50bc15d2468aab99aff19eb69e16/a5ecac1ee0c07360d07880187a787085-hd.m3u8",parent:"91",key:"913"},{shixun_name:"\u7FA4\u4F53\u7C7B\u548C\u7FA4\u4F53\u6570\u636E\u7684\u7EC4\u7EC7",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/kfv3my9o/challenges",parent:"91",key:"914"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:10},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"1",video_count:"3",parent:10,key:"101"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"101",key:"1011"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/23be6a61e4e54db398b9172b1213a1f2/3f1e88f97957369e29ef2bde63640004-hd.m3u8",parent:"101",key:"1012"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(3)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/a5887adcc34445bba695de7dcadb781e/0fb3a6a6ad38f7a107054c5f2f0de262-hd.m3u8",parent:"101",key:"1013"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hmtw5iq6/challenges",parent:"101",key:"1014"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA11",parent:0,key:1911},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"1",video_count:"2",parent:1911,key:9111},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)22222",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:9111,key:"91111"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/65c02365a4ad40858b69b8cbe3ca4aa1/18a2c5697d4a84a971c500565509f038-hd.m3u8",parent:"9111",key:"91112"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hsvuixpm/challenges",parent:"9111",key:"91113"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:12},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:12,key:"121"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"121",key:"1211"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"121",key:"1212"}].map(x=>(x.parent=Number(x.parent),x.key=Number(x.key),x)),review:[{stage_name:"\u590D\u4E60\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:1},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:1,key:"11"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"11",key:"111"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"11",key:"112"},{discipline_name:"\u5FAA\u73AF",shixun_count:"2",video_count:"2",parent:1,key:"12"},{shixun_name:"while\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/dda06371a1594f5d865479a0fadc77bb/cb504e3af36ebe2ba979e8fe5fbb2222-hd.m3u8",parent:"12",key:"121"},{shixun_name:"C++\u5FAA\u73AF\u7ED3\u6784\u2014\u2014\uFF08\u719F\u6089while\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/8yhf4sn6/challenges",parent:"12",key:"122"},{shixun_name:"for\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/503194c483f44ccfacc7f9ee14cda70a/36cbd964c6657d1bbc43eb33b98f0c51-hd.m3u8",parent:"12",key:"123"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"12",key:"124"},{stage_name:"\u51FD\u6570",parent:0,key:2},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:2,key:"21"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"21",key:"212"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"21",key:"213"},{discipline_name:"\u4F20\u8F93\u4F20\u9012",shixun_count:"2",video_count:"1",parent:2,key:"22"},{shixun_name:"\u51FD\u6570\u7684\u53C2\u6570",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"22",key:"221"},{shixun_name:"C++\u53C2\u6570\u4F20\u90121",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/2phrn8yk/challenges",parent:"22",key:"222"},{shixun_name:"C++\u53C2\u6570\u4F20\u90122",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xsq7p4a6/challenges",parent:"22",key:"223"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"2",parent:2,key:"23"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"23",key:"231"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"23",key:"232"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"23",key:"233"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:3},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"31",key:"311"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"31",key:"312"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"31",key:"313"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:4},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"41",key:"411"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"41",key:"412"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:5},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"51",key:"511"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"51",key:"512"},{discipline_name:"\u6307\u9488",shixun_count:"1",video_count:"1",parent:5,key:"52"},{shixun_name:"\u6307\u9488",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/00a5448862c84c42b1a369ac2be88ae9/9b9627710a725e570ede478663c2589d-hd.m3u8",parent:"52",key:"521"},{shixun_name:"\u7528\u6307\u9488\u89E3\u51B3\u95EE\u9898-\u6587\u672C\u683C\u5F0F\u5904\u7406",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xfnp73fz/challenges",parent:"52",key:"522"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:6},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"0",video_count:"2",parent:6,key:"61"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"61",key:"611"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"61",key:"612"},{stage_name:"\u591A\u6001\u6027",parent:0,key:7},{discipline_name:"\u591A\u6001\u6027",shixun_count:"1",video_count:"2",parent:7,key:"71"},{shixun_name:"\u591A\u6001\u6027(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/5a960b51ebf346d2b77afb3b70d00768/73d6fa00824f4c73b885d33f688c3294-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u591A\u6001\u6027(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/08fe97a36e184cf1bf27cdd7a24794c9/625c4e9e863840443f5332ccc02761fc-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u865A\u51FD\u6570\u4E0E\u591A\u6001\u6027",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/9pjmg7uf/challenges",parent:"71",key:"713"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:8},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"1",video_count:"1",parent:8,key:"81"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"81",key:"811"},{shixun_name:"\u7FA4\u4F53\u7C7B\u548C\u7FA4\u4F53\u6570\u636E\u7684\u7EC4\u7EC7",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/kfv3my9o/challenges",parent:"81",key:"812"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:9},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"1",video_count:"1",parent:9,key:"91"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hmtw5iq6/challenges",parent:"91",key:"912"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",parent:0,key:10},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"0",video_count:"2",parent:10,key:"101"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:"101",key:"1011"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/65c02365a4ad40858b69b8cbe3ca4aa1/18a2c5697d4a84a971c500565509f038-hd.m3u8",parent:"101",key:"1012"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hsvuixpm/challenges",parent:"101",key:"1013"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:9911},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:9911,key:"99111"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"99111",key:"991111"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"99111",key:"991112"}].map(x=>(x.parent=Number(x.parent),x.key=Number(x.key),x)),before:[{stage_name:"\u8003\u524D\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7EEA\u8BBA",parent:0,key:1},{discipline_name:"\u7EEA\u8BBA",shixun_count:"1",video_count:"2",parent:1,key:"11"},{shixun_name:"\u7EEA\u8BBA1",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f066ae1a9a8f418f837e5bf8d02b2690/76df907c20efd95bea0fa23424f10693-hd.m3u8",parent:"11",key:"111"},{shixun_name:"\u7EEA\u8BBA2",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/068ca7853da448c794eeffb0dee8bed4/5bb446a882043683e37474ff408f601b-hd.m3u8",parent:"11",key:"112"},{shixun_name:"C++\u5F00\u53D1\u73AF\u5883\u5E94\u7528\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/zxb937qn/challenges",parent:"11",key:"113"},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:2},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:2,key:"21"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"21",key:"212"},{stage_name:"\u51FD\u6570",parent:0,key:3},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"31",key:"311"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"31",key:"312"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"31",key:"313"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"32"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"32",key:"321"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"32",key:"322"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"32",key:"323"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:4},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"41",key:"411"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"41",key:"412"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"41",key:"413"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:5},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"51",key:"511"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"51",key:"512"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:6},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:6,key:"61"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"61",key:"611"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"61",key:"612"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:7},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"1",video_count:"3",parent:7,key:"71"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(3)",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7806?subject_id=jpl5vs26",parent:"71",key:"713"},{shixun_name:"\u7EE7\u627F\u4E0E\u6D3E\u751F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/f83ipgyo/challenges",parent:"71",key:"714"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:8},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"0",video_count:"1",parent:8,key:"81"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"81",key:"811"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:9},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"0",video_count:"1",parent:9,key:"91"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/23be6a61e4e54db398b9172b1213a1f2/3f1e88f97957369e29ef2bde63640004-hd.m3u8",parent:"91",key:"912"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",parent:0,key:10},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"0",video_count:"1",parent:10,key:"101"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:"101",key:"1011"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:9911},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:9911,key:"99111"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"99111",key:"991111"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"99111",key:"991112"}].map(x=>(x.parent=Number(x.parent),x.key=Number(x.key),x))};var te=l(15070),u=l(6104),P=Object.defineProperty,ne=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,G=(x,y,_)=>y in x?P(x,y,{enumerable:!0,configurable:!0,writable:!0,value:_}):x[y]=_,he=(x,y)=>{for(var _ in y||(y={}))Y.call(y,_)&&G(x,_,y[_]);if(ne)for(var _ of ne(y))O.call(y,_)&&G(x,_,y[_]);return x};const re=({classroomList:x,loading:y,dispatch:_})=>{const L=(0,w.useIntl)(),[v]=(0,w.useSearchParams)(),[I]=(0,s.useState)(he({},(0,w.useParams)())),[K,N]=(0,s.useState)("init"),[X,ae]=(0,s.useState)(""),xe=(0,s.useRef)();(0,s.useEffect)(()=>{const we=v.get("tabId");we&&(N(we),I.status=we)},[I.categoryId,v.get("tabId")]);const Te=we=>{N(we.key)},Ue=[{name:"\u521D\u59CB\u5B66\u4E60",id:"init"},{name:"\u590D\u4E60\u5B66\u4E60",id:"review"},{name:"\u8003\u524D\u5B66\u4E60",id:"before"}],Fe=we=>{we.data.type==="playVideo"&&ae(we.data.url)};(0,s.useEffect)(()=>{K&&Le(),window.addEventListener("message",Fe)},[K]);const Le=()=>{var we;(we=xe.current.contentWindow)==null||we.postMessage({data:q[K]},"*")};return s.createElement("section",null,s.createElement(te.Z,{isLoading:y["classroomList/getClassroomAttendancesList"],tabDataSource:Ue,isAdmin:(0,g.GJ)(),onTabMenuClick:Te,defaultSelectedKeys:[K]}),s.createElement("section",null,s.createElement(T.Z,{loading:y["classroomList/getClassroomAttendancesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},s.createElement("iframe",{src:"/knowledgegraph/parseTree.html",onLoad:Le,className:A.iframe,ref:xe}))),s.createElement(k.default,{open:!!X,onCancel:()=>ae(""),width:800,footer:null,bodyStyle:{padding:0},centered:!0,destroyOnClose:!0},s.createElement(u.Z,{src:X,autoPlay:!0,toLog:!1})))};var H=(0,w.connect)(({classroomList:x,loading:y,globalSetting:_})=>({classroomList:x,globalSetting:_,loading:y.effects}))(re)},15070:function(Qe,ue,l){"use strict";l.d(ue,{Z:function(){return Y}});var s=l(67294),w=l(71230),T=l(15746),k=l(68508),A=l(85418),g=l(2453),q=l(83062),te={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},u=l(35973),P=l(52262),Y=({isLoading:O,addText:G,tabDataSource:he,isAdmin:re,dispatch:H,classroomList:x,type:y,isExercise:_,defaultSelectedKeys:L,onTabMenuClick:v,getDropdownMenu:I,showControlButton:K,buttonText:N,buttonIcon:X="icon-tianjiadaohang",extraNode:ae,user:xe,onButtonClick:Te,isModelUser:Ue})=>{var Fe,Le,we,At,rt;const $=(0,u.useIntl)(),Be=(0,u.useParams)();return s.createElement("div",{className:te.tabMenuContainer},s.createElement(w.Z,null,s.createElement(T.Z,{flex:"1"},s.createElement(k.default,{onSelect:fe=>O?{}:v(fe),mode:"horizontal",selectedKeys:L},he.map(fe=>s.createElement(k.default.Item,{key:typeof fe.index=="number"?fe.index:fe.id},s.createElement("span",{className:"c-grey-666"},fe.name),fe.total!==void 0&&re&&s.createElement("span",{className:"c-grey-999 ml20"},fe.total||0))))),re&&_&&s.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{H({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),re&&s.createElement(T.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},_&&s.createElement(A.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>s.createElement(k.default,null,s.createElement(k.default.Item,{key:1,onClick:()=>{var fe;if((0,P.Rm)()&&!((fe=x.AssistantObject.exercise)!=null&&fe.can_download)){g.ZP.warning($.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"}));return}H({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:y,exportType:"exercise",category_id:Be.categoryId}})}},$.formatMessage({id:"classroomClassroomExperiments.studentGrades",defaultMessage:"\u5B66\u751F\u6210\u7EE9"})),s.createElement(k.default.Item,{key:3,onClick:()=>{var fe;if((0,P.Rm)()&&!((fe=x.AssistantObject.exercise)!=null&&fe.can_download)){g.ZP.warning($.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"}));return}u.history.push(`/classrooms/${Be==null?void 0:Be.coursesId}/exportlist/exercise_score,export_exercise_users`)}},$.formatMessage({id:"classrooms.historicalExport",defaultMessage:"\u5386\u53F2\u5BFC\u51FA"})))},s.createElement("div",{className:"c-blue font16 ml20 current",style:{marginTop:2}},s.createElement("span",{style:{color:"#666666",cursor:"pointer"}},s.createElement("i",{className:"iconfont icon-xiazai6"})))),s.createElement("div",{className:te.control},s.createElement("div",{className:te.extra},ae),K&&(N==$.formatMessage({id:"classrooms.addLiveBroadcast",defaultMessage:"\u6DFB\u52A0\u76F4\u64AD"})?s.createElement(A.Z,{menu:{items:(Le=(Fe=[{label:s.createElement("div",{onClick:()=>{Te("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Ue&&{label:s.createElement("div",{onClick:()=>{Te("\u5934\u6B4C")}},$.formatMessage({id:"classrooms.liveBroadcast",defaultMessage:"\u76F4\u64AD"})),key:"2",show:!0}])==null?void 0:Fe.filter(fe=>fe==null?void 0:fe.show))==null?void 0:Le.map(fe=>({label:fe==null?void 0:fe.label,key:fe==null?void 0:fe.key}))}},s.createElement("span",{className:te.selectBtn},s.createElement("span",null,s.createElement("i",{className:`iconfont ${X}`})),s.createElement("span",null,N))):s.createElement("span",{onClick:Te,style:{cursor:"pointer"},className:te.selectBtn},s.createElement("span",null,s.createElement("i",{className:`iconfont ${X}`})),s.createElement("span",null,N))),!!I&&s.createElement(A.Z,{disabled:((we=xe==null?void 0:xe.userInfo)==null?void 0:we.user_status)===2,className:"ml10",dropdownRender:I},s.createElement("span",{className:((At=xe==null?void 0:xe.userInfo)==null?void 0:At.user_status)===2?te.selectBtn1:te.selectBtn},s.createElement("span",null,s.createElement("i",{className:"iconfont icon-tianjiadaohang"})),s.createElement(q.Z,{title:((rt=xe==null?void 0:xe.userInfo)==null?void 0:rt.user_status)===2&&"\u6559\u5B66\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5E73\u53F0\u5DF2\u6682\u505C\u63D0\u4F9B\u5728\u7EBF\u8003\u8BD5\u521B\u5EFA\u529F\u80FD"},s.createElement("span",null,G||$.formatMessage({id:"classroomExams.createTestPaper",defaultMessage:"\u521B\u5EFA\u8BD5\u5377"})))))))))}},51959:function(Qe,ue,l){"use strict";l.d(ue,{BU:function(){return w},Dj:function(){return s},gH:function(){return T},vp:function(){return k}});function s(A){try{A.mozRequestFullScreen?A.mozRequestFullScreen():A.webkitRequestFullScreen&&A.webkitRequestFullScreen()}catch(g){console.log(g,":e")}}function w(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const T=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function k(){var A=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,g=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",A),window.isFullScreen?window.isFullScreen:A!=null}},24577:function(Qe,ue,l){"use strict";l.d(ue,{Z:function(){return Xt}});class s{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");let t=Object(e);for(let n=1;n<arguments.length;n++){let i=arguments[n];if(i!=null)for(let r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t},typeof self.Promise!="function"&&l(82702).polyfill()}}s.install();var w=s,T=l(17187),k=l.n(T);class A{static e(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","error",n),A.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}static i(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","info",n),A.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}static w(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","warn",n),A.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}static d(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","debug",n),A.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}static v(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","verbose",n),A.ENABLE_VERBOSE&&console.log(n)}}A.GLOBAL_TAG="flv.js",A.FORCE_GLOBAL_TAG=!1,A.ENABLE_ERROR=!0,A.ENABLE_INFO=!0,A.ENABLE_WARN=!0,A.ENABLE_DEBUG=!0,A.ENABLE_VERBOSE=!0,A.ENABLE_CALLBACK=!1,A.emitter=new(k());var g=A;class q{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(e){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let e=(this._now()-this._lastCheckpoint)/1e3;return e==0&&(e=1),this._intervalBytes/e/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}var te=q;class u{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class P extends u{constructor(e){super(e)}get name(){return"IllegalStateException"}}class ne extends u{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class Y extends u{constructor(e){super(e)}get name(){return"NotImplementedException"}}const O={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},G={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class he{constructor(e){this._type=e||"undefined",this._status=O.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=O.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===O.kConnecting||this._status===O.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(e){this._onContentLengthKnown=e}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(e){this._onURLRedirect=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}open(e,t){throw new Y("Unimplemented abstract function!")}abort(){throw new Y("Unimplemented abstract function!")}}let re={};function H(){let Z=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(Z)||/(opr)[\/]([\w.]+)/.exec(Z)||/(chrome)[ \/]([\w.]+)/.exec(Z)||/(iemobile)[\/]([\w.]+)/.exec(Z)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Z)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Z)||/(webkit)[ \/]([\w.]+)/.exec(Z)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Z)||/(msie) ([\w.]+)/.exec(Z)||Z.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Z)||Z.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Z)||[],t=/(ipad)/.exec(Z)||/(ipod)/.exec(Z)||/(windows phone)/.exec(Z)||/(iphone)/.exec(Z)||/(kindle)/.exec(Z)||/(android)/.exec(Z)||/(windows)/.exec(Z)||/(mac)/.exec(Z)||/(linux)/.exec(Z)||/(cros)/.exec(Z)||[],n={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",majorVersion:e[4]||e[2]||"0",platform:t[0]||""},i={};if(n.browser){i[n.browser]=!0;let r=n.majorVersion.split(".");i.version={major:parseInt(n.majorVersion,10),string:n.version},r.length>1&&(i.version.minor=parseInt(r[1],10)),r.length>2&&(i.version.build=parseInt(r[2],10))}if(n.platform&&(i[n.platform]=!0),(i.chrome||i.opr||i.safari)&&(i.webkit=!0),i.rv||i.iemobile){i.rv&&delete i.rv;let r="msie";n.browser=r,i[r]=!0}if(i.edge){delete i.edge;let r="msedge";n.browser=r,i[r]=!0}if(i.opr){let r="opera";n.browser=r,i[r]=!0}if(i.safari&&i.android){let r="android";n.browser=r,i[r]=!0}i.name=n.browser,i.platform=n.platform;for(let r in re)re.hasOwnProperty(r)&&delete re[r];Object.assign(re,i)}H();var x=re;class y extends he{static isSupported(){try{let e=x.msedge&&x.version.minor>=15048,t=x.msedge?e:!0;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}}constructor(e,t){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let n=e.url;this._config.reuseRedirectedURL&&e.redirectedURL!=null&&(n=e.redirectedURL);let i=this._seekHandler.getConfig(n,t),r=new self.Headers;if(typeof i.headers=="object"){let b=i.headers;for(let se in b)b.hasOwnProperty(se)&&r.append(se,b[se])}let f={method:"GET",headers:r,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let b in this._config.headers)r.append(b,this._config.headers[b]);e.cors===!1&&(f.mode="same-origin"),e.withCredentials&&(f.credentials="include"),e.referrerPolicy&&(f.referrerPolicy=e.referrerPolicy),this._status=O.kConnecting,self.fetch(i.url,f).then(b=>{if(this._requestAbort){this._requestAbort=!1,this._status=O.kIdle;return}if(b.ok&&b.status>=200&&b.status<=299){if(b.url!==i.url&&this._onURLRedirect){let J=this._seekHandler.removeURLParameters(b.url);this._onURLRedirect(J)}let se=b.headers.get("Content-Length");return se!=null&&(this._contentLength=parseInt(se),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,b.body.getReader())}else if(this._status=O.kError,this._onError)this._onError(G.HTTP_STATUS_CODE_INVALID,{code:b.status,msg:b.statusText});else throw new u("FetchStreamLoader: Http code invalid, "+b.status+" "+b.statusText)}).catch(b=>{if(this._status=O.kError,this._onError)this._onError(G.EXCEPTION,{code:-1,msg:b.message});else throw b})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=O.kError;let n=G.EARLY_EOF,i={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(n,i);else throw new u(i.msg)}else this._status=O.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1);else{if(this._requestAbort===!0)return this._requestAbort=!1,this._status=O.kComplete,e.cancel();this._status=O.kBuffering;let n=t.value.buffer,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),this._pump(e)}}).catch(t=>{if(t.code===11&&x.msedge)return;this._status=O.kError;let n=0,i=null;if((t.code===19||t.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(n=G.EARLY_EOF,i={code:t.code,msg:"Fetch stream meet Early-EOF"}):(n=G.EXCEPTION,i={code:t.code,msg:t.message}),this._onError)this._onError(n,i);else throw new u(i.msg)})}}var _=y;class L extends he{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="moz-chunked-arraybuffer",e.responseType==="moz-chunked-arraybuffer"}catch(e){return g.w("MozChunkedLoader",e.message),!1}}constructor(e,t){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let n=e.url;this._config.reuseRedirectedURL&&e.redirectedURL!=null&&(n=e.redirectedURL);let i=this._seekHandler.getConfig(n,t);this._requestURL=i.url;let r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="moz-chunked-arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onloadend=this._onLoadEnd.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),typeof i.headers=="object"){let f=i.headers;for(let b in f)f.hasOwnProperty(b)&&r.setRequestHeader(b,f[b])}if(typeof this._config.headers=="object"){let f=this._config.headers;for(let b in f)f.hasOwnProperty(b)&&r.setRequestHeader(b,f[b])}this._status=O.kConnecting,r.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=O.kComplete}_onReadyStateChange(e){let t=e.target;if(t.readyState===2){if(t.responseURL!=null&&t.responseURL!==this._requestURL&&this._onURLRedirect){let n=this._seekHandler.removeURLParameters(t.responseURL);this._onURLRedirect(n)}if(t.status!==0&&(t.status<200||t.status>299))if(this._status=O.kError,this._onError)this._onError(G.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new u("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);else this._status=O.kBuffering}}_onProgress(e){if(this._status===O.kError)return;this._contentLength===null&&e.total!==null&&e.total!==0&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let t=e.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}_onLoadEnd(e){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===O.kError)return;this._status=O.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(e){this._status=O.kError;let t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=G.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=G.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new u(n.msg)}}var v=L;class I extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="ms-stream",e.responseType==="ms-stream"}catch(e){return Log.w("MSStreamLoader",e.message),!1}}constructor(e,t){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(e,t){this._internalOpen(e,t,!1)}_internalOpen(e,t,n){this._dataSource=e,n?this._currentRange=t:this._totalRange=t;let i=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?i=this._currentRedirectedURL:e.redirectedURL!=null&&(i=e.redirectedURL));let r=this._seekHandler.getConfig(i,t);this._currentRequestURL=r.url;let f=this._reader=new self.MSStreamReader;f.onprogress=this._msrOnProgress.bind(this),f.onload=this._msrOnLoad.bind(this),f.onerror=this._msrOnError.bind(this);let b=this._xhr=new XMLHttpRequest;if(b.open("GET",r.url,!0),b.responseType="ms-stream",b.onreadystatechange=this._xhrOnReadyStateChange.bind(this),b.onerror=this._xhrOnError.bind(this),e.withCredentials&&(b.withCredentials=!0),typeof r.headers=="object"){let se=r.headers;for(let J in se)se.hasOwnProperty(J)&&b.setRequestHeader(J,se[J])}if(typeof this._config.headers=="object"){let se=this._config.headers;for(let J in se)se.hasOwnProperty(J)&&b.setRequestHeader(J,se[J])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,b.send()}abort(){this._internalAbort(),this._status=LoaderStatus.kComplete}_internalAbort(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}_xhrOnReadyStateChange(e){let t=e.target;if(t.readyState===2)if(t.status>=200&&t.status<=299){if(this._status=LoaderStatus.kBuffering,t.responseURL!=null){let i=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&i!==this._currentRedirectedURL&&(this._currentRedirectedURL=i,this._onURLRedirect&&this._onURLRedirect(i))}let n=t.getResponseHeader("Content-Length");if(n!=null&&this._contentLength==null){let i=parseInt(n);i>0&&(this._contentLength=i,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+t.status+" "+t.statusText);else if(t.readyState===3&&t.status>=200&&t.status<=299){this._status=LoaderStatus.kBuffering;let n=t.response;this._reader.readAsArrayBuffer(n)}}_xhrOnError(e){this._status=LoaderStatus.kError;let t=LoaderErrors.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type};if(this._onError)this._onError(t,n);else throw new RuntimeException(n.msg)}_msrOnProgress(e){let n=e.target.result;if(n==null){this._doReconnectIfNeeded();return}let i=n.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=n.byteLength;let r=this._totalRange.from+this._receivedLength;this._receivedLength+=i.byteLength,this._onDataArrival&&this._onDataArrival(i,r,this._receivedLength),n.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${r+i.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let e={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,e,!0)}}_msrOnLoad(e){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(e){this._status=LoaderStatus.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength<this._contentLength?(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:"MSStream meet Early-Eof"}):(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new RuntimeException(n.msg)}}var K=null;class N extends he{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer",e.responseType==="arraybuffer"}catch(e){return g.w("RangeLoader",e.message),!1}}constructor(e,t){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=e,this._config=t,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new te,this._requestAbort=!1,this._waitForTotalLength=!1,this._totalLengthReceived=!1,this._currentRequestURL=null,this._currentRedirectedURL=null,this._currentRequestRange=null,this._totalLength=null,this._contentLength=null,this._receivedLength=0,this._lastTimeLoaded=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}get currentSpeed(){return this._speedSampler.lastSecondKBps}open(e,t){this._dataSource=e,this._range=t,this._status=O.kConnecting;let n=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(n=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!n?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let e=this._currentChunkSizeKB*1024,t=this._range.from+this._receivedLength,n=t+e;this._contentLength!=null&&n-this._range.from>=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(e,t){this._lastTimeLoaded=0;let n=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?n=this._currentRedirectedURL:e.redirectedURL!=null&&(n=e.redirectedURL));let i=this._seekHandler.getConfig(n,t);this._currentRequestURL=i.url;let r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onload=this._onLoad.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),typeof i.headers=="object"){let f=i.headers;for(let b in f)f.hasOwnProperty(b)&&r.setRequestHeader(b,f[b])}if(typeof this._config.headers=="object"){let f=this._config.headers;for(let b in f)f.hasOwnProperty(b)&&r.setRequestHeader(b,f[b])}r.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=O.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(e){let t=e.target;if(t.readyState===2){if(t.responseURL!=null){let n=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=O.kBuffering}else if(this._status=O.kError,this._onError)this._onError(G.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new u("RangeLoader: Http code invalid, "+t.status+" "+t.statusText)}}_onProgress(e){if(this._status===O.kError)return;if(this._contentLength===null){let n=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,n=!0;let i=e.total;this._internalAbort(),i!=null&i!==0&&(this._totalLength=i)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,n){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let t=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(t)}_normalizeSpeed(e){let t=this._chunkSizeKBList,n=t.length-1,i=0,r=0,f=n;if(e<t[0])return t[0];for(;r<=f;){if(i=r+Math.floor((f-r)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?r=i+1:f=i-1}}_onLoad(e){if(this._status===O.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let t=this._speedSampler.lastSecondKBps;if(t===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(t=this._speedSampler.currentKBps)),t!==0){let f=this._normalizeSpeed(t);this._currentSpeedNormalized!==f&&(this._currentSpeedNormalized=f,this._currentChunkSizeKB=f)}let n=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength;let r=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():r=!0,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),r&&(this._status=O.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(e){this._status=O.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=G.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=G.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new u(n.msg)}}var X=N;class ae extends he{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(e){return!1}}constructor(){super("websocket-loader"),this.TAG="WebSocketLoader",this._needStash=!0,this._ws=null,this._requestAbort=!1,this._receivedLength=0}destroy(){this._ws&&this.abort(),super.destroy()}open(e){try{let t=this._ws=new self.WebSocket(e.url);t.binaryType="arraybuffer",t.onopen=this._onWebSocketOpen.bind(this),t.onclose=this._onWebSocketClose.bind(this),t.onmessage=this._onWebSocketMessage.bind(this),t.onerror=this._onWebSocketError.bind(this),this._status=O.kConnecting}catch(t){this._status=O.kError;let n={code:t.code,msg:t.message};if(this._onError)this._onError(G.EXCEPTION,n);else throw new u(n.msg)}}abort(){let e=this._ws;e&&(e.readyState===0||e.readyState===1)&&(this._requestAbort=!0,e.close()),this._ws=null,this._status=O.kComplete}_onWebSocketOpen(e){this._status=O.kBuffering}_onWebSocketClose(e){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=O.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(e){if(e.data instanceof ArrayBuffer)this._dispatchArrayBuffer(e.data);else if(e.data instanceof Blob){let t=new FileReader;t.onload=()=>{this._dispatchArrayBuffer(t.result)},t.readAsArrayBuffer(e.data)}else{this._status=O.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(this._onError)this._onError(G.EXCEPTION,t);else throw new u(t.msg)}}_dispatchArrayBuffer(e){let t=e,n=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}_onWebSocketError(e){this._status=O.kError;let t={code:e.code,msg:e.message};if(this._onError)this._onError(G.EXCEPTION,t);else throw new u(t.msg)}}var xe=ae;class Te{constructor(e){this._zeroStart=e||!1}getConfig(e,t){let n={};if(t.from!==0||t.to!==-1){let i;t.to!==-1?i=`bytes=${t.from.toString()}-${t.to.toString()}`:i=`bytes=${t.from.toString()}-`,n.Range=i}else this._zeroStart&&(n.Range="bytes=0-");return{url:e,headers:n}}removeURLParameters(e){return e}}var Ue=Te;class Fe{constructor(e,t){this._startName=e,this._endName=t}getConfig(e,t){let n=e;if(t.from!==0||t.to!==-1){let i=!0;n.indexOf("?")===-1&&(n+="?",i=!1),i&&(n+="&"),n+=`${this._startName}=${t.from.toString()}`,t.to!==-1&&(n+=`&${this._endName}=${t.to.toString()}`)}return{url:n,headers:{}}}removeURLParameters(e){let t=e.split("?")[0],n,i=e.indexOf("?");i!==-1&&(n=e.substring(i+1));let r="";if(n!=null&&n.length>0){let f=n.split("&");for(let b=0;b<f.length;b++){let se=f[b].split("="),J=b>0;se[0]!==this._startName&&se[0]!==this._endName&&(J&&(r+="&"),r+=f[b])}}return r.length===0?t:t+"?"+r}}var Le=Fe;class we{constructor(e,t,n){this.TAG="IOController",this._config=t,this._extraData=n,this._stashInitialSize=1024*384,t.stashInitialSize!=null&&t.stashInitialSize>0&&(this._stashInitialSize=t.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,t.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new te,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(e){this._extraData=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onSeeked(){return this._onSeeked}set onSeeked(e){this._onSeeked=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}get onRedirect(){return this._onRedirect}set onRedirect(e){this._onRedirect=e}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(e){this._onRecoveredEarlyEof=e}get currentURL(){return this._dataSource.url}get hasRedirect(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===X?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if(e.seekType==="range")this._seekHandler=new Ue(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new Le(t,n)}else if(e.seekType==="custom"){if(typeof e.customSeekHandler!="function")throw new ne("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new ne(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=xe;else if(_.isSupported())this._loaderClass=_;else if(v.isSupported())this._loaderClass=v;else if(X.isSupported())this._loaderClass=X;else throw new u("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}}seek(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)}_internalSeek(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;let n={from:e,to:-1};this._currentRange={from:n.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,n),this._onSeeked&&this._onSeeked()}updateUrl(e){if(!e||typeof e!="string"||e.length===0)throw new ne("Url must be a non-empty string!");this._dataSource.url=e}_expandBuffer(e){let t=this._stashSize;for(;t+1024*1024*1<e;)t*=2;if(t+=1024*1024*1,t===this._bufferSize)return;let n=new ArrayBuffer(t);if(this._stashUsed>0){let i=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,t).set(i,0)}this._stashBuffer=n,this._bufferSize=t}_normalizeSpeed(e){let t=this._speedNormalizeList,n=t.length-1,i=0,r=0,f=n;if(e<t[0])return t[0];for(;r<=f;){if(i=r+Math.floor((f-r)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?r=i+1:f=i-1}}_adjustStashSize(e){let t=0;this._config.isLive||e<512?t=e:e>=512&&e<=1024?t=Math.floor(e*1.5):t=e*2,t>8192&&(t=8192);let n=t*1024+1024*1024*1;this._bufferSize<n&&this._expandBuffer(n),this._stashSize=t*1024}_dispatchChunks(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)}_onURLRedirect(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)}_onContentLengthKnown(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)}_onLoaderChunkArrival(e,t,n){if(!this._onDataArrival)throw new P("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(e.byteLength);let i=this._speedSampler.lastSecondKBps;if(i!==0){let r=this._normalizeSpeed(i);this._speedNormalized!==r&&(this._speedNormalized=r,this._adjustStashSize(r))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=t),this._stashUsed+e.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;else{let r=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let f=this._stashBuffer.slice(0,this._stashUsed),b=this._dispatchChunks(f,this._stashByteStart);if(b<f.byteLength){if(b>0){let se=new Uint8Array(f,b);r.set(se,0),this._stashUsed=se.byteLength,this._stashByteStart+=b}}else this._stashUsed=0,this._stashByteStart+=b;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),r=new Uint8Array(this._stashBuffer,0,this._bufferSize)),r.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let f=this._dispatchChunks(e,t);if(f<e.byteLength){let b=e.byteLength-f;b>this._bufferSize&&(this._expandBuffer(b),r=new Uint8Array(this._stashBuffer,0,this._bufferSize)),r.set(new Uint8Array(e,f),0),this._stashUsed+=b,this._stashByteStart=t+f}}}else if(this._stashUsed===0){let r=this._dispatchChunks(e,t);if(r<e.byteLength){let f=e.byteLength-r;f>this._bufferSize&&this._expandBuffer(f),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,r),0),this._stashUsed+=f,this._stashByteStart=t+r}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let r=new Uint8Array(this._stashBuffer,0,this._bufferSize);r.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let f=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(f<this._stashUsed&&f>0){let b=new Uint8Array(this._stashBuffer,f);r.set(b,0)}this._stashUsed-=f,this._stashByteStart+=f}}_flushStashBuffer(e){if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),i=t.byteLength-n;if(n<t.byteLength)if(e)g.w(this.TAG,`${i} bytes unconsumed data remain when flush buffer, dropped`);else{if(n>0){let r=new Uint8Array(this._stashBuffer,0,this._bufferSize),f=new Uint8Array(t,n);r.set(f,0),this._stashUsed=f.byteLength,this._stashByteStart+=n}return 0}return this._stashUsed=0,this._stashByteStart=0,i}return 0}_onLoaderComplete(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(e,t){switch(g.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=G.UNRECOVERABLE_EARLY_EOF),e){case G.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let n=this._currentRange.to+1;n<this._totalLength&&(g.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1));return}e=G.UNRECOVERABLE_EARLY_EOF;break}case G.UNRECOVERABLE_EARLY_EOF:case G.CONNECTING_TIMEOUT:case G.HTTP_STATUS_CODE_INVALID:case G.EXCEPTION:break}if(this._onError)this._onError(e,t);else throw new u("IOException: "+t.msg)}}var At=we;const rt={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function $(){return Object.assign({},rt)}class Be{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let e=new At({},$()),t=e.loaderType;return e.destroy(),t=="fetch-stream-loader"||t=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let e=new At({},$()),t=e.loaderType;return e.destroy(),t}static supportNativeMediaPlayback(e){Be.videoElement==null&&(Be.videoElement=window.document.createElement("video"));let t=Be.videoElement.canPlayType(e);return t==="probably"||t=="maybe"}static getFeatureList(){let e={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return e.mseFlvPlayback=Be.supportMSEH264Playback(),e.networkStreamIO=Be.supportNetworkStreamIO(),e.networkLoaderName=Be.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=Be.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=Be.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=Be.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var fe=Be,Oe={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};class pe{static get forceGlobalTag(){return g.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){g.FORCE_GLOBAL_TAG=e,pe._notifyChange()}static get globalTag(){return g.GLOBAL_TAG}static set globalTag(e){g.GLOBAL_TAG=e,pe._notifyChange()}static get enableAll(){return g.ENABLE_VERBOSE&&g.ENABLE_DEBUG&&g.ENABLE_INFO&&g.ENABLE_WARN&&g.ENABLE_ERROR}static set enableAll(e){g.ENABLE_VERBOSE=e,g.ENABLE_DEBUG=e,g.ENABLE_INFO=e,g.ENABLE_WARN=e,g.ENABLE_ERROR=e,pe._notifyChange()}static get enableDebug(){return g.ENABLE_DEBUG}static set enableDebug(e){g.ENABLE_DEBUG=e,pe._notifyChange()}static get enableVerbose(){return g.ENABLE_VERBOSE}static set enableVerbose(e){g.ENABLE_VERBOSE=e,pe._notifyChange()}static get enableInfo(){return g.ENABLE_INFO}static set enableInfo(e){g.ENABLE_INFO=e,pe._notifyChange()}static get enableWarn(){return g.ENABLE_WARN}static set enableWarn(e){g.ENABLE_WARN=e,pe._notifyChange()}static get enableError(){return g.ENABLE_ERROR}static set enableError(e){g.ENABLE_ERROR=e,pe._notifyChange()}static getConfig(){return{globalTag:g.GLOBAL_TAG,forceGlobalTag:g.FORCE_GLOBAL_TAG,enableVerbose:g.ENABLE_VERBOSE,enableDebug:g.ENABLE_DEBUG,enableInfo:g.ENABLE_INFO,enableWarn:g.ENABLE_WARN,enableError:g.ENABLE_ERROR,enableCallback:g.ENABLE_CALLBACK}}static applyConfig(e){g.GLOBAL_TAG=e.globalTag,g.FORCE_GLOBAL_TAG=e.forceGlobalTag,g.ENABLE_VERBOSE=e.enableVerbose,g.ENABLE_DEBUG=e.enableDebug,g.ENABLE_INFO=e.enableInfo,g.ENABLE_WARN=e.enableWarn,g.ENABLE_ERROR=e.enableError,g.ENABLE_CALLBACK=e.enableCallback}static _notifyChange(){let e=pe.emitter;if(e.listenerCount("change")>0){let t=pe.getConfig();e.emit("change",t)}}static registerListener(e){pe.emitter.addListener("change",e)}static removeListener(e){pe.emitter.removeListener("change",e)}static addLogListener(e){g.emitter.addListener("log",e),g.emitter.listenerCount("log")>0&&(g.ENABLE_CALLBACK=!0,pe._notifyChange())}static removeLogListener(e){g.emitter.removeListener("log",e),g.emitter.listenerCount("log")===0&&(g.ENABLE_CALLBACK=!1,pe._notifyChange())}}pe.emitter=new(k());var ye=pe;class mt{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let e=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,t=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&e&&t}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(e){if(this.keyframesIndex==null)return null;let t=this.keyframesIndex,n=this._search(t.times,e);return{index:n,milliseconds:t.times[n],fileposition:t.filepositions[n]}}_search(e,t){let n=0,i=e.length-1,r=0,f=0,b=i;for(t<e[0]&&(n=0,f=b+1);f<=b;)if(r=f+Math.floor((b-f)/2),r===i||t>=e[r]&&t<e[r+1]){n=r;break}else e[r]<t?f=r+1:b=r-1;return n}}var Je=mt;function ut(Z,e,t){let n=Z;if(e+t<n.length){for(;t--;)if((n[++e]&192)!==128)return!1;return!0}else return!1}function vt(Z){let e=[],t=Z,n=0,i=Z.length;for(;n<i;){if(t[n]<128){e.push(String.fromCharCode(t[n])),++n;continue}else if(!(t[n]<192)){if(t[n]<224){if(ut(t,n,1)){let r=(t[n]&31)<<6|t[n+1]&63;if(r>=128){e.push(String.fromCharCode(r&65535)),n+=2;continue}}}else if(t[n]<240){if(ut(t,n,2)){let r=(t[n]&15)<<12|(t[n+1]&63)<<6|t[n+2]&63;if(r>=2048&&(r&63488)!==55296){e.push(String.fromCharCode(r&65535)),n+=3;continue}}}else if(t[n]<248&&ut(t,n,3)){let r=(t[n]&7)<<18|(t[n+1]&63)<<12|(t[n+2]&63)<<6|t[n+3]&63;if(r>65536&&r<1114112){r-=65536,e.push(String.fromCharCode(r>>>10|55296)),e.push(String.fromCharCode(r&1023|56320)),n+=4;continue}}}e.push("\uFFFD"),++n}return e.join("")}var pt=vt;let qe=function(){let Z=new ArrayBuffer(2);return new DataView(Z).setInt16(0,256,!0),new Int16Array(Z)[0]===256}();class We{static parseScriptData(e,t,n){let i={};try{let r=We.parseValue(e,t,n),f=We.parseValue(e,t+r.size,n-r.size);i[r.data]=f.data}catch(r){g.e("AMF",r.toString())}return i}static parseObject(e,t,n){if(n<3)throw new P("Data not enough when parse ScriptDataObject");let i=We.parseString(e,t,n),r=We.parseValue(e,t+i.size,n-i.size),f=r.objectEnd;return{data:{name:i.data,value:r.data},size:i.size+r.size,objectEnd:f}}static parseVariable(e,t,n){return We.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new P("Data not enough when parse String");let r=new DataView(e,t,n).getUint16(0,!qe),f;return r>0?f=pt(new Uint8Array(e,t+2,r)):f="",{data:f,size:2+r}}static parseLongString(e,t,n){if(n<4)throw new P("Data not enough when parse LongString");let r=new DataView(e,t,n).getUint32(0,!qe),f;return r>0?f=pt(new Uint8Array(e,t+4,r)):f="",{data:f,size:4+r}}static parseDate(e,t,n){if(n<10)throw new P("Data size invalid when parse Date");let i=new DataView(e,t,n),r=i.getFloat64(0,!qe),f=i.getInt16(8,!qe);return r+=f*60*1e3,{data:new Date(r),size:10}}static parseValue(e,t,n){if(n<1)throw new P("Data not enough when parse Value");let i=new DataView(e,t,n),r=1,f=i.getUint8(0),b,se=!1;try{switch(f){case 0:b=i.getFloat64(1,!qe),r+=8;break;case 1:{b=!!i.getUint8(1),r+=1;break}case 2:{let J=We.parseString(e,t+1,n-1);b=J.data,r+=J.size;break}case 3:{b={};let J=0;for((i.getUint32(n-4,!qe)&16777215)===9&&(J=3);r<n-4;){let de=We.parseObject(e,t+r,n-r-J);if(de.objectEnd)break;b[de.data.name]=de.data.value,r+=de.size}r<=n-3&&(i.getUint32(r-1,!qe)&16777215)===9&&(r+=3);break}case 8:{b={},r+=4;let J=0;for((i.getUint32(n-4,!qe)&16777215)===9&&(J=3);r<n-8;){let de=We.parseVariable(e,t+r,n-r-J);if(de.objectEnd)break;b[de.data.name]=de.data.value,r+=de.size}r<=n-3&&(i.getUint32(r-1,!qe)&16777215)===9&&(r+=3);break}case 9:b=void 0,r=1,se=!0;break;case 10:{b=[];let J=i.getUint32(1,!qe);r+=4;for(let de=0;de<J;de++){let Ne=We.parseValue(e,t+r,n-r);b.push(Ne.data),r+=Ne.size}break}case 11:{let J=We.parseDate(e,t+1,n-1);b=J.data,r+=J.size;break}case 12:{let J=We.parseString(e,t+1,n-1);b=J.data,r+=J.size;break}default:r=n,g.w("AMF","Unsupported AMF value type "+f)}}catch(J){g.e("AMF",J.toString())}return{data:b,size:r,objectEnd:se}}}var Dt=We;class it{constructor(e){this.TAG="ExpGolomb",this._buffer=e,this._buffer_index=0,this._total_bytes=e.byteLength,this._total_bits=e.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let e=this._total_bytes-this._buffer_index;if(e<=0)throw new P("ExpGolomb: _fillCurrentWord() but no bytes available");let t=Math.min(4,e),n=new Uint8Array(4);n.set(this._buffer.subarray(this._buffer_index,this._buffer_index+t)),this._current_word=new DataView(n.buffer).getUint32(0,!1),this._buffer_index+=t,this._current_word_bits_left=t*8}readBits(e){if(e>32)throw new ne("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let f=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,f}let t=this._current_word_bits_left?this._current_word:0;t=t>>>32-this._current_word_bits_left;let n=e-this._current_word_bits_left;this._fillCurrentWord();let i=Math.min(n,this._current_word_bits_left),r=this._current_word>>>32-i;return this._current_word<<=i,this._current_word_bits_left-=i,t=t<<i|r,t}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let e;for(e=0;e<this._current_word_bits_left;e++)if(this._current_word&2147483648>>>e)return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}readUEG(){let e=this._skipLeadingZero();return this.readBits(e+1)-1}readSEG(){let e=this.readUEG();return e&1?e+1>>>1:-1*(e>>>1)}}var Re=it;class M{static _ebsp2rbsp(e){let t=e,n=t.byteLength,i=new Uint8Array(n),r=0;for(let f=0;f<n;f++)f>=2&&t[f]===3&&t[f-1]===0&&t[f-2]===0||(i[r]=t[f],r++);return new Uint8Array(i.buffer,0,r)}static parseSPS(e){let t=M._ebsp2rbsp(e),n=new Re(t);n.readByte();let i=n.readByte();n.readByte();let r=n.readByte();n.readUEG();let f=M.getProfileString(i),b=M.getLevelString(r),se=1,J=420,de=[0,420,422,444],Ne=8;if((i===100||i===110||i===122||i===244||i===44||i===83||i===86||i===118||i===128||i===138||i===144)&&(se=n.readUEG(),se===3&&n.readBits(1),se<=3&&(J=de[se]),Ne=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let en=se!==3?8:12;for(let Yt=0;Yt<en;Yt++)n.readBool()&&(Yt<6?M._skipScalingList(n,16):M._skipScalingList(n,64))}n.readUEG();let Me=n.readUEG();if(Me===0)n.readUEG();else if(Me===1){n.readBits(1),n.readSEG(),n.readSEG();let en=n.readUEG();for(let Yt=0;Yt<en;Yt++)n.readSEG()}let ie=n.readUEG();n.readBits(1);let De=n.readUEG(),ce=n.readUEG(),Q=n.readBits(1);Q===0&&n.readBits(1),n.readBits(1);let ee=0,be=0,Se=0,st=0;n.readBool()&&(ee=n.readUEG(),be=n.readUEG(),Se=n.readUEG(),st=n.readUEG());let Ft=1,Ee=1,at=0,Zt=!0,Vt=0,Mt=0;if(n.readBool()){if(n.readBool()){let en=n.readByte(),Yt=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Qn=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];en>0&&en<16?(Ft=Yt[en-1],Ee=Qn[en-1]):en===255&&(Ft=n.readByte()<<8|n.readByte(),Ee=n.readByte()<<8|n.readByte())}if(n.readBool()&&n.readBool(),n.readBool()&&(n.readBits(4),n.readBool()&&n.readBits(24)),n.readBool()&&(n.readUEG(),n.readUEG()),n.readBool()){let en=n.readBits(32),Yt=n.readBits(32);Zt=n.readBool(),Vt=Yt,Mt=en*2,at=Vt/Mt}}let Yn=1;(Ft!==1||Ee!==1)&&(Yn=Ft/Ee);let sn=0,In=0;if(se===0)sn=1,In=2-Q;else{let en=se===3?1:2,Yt=se===1?2:1;sn=en,In=Yt*(2-Q)}let Nt=(De+1)*16,jn=(2-Q)*((ce+1)*16);Nt-=(ee+be)*sn,jn-=(Se+st)*In;let Zn=Math.ceil(Nt*Yn);return n.destroy(),n=null,{profile_string:f,level_string:b,bit_depth:Ne,ref_frames:ie,chroma_format:J,chroma_format_string:M.getChromaFormatString(J),frame_rate:{fixed:Zt,fps:at,fps_den:Mt,fps_num:Vt},sar_ratio:{width:Ft,height:Ee},codec_size:{width:Nt,height:jn},present_size:{width:Zn,height:jn}}}static _skipScalingList(e,t){let n=8,i=8,r=0;for(let f=0;f<t;f++)i!==0&&(r=e.readSEG(),i=(n+r+256)%256),n=i===0?n:i}static getProfileString(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(e){return(e/10).toFixed(1)}static getChromaFormatString(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var c=M,a={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function m(Z){return Z>>>8&255|(Z&255)<<8}function R(Z){return(Z&4278190080)>>>24|(Z&16711680)>>>8|(Z&65280)<<8|(Z&255)<<24}function h(Z,e){return Z[e]<<24|Z[e+1]<<16|Z[e+2]<<8|Z[e+3]}class E{constructor(e,t){this.TAG="FLVDemuxer",this._config=t,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=e.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=e.hasAudioTrack,this._hasVideo=e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Je,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let n=new ArrayBuffer(2);return new DataView(n).setInt16(0,256,!0),new Int16Array(n)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(e){let t=new Uint8Array(e),n={match:!1};if(t[0]!==70||t[1]!==76||t[2]!==86||t[3]!==1)return n;let i=(t[4]&4)>>>2!==0,r=(t[4]&1)!==0,f=h(t,5);return f<9?n:{match:!0,consumed:f,dataOffset:f,hasAudioTrack:i,hasVideoTrack:r}}bindDataSource(e){return e.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(e){this._onTrackMetadata=e}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(e){this._onMediaInfo=e}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(e){this._onMetaDataArrived=e}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(e){this._onScriptDataArrived=e}get onError(){return this._onError}set onError(e){this._onError=e}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(e){this._onDataAvailable=e}get timestampBase(){return this._timestampBase}set timestampBase(e){this._timestampBase=e}get overridedDuration(){return this._duration}set overridedDuration(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e}set overridedHasAudio(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e}set overridedHasVideo(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e}resetMediaInfo(){this._mediaInfo=new Je}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(e,t){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new P("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let n=0,i=this._littleEndian;if(t===0)if(e.byteLength>13)n=E.probe(e).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,t+n!==this._dataOffset&&g.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(e,n).getUint32(0,!i)!==0&&g.w(this.TAG,"PrevTagSize0 !== 0 !!!"),n+=4);n<e.byteLength;){this._dispatch=!0;let r=new DataView(e,n);if(n+11+4>e.byteLength)break;let f=r.getUint8(0),b=r.getUint32(0,!i)&16777215;if(n+11+b+4>e.byteLength)break;if(f!==8&&f!==9&&f!==18){g.w(this.TAG,`Unsupported tag type ${f}, skipped`),n+=11+b+4;continue}let se=r.getUint8(4),J=r.getUint8(5),de=r.getUint8(6),Ne=r.getUint8(7),Me=de|J<<8|se<<16|Ne<<24;(r.getUint32(7,!i)&16777215)!==0&&g.w(this.TAG,"Meet tag which has StreamID != 0!");let De=n+11;switch(f){case 8:this._parseAudioData(e,De,b,Me);break;case 9:this._parseVideoData(e,De,b,Me,t+n);break;case 18:this._parseScriptData(e,De,b);break}let ce=r.getUint32(11+b,!i);ce!==11+b&&g.w(this.TAG,`Invalid PrevTagSize ${ce}`),n+=11+b+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),n}_parseScriptData(e,t,n){let i=Dt.parseScriptData(e,t,n);if(i.hasOwnProperty("onMetaData")){if(i.onMetaData==null||typeof i.onMetaData!="object"){g.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&g.w(this.TAG,"Found another onMetaData tag!"),this._metadata=i;let r=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},r)),typeof r.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=r.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof r.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=r.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof r.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=r.audiodatarate),typeof r.videodatarate=="number"&&(this._mediaInfo.videoDataRate=r.videodatarate),typeof r.width=="number"&&(this._mediaInfo.width=r.width),typeof r.height=="number"&&(this._mediaInfo.height=r.height),typeof r.duration=="number"){if(!this._durationOverrided){let f=Math.floor(r.duration*this._timescale);this._duration=f,this._mediaInfo.duration=f}}else this._mediaInfo.duration=0;if(typeof r.framerate=="number"){let f=Math.floor(r.framerate*1e3);if(f>0){let b=f/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=b,this._referenceFrameRate.fps_num=f,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=b}}if(typeof r.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let f=r.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(f),r.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=r,g.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(i).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},i))}_parseKeyframesIndex(e){let t=[],n=[];for(let i=1;i<e.times.length;i++){let r=this._timestampBase+Math.floor(e.times[i]*1e3);t.push(r),n.push(e.filepositions[i])}return{times:t,filepositions:n}}_parseAudioData(e,t,n,i){if(n<=1){g.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let r=this._littleEndian,b=new DataView(e,t,n).getUint8(0),se=b>>>4;if(se!==2&&se!==10){this._onError(a.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+se);return}let J=0,de=(b&12)>>>2;if(de>=0&&de<=4)J=this._flvSoundRateTable[de];else{this._onError(a.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+de);return}let Ne=(b&2)>>>1,Me=b&1,ie=this._audioMetadata,De=this._audioTrack;if(ie||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),ie=this._audioMetadata={},ie.type="audio",ie.id=De.id,ie.timescale=this._timescale,ie.duration=this._duration,ie.audioSampleRate=J,ie.channelCount=Me===0?1:2),se===10){let ce=this._parseAACAudioData(e,t+1,n-1);if(ce==null)return;if(ce.packetType===0){ie.config&&g.w(this.TAG,"Found another AudioSpecificConfig!");let Q=ce.data;ie.audioSampleRate=Q.samplingRate,ie.channelCount=Q.channelCount,ie.codec=Q.codec,ie.originalCodec=Q.originalCodec,ie.config=Q.config,ie.refSampleDuration=1024/ie.audioSampleRate*ie.timescale,g.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",ie);let ee=this._mediaInfo;ee.audioCodec=ie.originalCodec,ee.audioSampleRate=ie.audioSampleRate,ee.audioChannelCount=ie.channelCount,ee.hasVideo?ee.videoCodec!=null&&(ee.mimeType='video/x-flv; codecs="'+ee.videoCodec+","+ee.audioCodec+'"'):ee.mimeType='video/x-flv; codecs="'+ee.audioCodec+'"',ee.isComplete()&&this._onMediaInfo(ee)}else if(ce.packetType===1){let Q=this._timestampBase+i,ee={unit:ce.data,length:ce.data.byteLength,dts:Q,pts:Q};De.samples.push(ee),De.length+=ce.data.length}else g.e(this.TAG,`Flv: Unsupported AAC data type ${ce.packetType}`)}else if(se===2){if(!ie.codec){let be=this._parseMP3AudioData(e,t+1,n-1,!0);if(be==null)return;ie.audioSampleRate=be.samplingRate,ie.channelCount=be.channelCount,ie.codec=be.codec,ie.originalCodec=be.originalCodec,ie.refSampleDuration=1152/ie.audioSampleRate*ie.timescale,g.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",ie);let Se=this._mediaInfo;Se.audioCodec=ie.codec,Se.audioSampleRate=ie.audioSampleRate,Se.audioChannelCount=ie.channelCount,Se.audioDataRate=be.bitRate,Se.hasVideo?Se.videoCodec!=null&&(Se.mimeType='video/x-flv; codecs="'+Se.videoCodec+","+Se.audioCodec+'"'):Se.mimeType='video/x-flv; codecs="'+Se.audioCodec+'"',Se.isComplete()&&this._onMediaInfo(Se)}let ce=this._parseMP3AudioData(e,t+1,n-1,!1);if(ce==null)return;let Q=this._timestampBase+i,ee={unit:ce,length:ce.byteLength,dts:Q,pts:Q};De.samples.push(ee),De.length+=ce.length}}_parseAACAudioData(e,t,n){if(n<=1){g.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let i={},r=new Uint8Array(e,t,n);return i.packetType=r[0],r[0]===0?i.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):i.data=r.subarray(1),i}_parseAACAudioSpecificConfig(e,t,n){let i=new Uint8Array(e,t,n),r=null,f=0,b=0,se=null,J=0,de=null;if(f=b=i[0]>>>3,J=(i[0]&7)<<1|i[1]>>>7,J<0||J>=this._mpegSamplingRates.length){this._onError(a.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Ne=this._mpegSamplingRates[J],Me=(i[1]&120)>>>3;if(Me<0||Me>=8){this._onError(a.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}f===5&&(de=(i[1]&7)<<1|i[2]>>>7,se=(i[2]&124)>>>2);let ie=self.navigator.userAgent.toLowerCase();return ie.indexOf("firefox")!==-1?J>=6?(f=5,r=new Array(4),de=J-3):(f=2,r=new Array(2),de=J):ie.indexOf("android")!==-1?(f=2,r=new Array(2),de=J):(f=5,de=J,r=new Array(4),J>=6?de=J-3:Me===1&&(f=2,r=new Array(2),de=J)),r[0]=f<<3,r[0]|=(J&15)>>>1,r[1]=(J&15)<<7,r[1]|=(Me&15)<<3,f===5&&(r[1]|=(de&15)>>>1,r[2]=(de&1)<<7,r[2]|=8,r[3]=0),{config:r,samplingRate:Ne,channelCount:Me,codec:"mp4a.40."+f,originalCodec:"mp4a.40."+b}}_parseMP3AudioData(e,t,n,i){if(n<4){g.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let r=this._littleEndian,f=new Uint8Array(e,t,n),b=null;if(i){if(f[0]!==255)return;let se=f[1]>>>3&3,J=(f[1]&6)>>1,de=(f[2]&240)>>>4,Ne=(f[2]&12)>>>2,ie=(f[3]>>>6&3)!==3?2:1,De=0,ce=0,Q=34,ee="mp3";switch(se){case 0:De=this._mpegAudioV25SampleRateTable[Ne];break;case 2:De=this._mpegAudioV20SampleRateTable[Ne];break;case 3:De=this._mpegAudioV10SampleRateTable[Ne];break}switch(J){case 1:Q=34,de<this._mpegAudioL3BitRateTable.length&&(ce=this._mpegAudioL3BitRateTable[de]);break;case 2:Q=33,de<this._mpegAudioL2BitRateTable.length&&(ce=this._mpegAudioL2BitRateTable[de]);break;case 3:Q=32,de<this._mpegAudioL1BitRateTable.length&&(ce=this._mpegAudioL1BitRateTable[de]);break}b={bitRate:ce,samplingRate:De,channelCount:ie,codec:ee,originalCodec:ee}}else b=f;return b}_parseVideoData(e,t,n,i,r){if(n<=1){g.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let f=new Uint8Array(e,t,n)[0],b=(f&240)>>>4,se=f&15;if(se!==7){this._onError(a.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${se}`);return}this._parseAVCVideoPacket(e,t+1,n-1,i,r,b)}_parseAVCVideoPacket(e,t,n,i,r,f){if(n<4){g.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let b=this._littleEndian,se=new DataView(e,t,n),J=se.getUint8(0),Ne=(se.getUint32(0,!b)&16777215)<<8>>8;if(J===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(J===1)this._parseAVCVideoData(e,t+4,n-4,i,r,f,Ne);else if(J!==2){this._onError(a.FORMAT_ERROR,`Flv: Invalid video packet type ${J}`);return}}_parseAVCDecoderConfigurationRecord(e,t,n){if(n<7){g.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let i=this._videoMetadata,r=this._videoTrack,f=this._littleEndian,b=new DataView(e,t,n);i?typeof i.avcc!="undefined"&&g.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),i=this._videoMetadata={},i.type="video",i.id=r.id,i.timescale=this._timescale,i.duration=this._duration);let se=b.getUint8(0),J=b.getUint8(1),de=b.getUint8(2),Ne=b.getUint8(3);if(se!==1||J===0){this._onError(a.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(b.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(a.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Me=b.getUint8(5)&31;if(Me===0){this._onError(a.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Me>1&&g.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Me}`);let ie=6;for(let ce=0;ce<Me;ce++){let Q=b.getUint16(ie,!f);if(ie+=2,Q===0)continue;let ee=new Uint8Array(e,t+ie,Q);ie+=Q;let be=c.parseSPS(ee);if(ce!==0)continue;i.codecWidth=be.codec_size.width,i.codecHeight=be.codec_size.height,i.presentWidth=be.present_size.width,i.presentHeight=be.present_size.height,i.profile=be.profile_string,i.level=be.level_string,i.bitDepth=be.bit_depth,i.chromaFormat=be.chroma_format,i.sarRatio=be.sar_ratio,i.frameRate=be.frame_rate,(be.frame_rate.fixed===!1||be.frame_rate.fps_num===0||be.frame_rate.fps_den===0)&&(i.frameRate=this._referenceFrameRate);let Se=i.frameRate.fps_den,st=i.frameRate.fps_num;i.refSampleDuration=i.timescale*(Se/st);let cn=ee.subarray(1,4),Ft="avc1.";for(let at=0;at<3;at++){let Zt=cn[at].toString(16);Zt.length<2&&(Zt="0"+Zt),Ft+=Zt}i.codec=Ft;let Ee=this._mediaInfo;Ee.width=i.codecWidth,Ee.height=i.codecHeight,Ee.fps=i.frameRate.fps,Ee.profile=i.profile,Ee.level=i.level,Ee.refFrames=be.ref_frames,Ee.chromaFormat=be.chroma_format_string,Ee.sarNum=i.sarRatio.width,Ee.sarDen=i.sarRatio.height,Ee.videoCodec=Ft,Ee.hasAudio?Ee.audioCodec!=null&&(Ee.mimeType='video/x-flv; codecs="'+Ee.videoCodec+","+Ee.audioCodec+'"'):Ee.mimeType='video/x-flv; codecs="'+Ee.videoCodec+'"',Ee.isComplete()&&this._onMediaInfo(Ee)}let De=b.getUint8(ie);if(De===0){this._onError(a.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else De>1&&g.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${De}`);ie++;for(let ce=0;ce<De;ce++){let Q=b.getUint16(ie,!f);ie+=2,Q!==0&&(ie+=Q)}i.avcc=new Uint8Array(n),i.avcc.set(new Uint8Array(e,t,n),0),g.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",i)}_parseAVCVideoData(e,t,n,i,r,f,b){let se=this._littleEndian,J=new DataView(e,t,n),de=[],Ne=0,Me=0;const ie=this._naluLengthSize;let De=this._timestampBase+i,ce=f===1;for(;Me<n;){if(Me+4>=n){g.w(this.TAG,`Malformed Nalu near timestamp ${De}, offset = ${Me}, dataSize = ${n}`);break}let Q=J.getUint32(Me,!se);if(ie===3&&(Q>>>=8),Q>n-ie){g.w(this.TAG,`Malformed Nalus near timestamp ${De}, NaluSize > DataSize!`);return}let ee=J.getUint8(Me+ie)&31;ee===5&&(ce=!0);let be=new Uint8Array(e,t+Me,ie+Q),Se={type:ee,data:be};de.push(Se),Ne+=be.byteLength,Me+=ie+Q}if(de.length){let Q=this._videoTrack,ee={units:de,length:Ne,isKeyframe:ce,dts:De,cts:b,pts:De+b};ce&&(ee.fileposition=r),Q.samples.push(ee),Q.length+=Ne}}}var S=E;class o{static init(){o.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let t in o.types)o.types.hasOwnProperty(t)&&(o.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=o.constants={};e.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),e.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),e.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSC=e.STCO=e.STTS,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.HDLR_VIDEO=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]),e.HDLR_AUDIO=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]),e.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(e){let t=8,n=null,i=Array.prototype.slice.call(arguments,1),r=i.length;for(let b=0;b<r;b++)t+=i[b].byteLength;n=new Uint8Array(t),n[0]=t>>>24&255,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n.set(e,4);let f=8;for(let b=0;b<r;b++)n.set(i[b],f),f+=i[b].byteLength;return n}static generateInitSegment(e){let t=o.box(o.types.ftyp,o.constants.FTYP),n=o.moov(e),i=new Uint8Array(t.byteLength+n.byteLength);return i.set(t,0),i.set(n,t.byteLength),i}static moov(e){let t=o.mvhd(e.timescale,e.duration),n=o.trak(e),i=o.mvex(e);return o.box(o.types.moov,t,n,i)}static mvhd(e,t){return o.box(o.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,e&255,t>>>24&255,t>>>16&255,t>>>8&255,t&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]))}static trak(e){return o.box(o.types.trak,o.tkhd(e),o.mdia(e))}static tkhd(e){let t=e.id,n=e.duration,i=e.presentWidth,r=e.presentHeight;return o.box(o.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>>8&255,i&255,0,0,r>>>8&255,r&255,0,0]))}static mdia(e){return o.box(o.types.mdia,o.mdhd(e),o.hdlr(e),o.minf(e))}static mdhd(e){let t=e.timescale,n=e.duration;return o.box(o.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255,85,196,0,0]))}static hdlr(e){let t=null;return e.type==="audio"?t=o.constants.HDLR_AUDIO:t=o.constants.HDLR_VIDEO,o.box(o.types.hdlr,t)}static minf(e){let t=null;return e.type==="audio"?t=o.box(o.types.smhd,o.constants.SMHD):t=o.box(o.types.vmhd,o.constants.VMHD),o.box(o.types.minf,t,o.dinf(),o.stbl(e))}static dinf(){return o.box(o.types.dinf,o.box(o.types.dref,o.constants.DREF))}static stbl(e){return o.box(o.types.stbl,o.stsd(e),o.box(o.types.stts,o.constants.STTS),o.box(o.types.stsc,o.constants.STSC),o.box(o.types.stsz,o.constants.STSZ),o.box(o.types.stco,o.constants.STCO))}static stsd(e){return e.type==="audio"?e.codec==="mp3"?o.box(o.types.stsd,o.constants.STSD_PREFIX,o.mp3(e)):o.box(o.types.stsd,o.constants.STSD_PREFIX,o.mp4a(e)):o.box(o.types.stsd,o.constants.STSD_PREFIX,o.avc1(e))}static mp3(e){let t=e.channelCount,n=e.audioSampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,n>>>8&255,n&255,0,0]);return o.box(o.types[".mp3"],i)}static mp4a(e){let t=e.channelCount,n=e.audioSampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,n>>>8&255,n&255,0,0]);return o.box(o.types.mp4a,i,o.esds(e))}static esds(e){let t=e.config||[],n=t.length,i=new Uint8Array([0,0,0,0,3,23+n,0,1,0,4,15+n,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([n]).concat(t).concat([6,1,2]));return o.box(o.types.esds,i)}static avc1(e){let t=e.avcc,n=e.codecWidth,i=e.codecHeight,r=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,n>>>8&255,n&255,i>>>8&255,i&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return o.box(o.types.avc1,r,o.box(o.types.avcC,t))}static mvex(e){return o.box(o.types.mvex,o.trex(e))}static trex(e){let t=e.id,n=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return o.box(o.types.trex,n)}static moof(e,t){return o.box(o.types.moof,o.mfhd(e.sequenceNumber),o.traf(e,t))}static mfhd(e){let t=new Uint8Array([0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,e&255]);return o.box(o.types.mfhd,t)}static traf(e,t){let n=e.id,i=o.box(o.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255])),r=o.box(o.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255])),f=o.sdtp(e),b=o.trun(e,f.byteLength+16+16+8+16+8+8);return o.box(o.types.traf,i,r,b,f)}static sdtp(e){let t=e.samples||[],n=t.length,i=new Uint8Array(4+n);for(let r=0;r<n;r++){let f=t[r].flags;i[r+4]=f.isLeading<<6|f.dependsOn<<4|f.isDependedOn<<2|f.hasRedundancy}return o.box(o.types.sdtp,i)}static trun(e,t){let n=e.samples||[],i=n.length,r=12+16*i,f=new Uint8Array(r);t+=8+r,f.set([0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0);for(let b=0;b<i;b++){let se=n[b].duration,J=n[b].size,de=n[b].flags,Ne=n[b].cts;f.set([se>>>24&255,se>>>16&255,se>>>8&255,se&255,J>>>24&255,J>>>16&255,J>>>8&255,J&255,de.isLeading<<2|de.dependsOn,de.isDependedOn<<6|de.hasRedundancy<<4|de.isNonSync,0,0,Ne>>>24&255,Ne>>>16&255,Ne>>>8&255,Ne&255],12+16*b)}return o.box(o.types.trun,f)}static mdat(e){return o.box(o.types.mdat,e)}}o.init();var U=o;class W{static getSilentFrame(e,t){if(e==="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])}else{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])}return null}}var oe=W;class ge{constructor(e,t,n,i,r){this.dts=e,this.pts=t,this.duration=n,this.originalDts=i,this.isSyncPoint=r,this.fileposition=null}}class me{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(e){e.isSyncPoint=!0,this.syncPoints.push(e)}}class le{constructor(){this._list=[]}clear(){this._list=[]}appendArray(e){let t=this._list;e.length!==0&&(t.length>0&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))}getLastSyncPointBeforeDts(e){if(this._list.length==0)return null;let t=this._list,n=0,i=t.length-1,r=0,f=0,b=i;for(e<t[0].dts&&(n=0,f=b+1);f<=b;)if(r=f+Math.floor((b-f)/2),r===i||e>=t[r].dts&&e<t[r+1].dts){n=r;break}else t[r].dts<e?f=r+1:b=r-1;return this._list[n]}}class Ae{constructor(e){this._type=e,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return this._list.length===0}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(e){let t=this._list;if(t.length===0)return-2;let n=t.length-1,i=0,r=0,f=n,b=0;if(e<t[0].originalBeginDts)return b=-1,b;for(;r<=f;)if(i=r+Math.floor((f-r)/2),i===n||e>t[i].lastSample.originalDts&&e<t[i+1].originalBeginDts){b=i;break}else t[i].originalBeginDts<e?r=i+1:f=i-1;return b}_searchNearestSegmentAfter(e){return this._searchNearestSegmentBefore(e)+1}append(e){let t=this._list,n=e,i=this._lastAppendLocation,r=0;i!==-1&&i<t.length&&n.originalBeginDts>=t[i].lastSample.originalDts&&(i===t.length-1||i<t.length-1&&n.originalBeginDts<t[i+1].originalBeginDts)?r=i+1:t.length>0&&(r=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=r,this._list.splice(r,0,n)}getLastSegmentBefore(e){let t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null}getLastSampleBefore(e){let t=this.getLastSegmentBefore(e);return t!=null?t.lastSample:null}getLastSyncPointBefore(e){let t=this._searchNearestSegmentBefore(e),n=this._list[t].syncPoints;for(;n.length===0&&t>0;)t--,n=this._list[t].syncPoints;return n.length>0?n[n.length-1]:null}}class Ze{constructor(e){this.TAG="MP4Remuxer",this._config=e,this._isLive=e.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Ae("audio"),this._videoSegmentInfoList=new Ae("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(x.chrome&&(x.version.major<50||x.version.major===50&&x.version.build<2661)),this._fillSilentAfterSeek=x.msedge||x.msie,this._mp3UseMpegAudio=!x.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(e){this._onInitSegment=e}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(e){this._onMediaSegment=e}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(e,t){if(!this._onMediaSegment)throw new P("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}_onTrackMetadataReceived(e,t){let n=null,i="mp4",r=t.codec;if(e==="audio")this._audioMeta=t,t.codec==="mp3"&&this._mp3UseMpegAudio?(i="mpeg",r="",n=new Uint8Array):n=U.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=U.generateInitSegment(t);else return;if(!this._onInitSegment)throw new P("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:r,container:`${e}/${i}`,mediaDuration:t.duration})}_calculateDtsBase(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let e=this._videoStashedLastSample,t=this._audioStashedLastSample,n={type:"video",id:1,sequenceNumber:0,samples:[],length:0};e!=null&&(n.samples.push(e),n.length=e.length);let i={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};t!=null&&(i.samples.push(t),i.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(i,!0)}_remuxAudio(e,t){if(this._audioMeta==null)return;let n=e,i=n.samples,r,f=-1,b=-1,se=-1,J=this._audioMeta.refSampleDuration,de=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Ne=this._dtsBaseInited&&this._audioNextDts===void 0,Me=!1;if(!i||i.length===0||i.length===1&&!t)return;let ie=0,De=null,ce=0;de?(ie=0,ce=n.length):(ie=8,ce=8+n.length);let Q=null;if(i.length>1&&(Q=i.pop(),ce-=Q.length),this._audioStashedLastSample!=null){let Ee=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(Ee),ce+=Ee.length}Q!=null&&(this._audioStashedLastSample=Q);let ee=i[0].dts-this._dtsBase;if(this._audioNextDts)r=ee-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())r=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Me=!0);else{let Ee=this._audioSegmentInfoList.getLastSampleBefore(ee);if(Ee!=null){let at=ee-(Ee.originalDts+Ee.duration);at<=3&&(at=0);let Zt=Ee.dts+Ee.duration+at;r=ee-Zt}else r=0}if(Me){let Ee=ee-r,at=this._videoSegmentInfoList.getLastSegmentBefore(ee);if(at!=null&&at.beginDts<Ee){let Zt=oe.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Zt){let Vt=at.beginDts,Mt=Ee-at.beginDts;g.v(this.TAG,`InsertPrefixSilentAudio: dts: ${Vt}, duration: ${Mt}`),i.unshift({unit:Zt,dts:Vt,pts:Vt}),ce+=Zt.byteLength}}else Me=!1}let be=[];for(let Ee=0;Ee<i.length;Ee++){let at=i[Ee],Zt=at.unit,Vt=at.dts-this._dtsBase,Mt=Vt-r;f===-1&&(f=Mt);let hn=0;Ee!==i.length-1?hn=i[Ee+1].dts-this._dtsBase-r-Mt:Q!=null?hn=Q.dts-this._dtsBase-r-Mt:be.length>=1?hn=be[be.length-1].duration:hn=Math.floor(J);let Yn=!1,sn=null;if(hn>J*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!x.safari){Yn=!0;let In=Math.abs(hn-J),Nt=Math.ceil(In/J),jn=Mt+J;g.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
dts: ${Mt+hn} ms, expected: ${Mt+Math.round(J)} ms, delta: ${Math.round(In)} ms, generate: ${Nt} frames`);let Zn=oe.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Zn==null&&(g.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Zn=Zt),sn=[];for(let Yt=0;Yt<Nt;Yt++){let Qn=Math.round(jn);if(sn.length>0){let _i=sn[sn.length-1];_i.duration=Qn-_i.dts}let vi={dts:Qn,pts:Qn,cts:0,unit:Zn,size:Zn.byteLength,duration:0,originalDts:Vt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};sn.push(vi),ce+=vi.size,jn+=J}let en=sn[sn.length-1];en.duration=Mt+hn-en.dts,hn=Math.round(J)}be.push({dts:Mt,pts:Mt,cts:0,unit:at.unit,size:at.unit.byteLength,duration:hn,originalDts:Vt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Yn&&be.push.apply(be,sn)}de?De=new Uint8Array(ce):(De=new Uint8Array(ce),De[0]=ce>>>24&255,De[1]=ce>>>16&255,De[2]=ce>>>8&255,De[3]=ce&255,De.set(U.types.mdat,4));for(let Ee=0;Ee<be.length;Ee++){let at=be[Ee].unit;De.set(at,ie),ie+=at.byteLength}let Se=be[be.length-1];b=Se.dts+Se.duration,this._audioNextDts=b;let st=new me;st.beginDts=f,st.endDts=b,st.beginPts=f,st.endPts=b,st.originalBeginDts=be[0].originalDts,st.originalEndDts=Se.originalDts+Se.duration,st.firstSample=new ge(be[0].dts,be[0].pts,be[0].duration,be[0].originalDts,!1),st.lastSample=new ge(Se.dts,Se.pts,Se.duration,Se.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(st),n.samples=be,n.sequenceNumber++;let cn=null;de?cn=new Uint8Array:cn=U.moof(n,f),n.samples=[],n.length=0;let Ft={type:"audio",data:this._mergeBoxes(cn,De).buffer,sampleCount:be.length,info:st};de&&Ne&&(Ft.timestampOffset=f),this._onMediaSegment("audio",Ft)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,i=n.samples,r,f=-1,b=-1,se=-1,J=-1;if(!i||i.length===0||i.length===1&&!t)return;let de=8,Ne=null,Me=8+e.length,ie=null;if(i.length>1&&(ie=i.pop(),Me-=ie.length),this._videoStashedLastSample!=null){let Se=this._videoStashedLastSample;this._videoStashedLastSample=null,i.unshift(Se),Me+=Se.length}ie!=null&&(this._videoStashedLastSample=ie);let De=i[0].dts-this._dtsBase;if(this._videoNextDts)r=De-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())r=0;else{let Se=this._videoSegmentInfoList.getLastSampleBefore(De);if(Se!=null){let st=De-(Se.originalDts+Se.duration);st<=3&&(st=0);let cn=Se.dts+Se.duration+st;r=De-cn}else r=0}let ce=new me,Q=[];for(let Se=0;Se<i.length;Se++){let st=i[Se],cn=st.dts-this._dtsBase,Ft=st.isKeyframe,Ee=cn-r,at=st.cts,Zt=Ee+at;f===-1&&(f=Ee,se=Zt);let Vt=0;if(Se!==i.length-1?Vt=i[Se+1].dts-this._dtsBase-r-Ee:ie!=null?Vt=ie.dts-this._dtsBase-r-Ee:Q.length>=1?Vt=Q[Q.length-1].duration:Vt=Math.floor(this._videoMeta.refSampleDuration),Ft){let Mt=new ge(Ee,Zt,Vt,st.dts,!0);Mt.fileposition=st.fileposition,ce.appendSyncPoint(Mt)}Q.push({dts:Ee,pts:Zt,cts:at,units:st.units,size:st.length,isKeyframe:Ft,duration:Vt,originalDts:cn,flags:{isLeading:0,dependsOn:Ft?2:1,isDependedOn:Ft?1:0,hasRedundancy:0,isNonSync:Ft?0:1}})}Ne=new Uint8Array(Me),Ne[0]=Me>>>24&255,Ne[1]=Me>>>16&255,Ne[2]=Me>>>8&255,Ne[3]=Me&255,Ne.set(U.types.mdat,4);for(let Se=0;Se<Q.length;Se++){let st=Q[Se].units;for(;st.length;){let Ft=st.shift().data;Ne.set(Ft,de),de+=Ft.byteLength}}let ee=Q[Q.length-1];if(b=ee.dts+ee.duration,J=ee.pts+ee.duration,this._videoNextDts=b,ce.beginDts=f,ce.endDts=b,ce.beginPts=se,ce.endPts=J,ce.originalBeginDts=Q[0].originalDts,ce.originalEndDts=ee.originalDts+ee.duration,ce.firstSample=new ge(Q[0].dts,Q[0].pts,Q[0].duration,Q[0].originalDts,Q[0].isKeyframe),ce.lastSample=new ge(ee.dts,ee.pts,ee.duration,ee.originalDts,ee.isKeyframe),this._isLive||this._videoSegmentInfoList.append(ce),n.samples=Q,n.sequenceNumber++,this._forceFirstIDR){let Se=Q[0].flags;Se.dependsOn=2,Se.isNonSync=0}let be=U.moof(n,f);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(be,Ne).buffer,sampleCount:Q.length,info:ce})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var ke=Ze,z={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};class ct{constructor(e,t){this.TAG="TransmuxingController",this._emitter=new(k()),this._config=t,e.segments||(e.segments=[{duration:e.duration,filesize:e.filesize,url:e.url}]),typeof e.cors!="boolean"&&(e.cors=!0),typeof e.withCredentials!="boolean"&&(e.withCredentials=!1),this._mediaDataSource=e,this._currentSegmentIndex=0;let n=0;this._mediaDataSource.segments.forEach(i=>{i.timestampBase=n,n+=i.duration,i.cors=e.cors,i.withCredentials=e.withCredentials,t.referrerPolicy&&(i.referrerPolicy=t.referrerPolicy)}),!isNaN(n)&&this._mediaDataSource.duration!==n&&(this._mediaDataSource.duration=n),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(e,t){this._currentSegmentIndex=e;let n=this._mediaDataSource.segments[e],i=this._ioctl=new At(n,this._config,e);i.onError=this._onIOException.bind(this),i.onSeeked=this._onIOSeeked.bind(this),i.onComplete=this._onIOComplete.bind(this),i.onRedirect=this._onIORedirect.bind(this),i.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):i.onDataArrival=this._onInitChunkArrival.bind(this),i.open(t)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(e){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){let n=this._mediaInfo.segments[t];if(n==null)this._pendingSeekTime=e;else{let i=n.getNearestKeyframe(e);this._remuxer.seek(i.milliseconds),this._ioctl.seek(i.fileposition),this._pendingResolveSeekPoint=i.milliseconds}}else{let n=this._mediaInfo.segments[t];if(n==null)this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t);else{let i=n.getNearestKeyframe(e);this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,i.fileposition),this._pendingResolveSeekPoint=i.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(e){let t=this._mediaDataSource.segments,n=t.length-1;for(let i=0;i<t.length;i++)if(e<t[i].timestampBase){n=i-1;break}return n}_onInitChunkArrival(e,t){let n=null,i=0;if(t>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,i=this._demuxer.parseChunks(e,t);else if((n=S.probe(e)).match){this._demuxer=new S(n,this._config),this._remuxer||(this._remuxer=new ke(this._config));let r=this._mediaDataSource;r.duration!=null&&!isNaN(r.duration)&&(this._demuxer.overridedDuration=r.duration),typeof r.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=r.hasAudio),typeof r.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=r.hasVideo),this._demuxer.timestampBase=r.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),i=this._demuxer.parseChunks(e,t)}else n=null,g.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(z.DEMUX_ERROR,a.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),i=0;return i}_onMediaInfo(e){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Je.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,Je.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=t,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let n=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(n)})}_onMetaDataArrived(e){this._emitter.emit(z.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(z.SCRIPTDATA_ARRIVED,e)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(e){let n=e+1;n<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(n)):(this._remuxer.flushStashedSamples(),this._emitter.emit(z.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(e){let t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}_onIORecoveredEarlyEof(){this._emitter.emit(z.RECOVERED_EARLY_EOF)}_onIOException(e,t){g.e(this.TAG,`IOException: type = ${e}, code = ${t.code}, msg = ${t.msg}`),this._emitter.emit(z.IO_ERROR,e,t),this._disableStatisticsReporter()}_onDemuxException(e,t){g.e(this.TAG,`DemuxException: type = ${e}, info = ${t}`),this._emitter.emit(z.DEMUX_ERROR,e,t)}_onRemuxerInitSegmentArrival(e,t){this._emitter.emit(z.INIT_SEGMENT,e,t)}_onRemuxerMediaSegmentArrival(e,t){if(this._pendingSeekTime==null&&(this._emitter.emit(z.MEDIA_SEGMENT,e,t),this._pendingResolveSeekPoint!=null&&e==="video")){let n=t.info.syncPoints,i=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,x.safari&&n.length>0&&n[0].originalDts===i&&(i=n[0].pts),this._emitter.emit(z.RECOMMEND_SEEKPOINT,i)}}_enableStatisticsReporter(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(e){let t=this._mediaInfo.segments[e],n=Object.assign({},t);n.duration=this._mediaInfo.duration,n.segmentCount=this._mediaInfo.segmentCount,delete n.segments,delete n.keyframesIndex,this._emitter.emit(z.MEDIA_INFO,n)}_reportStatisticsInfo(){let e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(z.STATISTICS_INFO,e)}}var _t=ct,et=function(Z){let e="TransmuxingWorker",t=null,n=ce.bind(this);w.install(),Z.addEventListener("message",function(Q){switch(Q.data.cmd){case"init":t=new _t(Q.data.param[0],Q.data.param[1]),t.on(z.IO_ERROR,Me.bind(this)),t.on(z.DEMUX_ERROR,ie.bind(this)),t.on(z.INIT_SEGMENT,i.bind(this)),t.on(z.MEDIA_SEGMENT,r.bind(this)),t.on(z.LOADING_COMPLETE,f.bind(this)),t.on(z.RECOVERED_EARLY_EOF,b.bind(this)),t.on(z.MEDIA_INFO,se.bind(this)),t.on(z.METADATA_ARRIVED,J.bind(this)),t.on(z.SCRIPTDATA_ARRIVED,de.bind(this)),t.on(z.STATISTICS_INFO,Ne.bind(this)),t.on(z.RECOMMEND_SEEKPOINT,De.bind(this));break;case"destroy":t&&(t.destroy(),t=null),Z.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(Q.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let ee=Q.data.param;ye.applyConfig(ee),ee.enableCallback===!0?ye.addLogListener(n):ye.removeLogListener(n);break}}});function i(Q,ee){let be={msg:z.INIT_SEGMENT,data:{type:Q,data:ee}};Z.postMessage(be,[ee.data])}function r(Q,ee){let be={msg:z.MEDIA_SEGMENT,data:{type:Q,data:ee}};Z.postMessage(be,[ee.data])}function f(){let Q={msg:z.LOADING_COMPLETE};Z.postMessage(Q)}function b(){let Q={msg:z.RECOVERED_EARLY_EOF};Z.postMessage(Q)}function se(Q){let ee={msg:z.MEDIA_INFO,data:Q};Z.postMessage(ee)}function J(Q){let ee={msg:z.METADATA_ARRIVED,data:Q};Z.postMessage(ee)}function de(Q){let ee={msg:z.SCRIPTDATA_ARRIVED,data:Q};Z.postMessage(ee)}function Ne(Q){let ee={msg:z.STATISTICS_INFO,data:Q};Z.postMessage(ee)}function Me(Q,ee){Z.postMessage({msg:z.IO_ERROR,data:{type:Q,info:ee}})}function ie(Q,ee){Z.postMessage({msg:z.DEMUX_ERROR,data:{type:Q,info:ee}})}function De(Q){Z.postMessage({msg:z.RECOMMEND_SEEKPOINT,data:Q})}function ce(Q,ee){Z.postMessage({msg:"logcat_callback",data:{type:Q,logcat:ee}})}};class ht{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(k()),t.enableWorker&&typeof Worker!="undefined")try{let n=l(18034);this._worker=n(et),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[e,t]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},ye.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:ye.getConfig()})}catch(n){g.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new _t(e,t)}else this._controller=new _t(e,t);if(this._controller){let n=this._controller;n.on(z.IO_ERROR,this._onIOError.bind(this)),n.on(z.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(z.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(z.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(z.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(z.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(z.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(z.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(z.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(z.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(z.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),ye.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}hasWorker(){return this._worker!=null}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(z.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(z.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(z.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(z.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(z.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(z.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(z.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(z.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(z.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(z.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(z.RECOMMEND_SEEKPOINT,e)})}_onLoggingConfigChanged(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})}_onWorkerMessage(e){let t=e.data,n=t.data;if(t.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(t.msg){case z.INIT_SEGMENT:case z.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case z.LOADING_COMPLETE:case z.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case z.MEDIA_INFO:Object.setPrototypeOf(n,Je.prototype),this._emitter.emit(t.msg,n);break;case z.METADATA_ARRIVED:case z.SCRIPTDATA_ARRIVED:case z.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case z.IO_ERROR:case z.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case z.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":g.emitter.emit("log",n.type,n.logcat);break;default:break}}}var Rt=ht,xt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Tt{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new(k()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new le}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaSource)throw new P("MediaSource has been attached to an HTMLMediaElement!");let t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let e=this._mediaSource;for(let t in this._sourceBuffers){let n=this._pendingSegments[t];n.splice(0,n.length),this._pendingSegments[t]=null,this._pendingRemoveRanges[t]=null,this._lastInitSegments[t]=null;let i=this._sourceBuffers[t];if(i){if(e.readyState!=="closed"){try{e.removeSourceBuffer(i)}catch(r){g.e(this.TAG,r.message)}i.removeEventListener("error",this.e.onSourceBufferError),i.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if(e.readyState==="open")try{e.endOfStream()}catch(t){g.e(this.TAG,t.message)}e.removeEventListener("sourceopen",this.e.onSourceOpen),e.removeEventListener("sourceended",this.e.onSourceEnded),e.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(e,t){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(e),this._pendingSegments[e.type].push(e);return}let n=e,i=`${n.container}`;n.codec&&n.codec.length>0&&(i+=`;codecs=${n.codec}`);let r=!1;if(g.v(this.TAG,"Received Initialization Segment, mimeType: "+i),this._lastInitSegments[n.type]=n,i!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])g.v(this.TAG,`Notice: ${n.type} mimeType changed, origin: ${this._mimeTypes[n.type]}, target: ${i}`);else{r=!0;try{let f=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);f.addEventListener("error",this.e.onSourceBufferError),f.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(f){g.e(this.TAG,f.message),this._emitter.emit(xt.ERROR,{code:f.code,msg:f.message});return}}this._mimeTypes[n.type]=i}t||this._pendingSegments[n.type].push(n),r||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),x.safari&&n.container==="audio/mpeg"&&n.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(e){let t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let n=this._sourceBuffers[t.type];n&&!n.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(e){for(let t in this._sourceBuffers){if(!this._sourceBuffers[t])continue;let n=this._sourceBuffers[t];if(this._mediaSource.readyState==="open")try{n.abort()}catch(r){g.e(this.TAG,r.message)}this._idrList.clear();let i=this._pendingSegments[t];if(i.splice(0,i.length),this._mediaSource.readyState!=="closed"){for(let r=0;r<n.buffered.length;r++){let f=n.buffered.start(r),b=n.buffered.end(r);this._pendingRemoveRanges[t].push({start:f,end:b})}if(n.updating||this._doRemoveRanges(),x.safari){let r=this._lastInitSegments[t];r&&(this._pendingSegments[t].push(r),n.updating||this._doAppendSegments())}}}}endOfStream(){let e=this._mediaSource,t=this._sourceBuffers;if(!e||e.readyState!=="open"){e&&e.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream())}getNearestKeyframe(e){return this._idrList.getLastSyncPointBeforeDts(e)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let i=n.buffered;if(i.length>=1&&e-i.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let i=n.buffered,r=!1;for(let f=0;f<i.length;f++){let b=i.start(f),se=i.end(f);if(b<=e&&e<se+3){if(e-b>=this._config.autoCleanupMaxBackwardDuration){r=!0;let J=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:b,end:J})}}else se<e&&(r=!0,this._pendingRemoveRanges[t].push({start:b,end:se}))}r&&!n.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let e=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||e.video&&e.video.updating||e.audio&&e.audio.updating)return;let t=this._mediaSource.duration,n=this._pendingMediaDuration;n>0&&(isNaN(t)||n>t)&&(g.v(this.TAG,`Update MediaSource duration from ${t} to ${n}`),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let e in this._pendingRemoveRanges){if(!this._sourceBuffers[e]||this._sourceBuffers[e].updating)continue;let t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];for(;n.length&&!t.updating;){let i=n.shift();t.remove(i.start,i.end)}}}_doAppendSegments(){let e=this._pendingSegments;for(let t in e)if(!(!this._sourceBuffers[t]||this._sourceBuffers[t].updating)&&e[t].length>0){let n=e[t].shift();if(n.timestampOffset){let i=this._sourceBuffers[t].timestampOffset,r=n.timestampOffset/1e3;Math.abs(i-r)>.1&&(g.v(this.TAG,`Update MPEG audio timestampOffset from ${i} to ${r}`),this._sourceBuffers[t].timestampOffset=r),delete n.timestampOffset}if(!n.data||n.data.byteLength===0)continue;try{this._sourceBuffers[t].appendBuffer(n.data),this._isBufferFull=!1,t==="video"&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(i){this._pendingSegments[t].unshift(n),i.code===22?(this._isBufferFull||this._emitter.emit(xt.BUFFER_FULL),this._isBufferFull=!0):(g.e(this.TAG,i.message),this._emitter.emit(xt.ERROR,{code:i.code,msg:i.message}))}}}_onSourceOpen(){if(g.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let e=this._pendingSourceBufferInit;for(;e.length;){let t=e.shift();this.appendInitSegment(t,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(xt.SOURCE_OPEN)}_onSourceEnded(){g.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){g.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let e=this._pendingSegments;return e.video.length>0||e.audio.length>0}_hasPendingRemoveRanges(){let e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(xt.UPDATE_END)}_onSourceBufferError(e){g.e(this.TAG,`SourceBuffer Error: ${e}`)}}var Kt=Tt;const $t={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Ht={NETWORK_EXCEPTION:G.EXCEPTION,NETWORK_STATUS_CODE_INVALID:G.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:G.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:G.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:a.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:a.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:a.CODEC_UNSUPPORTED};class rn{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(k()),this._config=$(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()!=="flv")throw new ne("FlvPlayer requires an flv MediaDataSource input!");e.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let n=x.chrome&&(x.version.major<50||x.version.major===50&&x.version.build<2661);this._alwaysSeekKeyframe=!!(n||x.msedge||x.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===Oe.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Oe.MEDIA_INFO,this.mediaInfo)}):e===Oe.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Oe.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new Kt(this._config),this._msectl.on(xt.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(xt.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(xt.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(xt.ERROR,t=>{this._emitter.emit(Oe.ERROR,$t.MEDIA_ERROR,Ht.MEDIA_MSE_ERROR,t)}),this._msectl.attachMediaElement(e),this._pendingSeekTime!=null)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new P("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new P("FlvPlayer.load() has been called, please call unload() first!");if(!this._hasPendingLoad){if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new Rt(this._mediaDataSource,this._config),this._transmuxer.on(z.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(z.MEDIA_SEGMENT,(e,t)=>{if(this._msectl.appendMediaSegment(t),this._config.lazyLoad&&!this._config.isLive){let n=this._mediaElement.currentTime;t.info.endDts>=(n+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(g.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(z.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(Oe.LOADING_COMPLETE)}),this._transmuxer.on(z.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(Oe.RECOVERED_EARLY_EOF)}),this._transmuxer.on(z.IO_ERROR,(e,t)=>{this._emitter.emit(Oe.ERROR,$t.NETWORK_ERROR,e,t)}),this._transmuxer.on(z.DEMUX_ERROR,(e,t)=>{this._emitter.emit(Oe.ERROR,$t.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(z.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(Oe.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(z.METADATA_ARRIVED,e=>{this._emitter.emit(Oe.METADATA_ARRIVED,e)}),this._transmuxer.on(z.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(Oe.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(z.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(Oe.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(z.RECOMMEND_SEEKPOINT,e=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e/1e3)}),this._transmuxer.open()}}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){let r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,i=0;for(let r=0;r<e.length;r++){let f=e.start(r),b=e.end(r);if(f<=t&&t<b){n=f,i=b;break}}i>=t+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(g.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){g.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1;for(let i=0;i<t.length;i++){let r=t.start(i),f=t.end(i);if(e>=r&&e<f){e>=f-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(g.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(e){let t=this._mediaElement.buffered;for(let n=0;n<t.length;n++){let i=t.start(n),r=t.end(n);if(e>=i&&e<r)return!0}return!1}_internalSeek(e){let t=this._isTimepointBuffered(e),n=!1,i=0;if(e<1&&this._mediaElement.buffered.length>0){let r=this._mediaElement.buffered.start(0);(r<1&&e<r||x.safari)&&(n=!0,i=x.safari?.1:r)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=i;else if(t){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=e;else{let r=this._msectl.getNearestKeyframe(Math.floor(e*1e3));this._requestSetTime=!0,r!=null?this._mediaElement.currentTime=r.dts/1e3:this._mediaElement.currentTime=e}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(e*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let e=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(e)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(e*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(e){let t=this._mediaElement;if(e||!this._receivedCanPlay||t.readyState<2){let n=t.buffered;n.length>0&&t.currentTime<n.start(0)&&(g.w(this.TAG,`Playback seems stuck at ${t.currentTime}, seek to ${n.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=n.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(e){let t=this._mediaElement.currentTime,n=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(t<1&&n.length>0){let i=n.start(0);if(i<1&&t<i||x.safari){this._requestSetTime=!0,this._mediaElement.currentTime=x.safari?.1:i;return}}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){let i=this._msectl.getNearestKeyframe(Math.floor(t*1e3));i!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=i.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(e){this._checkAndResumeStuckPlayback(!0)}_onvProgress(e){this._checkAndResumeStuckPlayback()}}var ve=rn;class Xe{constructor(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(k()),this._config=$(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()==="flv")throw new ne("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new ne(`NativePlayer(${e.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=e,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===Oe.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Oe.MEDIA_INFO,this.mediaInfo)}):e===Oe.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Oe.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new P("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e}get mediaInfo(){let t={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t}get statisticsInfo(){let e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){let r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Oe.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(Oe.STATISTICS_INFO,this.statisticsInfo)}}var It=Xe;w.install();function jt(Z,e){let t=Z;if(t==null||typeof t!="object")throw new ne("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new ne("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new ve(t,e);default:return new It(t,e)}}function kt(){return fe.supportMSEH264Playback()}function qt(){return fe.getFeatureList()}let $e={};$e.createPlayer=jt,$e.isSupported=kt,$e.getFeatureList=qt,$e.BaseLoader=he,$e.LoaderStatus=O,$e.LoaderErrors=G,$e.Events=Oe,$e.ErrorTypes=$t,$e.ErrorDetails=Ht,$e.FlvPlayer=ve,$e.NativePlayer=It,$e.LoggingControl=ye,Object.defineProperty($e,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Xt=$e},35874:function(Qe,ue,l){"use strict";l.d(ue,{Z:function(){return d}});var s=l(67294),w=l(91034),T=l(94184),k=l.n(T),A=l(87462),g=l(4942),q=l(97685),te=l(45987),u=l(62709),P=l(71002),ne=l(12060);function Y(a,m,R){var h=React.useRef({});return(!("value"in h.current)||R(h.current.condition,m))&&(h.current.value=a(),h.current.condition=m),h.current.value}function O(a,m){typeof a=="function"?a(m):(0,P.Z)(a)==="object"&&a&&"current"in a&&(a.current=m)}function G(){for(var a=arguments.length,m=new Array(a),R=0;R<a;R++)m[R]=arguments[R];var h=m.filter(function(E){return E});return h.length<=1?h[0]:function(E){m.forEach(function(S){O(S,E)})}}function he(){for(var a=arguments.length,m=new Array(a),R=0;R<a;R++)m[R]=arguments[R];return useMemo(function(){return G.apply(void 0,m)},m,function(h,E){return h.length===E.length&&h.every(function(S,o){return S===E[o]})})}function re(a){var m,R,h=(0,ne.isMemo)(a)?a.type.type:a.type;return!(typeof h=="function"&&!((m=h.prototype)!==null&&m!==void 0&&m.render)||typeof a=="function"&&!((R=a.prototype)!==null&&R!==void 0&&R.render))}var H={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(m){var R=m.keyCode;if(m.altKey&&!m.ctrlKey||m.metaKey||R>=H.F1&&R<=H.F12)return!1;switch(R){case H.ALT:case H.CAPS_LOCK:case H.CONTEXT_MENU:case H.CTRL:case H.DOWN:case H.END:case H.ESC:case H.HOME:case H.INSERT:case H.LEFT:case H.MAC_FF_META:case H.META:case H.NUMLOCK:case H.NUM_CENTER:case H.PAGE_DOWN:case H.PAGE_UP:case H.PAUSE:case H.PRINT_SCREEN:case H.RIGHT:case H.SHIFT:case H.UP:case H.WIN_KEY:case H.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(m){if(m>=H.ZERO&&m<=H.NINE||m>=H.NUM_ZERO&&m<=H.NUM_MULTIPLY||m>=H.A&&m<=H.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&m===0)return!0;switch(m){case H.SPACE:case H.QUESTION_MARK:case H.NUM_PLUS:case H.NUM_MINUS:case H.NUM_PERIOD:case H.NUM_DIVISION:case H.SEMICOLON:case H.DASH:case H.EQUALS:case H.COMMA:case H.PERIOD:case H.SLASH:case H.APOSTROPHE:case H.SINGLE_QUOTE:case H.OPEN_SQUARE_BRACKET:case H.BACKSLASH:case H.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},x=H,y=function(m){return+setTimeout(m,16)},_=function(m){return clearTimeout(m)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(y=function(m){return window.requestAnimationFrame(m)},_=function(m){return window.cancelAnimationFrame(m)});var L=0,v=new Map;function I(a){v.delete(a)}var K=function(m){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;L+=1;var h=L;function E(S){if(S===0)I(h),m();else{var o=y(function(){E(S-1)});v.set(h,o)}}return E(R),h};K.cancel=function(a){var m=v.get(a);return I(m),_(m)};var N=K,X=x.ESC,ae=x.TAB;function xe(a){var m=a.visible,R=a.triggerRef,h=a.onVisibleChange,E=a.autoFocus,S=a.overlayRef,o=s.useRef(!1),U=function(){if(m){var me,le;(me=R.current)===null||me===void 0||(le=me.focus)===null||le===void 0||le.call(me),h==null||h(!1)}},W=function(){var me;return(me=S.current)!==null&&me!==void 0&&me.focus?(S.current.focus(),o.current=!0,!0):!1},oe=function(me){switch(me.keyCode){case X:U();break;case ae:{var le=!1;o.current||(le=W()),le?me.preventDefault():U();break}}};s.useEffect(function(){return m?(window.addEventListener("keydown",oe),E&&N(W,3),function(){window.removeEventListener("keydown",oe),o.current=!1}):function(){o.current=!1}},[m])}var Te=(0,s.forwardRef)(function(a,m){var R=a.overlay,h=a.arrow,E=a.prefixCls,S=(0,s.useMemo)(function(){var U;return typeof R=="function"?U=R():U=R,U},[R]),o=G(m,S==null?void 0:S.ref);return s.createElement(s.Fragment,null,h&&s.createElement("div",{className:"".concat(E,"-arrow")}),s.cloneElement(S,{ref:re(S)?o:void 0}))}),Ue=Te,Fe={adjustX:1,adjustY:1},Le=[0,0],we={topLeft:{points:["bl","tl"],overflow:Fe,offset:[0,-4],targetOffset:Le},top:{points:["bc","tc"],overflow:Fe,offset:[0,-4],targetOffset:Le},topRight:{points:["br","tr"],overflow:Fe,offset:[0,-4],targetOffset:Le},bottomLeft:{points:["tl","bl"],overflow:Fe,offset:[0,4],targetOffset:Le},bottom:{points:["tc","bc"],overflow:Fe,offset:[0,4],targetOffset:Le},bottomRight:{points:["tr","br"],overflow:Fe,offset:[0,4],targetOffset:Le}},At=we,rt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function $(a,m){var R,h=a.arrow,E=h===void 0?!1:h,S=a.prefixCls,o=S===void 0?"rc-dropdown":S,U=a.transitionName,W=a.animation,oe=a.align,ge=a.placement,me=ge===void 0?"bottomLeft":ge,le=a.placements,Ae=le===void 0?At:le,Ze=a.getPopupContainer,ke=a.showAction,dt=a.hideAction,z=a.overlayClassName,ct=a.overlayStyle,_t=a.visible,Bt=a.trigger,et=Bt===void 0?["hover"]:Bt,ht=a.autoFocus,Rt=a.overlay,Ct=a.children,xt=a.onVisibleChange,Tt=(0,te.Z)(a,rt),Kt=s.useState(),$t=(0,q.Z)(Kt,2),Ht=$t[0],rn=$t[1],ve="visible"in a?_t:Ht,Xe=s.useRef(null),It=s.useRef(null),jt=s.useRef(null);s.useImperativeHandle(m,function(){return Xe.current});var kt=function(r){rn(r),xt==null||xt(r)};xe({visible:ve,triggerRef:jt,onVisibleChange:kt,autoFocus:ht,overlayRef:It});var qt=function(r){var f=a.onOverlayClick;rn(!1),f&&f(r)},$e=function(){return s.createElement(Ue,{ref:It,overlay:Rt,prefixCls:o,arrow:E})},Xt=function(){return typeof Rt=="function"?$e:$e()},Z=function(){var r=a.minOverlayWidthMatchTrigger,f=a.alignPoint;return"minOverlayWidthMatchTrigger"in a?r:!f},e=function(){var r=a.openClassName;return r!==void 0?r:"".concat(o,"-open")},t=s.cloneElement(Ct,{className:k()((R=Ct.props)===null||R===void 0?void 0:R.className,ve&&e()),ref:re(Ct)?G(jt,Ct.ref):void 0}),n=dt;return!n&&et.indexOf("contextMenu")!==-1&&(n=["click"]),s.createElement(u.Z,(0,A.Z)({builtinPlacements:Ae},Tt,{prefixCls:o,ref:Xe,popupClassName:k()(z,(0,g.Z)({},"".concat(o,"-show-arrow"),E)),popupStyle:ct,action:et,showAction:ke,hideAction:n,popupPlacement:me,popupAlign:oe,popupTransitionName:U,popupAnimation:W,popupVisible:ve,stretch:Z()?"minWidth":"",popup:Xt(),onPopupVisibleChange:kt,onPopupClick:qt,getPopupContainer:Ze}),t)}var Be=s.forwardRef($),fe=Be,Ge=l(60276),Oe=l(5663),pe=l(10366),ye=l(80636),mt=l(8745),Je=l(96159),ut=l(53124),vt=l(68508),pt=l(76529),qe=l(46605),We=l(66748);const Dt=null,it=a=>{const{menu:m,arrow:R,prefixCls:h,children:E,trigger:S,disabled:o,dropdownRender:U,getPopupContainer:W,overlayClassName:oe,rootClassName:ge,open:me,onOpenChange:le,visible:Ae,onVisibleChange:Ze,mouseEnterDelay:ke=.15,mouseLeaveDelay:dt=.1,autoAdjustOverflow:z=!0,placement:ct="",overlay:_t,transitionName:Bt}=a,{getPopupContainer:et,getPrefixCls:ht,direction:Rt}=s.useContext(ut.E_),Ct=s.useMemo(()=>{const t=ht();return Bt!==void 0?Bt:ct.includes("top")?`${t}-slide-down`:`${t}-slide-up`},[ht,ct,Bt]),xt=s.useMemo(()=>ct?ct.includes("Center")?ct.slice(0,ct.indexOf("Center")):ct:Rt==="rtl"?"bottomRight":"bottomLeft",[ct,Rt]),Tt=ht("dropdown",h),[Kt,$t]=(0,We.Z)(Tt),[,Ht]=(0,qe.Z)(),rn=s.Children.only(E),ve=(0,Je.Tm)(rn,{className:k()(`${Tt}-trigger`,{[`${Tt}-rtl`]:Rt==="rtl"},rn.props.className),disabled:o}),Xe=o?[]:S;let It;Xe&&Xe.includes("contextMenu")&&(It=!0);const[jt,kt]=(0,Oe.Z)(!1,{value:me!=null?me:Ae}),qt=(0,Ge.useEvent)(t=>{le==null||le(t),Ze==null||Ze(t),kt(t)}),$e=k()(oe,ge,$t,{[`${Tt}-rtl`]:Rt==="rtl"}),Xt=(0,ye.Z)({arrowPointAtCenter:typeof R=="object"&&R.pointAtCenter,autoAdjustOverflow:z,offset:Ht.marginXXS,arrowWidth:R?Ht.sizePopupArrow:0,borderRadius:Ht.borderRadius}),Z=s.useCallback(()=>{kt(!1)},[]),e=()=>{let t;return m!=null&&m.items?t=s.createElement(vt.default,Object.assign({},m)):typeof _t=="function"?t=_t():t=_t,U&&(t=U(t)),t=s.Children.only(typeof t=="string"?s.createElement("span",null,t):t),s.createElement(pt.J,{prefixCls:`${Tt}-menu`,expandIcon:s.createElement("span",{className:`${Tt}-menu-submenu-arrow`},s.createElement(w.Z,{className:`${Tt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Z,validator:n=>{let{mode:i}=n}},t)};return Kt(s.createElement(fe,Object.assign({alignPoint:It},(0,pe.Z)(a,["rootClassName"]),{mouseEnterDelay:ke,mouseLeaveDelay:dt,visible:jt,builtinPlacements:Xt,arrow:!!R,overlayClassName:$e,prefixCls:Tt,getPopupContainer:W||et,transitionName:Ct,trigger:Xe,overlay:e,placement:xt,onVisibleChange:qt}),ve))};function Re(a){return Object.assign(Object.assign({},a),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const M=(0,mt.Z)(it,"dropdown",a=>a,Re),c=a=>s.createElement(M,Object.assign({},a),s.createElement("span",null));it._InternalPanelDoNotUseOrYouWillBeFired=c;var d=it},85418:function(Qe,ue,l){"use strict";l.d(ue,{Z:function(){return he}});var s=l(35874),w=l(94184),T=l.n(w),k=l(67294),A=l(25877),g=l(71577),q=l(53124),te=l(93421),u=l(4173),P=l(66748),ne=function(re,H){var x={};for(var y in re)Object.prototype.hasOwnProperty.call(re,y)&&H.indexOf(y)<0&&(x[y]=re[y]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,y=Object.getOwnPropertySymbols(re);_<y.length;_++)H.indexOf(y[_])<0&&Object.prototype.propertyIsEnumerable.call(re,y[_])&&(x[y[_]]=re[y[_]]);return x};const Y=re=>{const{getPopupContainer:H,getPrefixCls:x,direction:y}=k.useContext(q.E_),{prefixCls:_,type:L="default",danger:v,disabled:I,loading:K,onClick:N,htmlType:X,children:ae,className:xe,menu:Te,arrow:Ue,autoFocus:Fe,overlay:Le,trigger:we,align:At,open:rt,onOpenChange:$,placement:Be,getPopupContainer:fe,href:Ge,icon:Oe=k.createElement(A.Z,null),title:pe,buttonsRender:ye=o=>o,mouseEnterDelay:mt,mouseLeaveDelay:Je,overlayClassName:ut,overlayStyle:vt,destroyPopupOnHide:pt,dropdownRender:qe}=re,We=ne(re,["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"]),Dt=x("dropdown",_),it=`${Dt}-button`,[Re,M]=(0,P.Z)(Dt),c={menu:Te,arrow:Ue,autoFocus:Fe,align:At,disabled:I,trigger:I?[]:we,onOpenChange:$,getPopupContainer:fe||H,mouseEnterDelay:mt,mouseLeaveDelay:Je,overlayClassName:ut,overlayStyle:vt,destroyPopupOnHide:pt,dropdownRender:qe},{compactSize:d,compactItemClassnames:a}=(0,u.ri)(Dt,y),m=T()(it,a,xe,M);"overlay"in re&&(c.overlay=Le),"open"in re&&(c.open=rt),"placement"in re?c.placement=Be:c.placement=y==="rtl"?"bottomLeft":"bottomRight";const R=k.createElement(g.ZP,{type:L,danger:v,disabled:I,loading:K,onClick:N,htmlType:X,href:Ge,title:pe},ae),h=k.createElement(g.ZP,{type:L,danger:v,icon:Oe}),[E,S]=ye([R,h]);return Re(k.createElement(te.Z.Compact,Object.assign({className:m,size:d,block:!0},We),E,k.createElement(s.Z,Object.assign({},c),S)))};Y.__ANT_BUTTON=!0;var O=Y;const G=s.Z;G.Button=O;var he=G},66748:function(Qe,ue,l){"use strict";l.d(ue,{Z:function(){return ne}});var s=l(14747),w=l(67771),T=l(33297),k=l(50438),A=l(97414),g=l(67968),q=l(45503),u=Y=>{const{componentCls:O,menuCls:G,colorError:he,colorTextLightSolid:re}=Y,H=`${G}-item`;return{[`${O}, ${O}-menu-submenu`]:{[`${G} ${H}`]:{[`&${H}-danger:not(${H}-disabled)`]:{color:he,"&:hover":{color:re,backgroundColor:he}}}}}};const P=Y=>{const{componentCls:O,menuCls:G,zIndexPopup:he,dropdownArrowDistance:re,sizePopupArrow:H,antCls:x,iconCls:y,motionDurationMid:_,dropdownPaddingVertical:L,fontSize:v,dropdownEdgeChildPadding:I,colorTextDisabled:K,fontSizeIcon:N,controlPaddingHorizontal:X,colorBgElevated:ae}=Y;return[{[O]:Object.assign(Object.assign({},(0,s.Wf)(Y)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:he,display:"block","&::before":{position:"absolute",insetBlock:-re+H/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${x}-btn`]:{[`& > ${y}-down, & > ${x}-btn-icon > ${y}-down`]:{fontSize:N}},[`${O}-wrap`]:{position:"relative",[`${x}-btn > ${y}-down`]:{fontSize:N},[`${y}-down::before`]:{transition:`transform ${_}`}},[`${O}-wrap-open`]:{[`${y}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${x}-slide-down-enter${x}-slide-down-enter-active${O}-placement-bottomLeft,
&${x}-slide-down-appear${x}-slide-down-appear-active${O}-placement-bottomLeft,
&${x}-slide-down-enter${x}-slide-down-enter-active${O}-placement-bottom,
&${x}-slide-down-appear${x}-slide-down-appear-active${O}-placement-bottom,
&${x}-slide-down-enter${x}-slide-down-enter-active${O}-placement-bottomRight,
&${x}-slide-down-appear${x}-slide-down-appear-active${O}-placement-bottomRight`]:{animationName:w.fJ},[`&${x}-slide-up-enter${x}-slide-up-enter-active${O}-placement-topLeft,
&${x}-slide-up-appear${x}-slide-up-appear-active${O}-placement-topLeft,
&${x}-slide-up-enter${x}-slide-up-enter-active${O}-placement-top,
&${x}-slide-up-appear${x}-slide-up-appear-active${O}-placement-top,
&${x}-slide-up-enter${x}-slide-up-enter-active${O}-placement-topRight,
&${x}-slide-up-appear${x}-slide-up-appear-active${O}-placement-topRight`]:{animationName:w.Qt},[`&${x}-slide-down-leave${x}-slide-down-leave-active${O}-placement-bottomLeft,
&${x}-slide-down-leave${x}-slide-down-leave-active${O}-placement-bottom,
&${x}-slide-down-leave${x}-slide-down-leave-active${O}-placement-bottomRight`]:{animationName:w.Uw},[`&${x}-slide-up-leave${x}-slide-up-leave-active${O}-placement-topLeft,
&${x}-slide-up-leave${x}-slide-up-leave-active${O}-placement-top,
&${x}-slide-up-leave${x}-slide-up-leave-active${O}-placement-topRight`]:{animationName:w.ly}})},(0,A.ZP)(Y,{colorBg:ae,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${O} ${G}`]:{position:"relative",margin:0},[`${G}-submenu-popup`]:{position:"absolute",zIndex:he,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${O}, ${O}-menu-submenu`]:{[G]:Object.assign(Object.assign({padding:I,listStyleType:"none",backgroundColor:ae,backgroundClip:"padding-box",borderRadius:Y.borderRadiusLG,outline:"none",boxShadow:Y.boxShadowSecondary},(0,s.Qy)(Y)),{[`${G}-item-group-title`]:{padding:`${L}px ${X}px`,color:Y.colorTextDescription,transition:`all ${_}`},[`${G}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${G}-item-icon`]:{minWidth:v,marginInlineEnd:Y.marginXS,fontSize:Y.fontSizeSM},[`${G}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${_}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${G}-item, ${G}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${L}px ${X}px`,color:Y.colorText,fontWeight:"normal",fontSize:v,lineHeight:Y.lineHeight,cursor:"pointer",transition:`all ${_}`,borderRadius:Y.borderRadiusSM,"&:hover, &-active":{backgroundColor:Y.controlItemBgHover}},(0,s.Qy)(Y)),{"&-selected":{color:Y.colorPrimary,backgroundColor:Y.controlItemBgActive,"&:hover, &-active":{backgroundColor:Y.controlItemBgActiveHover}},"&-disabled":{color:K,cursor:"not-allowed","&:hover":{color:K,backgroundColor:ae,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Y.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Y.colorSplit},[`${O}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Y.paddingXS,[`${O}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Y.colorTextDescription,fontSize:N,fontStyle:"normal"}}}),[`${G}-item-group-list`]:{margin:`0 ${Y.marginXS}px`,padding:0,listStyle:"none"},[`${G}-submenu-title`]:{paddingInlineEnd:X+Y.fontSizeSM},[`${G}-submenu-vertical`]:{position:"relative"},[`${G}-submenu${G}-submenu-disabled ${O}-menu-submenu-title`]:{[`&, ${O}-menu-submenu-arrow-icon`]:{color:K,backgroundColor:ae,cursor:"not-allowed"}},[`${G}-submenu-selected ${O}-menu-submenu-title`]:{color:Y.colorPrimary}})}},[(0,w.oN)(Y,"slide-up"),(0,w.oN)(Y,"slide-down"),(0,T.Fm)(Y,"move-up"),(0,T.Fm)(Y,"move-down"),(0,k._y)(Y,"zoom-big")]]};var ne=(0,g.Z)("Dropdown",(Y,O)=>{let{rootPrefixCls:G}=O;const{marginXXS:he,sizePopupArrow:re,controlHeight:H,fontSize:x,lineHeight:y,paddingXXS:_,componentCls:L,borderRadiusLG:v}=Y,I=(H-x*y)/2,{dropdownArrowOffset:K}=(0,A.fS)({contentRadius:v}),N=(0,q.TS)(Y,{menuCls:`${L}-menu`,rootPrefixCls:G,dropdownArrowDistance:re/2+he,dropdownArrowOffset:K,dropdownPaddingVertical:I,dropdownEdgeChildPadding:_});return[P(N),u(N)]},Y=>({zIndexPopup:Y.zIndexPopupBase+50}))},71322:function(Qe,ue,l){"use strict";l.d(ue,{D:function(){return y},Z:function(){return v}});var s=l(87462),w=l(67294),T={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"},k=T,A=l(74643),g=function(K,N){return w.createElement(A.Z,(0,s.Z)({},K,{ref:N,icon:k}))},q=w.forwardRef(g),te=l(22751),u=l(91034),P=l(94184),ne=l.n(P),Y=l(10366),G=I=>!isNaN(parseFloat(I))&&isFinite(I),he=l(53124),re=l(84321),H=function(I,K){var N={};for(var X in I)Object.prototype.hasOwnProperty.call(I,X)&&K.indexOf(X)<0&&(N[X]=I[X]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,X=Object.getOwnPropertySymbols(I);ae<X.length;ae++)K.indexOf(X[ae])<0&&Object.prototype.propertyIsEnumerable.call(I,X[ae])&&(N[X[ae]]=I[X[ae]]);return N};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},y=w.createContext({}),_=(()=>{let I=0;return function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return I+=1,`${K}${I}`}})();var v=w.forwardRef((I,K)=>{const{prefixCls:N,className:X,trigger:ae,children:xe,defaultCollapsed:Te=!1,theme:Ue="dark",style:Fe={},collapsible:Le=!1,reverseArrow:we=!1,width:At=200,collapsedWidth:rt=80,zeroWidthTriggerStyle:$,breakpoint:Be,onCollapse:fe,onBreakpoint:Ge}=I,Oe=H(I,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:pe}=(0,w.useContext)(re.Gs),[ye,mt]=(0,w.useState)("collapsed"in I?I.collapsed:Te),[Je,ut]=(0,w.useState)(!1);(0,w.useEffect)(()=>{"collapsed"in I&&mt(I.collapsed)},[I.collapsed]);const vt=(Re,M)=>{"collapsed"in I||mt(Re),fe==null||fe(Re,M)},pt=(0,w.useRef)();pt.current=Re=>{ut(Re.matches),Ge==null||Ge(Re.matches),ye!==Re.matches&&vt(Re.matches,"responsive")},(0,w.useEffect)(()=>{function Re(c){return pt.current(c)}let M;if(typeof window!="undefined"){const{matchMedia:c}=window;if(c&&Be&&Be in x){M=c(`(max-width: ${x[Be]})`);try{M.addEventListener("change",Re)}catch(d){M.addListener(Re)}Re(M)}}return()=>{try{M==null||M.removeEventListener("change",Re)}catch(c){M==null||M.removeListener(Re)}}},[Be]),(0,w.useEffect)(()=>{const Re=_("ant-sider-");return pe.addSider(Re),()=>pe.removeSider(Re)},[]);const qe=()=>{vt(!ye,"clickTrigger")},{getPrefixCls:We}=(0,w.useContext)(he.E_),Dt=()=>{const Re=We("layout-sider",N),M=(0,Y.Z)(Oe,["collapsed"]),c=ye?rt:At,d=G(c)?`${c}px`:String(c),a=parseFloat(String(rt||0))===0?w.createElement("span",{onClick:qe,className:ne()(`${Re}-zero-width-trigger`,`${Re}-zero-width-trigger-${we?"right":"left"}`),style:$},ae||w.createElement(q,null)):null,h={expanded:we?w.createElement(u.Z,null):w.createElement(te.Z,null),collapsed:we?w.createElement(te.Z,null):w.createElement(u.Z,null)}[ye?"collapsed":"expanded"],E=ae!==null?a||w.createElement("div",{className:`${Re}-trigger`,onClick:qe,style:{width:d}},ae||h):null,S=Object.assign(Object.assign({},Fe),{flex:`0 0 ${d}`,maxWidth:d,minWidth:d,width:d}),o=ne()(Re,`${Re}-${Ue}`,{[`${Re}-collapsed`]:!!ye,[`${Re}-has-trigger`]:Le&&ae!==null&&!a,[`${Re}-below`]:!!Je,[`${Re}-zero-width`]:parseFloat(d)===0},X);return w.createElement("aside",Object.assign({className:o},M,{style:S,ref:K}),w.createElement("div",{className:`${Re}-children`},xe),Le||Je&&a?E:null)},it=w.useMemo(()=>({siderCollapsed:ye}),[ye]);return w.createElement(y.Provider,{value:it},Dt())})},84321:function(Qe,ue,l){"use strict";l.d(ue,{VY:function(){return _},$_:function(){return y},h4:function(){return x},Gs:function(){return O},ZP:function(){return L}});var s=l(74902),w=l(94184),T=l.n(w),k=l(10366),A=l(67294),g=l(53124),q=l(67968),u=v=>{const{componentCls:I,bodyBg:K,lightSiderBg:N,lightTriggerBg:X,lightTriggerColor:ae}=v;return{[`${I}-sider-light`]:{background:N,[`${I}-sider-trigger`]:{color:ae,background:X},[`${I}-sider-zero-width-trigger`]:{color:ae,background:X,border:`1px solid ${K}`,borderInlineStart:0}}}};const P=v=>{const{antCls:I,componentCls:K,colorText:N,triggerColor:X,footerBg:ae,triggerBg:xe,headerHeight:Te,headerPadding:Ue,headerColor:Fe,footerPadding:Le,triggerHeight:we,zeroTriggerHeight:At,zeroTriggerWidth:rt,motionDurationMid:$,motionDurationSlow:Be,fontSize:fe,borderRadius:Ge,bodyBg:Oe,headerBg:pe,siderBg:ye}=v;return{[K]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Oe,"&, *":{boxSizing:"border-box"},[`&${K}-has-sider`]:{flexDirection:"row",[`> ${K}, > ${K}-content`]:{width:0}},[`${K}-header, &${K}-footer`]:{flex:"0 0 auto"},[`${K}-sider`]:{position:"relative",minWidth:0,background:ye,transition:`all ${$}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${I}-menu${I}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:we},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:we,color:X,lineHeight:`${we}px`,textAlign:"center",background:xe,cursor:"pointer",transition:`all ${$}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Te,insetInlineEnd:-rt,zIndex:1,width:rt,height:At,color:X,fontSize:v.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ye,borderStartStartRadius:0,borderStartEndRadius:Ge,borderEndEndRadius:Ge,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Be} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Be}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-rt,borderStartStartRadius:Ge,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ge}}}}},u(v)),{"&-rtl":{direction:"rtl"}}),[`${K}-header`]:{height:Te,padding:Ue,color:Fe,lineHeight:`${Te}px`,background:pe,[`${I}-menu`]:{lineHeight:"inherit"}},[`${K}-footer`]:{padding:Le,color:N,fontSize:fe,background:ae},[`${K}-content`]:{flex:"auto",minHeight:0}}};var ne=(0,q.Z)("Layout",v=>[P(v)],v=>{const{colorBgLayout:I,controlHeight:K,controlHeightLG:N,colorText:X,controlHeightSM:ae,marginXXS:xe,colorTextLightSolid:Te,colorBgContainer:Ue}=v,Fe=N*1.25;return{colorBgHeader:"#001529",colorBgBody:I,colorBgTrigger:"#002140",bodyBg:I,headerBg:"#001529",headerHeight:K*2,headerPadding:`0 ${Fe}px`,headerColor:X,footerPadding:`${ae}px ${Fe}px`,footerBg:I,siderBg:"#001529",triggerHeight:N+xe*2,triggerBg:"#002140",triggerColor:Te,zeroTriggerWidth:N,zeroTriggerHeight:N,lightSiderBg:Ue,lightTriggerBg:Ue,lightTriggerColor:X}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Y=function(v,I){var K={};for(var N in v)Object.prototype.hasOwnProperty.call(v,N)&&I.indexOf(N)<0&&(K[N]=v[N]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,N=Object.getOwnPropertySymbols(v);X<N.length;X++)I.indexOf(N[X])<0&&Object.prototype.propertyIsEnumerable.call(v,N[X])&&(K[N[X]]=v[N[X]]);return K};const O=A.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function G(v){let{suffixCls:I,tagName:K,displayName:N}=v;return X=>A.forwardRef((xe,Te)=>A.createElement(X,Object.assign({ref:Te,suffixCls:I,tagName:K},xe)))}const he=A.forwardRef((v,I)=>{const{prefixCls:K,suffixCls:N,className:X,tagName:ae}=v,xe=Y(v,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Te}=A.useContext(g.E_),Ue=Te("layout",K),[Fe,Le]=ne(Ue),we=N?`${Ue}-${N}`:Ue;return Fe(A.createElement(ae,Object.assign({className:T()(K||we,X,Le),ref:I},xe)))}),re=A.forwardRef((v,I)=>{const{direction:K}=A.useContext(g.E_),[N,X]=A.useState([]),{prefixCls:ae,className:xe,rootClassName:Te,children:Ue,hasSider:Fe,tagName:Le,style:we}=v,At=Y(v,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),rt=(0,k.Z)(At,["suffixCls"]),{getPrefixCls:$,layout:Be}=A.useContext(g.E_),fe=$("layout",ae),[Ge,Oe]=ne(fe),pe=T()(fe,{[`${fe}-has-sider`]:typeof Fe=="boolean"?Fe:N.length>0,[`${fe}-rtl`]:K==="rtl"},Be==null?void 0:Be.className,xe,Te,Oe),ye=A.useMemo(()=>({siderHook:{addSider:mt=>{X(Je=>[].concat((0,s.Z)(Je),[mt]))},removeSider:mt=>{X(Je=>Je.filter(ut=>ut!==mt))}}}),[]);return Ge(A.createElement(O.Provider,{value:ye},A.createElement(Le,Object.assign({ref:I,className:pe,style:Object.assign(Object.assign({},Be==null?void 0:Be.style),we)},rt),Ue)))}),H=G({tagName:"div",displayName:"Layout"})(re),x=G({suffixCls:"header",tagName:"header",displayName:"Header"})(he),y=G({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(he),_=G({suffixCls:"content",tagName:"main",displayName:"Content"})(he);var L=H},76529:function(Qe,ue,l){"use strict";l.d(ue,{J:function(){return g}});var s=l(67294),w=l(4173),T=l(60276),k=function(q,te){var u={};for(var P in q)Object.prototype.hasOwnProperty.call(q,P)&&te.indexOf(P)<0&&(u[P]=q[P]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,P=Object.getOwnPropertySymbols(q);ne<P.length;ne++)te.indexOf(P[ne])<0&&Object.prototype.propertyIsEnumerable.call(q,P[ne])&&(u[P[ne]]=q[P[ne]]);return u};const A=s.createContext(null),g=s.forwardRef((q,te)=>{const{children:u}=q,P=k(q,["children"]),ne=s.useContext(A),Y=s.useMemo(()=>Object.assign(Object.assign({},ne),P),[ne,P.prefixCls,P.mode,P.selectable]);return s.createElement(A.Provider,{value:Y},s.createElement(w.BR,null,(0,T.supportNodeRef)(u)?s.cloneElement(u,{ref:te}):u))});ue.Z=A},68508:function(Qe,ue,l){"use strict";l.d(ue,{default:function(){return Re}});var s=l(78595),w=l(67294),T=l(71322),k=l(94184),A=l.n(k),g=l(53124),q=function(M,c){var d={};for(var a in M)Object.prototype.hasOwnProperty.call(M,a)&&c.indexOf(a)<0&&(d[a]=M[a]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,a=Object.getOwnPropertySymbols(M);m<a.length;m++)c.indexOf(a[m])<0&&Object.prototype.propertyIsEnumerable.call(M,a[m])&&(d[a[m]]=M[a[m]]);return d},u=M=>{const{prefixCls:c,className:d,dashed:a}=M,m=q(M,["prefixCls","className","dashed"]),{getPrefixCls:R}=w.useContext(g.E_),h=R("menu",c),E=A()({[`${h}-item-divider-dashed`]:!!a},d);return w.createElement(s.iz,Object.assign({className:E},m))},P=l(37419),ne=l(10366),Y=l(83062),O=l(96159),he=(0,w.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),H=M=>{var c;const{className:d,children:a,icon:m,title:R,danger:h}=M,{prefixCls:E,firstLevel:S,direction:o,disableMenuItemTitleTooltip:U,inlineCollapsed:W}=w.useContext(he),oe=ke=>{const dt=w.createElement("span",{className:`${E}-title-content`},a);return(!m||(0,O.l$)(a)&&a.type==="span")&&a&&ke&&S&&typeof a=="string"?w.createElement("div",{className:`${E}-inline-collapsed-noicon`},a.charAt(0)):dt},{siderCollapsed:ge}=w.useContext(T.D);let me=R;typeof R=="undefined"?me=S?a:"":R===!1&&(me="");const le={title:me};!ge&&!W&&(le.title=null,le.open=!1);const Ae=(0,P.Z)(a).length;let Ze=w.createElement(s.ck,Object.assign({},(0,ne.Z)(M,["title","icon","danger"]),{className:A()({[`${E}-item-danger`]:h,[`${E}-item-only-child`]:(m?Ae+1:Ae)===1},d),title:typeof R=="string"?R:void 0}),(0,O.Tm)(m,{className:A()((0,O.l$)(m)?(c=m.props)===null||c===void 0?void 0:c.className:"",`${E}-item-icon`)}),oe(W));return U||(Ze=w.createElement(Y.Z,Object.assign({},le,{placement:o==="rtl"?"left":"right",overlayClassName:`${E}-inline-collapsed-tooltip`}),Ze)),Ze},y=M=>{var c;const{popupClassName:d,icon:a,title:m,theme:R}=M,h=w.useContext(he),{prefixCls:E,inlineCollapsed:S,theme:o}=h,U=(0,s.Xl)();let W;if(!a)W=S&&!U.length&&m&&typeof m=="string"?w.createElement("div",{className:`${E}-inline-collapsed-noicon`},m.charAt(0)):w.createElement("span",{className:`${E}-title-content`},m);else{const ge=(0,O.l$)(m)&&m.type==="span";W=w.createElement(w.Fragment,null,(0,O.Tm)(a,{className:A()((0,O.l$)(a)?(c=a.props)===null||c===void 0?void 0:c.className:"",`${E}-item-icon`)}),ge?m:w.createElement("span",{className:`${E}-title-content`},m))}const oe=w.useMemo(()=>Object.assign(Object.assign({},h),{firstLevel:!1}),[h]);return w.createElement(he.Provider,{value:oe},w.createElement(s.Wd,Object.assign({},(0,ne.Z)(M,["icon"]),{title:W,popupClassName:A()(E,d,`${E}-${R||o}`)})))},_=l(25877),L=l(60276),v=l(33603),I=l(76529),K=function(M,c){var d={};for(var a in M)Object.prototype.hasOwnProperty.call(M,a)&&c.indexOf(a)<0&&(d[a]=M[a]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,a=Object.getOwnPropertySymbols(M);m<a.length;m++)c.indexOf(a[m])<0&&Object.prototype.propertyIsEnumerable.call(M,a[m])&&(d[a[m]]=M[a[m]]);return d};function N(M){return(M||[]).map((c,d)=>{if(c&&typeof c=="object"){const a=c,{label:m,children:R,key:h,type:E}=a,S=K(a,["label","children","key","type"]),o=h!=null?h:`tmp-${d}`;return R||E==="group"?E==="group"?w.createElement(s.BW,Object.assign({key:o},S,{title:m}),N(R)):w.createElement(y,Object.assign({key:o},S,{title:m}),N(R)):E==="divider"?w.createElement(u,Object.assign({key:o},S)):w.createElement(H,Object.assign({key:o},S),m)}return null}).filter(c=>c)}function X(M){return w.useMemo(()=>M&&N(M),[M])}var ae=l(84780),xe=l(14747),Te=l(33507),Ue=l(67771),Fe=l(50438),Le=l(67968),we=l(45503),rt=M=>{const{componentCls:c,motionDurationSlow:d,horizontalLineHeight:a,colorSplit:m,lineWidth:R,lineType:h,itemPaddingInline:E}=M;return{[`${c}-horizontal`]:{lineHeight:a,border:0,borderBottom:`${R}px ${h} ${m}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${c}-item, ${c}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:E},[`> ${c}-item:hover,
> ${c}-item-active,
> ${c}-submenu ${c}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${c}-item, ${c}-submenu-title`]:{transition:[`border-color ${d}`,`background ${d}`].join(",")},[`${c}-submenu-arrow`]:{display:"none"}}}},Be=M=>{let{componentCls:c,menuArrowOffset:d}=M;return{[`${c}-rtl`]:{direction:"rtl"},[`${c}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${c}-rtl${c}-vertical,
${c}-submenu-rtl ${c}-vertical`]:{[`${c}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${d})`},"&::after":{transform:`rotate(45deg) translateY(${d})`}}}}};const fe=M=>Object.assign({},(0,xe.oN)(M));var Oe=(M,c)=>{const{componentCls:d,itemColor:a,itemSelectedColor:m,groupTitleColor:R,itemBg:h,subMenuItemBg:E,itemSelectedBg:S,activeBarHeight:o,activeBarWidth:U,activeBarBorderWidth:W,motionDurationSlow:oe,motionEaseInOut:ge,motionEaseOut:me,itemPaddingInline:le,motionDurationMid:Ae,itemHoverColor:Ze,lineType:ke,colorSplit:dt,itemDisabledColor:z,dangerItemColor:ct,dangerItemHoverColor:_t,dangerItemSelectedColor:Bt,dangerItemActiveBg:et,dangerItemSelectedBg:ht,itemHoverBg:Rt,itemActiveBg:Ct,menuSubMenuBg:xt,horizontalItemSelectedColor:Tt,horizontalItemSelectedBg:Kt,horizontalItemBorderRadius:$t,horizontalItemHoverBg:Ht,popupBg:rn}=M;return{[`${d}-${c}, ${d}-${c} > ${d}`]:{color:a,background:h,[`&${d}-root:focus-visible`]:Object.assign({},fe(M)),[`${d}-item-group-title`]:{color:R},[`${d}-submenu-selected`]:{[`> ${d}-submenu-title`]:{color:m}},[`${d}-item-disabled, ${d}-submenu-disabled`]:{color:`${z} !important`},[`${d}-item:not(${d}-item-selected):not(${d}-submenu-selected)`]:{[`&:hover, > ${d}-submenu-title:hover`]:{color:Ze}},[`&:not(${d}-horizontal)`]:{[`${d}-item:not(${d}-item-selected)`]:{"&:hover":{backgroundColor:Rt},"&:active":{backgroundColor:Ct}},[`${d}-submenu-title`]:{"&:hover":{backgroundColor:Rt},"&:active":{backgroundColor:Ct}}},[`${d}-item-danger`]:{color:ct,[`&${d}-item:hover`]:{[`&:not(${d}-item-selected):not(${d}-submenu-selected)`]:{color:_t}},[`&${d}-item:active`]:{background:et}},[`${d}-item a`]:{"&, &:hover":{color:"inherit"}},[`${d}-item-selected`]:{color:m,[`&${d}-item-danger`]:{color:Bt},"a, a:hover":{color:"inherit"}},[`& ${d}-item-selected`]:{backgroundColor:S,[`&${d}-item-danger`]:{backgroundColor:ht}},[`${d}-item, ${d}-submenu-title`]:{[`&:not(${d}-item-disabled):focus-visible`]:Object.assign({},fe(M))},[`&${d}-submenu > ${d}`]:{backgroundColor:xt},[`&${d}-popup > ${d}`]:{backgroundColor:rn},[`&${d}-horizontal`]:Object.assign(Object.assign({},c==="dark"?{borderBottom:0}:{}),{[`> ${d}-item, > ${d}-submenu`]:{top:W,marginTop:-W,marginBottom:0,borderRadius:$t,"&::after":{position:"absolute",insetInline:le,bottom:0,borderBottom:`${o}px solid transparent`,transition:`border-color ${oe} ${ge}`,content:'""'},"&:hover, &-active, &-open":{background:Ht,"&::after":{borderBottomWidth:o,borderBottomColor:Tt}},"&-selected":{color:Tt,backgroundColor:Kt,"&:hover":{backgroundColor:Kt},"&::after":{borderBottomWidth:o,borderBottomColor:Tt}}}}),[`&${d}-root`]:{[`&${d}-inline, &${d}-vertical`]:{borderInlineEnd:`${W}px ${ke} ${dt}`}},[`&${d}-inline`]:{[`${d}-sub${d}-inline`]:{background:E},[`${d}-item, ${d}-submenu-title`]:W&&U?{width:`calc(100% + ${W}px)`}:{},[`${d}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${U}px solid ${m}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ae} ${me}`,`opacity ${Ae} ${me}`].join(","),content:'""'},[`&${d}-item-danger`]:{"&::after":{borderInlineEndColor:Bt}}},[`${d}-selected, ${d}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ae} ${ge}`,`opacity ${Ae} ${ge}`].join(",")}}}}}};const pe=M=>{const{componentCls:c,itemHeight:d,itemMarginInline:a,padding:m,menuArrowSize:R,marginXS:h,itemMarginBlock:E}=M,S=m+R+h;return{[`${c}-item`]:{position:"relative",overflow:"hidden"},[`${c}-item, ${c}-submenu-title`]:{height:d,lineHeight:`${d}px`,paddingInline:m,overflow:"hidden",textOverflow:"ellipsis",marginInline:a,marginBlock:E,width:`calc(100% - ${a*2}px)`},[`> ${c}-item,
> ${c}-submenu > ${c}-submenu-title`]:{height:d,lineHeight:`${d}px`},[`${c}-item-group-list ${c}-submenu-title,
${c}-submenu-title`]:{paddingInlineEnd:S}}};var mt=M=>{const{componentCls:c,iconCls:d,itemHeight:a,colorTextLightSolid:m,dropdownWidth:R,controlHeightLG:h,motionDurationMid:E,motionEaseOut:S,paddingXL:o,itemMarginInline:U,fontSizeLG:W,motionDurationSlow:oe,paddingXS:ge,boxShadowSecondary:me,collapsedWidth:le,collapsedIconSize:Ae}=M,Ze={height:a,lineHeight:`${a}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[c]:{"&-inline, &-vertical":Object.assign({[`&${c}-root`]:{boxShadow:"none"}},pe(M))},[`${c}-submenu-popup`]:{[`${c}-vertical`]:Object.assign(Object.assign({},pe(M)),{boxShadow:me})}},{[`${c}-submenu-popup ${c}-vertical${c}-sub`]:{minWidth:R,maxHeight:`calc(100vh - ${h*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${c}-inline`]:{width:"100%",[`&${c}-root`]:{[`${c}-item, ${c}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${oe}`,`background ${oe}`,`padding ${E} ${S}`].join(","),[`> ${c}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${c}-sub${c}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${c}-submenu > ${c}-submenu-title`]:Ze,[`& ${c}-item-group-title`]:{paddingInlineStart:o}},[`${c}-item`]:Ze}},{[`${c}-inline-collapsed`]:{width:le,[`&${c}-root`]:{[`${c}-item, ${c}-submenu ${c}-submenu-title`]:{[`> ${c}-inline-collapsed-noicon`]:{fontSize:W,textAlign:"center"}}},[`> ${c}-item,
> ${c}-item-group > ${c}-item-group-list > ${c}-item,
> ${c}-item-group > ${c}-item-group-list > ${c}-submenu > ${c}-submenu-title,
> ${c}-submenu > ${c}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${W/2}px - ${U}px)`,textOverflow:"clip",[`
${c}-submenu-arrow,
${c}-submenu-expand-icon
`]:{opacity:0},[`${c}-item-icon, ${d}`]:{margin:0,fontSize:Ae,lineHeight:`${a}px`,"+ span":{display:"inline-block",opacity:0}}},[`${c}-item-icon, ${d}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${c}-item-icon, ${d}`]:{display:"none"},"a, a:hover":{color:m}},[`${c}-item-group-title`]:Object.assign(Object.assign({},xe.vS),{paddingInline:ge})}}]};const Je=M=>{const{componentCls:c,motionDurationSlow:d,motionDurationMid:a,motionEaseInOut:m,motionEaseOut:R,iconCls:h,iconSize:E,iconMarginInlineEnd:S}=M;return{[`${c}-item, ${c}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${d}`,`background ${d}`,`padding ${d} ${m}`].join(","),[`${c}-item-icon, ${h}`]:{minWidth:E,fontSize:E,transition:[`font-size ${a} ${R}`,`margin ${d} ${m}`,`color ${d}`].join(","),"+ span":{marginInlineStart:S,opacity:1,transition:[`opacity ${d} ${m}`,`margin ${d}`,`color ${d}`].join(",")}},[`${c}-item-icon`]:Object.assign({},(0,xe.Ro)()),[`&${c}-item-only-child`]:{[`> ${h}, > ${c}-item-icon`]:{marginInlineEnd:0}}},[`${c}-item-disabled, ${c}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${c}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ut=M=>{const{componentCls:c,motionDurationSlow:d,motionEaseInOut:a,borderRadius:m,menuArrowSize:R,menuArrowOffset:h}=M;return{[`${c}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:M.margin,width:R,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${d} ${a}, opacity ${d}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:R*.6,height:R*.15,backgroundColor:"currentcolor",borderRadius:m,transition:[`background ${d} ${a}`,`transform ${d} ${a}`,`top ${d} ${a}`,`color ${d} ${a}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${h})`},"&::after":{transform:`rotate(-45deg) translateY(${h})`}}}}},vt=M=>{const{antCls:c,componentCls:d,fontSize:a,motionDurationSlow:m,motionDurationMid:R,motionEaseInOut:h,paddingXS:E,padding:S,colorSplit:o,lineWidth:U,zIndexPopup:W,borderRadiusLG:oe,subMenuItemBorderRadius:ge,menuArrowSize:me,menuArrowOffset:le,lineType:Ae,menuPanelMaskInset:Ze,groupTitleLineHeight:ke,groupTitleFontSize:dt}=M;return[{"":{[`${d}`]:Object.assign(Object.assign({},(0,xe.dF)()),{"&-hidden":{display:"none"}})},[`${d}-submenu-hidden`]:{display:"none"}},{[d]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(M)),(0,xe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:a,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${m} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${d}-item`]:{flex:"none"}},[`${d}-item, ${d}-submenu, ${d}-submenu-title`]:{borderRadius:M.itemBorderRadius},[`${d}-item-group-title`]:{padding:`${E}px ${S}px`,fontSize:dt,lineHeight:ke,transition:`all ${m}`},[`&-horizontal ${d}-submenu`]:{transition:[`border-color ${m} ${h}`,`background ${m} ${h}`].join(",")},[`${d}-submenu, ${d}-submenu-inline`]:{transition:[`border-color ${m} ${h}`,`background ${m} ${h}`,`padding ${R} ${h}`].join(",")},[`${d}-submenu ${d}-sub`]:{cursor:"initial",transition:[`background ${m} ${h}`,`padding ${m} ${h}`].join(",")},[`${d}-title-content`]:{transition:`color ${m}`},[`${d}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${d}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:o,borderStyle:Ae,borderWidth:0,borderTopWidth:U,marginBlock:U,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(M)),{[`${d}-item-group`]:{[`${d}-item-group-list`]:{margin:0,padding:0,[`${d}-item, ${d}-submenu-title`]:{paddingInline:`${a*2}px ${S}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:W,borderRadius:oe,boxShadow:"none",transformOrigin:"0 0",[`&${d}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ze}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart: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:M.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:M.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:M.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:M.paddingXS},[`> ${d}`]:Object.assign(Object.assign(Object.assign({borderRadius:oe},Je(M)),ut(M)),{[`${d}-item, ${d}-submenu > ${d}-submenu-title`]:{borderRadius:ge},[`${d}-submenu-title::after`]:{transition:`transform ${m} ${h}`}})}}),ut(M)),{[`&-inline-collapsed ${d}-submenu-arrow,
&-inline ${d}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${le})`},"&::after":{transform:`rotate(45deg) translateX(-${le})`}},[`${d}-submenu-open${d}-submenu-inline > ${d}-submenu-title > ${d}-submenu-arrow`]:{transform:`translateY(-${me*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${le})`},"&::before":{transform:`rotate(45deg) translateX(${le})`}}})},{[`${c}-layout-header`]:{[d]:{lineHeight:"inherit"}}}]};var pt=(M,c)=>(0,Le.Z)("Menu",a=>{if(c===!1)return[];const{colorBgElevated:m,colorPrimary:R,colorTextLightSolid:h,controlHeightLG:E,fontSize:S,darkItemColor:o,darkDangerItemColor:U,darkItemBg:W,darkSubMenuItemBg:oe,darkItemSelectedColor:ge,darkItemSelectedBg:me,darkDangerItemSelectedBg:le,darkItemHoverBg:Ae,darkGroupTitleColor:Ze,darkItemHoverColor:ke,darkItemDisabledColor:dt,darkDangerItemHoverColor:z,darkDangerItemSelectedColor:ct,darkDangerItemActiveBg:_t}=a,Bt=S/7*5,et=(0,we.TS)(a,{menuArrowSize:Bt,menuHorizontalHeight:E*1.15,menuArrowOffset:`${Bt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:m}),ht=(0,we.TS)(et,{itemColor:o,itemHoverColor:ke,groupTitleColor:Ze,itemSelectedColor:ge,itemBg:W,popupBg:W,subMenuItemBg:oe,itemActiveBg:"transparent",itemSelectedBg:me,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ae,itemDisabledColor:dt,dangerItemColor:U,dangerItemHoverColor:z,dangerItemSelectedColor:ct,dangerItemActiveBg:_t,dangerItemSelectedBg:le,menuSubMenuBg:oe,horizontalItemSelectedColor:h,horizontalItemSelectedBg:R});return[vt(et),rt(et),mt(et),Oe(et,"light"),Oe(ht,"dark"),Be(et),(0,Te.Z)(et),(0,Ue.oN)(et,"slide-up"),(0,Ue.oN)(et,"slide-down"),(0,Fe._y)(et,"zoom-big")]},a=>{const{colorPrimary:m,colorError:R,colorTextDisabled:h,colorErrorBg:E,colorText:S,colorTextDescription:o,colorBgContainer:U,colorFillAlter:W,colorFillContent:oe,lineWidth:ge,lineWidthBold:me,controlItemBgActive:le,colorBgTextHover:Ae,controlHeightLG:Ze,lineHeight:ke,colorBgElevated:dt,marginXXS:z,padding:ct,fontSize:_t,controlHeightSM:Bt,fontSizeLG:et,colorTextLightSolid:ht,colorErrorHover:Rt}=a,Ct=new ae.C(ht).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:a.zIndexPopupBase+50,radiusItem:a.borderRadiusLG,itemBorderRadius:a.borderRadiusLG,radiusSubMenuItem:a.borderRadiusSM,subMenuItemBorderRadius:a.borderRadiusSM,colorItemText:S,itemColor:S,colorItemTextHover:S,itemHoverColor:S,colorItemTextHoverHorizontal:m,horizontalItemHoverColor:m,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:m,itemSelectedColor:m,colorItemTextSelectedHorizontal:m,horizontalItemSelectedColor:m,colorItemBg:U,itemBg:U,colorItemBgHover:Ae,itemHoverBg:Ae,colorItemBgActive:oe,itemActiveBg:le,colorSubItemBg:W,subMenuItemBg:W,colorItemBgSelected:le,itemSelectedBg:le,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:me,activeBarHeight:me,colorActiveBarBorderSize:ge,activeBarBorderWidth:ge,colorItemTextDisabled:h,itemDisabledColor:h,colorDangerItemText:R,dangerItemColor:R,colorDangerItemTextHover:R,dangerItemHoverColor:R,colorDangerItemTextSelected:R,dangerItemSelectedColor:R,colorDangerItemBgActive:E,dangerItemActiveBg:E,colorDangerItemBgSelected:E,dangerItemSelectedBg:E,itemMarginInline:a.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ze,groupTitleLineHeight:ke,collapsedWidth:Ze*2,popupBg:dt,itemMarginBlock:z,itemPaddingInline:ct,horizontalLineHeight:`${Ze*1.15}px`,iconSize:_t,iconMarginInlineEnd:Bt-_t,collapsedIconSize:et,groupTitleFontSize:_t,darkItemDisabledColor:new ae.C(ht).setAlpha(.25).toRgbString(),darkItemColor:Ct,darkDangerItemColor:R,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ht,darkItemSelectedBg:m,darkDangerItemSelectedBg:R,darkItemHoverBg:"transparent",darkGroupTitleColor:Ct,darkItemHoverColor:ht,darkDangerItemHoverColor:Rt,darkDangerItemSelectedColor:ht,darkDangerItemActiveBg:R}},{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"]]})(M),qe=function(M,c){var d={};for(var a in M)Object.prototype.hasOwnProperty.call(M,a)&&c.indexOf(a)<0&&(d[a]=M[a]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,a=Object.getOwnPropertySymbols(M);m<a.length;m++)c.indexOf(a[m])<0&&Object.prototype.propertyIsEnumerable.call(M,a[m])&&(d[a[m]]=M[a[m]]);return d},Dt=(0,w.forwardRef)((M,c)=>{var d,a;const m=w.useContext(I.Z),R=m||{},{getPrefixCls:h,getPopupContainer:E,direction:S,menu:o}=w.useContext(g.E_),U=h(),{prefixCls:W,className:oe,style:ge,theme:me="light",expandIcon:le,_internalDisableMenuItemTitleTooltip:Ae,inlineCollapsed:Ze,siderCollapsed:ke,items:dt,children:z,rootClassName:ct,mode:_t,selectable:Bt,onClick:et,overflowedIndicatorPopupClassName:ht}=M,Rt=qe(M,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ct=(0,ne.Z)(Rt,["collapsedWidth"]),xt=X(dt)||z;(d=R.validator)===null||d===void 0||d.call(R,{mode:_t});const Tt=(0,L.useEvent)(function(){var $e;et==null||et.apply(void 0,arguments),($e=R.onClick)===null||$e===void 0||$e.call(R)}),Kt=R.mode||_t,$t=Bt!=null?Bt:R.selectable,Ht=w.useMemo(()=>ke!==void 0?ke:Ze,[Ze,ke]),rn={horizontal:{motionName:`${U}-slide-up`},inline:(0,v.Z)(U),other:{motionName:`${U}-zoom-big`}},ve=h("menu",W||R.prefixCls),[Xe,It]=pt(ve,!m),jt=A()(`${ve}-${me}`,o==null?void 0:o.className,oe);let kt;if(typeof le=="function")kt=le;else if(le===null||le===!1)kt=null;else if(R.expandIcon===null||R.expandIcon===!1)kt=null;else{const $e=le!=null?le:R.expandIcon;kt=(0,O.Tm)($e,{className:A()(`${ve}-submenu-expand-icon`,(0,O.l$)($e)?(a=$e.props)===null||a===void 0?void 0:a.className:"")})}const qt=w.useMemo(()=>({prefixCls:ve,inlineCollapsed:Ht||!1,direction:S,firstLevel:!0,theme:me,mode:Kt,disableMenuItemTitleTooltip:Ae}),[ve,Ht,S,Ae,me]);return Xe(w.createElement(I.Z.Provider,{value:null},w.createElement(he.Provider,{value:qt},w.createElement(s.ZP,Object.assign({getPopupContainer:E,overflowedIndicator:w.createElement(_.Z,null),overflowedIndicatorPopupClassName:A()(ve,`${ve}-${me}`,ht),mode:Kt,selectable:$t,onClick:Tt},Ct,{inlineCollapsed:Ht,style:Object.assign(Object.assign({},o==null?void 0:o.style),ge),className:jt,prefixCls:ve,direction:S,defaultMotions:rn,expandIcon:kt,ref:c,rootClassName:A()(ct,It)}),xt))))});const it=(0,w.forwardRef)((M,c)=>{const d=(0,w.useRef)(null),a=w.useContext(T.D);return(0,w.useImperativeHandle)(c,()=>({menu:d.current,focus:m=>{var R;(R=d.current)===null||R===void 0||R.focus(m)}})),w.createElement(Dt,Object.assign({ref:d},M,a))});it.Item=H,it.SubMenu=y,it.Divider=u,it.ItemGroup=s.BW;var Re=it},46303:function(Qe,ue,l){"use strict";l.d(ue,{Z:function(){return M}});var s=l(94184),w=l.n(s),T=l(67294),k=l(53124),A=l(10366),q=c=>{const{prefixCls:d,className:a,style:m,size:R,shape:h}=c,E=w()({[`${d}-lg`]:R==="large",[`${d}-sm`]:R==="small"}),S=w()({[`${d}-circle`]:h==="circle",[`${d}-square`]:h==="square",[`${d}-round`]:h==="round"}),o=T.useMemo(()=>typeof R=="number"?{width:R,height:R,lineHeight:`${R}px`}:{},[R]);return T.createElement("span",{className:w()(d,E,S,a),style:Object.assign(Object.assign({},o),m)})},te=l(45930),u=l(67968),P=l(45503);const ne=new te.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Y=c=>({height:c,lineHeight:`${c}px`}),O=c=>Object.assign({width:c},Y(c)),G=c=>({background:c.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ne,animationDuration:c.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),he=c=>Object.assign({width:c*5,minWidth:c*5},Y(c)),re=c=>{const{skeletonAvatarCls:d,gradientFromColor:a,controlHeight:m,controlHeightLG:R,controlHeightSM:h}=c;return{[`${d}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a},O(m)),[`${d}${d}-circle`]:{borderRadius:"50%"},[`${d}${d}-lg`]:Object.assign({},O(R)),[`${d}${d}-sm`]:Object.assign({},O(h))}},H=c=>{const{controlHeight:d,borderRadiusSM:a,skeletonInputCls:m,controlHeightLG:R,controlHeightSM:h,gradientFromColor:E}=c;return{[`${m}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:E,borderRadius:a},he(d)),[`${m}-lg`]:Object.assign({},he(R)),[`${m}-sm`]:Object.assign({},he(h))}},x=c=>Object.assign({width:c},Y(c)),y=c=>{const{skeletonImageCls:d,imageSizeBase:a,gradientFromColor:m,borderRadiusSM:R}=c;return{[`${d}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:m,borderRadius:R},x(a*2)),{[`${d}-path`]:{fill:"#bfbfbf"},[`${d}-svg`]:Object.assign(Object.assign({},x(a)),{maxWidth:a*4,maxHeight:a*4}),[`${d}-svg${d}-svg-circle`]:{borderRadius:"50%"}}),[`${d}${d}-circle`]:{borderRadius:"50%"}}},_=(c,d,a)=>{const{skeletonButtonCls:m}=c;return{[`${a}${m}-circle`]:{width:d,minWidth:d,borderRadius:"50%"},[`${a}${m}-round`]:{borderRadius:d}}},L=c=>Object.assign({width:c*2,minWidth:c*2},Y(c)),v=c=>{const{borderRadiusSM:d,skeletonButtonCls:a,controlHeight:m,controlHeightLG:R,controlHeightSM:h,gradientFromColor:E}=c;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${a}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:E,borderRadius:d,width:m*2,minWidth:m*2},L(m))},_(c,m,a)),{[`${a}-lg`]:Object.assign({},L(R))}),_(c,R,`${a}-lg`)),{[`${a}-sm`]:Object.assign({},L(h))}),_(c,h,`${a}-sm`))},I=c=>{const{componentCls:d,skeletonAvatarCls:a,skeletonTitleCls:m,skeletonParagraphCls:R,skeletonButtonCls:h,skeletonInputCls:E,skeletonImageCls:S,controlHeight:o,controlHeightLG:U,controlHeightSM:W,gradientFromColor:oe,padding:ge,marginSM:me,borderRadius:le,titleHeight:Ae,blockRadius:Ze,paragraphLiHeight:ke,controlHeightXS:dt,paragraphMarginTop:z}=c;return{[`${d}`]:{display:"table",width:"100%",[`${d}-header`]:{display:"table-cell",paddingInlineEnd:ge,verticalAlign:"top",[`${a}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:oe},O(o)),[`${a}-circle`]:{borderRadius:"50%"},[`${a}-lg`]:Object.assign({},O(U)),[`${a}-sm`]:Object.assign({},O(W))},[`${d}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${m}`]:{width:"100%",height:Ae,background:oe,borderRadius:Ze,[`+ ${R}`]:{marginBlockStart:W}},[`${R}`]:{padding:0,"> li":{width:"100%",height:ke,listStyle:"none",background:oe,borderRadius:Ze,"+ li":{marginBlockStart:dt}}},[`${R}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${d}-content`]:{[`${m}, ${R} > li`]:{borderRadius:le}}},[`${d}-with-avatar ${d}-content`]:{[`${m}`]:{marginBlockStart:me,[`+ ${R}`]:{marginBlockStart:z}}},[`${d}${d}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},v(c)),re(c)),H(c)),y(c)),[`${d}${d}-block`]:{width:"100%",[`${h}`]:{width:"100%"},[`${E}`]:{width:"100%"}},[`${d}${d}-active`]:{[`
${m},
${R} > li,
${a},
${h},
${E},
${S}
`]:Object.assign({},G(c))}}};var K=(0,u.Z)("Skeleton",c=>{const{componentCls:d}=c,a=(0,P.TS)(c,{skeletonAvatarCls:`${d}-avatar`,skeletonTitleCls:`${d}-title`,skeletonParagraphCls:`${d}-paragraph`,skeletonButtonCls:`${d}-button`,skeletonInputCls:`${d}-input`,skeletonImageCls:`${d}-image`,imageSizeBase:c.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${c.gradientFromColor} 25%, ${c.gradientToColor} 37%, ${c.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[I(a)]},c=>{const{colorFillContent:d,colorFill:a}=c,m=d,R=a;return{color:m,colorGradientEnd:R,gradientFromColor:m,gradientToColor:R,titleHeight:c.controlHeight/2,blockRadius:c.borderRadiusSM,paragraphMarginTop:c.marginLG+c.marginXXS,paragraphLiHeight:c.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),X=c=>{const{prefixCls:d,className:a,rootClassName:m,active:R,shape:h="circle",size:E="default"}=c,{getPrefixCls:S}=T.useContext(k.E_),o=S("skeleton",d),[U,W]=K(o),oe=(0,A.Z)(c,["prefixCls","className"]),ge=w()(o,`${o}-element`,{[`${o}-active`]:R},a,m,W);return U(T.createElement("div",{className:ge},T.createElement(q,Object.assign({prefixCls:`${o}-avatar`,shape:h,size:E},oe))))},xe=c=>{const{prefixCls:d,className:a,rootClassName:m,active:R,block:h=!1,size:E="default"}=c,{getPrefixCls:S}=T.useContext(k.E_),o=S("skeleton",d),[U,W]=K(o),oe=(0,A.Z)(c,["prefixCls"]),ge=w()(o,`${o}-element`,{[`${o}-active`]:R,[`${o}-block`]:h},a,m,W);return U(T.createElement("div",{className:ge},T.createElement(q,Object.assign({prefixCls:`${o}-button`,size:E},oe))))};const Te="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Fe=c=>{const{prefixCls:d,className:a,rootClassName:m,style:R,active:h}=c,{getPrefixCls:E}=T.useContext(k.E_),S=E("skeleton",d),[o,U]=K(S),W=w()(S,`${S}-element`,{[`${S}-active`]:h},a,m,U);return o(T.createElement("div",{className:W},T.createElement("div",{className:w()(`${S}-image`,a),style:R},T.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${S}-image-svg`},T.createElement("path",{d:Te,className:`${S}-image-path`})))))},we=c=>{const{prefixCls:d,className:a,rootClassName:m,active:R,block:h,size:E="default"}=c,{getPrefixCls:S}=T.useContext(k.E_),o=S("skeleton",d),[U,W]=K(o),oe=(0,A.Z)(c,["prefixCls"]),ge=w()(o,`${o}-element`,{[`${o}-active`]:R,[`${o}-block`]:h},a,m,W);return U(T.createElement("div",{className:ge},T.createElement(q,Object.assign({prefixCls:`${o}-input`,size:E},oe))))},At=l(87462),rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},$=rt,Be=l(74643),fe=function(d,a){return T.createElement(Be.Z,(0,At.Z)({},d,{ref:a,icon:$}))},Ge=T.forwardRef(fe),pe=c=>{const{prefixCls:d,className:a,rootClassName:m,style:R,active:h,children:E}=c,{getPrefixCls:S}=T.useContext(k.E_),o=S("skeleton",d),[U,W]=K(o),oe=w()(o,`${o}-element`,{[`${o}-active`]:h},W,a,m),ge=E!=null?E:T.createElement(Ge,null);return U(T.createElement("div",{className:oe},T.createElement("div",{className:w()(`${o}-image`,a),style:R},ge)))},ye=l(74902),Je=c=>{const d=S=>{const{width:o,rows:U=2}=c;if(Array.isArray(o))return o[S];if(U-1===S)return o},{prefixCls:a,className:m,style:R,rows:h}=c,E=(0,ye.Z)(Array(h)).map((S,o)=>T.createElement("li",{key:o,style:{width:d(o)}}));return T.createElement("ul",{className:w()(a,m),style:R},E)},vt=c=>{let{prefixCls:d,className:a,width:m,style:R}=c;return T.createElement("h3",{className:w()(d,a),style:Object.assign({width:m},R)})};function pt(c){return c&&typeof c=="object"?c:{}}function qe(c,d){return c&&!d?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function We(c,d){return!c&&d?{width:"38%"}:c&&d?{width:"50%"}:{}}function Dt(c,d){const a={};return(!c||!d)&&(a.width="61%"),!c&&d?a.rows=3:a.rows=2,a}const it=c=>{const{prefixCls:d,loading:a,className:m,rootClassName:R,style:h,children:E,avatar:S=!1,title:o=!0,paragraph:U=!0,active:W,round:oe}=c,{getPrefixCls:ge,direction:me,skeleton:le}=T.useContext(k.E_),Ae=ge("skeleton",d),[Ze,ke]=K(Ae);if(a||!("loading"in c)){const dt=!!S,z=!!o,ct=!!U;let _t;if(dt){const ht=Object.assign(Object.assign({prefixCls:`${Ae}-avatar`},qe(z,ct)),pt(S));_t=T.createElement("div",{className:`${Ae}-header`},T.createElement(q,Object.assign({},ht)))}let Bt;if(z||ct){let ht;if(z){const Ct=Object.assign(Object.assign({prefixCls:`${Ae}-title`},We(dt,ct)),pt(o));ht=T.createElement(vt,Object.assign({},Ct))}let Rt;if(ct){const Ct=Object.assign(Object.assign({prefixCls:`${Ae}-paragraph`},Dt(dt,z)),pt(U));Rt=T.createElement(Je,Object.assign({},Ct))}Bt=T.createElement("div",{className:`${Ae}-content`},ht,Rt)}const et=w()(Ae,{[`${Ae}-with-avatar`]:dt,[`${Ae}-active`]:W,[`${Ae}-rtl`]:me==="rtl",[`${Ae}-round`]:oe},le==null?void 0:le.className,m,R,ke);return Ze(T.createElement("div",{className:et,style:Object.assign(Object.assign({},le==null?void 0:le.style),h)},_t,Bt))}return typeof E!="undefined"?E:null};it.Button=xe,it.Avatar=X,it.Input=we,it.Image=Fe,it.Node=pe;var Re=it,M=Re},93421:function(Qe,ue,l){"use strict";l.d(ue,{Z:function(){return H}});var s=l(67294),w=l(94184),T=l.n(w),k=l(37419),A=l(53124),g=l(4173);const q=s.createContext({latestIndex:0}),te=q.Provider;var P=x=>{let{className:y,index:_,children:L,split:v,style:I}=x;const{latestIndex:K}=s.useContext(q);return L==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:y,style:I},L),_<K&&v&&s.createElement("span",{className:`${y}-split`},v))},ne=l(51916);function Y(x){return["small","middle","large"].includes(x)}function O(x){return x?typeof x=="number"&&!Number.isNaN(x):!1}var G=function(x,y){var _={};for(var L in x)Object.prototype.hasOwnProperty.call(x,L)&&y.indexOf(L)<0&&(_[L]=x[L]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,L=Object.getOwnPropertySymbols(x);v<L.length;v++)y.indexOf(L[v])<0&&Object.prototype.propertyIsEnumerable.call(x,L[v])&&(_[L[v]]=x[L[v]]);return _};const re=s.forwardRef((x,y)=>{var _,L;const{getPrefixCls:v,space:I,direction:K}=s.useContext(A.E_),{size:N=(I==null?void 0:I.size)||"small",align:X,className:ae,rootClassName:xe,children:Te,direction:Ue="horizontal",prefixCls:Fe,split:Le,style:we,wrap:At=!1,classNames:rt,styles:$}=x,Be=G(x,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[fe,Ge]=Array.isArray(N)?N:[N,N],Oe=Y(Ge),pe=Y(fe),ye=O(Ge),mt=O(fe),Je=(0,k.Z)(Te,{keepEmpty:!0}),ut=X===void 0&&Ue==="horizontal"?"center":X,vt=v("space",Fe),[pt,qe]=(0,ne.Z)(vt),We=T()(vt,I==null?void 0:I.className,qe,`${vt}-${Ue}`,{[`${vt}-rtl`]:K==="rtl",[`${vt}-align-${ut}`]:ut,[`${vt}-gap-row-${Ge}`]:Oe,[`${vt}-gap-col-${fe}`]:pe},ae,xe),Dt=T()(`${vt}-item`,(_=rt==null?void 0:rt.item)!==null&&_!==void 0?_:(L=I==null?void 0:I.classNames)===null||L===void 0?void 0:L.item);let it=0;const Re=Je.map((d,a)=>{var m,R;d!=null&&(it=a);const h=d&&d.key||`${Dt}-${a}`;return s.createElement(P,{className:Dt,key:h,index:a,split:Le,style:(m=$==null?void 0:$.item)!==null&&m!==void 0?m:(R=I==null?void 0:I.styles)===null||R===void 0?void 0:R.item},d)}),M=s.useMemo(()=>({latestIndex:it}),[it]);if(Je.length===0)return null;const c={};return At&&(c.flexWrap="wrap"),!pe&&mt&&(c.columnGap=fe),!Oe&&ye&&(c.rowGap=Ge),pt(s.createElement("div",Object.assign({ref:y,className:We,style:Object.assign(Object.assign(Object.assign({},c),I==null?void 0:I.style),we)},Be),s.createElement(te,{value:M},Re)))});re.Compact=g.ZP;var H=re},33507:function(Qe,ue){"use strict";const l=s=>({[s.componentCls]:{[`${s.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${s.motionDurationMid} ${s.motionEaseInOut},
opacity ${s.motionDurationMid} ${s.motionEaseInOut} !important`}},[`${s.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${s.motionDurationMid} ${s.motionEaseInOut},
opacity ${s.motionDurationMid} ${s.motionEaseInOut} !important`}}});ue.Z=l},33297:function(Qe,ue,l){"use strict";l.d(ue,{Fm:function(){return Y}});var s=l(45930),w=l(93590);const T=new s.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),k=new s.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),A=new s.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 s.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),q=new s.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),te=new s.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),u=new s.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P=new s.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ne={"move-up":{inKeyframes:u,outKeyframes:P},"move-down":{inKeyframes:T,outKeyframes:k},"move-left":{inKeyframes:A,outKeyframes:g},"move-right":{inKeyframes:q,outKeyframes:te}},Y=(O,G)=>{const{antCls:he}=O,re=`${he}-${G}`,{inKeyframes:H,outKeyframes:x}=ne[G];return[(0,w.R)(re,H,x,O.motionDurationMid),{[`
${re}-enter,
${re}-appear
`]:{opacity:0,animationTimingFunction:O.motionEaseOutCirc},[`${re}-leave`]:{animationTimingFunction:O.motionEaseInOutCirc}}]}},67771:function(Qe,ue,l){"use strict";l.d(ue,{Qt:function(){return A},Uw:function(){return k},fJ:function(){return T},ly:function(){return g},oN:function(){return Y}});var s=l(45930),w=l(93590);const T=new s.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),k=new s.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),A=new s.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),g=new s.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),q=new s.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),te=new s.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),u=new s.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),P=new s.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ne={"slide-up":{inKeyframes:T,outKeyframes:k},"slide-down":{inKeyframes:A,outKeyframes:g},"slide-left":{inKeyframes:q,outKeyframes:te},"slide-right":{inKeyframes:u,outKeyframes:P}},Y=(O,G)=>{const{antCls:he}=O,re=`${he}-${G}`,{inKeyframes:H,outKeyframes:x}=ne[G];return[(0,w.R)(re,H,x,O.motionDurationMid),{[`
${re}-enter,
${re}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:O.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${re}-leave`]:{animationTimingFunction:O.motionEaseInQuint}}]}},72665:function(Qe,ue){"use strict";var l;var s=typeof Symbol=="function"&&Symbol.for,w=s?Symbol.for("react.element"):60103,T=s?Symbol.for("react.portal"):60106,k=s?Symbol.for("react.fragment"):60107,A=s?Symbol.for("react.strict_mode"):60108,g=s?Symbol.for("react.profiler"):60114,q=s?Symbol.for("react.provider"):60109,te=s?Symbol.for("react.context"):60110,u=s?Symbol.for("react.async_mode"):60111,P=s?Symbol.for("react.concurrent_mode"):60111,ne=s?Symbol.for("react.forward_ref"):60112,Y=s?Symbol.for("react.suspense"):60113,O=s?Symbol.for("react.suspense_list"):60120,G=s?Symbol.for("react.memo"):60115,he=s?Symbol.for("react.lazy"):60116,re=s?Symbol.for("react.block"):60121,H=s?Symbol.for("react.fundamental"):60117,x=s?Symbol.for("react.responder"):60118,y=s?Symbol.for("react.scope"):60119;function _(v){if(typeof v=="object"&&v!==null){var I=v.$$typeof;switch(I){case w:switch(v=v.type,v){case u:case P:case k:case g:case A:case Y:return v;default:switch(v=v&&v.$$typeof,v){case te:case ne:case he:case G:case q:return v;default:return I}}case T:return I}}}function L(v){return _(v)===P}l=u,l=P,l=te,l=q,l=w,l=ne,l=k,l=he,l=G,l=T,l=g,l=A,l=Y,l=function(v){return L(v)||_(v)===u},l=L,l=function(v){return _(v)===te},l=function(v){return _(v)===q},l=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===w},l=function(v){return _(v)===ne},l=function(v){return _(v)===k},l=function(v){return _(v)===he},ue.isMemo=function(v){return _(v)===G},l=function(v){return _(v)===T},l=function(v){return _(v)===g},l=function(v){return _(v)===A},l=function(v){return _(v)===Y},l=function(v){return typeof v=="string"||typeof v=="function"||v===k||v===P||v===g||v===A||v===Y||v===O||typeof v=="object"&&v!==null&&(v.$$typeof===he||v.$$typeof===G||v.$$typeof===q||v.$$typeof===te||v.$$typeof===ne||v.$$typeof===H||v.$$typeof===x||v.$$typeof===y||v.$$typeof===re)},l=_},12060:function(Qe,ue,l){"use strict";Qe.exports=l(72665)},82702:function(Qe,ue,l){var s=l(34155);(function(w,T){Qe.exports=T()})(this,function(){"use strict";function w(h){var E=typeof h;return h!==null&&(E==="object"||E==="function")}function T(h){return typeof h=="function"}var k=void 0;Array.isArray?k=Array.isArray:k=function(h){return Object.prototype.toString.call(h)==="[object Array]"};var A=k,g=0,q=void 0,te=void 0,u=function(E,S){v[g]=E,v[g+1]=S,g+=2,g===2&&(te?te(I):N())};function P(h){te=h}function ne(h){u=h}var Y=typeof window!="undefined"?window:void 0,O=Y||{},G=O.MutationObserver||O.WebKitMutationObserver,he=typeof self=="undefined"&&typeof s!="undefined"&&{}.toString.call(s)==="[object process]",re=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function H(){return function(){return s.nextTick(I)}}function x(){return typeof q!="undefined"?function(){q(I)}:L()}function y(){var h=0,E=new G(I),S=document.createTextNode("");return E.observe(S,{characterData:!0}),function(){S.data=h=++h%2}}function _(){var h=new MessageChannel;return h.port1.onmessage=I,function(){return h.port2.postMessage(0)}}function L(){var h=setTimeout;return function(){return h(I,1)}}var v=new Array(1e3);function I(){for(var h=0;h<g;h+=2){var E=v[h],S=v[h+1];E(S),v[h]=void 0,v[h+1]=void 0}g=0}function K(){try{var h=Function("return this")().require("vertx");return q=h.runOnLoop||h.runOnContext,x()}catch(E){return L()}}var N=void 0;he?N=H():G?N=y():re?N=_():Y===void 0?N=K():N=L();function X(h,E){var S=this,o=new this.constructor(Te);o[xe]===void 0&&We(o);var U=S._state;if(U){var W=arguments[U-1];u(function(){return ut(U,o,W,S._result)})}else mt(S,o,h,E);return o}function ae(h){var E=this;if(h&&typeof h=="object"&&h.constructor===E)return h;var S=new E(Te);return Ge(S,h),S}var xe=Math.random().toString(36).substring(2);function Te(){}var Ue=void 0,Fe=1,Le=2;function we(){return new TypeError("You cannot resolve a promise with itself")}function At(){return new TypeError("A promises callback cannot return that same promise.")}function rt(h,E,S,o){try{h.call(E,S,o)}catch(U){return U}}function $(h,E,S){u(function(o){var U=!1,W=rt(S,E,function(oe){U||(U=!0,E!==oe?Ge(o,oe):pe(o,oe))},function(oe){U||(U=!0,ye(o,oe))},"Settle: "+(o._label||" unknown promise"));!U&&W&&(U=!0,ye(o,W))},h)}function Be(h,E){E._state===Fe?pe(h,E._result):E._state===Le?ye(h,E._result):mt(E,void 0,function(S){return Ge(h,S)},function(S){return ye(h,S)})}function fe(h,E,S){E.constructor===h.constructor&&S===X&&E.constructor.resolve===ae?Be(h,E):S===void 0?pe(h,E):T(S)?$(h,E,S):pe(h,E)}function Ge(h,E){if(h===E)ye(h,we());else if(w(E)){var S=void 0;try{S=E.then}catch(o){ye(h,o);return}fe(h,E,S)}else pe(h,E)}function Oe(h){h._onerror&&h._onerror(h._result),Je(h)}function pe(h,E){h._state===Ue&&(h._result=E,h._state=Fe,h._subscribers.length!==0&&u(Je,h))}function ye(h,E){h._state===Ue&&(h._state=Le,h._result=E,u(Oe,h))}function mt(h,E,S,o){var U=h._subscribers,W=U.length;h._onerror=null,U[W]=E,U[W+Fe]=S,U[W+Le]=o,W===0&&h._state&&u(Je,h)}function Je(h){var E=h._subscribers,S=h._state;if(E.length!==0){for(var o=void 0,U=void 0,W=h._result,oe=0;oe<E.length;oe+=3)o=E[oe],U=E[oe+S],o?ut(S,o,U,W):U(W);h._subscribers.length=0}}function ut(h,E,S,o){var U=T(S),W=void 0,oe=void 0,ge=!0;if(U){try{W=S(o)}catch(me){ge=!1,oe=me}if(E===W){ye(E,At());return}}else W=o;E._state!==Ue||(U&&ge?Ge(E,W):ge===!1?ye(E,oe):h===Fe?pe(E,W):h===Le&&ye(E,W))}function vt(h,E){try{E(function(o){Ge(h,o)},function(o){ye(h,o)})}catch(S){ye(h,S)}}var pt=0;function qe(){return pt++}function We(h){h[xe]=pt++,h._state=void 0,h._result=void 0,h._subscribers=[]}function Dt(){return new Error("Array Methods must be provided an Array")}var it=function(){function h(E,S){this._instanceConstructor=E,this.promise=new E(Te),this.promise[xe]||We(this.promise),A(S)?(this.length=S.length,this._remaining=S.length,this._result=new Array(this.length),this.length===0?pe(this.promise,this._result):(this.length=this.length||0,this._enumerate(S),this._remaining===0&&pe(this.promise,this._result))):ye(this.promise,Dt())}return h.prototype._enumerate=function(S){for(var o=0;this._state===Ue&&o<S.length;o++)this._eachEntry(S[o],o)},h.prototype._eachEntry=function(S,o){var U=this._instanceConstructor,W=U.resolve;if(W===ae){var oe=void 0,ge=void 0,me=!1;try{oe=S.then}catch(Ae){me=!0,ge=Ae}if(oe===X&&S._state!==Ue)this._settledAt(S._state,o,S._result);else if(typeof oe!="function")this._remaining--,this._result[o]=S;else if(U===m){var le=new U(Te);me?ye(le,ge):fe(le,S,oe),this._willSettleAt(le,o)}else this._willSettleAt(new U(function(Ae){return Ae(S)}),o)}else this._willSettleAt(W(S),o)},h.prototype._settledAt=function(S,o,U){var W=this.promise;W._state===Ue&&(this._remaining--,S===Le?ye(W,U):this._result[o]=U),this._remaining===0&&pe(W,this._result)},h.prototype._willSettleAt=function(S,o){var U=this;mt(S,void 0,function(W){return U._settledAt(Fe,o,W)},function(W){return U._settledAt(Le,o,W)})},h}();function Re(h){return new it(this,h).promise}function M(h){var E=this;return A(h)?new E(function(S,o){for(var U=h.length,W=0;W<U;W++)E.resolve(h[W]).then(S,o)}):new E(function(S,o){return o(new TypeError("You must pass an array to race."))})}function c(h){var E=this,S=new E(Te);return ye(S,h),S}function d(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function a(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var m=function(){function h(E){this[xe]=qe(),this._result=this._state=void 0,this._subscribers=[],Te!==E&&(typeof E!="function"&&d(),this instanceof h?vt(this,E):a())}return h.prototype.catch=function(S){return this.then(null,S)},h.prototype.finally=function(S){var o=this,U=o.constructor;return T(S)?o.then(function(W){return U.resolve(S()).then(function(){return W})},function(W){return U.resolve(S()).then(function(){throw W})}):o.then(S,S)},h}();m.prototype.then=X,m.all=Re,m.race=M,m.resolve=ae,m.reject=c,m._setScheduler=P,m._setAsap=ne,m._asap=u;function R(){var h=void 0;if(typeof l.g!="undefined")h=l.g;else if(typeof self!="undefined")h=self;else try{h=Function("return this")()}catch(o){throw new Error("polyfill failed because global object is unavailable in this environment")}var E=h.Promise;if(E){var S=null;try{S=Object.prototype.toString.call(E.resolve())}catch(o){}if(S==="[object Promise]"&&!E.cast)return}h.Promise=m}return m.polyfill=R,m.Promise=m,m})},17187:function(Qe){"use strict";var ue=typeof Reflect=="object"?Reflect:null,l=ue&&typeof ue.apply=="function"?ue.apply:function(_,L,v){return Function.prototype.apply.call(_,L,v)},s;ue&&typeof ue.ownKeys=="function"?s=ue.ownKeys:Object.getOwnPropertySymbols?s=function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:s=function(_){return Object.getOwnPropertyNames(_)};function w(y){console&&console.warn&&console.warn(y)}var T=Number.isNaN||function(_){return _!==_};function k(){k.init.call(this)}Qe.exports=k,Qe.exports.once=re,k.EventEmitter=k,k.prototype._events=void 0,k.prototype._eventsCount=0,k.prototype._maxListeners=void 0;var A=10;function g(y){if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y)}Object.defineProperty(k,"defaultMaxListeners",{enumerable:!0,get:function(){return A},set:function(y){if(typeof y!="number"||y<0||T(y))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+y+".");A=y}}),k.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},k.prototype.setMaxListeners=function(_){if(typeof _!="number"||_<0||T(_))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+_+".");return this._maxListeners=_,this};function q(y){return y._maxListeners===void 0?k.defaultMaxListeners:y._maxListeners}k.prototype.getMaxListeners=function(){return q(this)},k.prototype.emit=function(_){for(var L=[],v=1;v<arguments.length;v++)L.push(arguments[v]);var I=_==="error",K=this._events;if(K!==void 0)I=I&&K.error===void 0;else if(!I)return!1;if(I){var N;if(L.length>0&&(N=L[0]),N instanceof Error)throw N;var X=new Error("Unhandled error."+(N?" ("+N.message+")":""));throw X.context=N,X}var ae=K[_];if(ae===void 0)return!1;if(typeof ae=="function")l(ae,this,L);else for(var xe=ae.length,Te=O(ae,xe),v=0;v<xe;++v)l(Te[v],this,L);return!0};function te(y,_,L,v){var I,K,N;if(g(L),K=y._events,K===void 0?(K=y._events=Object.create(null),y._eventsCount=0):(K.newListener!==void 0&&(y.emit("newListener",_,L.listener?L.listener:L),K=y._events),N=K[_]),N===void 0)N=K[_]=L,++y._eventsCount;else if(typeof N=="function"?N=K[_]=v?[L,N]:[N,L]:v?N.unshift(L):N.push(L),I=q(y),I>0&&N.length>I&&!N.warned){N.warned=!0;var X=new Error("Possible EventEmitter memory leak detected. "+N.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");X.name="MaxListenersExceededWarning",X.emitter=y,X.type=_,X.count=N.length,w(X)}return y}k.prototype.addListener=function(_,L){return te(this,_,L,!1)},k.prototype.on=k.prototype.addListener,k.prototype.prependListener=function(_,L){return te(this,_,L,!0)};function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function P(y,_,L){var v={fired:!1,wrapFn:void 0,target:y,type:_,listener:L},I=u.bind(v);return I.listener=L,v.wrapFn=I,I}k.prototype.once=function(_,L){return g(L),this.on(_,P(this,_,L)),this},k.prototype.prependOnceListener=function(_,L){return g(L),this.prependListener(_,P(this,_,L)),this},k.prototype.removeListener=function(_,L){var v,I,K,N,X;if(g(L),I=this._events,I===void 0)return this;if(v=I[_],v===void 0)return this;if(v===L||v.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete I[_],I.removeListener&&this.emit("removeListener",_,v.listener||L));else if(typeof v!="function"){for(K=-1,N=v.length-1;N>=0;N--)if(v[N]===L||v[N].listener===L){X=v[N].listener,K=N;break}if(K<0)return this;K===0?v.shift():G(v,K),v.length===1&&(I[_]=v[0]),I.removeListener!==void 0&&this.emit("removeListener",_,X||L)}return this},k.prototype.off=k.prototype.removeListener,k.prototype.removeAllListeners=function(_){var L,v,I;if(v=this._events,v===void 0)return this;if(v.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):v[_]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete v[_]),this;if(arguments.length===0){var K=Object.keys(v),N;for(I=0;I<K.length;++I)N=K[I],N!=="removeListener"&&this.removeAllListeners(N);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=v[_],typeof L=="function")this.removeListener(_,L);else if(L!==void 0)for(I=L.length-1;I>=0;I--)this.removeListener(_,L[I]);return this};function ne(y,_,L){var v=y._events;if(v===void 0)return[];var I=v[_];return I===void 0?[]:typeof I=="function"?L?[I.listener||I]:[I]:L?he(I):O(I,I.length)}k.prototype.listeners=function(_){return ne(this,_,!0)},k.prototype.rawListeners=function(_){return ne(this,_,!1)},k.listenerCount=function(y,_){return typeof y.listenerCount=="function"?y.listenerCount(_):Y.call(y,_)},k.prototype.listenerCount=Y;function Y(y){var _=this._events;if(_!==void 0){var L=_[y];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}k.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]};function O(y,_){for(var L=new Array(_),v=0;v<_;++v)L[v]=y[v];return L}function G(y,_){for(;_+1<y.length;_++)y[_]=y[_+1];y.pop()}function he(y){for(var _=new Array(y.length),L=0;L<_.length;++L)_[L]=y[L].listener||y[L];return _}function re(y,_){return new Promise(function(L,v){function I(N){y.removeListener(_,K),v(N)}function K(){typeof y.removeListener=="function"&&y.removeListener("error",I),L([].slice.call(arguments))}x(y,_,K,{once:!0}),_!=="error"&&H(y,I,{once:!0})})}function H(y,_,L){typeof y.on=="function"&&x(y,"error",_,L)}function x(y,_,L,v){if(typeof y.on=="function")v.once?y.once(_,L):y.on(_,L);else if(typeof y.addEventListener=="function")y.addEventListener(_,function I(K){v.once&&y.removeEventListener(_,I),L(K)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y)}},78595:function(Qe,ue,l){"use strict";l.d(ue,{iz:function(){return wi},ck:function(){return at},BW:function(){return xi},sN:function(){return at},Wd:function(){return Ei},ZP:function(){return Xi},Xl:function(){return U}});var s=l(87462),w=l(4942),T=l(1413),k=l(74902),A=l(97685),g=l(45987),q=l(94184),te=l.n(q),u=l(67294),P=l(48555);function ne(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Y=ne()?u.useLayoutEffect:u.useEffect,O=function(C,D){var F=u.useRef(!0);Y(function(){return C(F.current)},D),Y(function(){return F.current=!1,function(){F.current=!0}},[])},G=function(C,D){O(function(F){if(!F)return C()},D)},he=O,re=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],H=void 0;function x(p,C){var D=p.prefixCls,F=p.invalidate,B=p.item,V=p.renderItem,j=p.responsive,_e=p.responsiveDisabled,Ie=p.registerSize,Ce=p.itemKey,tt=p.className,Ke=p.style,gt=p.children,Et=p.display,je=p.order,ft=p.component,yt=ft===void 0?"div":ft,bt=(0,g.Z)(p,re),He=j&&!Et;function Ye(lt){Ie(Ce,lt)}u.useEffect(function(){return function(){Ye(null)}},[]);var ze=V&&B!==H?V(B):gt,nt;F||(nt={opacity:He?0:1,height:He?0:H,overflowY:He?"hidden":H,order:j?je:H,pointerEvents:He?"none":H,position:He?"absolute":H});var ot={};He&&(ot["aria-hidden"]=!0);var Lt=u.createElement(yt,(0,s.Z)({className:te()(!F&&D,tt),style:(0,T.Z)((0,T.Z)({},nt),Ke)},ot,bt,{ref:C}),ze);return j&&(Lt=u.createElement(P.Z,{onResize:function(an){var wt=an.offsetWidth;Ye(wt)},disabled:_e},Lt)),Lt}var y=u.forwardRef(x);y.displayName="Item";var _=y;function L(p){var C=u.useRef();C.current=p;var D=u.useCallback(function(){for(var F,B=arguments.length,V=new Array(B),j=0;j<B;j++)V[j]=arguments[j];return(F=C.current)===null||F===void 0?void 0:F.call.apply(F,[C].concat(V))},[]);return D}var v=l(73935),I=function(C){return+setTimeout(C,16)},K=function(C){return clearTimeout(C)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(I=function(C){return window.requestAnimationFrame(C)},K=function(C){return window.cancelAnimationFrame(C)});var N=0,X=new Map;function ae(p){X.delete(p)}var xe=function(C){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;N+=1;var F=N;function B(V){if(V===0)ae(F),C();else{var j=I(function(){B(V-1)});X.set(F,j)}}return B(D),F};xe.cancel=function(p){var C=X.get(p);return ae(C),K(C)};var Te=xe;function Ue(p){if(typeof MessageChannel=="undefined")Te(p);else{var C=new MessageChannel;C.port1.onmessage=function(){return p()},C.port2.postMessage(void 0)}}function Fe(){var p=u.useRef(null),C=function(F){p.current||(p.current=[],Ue(function(){(0,v.unstable_batchedUpdates)(function(){p.current.forEach(function(B){B()}),p.current=null})})),p.current.push(F)};return C}function Le(p,C){var D=u.useState(C),F=(0,A.Z)(D,2),B=F[0],V=F[1],j=L(function(_e){p(function(){V(_e)})});return[B,j]}var we=u.createContext(null),At=["component"],rt=["className"],$=["className"],Be=function(C,D){var F=u.useContext(we);if(!F){var B=C.component,V=B===void 0?"div":B,j=(0,g.Z)(C,At);return u.createElement(V,(0,s.Z)({},j,{ref:D}))}var _e=F.className,Ie=(0,g.Z)(F,rt),Ce=C.className,tt=(0,g.Z)(C,$);return u.createElement(we.Provider,{value:null},u.createElement(_,(0,s.Z)({ref:D,className:te()(_e,Ce)},Ie,tt)))},fe=u.forwardRef(Be);fe.displayName="RawItem";var Ge=fe,Oe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],pe="responsive",ye="invalidate";function mt(p){return"+ ".concat(p.length," ...")}function Je(p,C){var D=p.prefixCls,F=D===void 0?"rc-overflow":D,B=p.data,V=B===void 0?[]:B,j=p.renderItem,_e=p.renderRawItem,Ie=p.itemKey,Ce=p.itemWidth,tt=Ce===void 0?10:Ce,Ke=p.ssr,gt=p.style,Et=p.className,je=p.maxCount,ft=p.renderRest,yt=p.renderRawRest,bt=p.suffix,He=p.component,Ye=He===void 0?"div":He,ze=p.itemComponent,nt=p.onVisibleChange,ot=(0,g.Z)(p,Oe),Lt=Ke==="full",lt=Fe(),an=Le(lt,null),wt=(0,A.Z)(an,2),on=wt[0],tn=wt[1],Pt=on||0,un=Le(lt,new Map),Ut=(0,A.Z)(un,2),Qt=Ut[0],Wt=Ut[1],xn=Le(lt,0),Dn=(0,A.Z)(xn,2),Bn=Dn[0],Tn=Dn[1],kn=Le(lt,0),wn=(0,A.Z)(kn,2),yn=wn[0],Fn=wn[1],ln=Le(lt,0),dn=(0,A.Z)(ln,2),An=dn[0],Mn=dn[1],Nn=(0,u.useState)(null),Jt=(0,A.Z)(Nn,2),fn=Jt[0],Rn=Jt[1],ni=(0,u.useState)(null),$n=(0,A.Z)(ni,2),bn=$n[0],ci=$n[1],Pn=u.useMemo(function(){return bn===null&&Lt?Number.MAX_SAFE_INTEGER:bn||0},[bn,on]),hi=(0,u.useState)(!1),Kn=(0,A.Z)(hi,2),ii=Kn[0],ri=Kn[1],mn="".concat(F,"-item"),si=Math.max(Bn,yn),Un=je===pe,pn=V.length&&Un,ai=je===ye,Hn=pn||typeof je=="number"&&V.length>je,_n=(0,u.useMemo)(function(){var Pe=V;return pn?on===null&&Lt?Pe=V:Pe=V.slice(0,Math.min(V.length,Pt/tt)):typeof je=="number"&&(Pe=V.slice(0,je)),Pe},[V,tt,on,je,pn]),zn=(0,u.useMemo)(function(){return pn?V.slice(Pn+1):V.slice(_n.length)},[V,_n,pn,Pn]),Ln=(0,u.useCallback)(function(Pe,Ve){var Gt;return typeof Ie=="function"?Ie(Pe):(Gt=Ie&&(Pe==null?void 0:Pe[Ie]))!==null&&Gt!==void 0?Gt:Ve},[Ie]),Vn=(0,u.useCallback)(j||function(Pe){return Pe},[j]);function nn(Pe,Ve,Gt){bn===Pe&&(Ve===void 0||Ve===fn)||(ci(Pe),Gt||(ri(Pe<V.length-1),nt==null||nt(Pe)),Ve!==void 0&&Rn(Ve))}function Gn(Pe,Ve){tn(Ve.clientWidth)}function On(Pe,Ve){Wt(function(Gt){var Cn=new Map(Gt);return Ve===null?Cn.delete(Pe):Cn.set(Pe,Ve),Cn})}function Sn(Pe,Ve){Fn(Ve),Tn(yn)}function gn(Pe,Ve){Mn(Ve)}function fi(Pe){return Qt.get(Ln(_n[Pe],Pe))}he(function(){if(Pt&&typeof si=="number"&&_n){var Pe=An,Ve=_n.length,Gt=Ve-1;if(!Ve){nn(0,null);return}for(var Cn=0;Cn<Ve;Cn+=1){var Xn=fi(Cn);if(Lt&&(Xn=Xn||0),Xn===void 0){nn(Cn-1,void 0,!0);break}if(Pe+=Xn,Gt===0&&Pe<=Pt||Cn===Gt-1&&Pe+fi(Gt)<=Pt){nn(Gt,null);break}else if(Pe+si>Pt){nn(Cn-1,Pe-Xn-An+yn);break}}bt&&fi(0)+An>Pt&&Rn(null)}},[Pt,Qt,yn,An,Ln,_n]);var yi=ii&&!!zn.length,oi={};fn!==null&&pn&&(oi={position:"absolute",left:fn,top:0});var Jn={prefixCls:mn,responsive:pn,component:ze,invalidate:ai},bi=_e?function(Pe,Ve){var Gt=Ln(Pe,Ve);return u.createElement(we.Provider,{key:Gt,value:(0,T.Z)((0,T.Z)({},Jn),{},{order:Ve,item:Pe,itemKey:Gt,registerSize:On,display:Ve<=Pn})},_e(Pe,Ve))}:function(Pe,Ve){var Gt=Ln(Pe,Ve);return u.createElement(_,(0,s.Z)({},Jn,{order:Ve,key:Gt,item:Pe,renderItem:Vn,itemKey:Gt,registerSize:On,display:Ve<=Pn}))},Wn,li={order:yi?Pn:Number.MAX_SAFE_INTEGER,className:"".concat(mn,"-rest"),registerSize:Sn,display:yi};if(yt)yt&&(Wn=u.createElement(we.Provider,{value:(0,T.Z)((0,T.Z)({},Jn),li)},yt(zn)));else{var ui=ft||mt;Wn=u.createElement(_,(0,s.Z)({},Jn,li),typeof ui=="function"?ui(zn):ui)}var mi=u.createElement(Ye,(0,s.Z)({className:te()(!ai&&F,Et),style:gt,ref:C},ot),_n.map(bi),Hn?Wn:null,bt&&u.createElement(_,(0,s.Z)({},Jn,{responsive:Un,responsiveDisabled:!pn,order:Pn,className:"".concat(mn,"-suffix"),registerSize:gn,display:!0,style:oi}),bt));return Un&&(mi=u.createElement(P.Z,{onResize:Gn,disabled:!pn},mi)),mi}var ut=u.forwardRef(Je);ut.displayName="Overflow",ut.Item=Ge,ut.RESPONSIVE=pe,ut.INVALIDATE=ye;var vt=ut,pt=vt,qe=l(21770),We=l(80334),Dt=l(91881),it=u.createContext(null);function Re(p,C){return p===void 0?null:"".concat(p,"-").concat(C)}function M(p){var C=u.useContext(it);return Re(C,p)}var c=l(56982),d=["children","locked"],a=u.createContext(null);function m(p,C){var D=(0,T.Z)({},p);return Object.keys(C).forEach(function(F){var B=C[F];B!==void 0&&(D[F]=B)}),D}function R(p){var C=p.children,D=p.locked,F=(0,g.Z)(p,d),B=u.useContext(a),V=(0,c.Z)(function(){return m(B,F)},[B,F],function(j,_e){return!D&&(j[0]!==_e[0]||!(0,Dt.Z)(j[1],_e[1],!0))});return u.createElement(a.Provider,{value:V},C)}var h=[],E=u.createContext(null);function S(){return u.useContext(E)}var o=u.createContext(h);function U(p){var C=u.useContext(o);return u.useMemo(function(){return p!==void 0?[].concat((0,k.Z)(C),[p]):C},[C,p])}var W=u.createContext(null),oe=u.createContext({}),ge=oe,me=l(15105),le=l(75164),Ae=function(p){if(!p)return!1;if(p instanceof Element){if(p.offsetParent)return!0;if(p.getBBox){var C=p.getBBox(),D=C.width,F=C.height;if(D||F)return!0}if(p.getBoundingClientRect){var B=p.getBoundingClientRect(),V=B.width,j=B.height;if(V||j)return!0}}return!1};function Ze(p){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ae(p)){var D=p.nodeName.toLowerCase(),F=["input","select","textarea","button"].includes(D)||p.isContentEditable||D==="a"&&!!p.getAttribute("href"),B=p.getAttribute("tabindex"),V=Number(B),j=null;return B&&!Number.isNaN(V)?j=V:F&&j===null&&(j=0),F&&p.disabled&&(j=null),j!==null&&(j>=0||C&&j<0)}return!1}function ke(p){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,D=(0,k.Z)(p.querySelectorAll("*")).filter(function(F){return Ze(F,C)});return Ze(p,C)&&D.unshift(p),D}var dt=null;function z(){dt=document.activeElement}function ct(){dt=null}function _t(){if(dt)try{dt.focus()}catch(p){}}function Bt(p,C){if(C.keyCode===9){var D=ke(p),F=D[C.shiftKey?0:D.length-1],B=F===document.activeElement||p===document.activeElement;if(B){var V=D[C.shiftKey?D.length-1:0];V.focus(),C.preventDefault()}}}var et=me.Z.LEFT,ht=me.Z.RIGHT,Rt=me.Z.UP,Ct=me.Z.DOWN,xt=me.Z.ENTER,Tt=me.Z.ESC,Kt=me.Z.HOME,$t=me.Z.END,Ht=[Rt,Ct,et,ht];function rn(p,C,D,F){var B,V,j,_e,Ie="prev",Ce="next",tt="children",Ke="parent";if(p==="inline"&&F===xt)return{inlineTrigger:!0};var gt=(B={},(0,w.Z)(B,Rt,Ie),(0,w.Z)(B,Ct,Ce),B),Et=(V={},(0,w.Z)(V,et,D?Ce:Ie),(0,w.Z)(V,ht,D?Ie:Ce),(0,w.Z)(V,Ct,tt),(0,w.Z)(V,xt,tt),V),je=(j={},(0,w.Z)(j,Rt,Ie),(0,w.Z)(j,Ct,Ce),(0,w.Z)(j,xt,tt),(0,w.Z)(j,Tt,Ke),(0,w.Z)(j,et,D?tt:Ke),(0,w.Z)(j,ht,D?Ke:tt),j),ft={inline:gt,horizontal:Et,vertical:je,inlineSub:gt,horizontalSub:je,verticalSub:je},yt=(_e=ft["".concat(p).concat(C?"":"Sub")])===null||_e===void 0?void 0:_e[F];switch(yt){case Ie:return{offset:-1,sibling:!0};case Ce:return{offset:1,sibling:!0};case Ke:return{offset:-1,sibling:!1};case tt:return{offset:1,sibling:!1};default:return null}}function ve(p){for(var C=p;C;){if(C.getAttribute("data-menu-list"))return C;C=C.parentElement}return null}function Xe(p,C){for(var D=p||document.activeElement;D;){if(C.has(D))return D;D=D.parentElement}return null}function It(p,C){var D=ke(p,!0);return D.filter(function(F){return C.has(F)})}function jt(p,C,D){var F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!p)return null;var B=It(p,C),V=B.length,j=B.findIndex(function(_e){return D===_e});return F<0?j===-1?j=V-1:j-=1:F>0&&(j+=1),j=(j+V)%V,B[j]}function kt(p,C,D,F,B,V,j,_e,Ie,Ce){var tt=u.useRef(),Ke=u.useRef();Ke.current=C;var gt=function(){le.Z.cancel(tt.current)};return u.useEffect(function(){return function(){gt()}},[]),function(Et){var je=Et.which;if([].concat(Ht,[xt,Tt,Kt,$t]).includes(je)){var ft,yt,bt,He=function(){ft=new Set,yt=new Map,bt=new Map;var Ut=V();return Ut.forEach(function(Qt){var Wt=document.querySelector("[data-menu-id='".concat(Re(F,Qt),"']"));Wt&&(ft.add(Wt),bt.set(Wt,Qt),yt.set(Qt,Wt))}),ft};He();var Ye=yt.get(C),ze=Xe(Ye,ft),nt=bt.get(ze),ot=rn(p,j(nt,!0).length===1,D,je);if(!ot&&je!==Kt&&je!==$t)return;(Ht.includes(je)||[Kt,$t].includes(je))&&Et.preventDefault();var Lt=function(Ut){if(Ut){var Qt=Ut,Wt=Ut.querySelector("a");Wt!=null&&Wt.getAttribute("href")&&(Qt=Wt);var xn=bt.get(Ut);_e(xn),gt(),tt.current=(0,le.Z)(function(){Ke.current===xn&&Qt.focus()})}};if([Kt,$t].includes(je)||ot.sibling||!ze){var lt;!ze||p==="inline"?lt=B.current:lt=ve(ze);var an,wt=It(lt,ft);je===Kt?an=wt[0]:je===$t?an=wt[wt.length-1]:an=jt(lt,ft,ze,ot.offset),Lt(an)}else if(ot.inlineTrigger)Ie(nt);else if(ot.offset>0)Ie(nt,!0),gt(),tt.current=(0,le.Z)(function(){He();var un=ze.getAttribute("aria-controls"),Ut=document.getElementById(un),Qt=jt(Ut,ft);Lt(Qt)},5);else if(ot.offset<0){var on=j(nt,!0),tn=on[on.length-2],Pt=yt.get(tn);Ie(tn,!1),Lt(Pt)}}Ce==null||Ce(Et)}}function qt(p){Promise.resolve().then(p)}var $e="__RC_UTIL_PATH_SPLIT__",Xt=function(C){return C.join($e)},Z=function(C){return C.split($e)},e="rc-menu-more";function t(){var p=u.useState({}),C=(0,A.Z)(p,2),D=C[1],F=(0,u.useRef)(new Map),B=(0,u.useRef)(new Map),V=u.useState([]),j=(0,A.Z)(V,2),_e=j[0],Ie=j[1],Ce=(0,u.useRef)(0),tt=(0,u.useRef)(!1),Ke=function(){tt.current||D({})},gt=(0,u.useCallback)(function(Ye,ze){var nt=Xt(ze);B.current.set(nt,Ye),F.current.set(Ye,nt),Ce.current+=1;var ot=Ce.current;qt(function(){ot===Ce.current&&Ke()})},[]),Et=(0,u.useCallback)(function(Ye,ze){var nt=Xt(ze);B.current.delete(nt),F.current.delete(Ye)},[]),je=(0,u.useCallback)(function(Ye){Ie(Ye)},[]),ft=(0,u.useCallback)(function(Ye,ze){var nt=F.current.get(Ye)||"",ot=Z(nt);return ze&&_e.includes(ot[0])&&ot.unshift(e),ot},[_e]),yt=(0,u.useCallback)(function(Ye,ze){return Ye.some(function(nt){var ot=ft(nt,!0);return ot.includes(ze)})},[ft]),bt=function(){var ze=(0,k.Z)(F.current.keys());return _e.length&&ze.push(e),ze},He=(0,u.useCallback)(function(Ye){var ze="".concat(F.current.get(Ye)).concat($e),nt=new Set;return(0,k.Z)(B.current.keys()).forEach(function(ot){ot.startsWith(ze)&&nt.add(B.current.get(ot))}),nt},[]);return u.useEffect(function(){return function(){tt.current=!0}},[]),{registerPath:gt,unregisterPath:Et,refreshOverflowKeys:je,isSubPathKey:yt,getKeyPath:ft,getKeys:bt,getSubPathKeys:He}}function n(p){var C=u.useRef(p);C.current=p;var D=u.useCallback(function(){for(var F,B=arguments.length,V=new Array(B),j=0;j<B;j++)V[j]=arguments[j];return(F=C.current)===null||F===void 0?void 0:F.call.apply(F,[C].concat(V))},[]);return p?D:void 0}var i=Math.random().toFixed(5).toString().slice(2),r=0;function f(p){var C=(0,qe.Z)(p,{value:p}),D=(0,A.Z)(C,2),F=D[0],B=D[1];return u.useEffect(function(){r+=1;var V="".concat(i,"-").concat(r);B("rc-menu-uuid-".concat(V))},[]),F}var b=l(15671),se=l(43144),J=l(60136),de=l(51630),Ne=l(98423),Me=l(42550);function ie(p,C,D,F){var B=u.useContext(a),V=B.activeKey,j=B.onActive,_e=B.onInactive,Ie={active:V===p};return C||(Ie.onMouseEnter=function(Ce){D==null||D({key:p,domEvent:Ce}),j(p)},Ie.onMouseLeave=function(Ce){F==null||F({key:p,domEvent:Ce}),_e(p)}),Ie}function De(p){var C=u.useContext(a),D=C.mode,F=C.rtl,B=C.inlineIndent;if(D!=="inline")return null;var V=p;return F?{paddingRight:V*B}:{paddingLeft:V*B}}function ce(p){var C=p.icon,D=p.props,F=p.children,B;return C===null||C===!1?null:(typeof C=="function"?B=u.createElement(C,(0,T.Z)({},D)):typeof C!="boolean"&&(B=C),B||F||null)}var Q=["item"];function ee(p){var C=p.item,D=(0,g.Z)(p,Q);return Object.defineProperty(D,"item",{get:function(){return(0,We.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),C}}),D}var be=["title","attribute","elementRef"],Se=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],st=["active"],cn=function(p){(0,J.Z)(D,p);var C=(0,de.Z)(D);function D(){return(0,b.Z)(this,D),C.apply(this,arguments)}return(0,se.Z)(D,[{key:"render",value:function(){var B=this.props,V=B.title,j=B.attribute,_e=B.elementRef,Ie=(0,g.Z)(B,be),Ce=(0,Ne.Z)(Ie,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,We.ZP)(!j,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(pt.Item,(0,s.Z)({},j,{title:typeof V=="string"?V:void 0},Ce,{ref:_e}))}}]),D}(u.Component),Ft=u.forwardRef(function(p,C){var D,F=p.style,B=p.className,V=p.eventKey,j=p.warnKey,_e=p.disabled,Ie=p.itemIcon,Ce=p.children,tt=p.role,Ke=p.onMouseEnter,gt=p.onMouseLeave,Et=p.onClick,je=p.onKeyDown,ft=p.onFocus,yt=(0,g.Z)(p,Se),bt=M(V),He=u.useContext(a),Ye=He.prefixCls,ze=He.onItemClick,nt=He.disabled,ot=He.overflowDisabled,Lt=He.itemIcon,lt=He.selectedKeys,an=He.onActive,wt=u.useContext(ge),on=wt._internalRenderMenuItem,tn="".concat(Ye,"-item"),Pt=u.useRef(),un=u.useRef(),Ut=nt||_e,Qt=(0,Me.x1)(C,un),Wt=U(V),xn=function(Jt){return{key:V,keyPath:(0,k.Z)(Wt).reverse(),item:Pt.current,domEvent:Jt}},Dn=Ie||Lt,Bn=ie(V,Ut,Ke,gt),Tn=Bn.active,kn=(0,g.Z)(Bn,st),wn=lt.includes(V),yn=De(Wt.length),Fn=function(Jt){if(!Ut){var fn=xn(Jt);Et==null||Et(ee(fn)),ze(fn)}},ln=function(Jt){if(je==null||je(Jt),Jt.which===me.Z.ENTER){var fn=xn(Jt);Et==null||Et(ee(fn)),ze(fn)}},dn=function(Jt){an(V),ft==null||ft(Jt)},An={};p.role==="option"&&(An["aria-selected"]=wn);var Mn=u.createElement(cn,(0,s.Z)({ref:Pt,elementRef:Qt,role:tt===null?"none":tt||"menuitem",tabIndex:_e?null:-1,"data-menu-id":ot&&bt?null:bt},yt,kn,An,{component:"li","aria-disabled":_e,style:(0,T.Z)((0,T.Z)({},yn),F),className:te()(tn,(D={},(0,w.Z)(D,"".concat(tn,"-active"),Tn),(0,w.Z)(D,"".concat(tn,"-selected"),wn),(0,w.Z)(D,"".concat(tn,"-disabled"),Ut),D),B),onClick:Fn,onKeyDown:ln,onFocus:dn}),Ce,u.createElement(ce,{props:(0,T.Z)((0,T.Z)({},p),{},{isSelected:wn}),icon:Dn}));return on&&(Mn=on(Mn,p,{selected:wn})),Mn});function Ee(p,C){var D=p.eventKey,F=S(),B=U(D);return u.useEffect(function(){if(F)return F.registerPath(D,B),function(){F.unregisterPath(D,B)}},[B]),F?null:u.createElement(Ft,(0,s.Z)({},p,{ref:C}))}var at=u.forwardRef(Ee),Zt=["className","children"],Vt=function(C,D){var F=C.className,B=C.children,V=(0,g.Z)(C,Zt),j=u.useContext(a),_e=j.prefixCls,Ie=j.mode,Ce=j.rtl;return u.createElement("ul",(0,s.Z)({className:te()(_e,Ce&&"".concat(_e,"-rtl"),"".concat(_e,"-sub"),"".concat(_e,"-").concat(Ie==="inline"?"inline":"vertical"),F),role:"menu"},V,{"data-menu-list":!0,ref:D}),B)},Mt=u.forwardRef(Vt);Mt.displayName="SubMenuList";var hn=Mt,Yn=l(50344);function sn(p,C){return(0,Yn.Z)(p).map(function(D,F){if(u.isValidElement(D)){var B,V,j=D.key,_e=(B=(V=D.props)===null||V===void 0?void 0:V.eventKey)!==null&&B!==void 0?B:j,Ie=_e==null;Ie&&(_e="tmp_key-".concat([].concat((0,k.Z)(C),[F]).join("-")));var Ce={key:_e,eventKey:_e};return u.cloneElement(D,Ce)}return D})}var In=l(62709),Nt={adjustX:1,adjustY:1},jn={topLeft:{points:["bl","tl"],overflow:Nt},topRight:{points:["br","tr"],overflow:Nt},bottomLeft:{points:["tl","bl"],overflow:Nt},bottomRight:{points:["tr","br"],overflow:Nt},leftTop:{points:["tr","tl"],overflow:Nt},leftBottom:{points:["br","bl"],overflow:Nt},rightTop:{points:["tl","tr"],overflow:Nt},rightBottom:{points:["bl","br"],overflow:Nt}},Zn={topLeft:{points:["bl","tl"],overflow:Nt},topRight:{points:["br","tr"],overflow:Nt},bottomLeft:{points:["tl","bl"],overflow:Nt},bottomRight:{points:["tr","br"],overflow:Nt},rightTop:{points:["tr","tl"],overflow:Nt},rightBottom:{points:["br","bl"],overflow:Nt},leftTop:{points:["tl","tr"],overflow:Nt},leftBottom:{points:["bl","br"],overflow:Nt}},en=null;function Yt(p,C,D){if(C)return C;if(D)return D[p]||D.other}var Qn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function vi(p){var C=p.prefixCls,D=p.visible,F=p.children,B=p.popup,V=p.popupStyle,j=p.popupClassName,_e=p.popupOffset,Ie=p.disabled,Ce=p.mode,tt=p.onVisibleChange,Ke=u.useContext(a),gt=Ke.getPopupContainer,Et=Ke.rtl,je=Ke.subMenuOpenDelay,ft=Ke.subMenuCloseDelay,yt=Ke.builtinPlacements,bt=Ke.triggerSubMenuAction,He=Ke.forceSubMenuRender,Ye=Ke.rootClassName,ze=Ke.motion,nt=Ke.defaultMotions,ot=u.useState(!1),Lt=(0,A.Z)(ot,2),lt=Lt[0],an=Lt[1],wt=Et?(0,T.Z)((0,T.Z)({},Zn),yt):(0,T.Z)((0,T.Z)({},jn),yt),on=Qn[Ce],tn=Yt(Ce,ze,nt),Pt=u.useRef(tn);Ce!=="inline"&&(Pt.current=tn);var un=(0,T.Z)((0,T.Z)({},Pt.current),{},{leavedClassName:"".concat(C,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Ut=u.useRef();return u.useEffect(function(){return Ut.current=(0,le.Z)(function(){an(D)}),function(){le.Z.cancel(Ut.current)}},[D]),u.createElement(In.Z,{prefixCls:C,popupClassName:te()("".concat(C,"-popup"),(0,w.Z)({},"".concat(C,"-rtl"),Et),j,Ye),stretch:Ce==="horizontal"?"minWidth":null,getPopupContainer:gt,builtinPlacements:wt,popupPlacement:on,popupVisible:lt,popup:B,popupStyle:V,popupAlign:_e&&{offset:_e},action:Ie?[]:[bt],mouseEnterDelay:je,mouseLeaveDelay:ft,onPopupVisibleChange:tt,forceRender:He,popupMotion:un,fresh:!0},F)}var _i=l(62874);function Mi(p){var C=p.id,D=p.open,F=p.keyPath,B=p.children,V="inline",j=u.useContext(a),_e=j.prefixCls,Ie=j.forceSubMenuRender,Ce=j.motion,tt=j.defaultMotions,Ke=j.mode,gt=u.useRef(!1);gt.current=Ke===V;var Et=u.useState(!gt.current),je=(0,A.Z)(Et,2),ft=je[0],yt=je[1],bt=gt.current?D:!1;u.useEffect(function(){gt.current&&yt(!1)},[Ke]);var He=(0,T.Z)({},Yt(V,Ce,tt));F.length>1&&(He.motionAppear=!1);var Ye=He.onVisibleChanged;return He.onVisibleChanged=function(ze){return!gt.current&&!ze&&yt(!0),Ye==null?void 0:Ye(ze)},ft?null:u.createElement(R,{mode:V,locked:!gt.current},u.createElement(_i.Z,(0,s.Z)({visible:bt},He,{forceRender:Ie,removeOnLeave:!1,leavedClassName:"".concat(_e,"-hidden")}),function(ze){var nt=ze.className,ot=ze.style;return u.createElement(hn,{id:C,className:nt,style:ot},B)}))}var Ni=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],$i=["active"],Pi=function(C){var D,F=C.style,B=C.className,V=C.title,j=C.eventKey,_e=C.warnKey,Ie=C.disabled,Ce=C.internalPopupClose,tt=C.children,Ke=C.itemIcon,gt=C.expandIcon,Et=C.popupClassName,je=C.popupOffset,ft=C.popupStyle,yt=C.onClick,bt=C.onMouseEnter,He=C.onMouseLeave,Ye=C.onTitleClick,ze=C.onTitleMouseEnter,nt=C.onTitleMouseLeave,ot=(0,g.Z)(C,Ni),Lt=M(j),lt=u.useContext(a),an=lt.prefixCls,wt=lt.mode,on=lt.openKeys,tn=lt.disabled,Pt=lt.overflowDisabled,un=lt.activeKey,Ut=lt.selectedKeys,Qt=lt.itemIcon,Wt=lt.expandIcon,xn=lt.onItemClick,Dn=lt.onOpenChange,Bn=lt.onActive,Tn=u.useContext(ge),kn=Tn._internalRenderSubMenuItem,wn=u.useContext(W),yn=wn.isSubPathKey,Fn=U(),ln="".concat(an,"-submenu"),dn=tn||Ie,An=u.useRef(),Mn=u.useRef(),Nn=Ke!=null?Ke:Qt,Jt=gt!=null?gt:Wt,fn=on.includes(j),Rn=!Pt&&fn,ni=yn(Ut,j),$n=ie(j,dn,ze,nt),bn=$n.active,ci=(0,g.Z)($n,$i),Pn=u.useState(!1),hi=(0,A.Z)(Pn,2),Kn=hi[0],ii=hi[1],ri=function(gn){dn||ii(gn)},mn=function(gn){ri(!0),bt==null||bt({key:j,domEvent:gn})},si=function(gn){ri(!1),He==null||He({key:j,domEvent:gn})},Un=u.useMemo(function(){return bn||(wt!=="inline"?Kn||yn([un],j):!1)},[wt,bn,un,Kn,j,yn]),pn=De(Fn.length),ai=function(gn){dn||(Ye==null||Ye({key:j,domEvent:gn}),wt==="inline"&&Dn(j,!fn))},Hn=n(function(Sn){yt==null||yt(ee(Sn)),xn(Sn)}),_n=function(gn){wt!=="inline"&&Dn(j,gn)},zn=function(){Bn(j)},Ln=Lt&&"".concat(Lt,"-popup"),Vn=u.createElement("div",(0,s.Z)({role:"menuitem",style:pn,className:"".concat(ln,"-title"),tabIndex:dn?null:-1,ref:An,title:typeof V=="string"?V:null,"data-menu-id":Pt&&Lt?null:Lt,"aria-expanded":Rn,"aria-haspopup":!0,"aria-controls":Ln,"aria-disabled":dn,onClick:ai,onFocus:zn},ci),V,u.createElement(ce,{icon:wt!=="horizontal"?Jt:void 0,props:(0,T.Z)((0,T.Z)({},C),{},{isOpen:Rn,isSubMenu:!0})},u.createElement("i",{className:"".concat(ln,"-arrow")}))),nn=u.useRef(wt);if(wt!=="inline"&&Fn.length>1?nn.current="vertical":nn.current=wt,!Pt){var Gn=nn.current;Vn=u.createElement(vi,{mode:Gn,prefixCls:ln,visible:!Ce&&Rn&&wt!=="inline",popupClassName:Et,popupOffset:je,popupStyle:ft,popup:u.createElement(R,{mode:Gn==="horizontal"?"vertical":Gn},u.createElement(hn,{id:Ln,ref:Mn},tt)),disabled:dn,onVisibleChange:_n},Vn)}var On=u.createElement(pt.Item,(0,s.Z)({role:"none"},ot,{component:"li",style:F,className:te()(ln,"".concat(ln,"-").concat(wt),B,(D={},(0,w.Z)(D,"".concat(ln,"-open"),Rn),(0,w.Z)(D,"".concat(ln,"-active"),Un),(0,w.Z)(D,"".concat(ln,"-selected"),ni),(0,w.Z)(D,"".concat(ln,"-disabled"),dn),D)),onMouseEnter:mn,onMouseLeave:si}),Vn,!Pt&&u.createElement(Mi,{id:Ln,open:Rn,keyPath:Fn},tt));return kn&&(On=kn(On,C,{selected:ni,active:Un,open:Rn,disabled:dn})),u.createElement(R,{onItemClick:Hn,mode:wt==="horizontal"?"vertical":wt,itemIcon:Nn,expandIcon:Jt},On)};function Ei(p){var C=p.eventKey,D=p.children,F=U(C),B=sn(D,F),V=S();u.useEffect(function(){if(V)return V.registerPath(C,F),function(){V.unregisterPath(C,F)}},[F]);var j;return V?j=B:j=u.createElement(Pi,p,B),u.createElement(o.Provider,{value:F},j)}var Ui=l(71002),zi=["className","title","eventKey","children"],ji=["children"],Zi=function(C){var D=C.className,F=C.title,B=C.eventKey,V=C.children,j=(0,g.Z)(C,zi),_e=u.useContext(a),Ie=_e.prefixCls,Ce="".concat(Ie,"-item-group");return u.createElement("li",(0,s.Z)({role:"presentation"},j,{onClick:function(Ke){return Ke.stopPropagation()},className:te()(Ce,D)}),u.createElement("div",{role:"presentation",className:"".concat(Ce,"-title"),title:typeof F=="string"?F:void 0},F),u.createElement("ul",{role:"group",className:"".concat(Ce,"-list")},V))};function xi(p){var C=p.children,D=(0,g.Z)(p,ji),F=U(D.eventKey),B=sn(C,F),V=S();return V?B:u.createElement(Zi,(0,Ne.Z)(D,["warnKey"]),B)}function wi(p){var C=p.className,D=p.style,F=u.useContext(a),B=F.prefixCls,V=S();return V?null:u.createElement("li",{role:"separator",className:te()("".concat(B,"-item-divider"),C),style:D})}var Ki=["label","children","key","type"];function Ai(p){return(p||[]).map(function(C,D){if(C&&(0,Ui.Z)(C)==="object"){var F=C,B=F.label,V=F.children,j=F.key,_e=F.type,Ie=(0,g.Z)(F,Ki),Ce=j!=null?j:"tmp-".concat(D);return V||_e==="group"?_e==="group"?u.createElement(xi,(0,s.Z)({key:Ce},Ie,{title:B}),Ai(V)):u.createElement(Ei,(0,s.Z)({key:Ce},Ie,{title:B}),Ai(V)):_e==="divider"?u.createElement(wi,(0,s.Z)({key:Ce},Ie)):u.createElement(at,(0,s.Z)({key:Ce},Ie),B)}return null}).filter(function(C){return C})}function Hi(p,C,D){var F=p;return C&&(F=Ai(C)),sn(F,D)}var Vi=["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"],ti=[],Gi=u.forwardRef(function(p,C){var D,F,B=p,V=B.prefixCls,j=V===void 0?"rc-menu":V,_e=B.rootClassName,Ie=B.style,Ce=B.className,tt=B.tabIndex,Ke=tt===void 0?0:tt,gt=B.items,Et=B.children,je=B.direction,ft=B.id,yt=B.mode,bt=yt===void 0?"vertical":yt,He=B.inlineCollapsed,Ye=B.disabled,ze=B.disabledOverflow,nt=B.subMenuOpenDelay,ot=nt===void 0?.1:nt,Lt=B.subMenuCloseDelay,lt=Lt===void 0?.1:Lt,an=B.forceSubMenuRender,wt=B.defaultOpenKeys,on=B.openKeys,tn=B.activeKey,Pt=B.defaultActiveFirst,un=B.selectable,Ut=un===void 0?!0:un,Qt=B.multiple,Wt=Qt===void 0?!1:Qt,xn=B.defaultSelectedKeys,Dn=B.selectedKeys,Bn=B.onSelect,Tn=B.onDeselect,kn=B.inlineIndent,wn=kn===void 0?24:kn,yn=B.motion,Fn=B.defaultMotions,ln=B.triggerSubMenuAction,dn=ln===void 0?"hover":ln,An=B.builtinPlacements,Mn=B.itemIcon,Nn=B.expandIcon,Jt=B.overflowedIndicator,fn=Jt===void 0?"...":Jt,Rn=B.overflowedIndicatorPopupClassName,ni=B.getPopupContainer,$n=B.onClick,bn=B.onOpenChange,ci=B.onKeyDown,Pn=B.openAnimation,hi=B.openTransitionName,Kn=B._internalRenderMenuItem,ii=B._internalRenderSubMenuItem,ri=(0,g.Z)(B,Vi),mn=u.useMemo(function(){return Hi(Et,gt,ti)},[Et,gt]),si=u.useState(!1),Un=(0,A.Z)(si,2),pn=Un[0],ai=Un[1],Hn=u.useRef(),_n=f(ft),zn=je==="rtl",Ln=(0,qe.Z)(wt,{value:on,postState:function(St){return St||ti}}),Vn=(0,A.Z)(Ln,2),nn=Vn[0],Gn=Vn[1],On=function(St){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function vn(){Gn(St),bn==null||bn(St)}Ot?(0,v.flushSync)(vn):vn()},Sn=u.useState(nn),gn=(0,A.Z)(Sn,2),fi=gn[0],yi=gn[1],oi=u.useRef(!1),Jn=u.useMemo(function(){return(bt==="inline"||bt==="vertical")&&He?["vertical",He]:[bt,!1]},[bt,He]),bi=(0,A.Z)(Jn,2),Wn=bi[0],li=bi[1],ui=Wn==="inline",mi=u.useState(Wn),Pe=(0,A.Z)(mi,2),Ve=Pe[0],Gt=Pe[1],Cn=u.useState(li),Xn=(0,A.Z)(Cn,2),Yi=Xn[0],Qi=Xn[1];u.useEffect(function(){Gt(Wn),Qi(li),oi.current&&(ui?Gn(fi):On(ti))},[Wn,li]);var Ji=u.useState(0),Bi=(0,A.Z)(Ji,2),Si=Bi[0],qi=Bi[1],Ri=Si>=mn.length-1||Ve!=="horizontal"||ze;u.useEffect(function(){ui&&yi(nn)},[nn]),u.useEffect(function(){return oi.current=!0,function(){oi.current=!1}},[]);var qn=t(),Li=qn.registerPath,Oi=qn.unregisterPath,er=qn.refreshOverflowKeys,Di=qn.isSubPathKey,tr=qn.getKeyPath,nr=qn.getKeys,ir=qn.getSubPathKeys,rr=u.useMemo(function(){return{registerPath:Li,unregisterPath:Oi}},[Li,Oi]),sr=u.useMemo(function(){return{isSubPathKey:Di}},[Di]);u.useEffect(function(){er(Ri?ti:mn.slice(Si+1).map(function(zt){return zt.key}))},[Si,Ri]);var ar=(0,qe.Z)(tn||Pt&&((D=mn[0])===null||D===void 0?void 0:D.key),{value:tn}),Ti=(0,A.Z)(ar,2),pi=Ti[0],Ii=Ti[1],or=n(function(zt){Ii(zt)}),lr=n(function(){Ii(void 0)});(0,u.useImperativeHandle)(C,function(){return{list:Hn.current,focus:function(St){var Ot,vn=pi!=null?pi:(Ot=mn.find(function(_r){return!_r.props.disabled}))===null||Ot===void 0?void 0:Ot.key;if(vn){var En,ei,gi;(En=Hn.current)===null||En===void 0||(ei=En.querySelector("li[data-menu-id='".concat(Re(_n,vn),"']")))===null||ei===void 0||(gi=ei.focus)===null||gi===void 0||gi.call(ei,St)}}}});var ur=(0,qe.Z)(xn||[],{value:Dn,postState:function(St){return Array.isArray(St)?St:St==null?ti:[St]}}),ki=(0,A.Z)(ur,2),Ci=ki[0],dr=ki[1],cr=function(St){if(Ut){var Ot=St.key,vn=Ci.includes(Ot),En;Wt?vn?En=Ci.filter(function(gi){return gi!==Ot}):En=[].concat((0,k.Z)(Ci),[Ot]):En=[Ot],dr(En);var ei=(0,T.Z)((0,T.Z)({},St),{},{selectedKeys:En});vn?Tn==null||Tn(ei):Bn==null||Bn(ei)}!Wt&&nn.length&&Ve!=="inline"&&On(ti)},hr=n(function(zt){$n==null||$n(ee(zt)),cr(zt)}),Fi=n(function(zt,St){var Ot=nn.filter(function(En){return En!==zt});if(St)Ot.push(zt);else if(Ve!=="inline"){var vn=ir(zt);Ot=Ot.filter(function(En){return!vn.has(En)})}(0,Dt.Z)(nn,Ot,!0)||On(Ot,!0)}),fr=function(St,Ot){var vn=Ot!=null?Ot:!nn.includes(St);Fi(St,vn)},mr=kt(Ve,pi,zn,_n,Hn,nr,tr,Ii,fr,ci);u.useEffect(function(){ai(!0)},[]);var pr=u.useMemo(function(){return{_internalRenderMenuItem:Kn,_internalRenderSubMenuItem:ii}},[Kn,ii]),gr=Ve!=="horizontal"||ze?mn:mn.map(function(zt,St){return u.createElement(R,{key:zt.key,overflowDisabled:St>Si},zt)}),vr=u.createElement(pt,(0,s.Z)({id:ft,ref:Hn,prefixCls:"".concat(j,"-overflow"),component:"ul",itemComponent:at,className:te()(j,"".concat(j,"-root"),"".concat(j,"-").concat(Ve),Ce,(F={},(0,w.Z)(F,"".concat(j,"-inline-collapsed"),Yi),(0,w.Z)(F,"".concat(j,"-rtl"),zn),F),_e),dir:je,style:Ie,role:"menu",tabIndex:Ke,data:gr,renderRawItem:function(St){return St},renderRawRest:function(St){var Ot=St.length,vn=Ot?mn.slice(-Ot):null;return u.createElement(Ei,{eventKey:e,title:fn,disabled:Ri,internalPopupClose:Ot===0,popupClassName:Rn},vn)},maxCount:Ve!=="horizontal"||ze?pt.INVALIDATE:pt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(St){qi(St)},onKeyDown:mr},ri));return u.createElement(ge.Provider,{value:pr},u.createElement(it.Provider,{value:_n},u.createElement(R,{prefixCls:j,rootClassName:_e,mode:Ve,openKeys:nn,rtl:zn,disabled:Ye,motion:pn?yn:null,defaultMotions:pn?Fn:null,activeKey:pi,onActive:or,onInactive:lr,selectedKeys:Ci,inlineIndent:wn,subMenuOpenDelay:ot,subMenuCloseDelay:lt,forceSubMenuRender:an,builtinPlacements:An,triggerSubMenuAction:dn,getPopupContainer:ni,itemIcon:Mn,expandIcon:Nn,onItemClick:hr,onOpenChange:Fi},u.createElement(W.Provider,{value:sr},vr),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(E.Provider,{value:rr},mn)))))}),Wi=Gi,di=Wi;di.Item=at,di.SubMenu=Ei,di.ItemGroup=xi,di.Divider=wi;var Xi=di},66680:function(Qe,ue,l){"use strict";l.d(ue,{Z:function(){return w}});var s=l(67294);function w(T){var k=s.useRef();k.current=T;var A=s.useCallback(function(){for(var g,q=arguments.length,te=new Array(q),u=0;u<q;u++)te[u]=arguments[u];return(g=k.current)===null||g===void 0?void 0:g.call.apply(g,[k].concat(te))},[]);return A}},21770:function(Qe,ue,l){"use strict";l.d(ue,{Z:function(){return g}});var s=l(97685),w=l(66680),T=l(8410),k=l(63896);function A(q){return q!==void 0}function g(q,te){var u=te||{},P=u.defaultValue,ne=u.value,Y=u.onChange,O=u.postState,G=(0,k.Z)(function(){return A(ne)?ne:A(P)?typeof P=="function"?P():P:typeof q=="function"?q():q}),he=(0,s.Z)(G,2),re=he[0],H=he[1],x=ne!==void 0?ne:re,y=O?O(x):x,_=(0,w.Z)(Y),L=(0,k.Z)([x]),v=(0,s.Z)(L,2),I=v[0],K=v[1];(0,T.o)(function(){var X=I[0];re!==X&&_(re,X)},[I]),(0,T.o)(function(){A(ne)||H(ne)},[ne]);var N=(0,w.Z)(function(X,ae){H(X,ae),K([x],ae)});return[y,N]}},91881:function(Qe,ue,l){"use strict";var s=l(71002),w=l(80334);function T(k,A){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,q=new Set;function te(u,P){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Y=q.has(u);if((0,w.ZP)(!Y,"Warning: There may be circular references"),Y)return!1;if(u===P)return!0;if(g&&ne>1)return!1;q.add(u);var O=ne+1;if(Array.isArray(u)){if(!Array.isArray(P)||u.length!==P.length)return!1;for(var G=0;G<u.length;G++)if(!te(u[G],P[G],O))return!1;return!0}if(u&&P&&(0,s.Z)(u)==="object"&&(0,s.Z)(P)==="object"){var he=Object.keys(u);return he.length!==Object.keys(P).length?!1:he.every(function(re){return te(u[re],P[re],O)})}return!1}return te(k,A)}ue.Z=T},98423:function(Qe,ue,l){"use strict";l.d(ue,{Z:function(){return w}});var s=l(1413);function w(T,k){var A=(0,s.Z)({},T);return Array.isArray(k)&&k.forEach(function(g){delete A[g]}),A}},18034:function(Qe){var ue=arguments[3],l=arguments[4],s=arguments[5],w=JSON.stringify;Qe.exports=function(T,k){for(var A,g=Object.keys(s),q=0,te=g.length;q<te;q++){var u=g[q],P=s[u].exports;if(P===T||P&&P.default===T){A=u;break}}if(!A){A=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var ne={},q=0,te=g.length;q<te;q++){var u=g[q];ne[u]=u}l[A]=["function(require,module,exports){"+T+"(self); }",ne]}var Y=Math.floor(Math.pow(16,8)*Math.random()).toString(16),O={};O[A]=A,l[Y]=["function(require,module,exports){var f = require("+w(A)+");(f.default ? f.default : f)(self);}",O];var G={};he(Y);function he(L){G[L]=!0;for(var v in l[L][1]){var I=l[L][1][v];G[I]||he(I)}}var re="("+ue+")({"+Object.keys(G).map(function(L){return w(L)+":["+l[L][0]+","+w(l[L][1])+"]"}).join(",")+"},{},["+w(Y)+"])",H=window.URL||window.webkitURL||window.mozURL||window.msURL,x=new Blob([re],{type:"text/javascript"});if(k&&k.bare)return x;var y=H.createObjectURL(x),_=new Worker(y);return _.objectURL=y,_}}}]);