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