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
278 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[4928],{18785:function(ut,Re,l){"use strict";l.d(Re,{Z:function(){return de}});var a=l(54476),S=l(59301),M={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"},P=M,C=l(7657),_=function(J,re){return S.createElement(C.Z,(0,a.Z)({},J,{ref:re,icon:P}))},ue=S.forwardRef(_),de=ue},33853:function(ut,Re,l){"use strict";l.d(Re,{Z:function(){return de}});var a=l(54476),S=l(59301),M={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"},P=M,C=l(7657),_=function(J,re){return S.createElement(C.Z,(0,a.Z)({},J,{ref:re,icon:P}))},ue=S.forwardRef(_),de=ue},38819:function(ut,Re,l){"use strict";l.d(Re,{Z:function(){return de}});var a=l(54476),S=l(59301),M={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"},P=M,C=l(7657),_=function(J,re){return S.createElement(C.Z,(0,a.Z)({},J,{ref:re,icon:P}))},ue=S.forwardRef(_),de=ue},81032:function(ut,Re,l){"use strict";l.d(Re,{Z:function(){return we}});var a=l(59301),S=l(8591),M=l(38854),P=l(96640),C=l(80360),_=l(47141),ue=l(56102),de=l(18030),N={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"},J=(ee,q,E)=>new Promise((w,b)=>{var I=T=>{try{O(E.next(T))}catch(A){b(A)}},L=T=>{try{O(E.throw(T))}catch(A){b(A)}},O=T=>T.done?w(T.value):Promise.resolve(T.value).then(I,L);O((E=E.apply(ee,q)).next())});function re(ee){if(isNaN(ee))return{minutes:"00",seconds:"00"};const q=new Date(ee*1e3).toISOString().substr(11,8);return{hour:q.substr(0,2),minutes:q.substr(3,2),seconds:q.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function Y(ee,q){return ee-q}function o(ee){ee.sort(Y);let q=0;for(let E=0;E<ee.length-1;E++){let w=Math.abs(ee[E+1]-ee[E]);w<21&&(q+=w)}return q}const G=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var we=(0,a.forwardRef)(({allow_skip:ee,src:q,toLog:E,videoId:w,logWatchHistory:b,courseId:I=null,startTime:L,handlePause:O=()=>{},handlePlay:T=()=>{},handlePlayEnded:A=()=>{},autoPlay:Q=!1,onPlayEnded:ne=()=>{},isShowWaterMark:pe=!0},Ae)=>{var be;const Be=((be=q==null?void 0:q.split("."))==null?void 0:be.pop())==="flv",F=(0,a.useRef)(),Ge=(0,a.useRef)(),We=(0,a.useRef)(),Z=(0,a.useRef)(),he=(0,a.useRef)(),ie=(0,a.useRef)(),ye=(0,a.useRef)(),se=(0,a.useRef)(),ae=(0,a.useRef)(),ve=(0,a.useRef)(),Ue=(0,a.useRef)(),$e=(0,a.useRef)(),je=(0,a.useRef)(),Xe=(0,a.useRef)(),nt=navigator.userAgent.toLowerCase().match(G),Me=nt?nt[0]:"pc",He=(0,a.useRef)(!1),Qe=(0,_.eY)();let Je=0,et=0,B=0,y=null,s=!1,h=20,f=1,$=!1,d=!1,m=[];(0,a.useImperativeHandle)(Ae,()=>({getLastUpdatedTime:()=>F.current.currentTime,getDuration:()=>F.current.duration})),S.ZP.config({maxCount:1,getContainer:()=>We.current});const x=(0,a.useCallback)((_e,Oe=!1)=>{let xe={point:F.current.currentTime};y?(xe.log_id=y,xe.watch_duration=o(m),xe.total_duration=et):(I?(xe.video_id=parseInt(w,10),xe.course_id=I):xe.video_id=w,xe.duration=Je,xe.device=Me),Oe&&(xe.ed="1");function ot(){return J(this,null,function*(){$=!0,y=yield b==null?void 0:b(xe),$=!1,_e&&_e()})}ot()},[w,I]);(0,a.useEffect)(()=>{F.current&&(Z.current.style.display="none",he.current.style.display="block"),S.ZP.destroy();let _e=null;return P.Z.isSupported&&Be&&q&&(q==null?void 0:q.indexOf(".m3u8"))<0?(_e=P.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:q,muted:!1}),F.current&&(_e.attachMediaElement(F.current),_e.load())):F.current.setAttribute("src",q),R(),()=>{_e&&(_e.unload(),_e.pause(),_e.destroy(),_e=null)}},[F,Be,q]);function u(){F.current.paused?(Z.current.style.display="none",he.current.style.display="block"):(Z.current.style.display="block",he.current.style.display="none")}function R(){Ue.current.style.display="none",je.current.style.display="none",$e.current.style.display="none",F.current.muted||F.current.volume===0?Ue.current.style.display="block":F.current.volume>0&&F.current.volume<=.5?je.current.style.display="block":$e.current.style.display="block"}(0,a.useEffect)(()=>{const _e=document.getElementById("play"),Oe=document.querySelectorAll(".playback-icons use");function xe(){T(),L&&!He.current&&(F.current.currentTime=L),He.current=!0,m.push(F.current.currentTime),s||(s=!0,E&&x())}function ot(){return J(this,null,function*(){u(),m.push(F.current.currentTime),E&&x(()=>{y=null,B=0,s=!1,$=!1,d=!1,m=[],et=0,f=1},!0),ne()})}function _t(){ie.current.value=Math.round(F.current.currentTime),ye.current.value=Math.round(F.current.currentTime)}function j(){const Ie=re(Math.round(F.current.currentTime));ae.current.innerText=`${Ie.hour>0?Ie.hour+":":""}${Ie.minutes}:${Ie.seconds}`,ae.current.setAttribute("datetime",`${Ie.hour>0?" "+Ie.hour+" ":""}${Ie.minutes}m ${Ie.seconds}s`)}function bt(){var Ie,qe,Bt,pt,$t,Pt,St;const Ot=Math.round((Ie=F.current)==null?void 0:Ie.duration);(Bt=(qe=ie.current)==null?void 0:qe.setAttribute)==null||Bt.call(qe,"max",Ot),($t=(pt=ye.current)==null?void 0:pt.setAttribute)==null||$t.call(pt,"max",Ot);const tt=re(Ot);se.current&&(se.current.innerText=`${tt.hour>0?tt.hour+":":""}${tt.minutes}:${tt.seconds}`,(St=(Pt=se.current).setAttribute)==null||St.call(Pt,"datetime",`${tt.hour>0?" "+tt.hour+" ":""}${tt.minutes}m ${tt.seconds}s`))}function ct(){try{const Ie=Math.round(F.current.duration);ie.current.setAttribute("max",Ie),ye.current.setAttribute("max",Ie);const qe=re(Ie);se.current.innerText=`${qe.hour>0?qe.hour+":":""}${qe.minutes}:${qe.seconds}`,se.current.setAttribute("datetime",`${qe.hour>0?" "+qe.hour+" ":""}${qe.minutes}m ${qe.seconds}s`),_t(),j();const{width:Bt,height:pt,x:$t,y:Pt}=Ge.current.getBoundingClientRect();if($t<0||Pt<0||!Bt)return;if(!d){let St=F.current.currentTime,Ot=St-B;Math.abs(Ot)<10?(et+=Math.abs(Ot),B=St,$||et-f*h>=0&&(f++,m.push(B),E&&x())):(B=St,E&&x())}}catch(Ie){console.log(Ie)}}function vt(){d=!0}function it(){F.current.playing&&m.push(F.current.currentTime,B),B=F.current.currentTime,d=!1}function Rt(){Je=F.current.duration,Je<=20&&(h=Je/3),F.current.addEventListener("play",xe)}function Ft(Ie){Ie.preventDefault(),(0,de.vp)()?(F.current.style.width="100%",F.current.style.height="100%"):F.current.style.cssText=""}function Dt(){O()}function Ct(Ie){if(!ee){S.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const qe=Ie.target.dataset.seek?Ie.target.dataset.seek:Ie.target.value;F.current.currentTime=qe,ye.current.value=qe,ie.current.value=qe}function Kt(Ie){const qe=Math.round(Ie.offsetX/Ie.target.clientWidth*parseInt(Ie.target.getAttribute("max"),10));ie.current.setAttribute("data-seek",qe);const Bt=re(qe);ve.current.textContent=`${Bt.hour>0?Bt.hour+":":""}${Bt.minutes}:${Bt.seconds}`;const pt=F.current.getBoundingClientRect();ve.current.style.left=`${Ie.pageX-pt.left}px`}function zt(Ie){switch(Ie.code){case"Space":Ie.preventDefault(),De();break;case"ArrowRight":if(Ie.preventDefault(),!ee){S.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(F.current.currentTime>=F.current.duration)break;F.current.currentTime=parseInt(F.current.currentTime)+5,_t();break;case"ArrowLeft":if(Ie.preventDefault(),!ee){S.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(F.current.currentTime===0)break;F.current.currentTime=parseInt(F.current.currentTime)-5,_t();break;case"ArrowUp":Ie.preventDefault(),F.current.volume<1&&(F.current.volume=(parseInt(F.current.volume*10)+1)/10);break;case"ArrowDown":Ie.preventDefault(),F.current.volume>0&&(F.current.volume=(parseInt(F.current.volume*10)-1)/10);break}}return We.current.addEventListener((0,de.gH)(),Ft),F.current.addEventListener("canplay",Rt),F.current.addEventListener("ended",ot),F.current.addEventListener("seeking",vt),F.current.addEventListener("seeked",it),F.current.addEventListener("loadedmetadata",bt),ie.current.addEventListener("mousemove",Kt),ie.current.addEventListener("input",Ct),F.current.addEventListener("timeupdate",ct),F.current.addEventListener("pause",Dt),F.current.addEventListener("volumechange",R),document.addEventListener("keydown",zt),()=>{var Ie,qe,Bt,pt,$t,Pt,St,Ot,tt,dt,dn,K;(Ie=F.current)==null||Ie.removeEventListener("canplay",Rt),(qe=F.current)==null||qe.removeEventListener("play",xe),(Bt=F.current)==null||Bt.removeEventListener("ended",ot),(pt=F.current)==null||pt.removeEventListener("seeking",vt),($t=F.current)==null||$t.removeEventListener("seeked",it),(Pt=ie.current)==null||Pt.removeEventListener("mousemove",Kt),(St=ie.current)==null||St.removeEventListener("input",Ct),(Ot=F.current)==null||Ot.removeEventListener("timeupdate",ct),(tt=F.current)==null||tt.removeEventListener("pause",Dt),(dt=F.current)==null||dt.removeEventListener("loadedmetadata",bt),(dn=F.current)==null||dn.removeEventListener("volumechange",R),document.removeEventListener("keydown",zt),(K=F.current)!=null&&K.playing&&(m.push(B,F.current.currentTime),E&&x())}},[F,q]),(0,a.useEffect)(()=>{if(F.current.onended=()=>{A(F)},F.current.oncontextmenu=()=>!1,(q==null?void 0:q.indexOf(".m3u8"))>-1){if(F.current.canPlayType("application/vnd.apple.mpegurl"))F.current.src=q;else if(C.ZP.isSupported()){var _e=new C.ZP;_e.loadSource(q),_e.attachMedia(F.current)}}},[q]);const[W,ce]=(0,a.useState)(1),De=()=>{F.current.paused||F.current.ended?F.current.play():F.current.pause(),u()};function Fe(){F.current.muted=!F.current.muted,F.current.muted?(Xe.current.setAttribute("data-volume",volume.value),Xe.current.value=0):Xe.current.value=Xe.current.dataset.volume}return a.createElement("div",{style:{position:"relative"},ref:We},a.createElement("div",{ref:Ge,className:`${N.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${N.animate__loop}`},pe&&Qe?Qe.login:" "),a.createElement("div",{className:N.container},a.createElement("div",{className:N["video-container"],id:"video-container"},a.createElement("div",{className:N["playback-animation"],id:"playback-animation"},a.createElement("svg",{className:N["playback-icons"]},a.createElement("use",{className:"hidden",href:"#play-icon"}),a.createElement("use",{href:"#pause"}))),a.createElement("video",{className:N.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:F,autoPlay:Q}),a.createElement("div",{className:`${N["video-controls"]} `,id:"video-controls"},a.createElement("div",{className:N["bottom-controls"]},a.createElement("div",{className:N["left-controls"]},a.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:De},a.createElement("svg",{className:N["playback-icons"]},a.createElement("use",{ref:he,href:"#play-icon"}),a.createElement("use",{ref:Z,style:{display:"none"},href:"#pause"}))),a.createElement("div",{className:N.time},a.createElement("time",{id:"time-elapsed",ref:ae},"00:00"),a.createElement("span",null," / "),a.createElement("time",{id:"duration",ref:se},"00:00"))),a.createElement("div",{className:N["right-controls"]},ee&&a.createElement(M.Z,{placement:"top",overlayClassName:N.rateOverlay,getPopupContainer:_e=>_e.parentNode,menu:{items:[{key:"1",label:a.createElement("span",{onClick:()=>{ce(1),F.current.playbackRate=1}},"1.0x")},{key:"2",label:a.createElement("span",{onClick:()=>{ce(1.5),F.current.playbackRate=1.5}},"1.5x")},{key:"3",label:a.createElement("span",{onClick:()=>{ce(2),F.current.playbackRate=2}},"2.0x")}]}},a.createElement("div",{className:`${N.controlText} mr5`},"\u500D\u901F")),a.createElement(ue.CopyToClipboard,{text:q,onCopy:()=>S.ZP.success("\u590D\u5236\u6210\u529F")},a.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},a.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),a.createElement("div",{className:N["volume-controls"]},a.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:N["volume-button"],id:"volume-button",onClick:Fe},a.createElement("i",{ref:Ue,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),a.createElement("i",{ref:je,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),a.createElement("i",{ref:$e,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),a.createElement("input",{className:N.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Xe,style:{display:"none"},onClick:R})),a.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:N["fullscreen-button"],onClick:()=>{(0,de.vp)()?(0,de.BU)():(0,de.Dj)(We.current)}},a.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),a.createElement("div",{className:N["video-progress"]},a.createElement("progress",{ref:ye,value:"0",min:"0"}),a.createElement("input",{className:N.seek,ref:ie,value:"0",min:"0",type:"range",step:"1"}),a.createElement("div",{className:N["seek-tooltip"],ref:ve,id:"seek-tooltip"},"00:00"))))),a.createElement("svg",{style:{display:"none"}},a.createElement("defs",null,a.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},a.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),a.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},a.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),a.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},a.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"})),a.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},a.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"})),a.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},a.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"})),a.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},a.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"})),a.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},a.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"})),a.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},a.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"})))))})},91038:function(ut,Re,l){"use strict";l.r(Re),l.d(Re,{default:function(){return q}});var a=l(59301),S=l(92123),M=l(61621),P=l(43418),C={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"},_=l(47141);const ue={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(E=>(E.parent=Number(E.parent),E.key=Number(E.key),E)),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(E=>(E.parent=Number(E.parent),E.key=Number(E.key),E)),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(E=>(E.parent=Number(E.parent),E.key=Number(E.key),E))};var de=l(86541),N=l(81032),J=Object.defineProperty,re=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,G=(E,w,b)=>w in E?J(E,w,{enumerable:!0,configurable:!0,writable:!0,value:b}):E[w]=b,we=(E,w)=>{for(var b in w||(w={}))Y.call(w,b)&&G(E,b,w[b]);if(re)for(var b of re(w))o.call(w,b)&&G(E,b,w[b]);return E};const ee=({classroomList:E,loading:w,dispatch:b})=>{const[I]=(0,S.useSearchParams)(),[L]=(0,a.useState)(we({},(0,S.useParams)())),[O,T]=(0,a.useState)("init"),[A,Q]=(0,a.useState)(""),ne=(0,a.useRef)();(0,a.useEffect)(()=>{const Be=I.get("tabId");Be&&(T(Be),L.status=Be)},[L.categoryId,I.get("tabId")]);const pe=Be=>{T(Be.key)},Ae=[{name:"\u521D\u59CB\u5B66\u4E60",id:"init"},{name:"\u590D\u4E60\u5B66\u4E60",id:"review"},{name:"\u8003\u524D\u5B66\u4E60",id:"before"}],be=Be=>{Be.data.type==="playVideo"&&Q(Be.data.url)};(0,a.useEffect)(()=>{O&&Te(),window.addEventListener("message",be)},[O]);const Te=()=>{var Be;(Be=ne.current.contentWindow)==null||Be.postMessage({data:ue[O]},"*")};return a.createElement("section",null,a.createElement(de.Z,{isLoading:w["classroomList/getClassroomAttendancesList"],tabDataSource:Ae,isAdmin:(0,_.GJ)(),onTabMenuClick:pe,defaultSelectedKeys:[O]}),a.createElement("section",null,a.createElement(M.Z,{loading:w["classroomList/getClassroomAttendancesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},a.createElement("iframe",{src:"/knowledgegraph/parseTree.html",onLoad:Te,className:C.iframe,ref:ne}))),a.createElement(P.default,{open:!!A,onCancel:()=>Q(""),width:800,footer:null,bodyStyle:{padding:0},centered:!0,destroyOnClose:!0},a.createElement(N.Z,{src:A,autoPlay:!0,toLog:!1})))};var q=(0,S.connect)(({classroomList:E,loading:w,globalSetting:b})=>({classroomList:E,globalSetting:b,loading:w.effects}))(ee)},86541:function(ut,Re,l){"use strict";l.d(Re,{Z:function(){return o}});var a=l(59301),S=l(95237),M=l(43604),P=l(20834),C=l(6848),_=l(38854),ue=l(8591),de={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},N=l(92123),J=l(47141),re=l(94601),o=({isLoading:G,addText:we,tabDataSource:ee,isAdmin:q,dispatch:E,classroomList:w,type:b,isExercise:I,defaultSelectedKeys:L,onTabMenuClick:O,getDropdownMenu:T,showControlButton:A,buttonText:Q,buttonIcon:ne="icon-tianjiadaohang",extraNode:pe,user:Ae,onButtonClick:be,isModelUser:Te})=>{var Be,F,Ge,We,Z;const he=(0,N.useParams)();return a.createElement("div",{className:de.tabMenuContainer},a.createElement(S.Z,null,a.createElement(M.Z,{flex:"1"},a.createElement(P.default,{onSelect:ie=>G?{}:O(ie),mode:"horizontal",selectedKeys:L},ee.map(ie=>a.createElement(P.default.Item,{key:typeof ie.index=="number"?ie.index:ie.id},a.createElement("span",{className:"c-grey-666"},ie.name),ie.total!==void 0&&q&&a.createElement("span",{className:"c-grey-999 ml20"},ie.total||0))))),q&&I&&a.createElement(C.Z,{title:"\u8003\u60C5\u53EF\u89C6\u5316\u7EDF\u8BA1"},a.createElement("i",{className:"iconfont icon-shuatitongji mr20",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{(0,re.xg)("/zbstatistics")}})),q&&I&&a.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{E({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),q&&a.createElement(M.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},I&&a.createElement(_.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>a.createElement(P.default,null,a.createElement(P.default.Item,{key:1,onClick:()=>{var ie;if((0,J.Rm)()&&!((ie=w.AssistantObject.exercise)!=null&&ie.can_download)){ue.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}E({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:b,exportType:"exercise",category_id:he.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),a.createElement(P.default.Item,{key:3,onClick:()=>{var ie;if((0,J.Rm)()&&!((ie=w.AssistantObject.exercise)!=null&&ie.can_download)){ue.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}N.history.push(`/classrooms/${he==null?void 0:he.coursesId}/exportlist/exercise_score,export_exercise_users`)}},"\u5386\u53F2\u5BFC\u51FA"))},a.createElement("div",{className:"c-blue font16 ml20 current",style:{marginTop:2}},a.createElement("span",{style:{color:"#666666",cursor:"pointer"}},a.createElement("i",{className:"iconfont icon-xiazai6"})))),a.createElement("div",{className:de.control},a.createElement("div",{className:de.extra},pe),A&&(Q=="\u6DFB\u52A0\u76F4\u64AD"?a.createElement(_.Z,{menu:{items:(F=(Be=[{label:a.createElement("div",{onClick:()=>{be("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Te&&{label:a.createElement("div",{onClick:()=>{be("\u5934\u6B4C")}},"\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:Be.filter(ie=>ie==null?void 0:ie.show))==null?void 0:F.map(ie=>({label:ie==null?void 0:ie.label,key:ie==null?void 0:ie.key}))}},a.createElement("span",{className:de.selectBtn},a.createElement("span",null,a.createElement("i",{className:`iconfont ${ne}`})),a.createElement("span",null,Q))):a.createElement("span",{onClick:be,style:{cursor:"pointer"},className:de.selectBtn},a.createElement("span",null,a.createElement("i",{className:`iconfont ${ne}`})),a.createElement("span",null,Q))),!!T&&a.createElement(_.Z,{disabled:((Ge=Ae==null?void 0:Ae.userInfo)==null?void 0:Ge.user_status)===2,className:"ml10",dropdownRender:T},a.createElement("span",{className:((We=Ae==null?void 0:Ae.userInfo)==null?void 0:We.user_status)===2?de.selectBtn1:de.selectBtn},a.createElement("span",null,a.createElement("i",{className:"iconfont icon-tianjiadaohang"})),a.createElement(C.Z,{title:((Z=Ae==null?void 0:Ae.userInfo)==null?void 0:Z.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"},a.createElement("span",null,we||"\u521B\u5EFA\u8BD5\u5377"))))))))}},18030:function(ut,Re,l){"use strict";l.d(Re,{BU:function(){return S},Dj:function(){return a},gH:function(){return M},vp:function(){return P}});function a(C){try{C.mozRequestFullScreen?C.mozRequestFullScreen():C.webkitRequestFullScreen&&C.webkitRequestFullScreen()}catch(_){console.log(_,":e")}}function S(){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 M=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function P(){var C=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,_=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",C),window.isFullScreen?window.isFullScreen:C!=null}},96640:function(ut,Re,l){"use strict";l.d(Re,{Z:function(){return dn}});class a{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(3867).polyfill()}}a.install();var S=a,M=l(86204),P=l.n(M);class C{static e(e,t){(!e||C.FORCE_GLOBAL_TAG)&&(e=C.GLOBAL_TAG);let n=`[${e}] > ${t}`;C.ENABLE_CALLBACK&&C.emitter.emit("log","error",n),C.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}static i(e,t){(!e||C.FORCE_GLOBAL_TAG)&&(e=C.GLOBAL_TAG);let n=`[${e}] > ${t}`;C.ENABLE_CALLBACK&&C.emitter.emit("log","info",n),C.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}static w(e,t){(!e||C.FORCE_GLOBAL_TAG)&&(e=C.GLOBAL_TAG);let n=`[${e}] > ${t}`;C.ENABLE_CALLBACK&&C.emitter.emit("log","warn",n),C.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}static d(e,t){(!e||C.FORCE_GLOBAL_TAG)&&(e=C.GLOBAL_TAG);let n=`[${e}] > ${t}`;C.ENABLE_CALLBACK&&C.emitter.emit("log","debug",n),C.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}static v(e,t){(!e||C.FORCE_GLOBAL_TAG)&&(e=C.GLOBAL_TAG);let n=`[${e}] > ${t}`;C.ENABLE_CALLBACK&&C.emitter.emit("log","verbose",n),C.ENABLE_VERBOSE&&console.log(n)}}C.GLOBAL_TAG="flv.js",C.FORCE_GLOBAL_TAG=!1,C.ENABLE_ERROR=!0,C.ENABLE_INFO=!0,C.ENABLE_WARN=!0,C.ENABLE_DEBUG=!0,C.ENABLE_VERBOSE=!0,C.ENABLE_CALLBACK=!1,C.emitter=new(P());var _=C;class ue{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 de=ue;class N{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class J extends N{constructor(e){super(e)}get name(){return"IllegalStateException"}}class re extends N{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class Y extends N{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 we{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 ee={};function q(){let K=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(K)||/(opr)[\/]([\w.]+)/.exec(K)||/(chrome)[ \/]([\w.]+)/.exec(K)||/(iemobile)[\/]([\w.]+)/.exec(K)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(K)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(K)||/(webkit)[ \/]([\w.]+)/.exec(K)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(K)||/(msie) ([\w.]+)/.exec(K)||K.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(K)||K.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(K)||[],t=/(ipad)/.exec(K)||/(ipod)/.exec(K)||/(windows phone)/.exec(K)||/(iphone)/.exec(K)||/(kindle)/.exec(K)||/(android)/.exec(K)||/(windows)/.exec(K)||/(mac)/.exec(K)||/(linux)/.exec(K)||/(cros)/.exec(K)||[],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 ee)ee.hasOwnProperty(r)&&delete ee[r];Object.assign(ee,i)}q();var E=ee;class w extends we{static isSupported(){try{let e=E.msedge&&E.version.minor>=15048,t=E.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 g=i.headers;for(let oe in g)g.hasOwnProperty(oe)&&r.append(oe,g[oe])}let c={method:"GET",headers:r,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let g in this._config.headers)r.append(g,this._config.headers[g]);e.cors===!1&&(c.mode="same-origin"),e.withCredentials&&(c.credentials="include"),e.referrerPolicy&&(c.referrerPolicy=e.referrerPolicy),this._status=o.kConnecting,self.fetch(i.url,c).then(g=>{if(this._requestAbort){this._requestAbort=!1,this._status=o.kIdle;return}if(g.ok&&g.status>=200&&g.status<=299){if(g.url!==i.url&&this._onURLRedirect){let H=this._seekHandler.removeURLParameters(g.url);this._onURLRedirect(H)}let oe=g.headers.get("Content-Length");return oe!=null&&(this._contentLength=parseInt(oe),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,g.body.getReader())}else if(this._status=o.kError,this._onError)this._onError(G.HTTP_STATUS_CODE_INVALID,{code:g.status,msg:g.statusText});else throw new N("FetchStreamLoader: Http code invalid, "+g.status+" "+g.statusText)}).catch(g=>{if(this._status=o.kError,this._onError)this._onError(G.EXCEPTION,{code:-1,msg:g.message});else throw g})}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 N(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&&E.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 N(i.msg)})}}var b=w;class I extends we{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 _.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 c=i.headers;for(let g in c)c.hasOwnProperty(g)&&r.setRequestHeader(g,c[g])}if(typeof this._config.headers=="object"){let c=this._config.headers;for(let g in c)c.hasOwnProperty(g)&&r.setRequestHeader(g,c[g])}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 N("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 N(n.msg)}}var L=I;class O 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 c=this._reader=new self.MSStreamReader;c.onprogress=this._msrOnProgress.bind(this),c.onload=this._msrOnLoad.bind(this),c.onerror=this._msrOnError.bind(this);let g=this._xhr=new XMLHttpRequest;if(g.open("GET",r.url,!0),g.responseType="ms-stream",g.onreadystatechange=this._xhrOnReadyStateChange.bind(this),g.onerror=this._xhrOnError.bind(this),e.withCredentials&&(g.withCredentials=!0),typeof r.headers=="object"){let oe=r.headers;for(let H in oe)oe.hasOwnProperty(H)&&g.setRequestHeader(H,oe[H])}if(typeof this._config.headers=="object"){let oe=this._config.headers;for(let H in oe)oe.hasOwnProperty(H)&&g.setRequestHeader(H,oe[H])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,g.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 T=null;class A extends we{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer",e.responseType==="arraybuffer"}catch(e){return _.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 de,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 c=i.headers;for(let g in c)c.hasOwnProperty(g)&&r.setRequestHeader(g,c[g])}if(typeof this._config.headers=="object"){let c=this._config.headers;for(let g in c)c.hasOwnProperty(g)&&r.setRequestHeader(g,c[g])}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 N("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,c=n;if(e<t[0])return t[0];for(;r<=c;){if(i=r+Math.floor((c-r)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?r=i+1:c=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 c=this._normalizeSpeed(t);this._currentSpeedNormalized!==c&&(this._currentSpeedNormalized=c,this._currentChunkSizeKB=c)}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 N(n.msg)}}var Q=A;class ne extends we{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 N(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 N(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 N(t.msg)}}var pe=ne;class Ae{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 be=Ae;class Te{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 c=n.split("&");for(let g=0;g<c.length;g++){let oe=c[g].split("="),H=g>0;oe[0]!==this._startName&&oe[0]!==this._endName&&(H&&(r+="&"),r+=c[g])}}return r.length===0?t:t+"?"+r}}var Be=Te;class F{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 de,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===Q?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if(e.seekType==="range")this._seekHandler=new be(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new Be(t,n)}else if(e.seekType==="custom"){if(typeof e.customSeekHandler!="function")throw new re("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new re(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=pe;else if(b.isSupported())this._loaderClass=b;else if(L.isSupported())this._loaderClass=L;else if(Q.isSupported())this._loaderClass=Q;else throw new N("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 re("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,c=n;if(e<t[0])return t[0];for(;r<=c;){if(i=r+Math.floor((c-r)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?r=i+1:c=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 J("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 c=this._stashBuffer.slice(0,this._stashUsed),g=this._dispatchChunks(c,this._stashByteStart);if(g<c.byteLength){if(g>0){let oe=new Uint8Array(c,g);r.set(oe,0),this._stashUsed=oe.byteLength,this._stashByteStart+=g}}else this._stashUsed=0,this._stashByteStart+=g;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 c=this._dispatchChunks(e,t);if(c<e.byteLength){let g=e.byteLength-c;g>this._bufferSize&&(this._expandBuffer(g),r=new Uint8Array(this._stashBuffer,0,this._bufferSize)),r.set(new Uint8Array(e,c),0),this._stashUsed+=g,this._stashByteStart=t+c}}}else if(this._stashUsed===0){let r=this._dispatchChunks(e,t);if(r<e.byteLength){let c=e.byteLength-r;c>this._bufferSize&&this._expandBuffer(c),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,r),0),this._stashUsed+=c,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 c=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(c<this._stashUsed&&c>0){let g=new Uint8Array(this._stashBuffer,c);r.set(g,0)}this._stashUsed-=c,this._stashByteStart+=c}}_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)_.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),c=new Uint8Array(t,n);r.set(c,0),this._stashUsed=c.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(_.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&&(_.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 N("IOException: "+t.msg)}}var Ge=F;const We={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 Z(){return Object.assign({},We)}class he{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let e=new Ge({},Z()),t=e.loaderType;return e.destroy(),t=="fetch-stream-loader"||t=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let e=new Ge({},Z()),t=e.loaderType;return e.destroy(),t}static supportNativeMediaPlayback(e){he.videoElement==null&&(he.videoElement=window.document.createElement("video"));let t=he.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=he.supportMSEH264Playback(),e.networkStreamIO=he.supportNetworkStreamIO(),e.networkLoaderName=he.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=he.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=he.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=he.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var ie=he,se={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 ae{static get forceGlobalTag(){return _.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){_.FORCE_GLOBAL_TAG=e,ae._notifyChange()}static get globalTag(){return _.GLOBAL_TAG}static set globalTag(e){_.GLOBAL_TAG=e,ae._notifyChange()}static get enableAll(){return _.ENABLE_VERBOSE&&_.ENABLE_DEBUG&&_.ENABLE_INFO&&_.ENABLE_WARN&&_.ENABLE_ERROR}static set enableAll(e){_.ENABLE_VERBOSE=e,_.ENABLE_DEBUG=e,_.ENABLE_INFO=e,_.ENABLE_WARN=e,_.ENABLE_ERROR=e,ae._notifyChange()}static get enableDebug(){return _.ENABLE_DEBUG}static set enableDebug(e){_.ENABLE_DEBUG=e,ae._notifyChange()}static get enableVerbose(){return _.ENABLE_VERBOSE}static set enableVerbose(e){_.ENABLE_VERBOSE=e,ae._notifyChange()}static get enableInfo(){return _.ENABLE_INFO}static set enableInfo(e){_.ENABLE_INFO=e,ae._notifyChange()}static get enableWarn(){return _.ENABLE_WARN}static set enableWarn(e){_.ENABLE_WARN=e,ae._notifyChange()}static get enableError(){return _.ENABLE_ERROR}static set enableError(e){_.ENABLE_ERROR=e,ae._notifyChange()}static getConfig(){return{globalTag:_.GLOBAL_TAG,forceGlobalTag:_.FORCE_GLOBAL_TAG,enableVerbose:_.ENABLE_VERBOSE,enableDebug:_.ENABLE_DEBUG,enableInfo:_.ENABLE_INFO,enableWarn:_.ENABLE_WARN,enableError:_.ENABLE_ERROR,enableCallback:_.ENABLE_CALLBACK}}static applyConfig(e){_.GLOBAL_TAG=e.globalTag,_.FORCE_GLOBAL_TAG=e.forceGlobalTag,_.ENABLE_VERBOSE=e.enableVerbose,_.ENABLE_DEBUG=e.enableDebug,_.ENABLE_INFO=e.enableInfo,_.ENABLE_WARN=e.enableWarn,_.ENABLE_ERROR=e.enableError,_.ENABLE_CALLBACK=e.enableCallback}static _notifyChange(){let e=ae.emitter;if(e.listenerCount("change")>0){let t=ae.getConfig();e.emit("change",t)}}static registerListener(e){ae.emitter.addListener("change",e)}static removeListener(e){ae.emitter.removeListener("change",e)}static addLogListener(e){_.emitter.addListener("log",e),_.emitter.listenerCount("log")>0&&(_.ENABLE_CALLBACK=!0,ae._notifyChange())}static removeLogListener(e){_.emitter.removeListener("log",e),_.emitter.listenerCount("log")===0&&(_.ENABLE_CALLBACK=!1,ae._notifyChange())}}ae.emitter=new(P());var ve=ae;class Ue{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,c=0,g=i;for(t<e[0]&&(n=0,c=g+1);c<=g;)if(r=c+Math.floor((g-c)/2),r===i||t>=e[r]&&t<e[r+1]){n=r;break}else e[r]<t?c=r+1:g=r-1;return n}}var $e=Ue;function je(K,e,t){let n=K;if(e+t<n.length){for(;t--;)if((n[++e]&192)!==128)return!1;return!0}else return!1}function Xe(K){let e=[],t=K,n=0,i=K.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(je(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(je(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&&je(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 nt=Xe;let Me=function(){let K=new ArrayBuffer(2);return new DataView(K).setInt16(0,256,!0),new Int16Array(K)[0]===256}();class He{static parseScriptData(e,t,n){let i={};try{let r=He.parseValue(e,t,n),c=He.parseValue(e,t+r.size,n-r.size);i[r.data]=c.data}catch(r){_.e("AMF",r.toString())}return i}static parseObject(e,t,n){if(n<3)throw new J("Data not enough when parse ScriptDataObject");let i=He.parseString(e,t,n),r=He.parseValue(e,t+i.size,n-i.size),c=r.objectEnd;return{data:{name:i.data,value:r.data},size:i.size+r.size,objectEnd:c}}static parseVariable(e,t,n){return He.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new J("Data not enough when parse String");let r=new DataView(e,t,n).getUint16(0,!Me),c;return r>0?c=nt(new Uint8Array(e,t+2,r)):c="",{data:c,size:2+r}}static parseLongString(e,t,n){if(n<4)throw new J("Data not enough when parse LongString");let r=new DataView(e,t,n).getUint32(0,!Me),c;return r>0?c=nt(new Uint8Array(e,t+4,r)):c="",{data:c,size:4+r}}static parseDate(e,t,n){if(n<10)throw new J("Data size invalid when parse Date");let i=new DataView(e,t,n),r=i.getFloat64(0,!Me),c=i.getInt16(8,!Me);return r+=c*60*1e3,{data:new Date(r),size:10}}static parseValue(e,t,n){if(n<1)throw new J("Data not enough when parse Value");let i=new DataView(e,t,n),r=1,c=i.getUint8(0),g,oe=!1;try{switch(c){case 0:g=i.getFloat64(1,!Me),r+=8;break;case 1:{g=!!i.getUint8(1),r+=1;break}case 2:{let H=He.parseString(e,t+1,n-1);g=H.data,r+=H.size;break}case 3:{g={};let H=0;for((i.getUint32(n-4,!Me)&16777215)===9&&(H=3);r<n-4;){let fe=He.parseObject(e,t+r,n-r-H);if(fe.objectEnd)break;g[fe.data.name]=fe.data.value,r+=fe.size}r<=n-3&&(i.getUint32(r-1,!Me)&16777215)===9&&(r+=3);break}case 8:{g={},r+=4;let H=0;for((i.getUint32(n-4,!Me)&16777215)===9&&(H=3);r<n-8;){let fe=He.parseVariable(e,t+r,n-r-H);if(fe.objectEnd)break;g[fe.data.name]=fe.data.value,r+=fe.size}r<=n-3&&(i.getUint32(r-1,!Me)&16777215)===9&&(r+=3);break}case 9:g=void 0,r=1,oe=!0;break;case 10:{g=[];let H=i.getUint32(1,!Me);r+=4;for(let fe=0;fe<H;fe++){let Ve=He.parseValue(e,t+r,n-r);g.push(Ve.data),r+=Ve.size}break}case 11:{let H=He.parseDate(e,t+1,n-1);g=H.data,r+=H.size;break}case 12:{let H=He.parseString(e,t+1,n-1);g=H.data,r+=H.size;break}default:r=n,_.w("AMF","Unsupported AMF value type "+c)}}catch(H){_.e("AMF",H.toString())}return{data:g,size:r,objectEnd:oe}}}var Qe=He;class Je{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 J("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 re("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let c=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,c}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 et=Je;class B{static _ebsp2rbsp(e){let t=e,n=t.byteLength,i=new Uint8Array(n),r=0;for(let c=0;c<n;c++)c>=2&&t[c]===3&&t[c-1]===0&&t[c-2]===0||(i[r]=t[c],r++);return new Uint8Array(i.buffer,0,r)}static parseSPS(e){let t=B._ebsp2rbsp(e),n=new et(t);n.readByte();let i=n.readByte();n.readByte();let r=n.readByte();n.readUEG();let c=B.getProfileString(i),g=B.getLevelString(r),oe=1,H=420,fe=[0,420,422,444],Ve=8;if((i===100||i===110||i===122||i===244||i===44||i===83||i===86||i===118||i===128||i===138||i===144)&&(oe=n.readUEG(),oe===3&&n.readBits(1),oe<=3&&(H=fe[oe]),Ve=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let Ke=oe!==3?8:12;for(let Pe=0;Pe<Ke;Pe++)n.readBool()&&(Pe<6?B._skipScalingList(n,16):B._skipScalingList(n,64))}n.readUEG();let ze=n.readUEG();if(ze===0)n.readUEG();else if(ze===1){n.readBits(1),n.readSEG(),n.readSEG();let Ke=n.readUEG();for(let Pe=0;Pe<Ke;Pe++)n.readSEG()}let le=n.readUEG();n.readBits(1);let Ne=n.readUEG(),me=n.readUEG(),V=n.readBits(1);V===0&&n.readBits(1),n.readBits(1);let te=0,Ce=0,Le=0,Ye=0;n.readBool()&&(te=n.readUEG(),Ce=n.readUEG(),Le=n.readUEG(),Ye=n.readUEG());let Et=1,Ee=1,ge=0,p=!0,v=0,D=0;if(n.readBool()){if(n.readBool()){let Ke=n.readByte(),Pe=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],rt=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Ke>0&&Ke<16?(Et=Pe[Ke-1],Ee=rt[Ke-1]):Ke===255&&(Et=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 Ke=n.readBits(32),Pe=n.readBits(32);p=n.readBool(),v=Pe,D=Ke*2,ge=v/D}}let k=1;(Et!==1||Ee!==1)&&(k=Et/Ee);let X=0,z=0;if(oe===0)X=1,z=2-V;else{let Ke=oe===3?1:2,Pe=oe===1?2:1;X=Ke,z=Pe*(2-V)}let Se=(Ne+1)*16,Ze=(2-V)*((me+1)*16);Se-=(te+Ce)*X,Ze-=(Le+Ye)*z;let ke=Math.ceil(Se*k);return n.destroy(),n=null,{profile_string:c,level_string:g,bit_depth:Ve,ref_frames:le,chroma_format:H,chroma_format_string:B.getChromaFormatString(H),frame_rate:{fixed:p,fps:ge,fps_den:D,fps_num:v},sar_ratio:{width:Et,height:Ee},codec_size:{width:Se,height:Ze},present_size:{width:ke,height:Ze}}}static _skipScalingList(e,t){let n=8,i=8,r=0;for(let c=0;c<t;c++)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 y=B,h={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function f(K){return K>>>8&255|(K&255)<<8}function $(K){return(K&4278190080)>>>24|(K&16711680)>>>8|(K&65280)<<8|(K&255)<<24}function d(K,e){return K[e]<<24|K[e+1]<<16|K[e+2]<<8|K[e+3]}class m{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 $e,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,c=d(t,5);return c<9?n:{match:!0,consumed:c,dataOffset:c,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 $e}_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 J("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let n=0,i=this._littleEndian;if(t===0)if(e.byteLength>13)n=m.probe(e).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,t+n!==this._dataOffset&&_.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(e,n).getUint32(0,!i)!==0&&_.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 c=r.getUint8(0),g=r.getUint32(0,!i)&16777215;if(n+11+g+4>e.byteLength)break;if(c!==8&&c!==9&&c!==18){_.w(this.TAG,`Unsupported tag type ${c}, skipped`),n+=11+g+4;continue}let oe=r.getUint8(4),H=r.getUint8(5),fe=r.getUint8(6),Ve=r.getUint8(7),ze=fe|H<<8|oe<<16|Ve<<24;(r.getUint32(7,!i)&16777215)!==0&&_.w(this.TAG,"Meet tag which has StreamID != 0!");let Ne=n+11;switch(c){case 8:this._parseAudioData(e,Ne,g,ze);break;case 9:this._parseVideoData(e,Ne,g,ze,t+n);break;case 18:this._parseScriptData(e,Ne,g);break}let me=r.getUint32(11+g,!i);me!==11+g&&_.w(this.TAG,`Invalid PrevTagSize ${me}`),n+=11+g+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=Qe.parseScriptData(e,t,n);if(i.hasOwnProperty("onMetaData")){if(i.onMetaData==null||typeof i.onMetaData!="object"){_.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&_.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 c=Math.floor(r.duration*this._timescale);this._duration=c,this._mediaInfo.duration=c}}else this._mediaInfo.duration=0;if(typeof r.framerate=="number"){let c=Math.floor(r.framerate*1e3);if(c>0){let g=c/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=g,this._referenceFrameRate.fps_num=c,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=g}}if(typeof r.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let c=r.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(c),r.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=r,_.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){_.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let r=this._littleEndian,g=new DataView(e,t,n).getUint8(0),oe=g>>>4;if(oe!==2&&oe!==10){this._onError(h.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+oe);return}let H=0,fe=(g&12)>>>2;if(fe>=0&&fe<=4)H=this._flvSoundRateTable[fe];else{this._onError(h.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+fe);return}let Ve=(g&2)>>>1,ze=g&1,le=this._audioMetadata,Ne=this._audioTrack;if(le||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),le=this._audioMetadata={},le.type="audio",le.id=Ne.id,le.timescale=this._timescale,le.duration=this._duration,le.audioSampleRate=H,le.channelCount=ze===0?1:2),oe===10){let me=this._parseAACAudioData(e,t+1,n-1);if(me==null)return;if(me.packetType===0){le.config&&_.w(this.TAG,"Found another AudioSpecificConfig!");let V=me.data;le.audioSampleRate=V.samplingRate,le.channelCount=V.channelCount,le.codec=V.codec,le.originalCodec=V.originalCodec,le.config=V.config,le.refSampleDuration=1024/le.audioSampleRate*le.timescale,_.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",le);let te=this._mediaInfo;te.audioCodec=le.originalCodec,te.audioSampleRate=le.audioSampleRate,te.audioChannelCount=le.channelCount,te.hasVideo?te.videoCodec!=null&&(te.mimeType='video/x-flv; codecs="'+te.videoCodec+","+te.audioCodec+'"'):te.mimeType='video/x-flv; codecs="'+te.audioCodec+'"',te.isComplete()&&this._onMediaInfo(te)}else if(me.packetType===1){let V=this._timestampBase+i,te={unit:me.data,length:me.data.byteLength,dts:V,pts:V};Ne.samples.push(te),Ne.length+=me.data.length}else _.e(this.TAG,`Flv: Unsupported AAC data type ${me.packetType}`)}else if(oe===2){if(!le.codec){let Ce=this._parseMP3AudioData(e,t+1,n-1,!0);if(Ce==null)return;le.audioSampleRate=Ce.samplingRate,le.channelCount=Ce.channelCount,le.codec=Ce.codec,le.originalCodec=Ce.originalCodec,le.refSampleDuration=1152/le.audioSampleRate*le.timescale,_.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",le);let Le=this._mediaInfo;Le.audioCodec=le.codec,Le.audioSampleRate=le.audioSampleRate,Le.audioChannelCount=le.channelCount,Le.audioDataRate=Ce.bitRate,Le.hasVideo?Le.videoCodec!=null&&(Le.mimeType='video/x-flv; codecs="'+Le.videoCodec+","+Le.audioCodec+'"'):Le.mimeType='video/x-flv; codecs="'+Le.audioCodec+'"',Le.isComplete()&&this._onMediaInfo(Le)}let me=this._parseMP3AudioData(e,t+1,n-1,!1);if(me==null)return;let V=this._timestampBase+i,te={unit:me,length:me.byteLength,dts:V,pts:V};Ne.samples.push(te),Ne.length+=me.length}}_parseAACAudioData(e,t,n){if(n<=1){_.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,c=0,g=0,oe=null,H=0,fe=null;if(c=g=i[0]>>>3,H=(i[0]&7)<<1|i[1]>>>7,H<0||H>=this._mpegSamplingRates.length){this._onError(h.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Ve=this._mpegSamplingRates[H],ze=(i[1]&120)>>>3;if(ze<0||ze>=8){this._onError(h.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}c===5&&(fe=(i[1]&7)<<1|i[2]>>>7,oe=(i[2]&124)>>>2);let le=self.navigator.userAgent.toLowerCase();return le.indexOf("firefox")!==-1?H>=6?(c=5,r=new Array(4),fe=H-3):(c=2,r=new Array(2),fe=H):le.indexOf("android")!==-1?(c=2,r=new Array(2),fe=H):(c=5,fe=H,r=new Array(4),H>=6?fe=H-3:ze===1&&(c=2,r=new Array(2),fe=H)),r[0]=c<<3,r[0]|=(H&15)>>>1,r[1]=(H&15)<<7,r[1]|=(ze&15)<<3,c===5&&(r[1]|=(fe&15)>>>1,r[2]=(fe&1)<<7,r[2]|=8,r[3]=0),{config:r,samplingRate:Ve,channelCount:ze,codec:"mp4a.40."+c,originalCodec:"mp4a.40."+g}}_parseMP3AudioData(e,t,n,i){if(n<4){_.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let r=this._littleEndian,c=new Uint8Array(e,t,n),g=null;if(i){if(c[0]!==255)return;let oe=c[1]>>>3&3,H=(c[1]&6)>>1,fe=(c[2]&240)>>>4,Ve=(c[2]&12)>>>2,le=(c[3]>>>6&3)!==3?2:1,Ne=0,me=0,V=34,te="mp3";switch(oe){case 0:Ne=this._mpegAudioV25SampleRateTable[Ve];break;case 2:Ne=this._mpegAudioV20SampleRateTable[Ve];break;case 3:Ne=this._mpegAudioV10SampleRateTable[Ve];break}switch(H){case 1:V=34,fe<this._mpegAudioL3BitRateTable.length&&(me=this._mpegAudioL3BitRateTable[fe]);break;case 2:V=33,fe<this._mpegAudioL2BitRateTable.length&&(me=this._mpegAudioL2BitRateTable[fe]);break;case 3:V=32,fe<this._mpegAudioL1BitRateTable.length&&(me=this._mpegAudioL1BitRateTable[fe]);break}g={bitRate:me,samplingRate:Ne,channelCount:le,codec:te,originalCodec:te}}else g=c;return g}_parseVideoData(e,t,n,i,r){if(n<=1){_.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let c=new Uint8Array(e,t,n)[0],g=(c&240)>>>4,oe=c&15;if(oe!==7){this._onError(h.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${oe}`);return}this._parseAVCVideoPacket(e,t+1,n-1,i,r,g)}_parseAVCVideoPacket(e,t,n,i,r,c){if(n<4){_.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let g=this._littleEndian,oe=new DataView(e,t,n),H=oe.getUint8(0),Ve=(oe.getUint32(0,!g)&16777215)<<8>>8;if(H===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(H===1)this._parseAVCVideoData(e,t+4,n-4,i,r,c,Ve);else if(H!==2){this._onError(h.FORMAT_ERROR,`Flv: Invalid video packet type ${H}`);return}}_parseAVCDecoderConfigurationRecord(e,t,n){if(n<7){_.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let i=this._videoMetadata,r=this._videoTrack,c=this._littleEndian,g=new DataView(e,t,n);i?typeof i.avcc!="undefined"&&_.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 oe=g.getUint8(0),H=g.getUint8(1),fe=g.getUint8(2),Ve=g.getUint8(3);if(oe!==1||H===0){this._onError(h.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(g.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(h.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let ze=g.getUint8(5)&31;if(ze===0){this._onError(h.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else ze>1&&_.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${ze}`);let le=6;for(let me=0;me<ze;me++){let V=g.getUint16(le,!c);if(le+=2,V===0)continue;let te=new Uint8Array(e,t+le,V);le+=V;let Ce=y.parseSPS(te);if(me!==0)continue;i.codecWidth=Ce.codec_size.width,i.codecHeight=Ce.codec_size.height,i.presentWidth=Ce.present_size.width,i.presentHeight=Ce.present_size.height,i.profile=Ce.profile_string,i.level=Ce.level_string,i.bitDepth=Ce.bit_depth,i.chromaFormat=Ce.chroma_format,i.sarRatio=Ce.sar_ratio,i.frameRate=Ce.frame_rate,(Ce.frame_rate.fixed===!1||Ce.frame_rate.fps_num===0||Ce.frame_rate.fps_den===0)&&(i.frameRate=this._referenceFrameRate);let Le=i.frameRate.fps_den,Ye=i.frameRate.fps_num;i.refSampleDuration=i.timescale*(Le/Ye);let Mt=te.subarray(1,4),Et="avc1.";for(let ge=0;ge<3;ge++){let p=Mt[ge].toString(16);p.length<2&&(p="0"+p),Et+=p}i.codec=Et;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=Ce.ref_frames,Ee.chromaFormat=Ce.chroma_format_string,Ee.sarNum=i.sarRatio.width,Ee.sarDen=i.sarRatio.height,Ee.videoCodec=Et,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 Ne=g.getUint8(le);if(Ne===0){this._onError(h.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Ne>1&&_.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${Ne}`);le++;for(let me=0;me<Ne;me++){let V=g.getUint16(le,!c);le+=2,V!==0&&(le+=V)}i.avcc=new Uint8Array(n),i.avcc.set(new Uint8Array(e,t,n),0),_.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,c,g){let oe=this._littleEndian,H=new DataView(e,t,n),fe=[],Ve=0,ze=0;const le=this._naluLengthSize;let Ne=this._timestampBase+i,me=c===1;for(;ze<n;){if(ze+4>=n){_.w(this.TAG,`Malformed Nalu near timestamp ${Ne}, offset = ${ze}, dataSize = ${n}`);break}let V=H.getUint32(ze,!oe);if(le===3&&(V>>>=8),V>n-le){_.w(this.TAG,`Malformed Nalus near timestamp ${Ne}, NaluSize > DataSize!`);return}let te=H.getUint8(ze+le)&31;te===5&&(me=!0);let Ce=new Uint8Array(e,t+ze,le+V),Le={type:te,data:Ce};fe.push(Le),Ve+=Ce.byteLength,ze+=le+V}if(fe.length){let V=this._videoTrack,te={units:fe,length:Ve,isKeyframe:me,dts:Ne,cts:g,pts:Ne+g};me&&(te.fileposition=r),V.samples.push(te),V.length+=Ve}}}var x=m;class u{static init(){u.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 u.types)u.types.hasOwnProperty(t)&&(u.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=u.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 g=0;g<r;g++)t+=i[g].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 c=8;for(let g=0;g<r;g++)n.set(i[g],c),c+=i[g].byteLength;return n}static generateInitSegment(e){let t=u.box(u.types.ftyp,u.constants.FTYP),n=u.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=u.mvhd(e.timescale,e.duration),n=u.trak(e),i=u.mvex(e);return u.box(u.types.moov,t,n,i)}static mvhd(e,t){return u.box(u.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 u.box(u.types.trak,u.tkhd(e),u.mdia(e))}static tkhd(e){let t=e.id,n=e.duration,i=e.presentWidth,r=e.presentHeight;return u.box(u.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 u.box(u.types.mdia,u.mdhd(e),u.hdlr(e),u.minf(e))}static mdhd(e){let t=e.timescale,n=e.duration;return u.box(u.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=u.constants.HDLR_AUDIO:t=u.constants.HDLR_VIDEO,u.box(u.types.hdlr,t)}static minf(e){let t=null;return e.type==="audio"?t=u.box(u.types.smhd,u.constants.SMHD):t=u.box(u.types.vmhd,u.constants.VMHD),u.box(u.types.minf,t,u.dinf(),u.stbl(e))}static dinf(){return u.box(u.types.dinf,u.box(u.types.dref,u.constants.DREF))}static stbl(e){return u.box(u.types.stbl,u.stsd(e),u.box(u.types.stts,u.constants.STTS),u.box(u.types.stsc,u.constants.STSC),u.box(u.types.stsz,u.constants.STSZ),u.box(u.types.stco,u.constants.STCO))}static stsd(e){return e.type==="audio"?e.codec==="mp3"?u.box(u.types.stsd,u.constants.STSD_PREFIX,u.mp3(e)):u.box(u.types.stsd,u.constants.STSD_PREFIX,u.mp4a(e)):u.box(u.types.stsd,u.constants.STSD_PREFIX,u.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 u.box(u.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 u.box(u.types.mp4a,i,u.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 u.box(u.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 u.box(u.types.avc1,r,u.box(u.types.avcC,t))}static mvex(e){return u.box(u.types.mvex,u.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 u.box(u.types.trex,n)}static moof(e,t){return u.box(u.types.moof,u.mfhd(e.sequenceNumber),u.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 u.box(u.types.mfhd,t)}static traf(e,t){let n=e.id,i=u.box(u.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255])),r=u.box(u.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255])),c=u.sdtp(e),g=u.trun(e,c.byteLength+16+16+8+16+8+8);return u.box(u.types.traf,i,r,g,c)}static sdtp(e){let t=e.samples||[],n=t.length,i=new Uint8Array(4+n);for(let r=0;r<n;r++){let c=t[r].flags;i[r+4]=c.isLeading<<6|c.dependsOn<<4|c.isDependedOn<<2|c.hasRedundancy}return u.box(u.types.sdtp,i)}static trun(e,t){let n=e.samples||[],i=n.length,r=12+16*i,c=new Uint8Array(r);t+=8+r,c.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 g=0;g<i;g++){let oe=n[g].duration,H=n[g].size,fe=n[g].flags,Ve=n[g].cts;c.set([oe>>>24&255,oe>>>16&255,oe>>>8&255,oe&255,H>>>24&255,H>>>16&255,H>>>8&255,H&255,fe.isLeading<<2|fe.dependsOn,fe.isDependedOn<<6|fe.hasRedundancy<<4|fe.isNonSync,0,0,Ve>>>24&255,Ve>>>16&255,Ve>>>8&255,Ve&255],12+16*g)}return u.box(u.types.trun,c)}static mdat(e){return u.box(u.types.mdat,e)}}u.init();var R=u;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 ce=W;class De{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 Fe{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 _e{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,c=0,g=i;for(e<t[0].dts&&(n=0,c=g+1);c<=g;)if(r=c+Math.floor((g-c)/2),r===i||e>=t[r].dts&&e<t[r+1].dts){n=r;break}else t[r].dts<e?c=r+1:g=r-1;return this._list[n]}}class Oe{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,c=n,g=0;if(e<t[0].originalBeginDts)return g=-1,g;for(;r<=c;)if(i=r+Math.floor((c-r)/2),i===n||e>t[i].lastSample.originalDts&&e<t[i+1].originalBeginDts){g=i;break}else t[i].originalBeginDts<e?r=i+1:c=i-1;return g}_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 xe{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 Oe("audio"),this._videoSegmentInfoList=new Oe("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(E.chrome&&(E.version.major<50||E.version.major===50&&E.version.build<2661)),this._fillSilentAfterSeek=E.msedge||E.msie,this._mp3UseMpegAudio=!E.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 J("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=R.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=R.generateInitSegment(t);else return;if(!this._onInitSegment)throw new J("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,c=-1,g=-1,oe=-1,H=this._audioMeta.refSampleDuration,fe=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Ve=this._dtsBaseInited&&this._audioNextDts===void 0,ze=!1;if(!i||i.length===0||i.length===1&&!t)return;let le=0,Ne=null,me=0;fe?(le=0,me=n.length):(le=8,me=8+n.length);let V=null;if(i.length>1&&(V=i.pop(),me-=V.length),this._audioStashedLastSample!=null){let Ee=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(Ee),me+=Ee.length}V!=null&&(this._audioStashedLastSample=V);let te=i[0].dts-this._dtsBase;if(this._audioNextDts)r=te-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())r=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(ze=!0);else{let Ee=this._audioSegmentInfoList.getLastSampleBefore(te);if(Ee!=null){let ge=te-(Ee.originalDts+Ee.duration);ge<=3&&(ge=0);let p=Ee.dts+Ee.duration+ge;r=te-p}else r=0}if(ze){let Ee=te-r,ge=this._videoSegmentInfoList.getLastSegmentBefore(te);if(ge!=null&&ge.beginDts<Ee){let p=ce.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(p){let v=ge.beginDts,D=Ee-ge.beginDts;_.v(this.TAG,`InsertPrefixSilentAudio: dts: ${v}, duration: ${D}`),i.unshift({unit:p,dts:v,pts:v}),me+=p.byteLength}}else ze=!1}let Ce=[];for(let Ee=0;Ee<i.length;Ee++){let ge=i[Ee],p=ge.unit,v=ge.dts-this._dtsBase,D=v-r;c===-1&&(c=D);let U=0;Ee!==i.length-1?U=i[Ee+1].dts-this._dtsBase-r-D:V!=null?U=V.dts-this._dtsBase-r-D:Ce.length>=1?U=Ce[Ce.length-1].duration:U=Math.floor(H);let k=!1,X=null;if(U>H*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!E.safari){k=!0;let z=Math.abs(U-H),Se=Math.ceil(z/H),Ze=D+H;_.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
dts: ${D+U} ms, expected: ${D+Math.round(H)} ms, delta: ${Math.round(z)} ms, generate: ${Se} frames`);let ke=ce.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);ke==null&&(_.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),ke=p),X=[];for(let Pe=0;Pe<Se;Pe++){let rt=Math.round(Ze);if(X.length>0){let st=X[X.length-1];st.duration=rt-st.dts}let ht={dts:rt,pts:rt,cts:0,unit:ke,size:ke.byteLength,duration:0,originalDts:v,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};X.push(ht),me+=ht.size,Ze+=H}let Ke=X[X.length-1];Ke.duration=D+U-Ke.dts,U=Math.round(H)}Ce.push({dts:D,pts:D,cts:0,unit:ge.unit,size:ge.unit.byteLength,duration:U,originalDts:v,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),k&&Ce.push.apply(Ce,X)}fe?Ne=new Uint8Array(me):(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(R.types.mdat,4));for(let Ee=0;Ee<Ce.length;Ee++){let ge=Ce[Ee].unit;Ne.set(ge,le),le+=ge.byteLength}let Le=Ce[Ce.length-1];g=Le.dts+Le.duration,this._audioNextDts=g;let Ye=new Fe;Ye.beginDts=c,Ye.endDts=g,Ye.beginPts=c,Ye.endPts=g,Ye.originalBeginDts=Ce[0].originalDts,Ye.originalEndDts=Le.originalDts+Le.duration,Ye.firstSample=new De(Ce[0].dts,Ce[0].pts,Ce[0].duration,Ce[0].originalDts,!1),Ye.lastSample=new De(Le.dts,Le.pts,Le.duration,Le.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Ye),n.samples=Ce,n.sequenceNumber++;let Mt=null;fe?Mt=new Uint8Array:Mt=R.moof(n,c),n.samples=[],n.length=0;let Et={type:"audio",data:this._mergeBoxes(Mt,Ne).buffer,sampleCount:Ce.length,info:Ye};fe&&Ve&&(Et.timestampOffset=c),this._onMediaSegment("audio",Et)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,i=n.samples,r,c=-1,g=-1,oe=-1,H=-1;if(!i||i.length===0||i.length===1&&!t)return;let fe=8,Ve=null,ze=8+e.length,le=null;if(i.length>1&&(le=i.pop(),ze-=le.length),this._videoStashedLastSample!=null){let Le=this._videoStashedLastSample;this._videoStashedLastSample=null,i.unshift(Le),ze+=Le.length}le!=null&&(this._videoStashedLastSample=le);let Ne=i[0].dts-this._dtsBase;if(this._videoNextDts)r=Ne-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())r=0;else{let Le=this._videoSegmentInfoList.getLastSampleBefore(Ne);if(Le!=null){let Ye=Ne-(Le.originalDts+Le.duration);Ye<=3&&(Ye=0);let Mt=Le.dts+Le.duration+Ye;r=Ne-Mt}else r=0}let me=new Fe,V=[];for(let Le=0;Le<i.length;Le++){let Ye=i[Le],Mt=Ye.dts-this._dtsBase,Et=Ye.isKeyframe,Ee=Mt-r,ge=Ye.cts,p=Ee+ge;c===-1&&(c=Ee,oe=p);let v=0;if(Le!==i.length-1?v=i[Le+1].dts-this._dtsBase-r-Ee:le!=null?v=le.dts-this._dtsBase-r-Ee:V.length>=1?v=V[V.length-1].duration:v=Math.floor(this._videoMeta.refSampleDuration),Et){let D=new De(Ee,p,v,Ye.dts,!0);D.fileposition=Ye.fileposition,me.appendSyncPoint(D)}V.push({dts:Ee,pts:p,cts:ge,units:Ye.units,size:Ye.length,isKeyframe:Et,duration:v,originalDts:Mt,flags:{isLeading:0,dependsOn:Et?2:1,isDependedOn:Et?1:0,hasRedundancy:0,isNonSync:Et?0:1}})}Ve=new Uint8Array(ze),Ve[0]=ze>>>24&255,Ve[1]=ze>>>16&255,Ve[2]=ze>>>8&255,Ve[3]=ze&255,Ve.set(R.types.mdat,4);for(let Le=0;Le<V.length;Le++){let Ye=V[Le].units;for(;Ye.length;){let Et=Ye.shift().data;Ve.set(Et,fe),fe+=Et.byteLength}}let te=V[V.length-1];if(g=te.dts+te.duration,H=te.pts+te.duration,this._videoNextDts=g,me.beginDts=c,me.endDts=g,me.beginPts=oe,me.endPts=H,me.originalBeginDts=V[0].originalDts,me.originalEndDts=te.originalDts+te.duration,me.firstSample=new De(V[0].dts,V[0].pts,V[0].duration,V[0].originalDts,V[0].isKeyframe),me.lastSample=new De(te.dts,te.pts,te.duration,te.originalDts,te.isKeyframe),this._isLive||this._videoSegmentInfoList.append(me),n.samples=V,n.sequenceNumber++,this._forceFirstIDR){let Le=V[0].flags;Le.dependsOn=2,Le.isNonSync=0}let Ce=R.moof(n,c);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Ce,Ve).buffer,sampleCount:V.length,info:me})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var ot=xe,j={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 bt{constructor(e,t){this.TAG="TransmuxingController",this._emitter=new(P()),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 Ge(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=x.probe(e)).match){this._demuxer=new x(n,this._config),this._remuxer||(this._remuxer=new ot(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,_.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(j.DEMUX_ERROR,h.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,$e.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,$e.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(j.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(j.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(j.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(e){let t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}_onIORecoveredEarlyEof(){this._emitter.emit(j.RECOVERED_EARLY_EOF)}_onIOException(e,t){_.e(this.TAG,`IOException: type = ${e}, code = ${t.code}, msg = ${t.msg}`),this._emitter.emit(j.IO_ERROR,e,t),this._disableStatisticsReporter()}_onDemuxException(e,t){_.e(this.TAG,`DemuxException: type = ${e}, info = ${t}`),this._emitter.emit(j.DEMUX_ERROR,e,t)}_onRemuxerInitSegmentArrival(e,t){this._emitter.emit(j.INIT_SEGMENT,e,t)}_onRemuxerMediaSegmentArrival(e,t){if(this._pendingSeekTime==null&&(this._emitter.emit(j.MEDIA_SEGMENT,e,t),this._pendingResolveSeekPoint!=null&&e==="video")){let n=t.info.syncPoints,i=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,E.safari&&n.length>0&&n[0].originalDts===i&&(i=n[0].pts),this._emitter.emit(j.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(j.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(j.STATISTICS_INFO,e)}}var ct=bt,it=function(K){let e="TransmuxingWorker",t=null,n=me.bind(this);S.install(),K.addEventListener("message",function(V){switch(V.data.cmd){case"init":t=new ct(V.data.param[0],V.data.param[1]),t.on(j.IO_ERROR,ze.bind(this)),t.on(j.DEMUX_ERROR,le.bind(this)),t.on(j.INIT_SEGMENT,i.bind(this)),t.on(j.MEDIA_SEGMENT,r.bind(this)),t.on(j.LOADING_COMPLETE,c.bind(this)),t.on(j.RECOVERED_EARLY_EOF,g.bind(this)),t.on(j.MEDIA_INFO,oe.bind(this)),t.on(j.METADATA_ARRIVED,H.bind(this)),t.on(j.SCRIPTDATA_ARRIVED,fe.bind(this)),t.on(j.STATISTICS_INFO,Ve.bind(this)),t.on(j.RECOMMEND_SEEKPOINT,Ne.bind(this));break;case"destroy":t&&(t.destroy(),t=null),K.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(V.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let te=V.data.param;ve.applyConfig(te),te.enableCallback===!0?ve.addLogListener(n):ve.removeLogListener(n);break}}});function i(V,te){let Ce={msg:j.INIT_SEGMENT,data:{type:V,data:te}};K.postMessage(Ce,[te.data])}function r(V,te){let Ce={msg:j.MEDIA_SEGMENT,data:{type:V,data:te}};K.postMessage(Ce,[te.data])}function c(){let V={msg:j.LOADING_COMPLETE};K.postMessage(V)}function g(){let V={msg:j.RECOVERED_EARLY_EOF};K.postMessage(V)}function oe(V){let te={msg:j.MEDIA_INFO,data:V};K.postMessage(te)}function H(V){let te={msg:j.METADATA_ARRIVED,data:V};K.postMessage(te)}function fe(V){let te={msg:j.SCRIPTDATA_ARRIVED,data:V};K.postMessage(te)}function Ve(V){let te={msg:j.STATISTICS_INFO,data:V};K.postMessage(te)}function ze(V,te){K.postMessage({msg:j.IO_ERROR,data:{type:V,info:te}})}function le(V,te){K.postMessage({msg:j.DEMUX_ERROR,data:{type:V,info:te}})}function Ne(V){K.postMessage({msg:j.RECOMMEND_SEEKPOINT,data:V})}function me(V,te){K.postMessage({msg:"logcat_callback",data:{type:V,logcat:te}})}};class Rt{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(P()),t.enableWorker&&typeof Worker!="undefined")try{let n=l(82059);this._worker=n(it),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)},ve.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:ve.getConfig()})}catch(n){_.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new ct(e,t)}else this._controller=new ct(e,t);if(this._controller){let n=this._controller;n.on(j.IO_ERROR,this._onIOError.bind(this)),n.on(j.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(j.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(j.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(j.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(j.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(j.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(j.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(j.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(j.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(j.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),ve.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(j.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(j.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(j.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(j.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(j.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(j.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(j.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(j.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(j.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(j.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(j.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 j.INIT_SEGMENT:case j.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case j.LOADING_COMPLETE:case j.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case j.MEDIA_INFO:Object.setPrototypeOf(n,$e.prototype),this._emitter.emit(t.msg,n);break;case j.METADATA_ARRIVED:case j.SCRIPTDATA_ARRIVED:case j.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case j.IO_ERROR:case j.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case j.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":_.emitter.emit("log",n.type,n.logcat);break;default:break}}}var Ft=Rt,Ct={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Kt{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new(P()),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 _e}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 J("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){_.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){_.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(_.v(this.TAG,"Received Initialization Segment, mimeType: "+i),this._lastInitSegments[n.type]=n,i!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])_.v(this.TAG,`Notice: ${n.type} mimeType changed, origin: ${this._mimeTypes[n.type]}, target: ${i}`);else{r=!0;try{let c=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);c.addEventListener("error",this.e.onSourceBufferError),c.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(c){_.e(this.TAG,c.message),this._emitter.emit(Ct.ERROR,{code:c.code,msg:c.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(),E.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){_.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 c=n.buffered.start(r),g=n.buffered.end(r);this._pendingRemoveRanges[t].push({start:c,end:g})}if(n.updating||this._doRemoveRanges(),E.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 c=0;c<i.length;c++){let g=i.start(c),oe=i.end(c);if(g<=e&&e<oe+3){if(e-g>=this._config.autoCleanupMaxBackwardDuration){r=!0;let H=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:g,end:H})}}else oe<e&&(r=!0,this._pendingRemoveRanges[t].push({start:g,end:oe}))}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)&&(_.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&&(_.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(Ct.BUFFER_FULL),this._isBufferFull=!0):(_.e(this.TAG,i.message),this._emitter.emit(Ct.ERROR,{code:i.code,msg:i.message}))}}}_onSourceOpen(){if(_.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(Ct.SOURCE_OPEN)}_onSourceEnded(){_.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){_.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(Ct.UPDATE_END)}_onSourceBufferError(e){_.e(this.TAG,`SourceBuffer Error: ${e}`)}}var zt=Kt;const Ie={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},qe={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:h.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:h.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:h.CODEC_UNSUPPORTED};class Bt{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(P()),this._config=Z(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()!=="flv")throw new re("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=E.chrome&&(E.version.major<50||E.version.major===50&&E.version.build<2661);this._alwaysSeekKeyframe=!!(n||E.msedge||E.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===se.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(se.MEDIA_INFO,this.mediaInfo)}):e===se.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(se.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 zt(this._config),this._msectl.on(Ct.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Ct.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Ct.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Ct.ERROR,t=>{this._emitter.emit(se.ERROR,Ie.MEDIA_ERROR,qe.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 J("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new J("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 Ft(this._mediaDataSource,this._config),this._transmuxer.on(j.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(j.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&&(_.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(j.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(se.LOADING_COMPLETE)}),this._transmuxer.on(j.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(se.RECOVERED_EARLY_EOF)}),this._transmuxer.on(j.IO_ERROR,(e,t)=>{this._emitter.emit(se.ERROR,Ie.NETWORK_ERROR,e,t)}),this._transmuxer.on(j.DEMUX_ERROR,(e,t)=>{this._emitter.emit(se.ERROR,Ie.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(j.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(se.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(j.METADATA_ARRIVED,e=>{this._emitter.emit(se.METADATA_ARRIVED,e)}),this._transmuxer.on(j.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(se.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(j.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(se.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(j.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 c=e.start(r),g=e.end(r);if(c<=t&&t<g){n=c,i=g;break}}i>=t+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(_.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){_.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),c=t.end(i);if(e>=r&&e<c){e>=c-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(_.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||E.safari)&&(n=!0,i=E.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)&&(_.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||E.safari){this._requestSetTime=!0,this._mediaElement.currentTime=E.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 pt=Bt;class $t{constructor(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(P()),this._config=Z(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()==="flv")throw new re("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new re(`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===se.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(se.MEDIA_INFO,this.mediaInfo)}):e===se.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(se.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 J("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(se.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(se.STATISTICS_INFO,this.statisticsInfo)}}var Pt=$t;S.install();function St(K,e){let t=K;if(t==null||typeof t!="object")throw new re("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new re("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new pt(t,e);default:return new Pt(t,e)}}function Ot(){return ie.supportMSEH264Playback()}function tt(){return ie.getFeatureList()}let dt={};dt.createPlayer=St,dt.isSupported=Ot,dt.getFeatureList=tt,dt.BaseLoader=we,dt.LoaderStatus=o,dt.LoaderErrors=G,dt.Events=se,dt.ErrorTypes=Ie,dt.ErrorDetails=qe,dt.FlvPlayer=pt,dt.NativePlayer=Pt,dt.LoggingControl=ve,Object.defineProperty(dt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var dn=dt},91857:function(ut,Re,l){"use strict";var a=l(59301),S=l(38819),M=l(92310),P=l.n(M),C=l(31561),_=l(70425),ue=l(18929),de=l(2738),N=l(79676),J=l(53487),re=l(92343),Y=l(36355),o=l(20834),G=l(40875),we=l(88088),ee=l(47211);const q=null,E=L=>{const{menu:O,arrow:T,prefixCls:A,children:Q,trigger:ne,disabled:pe,dropdownRender:Ae,getPopupContainer:be,overlayClassName:Te,rootClassName:Be,open:F,onOpenChange:Ge,visible:We,onVisibleChange:Z,mouseEnterDelay:he=.15,mouseLeaveDelay:ie=.1,autoAdjustOverflow:ye=!0,placement:se="",overlay:ae,transitionName:ve}=L,{getPopupContainer:Ue,getPrefixCls:$e,direction:je}=a.useContext(Y.E_),Xe=a.useMemo(()=>{const R=$e();return ve!==void 0?ve:se.includes("top")?`${R}-slide-down`:`${R}-slide-up`},[$e,se,ve]),nt=a.useMemo(()=>se?se.includes("Center")?se.slice(0,se.indexOf("Center")):se:je==="rtl"?"bottomRight":"bottomLeft",[se,je]),Me=$e("dropdown",A),[He,Qe]=(0,ee.Z)(Me),[,Je]=(0,we.Z)(),et=a.Children.only(Q),B=(0,re.Tm)(et,{className:P()(`${Me}-trigger`,{[`${Me}-rtl`]:je==="rtl"},et.props.className),disabled:pe}),y=pe?[]:ne;let s;y&&y.includes("contextMenu")&&(s=!0);const[h,f]=(0,ue.Z)(!1,{value:F!=null?F:We}),$=(0,_.useEvent)(R=>{Ge==null||Ge(R),Z==null||Z(R),f(R)}),d=P()(Te,Be,Qe,{[`${Me}-rtl`]:je==="rtl"}),m=(0,N.Z)({arrowPointAtCenter:typeof T=="object"&&T.pointAtCenter,autoAdjustOverflow:ye,offset:Je.marginXXS,arrowWidth:T?Je.sizePopupArrow:0,borderRadius:Je.borderRadius}),x=a.useCallback(()=>{f(!1)},[]),u=()=>{let R;return O!=null&&O.items?R=a.createElement(o.default,Object.assign({},O)):typeof ae=="function"?R=ae():R=ae,Ae&&(R=Ae(R)),R=a.Children.only(typeof R=="string"?a.createElement("span",null,R):R),a.createElement(G.J,{prefixCls:`${Me}-menu`,expandIcon:a.createElement("span",{className:`${Me}-menu-submenu-arrow`},a.createElement(S.Z,{className:`${Me}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:x,validator:W=>{let{mode:ce}=W}},R)};return He(a.createElement(C.Z,Object.assign({alignPoint:s},(0,de.Z)(L,["rootClassName"]),{mouseEnterDelay:he,mouseLeaveDelay:ie,visible:h,builtinPlacements:m,arrow:!!T,overlayClassName:d,prefixCls:Me,getPopupContainer:be||Ue,transitionName:Xe,trigger:y,overlay:u,placement:nt,onVisibleChange:$}),B))};function w(L){return Object.assign(Object.assign({},L),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const b=(0,J.Z)(E,"dropdown",L=>L,w),I=L=>a.createElement(b,Object.assign({},L),a.createElement("span",null));E._InternalPanelDoNotUseOrYouWillBeFired=I,Re.Z=E},38854:function(ut,Re,l){"use strict";l.d(Re,{Z:function(){return we}});var a=l(91857),S=l(92310),M=l.n(S),P=l(59301),C=l(18785),_=l(3113),ue=l(36355),de=l(81327),N=l(33234),J=l(47211),re=function(ee,q){var E={};for(var w in ee)Object.prototype.hasOwnProperty.call(ee,w)&&q.indexOf(w)<0&&(E[w]=ee[w]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,w=Object.getOwnPropertySymbols(ee);b<w.length;b++)q.indexOf(w[b])<0&&Object.prototype.propertyIsEnumerable.call(ee,w[b])&&(E[w[b]]=ee[w[b]]);return E};const Y=ee=>{const{getPopupContainer:q,getPrefixCls:E,direction:w}=P.useContext(ue.E_),{prefixCls:b,type:I="default",danger:L,disabled:O,loading:T,onClick:A,htmlType:Q,children:ne,className:pe,menu:Ae,arrow:be,autoFocus:Te,overlay:Be,trigger:F,align:Ge,open:We,onOpenChange:Z,placement:he,getPopupContainer:ie,href:ye,icon:se=P.createElement(C.Z,null),title:ae,buttonsRender:ve=u=>u,mouseEnterDelay:Ue,mouseLeaveDelay:$e,overlayClassName:je,overlayStyle:Xe,destroyPopupOnHide:nt,dropdownRender:Me}=ee,He=re(ee,["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"]),Qe=E("dropdown",b),Je=`${Qe}-button`,[et,B]=(0,J.Z)(Qe),y={menu:Ae,arrow:be,autoFocus:Te,align:Ge,disabled:O,trigger:O?[]:F,onOpenChange:Z,getPopupContainer:ie||q,mouseEnterDelay:Ue,mouseLeaveDelay:$e,overlayClassName:je,overlayStyle:Xe,destroyPopupOnHide:nt,dropdownRender:Me},{compactSize:s,compactItemClassnames:h}=(0,N.ri)(Qe,w),f=M()(Je,h,pe,B);"overlay"in ee&&(y.overlay=Be),"open"in ee&&(y.open=We),"placement"in ee?y.placement=he:y.placement=w==="rtl"?"bottomLeft":"bottomRight";const $=P.createElement(_.ZP,{type:I,danger:L,disabled:O,loading:T,onClick:A,htmlType:Q,href:ye,title:ae},ne),d=P.createElement(_.ZP,{type:I,danger:L,icon:se}),[m,x]=ve([$,d]);return et(P.createElement(de.Z.Compact,Object.assign({className:f,size:s,block:!0},He),m,P.createElement(a.Z,Object.assign({},y),x)))};Y.__ANT_BUTTON=!0;var o=Y;const G=a.Z;G.Button=o;var we=G},47211:function(ut,Re,l){"use strict";l.d(Re,{Z:function(){return re}});var a=l(17313),S=l(13826),M=l(92899),P=l(29878),C=l(19447),_=l(83116),ue=l(37613),N=Y=>{const{componentCls:o,menuCls:G,colorError:we,colorTextLightSolid:ee}=Y,q=`${G}-item`;return{[`${o}, ${o}-menu-submenu`]:{[`${G} ${q}`]:{[`&${q}-danger:not(${q}-disabled)`]:{color:we,"&:hover":{color:ee,backgroundColor:we}}}}}};const J=Y=>{const{componentCls:o,menuCls:G,zIndexPopup:we,dropdownArrowDistance:ee,sizePopupArrow:q,antCls:E,iconCls:w,motionDurationMid:b,dropdownPaddingVertical:I,fontSize:L,dropdownEdgeChildPadding:O,colorTextDisabled:T,fontSizeIcon:A,controlPaddingHorizontal:Q,colorBgElevated:ne}=Y;return[{[o]:Object.assign(Object.assign({},(0,a.Wf)(Y)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:we,display:"block","&::before":{position:"absolute",insetBlock:-ee+q/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${E}-btn`]:{[`& > ${w}-down, & > ${E}-btn-icon > ${w}-down`]:{fontSize:A}},[`${o}-wrap`]:{position:"relative",[`${E}-btn > ${w}-down`]:{fontSize:A},[`${w}-down::before`]:{transition:`transform ${b}`}},[`${o}-wrap-open`]:{[`${w}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${E}-slide-down-enter${E}-slide-down-enter-active${o}-placement-bottomLeft,
&${E}-slide-down-appear${E}-slide-down-appear-active${o}-placement-bottomLeft,
&${E}-slide-down-enter${E}-slide-down-enter-active${o}-placement-bottom,
&${E}-slide-down-appear${E}-slide-down-appear-active${o}-placement-bottom,
&${E}-slide-down-enter${E}-slide-down-enter-active${o}-placement-bottomRight,
&${E}-slide-down-appear${E}-slide-down-appear-active${o}-placement-bottomRight`]:{animationName:S.fJ},[`&${E}-slide-up-enter${E}-slide-up-enter-active${o}-placement-topLeft,
&${E}-slide-up-appear${E}-slide-up-appear-active${o}-placement-topLeft,
&${E}-slide-up-enter${E}-slide-up-enter-active${o}-placement-top,
&${E}-slide-up-appear${E}-slide-up-appear-active${o}-placement-top,
&${E}-slide-up-enter${E}-slide-up-enter-active${o}-placement-topRight,
&${E}-slide-up-appear${E}-slide-up-appear-active${o}-placement-topRight`]:{animationName:S.Qt},[`&${E}-slide-down-leave${E}-slide-down-leave-active${o}-placement-bottomLeft,
&${E}-slide-down-leave${E}-slide-down-leave-active${o}-placement-bottom,
&${E}-slide-down-leave${E}-slide-down-leave-active${o}-placement-bottomRight`]:{animationName:S.Uw},[`&${E}-slide-up-leave${E}-slide-up-leave-active${o}-placement-topLeft,
&${E}-slide-up-leave${E}-slide-up-leave-active${o}-placement-top,
&${E}-slide-up-leave${E}-slide-up-leave-active${o}-placement-topRight`]:{animationName:S.ly}})},(0,C.ZP)(Y,{colorBg:ne,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${o} ${G}`]:{position:"relative",margin:0},[`${G}-submenu-popup`]:{position:"absolute",zIndex:we,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${o}, ${o}-menu-submenu`]:{[G]:Object.assign(Object.assign({padding:O,listStyleType:"none",backgroundColor:ne,backgroundClip:"padding-box",borderRadius:Y.borderRadiusLG,outline:"none",boxShadow:Y.boxShadowSecondary},(0,a.Qy)(Y)),{[`${G}-item-group-title`]:{padding:`${I}px ${Q}px`,color:Y.colorTextDescription,transition:`all ${b}`},[`${G}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${G}-item-icon`]:{minWidth:L,marginInlineEnd:Y.marginXS,fontSize:Y.fontSizeSM},[`${G}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${b}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${G}-item, ${G}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${I}px ${Q}px`,color:Y.colorText,fontWeight:"normal",fontSize:L,lineHeight:Y.lineHeight,cursor:"pointer",transition:`all ${b}`,borderRadius:Y.borderRadiusSM,"&:hover, &-active":{backgroundColor:Y.controlItemBgHover}},(0,a.Qy)(Y)),{"&-selected":{color:Y.colorPrimary,backgroundColor:Y.controlItemBgActive,"&:hover, &-active":{backgroundColor:Y.controlItemBgActiveHover}},"&-disabled":{color:T,cursor:"not-allowed","&:hover":{color:T,backgroundColor:ne,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:A,fontStyle:"normal"}}}),[`${G}-item-group-list`]:{margin:`0 ${Y.marginXS}px`,padding:0,listStyle:"none"},[`${G}-submenu-title`]:{paddingInlineEnd:Q+Y.fontSizeSM},[`${G}-submenu-vertical`]:{position:"relative"},[`${G}-submenu${G}-submenu-disabled ${o}-menu-submenu-title`]:{[`&, ${o}-menu-submenu-arrow-icon`]:{color:T,backgroundColor:ne,cursor:"not-allowed"}},[`${G}-submenu-selected ${o}-menu-submenu-title`]:{color:Y.colorPrimary}})}},[(0,S.oN)(Y,"slide-up"),(0,S.oN)(Y,"slide-down"),(0,M.Fm)(Y,"move-up"),(0,M.Fm)(Y,"move-down"),(0,P._y)(Y,"zoom-big")]]};var re=(0,_.Z)("Dropdown",(Y,o)=>{let{rootPrefixCls:G}=o;const{marginXXS:we,sizePopupArrow:ee,controlHeight:q,fontSize:E,lineHeight:w,paddingXXS:b,componentCls:I,borderRadiusLG:L}=Y,O=(q-E*w)/2,{dropdownArrowOffset:T}=(0,C.fS)({contentRadius:L}),A=(0,ue.TS)(Y,{menuCls:`${I}-menu`,rootPrefixCls:G,dropdownArrowDistance:ee/2+we,dropdownArrowOffset:T,dropdownPaddingVertical:O,dropdownEdgeChildPadding:b});return[J(A),N(A)]},Y=>({zIndexPopup:Y.zIndexPopupBase+50}))},45818:function(ut,Re,l){"use strict";l.d(Re,{D:function(){return b},Z:function(){return O}});var a=l(54476),S=l(59301),M={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"},P=M,C=l(7657),_=function(A,Q){return S.createElement(C.Z,(0,a.Z)({},A,{ref:Q,icon:P}))},ue=S.forwardRef(_),de=ue,N=l(33853),J=l(38819),re=l(92310),Y=l.n(re),o=l(2738),we=T=>!isNaN(parseFloat(T))&&isFinite(T),ee=l(36355),q=l(84966),E=function(T,A){var Q={};for(var ne in T)Object.prototype.hasOwnProperty.call(T,ne)&&A.indexOf(ne)<0&&(Q[ne]=T[ne]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,ne=Object.getOwnPropertySymbols(T);pe<ne.length;pe++)A.indexOf(ne[pe])<0&&Object.prototype.propertyIsEnumerable.call(T,ne[pe])&&(Q[ne[pe]]=T[ne[pe]]);return Q};const w={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},b=S.createContext({}),I=(()=>{let T=0;return function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return T+=1,`${A}${T}`}})();var O=S.forwardRef((T,A)=>{const{prefixCls:Q,className:ne,trigger:pe,children:Ae,defaultCollapsed:be=!1,theme:Te="dark",style:Be={},collapsible:F=!1,reverseArrow:Ge=!1,width:We=200,collapsedWidth:Z=80,zeroWidthTriggerStyle:he,breakpoint:ie,onCollapse:ye,onBreakpoint:se}=T,ae=E(T,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ve}=(0,S.useContext)(q.Gs),[Ue,$e]=(0,S.useState)("collapsed"in T?T.collapsed:be),[je,Xe]=(0,S.useState)(!1);(0,S.useEffect)(()=>{"collapsed"in T&&$e(T.collapsed)},[T.collapsed]);const nt=(B,y)=>{"collapsed"in T||$e(B),ye==null||ye(B,y)},Me=(0,S.useRef)();Me.current=B=>{Xe(B.matches),se==null||se(B.matches),Ue!==B.matches&&nt(B.matches,"responsive")},(0,S.useEffect)(()=>{function B(s){return Me.current(s)}let y;if(typeof window!="undefined"){const{matchMedia:s}=window;if(s&&ie&&ie in w){y=s(`(max-width: ${w[ie]})`);try{y.addEventListener("change",B)}catch(h){y.addListener(B)}B(y)}}return()=>{try{y==null||y.removeEventListener("change",B)}catch(s){y==null||y.removeListener(B)}}},[ie]),(0,S.useEffect)(()=>{const B=I("ant-sider-");return ve.addSider(B),()=>ve.removeSider(B)},[]);const He=()=>{nt(!Ue,"clickTrigger")},{getPrefixCls:Qe}=(0,S.useContext)(ee.E_),Je=()=>{const B=Qe("layout-sider",Q),y=(0,o.Z)(ae,["collapsed"]),s=Ue?Z:We,h=we(s)?`${s}px`:String(s),f=parseFloat(String(Z||0))===0?S.createElement("span",{onClick:He,className:Y()(`${B}-zero-width-trigger`,`${B}-zero-width-trigger-${Ge?"right":"left"}`),style:he},pe||S.createElement(de,null)):null,m={expanded:Ge?S.createElement(J.Z,null):S.createElement(N.Z,null),collapsed:Ge?S.createElement(N.Z,null):S.createElement(J.Z,null)}[Ue?"collapsed":"expanded"],x=pe!==null?f||S.createElement("div",{className:`${B}-trigger`,onClick:He,style:{width:h}},pe||m):null,u=Object.assign(Object.assign({},Be),{flex:`0 0 ${h}`,maxWidth:h,minWidth:h,width:h}),R=Y()(B,`${B}-${Te}`,{[`${B}-collapsed`]:!!Ue,[`${B}-has-trigger`]:F&&pe!==null&&!f,[`${B}-below`]:!!je,[`${B}-zero-width`]:parseFloat(h)===0},ne);return S.createElement("aside",Object.assign({className:R},y,{style:u,ref:A}),S.createElement("div",{className:`${B}-children`},Ae),F||je&&f?x:null)},et=S.useMemo(()=>({siderCollapsed:Ue}),[Ue]);return S.createElement(b.Provider,{value:et},Je())})},84966:function(ut,Re,l){"use strict";l.d(Re,{VY:function(){return b},$_:function(){return w},h4:function(){return E},Gs:function(){return o},ZP:function(){return I}});var a=l(94480),S=l(92310),M=l.n(S),P=l(2738),C=l(59301),_=l(36355),ue=l(83116),N=L=>{const{componentCls:O,bodyBg:T,lightSiderBg:A,lightTriggerBg:Q,lightTriggerColor:ne}=L;return{[`${O}-sider-light`]:{background:A,[`${O}-sider-trigger`]:{color:ne,background:Q},[`${O}-sider-zero-width-trigger`]:{color:ne,background:Q,border:`1px solid ${T}`,borderInlineStart:0}}}};const J=L=>{const{antCls:O,componentCls:T,colorText:A,triggerColor:Q,footerBg:ne,triggerBg:pe,headerHeight:Ae,headerPadding:be,headerColor:Te,footerPadding:Be,triggerHeight:F,zeroTriggerHeight:Ge,zeroTriggerWidth:We,motionDurationMid:Z,motionDurationSlow:he,fontSize:ie,borderRadius:ye,bodyBg:se,headerBg:ae,siderBg:ve}=L;return{[T]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:se,"&, *":{boxSizing:"border-box"},[`&${T}-has-sider`]:{flexDirection:"row",[`> ${T}, > ${T}-content`]:{width:0}},[`${T}-header, &${T}-footer`]:{flex:"0 0 auto"},[`${T}-sider`]:{position:"relative",minWidth:0,background:ve,transition:`all ${Z}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${O}-menu${O}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:F},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:F,color:Q,lineHeight:`${F}px`,textAlign:"center",background:pe,cursor:"pointer",transition:`all ${Z}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ae,insetInlineEnd:-We,zIndex:1,width:We,height:Ge,color:Q,fontSize:L.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ve,borderStartStartRadius:0,borderStartEndRadius:ye,borderEndEndRadius:ye,borderEndStartRadius:0,cursor:"pointer",transition:`background ${he} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${he}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-We,borderStartStartRadius:ye,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ye}}}}},N(L)),{"&-rtl":{direction:"rtl"}}),[`${T}-header`]:{height:Ae,padding:be,color:Te,lineHeight:`${Ae}px`,background:ae,[`${O}-menu`]:{lineHeight:"inherit"}},[`${T}-footer`]:{padding:Be,color:A,fontSize:ie,background:ne},[`${T}-content`]:{flex:"auto",minHeight:0}}};var re=(0,ue.Z)("Layout",L=>[J(L)],L=>{const{colorBgLayout:O,controlHeight:T,controlHeightLG:A,colorText:Q,controlHeightSM:ne,marginXXS:pe,colorTextLightSolid:Ae,colorBgContainer:be}=L,Te=A*1.25;return{colorBgHeader:"#001529",colorBgBody:O,colorBgTrigger:"#002140",bodyBg:O,headerBg:"#001529",headerHeight:T*2,headerPadding:`0 ${Te}px`,headerColor:Q,footerPadding:`${ne}px ${Te}px`,footerBg:O,siderBg:"#001529",triggerHeight:A+pe*2,triggerBg:"#002140",triggerColor:Ae,zeroTriggerWidth:A,zeroTriggerHeight:A,lightSiderBg:be,lightTriggerBg:be,lightTriggerColor:Q}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Y=function(L,O){var T={};for(var A in L)Object.prototype.hasOwnProperty.call(L,A)&&O.indexOf(A)<0&&(T[A]=L[A]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,A=Object.getOwnPropertySymbols(L);Q<A.length;Q++)O.indexOf(A[Q])<0&&Object.prototype.propertyIsEnumerable.call(L,A[Q])&&(T[A[Q]]=L[A[Q]]);return T};const o=C.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function G(L){let{suffixCls:O,tagName:T,displayName:A}=L;return Q=>C.forwardRef((pe,Ae)=>C.createElement(Q,Object.assign({ref:Ae,suffixCls:O,tagName:T},pe)))}const we=C.forwardRef((L,O)=>{const{prefixCls:T,suffixCls:A,className:Q,tagName:ne}=L,pe=Y(L,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ae}=C.useContext(_.E_),be=Ae("layout",T),[Te,Be]=re(be),F=A?`${be}-${A}`:be;return Te(C.createElement(ne,Object.assign({className:M()(T||F,Q,Be),ref:O},pe)))}),ee=C.forwardRef((L,O)=>{const{direction:T}=C.useContext(_.E_),[A,Q]=C.useState([]),{prefixCls:ne,className:pe,rootClassName:Ae,children:be,hasSider:Te,tagName:Be,style:F}=L,Ge=Y(L,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),We=(0,P.Z)(Ge,["suffixCls"]),{getPrefixCls:Z,layout:he}=C.useContext(_.E_),ie=Z("layout",ne),[ye,se]=re(ie),ae=M()(ie,{[`${ie}-has-sider`]:typeof Te=="boolean"?Te:A.length>0,[`${ie}-rtl`]:T==="rtl"},he==null?void 0:he.className,pe,Ae,se),ve=C.useMemo(()=>({siderHook:{addSider:Ue=>{Q($e=>[].concat((0,a.Z)($e),[Ue]))},removeSider:Ue=>{Q($e=>$e.filter(je=>je!==Ue))}}}),[]);return ye(C.createElement(o.Provider,{value:ve},C.createElement(Be,Object.assign({ref:O,className:ae,style:Object.assign(Object.assign({},he==null?void 0:he.style),F)},We),be)))}),q=G({tagName:"div",displayName:"Layout"})(ee),E=G({suffixCls:"header",tagName:"header",displayName:"Header"})(we),w=G({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(we),b=G({suffixCls:"content",tagName:"main",displayName:"Content"})(we);var I=q},40875:function(ut,Re,l){"use strict";l.d(Re,{J:function(){return _}});var a=l(59301),S=l(33234),M=l(70425),P=function(ue,de){var N={};for(var J in ue)Object.prototype.hasOwnProperty.call(ue,J)&&de.indexOf(J)<0&&(N[J]=ue[J]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,J=Object.getOwnPropertySymbols(ue);re<J.length;re++)de.indexOf(J[re])<0&&Object.prototype.propertyIsEnumerable.call(ue,J[re])&&(N[J[re]]=ue[J[re]]);return N};const C=a.createContext(null),_=a.forwardRef((ue,de)=>{const{children:N}=ue,J=P(ue,["children"]),re=a.useContext(C),Y=a.useMemo(()=>Object.assign(Object.assign({},re),J),[re,J.prefixCls,J.mode,J.selectable]);return a.createElement(C.Provider,{value:Y},a.createElement(S.BR,null,(0,M.supportNodeRef)(N)?a.cloneElement(N,{ref:de}):N))});Re.Z=C},20834:function(ut,Re,l){"use strict";l.d(Re,{default:function(){return et}});var a=l(15285),S=l(59301),M=l(45818),P=l(92310),C=l.n(P),_=l(36355),ue=function(B,y){var s={};for(var h in B)Object.prototype.hasOwnProperty.call(B,h)&&y.indexOf(h)<0&&(s[h]=B[h]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,h=Object.getOwnPropertySymbols(B);f<h.length;f++)y.indexOf(h[f])<0&&Object.prototype.propertyIsEnumerable.call(B,h[f])&&(s[h[f]]=B[h[f]]);return s},N=B=>{const{prefixCls:y,className:s,dashed:h}=B,f=ue(B,["prefixCls","className","dashed"]),{getPrefixCls:$}=S.useContext(_.E_),d=$("menu",y),m=C()({[`${d}-item-divider-dashed`]:!!h},s);return S.createElement(a.iz,Object.assign({className:m},f))},J=l(11592),re=l(2738),Y=l(6848),o=l(92343),we=(0,S.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),q=B=>{var y;const{className:s,children:h,icon:f,title:$,danger:d}=B,{prefixCls:m,firstLevel:x,direction:u,disableMenuItemTitleTooltip:R,inlineCollapsed:W}=S.useContext(we),ce=ot=>{const _t=S.createElement("span",{className:`${m}-title-content`},h);return(!f||(0,o.l$)(h)&&h.type==="span")&&h&&ot&&x&&typeof h=="string"?S.createElement("div",{className:`${m}-inline-collapsed-noicon`},h.charAt(0)):_t},{siderCollapsed:De}=S.useContext(M.D);let Fe=$;typeof $=="undefined"?Fe=x?h:"":$===!1&&(Fe="");const _e={title:Fe};!De&&!W&&(_e.title=null,_e.open=!1);const Oe=(0,J.Z)(h).length;let xe=S.createElement(a.ck,Object.assign({},(0,re.Z)(B,["title","icon","danger"]),{className:C()({[`${m}-item-danger`]:d,[`${m}-item-only-child`]:(f?Oe+1:Oe)===1},s),title:typeof $=="string"?$:void 0}),(0,o.Tm)(f,{className:C()((0,o.l$)(f)?(y=f.props)===null||y===void 0?void 0:y.className:"",`${m}-item-icon`)}),ce(W));return R||(xe=S.createElement(Y.Z,Object.assign({},_e,{placement:u==="rtl"?"left":"right",overlayClassName:`${m}-inline-collapsed-tooltip`}),xe)),xe},w=B=>{var y;const{popupClassName:s,icon:h,title:f,theme:$}=B,d=S.useContext(we),{prefixCls:m,inlineCollapsed:x,theme:u}=d,R=(0,a.Xl)();let W;if(!h)W=x&&!R.length&&f&&typeof f=="string"?S.createElement("div",{className:`${m}-inline-collapsed-noicon`},f.charAt(0)):S.createElement("span",{className:`${m}-title-content`},f);else{const De=(0,o.l$)(f)&&f.type==="span";W=S.createElement(S.Fragment,null,(0,o.Tm)(h,{className:C()((0,o.l$)(h)?(y=h.props)===null||y===void 0?void 0:y.className:"",`${m}-item-icon`)}),De?f:S.createElement("span",{className:`${m}-title-content`},f))}const ce=S.useMemo(()=>Object.assign(Object.assign({},d),{firstLevel:!1}),[d]);return S.createElement(we.Provider,{value:ce},S.createElement(a.Wd,Object.assign({},(0,re.Z)(B,["icon"]),{title:W,popupClassName:C()(m,s,`${m}-${$||u}`)})))},b=l(18785),I=l(70425),L=l(62892),O=l(40875),T=function(B,y){var s={};for(var h in B)Object.prototype.hasOwnProperty.call(B,h)&&y.indexOf(h)<0&&(s[h]=B[h]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,h=Object.getOwnPropertySymbols(B);f<h.length;f++)y.indexOf(h[f])<0&&Object.prototype.propertyIsEnumerable.call(B,h[f])&&(s[h[f]]=B[h[f]]);return s};function A(B){return(B||[]).map((y,s)=>{if(y&&typeof y=="object"){const h=y,{label:f,children:$,key:d,type:m}=h,x=T(h,["label","children","key","type"]),u=d!=null?d:`tmp-${s}`;return $||m==="group"?m==="group"?S.createElement(a.BW,Object.assign({key:u},x,{title:f}),A($)):S.createElement(w,Object.assign({key:u},x,{title:f}),A($)):m==="divider"?S.createElement(N,Object.assign({key:u},x)):S.createElement(q,Object.assign({key:u},x),f)}return null}).filter(y=>y)}function Q(B){return S.useMemo(()=>B&&A(B),[B])}var ne=l(64993),pe=l(17313),Ae=l(8378),be=l(13826),Te=l(29878),Be=l(83116),F=l(37613),We=B=>{const{componentCls:y,motionDurationSlow:s,horizontalLineHeight:h,colorSplit:f,lineWidth:$,lineType:d,itemPaddingInline:m}=B;return{[`${y}-horizontal`]:{lineHeight:h,border:0,borderBottom:`${$}px ${d} ${f}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${y}-item, ${y}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:m},[`> ${y}-item:hover,
> ${y}-item-active,
> ${y}-submenu ${y}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${y}-item, ${y}-submenu-title`]:{transition:[`border-color ${s}`,`background ${s}`].join(",")},[`${y}-submenu-arrow`]:{display:"none"}}}},he=B=>{let{componentCls:y,menuArrowOffset:s}=B;return{[`${y}-rtl`]:{direction:"rtl"},[`${y}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${y}-rtl${y}-vertical,
${y}-submenu-rtl ${y}-vertical`]:{[`${y}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${s})`},"&::after":{transform:`rotate(45deg) translateY(${s})`}}}}};const ie=B=>Object.assign({},(0,pe.oN)(B));var se=(B,y)=>{const{componentCls:s,itemColor:h,itemSelectedColor:f,groupTitleColor:$,itemBg:d,subMenuItemBg:m,itemSelectedBg:x,activeBarHeight:u,activeBarWidth:R,activeBarBorderWidth:W,motionDurationSlow:ce,motionEaseInOut:De,motionEaseOut:Fe,itemPaddingInline:_e,motionDurationMid:Oe,itemHoverColor:xe,lineType:ot,colorSplit:_t,itemDisabledColor:j,dangerItemColor:bt,dangerItemHoverColor:ct,dangerItemSelectedColor:vt,dangerItemActiveBg:it,dangerItemSelectedBg:Rt,itemHoverBg:Ft,itemActiveBg:Dt,menuSubMenuBg:Ct,horizontalItemSelectedColor:Kt,horizontalItemSelectedBg:zt,horizontalItemBorderRadius:Ie,horizontalItemHoverBg:qe,popupBg:Bt}=B;return{[`${s}-${y}, ${s}-${y} > ${s}`]:{color:h,background:d,[`&${s}-root:focus-visible`]:Object.assign({},ie(B)),[`${s}-item-group-title`]:{color:$},[`${s}-submenu-selected`]:{[`> ${s}-submenu-title`]:{color:f}},[`${s}-item-disabled, ${s}-submenu-disabled`]:{color:`${j} !important`},[`${s}-item:not(${s}-item-selected):not(${s}-submenu-selected)`]:{[`&:hover, > ${s}-submenu-title:hover`]:{color:xe}},[`&:not(${s}-horizontal)`]:{[`${s}-item:not(${s}-item-selected)`]:{"&:hover":{backgroundColor:Ft},"&:active":{backgroundColor:Dt}},[`${s}-submenu-title`]:{"&:hover":{backgroundColor:Ft},"&:active":{backgroundColor:Dt}}},[`${s}-item-danger`]:{color:bt,[`&${s}-item:hover`]:{[`&:not(${s}-item-selected):not(${s}-submenu-selected)`]:{color:ct}},[`&${s}-item:active`]:{background:it}},[`${s}-item a`]:{"&, &:hover":{color:"inherit"}},[`${s}-item-selected`]:{color:f,[`&${s}-item-danger`]:{color:vt},"a, a:hover":{color:"inherit"}},[`& ${s}-item-selected`]:{backgroundColor:x,[`&${s}-item-danger`]:{backgroundColor:Rt}},[`${s}-item, ${s}-submenu-title`]:{[`&:not(${s}-item-disabled):focus-visible`]:Object.assign({},ie(B))},[`&${s}-submenu > ${s}`]:{backgroundColor:Ct},[`&${s}-popup > ${s}`]:{backgroundColor:Bt},[`&${s}-horizontal`]:Object.assign(Object.assign({},y==="dark"?{borderBottom:0}:{}),{[`> ${s}-item, > ${s}-submenu`]:{top:W,marginTop:-W,marginBottom:0,borderRadius:Ie,"&::after":{position:"absolute",insetInline:_e,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${ce} ${De}`,content:'""'},"&:hover, &-active, &-open":{background:qe,"&::after":{borderBottomWidth:u,borderBottomColor:Kt}},"&-selected":{color:Kt,backgroundColor:zt,"&:hover":{backgroundColor:zt},"&::after":{borderBottomWidth:u,borderBottomColor:Kt}}}}),[`&${s}-root`]:{[`&${s}-inline, &${s}-vertical`]:{borderInlineEnd:`${W}px ${ot} ${_t}`}},[`&${s}-inline`]:{[`${s}-sub${s}-inline`]:{background:m},[`${s}-item, ${s}-submenu-title`]:W&&R?{width:`calc(100% + ${W}px)`}:{},[`${s}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${R}px solid ${f}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Oe} ${Fe}`,`opacity ${Oe} ${Fe}`].join(","),content:'""'},[`&${s}-item-danger`]:{"&::after":{borderInlineEndColor:vt}}},[`${s}-selected, ${s}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Oe} ${De}`,`opacity ${Oe} ${De}`].join(",")}}}}}};const ae=B=>{const{componentCls:y,itemHeight:s,itemMarginInline:h,padding:f,menuArrowSize:$,marginXS:d,itemMarginBlock:m}=B,x=f+$+d;return{[`${y}-item`]:{position:"relative",overflow:"hidden"},[`${y}-item, ${y}-submenu-title`]:{height:s,lineHeight:`${s}px`,paddingInline:f,overflow:"hidden",textOverflow:"ellipsis",marginInline:h,marginBlock:m,width:`calc(100% - ${h*2}px)`},[`> ${y}-item,
> ${y}-submenu > ${y}-submenu-title`]:{height:s,lineHeight:`${s}px`},[`${y}-item-group-list ${y}-submenu-title,
${y}-submenu-title`]:{paddingInlineEnd:x}}};var Ue=B=>{const{componentCls:y,iconCls:s,itemHeight:h,colorTextLightSolid:f,dropdownWidth:$,controlHeightLG:d,motionDurationMid:m,motionEaseOut:x,paddingXL:u,itemMarginInline:R,fontSizeLG:W,motionDurationSlow:ce,paddingXS:De,boxShadowSecondary:Fe,collapsedWidth:_e,collapsedIconSize:Oe}=B,xe={height:h,lineHeight:`${h}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[y]:{"&-inline, &-vertical":Object.assign({[`&${y}-root`]:{boxShadow:"none"}},ae(B))},[`${y}-submenu-popup`]:{[`${y}-vertical`]:Object.assign(Object.assign({},ae(B)),{boxShadow:Fe})}},{[`${y}-submenu-popup ${y}-vertical${y}-sub`]:{minWidth:$,maxHeight:`calc(100vh - ${d*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${y}-inline`]:{width:"100%",[`&${y}-root`]:{[`${y}-item, ${y}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ce}`,`background ${ce}`,`padding ${m} ${x}`].join(","),[`> ${y}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${y}-sub${y}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${y}-submenu > ${y}-submenu-title`]:xe,[`& ${y}-item-group-title`]:{paddingInlineStart:u}},[`${y}-item`]:xe}},{[`${y}-inline-collapsed`]:{width:_e,[`&${y}-root`]:{[`${y}-item, ${y}-submenu ${y}-submenu-title`]:{[`> ${y}-inline-collapsed-noicon`]:{fontSize:W,textAlign:"center"}}},[`> ${y}-item,
> ${y}-item-group > ${y}-item-group-list > ${y}-item,
> ${y}-item-group > ${y}-item-group-list > ${y}-submenu > ${y}-submenu-title,
> ${y}-submenu > ${y}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${W/2}px - ${R}px)`,textOverflow:"clip",[`
${y}-submenu-arrow,
${y}-submenu-expand-icon
`]:{opacity:0},[`${y}-item-icon, ${s}`]:{margin:0,fontSize:Oe,lineHeight:`${h}px`,"+ span":{display:"inline-block",opacity:0}}},[`${y}-item-icon, ${s}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${y}-item-icon, ${s}`]:{display:"none"},"a, a:hover":{color:f}},[`${y}-item-group-title`]:Object.assign(Object.assign({},pe.vS),{paddingInline:De})}}]};const $e=B=>{const{componentCls:y,motionDurationSlow:s,motionDurationMid:h,motionEaseInOut:f,motionEaseOut:$,iconCls:d,iconSize:m,iconMarginInlineEnd:x}=B;return{[`${y}-item, ${y}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${s}`,`background ${s}`,`padding ${s} ${f}`].join(","),[`${y}-item-icon, ${d}`]:{minWidth:m,fontSize:m,transition:[`font-size ${h} ${$}`,`margin ${s} ${f}`,`color ${s}`].join(","),"+ span":{marginInlineStart:x,opacity:1,transition:[`opacity ${s} ${f}`,`margin ${s}`,`color ${s}`].join(",")}},[`${y}-item-icon`]:Object.assign({},(0,pe.Ro)()),[`&${y}-item-only-child`]:{[`> ${d}, > ${y}-item-icon`]:{marginInlineEnd:0}}},[`${y}-item-disabled, ${y}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${y}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},je=B=>{const{componentCls:y,motionDurationSlow:s,motionEaseInOut:h,borderRadius:f,menuArrowSize:$,menuArrowOffset:d}=B;return{[`${y}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:B.margin,width:$,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${s} ${h}, opacity ${s}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:$*.6,height:$*.15,backgroundColor:"currentcolor",borderRadius:f,transition:[`background ${s} ${h}`,`transform ${s} ${h}`,`top ${s} ${h}`,`color ${s} ${h}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${d})`},"&::after":{transform:`rotate(-45deg) translateY(${d})`}}}}},Xe=B=>{const{antCls:y,componentCls:s,fontSize:h,motionDurationSlow:f,motionDurationMid:$,motionEaseInOut:d,paddingXS:m,padding:x,colorSplit:u,lineWidth:R,zIndexPopup:W,borderRadiusLG:ce,subMenuItemBorderRadius:De,menuArrowSize:Fe,menuArrowOffset:_e,lineType:Oe,menuPanelMaskInset:xe,groupTitleLineHeight:ot,groupTitleFontSize:_t}=B;return[{"":{[`${s}`]:Object.assign(Object.assign({},(0,pe.dF)()),{"&-hidden":{display:"none"}})},[`${s}-submenu-hidden`]:{display:"none"}},{[s]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(B)),(0,pe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:h,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${f} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${s}-item`]:{flex:"none"}},[`${s}-item, ${s}-submenu, ${s}-submenu-title`]:{borderRadius:B.itemBorderRadius},[`${s}-item-group-title`]:{padding:`${m}px ${x}px`,fontSize:_t,lineHeight:ot,transition:`all ${f}`},[`&-horizontal ${s}-submenu`]:{transition:[`border-color ${f} ${d}`,`background ${f} ${d}`].join(",")},[`${s}-submenu, ${s}-submenu-inline`]:{transition:[`border-color ${f} ${d}`,`background ${f} ${d}`,`padding ${$} ${d}`].join(",")},[`${s}-submenu ${s}-sub`]:{cursor:"initial",transition:[`background ${f} ${d}`,`padding ${f} ${d}`].join(",")},[`${s}-title-content`]:{transition:`color ${f}`},[`${s}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${s}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:Oe,borderWidth:0,borderTopWidth:R,marginBlock:R,padding:0,"&-dashed":{borderStyle:"dashed"}}}),$e(B)),{[`${s}-item-group`]:{[`${s}-item-group-list`]:{margin:0,padding:0,[`${s}-item, ${s}-submenu-title`]:{paddingInline:`${h*2}px ${x}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:W,borderRadius:ce,boxShadow:"none",transformOrigin:"0 0",[`&${s}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${xe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:xe},"\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:B.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:B.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:B.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:B.paddingXS},[`> ${s}`]:Object.assign(Object.assign(Object.assign({borderRadius:ce},$e(B)),je(B)),{[`${s}-item, ${s}-submenu > ${s}-submenu-title`]:{borderRadius:De},[`${s}-submenu-title::after`]:{transition:`transform ${f} ${d}`}})}}),je(B)),{[`&-inline-collapsed ${s}-submenu-arrow,
&-inline ${s}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${_e})`},"&::after":{transform:`rotate(45deg) translateX(-${_e})`}},[`${s}-submenu-open${s}-submenu-inline > ${s}-submenu-title > ${s}-submenu-arrow`]:{transform:`translateY(-${Fe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${_e})`},"&::before":{transform:`rotate(45deg) translateX(${_e})`}}})},{[`${y}-layout-header`]:{[s]:{lineHeight:"inherit"}}}]};var nt=(B,y)=>(0,Be.Z)("Menu",h=>{if(y===!1)return[];const{colorBgElevated:f,colorPrimary:$,colorTextLightSolid:d,controlHeightLG:m,fontSize:x,darkItemColor:u,darkDangerItemColor:R,darkItemBg:W,darkSubMenuItemBg:ce,darkItemSelectedColor:De,darkItemSelectedBg:Fe,darkDangerItemSelectedBg:_e,darkItemHoverBg:Oe,darkGroupTitleColor:xe,darkItemHoverColor:ot,darkItemDisabledColor:_t,darkDangerItemHoverColor:j,darkDangerItemSelectedColor:bt,darkDangerItemActiveBg:ct}=h,vt=x/7*5,it=(0,F.TS)(h,{menuArrowSize:vt,menuHorizontalHeight:m*1.15,menuArrowOffset:`${vt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:f}),Rt=(0,F.TS)(it,{itemColor:u,itemHoverColor:ot,groupTitleColor:xe,itemSelectedColor:De,itemBg:W,popupBg:W,subMenuItemBg:ce,itemActiveBg:"transparent",itemSelectedBg:Fe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Oe,itemDisabledColor:_t,dangerItemColor:R,dangerItemHoverColor:j,dangerItemSelectedColor:bt,dangerItemActiveBg:ct,dangerItemSelectedBg:_e,menuSubMenuBg:ce,horizontalItemSelectedColor:d,horizontalItemSelectedBg:$});return[Xe(it),We(it),Ue(it),se(it,"light"),se(Rt,"dark"),he(it),(0,Ae.Z)(it),(0,be.oN)(it,"slide-up"),(0,be.oN)(it,"slide-down"),(0,Te._y)(it,"zoom-big")]},h=>{const{colorPrimary:f,colorError:$,colorTextDisabled:d,colorErrorBg:m,colorText:x,colorTextDescription:u,colorBgContainer:R,colorFillAlter:W,colorFillContent:ce,lineWidth:De,lineWidthBold:Fe,controlItemBgActive:_e,colorBgTextHover:Oe,controlHeightLG:xe,lineHeight:ot,colorBgElevated:_t,marginXXS:j,padding:bt,fontSize:ct,controlHeightSM:vt,fontSizeLG:it,colorTextLightSolid:Rt,colorErrorHover:Ft}=h,Dt=new ne.C(Rt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:h.zIndexPopupBase+50,radiusItem:h.borderRadiusLG,itemBorderRadius:h.borderRadiusLG,radiusSubMenuItem:h.borderRadiusSM,subMenuItemBorderRadius:h.borderRadiusSM,colorItemText:x,itemColor:x,colorItemTextHover:x,itemHoverColor:x,colorItemTextHoverHorizontal:f,horizontalItemHoverColor:f,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:f,itemSelectedColor:f,colorItemTextSelectedHorizontal:f,horizontalItemSelectedColor:f,colorItemBg:R,itemBg:R,colorItemBgHover:Oe,itemHoverBg:Oe,colorItemBgActive:ce,itemActiveBg:_e,colorSubItemBg:W,subMenuItemBg:W,colorItemBgSelected:_e,itemSelectedBg:_e,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Fe,activeBarHeight:Fe,colorActiveBarBorderSize:De,activeBarBorderWidth:De,colorItemTextDisabled:d,itemDisabledColor:d,colorDangerItemText:$,dangerItemColor:$,colorDangerItemTextHover:$,dangerItemHoverColor:$,colorDangerItemTextSelected:$,dangerItemSelectedColor:$,colorDangerItemBgActive:m,dangerItemActiveBg:m,colorDangerItemBgSelected:m,dangerItemSelectedBg:m,itemMarginInline:h.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:xe,groupTitleLineHeight:ot,collapsedWidth:xe*2,popupBg:_t,itemMarginBlock:j,itemPaddingInline:bt,horizontalLineHeight:`${xe*1.15}px`,iconSize:ct,iconMarginInlineEnd:vt-ct,collapsedIconSize:it,groupTitleFontSize:ct,darkItemDisabledColor:new ne.C(Rt).setAlpha(.25).toRgbString(),darkItemColor:Dt,darkDangerItemColor:$,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Rt,darkItemSelectedBg:f,darkDangerItemSelectedBg:$,darkItemHoverBg:"transparent",darkGroupTitleColor:Dt,darkItemHoverColor:Rt,darkDangerItemHoverColor:Ft,darkDangerItemSelectedColor:Rt,darkDangerItemActiveBg:$}},{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"]]})(B),Me=function(B,y){var s={};for(var h in B)Object.prototype.hasOwnProperty.call(B,h)&&y.indexOf(h)<0&&(s[h]=B[h]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,h=Object.getOwnPropertySymbols(B);f<h.length;f++)y.indexOf(h[f])<0&&Object.prototype.propertyIsEnumerable.call(B,h[f])&&(s[h[f]]=B[h[f]]);return s},Qe=(0,S.forwardRef)((B,y)=>{var s,h;const f=S.useContext(O.Z),$=f||{},{getPrefixCls:d,getPopupContainer:m,direction:x,menu:u}=S.useContext(_.E_),R=d(),{prefixCls:W,className:ce,style:De,theme:Fe="light",expandIcon:_e,_internalDisableMenuItemTitleTooltip:Oe,inlineCollapsed:xe,siderCollapsed:ot,items:_t,children:j,rootClassName:bt,mode:ct,selectable:vt,onClick:it,overflowedIndicatorPopupClassName:Rt}=B,Ft=Me(B,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Dt=(0,re.Z)(Ft,["collapsedWidth"]),Ct=Q(_t)||j;(s=$.validator)===null||s===void 0||s.call($,{mode:ct});const Kt=(0,I.useEvent)(function(){var dt;it==null||it.apply(void 0,arguments),(dt=$.onClick)===null||dt===void 0||dt.call($)}),zt=$.mode||ct,Ie=vt!=null?vt:$.selectable,qe=S.useMemo(()=>ot!==void 0?ot:xe,[xe,ot]),Bt={horizontal:{motionName:`${R}-slide-up`},inline:(0,L.Z)(R),other:{motionName:`${R}-zoom-big`}},pt=d("menu",W||$.prefixCls),[$t,Pt]=nt(pt,!f),St=C()(`${pt}-${Fe}`,u==null?void 0:u.className,ce);let Ot;if(typeof _e=="function")Ot=_e;else if(_e===null||_e===!1)Ot=null;else if($.expandIcon===null||$.expandIcon===!1)Ot=null;else{const dt=_e!=null?_e:$.expandIcon;Ot=(0,o.Tm)(dt,{className:C()(`${pt}-submenu-expand-icon`,(0,o.l$)(dt)?(h=dt.props)===null||h===void 0?void 0:h.className:"")})}const tt=S.useMemo(()=>({prefixCls:pt,inlineCollapsed:qe||!1,direction:x,firstLevel:!0,theme:Fe,mode:zt,disableMenuItemTitleTooltip:Oe}),[pt,qe,x,Oe,Fe]);return $t(S.createElement(O.Z.Provider,{value:null},S.createElement(we.Provider,{value:tt},S.createElement(a.ZP,Object.assign({getPopupContainer:m,overflowedIndicator:S.createElement(b.Z,null),overflowedIndicatorPopupClassName:C()(pt,`${pt}-${Fe}`,Rt),mode:zt,selectable:Ie,onClick:Kt},Dt,{inlineCollapsed:qe,style:Object.assign(Object.assign({},u==null?void 0:u.style),De),className:St,prefixCls:pt,direction:x,defaultMotions:Bt,expandIcon:Ot,ref:y,rootClassName:C()(bt,Pt)}),Ct))))});const Je=(0,S.forwardRef)((B,y)=>{const s=(0,S.useRef)(null),h=S.useContext(M.D);return(0,S.useImperativeHandle)(y,()=>({menu:s.current,focus:f=>{var $;($=s.current)===null||$===void 0||$.focus(f)}})),S.createElement(Qe,Object.assign({ref:s},B,h))});Je.Item=q,Je.SubMenu=w,Je.Divider=N,Je.ItemGroup=a.BW;var et=Je},61621:function(ut,Re,l){"use strict";l.d(Re,{Z:function(){return y}});var a=l(92310),S=l.n(a),M=l(59301),P=l(36355),C=l(2738),ue=s=>{const{prefixCls:h,className:f,style:$,size:d,shape:m}=s,x=S()({[`${h}-lg`]:d==="large",[`${h}-sm`]:d==="small"}),u=S()({[`${h}-circle`]:m==="circle",[`${h}-square`]:m==="square",[`${h}-round`]:m==="round"}),R=M.useMemo(()=>typeof d=="number"?{width:d,height:d,lineHeight:`${d}px`}:{},[d]);return M.createElement("span",{className:S()(h,x,u,f),style:Object.assign(Object.assign({},R),$)})},de=l(36237),N=l(83116),J=l(37613);const re=new de.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Y=s=>({height:s,lineHeight:`${s}px`}),o=s=>Object.assign({width:s},Y(s)),G=s=>({background:s.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:re,animationDuration:s.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),we=s=>Object.assign({width:s*5,minWidth:s*5},Y(s)),ee=s=>{const{skeletonAvatarCls:h,gradientFromColor:f,controlHeight:$,controlHeightLG:d,controlHeightSM:m}=s;return{[`${h}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},o($)),[`${h}${h}-circle`]:{borderRadius:"50%"},[`${h}${h}-lg`]:Object.assign({},o(d)),[`${h}${h}-sm`]:Object.assign({},o(m))}},q=s=>{const{controlHeight:h,borderRadiusSM:f,skeletonInputCls:$,controlHeightLG:d,controlHeightSM:m,gradientFromColor:x}=s;return{[`${$}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:x,borderRadius:f},we(h)),[`${$}-lg`]:Object.assign({},we(d)),[`${$}-sm`]:Object.assign({},we(m))}},E=s=>Object.assign({width:s},Y(s)),w=s=>{const{skeletonImageCls:h,imageSizeBase:f,gradientFromColor:$,borderRadiusSM:d}=s;return{[`${h}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:$,borderRadius:d},E(f*2)),{[`${h}-path`]:{fill:"#bfbfbf"},[`${h}-svg`]:Object.assign(Object.assign({},E(f)),{maxWidth:f*4,maxHeight:f*4}),[`${h}-svg${h}-svg-circle`]:{borderRadius:"50%"}}),[`${h}${h}-circle`]:{borderRadius:"50%"}}},b=(s,h,f)=>{const{skeletonButtonCls:$}=s;return{[`${f}${$}-circle`]:{width:h,minWidth:h,borderRadius:"50%"},[`${f}${$}-round`]:{borderRadius:h}}},I=s=>Object.assign({width:s*2,minWidth:s*2},Y(s)),L=s=>{const{borderRadiusSM:h,skeletonButtonCls:f,controlHeight:$,controlHeightLG:d,controlHeightSM:m,gradientFromColor:x}=s;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${f}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:x,borderRadius:h,width:$*2,minWidth:$*2},I($))},b(s,$,f)),{[`${f}-lg`]:Object.assign({},I(d))}),b(s,d,`${f}-lg`)),{[`${f}-sm`]:Object.assign({},I(m))}),b(s,m,`${f}-sm`))},O=s=>{const{componentCls:h,skeletonAvatarCls:f,skeletonTitleCls:$,skeletonParagraphCls:d,skeletonButtonCls:m,skeletonInputCls:x,skeletonImageCls:u,controlHeight:R,controlHeightLG:W,controlHeightSM:ce,gradientFromColor:De,padding:Fe,marginSM:_e,borderRadius:Oe,titleHeight:xe,blockRadius:ot,paragraphLiHeight:_t,controlHeightXS:j,paragraphMarginTop:bt}=s;return{[`${h}`]:{display:"table",width:"100%",[`${h}-header`]:{display:"table-cell",paddingInlineEnd:Fe,verticalAlign:"top",[`${f}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:De},o(R)),[`${f}-circle`]:{borderRadius:"50%"},[`${f}-lg`]:Object.assign({},o(W)),[`${f}-sm`]:Object.assign({},o(ce))},[`${h}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${$}`]:{width:"100%",height:xe,background:De,borderRadius:ot,[`+ ${d}`]:{marginBlockStart:ce}},[`${d}`]:{padding:0,"> li":{width:"100%",height:_t,listStyle:"none",background:De,borderRadius:ot,"+ li":{marginBlockStart:j}}},[`${d}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${h}-content`]:{[`${$}, ${d} > li`]:{borderRadius:Oe}}},[`${h}-with-avatar ${h}-content`]:{[`${$}`]:{marginBlockStart:_e,[`+ ${d}`]:{marginBlockStart:bt}}},[`${h}${h}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},L(s)),ee(s)),q(s)),w(s)),[`${h}${h}-block`]:{width:"100%",[`${m}`]:{width:"100%"},[`${x}`]:{width:"100%"}},[`${h}${h}-active`]:{[`
${$},
${d} > li,
${f},
${m},
${x},
${u}
`]:Object.assign({},G(s))}}};var T=(0,N.Z)("Skeleton",s=>{const{componentCls:h}=s,f=(0,J.TS)(s,{skeletonAvatarCls:`${h}-avatar`,skeletonTitleCls:`${h}-title`,skeletonParagraphCls:`${h}-paragraph`,skeletonButtonCls:`${h}-button`,skeletonInputCls:`${h}-input`,skeletonImageCls:`${h}-image`,imageSizeBase:s.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${s.gradientFromColor} 25%, ${s.gradientToColor} 37%, ${s.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[O(f)]},s=>{const{colorFillContent:h,colorFill:f}=s,$=h,d=f;return{color:$,colorGradientEnd:d,gradientFromColor:$,gradientToColor:d,titleHeight:s.controlHeight/2,blockRadius:s.borderRadiusSM,paragraphMarginTop:s.marginLG+s.marginXXS,paragraphLiHeight:s.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Q=s=>{const{prefixCls:h,className:f,rootClassName:$,active:d,shape:m="circle",size:x="default"}=s,{getPrefixCls:u}=M.useContext(P.E_),R=u("skeleton",h),[W,ce]=T(R),De=(0,C.Z)(s,["prefixCls","className"]),Fe=S()(R,`${R}-element`,{[`${R}-active`]:d},f,$,ce);return W(M.createElement("div",{className:Fe},M.createElement(ue,Object.assign({prefixCls:`${R}-avatar`,shape:m,size:x},De))))},pe=s=>{const{prefixCls:h,className:f,rootClassName:$,active:d,block:m=!1,size:x="default"}=s,{getPrefixCls:u}=M.useContext(P.E_),R=u("skeleton",h),[W,ce]=T(R),De=(0,C.Z)(s,["prefixCls"]),Fe=S()(R,`${R}-element`,{[`${R}-active`]:d,[`${R}-block`]:m},f,$,ce);return W(M.createElement("div",{className:Fe},M.createElement(ue,Object.assign({prefixCls:`${R}-button`,size:x},De))))};const Ae="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 Te=s=>{const{prefixCls:h,className:f,rootClassName:$,style:d,active:m}=s,{getPrefixCls:x}=M.useContext(P.E_),u=x("skeleton",h),[R,W]=T(u),ce=S()(u,`${u}-element`,{[`${u}-active`]:m},f,$,W);return R(M.createElement("div",{className:ce},M.createElement("div",{className:S()(`${u}-image`,f),style:d},M.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},M.createElement("path",{d:Ae,className:`${u}-image-path`})))))},F=s=>{const{prefixCls:h,className:f,rootClassName:$,active:d,block:m,size:x="default"}=s,{getPrefixCls:u}=M.useContext(P.E_),R=u("skeleton",h),[W,ce]=T(R),De=(0,C.Z)(s,["prefixCls"]),Fe=S()(R,`${R}-element`,{[`${R}-active`]:d,[`${R}-block`]:m},f,$,ce);return W(M.createElement("div",{className:Fe},M.createElement(ue,Object.assign({prefixCls:`${R}-input`,size:x},De))))},Ge=l(54476),We={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"},Z=We,he=l(7657),ie=function(h,f){return M.createElement(he.Z,(0,Ge.Z)({},h,{ref:f,icon:Z}))},ye=M.forwardRef(ie),se=ye,ve=s=>{const{prefixCls:h,className:f,rootClassName:$,style:d,active:m,children:x}=s,{getPrefixCls:u}=M.useContext(P.E_),R=u("skeleton",h),[W,ce]=T(R),De=S()(R,`${R}-element`,{[`${R}-active`]:m},ce,f,$),Fe=x!=null?x:M.createElement(se,null);return W(M.createElement("div",{className:De},M.createElement("div",{className:S()(`${R}-image`,f),style:d},Fe)))},Ue=l(94480),je=s=>{const h=u=>{const{width:R,rows:W=2}=s;if(Array.isArray(R))return R[u];if(W-1===u)return R},{prefixCls:f,className:$,style:d,rows:m}=s,x=(0,Ue.Z)(Array(m)).map((u,R)=>M.createElement("li",{key:R,style:{width:h(R)}}));return M.createElement("ul",{className:S()(f,$),style:d},x)},nt=s=>{let{prefixCls:h,className:f,width:$,style:d}=s;return M.createElement("h3",{className:S()(h,f),style:Object.assign({width:$},d)})};function Me(s){return s&&typeof s=="object"?s:{}}function He(s,h){return s&&!h?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Qe(s,h){return!s&&h?{width:"38%"}:s&&h?{width:"50%"}:{}}function Je(s,h){const f={};return(!s||!h)&&(f.width="61%"),!s&&h?f.rows=3:f.rows=2,f}const et=s=>{const{prefixCls:h,loading:f,className:$,rootClassName:d,style:m,children:x,avatar:u=!1,title:R=!0,paragraph:W=!0,active:ce,round:De}=s,{getPrefixCls:Fe,direction:_e,skeleton:Oe}=M.useContext(P.E_),xe=Fe("skeleton",h),[ot,_t]=T(xe);if(f||!("loading"in s)){const j=!!u,bt=!!R,ct=!!W;let vt;if(j){const Ft=Object.assign(Object.assign({prefixCls:`${xe}-avatar`},He(bt,ct)),Me(u));vt=M.createElement("div",{className:`${xe}-header`},M.createElement(ue,Object.assign({},Ft)))}let it;if(bt||ct){let Ft;if(bt){const Ct=Object.assign(Object.assign({prefixCls:`${xe}-title`},Qe(j,ct)),Me(R));Ft=M.createElement(nt,Object.assign({},Ct))}let Dt;if(ct){const Ct=Object.assign(Object.assign({prefixCls:`${xe}-paragraph`},Je(j,bt)),Me(W));Dt=M.createElement(je,Object.assign({},Ct))}it=M.createElement("div",{className:`${xe}-content`},Ft,Dt)}const Rt=S()(xe,{[`${xe}-with-avatar`]:j,[`${xe}-active`]:ce,[`${xe}-rtl`]:_e==="rtl",[`${xe}-round`]:De},Oe==null?void 0:Oe.className,$,d,_t);return ot(M.createElement("div",{className:Rt,style:Object.assign(Object.assign({},Oe==null?void 0:Oe.style),m)},vt,it))}return typeof x!="undefined"?x:null};et.Button=pe,et.Avatar=Q,et.Input=F,et.Image=Te,et.Node=ve;var B=et,y=B},81327:function(ut,Re,l){"use strict";l.d(Re,{Z:function(){return q}});var a=l(59301),S=l(92310),M=l.n(S),P=l(11592),C=l(36355),_=l(33234);const ue=a.createContext({latestIndex:0}),de=ue.Provider;var J=E=>{let{className:w,index:b,children:I,split:L,style:O}=E;const{latestIndex:T}=a.useContext(ue);return I==null?null:a.createElement(a.Fragment,null,a.createElement("div",{className:w,style:O},I),b<T&&L&&a.createElement("span",{className:`${w}-split`},L))},re=l(2856);function Y(E){return["small","middle","large"].includes(E)}function o(E){return E?typeof E=="number"&&!Number.isNaN(E):!1}var G=function(E,w){var b={};for(var I in E)Object.prototype.hasOwnProperty.call(E,I)&&w.indexOf(I)<0&&(b[I]=E[I]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,I=Object.getOwnPropertySymbols(E);L<I.length;L++)w.indexOf(I[L])<0&&Object.prototype.propertyIsEnumerable.call(E,I[L])&&(b[I[L]]=E[I[L]]);return b};const ee=a.forwardRef((E,w)=>{var b,I;const{getPrefixCls:L,space:O,direction:T}=a.useContext(C.E_),{size:A=(O==null?void 0:O.size)||"small",align:Q,className:ne,rootClassName:pe,children:Ae,direction:be="horizontal",prefixCls:Te,split:Be,style:F,wrap:Ge=!1,classNames:We,styles:Z}=E,he=G(E,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ie,ye]=Array.isArray(A)?A:[A,A],se=Y(ye),ae=Y(ie),ve=o(ye),Ue=o(ie),$e=(0,P.Z)(Ae,{keepEmpty:!0}),je=Q===void 0&&be==="horizontal"?"center":Q,Xe=L("space",Te),[nt,Me]=(0,re.Z)(Xe),He=M()(Xe,O==null?void 0:O.className,Me,`${Xe}-${be}`,{[`${Xe}-rtl`]:T==="rtl",[`${Xe}-align-${je}`]:je,[`${Xe}-gap-row-${ye}`]:se,[`${Xe}-gap-col-${ie}`]:ae},ne,pe),Qe=M()(`${Xe}-item`,(b=We==null?void 0:We.item)!==null&&b!==void 0?b:(I=O==null?void 0:O.classNames)===null||I===void 0?void 0:I.item);let Je=0;const et=$e.map((s,h)=>{var f,$;s!=null&&(Je=h);const d=s&&s.key||`${Qe}-${h}`;return a.createElement(J,{className:Qe,key:d,index:h,split:Be,style:(f=Z==null?void 0:Z.item)!==null&&f!==void 0?f:($=O==null?void 0:O.styles)===null||$===void 0?void 0:$.item},s)}),B=a.useMemo(()=>({latestIndex:Je}),[Je]);if($e.length===0)return null;const y={};return Ge&&(y.flexWrap="wrap"),!ae&&Ue&&(y.columnGap=ie),!se&&ve&&(y.rowGap=ye),nt(a.createElement("div",Object.assign({ref:w,className:He,style:Object.assign(Object.assign(Object.assign({},y),O==null?void 0:O.style),F)},he),a.createElement(de,{value:B},et)))});ee.Compact=_.ZP;var q=ee},8378:function(ut,Re){"use strict";const l=a=>({[a.componentCls]:{[`${a.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${a.motionDurationMid} ${a.motionEaseInOut},
opacity ${a.motionDurationMid} ${a.motionEaseInOut} !important`}},[`${a.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${a.motionDurationMid} ${a.motionEaseInOut},
opacity ${a.motionDurationMid} ${a.motionEaseInOut} !important`}}});Re.Z=l},92899:function(ut,Re,l){"use strict";l.d(Re,{Fm:function(){return Y}});var a=l(36237),S=l(95406);const M=new a.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P=new a.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),C=new a.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_=new a.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ue=new a.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),de=new a.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),N=new a.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),J=new a.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),re={"move-up":{inKeyframes:N,outKeyframes:J},"move-down":{inKeyframes:M,outKeyframes:P},"move-left":{inKeyframes:C,outKeyframes:_},"move-right":{inKeyframes:ue,outKeyframes:de}},Y=(o,G)=>{const{antCls:we}=o,ee=`${we}-${G}`,{inKeyframes:q,outKeyframes:E}=re[G];return[(0,S.R)(ee,q,E,o.motionDurationMid),{[`
${ee}-enter,
${ee}-appear
`]:{opacity:0,animationTimingFunction:o.motionEaseOutCirc},[`${ee}-leave`]:{animationTimingFunction:o.motionEaseInOutCirc}}]}},13826:function(ut,Re,l){"use strict";l.d(Re,{Qt:function(){return C},Uw:function(){return P},fJ:function(){return M},ly:function(){return _},oN:function(){return Y}});var a=l(36237),S=l(95406);const M=new a.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),P=new a.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),C=new a.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),_=new a.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ue=new a.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),de=new a.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),N=new a.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),J=new a.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),re={"slide-up":{inKeyframes:M,outKeyframes:P},"slide-down":{inKeyframes:C,outKeyframes:_},"slide-left":{inKeyframes:ue,outKeyframes:de},"slide-right":{inKeyframes:N,outKeyframes:J}},Y=(o,G)=>{const{antCls:we}=o,ee=`${we}-${G}`,{inKeyframes:q,outKeyframes:E}=re[G];return[(0,S.R)(ee,q,E,o.motionDurationMid),{[`
${ee}-enter,
${ee}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:o.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${ee}-leave`]:{animationTimingFunction:o.motionEaseInQuint}}]}},3867:function(ut,Re,l){var a=l(97671);(function(S,M){ut.exports=M()})(this,function(){"use strict";function S(d){var m=typeof d;return d!==null&&(m==="object"||m==="function")}function M(d){return typeof d=="function"}var P=void 0;Array.isArray?P=Array.isArray:P=function(d){return Object.prototype.toString.call(d)==="[object Array]"};var C=P,_=0,ue=void 0,de=void 0,N=function(m,x){L[_]=m,L[_+1]=x,_+=2,_===2&&(de?de(O):A())};function J(d){de=d}function re(d){N=d}var Y=typeof window!="undefined"?window:void 0,o=Y||{},G=o.MutationObserver||o.WebKitMutationObserver,we=typeof self=="undefined"&&typeof a!="undefined"&&{}.toString.call(a)==="[object process]",ee=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function q(){return function(){return a.nextTick(O)}}function E(){return typeof ue!="undefined"?function(){ue(O)}:I()}function w(){var d=0,m=new G(O),x=document.createTextNode("");return m.observe(x,{characterData:!0}),function(){x.data=d=++d%2}}function b(){var d=new MessageChannel;return d.port1.onmessage=O,function(){return d.port2.postMessage(0)}}function I(){var d=setTimeout;return function(){return d(O,1)}}var L=new Array(1e3);function O(){for(var d=0;d<_;d+=2){var m=L[d],x=L[d+1];m(x),L[d]=void 0,L[d+1]=void 0}_=0}function T(){try{var d=Function("return this")().require("vertx");return ue=d.runOnLoop||d.runOnContext,E()}catch(m){return I()}}var A=void 0;we?A=q():G?A=w():ee?A=b():Y===void 0?A=T():A=I();function Q(d,m){var x=this,u=new this.constructor(Ae);u[pe]===void 0&&He(u);var R=x._state;if(R){var W=arguments[R-1];N(function(){return je(R,u,W,x._result)})}else Ue(x,u,d,m);return u}function ne(d){var m=this;if(d&&typeof d=="object"&&d.constructor===m)return d;var x=new m(Ae);return ye(x,d),x}var pe=Math.random().toString(36).substring(2);function Ae(){}var be=void 0,Te=1,Be=2;function F(){return new TypeError("You cannot resolve a promise with itself")}function Ge(){return new TypeError("A promises callback cannot return that same promise.")}function We(d,m,x,u){try{d.call(m,x,u)}catch(R){return R}}function Z(d,m,x){N(function(u){var R=!1,W=We(x,m,function(ce){R||(R=!0,m!==ce?ye(u,ce):ae(u,ce))},function(ce){R||(R=!0,ve(u,ce))},"Settle: "+(u._label||" unknown promise"));!R&&W&&(R=!0,ve(u,W))},d)}function he(d,m){m._state===Te?ae(d,m._result):m._state===Be?ve(d,m._result):Ue(m,void 0,function(x){return ye(d,x)},function(x){return ve(d,x)})}function ie(d,m,x){m.constructor===d.constructor&&x===Q&&m.constructor.resolve===ne?he(d,m):x===void 0?ae(d,m):M(x)?Z(d,m,x):ae(d,m)}function ye(d,m){if(d===m)ve(d,F());else if(S(m)){var x=void 0;try{x=m.then}catch(u){ve(d,u);return}ie(d,m,x)}else ae(d,m)}function se(d){d._onerror&&d._onerror(d._result),$e(d)}function ae(d,m){d._state===be&&(d._result=m,d._state=Te,d._subscribers.length!==0&&N($e,d))}function ve(d,m){d._state===be&&(d._state=Be,d._result=m,N(se,d))}function Ue(d,m,x,u){var R=d._subscribers,W=R.length;d._onerror=null,R[W]=m,R[W+Te]=x,R[W+Be]=u,W===0&&d._state&&N($e,d)}function $e(d){var m=d._subscribers,x=d._state;if(m.length!==0){for(var u=void 0,R=void 0,W=d._result,ce=0;ce<m.length;ce+=3)u=m[ce],R=m[ce+x],u?je(x,u,R,W):R(W);d._subscribers.length=0}}function je(d,m,x,u){var R=M(x),W=void 0,ce=void 0,De=!0;if(R){try{W=x(u)}catch(Fe){De=!1,ce=Fe}if(m===W){ve(m,Ge());return}}else W=u;m._state!==be||(R&&De?ye(m,W):De===!1?ve(m,ce):d===Te?ae(m,W):d===Be&&ve(m,W))}function Xe(d,m){try{m(function(u){ye(d,u)},function(u){ve(d,u)})}catch(x){ve(d,x)}}var nt=0;function Me(){return nt++}function He(d){d[pe]=nt++,d._state=void 0,d._result=void 0,d._subscribers=[]}function Qe(){return new Error("Array Methods must be provided an Array")}var Je=function(){function d(m,x){this._instanceConstructor=m,this.promise=new m(Ae),this.promise[pe]||He(this.promise),C(x)?(this.length=x.length,this._remaining=x.length,this._result=new Array(this.length),this.length===0?ae(this.promise,this._result):(this.length=this.length||0,this._enumerate(x),this._remaining===0&&ae(this.promise,this._result))):ve(this.promise,Qe())}return d.prototype._enumerate=function(x){for(var u=0;this._state===be&&u<x.length;u++)this._eachEntry(x[u],u)},d.prototype._eachEntry=function(x,u){var R=this._instanceConstructor,W=R.resolve;if(W===ne){var ce=void 0,De=void 0,Fe=!1;try{ce=x.then}catch(Oe){Fe=!0,De=Oe}if(ce===Q&&x._state!==be)this._settledAt(x._state,u,x._result);else if(typeof ce!="function")this._remaining--,this._result[u]=x;else if(R===f){var _e=new R(Ae);Fe?ve(_e,De):ie(_e,x,ce),this._willSettleAt(_e,u)}else this._willSettleAt(new R(function(Oe){return Oe(x)}),u)}else this._willSettleAt(W(x),u)},d.prototype._settledAt=function(x,u,R){var W=this.promise;W._state===be&&(this._remaining--,x===Be?ve(W,R):this._result[u]=R),this._remaining===0&&ae(W,this._result)},d.prototype._willSettleAt=function(x,u){var R=this;Ue(x,void 0,function(W){return R._settledAt(Te,u,W)},function(W){return R._settledAt(Be,u,W)})},d}();function et(d){return new Je(this,d).promise}function B(d){var m=this;return C(d)?new m(function(x,u){for(var R=d.length,W=0;W<R;W++)m.resolve(d[W]).then(x,u)}):new m(function(x,u){return u(new TypeError("You must pass an array to race."))})}function y(d){var m=this,x=new m(Ae);return ve(x,d),x}function s(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function h(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var f=function(){function d(m){this[pe]=Me(),this._result=this._state=void 0,this._subscribers=[],Ae!==m&&(typeof m!="function"&&s(),this instanceof d?Xe(this,m):h())}return d.prototype.catch=function(x){return this.then(null,x)},d.prototype.finally=function(x){var u=this,R=u.constructor;return M(x)?u.then(function(W){return R.resolve(x()).then(function(){return W})},function(W){return R.resolve(x()).then(function(){throw W})}):u.then(x,x)},d}();f.prototype.then=Q,f.all=et,f.race=B,f.resolve=ne,f.reject=y,f._setScheduler=J,f._setAsap=re,f._asap=N;function $(){var d=void 0;if(typeof l.g!="undefined")d=l.g;else if(typeof self!="undefined")d=self;else try{d=Function("return this")()}catch(u){throw new Error("polyfill failed because global object is unavailable in this environment")}var m=d.Promise;if(m){var x=null;try{x=Object.prototype.toString.call(m.resolve())}catch(u){}if(x==="[object Promise]"&&!m.cast)return}d.Promise=f}return f.polyfill=$,f.Promise=f,f})},86204:function(ut){"use strict";var Re=typeof Reflect=="object"?Reflect:null,l=Re&&typeof Re.apply=="function"?Re.apply:function(b,I,L){return Function.prototype.apply.call(b,I,L)},a;Re&&typeof Re.ownKeys=="function"?a=Re.ownKeys:Object.getOwnPropertySymbols?a=function(b){return Object.getOwnPropertyNames(b).concat(Object.getOwnPropertySymbols(b))}:a=function(b){return Object.getOwnPropertyNames(b)};function S(w){console&&console.warn&&console.warn(w)}var M=Number.isNaN||function(b){return b!==b};function P(){P.init.call(this)}ut.exports=P,ut.exports.once=ee,P.EventEmitter=P,P.prototype._events=void 0,P.prototype._eventsCount=0,P.prototype._maxListeners=void 0;var C=10;function _(w){if(typeof w!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof w)}Object.defineProperty(P,"defaultMaxListeners",{enumerable:!0,get:function(){return C},set:function(w){if(typeof w!="number"||w<0||M(w))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+w+".");C=w}}),P.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},P.prototype.setMaxListeners=function(b){if(typeof b!="number"||b<0||M(b))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+b+".");return this._maxListeners=b,this};function ue(w){return w._maxListeners===void 0?P.defaultMaxListeners:w._maxListeners}P.prototype.getMaxListeners=function(){return ue(this)},P.prototype.emit=function(b){for(var I=[],L=1;L<arguments.length;L++)I.push(arguments[L]);var O=b==="error",T=this._events;if(T!==void 0)O=O&&T.error===void 0;else if(!O)return!1;if(O){var A;if(I.length>0&&(A=I[0]),A instanceof Error)throw A;var Q=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw Q.context=A,Q}var ne=T[b];if(ne===void 0)return!1;if(typeof ne=="function")l(ne,this,I);else for(var pe=ne.length,Ae=o(ne,pe),L=0;L<pe;++L)l(Ae[L],this,I);return!0};function de(w,b,I,L){var O,T,A;if(_(I),T=w._events,T===void 0?(T=w._events=Object.create(null),w._eventsCount=0):(T.newListener!==void 0&&(w.emit("newListener",b,I.listener?I.listener:I),T=w._events),A=T[b]),A===void 0)A=T[b]=I,++w._eventsCount;else if(typeof A=="function"?A=T[b]=L?[I,A]:[A,I]:L?A.unshift(I):A.push(I),O=ue(w),O>0&&A.length>O&&!A.warned){A.warned=!0;var Q=new Error("Possible EventEmitter memory leak detected. "+A.length+" "+String(b)+" listeners added. Use emitter.setMaxListeners() to increase limit");Q.name="MaxListenersExceededWarning",Q.emitter=w,Q.type=b,Q.count=A.length,S(Q)}return w}P.prototype.addListener=function(b,I){return de(this,b,I,!1)},P.prototype.on=P.prototype.addListener,P.prototype.prependListener=function(b,I){return de(this,b,I,!0)};function N(){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 J(w,b,I){var L={fired:!1,wrapFn:void 0,target:w,type:b,listener:I},O=N.bind(L);return O.listener=I,L.wrapFn=O,O}P.prototype.once=function(b,I){return _(I),this.on(b,J(this,b,I)),this},P.prototype.prependOnceListener=function(b,I){return _(I),this.prependListener(b,J(this,b,I)),this},P.prototype.removeListener=function(b,I){var L,O,T,A,Q;if(_(I),O=this._events,O===void 0)return this;if(L=O[b],L===void 0)return this;if(L===I||L.listener===I)--this._eventsCount===0?this._events=Object.create(null):(delete O[b],O.removeListener&&this.emit("removeListener",b,L.listener||I));else if(typeof L!="function"){for(T=-1,A=L.length-1;A>=0;A--)if(L[A]===I||L[A].listener===I){Q=L[A].listener,T=A;break}if(T<0)return this;T===0?L.shift():G(L,T),L.length===1&&(O[b]=L[0]),O.removeListener!==void 0&&this.emit("removeListener",b,Q||I)}return this},P.prototype.off=P.prototype.removeListener,P.prototype.removeAllListeners=function(b){var I,L,O;if(L=this._events,L===void 0)return this;if(L.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):L[b]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete L[b]),this;if(arguments.length===0){var T=Object.keys(L),A;for(O=0;O<T.length;++O)A=T[O],A!=="removeListener"&&this.removeAllListeners(A);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(I=L[b],typeof I=="function")this.removeListener(b,I);else if(I!==void 0)for(O=I.length-1;O>=0;O--)this.removeListener(b,I[O]);return this};function re(w,b,I){var L=w._events;if(L===void 0)return[];var O=L[b];return O===void 0?[]:typeof O=="function"?I?[O.listener||O]:[O]:I?we(O):o(O,O.length)}P.prototype.listeners=function(b){return re(this,b,!0)},P.prototype.rawListeners=function(b){return re(this,b,!1)},P.listenerCount=function(w,b){return typeof w.listenerCount=="function"?w.listenerCount(b):Y.call(w,b)},P.prototype.listenerCount=Y;function Y(w){var b=this._events;if(b!==void 0){var I=b[w];if(typeof I=="function")return 1;if(I!==void 0)return I.length}return 0}P.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function o(w,b){for(var I=new Array(b),L=0;L<b;++L)I[L]=w[L];return I}function G(w,b){for(;b+1<w.length;b++)w[b]=w[b+1];w.pop()}function we(w){for(var b=new Array(w.length),I=0;I<b.length;++I)b[I]=w[I].listener||w[I];return b}function ee(w,b){return new Promise(function(I,L){function O(A){w.removeListener(b,T),L(A)}function T(){typeof w.removeListener=="function"&&w.removeListener("error",O),I([].slice.call(arguments))}E(w,b,T,{once:!0}),b!=="error"&&q(w,O,{once:!0})})}function q(w,b,I){typeof w.on=="function"&&E(w,"error",b,I)}function E(w,b,I,L){if(typeof w.on=="function")L.once?w.once(b,I):w.on(b,I);else if(typeof w.addEventListener=="function")w.addEventListener(b,function O(T){L.once&&w.removeEventListener(b,O),I(T)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof w)}},31561:function(ut,Re,l){"use strict";l.d(Re,{Z:function(){return T}});var a=l(54476),S=l(20068),M=l(42978),P=l(75931),C=l(35593),_=l(92310),ue=l.n(_),de=l(8654),N=l(59301),J=l(10228),re=l(16089),Y=J.Z.ESC,o=J.Z.TAB;function G(A){var Q=A.visible,ne=A.triggerRef,pe=A.onVisibleChange,Ae=A.autoFocus,be=A.overlayRef,Te=N.useRef(!1),Be=function(){if(Q){var Z,he;(Z=ne.current)===null||Z===void 0||(he=Z.focus)===null||he===void 0||he.call(Z),pe==null||pe(!1)}},F=function(){var Z;return(Z=be.current)!==null&&Z!==void 0&&Z.focus?(be.current.focus(),Te.current=!0,!0):!1},Ge=function(Z){switch(Z.keyCode){case Y:Be();break;case o:{var he=!1;Te.current||(he=F()),he?Z.preventDefault():Be();break}}};N.useEffect(function(){return Q?(window.addEventListener("keydown",Ge),Ae&&(0,re.Z)(F,3),function(){window.removeEventListener("keydown",Ge),Te.current=!1}):function(){Te.current=!1}},[Q])}var we=(0,N.forwardRef)(function(A,Q){var ne=A.overlay,pe=A.arrow,Ae=A.prefixCls,be=(0,N.useMemo)(function(){var Be;return typeof ne=="function"?Be=ne():Be=ne,Be},[ne]),Te=(0,de.sQ)(Q,be==null?void 0:be.ref);return N.createElement(N.Fragment,null,pe&&N.createElement("div",{className:"".concat(Ae,"-arrow")}),N.cloneElement(be,{ref:(0,de.Yr)(be)?Te:void 0}))}),ee=we,q={adjustX:1,adjustY:1},E=[0,0],w={topLeft:{points:["bl","tl"],overflow:q,offset:[0,-4],targetOffset:E},top:{points:["bc","tc"],overflow:q,offset:[0,-4],targetOffset:E},topRight:{points:["br","tr"],overflow:q,offset:[0,-4],targetOffset:E},bottomLeft:{points:["tl","bl"],overflow:q,offset:[0,4],targetOffset:E},bottom:{points:["tc","bc"],overflow:q,offset:[0,4],targetOffset:E},bottomRight:{points:["tr","br"],overflow:q,offset:[0,4],targetOffset:E}},b=w,I=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function L(A,Q){var ne,pe=A.arrow,Ae=pe===void 0?!1:pe,be=A.prefixCls,Te=be===void 0?"rc-dropdown":be,Be=A.transitionName,F=A.animation,Ge=A.align,We=A.placement,Z=We===void 0?"bottomLeft":We,he=A.placements,ie=he===void 0?b:he,ye=A.getPopupContainer,se=A.showAction,ae=A.hideAction,ve=A.overlayClassName,Ue=A.overlayStyle,$e=A.visible,je=A.trigger,Xe=je===void 0?["hover"]:je,nt=A.autoFocus,Me=A.overlay,He=A.children,Qe=A.onVisibleChange,Je=(0,P.Z)(A,I),et=N.useState(),B=(0,M.Z)(et,2),y=B[0],s=B[1],h="visible"in A?$e:y,f=N.useRef(null),$=N.useRef(null),d=N.useRef(null);N.useImperativeHandle(Q,function(){return f.current});var m=function(Oe){s(Oe),Qe==null||Qe(Oe)};G({visible:h,triggerRef:d,onVisibleChange:m,autoFocus:nt,overlayRef:$});var x=function(Oe){var xe=A.onOverlayClick;s(!1),xe&&xe(Oe)},u=function(){return N.createElement(ee,{ref:$,overlay:Me,prefixCls:Te,arrow:Ae})},R=function(){return typeof Me=="function"?u:u()},W=function(){var Oe=A.minOverlayWidthMatchTrigger,xe=A.alignPoint;return"minOverlayWidthMatchTrigger"in A?Oe:!xe},ce=function(){var Oe=A.openClassName;return Oe!==void 0?Oe:"".concat(Te,"-open")},De=N.cloneElement(He,{className:ue()((ne=He.props)===null||ne===void 0?void 0:ne.className,h&&ce()),ref:(0,de.Yr)(He)?(0,de.sQ)(d,He.ref):void 0}),Fe=ae;return!Fe&&Xe.indexOf("contextMenu")!==-1&&(Fe=["click"]),N.createElement(C.Z,(0,a.Z)({builtinPlacements:ie},Je,{prefixCls:Te,ref:f,popupClassName:ue()(ve,(0,S.Z)({},"".concat(Te,"-show-arrow"),Ae)),popupStyle:Ue,action:Xe,showAction:se,hideAction:Fe,popupPlacement:Z,popupAlign:Ge,popupTransitionName:Be,popupAnimation:F,popupVisible:h,stretch:W()?"minWidth":"",popup:R(),onPopupVisibleChange:m,onPopupClick:x,getPopupContainer:ye}),De)}var O=N.forwardRef(L),T=O},15285:function(ut,Re,l){"use strict";l.d(Re,{iz:function(){return me},ck:function(){return Ie},BW:function(){return Ne},sN:function(){return Ie},Wd:function(){return H},ZP:function(){return ge},Xl:function(){return ne}});var a=l(54476),S=l(20068),M=l(33885),P=l(94480),C=l(42978),_=l(75931),ue=l(92310),de=l.n(ue),N=l(11780),J=l(18929),re=l(13697),Y=l(48736),o=l(59301),G=l(4676),we=o.createContext(null);function ee(p,v){return p===void 0?null:"".concat(p,"-").concat(v)}function q(p){var v=o.useContext(we);return ee(v,p)}var E=l(80547),w=["children","locked"],b=o.createContext(null);function I(p,v){var D=(0,M.Z)({},p);return Object.keys(v).forEach(function(U){var k=v[U];k!==void 0&&(D[U]=k)}),D}function L(p){var v=p.children,D=p.locked,U=(0,_.Z)(p,w),k=o.useContext(b),X=(0,E.Z)(function(){return I(k,U)},[k,U],function(z,Se){return!D&&(z[0]!==Se[0]||!(0,re.Z)(z[1],Se[1],!0))});return o.createElement(b.Provider,{value:X},v)}var O=[],T=o.createContext(null);function A(){return o.useContext(T)}var Q=o.createContext(O);function ne(p){var v=o.useContext(Q);return o.useMemo(function(){return p!==void 0?[].concat((0,P.Z)(v),[p]):v},[v,p])}var pe=o.createContext(null),Ae=o.createContext({}),be=Ae,Te=l(29194);function Be(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,Te.Z)(p)){var D=p.nodeName.toLowerCase(),U=["input","select","textarea","button"].includes(D)||p.isContentEditable||D==="a"&&!!p.getAttribute("href"),k=p.getAttribute("tabindex"),X=Number(k),z=null;return k&&!Number.isNaN(X)?z=X:U&&z===null&&(z=0),U&&p.disabled&&(z=null),z!==null&&(z>=0||v&&z<0)}return!1}function F(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,D=(0,P.Z)(p.querySelectorAll("*")).filter(function(U){return Be(U,v)});return Be(p,v)&&D.unshift(p),D}var Ge=null;function We(){Ge=document.activeElement}function Z(){Ge=null}function he(){if(Ge)try{Ge.focus()}catch(p){}}function ie(p,v){if(v.keyCode===9){var D=F(p),U=D[v.shiftKey?0:D.length-1],k=U===document.activeElement||p===document.activeElement;if(k){var X=D[v.shiftKey?D.length-1:0];X.focus(),v.preventDefault()}}}var ye=l(10228),se=l(16089),ae=ye.Z.LEFT,ve=ye.Z.RIGHT,Ue=ye.Z.UP,$e=ye.Z.DOWN,je=ye.Z.ENTER,Xe=ye.Z.ESC,nt=ye.Z.HOME,Me=ye.Z.END,He=[Ue,$e,ae,ve];function Qe(p,v,D,U){var k,X,z,Se,Ze="prev",ke="next",Ke="children",Pe="parent";if(p==="inline"&&U===je)return{inlineTrigger:!0};var rt=(k={},(0,S.Z)(k,Ue,Ze),(0,S.Z)(k,$e,ke),k),ht=(X={},(0,S.Z)(X,ae,D?ke:Ze),(0,S.Z)(X,ve,D?Ze:ke),(0,S.Z)(X,$e,Ke),(0,S.Z)(X,je,Ke),X),st=(z={},(0,S.Z)(z,Ue,Ze),(0,S.Z)(z,$e,ke),(0,S.Z)(z,je,Ke),(0,S.Z)(z,Xe,Pe),(0,S.Z)(z,ae,D?Ke:Pe),(0,S.Z)(z,ve,D?Pe:Ke),z),kt={inline:rt,horizontal:ht,vertical:st,inlineSub:rt,horizontalSub:st,verticalSub:st},It=(Se=kt["".concat(p).concat(v?"":"Sub")])===null||Se===void 0?void 0:Se[U];switch(It){case Ze:return{offset:-1,sibling:!0};case ke:return{offset:1,sibling:!0};case Pe:return{offset:-1,sibling:!1};case Ke:return{offset:1,sibling:!1};default:return null}}function Je(p){for(var v=p;v;){if(v.getAttribute("data-menu-list"))return v;v=v.parentElement}return null}function et(p,v){for(var D=p||document.activeElement;D;){if(v.has(D))return D;D=D.parentElement}return null}function B(p,v){var D=F(p,!0);return D.filter(function(U){return v.has(U)})}function y(p,v,D){var U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!p)return null;var k=B(p,v),X=k.length,z=k.findIndex(function(Se){return D===Se});return U<0?z===-1?z=X-1:z-=1:U>0&&(z+=1),z=(z+X)%X,k[z]}var s=function(v,D){var U=new Set,k=new Map,X=new Map;return v.forEach(function(z){var Se=document.querySelector("[data-menu-id='".concat(ee(D,z),"']"));Se&&(U.add(Se),X.set(Se,z),k.set(z,Se))}),{elements:U,key2element:k,element2key:X}};function h(p,v,D,U,k,X,z,Se,Ze,ke){var Ke=o.useRef(),Pe=o.useRef();Pe.current=v;var rt=function(){se.Z.cancel(Ke.current)};return o.useEffect(function(){return function(){rt()}},[]),function(ht){var st=ht.which;if([].concat(He,[je,Xe,nt,Me]).includes(st)){var kt=X(),It=s(kt,U),Tt=It,ft=Tt.elements,lt=Tt.key2element,at=Tt.element2key,xt=lt.get(v),gt=et(xt,ft),Nt=at.get(gt),yt=Qe(p,z(Nt,!0).length===1,D,st);if(!yt&&st!==nt&&st!==Me)return;(He.includes(st)||[nt,Me].includes(st))&&ht.preventDefault();var tn=function(Ht){if(Ht){var nn=Ht,rn=Ht.querySelector("a");rn!=null&&rn.getAttribute("href")&&(nn=rn);var sn=at.get(Ht);Se(sn),rt(),Ke.current=(0,se.Z)(function(){Pe.current===sn&&nn.focus()})}};if([nt,Me].includes(st)||yt.sibling||!gt){var At;!gt||p==="inline"?At=k.current:At=Je(gt);var Gt,Ut=B(At,ft);st===nt?Gt=Ut[0]:st===Me?Gt=Ut[Ut.length-1]:Gt=y(At,ft,gt,yt.offset),tn(Gt)}else if(yt.inlineTrigger)Ze(Nt);else if(yt.offset>0)Ze(Nt,!0),rt(),Ke.current=(0,se.Z)(function(){It=s(kt,U);var un=gt.getAttribute("aria-controls"),Ht=document.getElementById(un),nn=y(Ht,It.elements);tn(nn)},5);else if(yt.offset<0){var jt=z(Nt,!0),Yt=jt[jt.length-2],Qt=lt.get(Yt);Ze(Yt,!1),tn(Qt)}}ke==null||ke(ht)}}function f(p){Promise.resolve().then(p)}var $="__RC_UTIL_PATH_SPLIT__",d=function(v){return v.join($)},m=function(v){return v.split($)},x="rc-menu-more";function u(){var p=o.useState({}),v=(0,C.Z)(p,2),D=v[1],U=(0,o.useRef)(new Map),k=(0,o.useRef)(new Map),X=o.useState([]),z=(0,C.Z)(X,2),Se=z[0],Ze=z[1],ke=(0,o.useRef)(0),Ke=(0,o.useRef)(!1),Pe=function(){Ke.current||D({})},rt=(0,o.useCallback)(function(lt,at){var xt=d(at);k.current.set(xt,lt),U.current.set(lt,xt),ke.current+=1;var gt=ke.current;f(function(){gt===ke.current&&Pe()})},[]),ht=(0,o.useCallback)(function(lt,at){var xt=d(at);k.current.delete(xt),U.current.delete(lt)},[]),st=(0,o.useCallback)(function(lt){Ze(lt)},[]),kt=(0,o.useCallback)(function(lt,at){var xt=U.current.get(lt)||"",gt=m(xt);return at&&Se.includes(gt[0])&&gt.unshift(x),gt},[Se]),It=(0,o.useCallback)(function(lt,at){return lt.some(function(xt){var gt=kt(xt,!0);return gt.includes(at)})},[kt]),Tt=function(){var at=(0,P.Z)(U.current.keys());return Se.length&&at.push(x),at},ft=(0,o.useCallback)(function(lt){var at="".concat(U.current.get(lt)).concat($),xt=new Set;return(0,P.Z)(k.current.keys()).forEach(function(gt){gt.startsWith(at)&&xt.add(k.current.get(gt))}),xt},[]);return o.useEffect(function(){return function(){Ke.current=!0}},[]),{registerPath:rt,unregisterPath:ht,refreshOverflowKeys:st,isSubPathKey:It,getKeyPath:kt,getKeys:Tt,getSubPathKeys:ft}}function R(p){var v=o.useRef(p);v.current=p;var D=o.useCallback(function(){for(var U,k=arguments.length,X=new Array(k),z=0;z<k;z++)X[z]=arguments[z];return(U=v.current)===null||U===void 0?void 0:U.call.apply(U,[v].concat(X))},[]);return p?D:void 0}var W=Math.random().toFixed(5).toString().slice(2),ce=0;function De(p){var v=(0,J.Z)(p,{value:p}),D=(0,C.Z)(v,2),U=D[0],k=D[1];return o.useEffect(function(){ce+=1;var X="".concat(W,"-").concat(ce);k("rc-menu-uuid-".concat(X))},[]),U}var Fe=l(67732),_e=l(83652),Oe=l(42403),xe=l(158),ot=l(2738),_t=l(8654);function j(p,v,D,U){var k=o.useContext(b),X=k.activeKey,z=k.onActive,Se=k.onInactive,Ze={active:X===p};return v||(Ze.onMouseEnter=function(ke){D==null||D({key:p,domEvent:ke}),z(p)},Ze.onMouseLeave=function(ke){U==null||U({key:p,domEvent:ke}),Se(p)}),Ze}function bt(p){var v=o.useContext(b),D=v.mode,U=v.rtl,k=v.inlineIndent;if(D!=="inline")return null;var X=p;return U?{paddingRight:X*k}:{paddingLeft:X*k}}function ct(p){var v=p.icon,D=p.props,U=p.children,k;return v===null||v===!1?null:(typeof v=="function"?k=o.createElement(v,(0,M.Z)({},D)):typeof v!="boolean"&&(k=v),k||U||null)}var vt=["item"];function it(p){var v=p.item,D=(0,_.Z)(p,vt);return Object.defineProperty(D,"item",{get:function(){return(0,Y.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),v}}),D}var Rt=["title","attribute","elementRef"],Ft=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Dt=["active"],Ct=function(p){(0,Oe.Z)(D,p);var v=(0,xe.Z)(D);function D(){return(0,Fe.Z)(this,D),v.apply(this,arguments)}return(0,_e.Z)(D,[{key:"render",value:function(){var k=this.props,X=k.title,z=k.attribute,Se=k.elementRef,Ze=(0,_.Z)(k,Rt),ke=(0,ot.Z)(Ze,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Y.ZP)(!z,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(N.Z.Item,(0,a.Z)({},z,{title:typeof X=="string"?X:void 0},ke,{ref:Se}))}}]),D}(o.Component),Kt=o.forwardRef(function(p,v){var D,U=p.style,k=p.className,X=p.eventKey,z=p.warnKey,Se=p.disabled,Ze=p.itemIcon,ke=p.children,Ke=p.role,Pe=p.onMouseEnter,rt=p.onMouseLeave,ht=p.onClick,st=p.onKeyDown,kt=p.onFocus,It=(0,_.Z)(p,Ft),Tt=q(X),ft=o.useContext(b),lt=ft.prefixCls,at=ft.onItemClick,xt=ft.disabled,gt=ft.overflowDisabled,Nt=ft.itemIcon,yt=ft.selectedKeys,tn=ft.onActive,At=o.useContext(be),Gt=At._internalRenderMenuItem,Ut="".concat(lt,"-item"),jt=o.useRef(),Yt=o.useRef(),Qt=xt||Se,un=(0,_t.x1)(v,Yt),Ht=ne(X),nn=function(Zt){return{key:X,keyPath:(0,P.Z)(Ht).reverse(),item:jt.current,domEvent:Zt}},rn=Ze||Nt,sn=j(X,Qt,Pe,rt),mn=sn.active,pn=(0,_.Z)(sn,Dt),cn=yt.includes(X),gn=bt(Ht.length),_n=function(Zt){if(!Qt){var an=nn(Zt);ht==null||ht(it(an)),at(an)}},Vt=function(Zt){if(st==null||st(Zt),Zt.which===ye.Z.ENTER){var an=nn(Zt);ht==null||ht(it(an)),at(an)}},Jt=function(Zt){tn(X),kt==null||kt(Zt)},Sn={};p.role==="option"&&(Sn["aria-selected"]=cn);var vn=o.createElement(Ct,(0,a.Z)({ref:jt,elementRef:un,role:Ke===null?"none":Ke||"menuitem",tabIndex:Se?null:-1,"data-menu-id":gt&&Tt?null:Tt},It,pn,Sn,{component:"li","aria-disabled":Se,style:(0,M.Z)((0,M.Z)({},gn),U),className:de()(Ut,(D={},(0,S.Z)(D,"".concat(Ut,"-active"),mn),(0,S.Z)(D,"".concat(Ut,"-selected"),cn),(0,S.Z)(D,"".concat(Ut,"-disabled"),Qt),D),k),onClick:_n,onKeyDown:Vt,onFocus:Jt}),ke,o.createElement(ct,{props:(0,M.Z)((0,M.Z)({},p),{},{isSelected:cn}),icon:rn}));return Gt&&(vn=Gt(vn,p,{selected:cn})),vn});function zt(p,v){var D=p.eventKey,U=A(),k=ne(D);return o.useEffect(function(){if(U)return U.registerPath(D,k),function(){U.unregisterPath(D,k)}},[k]),U?null:o.createElement(Kt,(0,a.Z)({},p,{ref:v}))}var Ie=o.forwardRef(zt),qe=["className","children"],Bt=function(v,D){var U=v.className,k=v.children,X=(0,_.Z)(v,qe),z=o.useContext(b),Se=z.prefixCls,Ze=z.mode,ke=z.rtl;return o.createElement("ul",(0,a.Z)({className:de()(Se,ke&&"".concat(Se,"-rtl"),"".concat(Se,"-sub"),"".concat(Se,"-").concat(Ze==="inline"?"inline":"vertical"),U),role:"menu"},X,{"data-menu-list":!0,ref:D}),k)},pt=o.forwardRef(Bt);pt.displayName="SubMenuList";var $t=pt,Pt=l(11592);function St(p,v){return(0,Pt.Z)(p).map(function(D,U){if(o.isValidElement(D)){var k,X,z=D.key,Se=(k=(X=D.props)===null||X===void 0?void 0:X.eventKey)!==null&&k!==void 0?k:z,Ze=Se==null;Ze&&(Se="tmp_key-".concat([].concat((0,P.Z)(v),[U]).join("-")));var ke={key:Se,eventKey:Se};return o.cloneElement(D,ke)}return D})}var Ot=l(35593),tt={adjustX:1,adjustY:1},dt={topLeft:{points:["bl","tl"],overflow:tt},topRight:{points:["br","tr"],overflow:tt},bottomLeft:{points:["tl","bl"],overflow:tt},bottomRight:{points:["tr","br"],overflow:tt},leftTop:{points:["tr","tl"],overflow:tt},leftBottom:{points:["br","bl"],overflow:tt},rightTop:{points:["tl","tr"],overflow:tt},rightBottom:{points:["bl","br"],overflow:tt}},dn={topLeft:{points:["bl","tl"],overflow:tt},topRight:{points:["br","tr"],overflow:tt},bottomLeft:{points:["tl","bl"],overflow:tt},bottomRight:{points:["tr","br"],overflow:tt},rightTop:{points:["tr","tl"],overflow:tt},rightBottom:{points:["br","bl"],overflow:tt},leftTop:{points:["tl","tr"],overflow:tt},leftBottom:{points:["bl","br"],overflow:tt}},K=null;function e(p,v,D){if(v)return v;if(D)return D[p]||D.other}var t={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function n(p){var v=p.prefixCls,D=p.visible,U=p.children,k=p.popup,X=p.popupStyle,z=p.popupClassName,Se=p.popupOffset,Ze=p.disabled,ke=p.mode,Ke=p.onVisibleChange,Pe=o.useContext(b),rt=Pe.getPopupContainer,ht=Pe.rtl,st=Pe.subMenuOpenDelay,kt=Pe.subMenuCloseDelay,It=Pe.builtinPlacements,Tt=Pe.triggerSubMenuAction,ft=Pe.forceSubMenuRender,lt=Pe.rootClassName,at=Pe.motion,xt=Pe.defaultMotions,gt=o.useState(!1),Nt=(0,C.Z)(gt,2),yt=Nt[0],tn=Nt[1],At=ht?(0,M.Z)((0,M.Z)({},dn),It):(0,M.Z)((0,M.Z)({},dt),It),Gt=t[ke],Ut=e(ke,at,xt),jt=o.useRef(Ut);ke!=="inline"&&(jt.current=Ut);var Yt=(0,M.Z)((0,M.Z)({},jt.current),{},{leavedClassName:"".concat(v,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Qt=o.useRef();return o.useEffect(function(){return Qt.current=(0,se.Z)(function(){tn(D)}),function(){se.Z.cancel(Qt.current)}},[D]),o.createElement(Ot.Z,{prefixCls:v,popupClassName:de()("".concat(v,"-popup"),(0,S.Z)({},"".concat(v,"-rtl"),ht),z,lt),stretch:ke==="horizontal"?"minWidth":null,getPopupContainer:rt,builtinPlacements:At,popupPlacement:Gt,popupVisible:yt,popup:k,popupStyle:X,popupAlign:Se&&{offset:Se},action:Ze?[]:[Tt],mouseEnterDelay:st,mouseLeaveDelay:kt,onPopupVisibleChange:Ke,forceRender:ft,popupMotion:Yt,fresh:!0},U)}var i=l(77900);function r(p){var v=p.id,D=p.open,U=p.keyPath,k=p.children,X="inline",z=o.useContext(b),Se=z.prefixCls,Ze=z.forceSubMenuRender,ke=z.motion,Ke=z.defaultMotions,Pe=z.mode,rt=o.useRef(!1);rt.current=Pe===X;var ht=o.useState(!rt.current),st=(0,C.Z)(ht,2),kt=st[0],It=st[1],Tt=rt.current?D:!1;o.useEffect(function(){rt.current&&It(!1)},[Pe]);var ft=(0,M.Z)({},e(X,ke,Ke));U.length>1&&(ft.motionAppear=!1);var lt=ft.onVisibleChanged;return ft.onVisibleChanged=function(at){return!rt.current&&!at&&It(!0),lt==null?void 0:lt(at)},kt?null:o.createElement(L,{mode:X,locked:!rt.current},o.createElement(i.default,(0,a.Z)({visible:Tt},ft,{forceRender:Ze,removeOnLeave:!1,leavedClassName:"".concat(Se,"-hidden")}),function(at){var xt=at.className,gt=at.style;return o.createElement($t,{id:v,className:xt,style:gt},k)}))}var c=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],g=["active"],oe=function(v){var D,U=v.style,k=v.className,X=v.title,z=v.eventKey,Se=v.warnKey,Ze=v.disabled,ke=v.internalPopupClose,Ke=v.children,Pe=v.itemIcon,rt=v.expandIcon,ht=v.popupClassName,st=v.popupOffset,kt=v.popupStyle,It=v.onClick,Tt=v.onMouseEnter,ft=v.onMouseLeave,lt=v.onTitleClick,at=v.onTitleMouseEnter,xt=v.onTitleMouseLeave,gt=(0,_.Z)(v,c),Nt=q(z),yt=o.useContext(b),tn=yt.prefixCls,At=yt.mode,Gt=yt.openKeys,Ut=yt.disabled,jt=yt.overflowDisabled,Yt=yt.activeKey,Qt=yt.selectedKeys,un=yt.itemIcon,Ht=yt.expandIcon,nn=yt.onItemClick,rn=yt.onOpenChange,sn=yt.onActive,mn=o.useContext(be),pn=mn._internalRenderSubMenuItem,cn=o.useContext(pe),gn=cn.isSubPathKey,_n=ne(),Vt="".concat(tn,"-submenu"),Jt=Ut||Ze,Sn=o.useRef(),vn=o.useRef(),En=Pe!=null?Pe:un,Zt=rt!=null?rt:Ht,an=Gt.includes(z),hn=!jt&&an,Fn=gn(Qt,z),xn=j(z,Jt,at,xt),yn=xn.active,Zn=(0,_.Z)(xn,g),qn=o.useState(!1),Kn=(0,C.Z)(qn,2),Bn=Kn[0],$n=Kn[1],Mn=function(en){Jt||$n(en)},on=function(en){Mn(!0),Tt==null||Tt({key:z,domEvent:en})},Hn=function(en){Mn(!1),ft==null||ft({key:z,domEvent:en})},In=o.useMemo(function(){return yn||(At!=="inline"?Bn||gn([Yt],z):!1)},[At,yn,Yt,Bn,z,gn]),Nn=bt(_n.length),Vn=function(en){Jt||(lt==null||lt({key:z,domEvent:en}),At==="inline"&&rn(z,!an))},wn=R(function(ln){It==null||It(it(ln)),nn(ln)}),Ln=function(en){At!=="inline"&&rn(z,en)},Dn=function(){sn(z)},On=Nt&&"".concat(Nt,"-popup"),An=o.createElement("div",(0,a.Z)({role:"menuitem",style:Nn,className:"".concat(Vt,"-title"),tabIndex:Jt?null:-1,ref:Sn,title:typeof X=="string"?X:null,"data-menu-id":jt&&Nt?null:Nt,"aria-expanded":hn,"aria-haspopup":!0,"aria-controls":On,"aria-disabled":Jt,onClick:Vn,onFocus:Dn},Zn),X,o.createElement(ct,{icon:At!=="horizontal"?Zt:void 0,props:(0,M.Z)((0,M.Z)({},v),{},{isOpen:hn,isSubMenu:!0})},o.createElement("i",{className:"".concat(Vt,"-arrow")}))),qt=o.useRef(At);if(At!=="inline"&&_n.length>1?qt.current="vertical":qt.current=At,!jt){var Rn=qt.current;An=o.createElement(n,{mode:Rn,prefixCls:Vt,visible:!ke&&hn&&At!=="inline",popupClassName:ht,popupOffset:st,popupStyle:kt,popup:o.createElement(L,{mode:Rn==="horizontal"?"vertical":Rn},o.createElement($t,{id:On,ref:vn},Ke)),disabled:Jt,onVisibleChange:Ln},An)}var bn=o.createElement(N.Z.Item,(0,a.Z)({role:"none"},gt,{component:"li",style:U,className:de()(Vt,"".concat(Vt,"-").concat(At),k,(D={},(0,S.Z)(D,"".concat(Vt,"-open"),hn),(0,S.Z)(D,"".concat(Vt,"-active"),In),(0,S.Z)(D,"".concat(Vt,"-selected"),Fn),(0,S.Z)(D,"".concat(Vt,"-disabled"),Jt),D)),onMouseEnter:on,onMouseLeave:Hn}),An,!jt&&o.createElement(r,{id:On,open:hn,keyPath:_n},Ke));return pn&&(bn=pn(bn,v,{selected:Fn,active:In,open:hn,disabled:Jt})),o.createElement(L,{onItemClick:wn,mode:At==="horizontal"?"vertical":At,itemIcon:En,expandIcon:Zt},bn)};function H(p){var v=p.eventKey,D=p.children,U=ne(v),k=St(D,U),X=A();o.useEffect(function(){if(X)return X.registerPath(v,U),function(){X.unregisterPath(v,U)}},[U]);var z;return X?z=k:z=o.createElement(oe,p,k),o.createElement(Q.Provider,{value:U},z)}var fe=l(76190),Ve=["className","title","eventKey","children"],ze=["children"],le=function(v){var D=v.className,U=v.title,k=v.eventKey,X=v.children,z=(0,_.Z)(v,Ve),Se=o.useContext(b),Ze=Se.prefixCls,ke="".concat(Ze,"-item-group");return o.createElement("li",(0,a.Z)({role:"presentation"},z,{onClick:function(Pe){return Pe.stopPropagation()},className:de()(ke,D)}),o.createElement("div",{role:"presentation",className:"".concat(ke,"-title"),title:typeof U=="string"?U:void 0},U),o.createElement("ul",{role:"group",className:"".concat(ke,"-list")},X))};function Ne(p){var v=p.children,D=(0,_.Z)(p,ze),U=ne(D.eventKey),k=St(v,U),X=A();return X?k:o.createElement(le,(0,ot.Z)(D,["warnKey"]),k)}function me(p){var v=p.className,D=p.style,U=o.useContext(b),k=U.prefixCls,X=A();return X?null:o.createElement("li",{role:"separator",className:de()("".concat(k,"-item-divider"),v),style:D})}var V=["label","children","key","type"];function te(p){return(p||[]).map(function(v,D){if(v&&(0,fe.Z)(v)==="object"){var U=v,k=U.label,X=U.children,z=U.key,Se=U.type,Ze=(0,_.Z)(U,V),ke=z!=null?z:"tmp-".concat(D);return X||Se==="group"?Se==="group"?o.createElement(Ne,(0,a.Z)({key:ke},Ze,{title:k}),te(X)):o.createElement(H,(0,a.Z)({key:ke},Ze,{title:k}),te(X)):Se==="divider"?o.createElement(me,(0,a.Z)({key:ke},Ze)):o.createElement(Ie,(0,a.Z)({key:ke},Ze),k)}return null}).filter(function(v){return v})}function Ce(p,v,D){var U=p;return v&&(U=te(v)),St(U,D)}var Le=["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"],Ye=[],Mt=o.forwardRef(function(p,v){var D,U,k=p,X=k.prefixCls,z=X===void 0?"rc-menu":X,Se=k.rootClassName,Ze=k.style,ke=k.className,Ke=k.tabIndex,Pe=Ke===void 0?0:Ke,rt=k.items,ht=k.children,st=k.direction,kt=k.id,It=k.mode,Tt=It===void 0?"vertical":It,ft=k.inlineCollapsed,lt=k.disabled,at=k.disabledOverflow,xt=k.subMenuOpenDelay,gt=xt===void 0?.1:xt,Nt=k.subMenuCloseDelay,yt=Nt===void 0?.1:Nt,tn=k.forceSubMenuRender,At=k.defaultOpenKeys,Gt=k.openKeys,Ut=k.activeKey,jt=k.defaultActiveFirst,Yt=k.selectable,Qt=Yt===void 0?!0:Yt,un=k.multiple,Ht=un===void 0?!1:un,nn=k.defaultSelectedKeys,rn=k.selectedKeys,sn=k.onSelect,mn=k.onDeselect,pn=k.inlineIndent,cn=pn===void 0?24:pn,gn=k.motion,_n=k.defaultMotions,Vt=k.triggerSubMenuAction,Jt=Vt===void 0?"hover":Vt,Sn=k.builtinPlacements,vn=k.itemIcon,En=k.expandIcon,Zt=k.overflowedIndicator,an=Zt===void 0?"...":Zt,hn=k.overflowedIndicatorPopupClassName,Fn=k.getPopupContainer,xn=k.onClick,yn=k.onOpenChange,Zn=k.onKeyDown,qn=k.openAnimation,Kn=k.openTransitionName,Bn=k._internalRenderMenuItem,$n=k._internalRenderSubMenuItem,Mn=(0,_.Z)(k,Le),on=o.useMemo(function(){return Ce(ht,rt,Ye)},[ht,rt]),Hn=o.useState(!1),In=(0,C.Z)(Hn,2),Nn=In[0],Vn=In[1],wn=o.useRef(),Ln=De(kt),Dn=st==="rtl",On=(0,J.Z)(At,{value:Gt,postState:function(mt){return mt||Ye}}),An=(0,C.Z)(On,2),qt=An[0],Rn=An[1],bn=function(mt){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Wt(){Rn(mt),yn==null||yn(mt)}wt?(0,G.flushSync)(Wt):Wt()},ln=o.useState(qt),en=(0,C.Z)(ln,2),mi=en[0],pi=en[1],Gn=o.useRef(!1),gi=o.useMemo(function(){return(Tt==="inline"||Tt==="vertical")&&ft?["vertical",ft]:[Tt,!1]},[Tt,ft]),ei=(0,C.Z)(gi,2),Pn=ei[0],Wn=ei[1],ti=Pn==="inline",_i=o.useState(Pn),ni=(0,C.Z)(_i,2),fn=ni[0],vi=ni[1],Ei=o.useState(Wn),ii=(0,C.Z)(Ei,2),yi=ii[0],bi=ii[1];o.useEffect(function(){vi(Pn),bi(Wn),Gn.current&&(ti?Rn(mi):bn(Ye))},[Pn,Wn]);var Ci=o.useState(0),ri=(0,C.Z)(Ci,2),Un=ri[0],Si=ri[1],Xn=Un>=on.length-1||fn!=="horizontal"||at;o.useEffect(function(){ti&&pi(qt)},[qt]),o.useEffect(function(){return Gn.current=!0,function(){Gn.current=!1}},[]);var Cn=u(),si=Cn.registerPath,ai=Cn.unregisterPath,xi=Cn.refreshOverflowKeys,oi=Cn.isSubPathKey,wi=Cn.getKeyPath,li=Cn.getKeys,Ai=Cn.getSubPathKeys,Ri=o.useMemo(function(){return{registerPath:si,unregisterPath:ai}},[si,ai]),Bi=o.useMemo(function(){return{isSubPathKey:oi}},[oi]);o.useEffect(function(){xi(Xn?Ye:on.slice(Un+1).map(function(Lt){return Lt.key}))},[Un,Xn]);var Ii=(0,J.Z)(Ut||jt&&((D=on[0])===null||D===void 0?void 0:D.key),{value:Ut}),ui=(0,C.Z)(Ii,2),kn=ui[0],Yn=ui[1],Li=R(function(Lt){Yn(Lt)}),Di=R(function(){Yn(void 0)});(0,o.useImperativeHandle)(v,function(){return{list:wn.current,focus:function(mt){var wt,Wt=li(),Xt=s(Wt,Ln),jn=Xt.elements,Qn=Xt.key2element,zi=Xt.element2key,hi=B(wn.current,jn),fi=kn!=null?kn:hi[0]?zi.get(hi[0]):(wt=on.find(function(ji){return!ji.props.disabled}))===null||wt===void 0?void 0:wt.key,Tn=Qn.get(fi);if(fi&&Tn){var Jn;Tn==null||(Jn=Tn.focus)===null||Jn===void 0||Jn.call(Tn,mt)}}}});var Oi=(0,J.Z)(nn||[],{value:rn,postState:function(mt){return Array.isArray(mt)?mt:mt==null?Ye:[mt]}}),di=(0,C.Z)(Oi,2),zn=di[0],ki=di[1],Ti=function(mt){if(Qt){var wt=mt.key,Wt=zn.includes(wt),Xt;Ht?Wt?Xt=zn.filter(function(Qn){return Qn!==wt}):Xt=[].concat((0,P.Z)(zn),[wt]):Xt=[wt],ki(Xt);var jn=(0,M.Z)((0,M.Z)({},mt),{},{selectedKeys:Xt});Wt?mn==null||mn(jn):sn==null||sn(jn)}!Ht&&qt.length&&fn!=="inline"&&bn(Ye)},Fi=R(function(Lt){xn==null||xn(it(Lt)),Ti(Lt)}),ci=R(function(Lt,mt){var wt=qt.filter(function(Xt){return Xt!==Lt});if(mt)wt.push(Lt);else if(fn!=="inline"){var Wt=Ai(Lt);wt=wt.filter(function(Xt){return!Wt.has(Xt)})}(0,re.Z)(qt,wt,!0)||bn(wt,!0)}),$i=function(mt,wt){var Wt=wt!=null?wt:!qt.includes(mt);ci(mt,Wt)},Mi=h(fn,kn,Dn,Ln,wn,li,wi,Yn,$i,Zn);o.useEffect(function(){Vn(!0)},[]);var Ni=o.useMemo(function(){return{_internalRenderMenuItem:Bn,_internalRenderSubMenuItem:$n}},[Bn,$n]),Pi=fn!=="horizontal"||at?on:on.map(function(Lt,mt){return o.createElement(L,{key:Lt.key,overflowDisabled:mt>Un},Lt)}),Ui=o.createElement(N.Z,(0,a.Z)({id:kt,ref:wn,prefixCls:"".concat(z,"-overflow"),component:"ul",itemComponent:Ie,className:de()(z,"".concat(z,"-root"),"".concat(z,"-").concat(fn),ke,(U={},(0,S.Z)(U,"".concat(z,"-inline-collapsed"),yi),(0,S.Z)(U,"".concat(z,"-rtl"),Dn),U),Se),dir:st,style:Ze,role:"menu",tabIndex:Pe,data:Pi,renderRawItem:function(mt){return mt},renderRawRest:function(mt){var wt=mt.length,Wt=wt?on.slice(-wt):null;return o.createElement(H,{eventKey:x,title:an,disabled:Xn,internalPopupClose:wt===0,popupClassName:hn},Wt)},maxCount:fn!=="horizontal"||at?N.Z.INVALIDATE:N.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(mt){Si(mt)},onKeyDown:Mi},Mn));return o.createElement(be.Provider,{value:Ni},o.createElement(we.Provider,{value:Ln},o.createElement(L,{prefixCls:z,rootClassName:Se,mode:fn,openKeys:qt,rtl:Dn,disabled:lt,motion:Nn?gn:null,defaultMotions:Nn?_n:null,activeKey:kn,onActive:Li,onInactive:Di,selectedKeys:zn,inlineIndent:cn,subMenuOpenDelay:gt,subMenuCloseDelay:yt,forceSubMenuRender:tn,builtinPlacements:Sn,triggerSubMenuAction:Jt,getPopupContainer:Fn,itemIcon:vn,expandIcon:En,onItemClick:Fi,onOpenChange:ci},o.createElement(pe.Provider,{value:Bi},Ui),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(T.Provider,{value:Ri},on)))))}),Et=Mt,Ee=Et;Ee.Item=Ie,Ee.SubMenu=H,Ee.ItemGroup=Ne,Ee.Divider=me;var ge=Ee},11780:function(ut,Re,l){"use strict";l.d(Re,{Z:function(){return We}});var a=l(54476),S=l(33885),M=l(42978),P=l(75931),C=l(59301),_=l(92310),ue=l.n(_),de=l(29301),N=l(34280),J=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],re=void 0;function Y(Z,he){var ie=Z.prefixCls,ye=Z.invalidate,se=Z.item,ae=Z.renderItem,ve=Z.responsive,Ue=Z.responsiveDisabled,$e=Z.registerSize,je=Z.itemKey,Xe=Z.className,nt=Z.style,Me=Z.children,He=Z.display,Qe=Z.order,Je=Z.component,et=Je===void 0?"div":Je,B=(0,P.Z)(Z,J),y=ve&&!He;function s(m){$e(je,m)}C.useEffect(function(){return function(){s(null)}},[]);var h=ae&&se!==re?ae(se,{index:Qe}):Me,f;ye||(f={opacity:y?0:1,height:y?0:re,overflowY:y?"hidden":re,order:ve?Qe:re,pointerEvents:y?"none":re,position:y?"absolute":re});var $={};y&&($["aria-hidden"]=!0);var d=C.createElement(et,(0,a.Z)({className:ue()(!ye&&ie,Xe),style:(0,S.Z)((0,S.Z)({},f),nt)},$,B,{ref:he}),h);return ve&&(d=C.createElement(de.Z,{onResize:function(x){var u=x.offsetWidth;s(u)},disabled:Ue},d)),d}var o=C.forwardRef(Y);o.displayName="Item";var G=o,we=l(6089),ee=l(4676),q=l(16089);function E(Z){if(typeof MessageChannel=="undefined")(0,q.Z)(Z);else{var he=new MessageChannel;he.port1.onmessage=function(){return Z()},he.port2.postMessage(void 0)}}function w(){var Z=C.useRef(null),he=function(ye){Z.current||(Z.current=[],E(function(){(0,ee.unstable_batchedUpdates)(function(){Z.current.forEach(function(se){se()}),Z.current=null})})),Z.current.push(ye)};return he}function b(Z,he){var ie=C.useState(he),ye=(0,M.Z)(ie,2),se=ye[0],ae=ye[1],ve=(0,we.Z)(function(Ue){Z(function(){ae(Ue)})});return[se,ve]}var I=C.createContext(null),L=["component"],O=["className"],T=["className"],A=function(he,ie){var ye=C.useContext(I);if(!ye){var se=he.component,ae=se===void 0?"div":se,ve=(0,P.Z)(he,L);return C.createElement(ae,(0,a.Z)({},ve,{ref:ie}))}var Ue=ye.className,$e=(0,P.Z)(ye,O),je=he.className,Xe=(0,P.Z)(he,T);return C.createElement(I.Provider,{value:null},C.createElement(G,(0,a.Z)({ref:ie,className:ue()(Ue,je)},$e,Xe)))},Q=C.forwardRef(A);Q.displayName="RawItem";var ne=Q,pe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ae="responsive",be="invalidate";function Te(Z){return"+ ".concat(Z.length," ...")}function Be(Z,he){var ie=Z.prefixCls,ye=ie===void 0?"rc-overflow":ie,se=Z.data,ae=se===void 0?[]:se,ve=Z.renderItem,Ue=Z.renderRawItem,$e=Z.itemKey,je=Z.itemWidth,Xe=je===void 0?10:je,nt=Z.ssr,Me=Z.style,He=Z.className,Qe=Z.maxCount,Je=Z.renderRest,et=Z.renderRawRest,B=Z.suffix,y=Z.component,s=y===void 0?"div":y,h=Z.itemComponent,f=Z.onVisibleChange,$=(0,P.Z)(Z,pe),d=nt==="full",m=w(),x=b(m,null),u=(0,M.Z)(x,2),R=u[0],W=u[1],ce=R||0,De=b(m,new Map),Fe=(0,M.Z)(De,2),_e=Fe[0],Oe=Fe[1],xe=b(m,0),ot=(0,M.Z)(xe,2),_t=ot[0],j=ot[1],bt=b(m,0),ct=(0,M.Z)(bt,2),vt=ct[0],it=ct[1],Rt=b(m,0),Ft=(0,M.Z)(Rt,2),Dt=Ft[0],Ct=Ft[1],Kt=(0,C.useState)(null),zt=(0,M.Z)(Kt,2),Ie=zt[0],qe=zt[1],Bt=(0,C.useState)(null),pt=(0,M.Z)(Bt,2),$t=pt[0],Pt=pt[1],St=C.useMemo(function(){return $t===null&&d?Number.MAX_SAFE_INTEGER:$t||0},[$t,R]),Ot=(0,C.useState)(!1),tt=(0,M.Z)(Ot,2),dt=tt[0],dn=tt[1],K="".concat(ye,"-item"),e=Math.max(_t,vt),t=Qe===Ae,n=ae.length&&t,i=Qe===be,r=n||typeof Qe=="number"&&ae.length>Qe,c=(0,C.useMemo)(function(){var ge=ae;return n?R===null&&d?ge=ae:ge=ae.slice(0,Math.min(ae.length,ce/Xe)):typeof Qe=="number"&&(ge=ae.slice(0,Qe)),ge},[ae,Xe,R,Qe,n]),g=(0,C.useMemo)(function(){return n?ae.slice(St+1):ae.slice(c.length)},[ae,c,n,St]),oe=(0,C.useCallback)(function(ge,p){var v;return typeof $e=="function"?$e(ge):(v=$e&&(ge==null?void 0:ge[$e]))!==null&&v!==void 0?v:p},[$e]),H=(0,C.useCallback)(ve||function(ge){return ge},[ve]);function fe(ge,p,v){$t===ge&&(p===void 0||p===Ie)||(Pt(ge),v||(dn(ge<ae.length-1),f==null||f(ge)),p!==void 0&&qe(p))}function Ve(ge,p){W(p.clientWidth)}function ze(ge,p){Oe(function(v){var D=new Map(v);return p===null?D.delete(ge):D.set(ge,p),D})}function le(ge,p){it(p),j(vt)}function Ne(ge,p){Ct(p)}function me(ge){return _e.get(oe(c[ge],ge))}(0,N.Z)(function(){if(ce&&typeof e=="number"&&c){var ge=Dt,p=c.length,v=p-1;if(!p){fe(0,null);return}for(var D=0;D<p;D+=1){var U=me(D);if(d&&(U=U||0),U===void 0){fe(D-1,void 0,!0);break}if(ge+=U,v===0&&ge<=ce||D===v-1&&ge+me(v)<=ce){fe(v,null);break}else if(ge+e>ce){fe(D-1,ge-U-Dt+vt);break}}B&&me(0)+Dt>ce&&qe(null)}},[ce,_e,vt,Dt,oe,c]);var V=dt&&!!g.length,te={};Ie!==null&&n&&(te={position:"absolute",left:Ie,top:0});var Ce={prefixCls:K,responsive:n,component:h,invalidate:i},Le=Ue?function(ge,p){var v=oe(ge,p);return C.createElement(I.Provider,{key:v,value:(0,S.Z)((0,S.Z)({},Ce),{},{order:p,item:ge,itemKey:v,registerSize:ze,display:p<=St})},Ue(ge,p))}:function(ge,p){var v=oe(ge,p);return C.createElement(G,(0,a.Z)({},Ce,{order:p,key:v,item:ge,renderItem:H,itemKey:v,registerSize:ze,display:p<=St}))},Ye={order:V?St:Number.MAX_SAFE_INTEGER,className:"".concat(K,"-rest"),registerSize:le,display:V},Mt=Je||Te,Et=et?C.createElement(I.Provider,{value:(0,S.Z)((0,S.Z)({},Ce),Ye)},et(g)):C.createElement(G,(0,a.Z)({},Ce,Ye),typeof Mt=="function"?Mt(g):Mt),Ee=C.createElement(s,(0,a.Z)({className:ue()(!i&&ye,He),style:Me,ref:he},$),c.map(Le),r?Et:null,B&&C.createElement(G,(0,a.Z)({},Ce,{responsive:t,responsiveDisabled:!n,order:St,className:"".concat(K,"-suffix"),registerSize:Ne,display:!0,style:te}),B));return t?C.createElement(de.Z,{onResize:Ve,disabled:!n},Ee):Ee}var F=C.forwardRef(Be);F.displayName="Overflow",F.Item=ne,F.RESPONSIVE=Ae,F.INVALIDATE=be;var Ge=F,We=Ge},82059:function(ut){var Re=arguments[3],l=arguments[4],a=arguments[5],S=JSON.stringify;ut.exports=function(M,P){for(var C,_=Object.keys(a),ue=0,de=_.length;ue<de;ue++){var N=_[ue],J=a[N].exports;if(J===M||J&&J.default===M){C=N;break}}if(!C){C=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var re={},ue=0,de=_.length;ue<de;ue++){var N=_[ue];re[N]=N}l[C]=["function(require,module,exports){"+M+"(self); }",re]}var Y=Math.floor(Math.pow(16,8)*Math.random()).toString(16),o={};o[C]=C,l[Y]=["function(require,module,exports){var f = require("+S(C)+");(f.default ? f.default : f)(self);}",o];var G={};we(Y);function we(I){G[I]=!0;for(var L in l[I][1]){var O=l[I][1][L];G[O]||we(O)}}var ee="("+Re+")({"+Object.keys(G).map(function(I){return S(I)+":["+l[I][0]+","+S(l[I][1])+"]"}).join(",")+"},{},["+S(Y)+"])",q=window.URL||window.webkitURL||window.mozURL||window.msURL,E=new Blob([ee],{type:"text/javascript"});if(P&&P.bare)return E;var w=q.createObjectURL(E),b=new Worker(w);return b.objectURL=w,b}}}]);