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

(self.webpackChunk=self.webpackChunk||[]).push([[4928],{18785:function(dt,Re,u){"use strict";u.d(Re,{Z:function(){return de}});var a=u(60499),b=u(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,v=u(7657),_=function(q,oe){return b.createElement(v.Z,(0,a.Z)({},q,{ref:oe,icon:z}))},fe=b.forwardRef(_),de=fe},33853:function(dt,Re,u){"use strict";u.d(Re,{Z:function(){return de}});var a=u(60499),b=u(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,v=u(7657),_=function(q,oe){return b.createElement(v.Z,(0,a.Z)({},q,{ref:oe,icon:z}))},fe=b.forwardRef(_),de=fe},38819:function(dt,Re,u){"use strict";u.d(Re,{Z:function(){return de}});var a=u(60499),b=u(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,v=u(7657),_=function(q,oe){return b.createElement(v.Z,(0,a.Z)({},q,{ref:oe,icon:z}))},fe=b.forwardRef(_),de=fe},20978:function(dt,Re,u){"use strict";u.d(Re,{Z:function(){return Se}});var a=u(59301),b=u(8591),P=u(38854),z=u(9667),v=u(16471),_=u(7544),fe=u(56102),de=u(1427),N={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"},q=(te,re,x)=>new Promise((w,y)=>{var M=$=>{try{U(x.next($))}catch(A){y(A)}},O=$=>{try{U(x.throw($))}catch(A){y(A)}},U=$=>$.done?w($.value):Promise.resolve($.value).then(M,O);U((x=x.apply(te,re)).next())});function oe(te){if(isNaN(te))return{minutes:"00",seconds:"00"};const re=new Date(te*1e3).toISOString().substr(11,8);return{hour:re.substr(0,2),minutes:re.substr(3,2),seconds:re.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function Q(te,re){return te-re}function o(te){te.sort(Q);let re=0;for(let x=0;x<te.length-1;x++){let w=Math.abs(te[x+1]-te[x]);w<21&&(re+=w)}return re}const W=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var Se=(0,a.forwardRef)(({allow_skip:te,src:re,toLog:x,videoId:w,logWatchHistory:y,courseId:M=null,startTime:O,handlePause:U=()=>{},handlePlay:$=()=>{},handlePlayEnded:A=()=>{},autoPlay:J=!1,onPlayEnded:ae=()=>{},isShowWaterMark:ce=!0},De)=>{var Be;const Ie=((Be=re==null?void 0:re.split("."))==null?void 0:Be.pop())==="flv",T=(0,a.useRef)(),Ve=(0,a.useRef)(),Xe=(0,a.useRef)(),H=(0,a.useRef)(),Y=(0,a.useRef)(),ke=(0,a.useRef)(),Ce=(0,a.useRef)(),le=(0,a.useRef)(),ue=(0,a.useRef)(),ve=(0,a.useRef)(),je=(0,a.useRef)(),Pe=(0,a.useRef)(),Ke=(0,a.useRef)(),at=(0,a.useRef)(),ot=navigator.userAgent.toLowerCase().match(W),Ue=ot?ot[0]:"pc",He=(0,a.useRef)(!1),Qe=(0,_.eY)();let et=0,tt=0,B=0,g=null,s=!1,h=20,p=1,F=!1,d=!1,m=[];(0,a.useImperativeHandle)(De,()=>({getLastUpdatedTime:()=>T.current.currentTime,getDuration:()=>T.current.duration})),b.ZP.config({maxCount:1,getContainer:()=>Xe.current});const E=(0,a.useCallback)((_e,Oe=!1)=>{let ye={point:T.current.currentTime};g?(ye.log_id=g,ye.watch_duration=o(m),ye.total_duration=tt):(M?(ye.video_id=parseInt(w,10),ye.course_id=M):ye.video_id=w,ye.duration=et,ye.device=Ue),Oe&&(ye.ed="1");function ut(){return q(this,null,function*(){F=!0,g=yield y==null?void 0:y(ye),F=!1,_e&&_e()})}ut()},[w,M]);(0,a.useEffect)(()=>{T.current&&(H.current.style.display="none",Y.current.style.display="block"),b.ZP.destroy();let _e=null;return z.Z.isSupported&&Ie&&re&&(re==null?void 0:re.indexOf(".m3u8"))<0?(_e=z.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:re,muted:!1}),T.current&&(_e.attachMediaElement(T.current),_e.load())):T.current.setAttribute("src",re),R(),()=>{_e&&(_e.unload(),_e.pause(),_e.destroy(),_e=null)}},[T,Ie,re]);function l(){T.current.paused?(H.current.style.display="none",Y.current.style.display="block"):(H.current.style.display="block",Y.current.style.display="none")}function R(){je.current.style.display="none",Ke.current.style.display="none",Pe.current.style.display="none",T.current.muted||T.current.volume===0?je.current.style.display="block":T.current.volume>0&&T.current.volume<=.5?Ke.current.style.display="block":Pe.current.style.display="block"}(0,a.useEffect)(()=>{const _e=document.getElementById("play"),Oe=document.querySelectorAll(".playback-icons use");function ye(){$(),O&&!He.current&&(T.current.currentTime=O),He.current=!0,m.push(T.current.currentTime),s||(s=!0,x&&E())}function ut(){return q(this,null,function*(){l(),m.push(T.current.currentTime),x&&E(()=>{g=null,B=0,s=!1,F=!1,d=!1,m=[],tt=0,p=1},!0),ae()})}function _t(){ke.current.value=Math.round(T.current.currentTime),Ce.current.value=Math.round(T.current.currentTime)}function Z(){const xe=oe(Math.round(T.current.currentTime));ue.current.innerText=`${xe.hour>0?xe.hour+":":""}${xe.minutes}:${xe.seconds}`,ue.current.setAttribute("datetime",`${xe.hour>0?" "+xe.hour+" ":""}${xe.minutes}m ${xe.seconds}s`)}function bt(){var xe,We,Rt,gt,Nt,Mt,kt;const Lt=Math.round((xe=T.current)==null?void 0:xe.duration);(Rt=(We=ke.current)==null?void 0:We.setAttribute)==null||Rt.call(We,"max",Lt),(Nt=(gt=Ce.current)==null?void 0:gt.setAttribute)==null||Nt.call(gt,"max",Lt);const Je=oe(Lt);le.current&&(le.current.innerText=`${Je.hour>0?Je.hour+":":""}${Je.minutes}:${Je.seconds}`,(kt=(Mt=le.current).setAttribute)==null||kt.call(Mt,"datetime",`${Je.hour>0?" "+Je.hour+" ":""}${Je.minutes}m ${Je.seconds}s`))}function mt(){try{const xe=Math.round(T.current.duration);ke.current.setAttribute("max",xe),Ce.current.setAttribute("max",xe);const We=oe(xe);le.current.innerText=`${We.hour>0?We.hour+":":""}${We.minutes}:${We.seconds}`,le.current.setAttribute("datetime",`${We.hour>0?" "+We.hour+" ":""}${We.minutes}m ${We.seconds}s`),_t(),Z();const{width:Rt,height:gt,x:Nt,y:Mt}=Ve.current.getBoundingClientRect();if(Nt<0||Mt<0||!Rt)return;if(!d){let kt=T.current.currentTime,Lt=kt-B;Math.abs(Lt)<10?(tt+=Math.abs(Lt),B=kt,F||tt-p*h>=0&&(p++,m.push(B),x&&E())):(B=kt,x&&E())}}catch(xe){console.log(xe)}}function xt(){d=!0}function Ye(){T.current.playing&&m.push(T.current.currentTime,B),B=T.current.currentTime,d=!1}function At(){et=T.current.duration,et<=20&&(h=et/3),T.current.addEventListener("play",ye)}function Tt(xe){xe.preventDefault(),(0,de.vp)()?(T.current.style.width="100%",T.current.style.height="100%"):T.current.style.cssText=""}function Ft(){U()}function Et(xe){if(!te){b.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const We=xe.target.dataset.seek?xe.target.dataset.seek:xe.target.value;T.current.currentTime=We,Ce.current.value=We,ke.current.value=We}function Zt(xe){const We=Math.round(xe.offsetX/xe.target.clientWidth*parseInt(xe.target.getAttribute("max"),10));ke.current.setAttribute("data-seek",We);const Rt=oe(We);ve.current.textContent=`${Rt.hour>0?Rt.hour+":":""}${Rt.minutes}:${Rt.seconds}`;const gt=T.current.getBoundingClientRect();ve.current.style.left=`${xe.pageX-gt.left}px`}function Kt(xe){switch(xe.code){case"Space":xe.preventDefault(),Ee();break;case"ArrowRight":if(xe.preventDefault(),!te){b.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(T.current.currentTime>=T.current.duration)break;T.current.currentTime=parseInt(T.current.currentTime)+5,_t();break;case"ArrowLeft":if(xe.preventDefault(),!te){b.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(T.current.currentTime===0)break;T.current.currentTime=parseInt(T.current.currentTime)-5,_t();break;case"ArrowUp":xe.preventDefault(),T.current.volume<1&&(T.current.volume=(parseInt(T.current.volume*10)+1)/10);break;case"ArrowDown":xe.preventDefault(),T.current.volume>0&&(T.current.volume=(parseInt(T.current.volume*10)-1)/10);break}}return Xe.current.addEventListener((0,de.gH)(),Tt),T.current.addEventListener("canplay",At),T.current.addEventListener("ended",ut),T.current.addEventListener("seeking",xt),T.current.addEventListener("seeked",Ye),T.current.addEventListener("loadedmetadata",bt),ke.current.addEventListener("mousemove",Zt),ke.current.addEventListener("input",Et),T.current.addEventListener("timeupdate",mt),T.current.addEventListener("pause",Ft),T.current.addEventListener("volumechange",R),document.addEventListener("keydown",Kt),()=>{var xe,We,Rt,gt,Nt,Mt,kt,Lt,Je,nt,dn,K;(xe=T.current)==null||xe.removeEventListener("canplay",At),(We=T.current)==null||We.removeEventListener("play",ye),(Rt=T.current)==null||Rt.removeEventListener("ended",ut),(gt=T.current)==null||gt.removeEventListener("seeking",xt),(Nt=T.current)==null||Nt.removeEventListener("seeked",Ye),(Mt=ke.current)==null||Mt.removeEventListener("mousemove",Zt),(kt=ke.current)==null||kt.removeEventListener("input",Et),(Lt=T.current)==null||Lt.removeEventListener("timeupdate",mt),(Je=T.current)==null||Je.removeEventListener("pause",Ft),(nt=T.current)==null||nt.removeEventListener("loadedmetadata",bt),(dn=T.current)==null||dn.removeEventListener("volumechange",R),document.removeEventListener("keydown",Kt),(K=T.current)!=null&&K.playing&&(m.push(B,T.current.currentTime),x&&E())}},[T,re]),(0,a.useEffect)(()=>{if(T.current.onended=()=>{A(T)},T.current.oncontextmenu=()=>!1,(re==null?void 0:re.indexOf(".m3u8"))>-1){if(T.current.canPlayType("application/vnd.apple.mpegurl"))T.current.src=re;else if(v.ZP.isSupported()){var _e=new v.ZP;_e.loadSource(re),_e.attachMedia(T.current)}}},[re]);const[G,me]=(0,a.useState)(1),Ee=()=>{T.current.paused||T.current.ended?T.current.play():T.current.pause(),l()};function Fe(){T.current.muted=!T.current.muted,T.current.muted?(at.current.setAttribute("data-volume",volume.value),at.current.value=0):at.current.value=at.current.dataset.volume}return a.createElement("div",{style:{position:"relative"},ref:Xe},a.createElement("div",{ref:Ve,className:`${N.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${N.animate__loop}`},ce&&Qe?Qe.login:" "),a.createElement("div",{className:N.container},a.createElement("div",{className:N["video-container"],id:"video-container"},a.createElement("div",{className:N["playback-animation"],id:"playback-animation"},a.createElement("svg",{className:N["playback-icons"]},a.createElement("use",{className:"hidden",href:"#play-icon"}),a.createElement("use",{href:"#pause"}))),a.createElement("video",{className:N.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:T,autoPlay:J}),a.createElement("div",{className:`${N["video-controls"]} `,id:"video-controls"},a.createElement("div",{className:N["bottom-controls"]},a.createElement("div",{className:N["left-controls"]},a.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Ee},a.createElement("svg",{className:N["playback-icons"]},a.createElement("use",{ref:Y,href:"#play-icon"}),a.createElement("use",{ref:H,style:{display:"none"},href:"#pause"}))),a.createElement("div",{className:N.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:N["right-controls"]},te&&a.createElement(P.Z,{placement:"top",overlayClassName:N.rateOverlay,getPopupContainer:_e=>_e.parentNode,menu:{items:[{key:"1",label:a.createElement("span",{onClick:()=>{me(1),T.current.playbackRate=1}},"1.0x")},{key:"2",label:a.createElement("span",{onClick:()=>{me(1.5),T.current.playbackRate=1.5}},"1.5x")},{key:"3",label:a.createElement("span",{onClick:()=>{me(2),T.current.playbackRate=2}},"2.0x")}]}},a.createElement("div",{className:`${N.controlText} mr5`},"\u500D\u901F")),a.createElement(fe.CopyToClipboard,{text:re,onCopy:()=>b.ZP.success("\u590D\u5236\u6210\u529F")},a.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},a.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),a.createElement("div",{className:N["volume-controls"]},a.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:N["volume-button"],id:"volume-button",onClick:Fe},a.createElement("i",{ref:je,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),a.createElement("i",{ref:Ke,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),a.createElement("i",{ref:Pe,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),a.createElement("input",{className:N.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:at,style:{display:"none"},onClick:R})),a.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:N["fullscreen-button"],onClick:()=>{(0,de.vp)()?(0,de.BU)():(0,de.Dj)(Xe.current)}},a.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),a.createElement("div",{className:N["video-progress"]},a.createElement("progress",{ref:Ce,value:"0",min:"0"}),a.createElement("input",{className:N.seek,ref:ke,value:"0",min:"0",type:"range",step:"1"}),a.createElement("div",{className:N["seek-tooltip"],ref:ve,id:"seek-tooltip"},"00:00"))))),a.createElement("svg",{style:{display:"none"}},a.createElement("defs",null,a.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},a.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),a.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},a.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),a.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},a.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),a.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},a.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),a.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},a.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),a.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},a.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),a.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},a.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),a.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},a.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},89671:function(dt,Re,u){"use strict";u.r(Re),u.d(Re,{default:function(){return re}});var a=u(59301),b=u(91482),P=u(61621),z=u(43418),v={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"},_=u(7544);const fe={init:[{stage_name:"\u521D\u59CB\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7EEA\u8BBA",parent:0,key:1},{discipline_name:"\u7EEA\u8BBA",shixun_count:"1",video_count:"2",parent:1,key:"11"},{shixun_name:"\u7EEA\u8BBA1",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f066ae1a9a8f418f837e5bf8d02b2690/76df907c20efd95bea0fa23424f10693-hd.m3u8",parent:"11",key:"111"},{shixun_name:"\u7EEA\u8BBA2",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/068ca7853da448c794eeffb0dee8bed4/5bb446a882043683e37474ff408f601b-hd.m3u8",parent:"11",key:"112"},{shixun_name:"C++\u5F00\u53D1\u73AF\u5883\u5E94\u7528\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/zxb937qn/challenges",parent:"11",key:"113"},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:2},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:2,key:"21"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"21",key:"212"},{discipline_name:"\u5224\u65AD\u8BED\u53E5",shixun_count:"2",video_count:"2",parent:2,key:"22"},{shixun_name:"if\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/3b4e821b200443948c553e4c6b51d940/b9601216238e60440192c2deb58adc53-hd.m3u8",parent:"22",key:"221"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08if\u591A\u91CD\u9009\u62E9\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/23xkyrmn/challenges",parent:"22",key:"222"},{shixun_name:"switch\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/3b4e821b200443948c553e4c6b51d940/b9601216238e60440192c2deb58adc53-hd.m3u8",parent:"22",key:"223"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"22",key:"224"},{discipline_name:"\u5FAA\u73AF",shixun_count:"2",video_count:"2",parent:2,key:"23"},{shixun_name:"while\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/dda06371a1594f5d865479a0fadc77bb/cb504e3af36ebe2ba979e8fe5fbb2222-hd.m3u8",parent:"23",key:"231"},{shixun_name:"C++\u5FAA\u73AF\u7ED3\u6784\u2014\u2014\uFF08\u719F\u6089while\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/8yhf4sn6/challenges",parent:"23",key:"232"},{shixun_name:"for\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/503194c483f44ccfacc7f9ee14cda70a/36cbd964c6657d1bbc43eb33b98f0c51-hd.m3u8",parent:"23",key:"233"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"23",key:"234"},{stage_name:"\u51FD\u6570",parent:0,key:3},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"31",key:"311"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"31",key:"312"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"31",key:"313"},{discipline_name:"\u4F20\u8F93\u4F20\u9012",shixun_count:"2",video_count:"1",parent:3,key:"32"},{shixun_name:"\u51FD\u6570\u7684\u53C2\u6570",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"32",key:"321"},{shixun_name:"C++\u53C2\u6570\u4F20\u90121",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/2phrn8yk/challenges",parent:"32",key:"322"},{shixun_name:"C++\u53C2\u6570\u4F20\u90122",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xsq7p4a6/challenges",parent:"32",key:"323"},{discipline_name:"\u51FD\u6570\u91CD\u8F7D",shixun_count:"1",video_count:"1",parent:3,key:"33"},{shixun_name:"\u51FD\u6570\u91CD\u8F7D",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"33",key:"331"},{shixun_name:"C++\u51FD\u6570\u91CD\u8F7D",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/6hbqpv7e/challenges",parent:"33",key:"332"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"34"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"34",key:"341"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"34",key:"342"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"34",key:"343"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:4},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"41",key:"411"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"41",key:"412"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"41",key:"413"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:5},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"51",key:"511"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"51",key:"512"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:6},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:6,key:"61"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"61",key:"611"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"61",key:"612"},{discipline_name:"\u6307\u9488",shixun_count:"3",video_count:"1",parent:6,key:"62"},{shixun_name:"\u6307\u9488",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/00a5448862c84c42b1a369ac2be88ae9/9b9627710a725e570ede478663c2589d-hd.m3u8",parent:"62",key:"621"},{shixun_name:"\u6307\u9488\u7EC3\u624B-\u5B57\u7B26\u4E32\u5012\u5E8F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lkn6xuc3/challenges",parent:"62",key:"622"},{shixun_name:"\u6307\u9488\u6570\u7EC4-\u5355\u8BCD\u5012\u5E8F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/vtk73ny2/challenges",parent:"62",key:"623"},{shixun_name:"\u7528\u6307\u9488\u89E3\u51B3\u95EE\u9898-\u6587\u672C\u683C\u5F0F\u5904\u7406",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xfnp73fz/challenges",parent:"62",key:"624"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:7},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"1",video_count:"3",parent:7,key:"71"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(3)",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7806?subject_id=jpl5vs26",parent:"71",key:"713"},{shixun_name:"\u7EE7\u627F\u4E0E\u6D3E\u751F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/f83ipgyo/challenges",parent:"71",key:"714"},{stage_name:"\u591A\u6001\u6027",parent:0,key:8},{discipline_name:"\u591A\u6001\u6027",shixun_count:"1",video_count:"2",parent:8,key:"81"},{shixun_name:"\u591A\u6001\u6027(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/5a960b51ebf346d2b77afb3b70d00768/73d6fa00824f4c73b885d33f688c3294-hd.m3u8",parent:"81",key:"811"},{shixun_name:"\u591A\u6001\u6027(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/08fe97a36e184cf1bf27cdd7a24794c9/625c4e9e863840443f5332ccc02761fc-hd.m3u8",parent:"81",key:"812"},{shixun_name:"\u865A\u51FD\u6570\u4E0E\u591A\u6001\u6027",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/9pjmg7uf/challenges",parent:"81",key:"813"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:9},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"1",video_count:"3",parent:9,key:"91"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/459f2693af7b48f8b854033e666a77f8/f5b140c5adc0f24ac56b72492373306a-hd.m3u8",parent:"91",key:"912"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(3)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/ccea50bc15d2468aab99aff19eb69e16/a5ecac1ee0c07360d07880187a787085-hd.m3u8",parent:"91",key:"913"},{shixun_name:"\u7FA4\u4F53\u7C7B\u548C\u7FA4\u4F53\u6570\u636E\u7684\u7EC4\u7EC7",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/kfv3my9o/challenges",parent:"91",key:"914"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:10},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"1",video_count:"3",parent:10,key:"101"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"101",key:"1011"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/23be6a61e4e54db398b9172b1213a1f2/3f1e88f97957369e29ef2bde63640004-hd.m3u8",parent:"101",key:"1012"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(3)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/a5887adcc34445bba695de7dcadb781e/0fb3a6a6ad38f7a107054c5f2f0de262-hd.m3u8",parent:"101",key:"1013"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hmtw5iq6/challenges",parent:"101",key:"1014"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA11",parent:0,key:1911},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"1",video_count:"2",parent:1911,key:9111},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)22222",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:9111,key:"91111"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/65c02365a4ad40858b69b8cbe3ca4aa1/18a2c5697d4a84a971c500565509f038-hd.m3u8",parent:"9111",key:"91112"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hsvuixpm/challenges",parent:"9111",key:"91113"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:12},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:12,key:"121"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"121",key:"1211"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"121",key:"1212"}].map(x=>(x.parent=Number(x.parent),x.key=Number(x.key),x)),review:[{stage_name:"\u590D\u4E60\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:1},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:1,key:"11"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"11",key:"111"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"11",key:"112"},{discipline_name:"\u5FAA\u73AF",shixun_count:"2",video_count:"2",parent:1,key:"12"},{shixun_name:"while\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/dda06371a1594f5d865479a0fadc77bb/cb504e3af36ebe2ba979e8fe5fbb2222-hd.m3u8",parent:"12",key:"121"},{shixun_name:"C++\u5FAA\u73AF\u7ED3\u6784\u2014\u2014\uFF08\u719F\u6089while\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/8yhf4sn6/challenges",parent:"12",key:"122"},{shixun_name:"for\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/503194c483f44ccfacc7f9ee14cda70a/36cbd964c6657d1bbc43eb33b98f0c51-hd.m3u8",parent:"12",key:"123"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"12",key:"124"},{stage_name:"\u51FD\u6570",parent:0,key:2},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:2,key:"21"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"21",key:"212"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"21",key:"213"},{discipline_name:"\u4F20\u8F93\u4F20\u9012",shixun_count:"2",video_count:"1",parent:2,key:"22"},{shixun_name:"\u51FD\u6570\u7684\u53C2\u6570",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"22",key:"221"},{shixun_name:"C++\u53C2\u6570\u4F20\u90121",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/2phrn8yk/challenges",parent:"22",key:"222"},{shixun_name:"C++\u53C2\u6570\u4F20\u90122",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xsq7p4a6/challenges",parent:"22",key:"223"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"2",parent:2,key:"23"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"23",key:"231"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"23",key:"232"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"23",key:"233"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:3},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"31",key:"311"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"31",key:"312"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"31",key:"313"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:4},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"41",key:"411"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"41",key:"412"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:5},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"51",key:"511"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"51",key:"512"},{discipline_name:"\u6307\u9488",shixun_count:"1",video_count:"1",parent:5,key:"52"},{shixun_name:"\u6307\u9488",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/00a5448862c84c42b1a369ac2be88ae9/9b9627710a725e570ede478663c2589d-hd.m3u8",parent:"52",key:"521"},{shixun_name:"\u7528\u6307\u9488\u89E3\u51B3\u95EE\u9898-\u6587\u672C\u683C\u5F0F\u5904\u7406",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xfnp73fz/challenges",parent:"52",key:"522"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:6},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"0",video_count:"2",parent:6,key:"61"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"61",key:"611"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"61",key:"612"},{stage_name:"\u591A\u6001\u6027",parent:0,key:7},{discipline_name:"\u591A\u6001\u6027",shixun_count:"1",video_count:"2",parent:7,key:"71"},{shixun_name:"\u591A\u6001\u6027(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/5a960b51ebf346d2b77afb3b70d00768/73d6fa00824f4c73b885d33f688c3294-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u591A\u6001\u6027(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/08fe97a36e184cf1bf27cdd7a24794c9/625c4e9e863840443f5332ccc02761fc-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u865A\u51FD\u6570\u4E0E\u591A\u6001\u6027",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/9pjmg7uf/challenges",parent:"71",key:"713"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:8},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"1",video_count:"1",parent:8,key:"81"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"81",key:"811"},{shixun_name:"\u7FA4\u4F53\u7C7B\u548C\u7FA4\u4F53\u6570\u636E\u7684\u7EC4\u7EC7",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/kfv3my9o/challenges",parent:"81",key:"812"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:9},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"1",video_count:"1",parent:9,key:"91"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hmtw5iq6/challenges",parent:"91",key:"912"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",parent:0,key:10},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"0",video_count:"2",parent:10,key:"101"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:"101",key:"1011"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/65c02365a4ad40858b69b8cbe3ca4aa1/18a2c5697d4a84a971c500565509f038-hd.m3u8",parent:"101",key:"1012"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hsvuixpm/challenges",parent:"101",key:"1013"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:9911},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:9911,key:"99111"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"99111",key:"991111"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"99111",key:"991112"}].map(x=>(x.parent=Number(x.parent),x.key=Number(x.key),x)),before:[{stage_name:"\u8003\u524D\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7EEA\u8BBA",parent:0,key:1},{discipline_name:"\u7EEA\u8BBA",shixun_count:"1",video_count:"2",parent:1,key:"11"},{shixun_name:"\u7EEA\u8BBA1",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f066ae1a9a8f418f837e5bf8d02b2690/76df907c20efd95bea0fa23424f10693-hd.m3u8",parent:"11",key:"111"},{shixun_name:"\u7EEA\u8BBA2",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/068ca7853da448c794eeffb0dee8bed4/5bb446a882043683e37474ff408f601b-hd.m3u8",parent:"11",key:"112"},{shixun_name:"C++\u5F00\u53D1\u73AF\u5883\u5E94\u7528\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/zxb937qn/challenges",parent:"11",key:"113"},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:2},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:2,key:"21"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"21",key:"212"},{stage_name:"\u51FD\u6570",parent:0,key:3},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"31",key:"311"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"31",key:"312"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"31",key:"313"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"32"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"32",key:"321"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"32",key:"322"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"32",key:"323"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:4},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"41",key:"411"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"41",key:"412"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"41",key:"413"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:5},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"51",key:"511"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"51",key:"512"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:6},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:6,key:"61"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"61",key:"611"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"61",key:"612"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:7},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"1",video_count:"3",parent:7,key:"71"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(3)",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7806?subject_id=jpl5vs26",parent:"71",key:"713"},{shixun_name:"\u7EE7\u627F\u4E0E\u6D3E\u751F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/f83ipgyo/challenges",parent:"71",key:"714"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:8},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"0",video_count:"1",parent:8,key:"81"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"81",key:"811"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:9},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"0",video_count:"1",parent:9,key:"91"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/23be6a61e4e54db398b9172b1213a1f2/3f1e88f97957369e29ef2bde63640004-hd.m3u8",parent:"91",key:"912"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",parent:0,key:10},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"0",video_count:"1",parent:10,key:"101"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:"101",key:"1011"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:9911},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:9911,key:"99111"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"99111",key:"991111"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"99111",key:"991112"}].map(x=>(x.parent=Number(x.parent),x.key=Number(x.key),x))};var de=u(52766),N=u(20978),q=Object.defineProperty,oe=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,W=(x,w,y)=>w in x?q(x,w,{enumerable:!0,configurable:!0,writable:!0,value:y}):x[w]=y,Se=(x,w)=>{for(var y in w||(w={}))Q.call(w,y)&&W(x,y,w[y]);if(oe)for(var y of oe(w))o.call(w,y)&&W(x,y,w[y]);return x};const te=({classroomList:x,loading:w,dispatch:y})=>{const[M]=(0,b.useSearchParams)(),[O]=(0,a.useState)(Se({},(0,b.useParams)())),[U,$]=(0,a.useState)("init"),[A,J]=(0,a.useState)(""),ae=(0,a.useRef)();(0,a.useEffect)(()=>{const Ie=M.get("tabId");Ie&&($(Ie),O.status=Ie)},[O.categoryId,M.get("tabId")]);const ce=Ie=>{$(Ie.key)},De=[{name:"\u521D\u59CB\u5B66\u4E60",id:"init"},{name:"\u590D\u4E60\u5B66\u4E60",id:"review"},{name:"\u8003\u524D\u5B66\u4E60",id:"before"}],Be=Ie=>{Ie.data.type==="playVideo"&&J(Ie.data.url)};(0,a.useEffect)(()=>{U&&Te(),window.addEventListener("message",Be)},[U]);const Te=()=>{var Ie;(Ie=ae.current.contentWindow)==null||Ie.postMessage({data:fe[U]},"*")};return a.createElement("section",null,a.createElement(de.Z,{isLoading:w["classroomList/getClassroomAttendancesList"],tabDataSource:De,isAdmin:(0,_.GJ)(),onTabMenuClick:ce,defaultSelectedKeys:[U]}),a.createElement("section",null,a.createElement(P.Z,{loading:w["classroomList/getClassroomAttendancesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},a.createElement("iframe",{src:"/knowledgegraph/parseTree.html",onLoad:Te,className:v.iframe,ref:ae}))),a.createElement(z.default,{open:!!A,onCancel:()=>J(""),width:800,footer:null,bodyStyle:{padding:0},centered:!0,destroyOnClose:!0},a.createElement(N.Z,{src:A,autoPlay:!0,toLog:!1})))};var re=(0,b.connect)(({classroomList:x,loading:w,globalSetting:y})=>({classroomList:x,globalSetting:y,loading:w.effects}))(te)},52766:function(dt,Re,u){"use strict";u.d(Re,{Z:function(){return Q}});var a=u(59301),b=u(95237),P=u(43604),z=u(20834),v=u(38854),_=u(8591),fe=u(6848),de={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},N=u(91482),q=u(7544),Q=({isLoading:o,addText:W,tabDataSource:Se,isAdmin:te,dispatch:re,classroomList:x,type:w,isExercise:y,defaultSelectedKeys:M,onTabMenuClick:O,getDropdownMenu:U,showControlButton:$,buttonText:A,buttonIcon:J="icon-tianjiadaohang",extraNode:ae,user:ce,onButtonClick:De,isModelUser:Be})=>{var Te,Ie,T,Ve,Xe;const H=(0,N.useParams)();return a.createElement("div",{className:de.tabMenuContainer},a.createElement(b.Z,null,a.createElement(P.Z,{flex:"1"},a.createElement(z.default,{onSelect:Y=>o?{}:O(Y),mode:"horizontal",selectedKeys:M},Se.map(Y=>a.createElement(z.default.Item,{key:typeof Y.index=="number"?Y.index:Y.id},a.createElement("span",{className:"c-grey-666"},Y.name),Y.total!==void 0&&te&&a.createElement("span",{className:"c-grey-999 ml20"},Y.total||0))))),te&&y&&a.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{re({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),te&&a.createElement(P.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},y&&a.createElement(v.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>a.createElement(z.default,null,a.createElement(z.default.Item,{key:1,onClick:()=>{var Y;if((0,q.Rm)()&&!((Y=x.AssistantObject.exercise)!=null&&Y.can_download)){_.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}re({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:w,exportType:"exercise",category_id:H.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),a.createElement(z.default.Item,{key:3,onClick:()=>{var Y;if((0,q.Rm)()&&!((Y=x.AssistantObject.exercise)!=null&&Y.can_download)){_.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}N.history.push(`/classrooms/${H==null?void 0:H.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},ae),$&&(A=="\u6DFB\u52A0\u76F4\u64AD"?a.createElement(v.Z,{menu:{items:(Ie=(Te=[{label:a.createElement("div",{onClick:()=>{De("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Be&&{label:a.createElement("div",{onClick:()=>{De("\u5934\u6B4C")}},"\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:Te.filter(Y=>Y==null?void 0:Y.show))==null?void 0:Ie.map(Y=>({label:Y==null?void 0:Y.label,key:Y==null?void 0:Y.key}))}},a.createElement("span",{className:de.selectBtn},a.createElement("span",null,a.createElement("i",{className:`iconfont ${J}`})),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 ${J}`})),a.createElement("span",null,A))),!!U&&a.createElement(v.Z,{disabled:((T=ce==null?void 0:ce.userInfo)==null?void 0:T.user_status)===2,className:"ml10",dropdownRender:U},a.createElement("span",{className:((Ve=ce==null?void 0:ce.userInfo)==null?void 0:Ve.user_status)===2?de.selectBtn1:de.selectBtn},a.createElement("span",null,a.createElement("i",{className:"iconfont icon-tianjiadaohang"})),a.createElement(fe.Z,{title:((Xe=ce==null?void 0:ce.userInfo)==null?void 0:Xe.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,W||"\u521B\u5EFA\u8BD5\u5377"))))))))}},1427:function(dt,Re,u){"use strict";u.d(Re,{BU:function(){return b},Dj:function(){return a},gH:function(){return P},vp:function(){return z}});function a(v){try{v.mozRequestFullScreen?v.mozRequestFullScreen():v.webkitRequestFullScreen&&v.webkitRequestFullScreen()}catch(_){console.log(_,":e")}}function b(){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 v=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,_=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",v),window.isFullScreen?window.isFullScreen:v!=null}},9667:function(dt,Re,u){"use strict";u.d(Re,{Z:function(){return dn}});class a{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");let t=Object(e);for(let n=1;n<arguments.length;n++){let i=arguments[n];if(i!=null)for(let r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t},typeof self.Promise!="function"&&u(3867).polyfill()}}a.install();var b=a,P=u(86204),z=u.n(P);class v{static e(e,t){(!e||v.FORCE_GLOBAL_TAG)&&(e=v.GLOBAL_TAG);let n=`[${e}] > ${t}`;v.ENABLE_CALLBACK&&v.emitter.emit("log","error",n),v.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}static i(e,t){(!e||v.FORCE_GLOBAL_TAG)&&(e=v.GLOBAL_TAG);let n=`[${e}] > ${t}`;v.ENABLE_CALLBACK&&v.emitter.emit("log","info",n),v.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}static w(e,t){(!e||v.FORCE_GLOBAL_TAG)&&(e=v.GLOBAL_TAG);let n=`[${e}] > ${t}`;v.ENABLE_CALLBACK&&v.emitter.emit("log","warn",n),v.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}static d(e,t){(!e||v.FORCE_GLOBAL_TAG)&&(e=v.GLOBAL_TAG);let n=`[${e}] > ${t}`;v.ENABLE_CALLBACK&&v.emitter.emit("log","debug",n),v.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}static v(e,t){(!e||v.FORCE_GLOBAL_TAG)&&(e=v.GLOBAL_TAG);let n=`[${e}] > ${t}`;v.ENABLE_CALLBACK&&v.emitter.emit("log","verbose",n),v.ENABLE_VERBOSE&&console.log(n)}}v.GLOBAL_TAG="flv.js",v.FORCE_GLOBAL_TAG=!1,v.ENABLE_ERROR=!0,v.ENABLE_INFO=!0,v.ENABLE_WARN=!0,v.ENABLE_DEBUG=!0,v.ENABLE_VERBOSE=!0,v.ENABLE_CALLBACK=!1,v.emitter=new(z());var _=v;class fe{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=fe;class N{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class q extends N{constructor(e){super(e)}get name(){return"IllegalStateException"}}class oe extends N{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class Q extends N{constructor(e){super(e)}get name(){return"NotImplementedException"}}const o={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},W={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class Se{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 Q("Unimplemented abstract function!")}abort(){throw new Q("Unimplemented abstract function!")}}let te={};function re(){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 te)te.hasOwnProperty(r)&&delete te[r];Object.assign(te,i)}re();var x=te;class w extends Se{static isSupported(){try{let e=x.msedge&&x.version.minor>=15048,t=x.msedge?e:!0;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}}constructor(e,t){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let n=e.url;this._config.reuseRedirectedURL&&e.redirectedURL!=null&&(n=e.redirectedURL);let i=this._seekHandler.getConfig(n,t),r=new self.Headers;if(typeof i.headers=="object"){let f=i.headers;for(let ee in f)f.hasOwnProperty(ee)&&r.append(ee,f[ee])}let c={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&&(c.mode="same-origin"),e.withCredentials&&(c.credentials="include"),e.referrerPolicy&&(c.referrerPolicy=e.referrerPolicy),this._status=o.kConnecting,self.fetch(i.url,c).then(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 V=this._seekHandler.removeURLParameters(f.url);this._onURLRedirect(V)}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(W.HTTP_STATUS_CODE_INVALID,{code:f.status,msg:f.statusText});else throw new N("FetchStreamLoader: Http code invalid, "+f.status+" "+f.statusText)}).catch(f=>{if(this._status=o.kError,this._onError)this._onError(W.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=W.EARLY_EOF,i={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(n,i);else throw new N(i.msg)}else this._status=o.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1);else{if(this._requestAbort===!0)return this._requestAbort=!1,this._status=o.kComplete,e.cancel();this._status=o.kBuffering;let n=t.value.buffer,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),this._pump(e)}}).catch(t=>{if(t.code===11&&x.msedge)return;this._status=o.kError;let n=0,i=null;if((t.code===19||t.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(n=W.EARLY_EOF,i={code:t.code,msg:"Fetch stream meet Early-EOF"}):(n=W.EXCEPTION,i={code:t.code,msg:t.message}),this._onError)this._onError(n,i);else throw new N(i.msg)})}}var y=w;class M extends Se{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="moz-chunked-arraybuffer",e.responseType==="moz-chunked-arraybuffer"}catch(e){return _.w("MozChunkedLoader",e.message),!1}}constructor(e,t){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let n=e.url;this._config.reuseRedirectedURL&&e.redirectedURL!=null&&(n=e.redirectedURL);let i=this._seekHandler.getConfig(n,t);this._requestURL=i.url;let r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="moz-chunked-arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onloadend=this._onLoadEnd.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),typeof i.headers=="object"){let c=i.headers;for(let f in c)c.hasOwnProperty(f)&&r.setRequestHeader(f,c[f])}if(typeof this._config.headers=="object"){let c=this._config.headers;for(let f in c)c.hasOwnProperty(f)&&r.setRequestHeader(f,c[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(W.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new N("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);else this._status=o.kBuffering}}_onProgress(e){if(this._status===o.kError)return;this._contentLength===null&&e.total!==null&&e.total!==0&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let t=e.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}_onLoadEnd(e){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===o.kError)return;this._status=o.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(e){this._status=o.kError;let t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=W.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=W.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new N(n.msg)}}var O=M;class U extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="ms-stream",e.responseType==="ms-stream"}catch(e){return Log.w("MSStreamLoader",e.message),!1}}constructor(e,t){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(e,t){this._internalOpen(e,t,!1)}_internalOpen(e,t,n){this._dataSource=e,n?this._currentRange=t:this._totalRange=t;let i=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?i=this._currentRedirectedURL:e.redirectedURL!=null&&(i=e.redirectedURL));let r=this._seekHandler.getConfig(i,t);this._currentRequestURL=r.url;let c=this._reader=new self.MSStreamReader;c.onprogress=this._msrOnProgress.bind(this),c.onload=this._msrOnLoad.bind(this),c.onerror=this._msrOnError.bind(this);let 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 V in ee)ee.hasOwnProperty(V)&&f.setRequestHeader(V,ee[V])}if(typeof this._config.headers=="object"){let ee=this._config.headers;for(let V in ee)ee.hasOwnProperty(V)&&f.setRequestHeader(V,ee[V])}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 $=null;class A extends Se{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer",e.responseType==="arraybuffer"}catch(e){return _.w("RangeLoader",e.message),!1}}constructor(e,t){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=e,this._config=t,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new de,this._requestAbort=!1,this._waitForTotalLength=!1,this._totalLengthReceived=!1,this._currentRequestURL=null,this._currentRedirectedURL=null,this._currentRequestRange=null,this._totalLength=null,this._contentLength=null,this._receivedLength=0,this._lastTimeLoaded=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}get currentSpeed(){return this._speedSampler.lastSecondKBps}open(e,t){this._dataSource=e,this._range=t,this._status=o.kConnecting;let n=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(n=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!n?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let e=this._currentChunkSizeKB*1024,t=this._range.from+this._receivedLength,n=t+e;this._contentLength!=null&&n-this._range.from>=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(e,t){this._lastTimeLoaded=0;let n=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?n=this._currentRedirectedURL:e.redirectedURL!=null&&(n=e.redirectedURL));let i=this._seekHandler.getConfig(n,t);this._currentRequestURL=i.url;let r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onload=this._onLoad.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),typeof i.headers=="object"){let c=i.headers;for(let f in c)c.hasOwnProperty(f)&&r.setRequestHeader(f,c[f])}if(typeof this._config.headers=="object"){let c=this._config.headers;for(let f in c)c.hasOwnProperty(f)&&r.setRequestHeader(f,c[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(W.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new N("RangeLoader: Http code invalid, "+t.status+" "+t.statusText)}}_onProgress(e){if(this._status===o.kError)return;if(this._contentLength===null){let n=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,n=!0;let i=e.total;this._internalAbort(),i!=null&i!==0&&(this._totalLength=i)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,n){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let t=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(t)}_normalizeSpeed(e){let t=this._chunkSizeKBList,n=t.length-1,i=0,r=0,c=n;if(e<t[0])return t[0];for(;r<=c;){if(i=r+Math.floor((c-r)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?r=i+1:c=i-1}}_onLoad(e){if(this._status===o.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let t=this._speedSampler.lastSecondKBps;if(t===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(t=this._speedSampler.currentKBps)),t!==0){let c=this._normalizeSpeed(t);this._currentSpeedNormalized!==c&&(this._currentSpeedNormalized=c,this._currentChunkSizeKB=c)}let n=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength;let r=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():r=!0,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),r&&(this._status=o.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(e){this._status=o.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=W.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=W.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new N(n.msg)}}var J=A;class ae extends Se{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(W.EXCEPTION,n);else throw new N(n.msg)}}abort(){let e=this._ws;e&&(e.readyState===0||e.readyState===1)&&(this._requestAbort=!0,e.close()),this._ws=null,this._status=o.kComplete}_onWebSocketOpen(e){this._status=o.kBuffering}_onWebSocketClose(e){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=o.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(e){if(e.data instanceof ArrayBuffer)this._dispatchArrayBuffer(e.data);else if(e.data instanceof Blob){let t=new FileReader;t.onload=()=>{this._dispatchArrayBuffer(t.result)},t.readAsArrayBuffer(e.data)}else{this._status=o.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(this._onError)this._onError(W.EXCEPTION,t);else throw new N(t.msg)}}_dispatchArrayBuffer(e){let t=e,n=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}_onWebSocketError(e){this._status=o.kError;let t={code:e.code,msg:e.message};if(this._onError)this._onError(W.EXCEPTION,t);else throw new N(t.msg)}}var ce=ae;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 Be=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 c=n.split("&");for(let f=0;f<c.length;f++){let ee=c[f].split("="),V=f>0;ee[0]!==this._startName&&ee[0]!==this._endName&&(V&&(r+="&"),r+=c[f])}}return r.length===0?t:t+"?"+r}}var Ie=Te;class T{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===J?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if(e.seekType==="range")this._seekHandler=new Be(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new Ie(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=ce;else if(y.isSupported())this._loaderClass=y;else if(O.isSupported())this._loaderClass=O;else if(J.isSupported())this._loaderClass=J;else throw new N("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}}seek(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)}_internalSeek(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;let n={from:e,to:-1};this._currentRange={from:n.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,n),this._onSeeked&&this._onSeeked()}updateUrl(e){if(!e||typeof e!="string"||e.length===0)throw new 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,c=n;if(e<t[0])return t[0];for(;r<=c;){if(i=r+Math.floor((c-r)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?r=i+1:c=i-1}}_adjustStashSize(e){let t=0;this._config.isLive||e<512?t=e:e>=512&&e<=1024?t=Math.floor(e*1.5):t=e*2,t>8192&&(t=8192);let n=t*1024+1024*1024*1;this._bufferSize<n&&this._expandBuffer(n),this._stashSize=t*1024}_dispatchChunks(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)}_onURLRedirect(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)}_onContentLengthKnown(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)}_onLoaderChunkArrival(e,t,n){if(!this._onDataArrival)throw new q("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(e.byteLength);let i=this._speedSampler.lastSecondKBps;if(i!==0){let r=this._normalizeSpeed(i);this._speedNormalized!==r&&(this._speedNormalized=r,this._adjustStashSize(r))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=t),this._stashUsed+e.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;else{let r=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let c=this._stashBuffer.slice(0,this._stashUsed),f=this._dispatchChunks(c,this._stashByteStart);if(f<c.byteLength){if(f>0){let ee=new Uint8Array(c,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 c=this._dispatchChunks(e,t);if(c<e.byteLength){let f=e.byteLength-c;f>this._bufferSize&&(this._expandBuffer(f),r=new Uint8Array(this._stashBuffer,0,this._bufferSize)),r.set(new Uint8Array(e,c),0),this._stashUsed+=f,this._stashByteStart=t+c}}}else if(this._stashUsed===0){let r=this._dispatchChunks(e,t);if(r<e.byteLength){let c=e.byteLength-r;c>this._bufferSize&&this._expandBuffer(c),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,r),0),this._stashUsed+=c,this._stashByteStart=t+r}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let r=new Uint8Array(this._stashBuffer,0,this._bufferSize);r.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let c=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(c<this._stashUsed&&c>0){let f=new Uint8Array(this._stashBuffer,c);r.set(f,0)}this._stashUsed-=c,this._stashByteStart+=c}}_flushStashBuffer(e){if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),i=t.byteLength-n;if(n<t.byteLength)if(e)_.w(this.TAG,`${i} bytes unconsumed data remain when flush buffer, dropped`);else{if(n>0){let r=new Uint8Array(this._stashBuffer,0,this._bufferSize),c=new Uint8Array(t,n);r.set(c,0),this._stashUsed=c.byteLength,this._stashByteStart+=n}return 0}return this._stashUsed=0,this._stashByteStart=0,i}return 0}_onLoaderComplete(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(e,t){switch(_.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=W.UNRECOVERABLE_EARLY_EOF),e){case W.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let n=this._currentRange.to+1;n<this._totalLength&&(_.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1));return}e=W.UNRECOVERABLE_EARLY_EOF;break}case W.UNRECOVERABLE_EARLY_EOF:case W.CONNECTING_TIMEOUT:case W.HTTP_STATUS_CODE_INVALID:case W.EXCEPTION:break}if(this._onError)this._onError(e,t);else throw new N("IOException: "+t.msg)}}var Ve=T;const Xe={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({},Xe)}class Y{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){Y.videoElement==null&&(Y.videoElement=window.document.createElement("video"));let t=Y.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=Y.supportMSEH264Playback(),e.networkStreamIO=Y.supportNetworkStreamIO(),e.networkLoaderName=Y.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=Y.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=Y.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=Y.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var ke=Y,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 _.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){_.FORCE_GLOBAL_TAG=e,ue._notifyChange()}static get globalTag(){return _.GLOBAL_TAG}static set globalTag(e){_.GLOBAL_TAG=e,ue._notifyChange()}static get enableAll(){return _.ENABLE_VERBOSE&&_.ENABLE_DEBUG&&_.ENABLE_INFO&&_.ENABLE_WARN&&_.ENABLE_ERROR}static set enableAll(e){_.ENABLE_VERBOSE=e,_.ENABLE_DEBUG=e,_.ENABLE_INFO=e,_.ENABLE_WARN=e,_.ENABLE_ERROR=e,ue._notifyChange()}static get enableDebug(){return _.ENABLE_DEBUG}static set enableDebug(e){_.ENABLE_DEBUG=e,ue._notifyChange()}static get enableVerbose(){return _.ENABLE_VERBOSE}static set enableVerbose(e){_.ENABLE_VERBOSE=e,ue._notifyChange()}static get enableInfo(){return _.ENABLE_INFO}static set enableInfo(e){_.ENABLE_INFO=e,ue._notifyChange()}static get enableWarn(){return _.ENABLE_WARN}static set enableWarn(e){_.ENABLE_WARN=e,ue._notifyChange()}static get enableError(){return _.ENABLE_ERROR}static set enableError(e){_.ENABLE_ERROR=e,ue._notifyChange()}static getConfig(){return{globalTag:_.GLOBAL_TAG,forceGlobalTag:_.FORCE_GLOBAL_TAG,enableVerbose:_.ENABLE_VERBOSE,enableDebug:_.ENABLE_DEBUG,enableInfo:_.ENABLE_INFO,enableWarn:_.ENABLE_WARN,enableError:_.ENABLE_ERROR,enableCallback:_.ENABLE_CALLBACK}}static applyConfig(e){_.GLOBAL_TAG=e.globalTag,_.FORCE_GLOBAL_TAG=e.forceGlobalTag,_.ENABLE_VERBOSE=e.enableVerbose,_.ENABLE_DEBUG=e.enableDebug,_.ENABLE_INFO=e.enableInfo,_.ENABLE_WARN=e.enableWarn,_.ENABLE_ERROR=e.enableError,_.ENABLE_CALLBACK=e.enableCallback}static _notifyChange(){let e=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){_.emitter.addListener("log",e),_.emitter.listenerCount("log")>0&&(_.ENABLE_CALLBACK=!0,ue._notifyChange())}static removeLogListener(e){_.emitter.removeListener("log",e),_.emitter.listenerCount("log")===0&&(_.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,c=0,f=i;for(t<e[0]&&(n=0,c=f+1);c<=f;)if(r=c+Math.floor((f-c)/2),r===i||t>=e[r]&&t<e[r+1]){n=r;break}else e[r]<t?c=r+1:f=r-1;return n}}var Pe=je;function Ke(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 at(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(Ke(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(Ke(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&&Ke(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 ot=at;let Ue=function(){let K=new ArrayBuffer(2);return new DataView(K).setInt16(0,256,!0),new Int16Array(K)[0]===256}();class He{static parseScriptData(e,t,n){let i={};try{let r=He.parseValue(e,t,n),c=He.parseValue(e,t+r.size,n-r.size);i[r.data]=c.data}catch(r){_.e("AMF",r.toString())}return i}static parseObject(e,t,n){if(n<3)throw new q("Data not enough when parse ScriptDataObject");let i=He.parseString(e,t,n),r=He.parseValue(e,t+i.size,n-i.size),c=r.objectEnd;return{data:{name:i.data,value:r.data},size:i.size+r.size,objectEnd:c}}static parseVariable(e,t,n){return He.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new q("Data not enough when parse String");let r=new DataView(e,t,n).getUint16(0,!Ue),c;return r>0?c=ot(new Uint8Array(e,t+2,r)):c="",{data:c,size:2+r}}static parseLongString(e,t,n){if(n<4)throw new q("Data not enough when parse LongString");let r=new DataView(e,t,n).getUint32(0,!Ue),c;return r>0?c=ot(new Uint8Array(e,t+4,r)):c="",{data:c,size:4+r}}static parseDate(e,t,n){if(n<10)throw new q("Data size invalid when parse Date");let i=new DataView(e,t,n),r=i.getFloat64(0,!Ue),c=i.getInt16(8,!Ue);return r+=c*60*1e3,{data:new Date(r),size:10}}static parseValue(e,t,n){if(n<1)throw new q("Data not enough when parse Value");let i=new DataView(e,t,n),r=1,c=i.getUint8(0),f,ee=!1;try{switch(c){case 0:f=i.getFloat64(1,!Ue),r+=8;break;case 1:{f=!!i.getUint8(1),r+=1;break}case 2:{let V=He.parseString(e,t+1,n-1);f=V.data,r+=V.size;break}case 3:{f={};let V=0;for((i.getUint32(n-4,!Ue)&16777215)===9&&(V=3);r<n-4;){let pe=He.parseObject(e,t+r,n-r-V);if(pe.objectEnd)break;f[pe.data.name]=pe.data.value,r+=pe.size}r<=n-3&&(i.getUint32(r-1,!Ue)&16777215)===9&&(r+=3);break}case 8:{f={},r+=4;let V=0;for((i.getUint32(n-4,!Ue)&16777215)===9&&(V=3);r<n-8;){let pe=He.parseVariable(e,t+r,n-r-V);if(pe.objectEnd)break;f[pe.data.name]=pe.data.value,r+=pe.size}r<=n-3&&(i.getUint32(r-1,!Ue)&16777215)===9&&(r+=3);break}case 9:f=void 0,r=1,ee=!0;break;case 10:{f=[];let V=i.getUint32(1,!Ue);r+=4;for(let pe=0;pe<V;pe++){let Me=He.parseValue(e,t+r,n-r);f.push(Me.data),r+=Me.size}break}case 11:{let V=He.parseDate(e,t+1,n-1);f=V.data,r+=V.size;break}case 12:{let V=He.parseString(e,t+1,n-1);f=V.data,r+=V.size;break}default:r=n,_.w("AMF","Unsupported AMF value type "+c)}}catch(V){_.e("AMF",V.toString())}return{data:f,size:r,objectEnd:ee}}}var Qe=He;class et{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 q("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 c=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,c}let t=this._current_word_bits_left?this._current_word:0;t=t>>>32-this._current_word_bits_left;let n=e-this._current_word_bits_left;this._fillCurrentWord();let i=Math.min(n,this._current_word_bits_left),r=this._current_word>>>32-i;return this._current_word<<=i,this._current_word_bits_left-=i,t=t<<i|r,t}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let e;for(e=0;e<this._current_word_bits_left;e++)if(this._current_word&2147483648>>>e)return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}readUEG(){let e=this._skipLeadingZero();return this.readBits(e+1)-1}readSEG(){let e=this.readUEG();return e&1?e+1>>>1:-1*(e>>>1)}}var tt=et;class B{static _ebsp2rbsp(e){let t=e,n=t.byteLength,i=new Uint8Array(n),r=0;for(let c=0;c<n;c++)c>=2&&t[c]===3&&t[c-1]===0&&t[c-2]===0||(i[r]=t[c],r++);return new Uint8Array(i.buffer,0,r)}static parseSPS(e){let t=B._ebsp2rbsp(e),n=new tt(t);n.readByte();let i=n.readByte();n.readByte();let r=n.readByte();n.readUEG();let c=B.getProfileString(i),f=B.getLevelString(r),ee=1,V=420,pe=[0,420,422,444],Me=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&&(V=pe[ee]),Me=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let Ze=ee!==3?8:12;for(let Ne=0;Ne<Ze;Ne++)n.readBool()&&(Ne<6?B._skipScalingList(n,16):B._skipScalingList(n,64))}n.readUEG();let ze=n.readUEG();if(ze===0)n.readUEG();else if(ze===1){n.readBits(1),n.readSEG(),n.readSEG();let Ze=n.readUEG();for(let Ne=0;Ne<Ze;Ne++)n.readSEG()}let se=n.readUEG();n.readBits(1);let $e=n.readUEG(),he=n.readUEG(),X=n.readBits(1);X===0&&n.readBits(1),n.readBits(1);let ne=0,we=0,Le=0,Ge=0;n.readBool()&&(ne=n.readUEG(),we=n.readUEG(),Le=n.readUEG(),Ge=n.readUEG());let vt=1,ge=1,qe=0,S=!0,C=0,L=0;if(n.readBool()){if(n.readBool()){let Ze=n.readByte(),Ne=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],it=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Ze>0&&Ze<16?(vt=Ne[Ze-1],ge=it[Ze-1]):Ze===255&&(vt=n.readByte()<<8|n.readByte(),ge=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 Ze=n.readBits(32),Ne=n.readBits(32);S=n.readBool(),C=Ne,L=Ze*2,qe=C/L}}let I=1;(vt!==1||ge!==1)&&(I=vt/ge);let k=0,D=0;if(ee===0)k=1,D=2-X;else{let Ze=ee===3?1:2,Ne=ee===1?2:1;k=Ze,D=Ne*(2-X)}let ie=($e+1)*16,Ae=(2-X)*((he+1)*16);ie-=(ne+we)*k,Ae-=(Le+Ge)*D;let be=Math.ceil(ie*I);return n.destroy(),n=null,{profile_string:c,level_string:f,bit_depth:Me,ref_frames:se,chroma_format:V,chroma_format_string:B.getChromaFormatString(V),frame_rate:{fixed:S,fps:qe,fps_den:L,fps_num:C},sar_ratio:{width:vt,height:ge},codec_size:{width:ie,height:Ae},present_size:{width:be,height:Ae}}}static _skipScalingList(e,t){let n=8,i=8,r=0;for(let c=0;c<t;c++)i!==0&&(r=e.readSEG(),i=(n+r+256)%256),n=i===0?n:i}static getProfileString(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(e){return(e/10).toFixed(1)}static getChromaFormatString(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var g=B,h={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function p(K){return K>>>8&255|(K&255)<<8}function F(K){return(K&4278190080)>>>24|(K&16711680)>>>8|(K&65280)<<8|(K&255)<<24}function d(K,e){return K[e]<<24|K[e+1]<<16|K[e+2]<<8|K[e+3]}class m{constructor(e,t){this.TAG="FLVDemuxer",this._config=t,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=e.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=e.hasAudioTrack,this._hasVideo=e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Pe,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let n=new ArrayBuffer(2);return new DataView(n).setInt16(0,256,!0),new Int16Array(n)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(e){let t=new Uint8Array(e),n={match:!1};if(t[0]!==70||t[1]!==76||t[2]!==86||t[3]!==1)return n;let i=(t[4]&4)>>>2!==0,r=(t[4]&1)!==0,c=d(t,5);return c<9?n:{match:!0,consumed:c,dataOffset:c,hasAudioTrack:i,hasVideoTrack:r}}bindDataSource(e){return e.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(e){this._onTrackMetadata=e}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(e){this._onMediaInfo=e}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(e){this._onMetaDataArrived=e}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(e){this._onScriptDataArrived=e}get onError(){return this._onError}set onError(e){this._onError=e}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(e){this._onDataAvailable=e}get timestampBase(){return this._timestampBase}set timestampBase(e){this._timestampBase=e}get overridedDuration(){return this._duration}set overridedDuration(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e}set overridedHasAudio(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e}set overridedHasVideo(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e}resetMediaInfo(){this._mediaInfo=new Pe}_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 q("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let n=0,i=this._littleEndian;if(t===0)if(e.byteLength>13)n=m.probe(e).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,t+n!==this._dataOffset&&_.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(e,n).getUint32(0,!i)!==0&&_.w(this.TAG,"PrevTagSize0 !== 0 !!!"),n+=4);n<e.byteLength;){this._dispatch=!0;let r=new DataView(e,n);if(n+11+4>e.byteLength)break;let c=r.getUint8(0),f=r.getUint32(0,!i)&16777215;if(n+11+f+4>e.byteLength)break;if(c!==8&&c!==9&&c!==18){_.w(this.TAG,`Unsupported tag type ${c}, skipped`),n+=11+f+4;continue}let ee=r.getUint8(4),V=r.getUint8(5),pe=r.getUint8(6),Me=r.getUint8(7),ze=pe|V<<8|ee<<16|Me<<24;(r.getUint32(7,!i)&16777215)!==0&&_.w(this.TAG,"Meet tag which has StreamID != 0!");let $e=n+11;switch(c){case 8:this._parseAudioData(e,$e,f,ze);break;case 9:this._parseVideoData(e,$e,f,ze,t+n);break;case 18:this._parseScriptData(e,$e,f);break}let he=r.getUint32(11+f,!i);he!==11+f&&_.w(this.TAG,`Invalid PrevTagSize ${he}`),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=Qe.parseScriptData(e,t,n);if(i.hasOwnProperty("onMetaData")){if(i.onMetaData==null||typeof i.onMetaData!="object"){_.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&_.w(this.TAG,"Found another onMetaData tag!"),this._metadata=i;let r=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},r)),typeof r.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=r.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof r.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=r.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof r.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=r.audiodatarate),typeof r.videodatarate=="number"&&(this._mediaInfo.videoDataRate=r.videodatarate),typeof r.width=="number"&&(this._mediaInfo.width=r.width),typeof r.height=="number"&&(this._mediaInfo.height=r.height),typeof r.duration=="number"){if(!this._durationOverrided){let c=Math.floor(r.duration*this._timescale);this._duration=c,this._mediaInfo.duration=c}}else this._mediaInfo.duration=0;if(typeof r.framerate=="number"){let c=Math.floor(r.framerate*1e3);if(c>0){let f=c/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=f,this._referenceFrameRate.fps_num=c,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=f}}if(typeof r.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let c=r.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(c),r.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=r,_.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(i).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},i))}_parseKeyframesIndex(e){let t=[],n=[];for(let i=1;i<e.times.length;i++){let r=this._timestampBase+Math.floor(e.times[i]*1e3);t.push(r),n.push(e.filepositions[i])}return{times:t,filepositions:n}}_parseAudioData(e,t,n,i){if(n<=1){_.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let r=this._littleEndian,f=new DataView(e,t,n).getUint8(0),ee=f>>>4;if(ee!==2&&ee!==10){this._onError(h.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+ee);return}let V=0,pe=(f&12)>>>2;if(pe>=0&&pe<=4)V=this._flvSoundRateTable[pe];else{this._onError(h.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+pe);return}let Me=(f&2)>>>1,ze=f&1,se=this._audioMetadata,$e=this._audioTrack;if(se||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),se=this._audioMetadata={},se.type="audio",se.id=$e.id,se.timescale=this._timescale,se.duration=this._duration,se.audioSampleRate=V,se.channelCount=ze===0?1:2),ee===10){let he=this._parseAACAudioData(e,t+1,n-1);if(he==null)return;if(he.packetType===0){se.config&&_.w(this.TAG,"Found another AudioSpecificConfig!");let X=he.data;se.audioSampleRate=X.samplingRate,se.channelCount=X.channelCount,se.codec=X.codec,se.originalCodec=X.originalCodec,se.config=X.config,se.refSampleDuration=1024/se.audioSampleRate*se.timescale,_.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",se);let ne=this._mediaInfo;ne.audioCodec=se.originalCodec,ne.audioSampleRate=se.audioSampleRate,ne.audioChannelCount=se.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(he.packetType===1){let X=this._timestampBase+i,ne={unit:he.data,length:he.data.byteLength,dts:X,pts:X};$e.samples.push(ne),$e.length+=he.data.length}else _.e(this.TAG,`Flv: Unsupported AAC data type ${he.packetType}`)}else if(ee===2){if(!se.codec){let we=this._parseMP3AudioData(e,t+1,n-1,!0);if(we==null)return;se.audioSampleRate=we.samplingRate,se.channelCount=we.channelCount,se.codec=we.codec,se.originalCodec=we.originalCodec,se.refSampleDuration=1152/se.audioSampleRate*se.timescale,_.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",se);let Le=this._mediaInfo;Le.audioCodec=se.codec,Le.audioSampleRate=se.audioSampleRate,Le.audioChannelCount=se.channelCount,Le.audioDataRate=we.bitRate,Le.hasVideo?Le.videoCodec!=null&&(Le.mimeType='video/x-flv; codecs="'+Le.videoCodec+","+Le.audioCodec+'"'):Le.mimeType='video/x-flv; codecs="'+Le.audioCodec+'"',Le.isComplete()&&this._onMediaInfo(Le)}let he=this._parseMP3AudioData(e,t+1,n-1,!1);if(he==null)return;let X=this._timestampBase+i,ne={unit:he,length:he.byteLength,dts:X,pts:X};$e.samples.push(ne),$e.length+=he.length}}_parseAACAudioData(e,t,n){if(n<=1){_.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let i={},r=new Uint8Array(e,t,n);return i.packetType=r[0],r[0]===0?i.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):i.data=r.subarray(1),i}_parseAACAudioSpecificConfig(e,t,n){let i=new Uint8Array(e,t,n),r=null,c=0,f=0,ee=null,V=0,pe=null;if(c=f=i[0]>>>3,V=(i[0]&7)<<1|i[1]>>>7,V<0||V>=this._mpegSamplingRates.length){this._onError(h.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Me=this._mpegSamplingRates[V],ze=(i[1]&120)>>>3;if(ze<0||ze>=8){this._onError(h.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}c===5&&(pe=(i[1]&7)<<1|i[2]>>>7,ee=(i[2]&124)>>>2);let se=self.navigator.userAgent.toLowerCase();return se.indexOf("firefox")!==-1?V>=6?(c=5,r=new Array(4),pe=V-3):(c=2,r=new Array(2),pe=V):se.indexOf("android")!==-1?(c=2,r=new Array(2),pe=V):(c=5,pe=V,r=new Array(4),V>=6?pe=V-3:ze===1&&(c=2,r=new Array(2),pe=V)),r[0]=c<<3,r[0]|=(V&15)>>>1,r[1]=(V&15)<<7,r[1]|=(ze&15)<<3,c===5&&(r[1]|=(pe&15)>>>1,r[2]=(pe&1)<<7,r[2]|=8,r[3]=0),{config:r,samplingRate:Me,channelCount:ze,codec:"mp4a.40."+c,originalCodec:"mp4a.40."+f}}_parseMP3AudioData(e,t,n,i){if(n<4){_.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let r=this._littleEndian,c=new Uint8Array(e,t,n),f=null;if(i){if(c[0]!==255)return;let ee=c[1]>>>3&3,V=(c[1]&6)>>1,pe=(c[2]&240)>>>4,Me=(c[2]&12)>>>2,se=(c[3]>>>6&3)!==3?2:1,$e=0,he=0,X=34,ne="mp3";switch(ee){case 0:$e=this._mpegAudioV25SampleRateTable[Me];break;case 2:$e=this._mpegAudioV20SampleRateTable[Me];break;case 3:$e=this._mpegAudioV10SampleRateTable[Me];break}switch(V){case 1:X=34,pe<this._mpegAudioL3BitRateTable.length&&(he=this._mpegAudioL3BitRateTable[pe]);break;case 2:X=33,pe<this._mpegAudioL2BitRateTable.length&&(he=this._mpegAudioL2BitRateTable[pe]);break;case 3:X=32,pe<this._mpegAudioL1BitRateTable.length&&(he=this._mpegAudioL1BitRateTable[pe]);break}f={bitRate:he,samplingRate:$e,channelCount:se,codec:ne,originalCodec:ne}}else f=c;return f}_parseVideoData(e,t,n,i,r){if(n<=1){_.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let c=new Uint8Array(e,t,n)[0],f=(c&240)>>>4,ee=c&15;if(ee!==7){this._onError(h.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,c){if(n<4){_.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let f=this._littleEndian,ee=new DataView(e,t,n),V=ee.getUint8(0),Me=(ee.getUint32(0,!f)&16777215)<<8>>8;if(V===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(V===1)this._parseAVCVideoData(e,t+4,n-4,i,r,c,Me);else if(V!==2){this._onError(h.FORMAT_ERROR,`Flv: Invalid video packet type ${V}`);return}}_parseAVCDecoderConfigurationRecord(e,t,n){if(n<7){_.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let i=this._videoMetadata,r=this._videoTrack,c=this._littleEndian,f=new DataView(e,t,n);i?typeof i.avcc!="undefined"&&_.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),i=this._videoMetadata={},i.type="video",i.id=r.id,i.timescale=this._timescale,i.duration=this._duration);let ee=f.getUint8(0),V=f.getUint8(1),pe=f.getUint8(2),Me=f.getUint8(3);if(ee!==1||V===0){this._onError(h.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(f.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(h.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let ze=f.getUint8(5)&31;if(ze===0){this._onError(h.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else ze>1&&_.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${ze}`);let se=6;for(let he=0;he<ze;he++){let X=f.getUint16(se,!c);if(se+=2,X===0)continue;let ne=new Uint8Array(e,t+se,X);se+=X;let we=g.parseSPS(ne);if(he!==0)continue;i.codecWidth=we.codec_size.width,i.codecHeight=we.codec_size.height,i.presentWidth=we.present_size.width,i.presentHeight=we.present_size.height,i.profile=we.profile_string,i.level=we.level_string,i.bitDepth=we.bit_depth,i.chromaFormat=we.chroma_format,i.sarRatio=we.sar_ratio,i.frameRate=we.frame_rate,(we.frame_rate.fixed===!1||we.frame_rate.fps_num===0||we.frame_rate.fps_den===0)&&(i.frameRate=this._referenceFrameRate);let Le=i.frameRate.fps_den,Ge=i.frameRate.fps_num;i.refSampleDuration=i.timescale*(Le/Ge);let $t=ne.subarray(1,4),vt="avc1.";for(let qe=0;qe<3;qe++){let S=$t[qe].toString(16);S.length<2&&(S="0"+S),vt+=S}i.codec=vt;let ge=this._mediaInfo;ge.width=i.codecWidth,ge.height=i.codecHeight,ge.fps=i.frameRate.fps,ge.profile=i.profile,ge.level=i.level,ge.refFrames=we.ref_frames,ge.chromaFormat=we.chroma_format_string,ge.sarNum=i.sarRatio.width,ge.sarDen=i.sarRatio.height,ge.videoCodec=vt,ge.hasAudio?ge.audioCodec!=null&&(ge.mimeType='video/x-flv; codecs="'+ge.videoCodec+","+ge.audioCodec+'"'):ge.mimeType='video/x-flv; codecs="'+ge.videoCodec+'"',ge.isComplete()&&this._onMediaInfo(ge)}let $e=f.getUint8(se);if($e===0){this._onError(h.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else $e>1&&_.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${$e}`);se++;for(let he=0;he<$e;he++){let X=f.getUint16(se,!c);se+=2,X!==0&&(se+=X)}i.avcc=new Uint8Array(n),i.avcc.set(new Uint8Array(e,t,n),0),_.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",i)}_parseAVCVideoData(e,t,n,i,r,c,f){let ee=this._littleEndian,V=new DataView(e,t,n),pe=[],Me=0,ze=0;const se=this._naluLengthSize;let $e=this._timestampBase+i,he=c===1;for(;ze<n;){if(ze+4>=n){_.w(this.TAG,`Malformed Nalu near timestamp ${$e}, offset = ${ze}, dataSize = ${n}`);break}let X=V.getUint32(ze,!ee);if(se===3&&(X>>>=8),X>n-se){_.w(this.TAG,`Malformed Nalus near timestamp ${$e}, NaluSize > DataSize!`);return}let ne=V.getUint8(ze+se)&31;ne===5&&(he=!0);let we=new Uint8Array(e,t+ze,se+X),Le={type:ne,data:we};pe.push(Le),Me+=we.byteLength,ze+=se+X}if(pe.length){let X=this._videoTrack,ne={units:pe,length:Me,isKeyframe:he,dts:$e,cts:f,pts:$e+f};he&&(ne.fileposition=r),X.samples.push(ne),X.length+=Me}}}var E=m;class l{static init(){l.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 l.types)l.types.hasOwnProperty(t)&&(l.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=l.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 c=8;for(let f=0;f<r;f++)n.set(i[f],c),c+=i[f].byteLength;return n}static generateInitSegment(e){let t=l.box(l.types.ftyp,l.constants.FTYP),n=l.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=l.mvhd(e.timescale,e.duration),n=l.trak(e),i=l.mvex(e);return l.box(l.types.moov,t,n,i)}static mvhd(e,t){return l.box(l.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 l.box(l.types.trak,l.tkhd(e),l.mdia(e))}static tkhd(e){let t=e.id,n=e.duration,i=e.presentWidth,r=e.presentHeight;return l.box(l.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 l.box(l.types.mdia,l.mdhd(e),l.hdlr(e),l.minf(e))}static mdhd(e){let t=e.timescale,n=e.duration;return l.box(l.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=l.constants.HDLR_AUDIO:t=l.constants.HDLR_VIDEO,l.box(l.types.hdlr,t)}static minf(e){let t=null;return e.type==="audio"?t=l.box(l.types.smhd,l.constants.SMHD):t=l.box(l.types.vmhd,l.constants.VMHD),l.box(l.types.minf,t,l.dinf(),l.stbl(e))}static dinf(){return l.box(l.types.dinf,l.box(l.types.dref,l.constants.DREF))}static stbl(e){return l.box(l.types.stbl,l.stsd(e),l.box(l.types.stts,l.constants.STTS),l.box(l.types.stsc,l.constants.STSC),l.box(l.types.stsz,l.constants.STSZ),l.box(l.types.stco,l.constants.STCO))}static stsd(e){return e.type==="audio"?e.codec==="mp3"?l.box(l.types.stsd,l.constants.STSD_PREFIX,l.mp3(e)):l.box(l.types.stsd,l.constants.STSD_PREFIX,l.mp4a(e)):l.box(l.types.stsd,l.constants.STSD_PREFIX,l.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 l.box(l.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 l.box(l.types.mp4a,i,l.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 l.box(l.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 l.box(l.types.avc1,r,l.box(l.types.avcC,t))}static mvex(e){return l.box(l.types.mvex,l.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 l.box(l.types.trex,n)}static moof(e,t){return l.box(l.types.moof,l.mfhd(e.sequenceNumber),l.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 l.box(l.types.mfhd,t)}static traf(e,t){let n=e.id,i=l.box(l.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255])),r=l.box(l.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255])),c=l.sdtp(e),f=l.trun(e,c.byteLength+16+16+8+16+8+8);return l.box(l.types.traf,i,r,f,c)}static sdtp(e){let t=e.samples||[],n=t.length,i=new Uint8Array(4+n);for(let r=0;r<n;r++){let c=t[r].flags;i[r+4]=c.isLeading<<6|c.dependsOn<<4|c.isDependedOn<<2|c.hasRedundancy}return l.box(l.types.sdtp,i)}static trun(e,t){let n=e.samples||[],i=n.length,r=12+16*i,c=new Uint8Array(r);t+=8+r,c.set([0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0);for(let f=0;f<i;f++){let ee=n[f].duration,V=n[f].size,pe=n[f].flags,Me=n[f].cts;c.set([ee>>>24&255,ee>>>16&255,ee>>>8&255,ee&255,V>>>24&255,V>>>16&255,V>>>8&255,V&255,pe.isLeading<<2|pe.dependsOn,pe.isDependedOn<<6|pe.hasRedundancy<<4|pe.isNonSync,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255],12+16*f)}return l.box(l.types.trun,c)}static mdat(e){return l.box(l.types.mdat,e)}}l.init();var R=l;class G{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 me=G;class Ee{constructor(e,t,n,i,r){this.dts=e,this.pts=t,this.duration=n,this.originalDts=i,this.isSyncPoint=r,this.fileposition=null}}class Fe{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(e){e.isSyncPoint=!0,this.syncPoints.push(e)}}class _e{constructor(){this._list=[]}clear(){this._list=[]}appendArray(e){let t=this._list;e.length!==0&&(t.length>0&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))}getLastSyncPointBeforeDts(e){if(this._list.length==0)return null;let t=this._list,n=0,i=t.length-1,r=0,c=0,f=i;for(e<t[0].dts&&(n=0,c=f+1);c<=f;)if(r=c+Math.floor((f-c)/2),r===i||e>=t[r].dts&&e<t[r+1].dts){n=r;break}else t[r].dts<e?c=r+1:f=r-1;return this._list[n]}}class Oe{constructor(e){this._type=e,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return this._list.length===0}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(e){let t=this._list;if(t.length===0)return-2;let n=t.length-1,i=0,r=0,c=n,f=0;if(e<t[0].originalBeginDts)return f=-1,f;for(;r<=c;)if(i=r+Math.floor((c-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:c=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 ye{constructor(e){this.TAG="MP4Remuxer",this._config=e,this._isLive=e.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Oe("audio"),this._videoSegmentInfoList=new Oe("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(x.chrome&&(x.version.major<50||x.version.major===50&&x.version.build<2661)),this._fillSilentAfterSeek=x.msedge||x.msie,this._mp3UseMpegAudio=!x.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(e){this._onInitSegment=e}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(e){this._onMediaSegment=e}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(e,t){if(!this._onMediaSegment)throw new q("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}_onTrackMetadataReceived(e,t){let n=null,i="mp4",r=t.codec;if(e==="audio")this._audioMeta=t,t.codec==="mp3"&&this._mp3UseMpegAudio?(i="mpeg",r="",n=new Uint8Array):n=R.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=R.generateInitSegment(t);else return;if(!this._onInitSegment)throw new q("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:r,container:`${e}/${i}`,mediaDuration:t.duration})}_calculateDtsBase(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let e=this._videoStashedLastSample,t=this._audioStashedLastSample,n={type:"video",id:1,sequenceNumber:0,samples:[],length:0};e!=null&&(n.samples.push(e),n.length=e.length);let i={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};t!=null&&(i.samples.push(t),i.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(i,!0)}_remuxAudio(e,t){if(this._audioMeta==null)return;let n=e,i=n.samples,r,c=-1,f=-1,ee=-1,V=this._audioMeta.refSampleDuration,pe=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Me=this._dtsBaseInited&&this._audioNextDts===void 0,ze=!1;if(!i||i.length===0||i.length===1&&!t)return;let se=0,$e=null,he=0;pe?(se=0,he=n.length):(se=8,he=8+n.length);let X=null;if(i.length>1&&(X=i.pop(),he-=X.length),this._audioStashedLastSample!=null){let ge=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(ge),he+=ge.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 ge=this._audioSegmentInfoList.getLastSampleBefore(ne);if(ge!=null){let qe=ne-(ge.originalDts+ge.duration);qe<=3&&(qe=0);let S=ge.dts+ge.duration+qe;r=ne-S}else r=0}if(ze){let ge=ne-r,qe=this._videoSegmentInfoList.getLastSegmentBefore(ne);if(qe!=null&&qe.beginDts<ge){let S=me.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(S){let C=qe.beginDts,L=ge-qe.beginDts;_.v(this.TAG,`InsertPrefixSilentAudio: dts: ${C}, duration: ${L}`),i.unshift({unit:S,dts:C,pts:C}),he+=S.byteLength}}else ze=!1}let we=[];for(let ge=0;ge<i.length;ge++){let qe=i[ge],S=qe.unit,C=qe.dts-this._dtsBase,L=C-r;c===-1&&(c=L);let j=0;ge!==i.length-1?j=i[ge+1].dts-this._dtsBase-r-L:X!=null?j=X.dts-this._dtsBase-r-L:we.length>=1?j=we[we.length-1].duration:j=Math.floor(V);let I=!1,k=null;if(j>V*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!x.safari){I=!0;let D=Math.abs(j-V),ie=Math.ceil(D/V),Ae=L+V;_.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
dts: ${L+j} ms, expected: ${L+Math.round(V)} ms, delta: ${Math.round(D)} ms, generate: ${ie} frames`);let be=me.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);be==null&&(_.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),be=S),k=[];for(let Ne=0;Ne<ie;Ne++){let it=Math.round(Ae);if(k.length>0){let rt=k[k.length-1];rt.duration=it-rt.dts}let ct={dts:it,pts:it,cts:0,unit:be,size:be.byteLength,duration:0,originalDts:C,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};k.push(ct),he+=ct.size,Ae+=V}let Ze=k[k.length-1];Ze.duration=L+j-Ze.dts,j=Math.round(V)}we.push({dts:L,pts:L,cts:0,unit:qe.unit,size:qe.unit.byteLength,duration:j,originalDts:C,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),I&&we.push.apply(we,k)}pe?$e=new Uint8Array(he):($e=new Uint8Array(he),$e[0]=he>>>24&255,$e[1]=he>>>16&255,$e[2]=he>>>8&255,$e[3]=he&255,$e.set(R.types.mdat,4));for(let ge=0;ge<we.length;ge++){let qe=we[ge].unit;$e.set(qe,se),se+=qe.byteLength}let Le=we[we.length-1];f=Le.dts+Le.duration,this._audioNextDts=f;let Ge=new Fe;Ge.beginDts=c,Ge.endDts=f,Ge.beginPts=c,Ge.endPts=f,Ge.originalBeginDts=we[0].originalDts,Ge.originalEndDts=Le.originalDts+Le.duration,Ge.firstSample=new Ee(we[0].dts,we[0].pts,we[0].duration,we[0].originalDts,!1),Ge.lastSample=new Ee(Le.dts,Le.pts,Le.duration,Le.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Ge),n.samples=we,n.sequenceNumber++;let $t=null;pe?$t=new Uint8Array:$t=R.moof(n,c),n.samples=[],n.length=0;let vt={type:"audio",data:this._mergeBoxes($t,$e).buffer,sampleCount:we.length,info:Ge};pe&&Me&&(vt.timestampOffset=c),this._onMediaSegment("audio",vt)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,i=n.samples,r,c=-1,f=-1,ee=-1,V=-1;if(!i||i.length===0||i.length===1&&!t)return;let pe=8,Me=null,ze=8+e.length,se=null;if(i.length>1&&(se=i.pop(),ze-=se.length),this._videoStashedLastSample!=null){let Le=this._videoStashedLastSample;this._videoStashedLastSample=null,i.unshift(Le),ze+=Le.length}se!=null&&(this._videoStashedLastSample=se);let $e=i[0].dts-this._dtsBase;if(this._videoNextDts)r=$e-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())r=0;else{let Le=this._videoSegmentInfoList.getLastSampleBefore($e);if(Le!=null){let Ge=$e-(Le.originalDts+Le.duration);Ge<=3&&(Ge=0);let $t=Le.dts+Le.duration+Ge;r=$e-$t}else r=0}let he=new Fe,X=[];for(let Le=0;Le<i.length;Le++){let Ge=i[Le],$t=Ge.dts-this._dtsBase,vt=Ge.isKeyframe,ge=$t-r,qe=Ge.cts,S=ge+qe;c===-1&&(c=ge,ee=S);let C=0;if(Le!==i.length-1?C=i[Le+1].dts-this._dtsBase-r-ge:se!=null?C=se.dts-this._dtsBase-r-ge:X.length>=1?C=X[X.length-1].duration:C=Math.floor(this._videoMeta.refSampleDuration),vt){let L=new Ee(ge,S,C,Ge.dts,!0);L.fileposition=Ge.fileposition,he.appendSyncPoint(L)}X.push({dts:ge,pts:S,cts:qe,units:Ge.units,size:Ge.length,isKeyframe:vt,duration:C,originalDts:$t,flags:{isLeading:0,dependsOn:vt?2:1,isDependedOn:vt?1:0,hasRedundancy:0,isNonSync:vt?0:1}})}Me=new Uint8Array(ze),Me[0]=ze>>>24&255,Me[1]=ze>>>16&255,Me[2]=ze>>>8&255,Me[3]=ze&255,Me.set(R.types.mdat,4);for(let Le=0;Le<X.length;Le++){let Ge=X[Le].units;for(;Ge.length;){let vt=Ge.shift().data;Me.set(vt,pe),pe+=vt.byteLength}}let ne=X[X.length-1];if(f=ne.dts+ne.duration,V=ne.pts+ne.duration,this._videoNextDts=f,he.beginDts=c,he.endDts=f,he.beginPts=ee,he.endPts=V,he.originalBeginDts=X[0].originalDts,he.originalEndDts=ne.originalDts+ne.duration,he.firstSample=new Ee(X[0].dts,X[0].pts,X[0].duration,X[0].originalDts,X[0].isKeyframe),he.lastSample=new Ee(ne.dts,ne.pts,ne.duration,ne.originalDts,ne.isKeyframe),this._isLive||this._videoSegmentInfoList.append(he),n.samples=X,n.sequenceNumber++,this._forceFirstIDR){let Le=X[0].flags;Le.dependsOn=2,Le.isNonSync=0}let we=R.moof(n,c);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(we,Me).buffer,sampleCount:X.length,info:he})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var ut=ye,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=E.probe(e)).match){this._demuxer=new E(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,_.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Z.DEMUX_ERROR,h.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),i=0;return i}_onMediaInfo(e){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Pe.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,Pe.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){_.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){_.e(this.TAG,`DemuxException: type = ${e}, info = ${t}`),this._emitter.emit(Z.DEMUX_ERROR,e,t)}_onRemuxerInitSegmentArrival(e,t){this._emitter.emit(Z.INIT_SEGMENT,e,t)}_onRemuxerMediaSegmentArrival(e,t){if(this._pendingSeekTime==null&&(this._emitter.emit(Z.MEDIA_SEGMENT,e,t),this._pendingResolveSeekPoint!=null&&e==="video")){let n=t.info.syncPoints,i=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,x.safari&&n.length>0&&n[0].originalDts===i&&(i=n[0].pts),this._emitter.emit(Z.RECOMMEND_SEEKPOINT,i)}}_enableStatisticsReporter(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(e){let t=this._mediaInfo.segments[e],n=Object.assign({},t);n.duration=this._mediaInfo.duration,n.segmentCount=this._mediaInfo.segmentCount,delete n.segments,delete n.keyframesIndex,this._emitter.emit(Z.MEDIA_INFO,n)}_reportStatisticsInfo(){let e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Z.STATISTICS_INFO,e)}}var mt=bt,Ye=function(K){let e="TransmuxingWorker",t=null,n=he.bind(this);b.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,se.bind(this)),t.on(Z.INIT_SEGMENT,i.bind(this)),t.on(Z.MEDIA_SEGMENT,r.bind(this)),t.on(Z.LOADING_COMPLETE,c.bind(this)),t.on(Z.RECOVERED_EARLY_EOF,f.bind(this)),t.on(Z.MEDIA_INFO,ee.bind(this)),t.on(Z.METADATA_ARRIVED,V.bind(this)),t.on(Z.SCRIPTDATA_ARRIVED,pe.bind(this)),t.on(Z.STATISTICS_INFO,Me.bind(this)),t.on(Z.RECOMMEND_SEEKPOINT,$e.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 we={msg:Z.INIT_SEGMENT,data:{type:X,data:ne}};K.postMessage(we,[ne.data])}function r(X,ne){let we={msg:Z.MEDIA_SEGMENT,data:{type:X,data:ne}};K.postMessage(we,[ne.data])}function c(){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 V(X){let ne={msg:Z.METADATA_ARRIVED,data:X};K.postMessage(ne)}function pe(X){let ne={msg:Z.SCRIPTDATA_ARRIVED,data:X};K.postMessage(ne)}function Me(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 se(X,ne){K.postMessage({msg:Z.DEMUX_ERROR,data:{type:X,info:ne}})}function $e(X){K.postMessage({msg:Z.RECOMMEND_SEEKPOINT,data:X})}function he(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=u(82059);this._worker=n(Ye),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[e,t]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},ve.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:ve.getConfig()})}catch(n){_.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new 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,Pe.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":_.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 q("MediaSource has been attached to an HTMLMediaElement!");let t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let e=this._mediaSource;for(let t in this._sourceBuffers){let n=this._pendingSegments[t];n.splice(0,n.length),this._pendingSegments[t]=null,this._pendingRemoveRanges[t]=null,this._lastInitSegments[t]=null;let i=this._sourceBuffers[t];if(i){if(e.readyState!=="closed"){try{e.removeSourceBuffer(i)}catch(r){_.e(this.TAG,r.message)}i.removeEventListener("error",this.e.onSourceBufferError),i.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if(e.readyState==="open")try{e.endOfStream()}catch(t){_.e(this.TAG,t.message)}e.removeEventListener("sourceopen",this.e.onSourceOpen),e.removeEventListener("sourceended",this.e.onSourceEnded),e.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(e,t){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(e),this._pendingSegments[e.type].push(e);return}let n=e,i=`${n.container}`;n.codec&&n.codec.length>0&&(i+=`;codecs=${n.codec}`);let r=!1;if(_.v(this.TAG,"Received Initialization Segment, mimeType: "+i),this._lastInitSegments[n.type]=n,i!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])_.v(this.TAG,`Notice: ${n.type} mimeType changed, origin: ${this._mimeTypes[n.type]}, target: ${i}`);else{r=!0;try{let c=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);c.addEventListener("error",this.e.onSourceBufferError),c.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(c){_.e(this.TAG,c.message),this._emitter.emit(Et.ERROR,{code:c.code,msg:c.message});return}}this._mimeTypes[n.type]=i}t||this._pendingSegments[n.type].push(n),r||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),x.safari&&n.container==="audio/mpeg"&&n.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(e){let t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let n=this._sourceBuffers[t.type];n&&!n.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(e){for(let t in this._sourceBuffers){if(!this._sourceBuffers[t])continue;let n=this._sourceBuffers[t];if(this._mediaSource.readyState==="open")try{n.abort()}catch(r){_.e(this.TAG,r.message)}this._idrList.clear();let i=this._pendingSegments[t];if(i.splice(0,i.length),this._mediaSource.readyState!=="closed"){for(let r=0;r<n.buffered.length;r++){let c=n.buffered.start(r),f=n.buffered.end(r);this._pendingRemoveRanges[t].push({start:c,end:f})}if(n.updating||this._doRemoveRanges(),x.safari){let r=this._lastInitSegments[t];r&&(this._pendingSegments[t].push(r),n.updating||this._doAppendSegments())}}}}endOfStream(){let e=this._mediaSource,t=this._sourceBuffers;if(!e||e.readyState!=="open"){e&&e.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream())}getNearestKeyframe(e){return this._idrList.getLastSyncPointBeforeDts(e)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let i=n.buffered;if(i.length>=1&&e-i.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let i=n.buffered,r=!1;for(let c=0;c<i.length;c++){let f=i.start(c),ee=i.end(c);if(f<=e&&e<ee+3){if(e-f>=this._config.autoCleanupMaxBackwardDuration){r=!0;let V=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:f,end:V})}}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)&&(_.v(this.TAG,`Update MediaSource duration from ${t} to ${n}`),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let e in this._pendingRemoveRanges){if(!this._sourceBuffers[e]||this._sourceBuffers[e].updating)continue;let t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];for(;n.length&&!t.updating;){let i=n.shift();t.remove(i.start,i.end)}}}_doAppendSegments(){let e=this._pendingSegments;for(let t in e)if(!(!this._sourceBuffers[t]||this._sourceBuffers[t].updating)&&e[t].length>0){let n=e[t].shift();if(n.timestampOffset){let i=this._sourceBuffers[t].timestampOffset,r=n.timestampOffset/1e3;Math.abs(i-r)>.1&&(_.v(this.TAG,`Update MPEG audio timestampOffset from ${i} to ${r}`),this._sourceBuffers[t].timestampOffset=r),delete n.timestampOffset}if(!n.data||n.data.byteLength===0)continue;try{this._sourceBuffers[t].appendBuffer(n.data),this._isBufferFull=!1,t==="video"&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(i){this._pendingSegments[t].unshift(n),i.code===22?(this._isBufferFull||this._emitter.emit(Et.BUFFER_FULL),this._isBufferFull=!0):(_.e(this.TAG,i.message),this._emitter.emit(Et.ERROR,{code:i.code,msg:i.message}))}}}_onSourceOpen(){if(_.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let e=this._pendingSourceBufferInit;for(;e.length;){let t=e.shift();this.appendInitSegment(t,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Et.SOURCE_OPEN)}_onSourceEnded(){_.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){_.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let e=this._pendingSegments;return e.video.length>0||e.audio.length>0}_hasPendingRemoveRanges(){let e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Et.UPDATE_END)}_onSourceBufferError(e){_.e(this.TAG,`SourceBuffer Error: ${e}`)}}var Kt=Zt;const xe={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},We={NETWORK_EXCEPTION:W.EXCEPTION,NETWORK_STATUS_CODE_INVALID:W.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:W.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:W.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:h.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:h.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:h.CODEC_UNSUPPORTED};class 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=x.chrome&&(x.version.major<50||x.version.major===50&&x.version.build<2661);this._alwaysSeekKeyframe=!!(n||x.msedge||x.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===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,xe.MEDIA_ERROR,We.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 q("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new q("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&&(_.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,xe.NETWORK_ERROR,e,t)}),this._transmuxer.on(Z.DEMUX_ERROR,(e,t)=>{this._emitter.emit(le.ERROR,xe.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 c=e.start(r),f=e.end(r);if(c<=t&&t<f){n=c,i=f;break}}i>=t+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(_.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){_.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1;for(let i=0;i<t.length;i++){let r=t.start(i),c=t.end(i);if(e>=r&&e<c){e>=c-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(_.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(e){let t=this._mediaElement.buffered;for(let n=0;n<t.length;n++){let i=t.start(n),r=t.end(n);if(e>=i&&e<r)return!0}return!1}_internalSeek(e){let t=this._isTimepointBuffered(e),n=!1,i=0;if(e<1&&this._mediaElement.buffered.length>0){let r=this._mediaElement.buffered.start(0);(r<1&&e<r||x.safari)&&(n=!0,i=x.safari?.1:r)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=i;else if(t){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=e;else{let r=this._msectl.getNearestKeyframe(Math.floor(e*1e3));this._requestSetTime=!0,r!=null?this._mediaElement.currentTime=r.dts/1e3:this._mediaElement.currentTime=e}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(e*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let e=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(e)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(e*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(e){let t=this._mediaElement;if(e||!this._receivedCanPlay||t.readyState<2){let n=t.buffered;n.length>0&&t.currentTime<n.start(0)&&(_.w(this.TAG,`Playback seems stuck at ${t.currentTime}, seek to ${n.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=n.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(e){let t=this._mediaElement.currentTime,n=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(t<1&&n.length>0){let i=n.start(0);if(i<1&&t<i||x.safari){this._requestSetTime=!0,this._mediaElement.currentTime=x.safari?.1:i;return}}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){let i=this._msectl.getNearestKeyframe(Math.floor(t*1e3));i!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=i.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(e){this._checkAndResumeStuckPlayback(!0)}_onvProgress(e){this._checkAndResumeStuckPlayback()}}var gt=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 q("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 Mt=Nt;b.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 gt(t,e);default:return new Mt(t,e)}}function Lt(){return ke.supportMSEH264Playback()}function Je(){return ke.getFeatureList()}let nt={};nt.createPlayer=kt,nt.isSupported=Lt,nt.getFeatureList=Je,nt.BaseLoader=Se,nt.LoaderStatus=o,nt.LoaderErrors=W,nt.Events=le,nt.ErrorTypes=xe,nt.ErrorDetails=We,nt.FlvPlayer=gt,nt.NativePlayer=Mt,nt.LoggingControl=ve,Object.defineProperty(nt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var dn=nt},91857:function(dt,Re,u){"use strict";var a=u(59301),b=u(38819),P=u(92310),z=u.n(P),v=u(31561),_=u(70425),fe=u(18929),de=u(2738),N=u(79676),q=u(53487),oe=u(92343),Q=u(36355),o=u(20834),W=u(40875),Se=u(88088),te=u(47211);const re=null,x=O=>{const{menu:U,arrow:$,prefixCls:A,children:J,trigger:ae,disabled:ce,dropdownRender:De,getPopupContainer:Be,overlayClassName:Te,rootClassName:Ie,open:T,onOpenChange:Ve,visible:Xe,onVisibleChange:H,mouseEnterDelay:Y=.15,mouseLeaveDelay:ke=.1,autoAdjustOverflow:Ce=!0,placement:le="",overlay:ue,transitionName:ve}=O,{getPopupContainer:je,getPrefixCls:Pe,direction:Ke}=a.useContext(Q.E_),at=a.useMemo(()=>{const R=Pe();return ve!==void 0?ve:le.includes("top")?`${R}-slide-down`:`${R}-slide-up`},[Pe,le,ve]),ot=a.useMemo(()=>le?le.includes("Center")?le.slice(0,le.indexOf("Center")):le:Ke==="rtl"?"bottomRight":"bottomLeft",[le,Ke]),Ue=Pe("dropdown",A),[He,Qe]=(0,te.Z)(Ue),[,et]=(0,Se.Z)(),tt=a.Children.only(J),B=(0,oe.Tm)(tt,{className:z()(`${Ue}-trigger`,{[`${Ue}-rtl`]:Ke==="rtl"},tt.props.className),disabled:ce}),g=ce?[]:ae;let s;g&&g.includes("contextMenu")&&(s=!0);const[h,p]=(0,fe.Z)(!1,{value:T!=null?T:Xe}),F=(0,_.useEvent)(R=>{Ve==null||Ve(R),H==null||H(R),p(R)}),d=z()(Te,Ie,Qe,{[`${Ue}-rtl`]:Ke==="rtl"}),m=(0,N.Z)({arrowPointAtCenter:typeof $=="object"&&$.pointAtCenter,autoAdjustOverflow:Ce,offset:et.marginXXS,arrowWidth:$?et.sizePopupArrow:0,borderRadius:et.borderRadius}),E=a.useCallback(()=>{p(!1)},[]),l=()=>{let R;return U!=null&&U.items?R=a.createElement(o.default,Object.assign({},U)):typeof ue=="function"?R=ue():R=ue,De&&(R=De(R)),R=a.Children.only(typeof R=="string"?a.createElement("span",null,R):R),a.createElement(W.J,{prefixCls:`${Ue}-menu`,expandIcon:a.createElement("span",{className:`${Ue}-menu-submenu-arrow`},a.createElement(b.Z,{className:`${Ue}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:E,validator:G=>{let{mode:me}=G}},R)};return He(a.createElement(v.Z,Object.assign({alignPoint:s},(0,de.Z)(O,["rootClassName"]),{mouseEnterDelay:Y,mouseLeaveDelay:ke,visible:h,builtinPlacements:m,arrow:!!$,overlayClassName:d,prefixCls:Ue,getPopupContainer:Be||je,transitionName:at,trigger:g,overlay:l,placement:ot,onVisibleChange:F}),B))};function w(O){return Object.assign(Object.assign({},O),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const y=(0,q.Z)(x,"dropdown",O=>O,w),M=O=>a.createElement(y,Object.assign({},O),a.createElement("span",null));x._InternalPanelDoNotUseOrYouWillBeFired=M,Re.Z=x},38854:function(dt,Re,u){"use strict";u.d(Re,{Z:function(){return Se}});var a=u(91857),b=u(92310),P=u.n(b),z=u(59301),v=u(18785),_=u(3113),fe=u(36355),de=u(81327),N=u(33234),q=u(47211),oe=function(te,re){var x={};for(var w in te)Object.prototype.hasOwnProperty.call(te,w)&&re.indexOf(w)<0&&(x[w]=te[w]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,w=Object.getOwnPropertySymbols(te);y<w.length;y++)re.indexOf(w[y])<0&&Object.prototype.propertyIsEnumerable.call(te,w[y])&&(x[w[y]]=te[w[y]]);return x};const Q=te=>{const{getPopupContainer:re,getPrefixCls:x,direction:w}=z.useContext(fe.E_),{prefixCls:y,type:M="default",danger:O,disabled:U,loading:$,onClick:A,htmlType:J,children:ae,className:ce,menu:De,arrow:Be,autoFocus:Te,overlay:Ie,trigger:T,align:Ve,open:Xe,onOpenChange:H,placement:Y,getPopupContainer:ke,href:Ce,icon:le=z.createElement(v.Z,null),title:ue,buttonsRender:ve=l=>l,mouseEnterDelay:je,mouseLeaveDelay:Pe,overlayClassName:Ke,overlayStyle:at,destroyPopupOnHide:ot,dropdownRender:Ue}=te,He=oe(te,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Qe=x("dropdown",y),et=`${Qe}-button`,[tt,B]=(0,q.Z)(Qe),g={menu:De,arrow:Be,autoFocus:Te,align:Ve,disabled:U,trigger:U?[]:T,onOpenChange:H,getPopupContainer:ke||re,mouseEnterDelay:je,mouseLeaveDelay:Pe,overlayClassName:Ke,overlayStyle:at,destroyPopupOnHide:ot,dropdownRender:Ue},{compactSize:s,compactItemClassnames:h}=(0,N.ri)(Qe,w),p=P()(et,h,ce,B);"overlay"in te&&(g.overlay=Ie),"open"in te&&(g.open=Xe),"placement"in te?g.placement=Y:g.placement=w==="rtl"?"bottomLeft":"bottomRight";const F=z.createElement(_.ZP,{type:M,danger:O,disabled:U,loading:$,onClick:A,htmlType:J,href:Ce,title:ue},ae),d=z.createElement(_.ZP,{type:M,danger:O,icon:le}),[m,E]=ve([F,d]);return tt(z.createElement(de.Z.Compact,Object.assign({className:p,size:s,block:!0},He),m,z.createElement(a.Z,Object.assign({},g),E)))};Q.__ANT_BUTTON=!0;var o=Q;const W=a.Z;W.Button=o;var Se=W},47211:function(dt,Re,u){"use strict";u.d(Re,{Z:function(){return oe}});var a=u(17313),b=u(13826),P=u(92899),z=u(29878),v=u(19447),_=u(83116),fe=u(37613),N=Q=>{const{componentCls:o,menuCls:W,colorError:Se,colorTextLightSolid:te}=Q,re=`${W}-item`;return{[`${o}, ${o}-menu-submenu`]:{[`${W} ${re}`]:{[`&${re}-danger:not(${re}-disabled)`]:{color:Se,"&:hover":{color:te,backgroundColor:Se}}}}}};const q=Q=>{const{componentCls:o,menuCls:W,zIndexPopup:Se,dropdownArrowDistance:te,sizePopupArrow:re,antCls:x,iconCls:w,motionDurationMid:y,dropdownPaddingVertical:M,fontSize:O,dropdownEdgeChildPadding:U,colorTextDisabled:$,fontSizeIcon:A,controlPaddingHorizontal:J,colorBgElevated:ae}=Q;return[{[o]:Object.assign(Object.assign({},(0,a.Wf)(Q)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Se,display:"block","&::before":{position:"absolute",insetBlock:-te+re/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${x}-btn`]:{[`& > ${w}-down, & > ${x}-btn-icon > ${w}-down`]:{fontSize:A}},[`${o}-wrap`]:{position:"relative",[`${x}-btn > ${w}-down`]:{fontSize:A},[`${w}-down::before`]:{transition:`transform ${y}`}},[`${o}-wrap-open`]:{[`${w}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${x}-slide-down-enter${x}-slide-down-enter-active${o}-placement-bottomLeft,
&${x}-slide-down-appear${x}-slide-down-appear-active${o}-placement-bottomLeft,
&${x}-slide-down-enter${x}-slide-down-enter-active${o}-placement-bottom,
&${x}-slide-down-appear${x}-slide-down-appear-active${o}-placement-bottom,
&${x}-slide-down-enter${x}-slide-down-enter-active${o}-placement-bottomRight,
&${x}-slide-down-appear${x}-slide-down-appear-active${o}-placement-bottomRight`]:{animationName:b.fJ},[`&${x}-slide-up-enter${x}-slide-up-enter-active${o}-placement-topLeft,
&${x}-slide-up-appear${x}-slide-up-appear-active${o}-placement-topLeft,
&${x}-slide-up-enter${x}-slide-up-enter-active${o}-placement-top,
&${x}-slide-up-appear${x}-slide-up-appear-active${o}-placement-top,
&${x}-slide-up-enter${x}-slide-up-enter-active${o}-placement-topRight,
&${x}-slide-up-appear${x}-slide-up-appear-active${o}-placement-topRight`]:{animationName:b.Qt},[`&${x}-slide-down-leave${x}-slide-down-leave-active${o}-placement-bottomLeft,
&${x}-slide-down-leave${x}-slide-down-leave-active${o}-placement-bottom,
&${x}-slide-down-leave${x}-slide-down-leave-active${o}-placement-bottomRight`]:{animationName:b.Uw},[`&${x}-slide-up-leave${x}-slide-up-leave-active${o}-placement-topLeft,
&${x}-slide-up-leave${x}-slide-up-leave-active${o}-placement-top,
&${x}-slide-up-leave${x}-slide-up-leave-active${o}-placement-topRight`]:{animationName:b.ly}})},(0,v.ZP)(Q,{colorBg:ae,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${o} ${W}`]:{position:"relative",margin:0},[`${W}-submenu-popup`]:{position:"absolute",zIndex:Se,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${o}, ${o}-menu-submenu`]:{[W]:Object.assign(Object.assign({padding:U,listStyleType:"none",backgroundColor:ae,backgroundClip:"padding-box",borderRadius:Q.borderRadiusLG,outline:"none",boxShadow:Q.boxShadowSecondary},(0,a.Qy)(Q)),{[`${W}-item-group-title`]:{padding:`${M}px ${J}px`,color:Q.colorTextDescription,transition:`all ${y}`},[`${W}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${W}-item-icon`]:{minWidth:O,marginInlineEnd:Q.marginXS,fontSize:Q.fontSizeSM},[`${W}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${y}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${W}-item, ${W}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${M}px ${J}px`,color:Q.colorText,fontWeight:"normal",fontSize:O,lineHeight:Q.lineHeight,cursor:"pointer",transition:`all ${y}`,borderRadius:Q.borderRadiusSM,"&:hover, &-active":{backgroundColor:Q.controlItemBgHover}},(0,a.Qy)(Q)),{"&-selected":{color:Q.colorPrimary,backgroundColor:Q.controlItemBgActive,"&:hover, &-active":{backgroundColor:Q.controlItemBgActiveHover}},"&-disabled":{color:$,cursor:"not-allowed","&:hover":{color:$,backgroundColor:ae,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Q.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Q.colorSplit},[`${o}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Q.paddingXS,[`${o}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Q.colorTextDescription,fontSize:A,fontStyle:"normal"}}}),[`${W}-item-group-list`]:{margin:`0 ${Q.marginXS}px`,padding:0,listStyle:"none"},[`${W}-submenu-title`]:{paddingInlineEnd:J+Q.fontSizeSM},[`${W}-submenu-vertical`]:{position:"relative"},[`${W}-submenu${W}-submenu-disabled ${o}-menu-submenu-title`]:{[`&, ${o}-menu-submenu-arrow-icon`]:{color:$,backgroundColor:ae,cursor:"not-allowed"}},[`${W}-submenu-selected ${o}-menu-submenu-title`]:{color:Q.colorPrimary}})}},[(0,b.oN)(Q,"slide-up"),(0,b.oN)(Q,"slide-down"),(0,P.Fm)(Q,"move-up"),(0,P.Fm)(Q,"move-down"),(0,z._y)(Q,"zoom-big")]]};var oe=(0,_.Z)("Dropdown",(Q,o)=>{let{rootPrefixCls:W}=o;const{marginXXS:Se,sizePopupArrow:te,controlHeight:re,fontSize:x,lineHeight:w,paddingXXS:y,componentCls:M,borderRadiusLG:O}=Q,U=(re-x*w)/2,{dropdownArrowOffset:$}=(0,v.fS)({contentRadius:O}),A=(0,fe.TS)(Q,{menuCls:`${M}-menu`,rootPrefixCls:W,dropdownArrowDistance:te/2+Se,dropdownArrowOffset:$,dropdownPaddingVertical:U,dropdownEdgeChildPadding:y});return[q(A),N(A)]},Q=>({zIndexPopup:Q.zIndexPopupBase+50}))},45818:function(dt,Re,u){"use strict";u.d(Re,{D:function(){return y},Z:function(){return U}});var a=u(60499),b=u(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,v=u(7657),_=function(A,J){return b.createElement(v.Z,(0,a.Z)({},A,{ref:J,icon:z}))},fe=b.forwardRef(_),de=fe,N=u(33853),q=u(38819),oe=u(92310),Q=u.n(oe),o=u(2738),Se=$=>!isNaN(parseFloat($))&&isFinite($),te=u(36355),re=u(84966),x=function($,A){var J={};for(var ae in $)Object.prototype.hasOwnProperty.call($,ae)&&A.indexOf(ae)<0&&(J[ae]=$[ae]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ae=Object.getOwnPropertySymbols($);ce<ae.length;ce++)A.indexOf(ae[ce])<0&&Object.prototype.propertyIsEnumerable.call($,ae[ce])&&(J[ae[ce]]=$[ae[ce]]);return J};const w={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},y=b.createContext({}),M=(()=>{let $=0;return function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return $+=1,`${A}${$}`}})();var U=b.forwardRef(($,A)=>{const{prefixCls:J,className:ae,trigger:ce,children:De,defaultCollapsed:Be=!1,theme:Te="dark",style:Ie={},collapsible:T=!1,reverseArrow:Ve=!1,width:Xe=200,collapsedWidth:H=80,zeroWidthTriggerStyle:Y,breakpoint:ke,onCollapse:Ce,onBreakpoint:le}=$,ue=x($,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ve}=(0,b.useContext)(re.Gs),[je,Pe]=(0,b.useState)("collapsed"in $?$.collapsed:Be),[Ke,at]=(0,b.useState)(!1);(0,b.useEffect)(()=>{"collapsed"in $&&Pe($.collapsed)},[$.collapsed]);const ot=(B,g)=>{"collapsed"in $||Pe(B),Ce==null||Ce(B,g)},Ue=(0,b.useRef)();Ue.current=B=>{at(B.matches),le==null||le(B.matches),je!==B.matches&&ot(B.matches,"responsive")},(0,b.useEffect)(()=>{function B(s){return Ue.current(s)}let g;if(typeof window!="undefined"){const{matchMedia:s}=window;if(s&&ke&&ke in w){g=s(`(max-width: ${w[ke]})`);try{g.addEventListener("change",B)}catch(h){g.addListener(B)}B(g)}}return()=>{try{g==null||g.removeEventListener("change",B)}catch(s){g==null||g.removeListener(B)}}},[ke]),(0,b.useEffect)(()=>{const B=M("ant-sider-");return ve.addSider(B),()=>ve.removeSider(B)},[]);const He=()=>{ot(!je,"clickTrigger")},{getPrefixCls:Qe}=(0,b.useContext)(te.E_),et=()=>{const B=Qe("layout-sider",J),g=(0,o.Z)(ue,["collapsed"]),s=je?H:Xe,h=Se(s)?`${s}px`:String(s),p=parseFloat(String(H||0))===0?b.createElement("span",{onClick:He,className:Q()(`${B}-zero-width-trigger`,`${B}-zero-width-trigger-${Ve?"right":"left"}`),style:Y},ce||b.createElement(de,null)):null,m={expanded:Ve?b.createElement(q.Z,null):b.createElement(N.Z,null),collapsed:Ve?b.createElement(N.Z,null):b.createElement(q.Z,null)}[je?"collapsed":"expanded"],E=ce!==null?p||b.createElement("div",{className:`${B}-trigger`,onClick:He,style:{width:h}},ce||m):null,l=Object.assign(Object.assign({},Ie),{flex:`0 0 ${h}`,maxWidth:h,minWidth:h,width:h}),R=Q()(B,`${B}-${Te}`,{[`${B}-collapsed`]:!!je,[`${B}-has-trigger`]:T&&ce!==null&&!p,[`${B}-below`]:!!Ke,[`${B}-zero-width`]:parseFloat(h)===0},ae);return b.createElement("aside",Object.assign({className:R},g,{style:l,ref:A}),b.createElement("div",{className:`${B}-children`},De),T||Ke&&p?E:null)},tt=b.useMemo(()=>({siderCollapsed:je}),[je]);return b.createElement(y.Provider,{value:tt},et())})},84966:function(dt,Re,u){"use strict";u.d(Re,{VY:function(){return y},$_:function(){return w},h4:function(){return x},Gs:function(){return o},ZP:function(){return M}});var a=u(77654),b=u(92310),P=u.n(b),z=u(2738),v=u(59301),_=u(36355),fe=u(83116),N=O=>{const{componentCls:U,bodyBg:$,lightSiderBg:A,lightTriggerBg:J,lightTriggerColor:ae}=O;return{[`${U}-sider-light`]:{background:A,[`${U}-sider-trigger`]:{color:ae,background:J},[`${U}-sider-zero-width-trigger`]:{color:ae,background:J,border:`1px solid ${$}`,borderInlineStart:0}}}};const q=O=>{const{antCls:U,componentCls:$,colorText:A,triggerColor:J,footerBg:ae,triggerBg:ce,headerHeight:De,headerPadding:Be,headerColor:Te,footerPadding:Ie,triggerHeight:T,zeroTriggerHeight:Ve,zeroTriggerWidth:Xe,motionDurationMid:H,motionDurationSlow:Y,fontSize:ke,borderRadius:Ce,bodyBg:le,headerBg:ue,siderBg:ve}=O;return{[$]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:le,"&, *":{boxSizing:"border-box"},[`&${$}-has-sider`]:{flexDirection:"row",[`> ${$}, > ${$}-content`]:{width:0}},[`${$}-header, &${$}-footer`]:{flex:"0 0 auto"},[`${$}-sider`]:{position:"relative",minWidth:0,background:ve,transition:`all ${H}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${U}-menu${U}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:T},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:T,color:J,lineHeight:`${T}px`,textAlign:"center",background:ce,cursor:"pointer",transition:`all ${H}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:De,insetInlineEnd:-Xe,zIndex:1,width:Xe,height:Ve,color:J,fontSize:O.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ve,borderStartStartRadius:0,borderStartEndRadius:Ce,borderEndEndRadius:Ce,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Y} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Y}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Xe,borderStartStartRadius:Ce,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ce}}}}},N(O)),{"&-rtl":{direction:"rtl"}}),[`${$}-header`]:{height:De,padding:Be,color:Te,lineHeight:`${De}px`,background:ue,[`${U}-menu`]:{lineHeight:"inherit"}},[`${$}-footer`]:{padding:Ie,color:A,fontSize:ke,background:ae},[`${$}-content`]:{flex:"auto",minHeight:0}}};var oe=(0,fe.Z)("Layout",O=>[q(O)],O=>{const{colorBgLayout:U,controlHeight:$,controlHeightLG:A,colorText:J,controlHeightSM:ae,marginXXS:ce,colorTextLightSolid:De,colorBgContainer:Be}=O,Te=A*1.25;return{colorBgHeader:"#001529",colorBgBody:U,colorBgTrigger:"#002140",bodyBg:U,headerBg:"#001529",headerHeight:$*2,headerPadding:`0 ${Te}px`,headerColor:J,footerPadding:`${ae}px ${Te}px`,footerBg:U,siderBg:"#001529",triggerHeight:A+ce*2,triggerBg:"#002140",triggerColor:De,zeroTriggerWidth:A,zeroTriggerHeight:A,lightSiderBg:Be,lightTriggerBg:Be,lightTriggerColor:J}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Q=function(O,U){var $={};for(var A in O)Object.prototype.hasOwnProperty.call(O,A)&&U.indexOf(A)<0&&($[A]=O[A]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,A=Object.getOwnPropertySymbols(O);J<A.length;J++)U.indexOf(A[J])<0&&Object.prototype.propertyIsEnumerable.call(O,A[J])&&($[A[J]]=O[A[J]]);return $};const o=v.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function W(O){let{suffixCls:U,tagName:$,displayName:A}=O;return J=>v.forwardRef((ce,De)=>v.createElement(J,Object.assign({ref:De,suffixCls:U,tagName:$},ce)))}const Se=v.forwardRef((O,U)=>{const{prefixCls:$,suffixCls:A,className:J,tagName:ae}=O,ce=Q(O,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:De}=v.useContext(_.E_),Be=De("layout",$),[Te,Ie]=oe(Be),T=A?`${Be}-${A}`:Be;return Te(v.createElement(ae,Object.assign({className:P()($||T,J,Ie),ref:U},ce)))}),te=v.forwardRef((O,U)=>{const{direction:$}=v.useContext(_.E_),[A,J]=v.useState([]),{prefixCls:ae,className:ce,rootClassName:De,children:Be,hasSider:Te,tagName:Ie,style:T}=O,Ve=Q(O,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Xe=(0,z.Z)(Ve,["suffixCls"]),{getPrefixCls:H,layout:Y}=v.useContext(_.E_),ke=H("layout",ae),[Ce,le]=oe(ke),ue=P()(ke,{[`${ke}-has-sider`]:typeof Te=="boolean"?Te:A.length>0,[`${ke}-rtl`]:$==="rtl"},Y==null?void 0:Y.className,ce,De,le),ve=v.useMemo(()=>({siderHook:{addSider:je=>{J(Pe=>[].concat((0,a.Z)(Pe),[je]))},removeSider:je=>{J(Pe=>Pe.filter(Ke=>Ke!==je))}}}),[]);return Ce(v.createElement(o.Provider,{value:ve},v.createElement(Ie,Object.assign({ref:U,className:ue,style:Object.assign(Object.assign({},Y==null?void 0:Y.style),T)},Xe),Be)))}),re=W({tagName:"div",displayName:"Layout"})(te),x=W({suffixCls:"header",tagName:"header",displayName:"Header"})(Se),w=W({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Se),y=W({suffixCls:"content",tagName:"main",displayName:"Content"})(Se);var M=re},40875:function(dt,Re,u){"use strict";u.d(Re,{J:function(){return _}});var a=u(59301),b=u(33234),P=u(70425),z=function(fe,de){var N={};for(var q in fe)Object.prototype.hasOwnProperty.call(fe,q)&&de.indexOf(q)<0&&(N[q]=fe[q]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,q=Object.getOwnPropertySymbols(fe);oe<q.length;oe++)de.indexOf(q[oe])<0&&Object.prototype.propertyIsEnumerable.call(fe,q[oe])&&(N[q[oe]]=fe[q[oe]]);return N};const v=a.createContext(null),_=a.forwardRef((fe,de)=>{const{children:N}=fe,q=z(fe,["children"]),oe=a.useContext(v),Q=a.useMemo(()=>Object.assign(Object.assign({},oe),q),[oe,q.prefixCls,q.mode,q.selectable]);return a.createElement(v.Provider,{value:Q},a.createElement(b.BR,null,(0,P.supportNodeRef)(N)?a.cloneElement(N,{ref:de}):N))});Re.Z=v},20834:function(dt,Re,u){"use strict";u.d(Re,{default:function(){return tt}});var a=u(15285),b=u(59301),P=u(45818),z=u(92310),v=u.n(z),_=u(36355),fe=function(B,g){var s={};for(var h in B)Object.prototype.hasOwnProperty.call(B,h)&&g.indexOf(h)<0&&(s[h]=B[h]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,h=Object.getOwnPropertySymbols(B);p<h.length;p++)g.indexOf(h[p])<0&&Object.prototype.propertyIsEnumerable.call(B,h[p])&&(s[h[p]]=B[h[p]]);return s},N=B=>{const{prefixCls:g,className:s,dashed:h}=B,p=fe(B,["prefixCls","className","dashed"]),{getPrefixCls:F}=b.useContext(_.E_),d=F("menu",g),m=v()({[`${d}-item-divider-dashed`]:!!h},s);return b.createElement(a.iz,Object.assign({className:m},p))},q=u(11592),oe=u(2738),Q=u(6848),o=u(92343),Se=(0,b.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),re=B=>{var g;const{className:s,children:h,icon:p,title:F,danger:d}=B,{prefixCls:m,firstLevel:E,direction:l,disableMenuItemTitleTooltip:R,inlineCollapsed:G}=b.useContext(Se),me=ut=>{const _t=b.createElement("span",{className:`${m}-title-content`},h);return(!p||(0,o.l$)(h)&&h.type==="span")&&h&&ut&&E&&typeof h=="string"?b.createElement("div",{className:`${m}-inline-collapsed-noicon`},h.charAt(0)):_t},{siderCollapsed:Ee}=b.useContext(P.D);let Fe=F;typeof F=="undefined"?Fe=E?h:"":F===!1&&(Fe="");const _e={title:Fe};!Ee&&!G&&(_e.title=null,_e.open=!1);const Oe=(0,q.Z)(h).length;let ye=b.createElement(a.ck,Object.assign({},(0,oe.Z)(B,["title","icon","danger"]),{className:v()({[`${m}-item-danger`]:d,[`${m}-item-only-child`]:(p?Oe+1:Oe)===1},s),title:typeof F=="string"?F:void 0}),(0,o.Tm)(p,{className:v()((0,o.l$)(p)?(g=p.props)===null||g===void 0?void 0:g.className:"",`${m}-item-icon`)}),me(G));return R||(ye=b.createElement(Q.Z,Object.assign({},_e,{placement:l==="rtl"?"left":"right",overlayClassName:`${m}-inline-collapsed-tooltip`}),ye)),ye},w=B=>{var g;const{popupClassName:s,icon:h,title:p,theme:F}=B,d=b.useContext(Se),{prefixCls:m,inlineCollapsed:E,theme:l}=d,R=(0,a.Xl)();let G;if(!h)G=E&&!R.length&&p&&typeof p=="string"?b.createElement("div",{className:`${m}-inline-collapsed-noicon`},p.charAt(0)):b.createElement("span",{className:`${m}-title-content`},p);else{const Ee=(0,o.l$)(p)&&p.type==="span";G=b.createElement(b.Fragment,null,(0,o.Tm)(h,{className:v()((0,o.l$)(h)?(g=h.props)===null||g===void 0?void 0:g.className:"",`${m}-item-icon`)}),Ee?p:b.createElement("span",{className:`${m}-title-content`},p))}const me=b.useMemo(()=>Object.assign(Object.assign({},d),{firstLevel:!1}),[d]);return b.createElement(Se.Provider,{value:me},b.createElement(a.Wd,Object.assign({},(0,oe.Z)(B,["icon"]),{title:G,popupClassName:v()(m,s,`${m}-${F||l}`)})))},y=u(18785),M=u(70425),O=u(62892),U=u(40875),$=function(B,g){var s={};for(var h in B)Object.prototype.hasOwnProperty.call(B,h)&&g.indexOf(h)<0&&(s[h]=B[h]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,h=Object.getOwnPropertySymbols(B);p<h.length;p++)g.indexOf(h[p])<0&&Object.prototype.propertyIsEnumerable.call(B,h[p])&&(s[h[p]]=B[h[p]]);return s};function A(B){return(B||[]).map((g,s)=>{if(g&&typeof g=="object"){const h=g,{label:p,children:F,key:d,type:m}=h,E=$(h,["label","children","key","type"]),l=d!=null?d:`tmp-${s}`;return F||m==="group"?m==="group"?b.createElement(a.BW,Object.assign({key:l},E,{title:p}),A(F)):b.createElement(w,Object.assign({key:l},E,{title:p}),A(F)):m==="divider"?b.createElement(N,Object.assign({key:l},E)):b.createElement(re,Object.assign({key:l},E),p)}return null}).filter(g=>g)}function J(B){return b.useMemo(()=>B&&A(B),[B])}var ae=u(64993),ce=u(17313),De=u(8378),Be=u(13826),Te=u(29878),Ie=u(83116),T=u(37613),Xe=B=>{const{componentCls:g,motionDurationSlow:s,horizontalLineHeight:h,colorSplit:p,lineWidth:F,lineType:d,itemPaddingInline:m}=B;return{[`${g}-horizontal`]:{lineHeight:h,border:0,borderBottom:`${F}px ${d} ${p}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${g}-item, ${g}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:m},[`> ${g}-item:hover,
> ${g}-item-active,
> ${g}-submenu ${g}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${g}-item, ${g}-submenu-title`]:{transition:[`border-color ${s}`,`background ${s}`].join(",")},[`${g}-submenu-arrow`]:{display:"none"}}}},Y=B=>{let{componentCls:g,menuArrowOffset:s}=B;return{[`${g}-rtl`]:{direction:"rtl"},[`${g}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${g}-rtl${g}-vertical,
${g}-submenu-rtl ${g}-vertical`]:{[`${g}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${s})`},"&::after":{transform:`rotate(45deg) translateY(${s})`}}}}};const ke=B=>Object.assign({},(0,ce.oN)(B));var le=(B,g)=>{const{componentCls:s,itemColor:h,itemSelectedColor:p,groupTitleColor:F,itemBg:d,subMenuItemBg:m,itemSelectedBg:E,activeBarHeight:l,activeBarWidth:R,activeBarBorderWidth:G,motionDurationSlow:me,motionEaseInOut:Ee,motionEaseOut:Fe,itemPaddingInline:_e,motionDurationMid:Oe,itemHoverColor:ye,lineType:ut,colorSplit:_t,itemDisabledColor:Z,dangerItemColor:bt,dangerItemHoverColor:mt,dangerItemSelectedColor:xt,dangerItemActiveBg:Ye,dangerItemSelectedBg:At,itemHoverBg:Tt,itemActiveBg:Ft,menuSubMenuBg:Et,horizontalItemSelectedColor:Zt,horizontalItemSelectedBg:Kt,horizontalItemBorderRadius:xe,horizontalItemHoverBg:We,popupBg:Rt}=B;return{[`${s}-${g}, ${s}-${g} > ${s}`]:{color:h,background:d,[`&${s}-root:focus-visible`]:Object.assign({},ke(B)),[`${s}-item-group-title`]:{color:F},[`${s}-submenu-selected`]:{[`> ${s}-submenu-title`]:{color:p}},[`${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:ye}},[`&: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:Ye}},[`${s}-item a`]:{"&, &:hover":{color:"inherit"}},[`${s}-item-selected`]:{color:p,[`&${s}-item-danger`]:{color:xt},"a, a:hover":{color:"inherit"}},[`& ${s}-item-selected`]:{backgroundColor:E,[`&${s}-item-danger`]:{backgroundColor:At}},[`${s}-item, ${s}-submenu-title`]:{[`&:not(${s}-item-disabled):focus-visible`]:Object.assign({},ke(B))},[`&${s}-submenu > ${s}`]:{backgroundColor:Et},[`&${s}-popup > ${s}`]:{backgroundColor:Rt},[`&${s}-horizontal`]:Object.assign(Object.assign({},g==="dark"?{borderBottom:0}:{}),{[`> ${s}-item, > ${s}-submenu`]:{top:G,marginTop:-G,marginBottom:0,borderRadius:xe,"&::after":{position:"absolute",insetInline:_e,bottom:0,borderBottom:`${l}px solid transparent`,transition:`border-color ${me} ${Ee}`,content:'""'},"&:hover, &-active, &-open":{background:We,"&::after":{borderBottomWidth:l,borderBottomColor:Zt}},"&-selected":{color:Zt,backgroundColor:Kt,"&:hover":{backgroundColor:Kt},"&::after":{borderBottomWidth:l,borderBottomColor:Zt}}}}),[`&${s}-root`]:{[`&${s}-inline, &${s}-vertical`]:{borderInlineEnd:`${G}px ${ut} ${_t}`}},[`&${s}-inline`]:{[`${s}-sub${s}-inline`]:{background:m},[`${s}-item, ${s}-submenu-title`]:G&&R?{width:`calc(100% + ${G}px)`}:{},[`${s}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${R}px solid ${p}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Oe} ${Fe}`,`opacity ${Oe} ${Fe}`].join(","),content:'""'},[`&${s}-item-danger`]:{"&::after":{borderInlineEndColor:xt}}},[`${s}-selected, ${s}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Oe} ${Ee}`,`opacity ${Oe} ${Ee}`].join(",")}}}}}};const ue=B=>{const{componentCls:g,itemHeight:s,itemMarginInline:h,padding:p,menuArrowSize:F,marginXS:d,itemMarginBlock:m}=B,E=p+F+d;return{[`${g}-item`]:{position:"relative",overflow:"hidden"},[`${g}-item, ${g}-submenu-title`]:{height:s,lineHeight:`${s}px`,paddingInline:p,overflow:"hidden",textOverflow:"ellipsis",marginInline:h,marginBlock:m,width:`calc(100% - ${h*2}px)`},[`> ${g}-item,
> ${g}-submenu > ${g}-submenu-title`]:{height:s,lineHeight:`${s}px`},[`${g}-item-group-list ${g}-submenu-title,
${g}-submenu-title`]:{paddingInlineEnd:E}}};var je=B=>{const{componentCls:g,iconCls:s,itemHeight:h,colorTextLightSolid:p,dropdownWidth:F,controlHeightLG:d,motionDurationMid:m,motionEaseOut:E,paddingXL:l,itemMarginInline:R,fontSizeLG:G,motionDurationSlow:me,paddingXS:Ee,boxShadowSecondary:Fe,collapsedWidth:_e,collapsedIconSize:Oe}=B,ye={height:h,lineHeight:`${h}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[g]:{"&-inline, &-vertical":Object.assign({[`&${g}-root`]:{boxShadow:"none"}},ue(B))},[`${g}-submenu-popup`]:{[`${g}-vertical`]:Object.assign(Object.assign({},ue(B)),{boxShadow:Fe})}},{[`${g}-submenu-popup ${g}-vertical${g}-sub`]:{minWidth:F,maxHeight:`calc(100vh - ${d*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${g}-inline`]:{width:"100%",[`&${g}-root`]:{[`${g}-item, ${g}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${me}`,`background ${me}`,`padding ${m} ${E}`].join(","),[`> ${g}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${g}-sub${g}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${g}-submenu > ${g}-submenu-title`]:ye,[`& ${g}-item-group-title`]:{paddingInlineStart:l}},[`${g}-item`]:ye}},{[`${g}-inline-collapsed`]:{width:_e,[`&${g}-root`]:{[`${g}-item, ${g}-submenu ${g}-submenu-title`]:{[`> ${g}-inline-collapsed-noicon`]:{fontSize:G,textAlign:"center"}}},[`> ${g}-item,
> ${g}-item-group > ${g}-item-group-list > ${g}-item,
> ${g}-item-group > ${g}-item-group-list > ${g}-submenu > ${g}-submenu-title,
> ${g}-submenu > ${g}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${G/2}px - ${R}px)`,textOverflow:"clip",[`
${g}-submenu-arrow,
${g}-submenu-expand-icon
`]:{opacity:0},[`${g}-item-icon, ${s}`]:{margin:0,fontSize:Oe,lineHeight:`${h}px`,"+ span":{display:"inline-block",opacity:0}}},[`${g}-item-icon, ${s}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${g}-item-icon, ${s}`]:{display:"none"},"a, a:hover":{color:p}},[`${g}-item-group-title`]:Object.assign(Object.assign({},ce.vS),{paddingInline:Ee})}}]};const Pe=B=>{const{componentCls:g,motionDurationSlow:s,motionDurationMid:h,motionEaseInOut:p,motionEaseOut:F,iconCls:d,iconSize:m,iconMarginInlineEnd:E}=B;return{[`${g}-item, ${g}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${s}`,`background ${s}`,`padding ${s} ${p}`].join(","),[`${g}-item-icon, ${d}`]:{minWidth:m,fontSize:m,transition:[`font-size ${h} ${F}`,`margin ${s} ${p}`,`color ${s}`].join(","),"+ span":{marginInlineStart:E,opacity:1,transition:[`opacity ${s} ${p}`,`margin ${s}`,`color ${s}`].join(",")}},[`${g}-item-icon`]:Object.assign({},(0,ce.Ro)()),[`&${g}-item-only-child`]:{[`> ${d}, > ${g}-item-icon`]:{marginInlineEnd:0}}},[`${g}-item-disabled, ${g}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${g}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ke=B=>{const{componentCls:g,motionDurationSlow:s,motionEaseInOut:h,borderRadius:p,menuArrowSize:F,menuArrowOffset:d}=B;return{[`${g}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:B.margin,width:F,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${s} ${h}, opacity ${s}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:F*.6,height:F*.15,backgroundColor:"currentcolor",borderRadius:p,transition:[`background ${s} ${h}`,`transform ${s} ${h}`,`top ${s} ${h}`,`color ${s} ${h}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${d})`},"&::after":{transform:`rotate(-45deg) translateY(${d})`}}}}},at=B=>{const{antCls:g,componentCls:s,fontSize:h,motionDurationSlow:p,motionDurationMid:F,motionEaseInOut:d,paddingXS:m,padding:E,colorSplit:l,lineWidth:R,zIndexPopup:G,borderRadiusLG:me,subMenuItemBorderRadius:Ee,menuArrowSize:Fe,menuArrowOffset:_e,lineType:Oe,menuPanelMaskInset:ye,groupTitleLineHeight:ut,groupTitleFontSize:_t}=B;return[{"":{[`${s}`]:Object.assign(Object.assign({},(0,ce.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,ce.Wf)(B)),(0,ce.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:h,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${p} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${s}-item`]:{flex:"none"}},[`${s}-item, ${s}-submenu, ${s}-submenu-title`]:{borderRadius:B.itemBorderRadius},[`${s}-item-group-title`]:{padding:`${m}px ${E}px`,fontSize:_t,lineHeight:ut,transition:`all ${p}`},[`&-horizontal ${s}-submenu`]:{transition:[`border-color ${p} ${d}`,`background ${p} ${d}`].join(",")},[`${s}-submenu, ${s}-submenu-inline`]:{transition:[`border-color ${p} ${d}`,`background ${p} ${d}`,`padding ${F} ${d}`].join(",")},[`${s}-submenu ${s}-sub`]:{cursor:"initial",transition:[`background ${p} ${d}`,`padding ${p} ${d}`].join(",")},[`${s}-title-content`]:{transition:`color ${p}`},[`${s}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${s}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:l,borderStyle:Oe,borderWidth:0,borderTopWidth:R,marginBlock:R,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Pe(B)),{[`${s}-item-group`]:{[`${s}-item-group-list`]:{margin:0,padding:0,[`${s}-item, ${s}-submenu-title`]:{paddingInline:`${h*2}px ${E}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:G,borderRadius:me,boxShadow:"none",transformOrigin:"0 0",[`&${s}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ye}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ye},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:B.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:B.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:B.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:B.paddingXS},[`> ${s}`]:Object.assign(Object.assign(Object.assign({borderRadius:me},Pe(B)),Ke(B)),{[`${s}-item, ${s}-submenu > ${s}-submenu-title`]:{borderRadius:Ee},[`${s}-submenu-title::after`]:{transition:`transform ${p} ${d}`}})}}),Ke(B)),{[`&-inline-collapsed ${s}-submenu-arrow,
&-inline ${s}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${_e})`},"&::after":{transform:`rotate(45deg) translateX(-${_e})`}},[`${s}-submenu-open${s}-submenu-inline > ${s}-submenu-title > ${s}-submenu-arrow`]:{transform:`translateY(-${Fe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${_e})`},"&::before":{transform:`rotate(45deg) translateX(${_e})`}}})},{[`${g}-layout-header`]:{[s]:{lineHeight:"inherit"}}}]};var ot=(B,g)=>(0,Ie.Z)("Menu",h=>{if(g===!1)return[];const{colorBgElevated:p,colorPrimary:F,colorTextLightSolid:d,controlHeightLG:m,fontSize:E,darkItemColor:l,darkDangerItemColor:R,darkItemBg:G,darkSubMenuItemBg:me,darkItemSelectedColor:Ee,darkItemSelectedBg:Fe,darkDangerItemSelectedBg:_e,darkItemHoverBg:Oe,darkGroupTitleColor:ye,darkItemHoverColor:ut,darkItemDisabledColor:_t,darkDangerItemHoverColor:Z,darkDangerItemSelectedColor:bt,darkDangerItemActiveBg:mt}=h,xt=E/7*5,Ye=(0,T.TS)(h,{menuArrowSize:xt,menuHorizontalHeight:m*1.15,menuArrowOffset:`${xt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:p}),At=(0,T.TS)(Ye,{itemColor:l,itemHoverColor:ut,groupTitleColor:ye,itemSelectedColor:Ee,itemBg:G,popupBg:G,subMenuItemBg:me,itemActiveBg:"transparent",itemSelectedBg:Fe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Oe,itemDisabledColor:_t,dangerItemColor:R,dangerItemHoverColor:Z,dangerItemSelectedColor:bt,dangerItemActiveBg:mt,dangerItemSelectedBg:_e,menuSubMenuBg:me,horizontalItemSelectedColor:d,horizontalItemSelectedBg:F});return[at(Ye),Xe(Ye),je(Ye),le(Ye,"light"),le(At,"dark"),Y(Ye),(0,De.Z)(Ye),(0,Be.oN)(Ye,"slide-up"),(0,Be.oN)(Ye,"slide-down"),(0,Te._y)(Ye,"zoom-big")]},h=>{const{colorPrimary:p,colorError:F,colorTextDisabled:d,colorErrorBg:m,colorText:E,colorTextDescription:l,colorBgContainer:R,colorFillAlter:G,colorFillContent:me,lineWidth:Ee,lineWidthBold:Fe,controlItemBgActive:_e,colorBgTextHover:Oe,controlHeightLG:ye,lineHeight:ut,colorBgElevated:_t,marginXXS:Z,padding:bt,fontSize:mt,controlHeightSM:xt,fontSizeLG:Ye,colorTextLightSolid:At,colorErrorHover:Tt}=h,Ft=new ae.C(At).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:h.zIndexPopupBase+50,radiusItem:h.borderRadiusLG,itemBorderRadius:h.borderRadiusLG,radiusSubMenuItem:h.borderRadiusSM,subMenuItemBorderRadius:h.borderRadiusSM,colorItemText:E,itemColor:E,colorItemTextHover:E,itemHoverColor:E,colorItemTextHoverHorizontal:p,horizontalItemHoverColor:p,colorGroupTitle:l,groupTitleColor:l,colorItemTextSelected:p,itemSelectedColor:p,colorItemTextSelectedHorizontal:p,horizontalItemSelectedColor:p,colorItemBg:R,itemBg:R,colorItemBgHover:Oe,itemHoverBg:Oe,colorItemBgActive:me,itemActiveBg:_e,colorSubItemBg:G,subMenuItemBg:G,colorItemBgSelected:_e,itemSelectedBg:_e,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Fe,activeBarHeight:Fe,colorActiveBarBorderSize:Ee,activeBarBorderWidth:Ee,colorItemTextDisabled:d,itemDisabledColor:d,colorDangerItemText:F,dangerItemColor:F,colorDangerItemTextHover:F,dangerItemHoverColor:F,colorDangerItemTextSelected:F,dangerItemSelectedColor:F,colorDangerItemBgActive:m,dangerItemActiveBg:m,colorDangerItemBgSelected:m,dangerItemSelectedBg:m,itemMarginInline:h.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ye,groupTitleLineHeight:ut,collapsedWidth:ye*2,popupBg:_t,itemMarginBlock:Z,itemPaddingInline:bt,horizontalLineHeight:`${ye*1.15}px`,iconSize:mt,iconMarginInlineEnd:xt-mt,collapsedIconSize:Ye,groupTitleFontSize:mt,darkItemDisabledColor:new ae.C(At).setAlpha(.25).toRgbString(),darkItemColor:Ft,darkDangerItemColor:F,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:At,darkItemSelectedBg:p,darkDangerItemSelectedBg:F,darkItemHoverBg:"transparent",darkGroupTitleColor:Ft,darkItemHoverColor:At,darkDangerItemHoverColor:Tt,darkDangerItemSelectedColor:At,darkDangerItemActiveBg:F}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(B),Ue=function(B,g){var s={};for(var h in B)Object.prototype.hasOwnProperty.call(B,h)&&g.indexOf(h)<0&&(s[h]=B[h]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,h=Object.getOwnPropertySymbols(B);p<h.length;p++)g.indexOf(h[p])<0&&Object.prototype.propertyIsEnumerable.call(B,h[p])&&(s[h[p]]=B[h[p]]);return s},Qe=(0,b.forwardRef)((B,g)=>{var s,h;const p=b.useContext(U.Z),F=p||{},{getPrefixCls:d,getPopupContainer:m,direction:E,menu:l}=b.useContext(_.E_),R=d(),{prefixCls:G,className:me,style:Ee,theme:Fe="light",expandIcon:_e,_internalDisableMenuItemTitleTooltip:Oe,inlineCollapsed:ye,siderCollapsed:ut,items:_t,children:Z,rootClassName:bt,mode:mt,selectable:xt,onClick:Ye,overflowedIndicatorPopupClassName:At}=B,Tt=Ue(B,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ft=(0,oe.Z)(Tt,["collapsedWidth"]),Et=J(_t)||Z;(s=F.validator)===null||s===void 0||s.call(F,{mode:mt});const Zt=(0,M.useEvent)(function(){var nt;Ye==null||Ye.apply(void 0,arguments),(nt=F.onClick)===null||nt===void 0||nt.call(F)}),Kt=F.mode||mt,xe=xt!=null?xt:F.selectable,We=b.useMemo(()=>ut!==void 0?ut:ye,[ye,ut]),Rt={horizontal:{motionName:`${R}-slide-up`},inline:(0,O.Z)(R),other:{motionName:`${R}-zoom-big`}},gt=d("menu",G||F.prefixCls),[Nt,Mt]=ot(gt,!p),kt=v()(`${gt}-${Fe}`,l==null?void 0:l.className,me);let Lt;if(typeof _e=="function")Lt=_e;else if(_e===null||_e===!1)Lt=null;else if(F.expandIcon===null||F.expandIcon===!1)Lt=null;else{const nt=_e!=null?_e:F.expandIcon;Lt=(0,o.Tm)(nt,{className:v()(`${gt}-submenu-expand-icon`,(0,o.l$)(nt)?(h=nt.props)===null||h===void 0?void 0:h.className:"")})}const Je=b.useMemo(()=>({prefixCls:gt,inlineCollapsed:We||!1,direction:E,firstLevel:!0,theme:Fe,mode:Kt,disableMenuItemTitleTooltip:Oe}),[gt,We,E,Oe,Fe]);return Nt(b.createElement(U.Z.Provider,{value:null},b.createElement(Se.Provider,{value:Je},b.createElement(a.ZP,Object.assign({getPopupContainer:m,overflowedIndicator:b.createElement(y.Z,null),overflowedIndicatorPopupClassName:v()(gt,`${gt}-${Fe}`,At),mode:Kt,selectable:xe,onClick:Zt},Ft,{inlineCollapsed:We,style:Object.assign(Object.assign({},l==null?void 0:l.style),Ee),className:kt,prefixCls:gt,direction:E,defaultMotions:Rt,expandIcon:Lt,ref:g,rootClassName:v()(bt,Mt)}),Et))))});const et=(0,b.forwardRef)((B,g)=>{const s=(0,b.useRef)(null),h=b.useContext(P.D);return(0,b.useImperativeHandle)(g,()=>({menu:s.current,focus:p=>{var F;(F=s.current)===null||F===void 0||F.focus(p)}})),b.createElement(Qe,Object.assign({ref:s},B,h))});et.Item=re,et.SubMenu=w,et.Divider=N,et.ItemGroup=a.BW;var tt=et},61621:function(dt,Re,u){"use strict";u.d(Re,{Z:function(){return g}});var a=u(92310),b=u.n(a),P=u(59301),z=u(36355),v=u(2738),fe=s=>{const{prefixCls:h,className:p,style:F,size:d,shape:m}=s,E=b()({[`${h}-lg`]:d==="large",[`${h}-sm`]:d==="small"}),l=b()({[`${h}-circle`]:m==="circle",[`${h}-square`]:m==="square",[`${h}-round`]:m==="round"}),R=P.useMemo(()=>typeof d=="number"?{width:d,height:d,lineHeight:`${d}px`}:{},[d]);return P.createElement("span",{className:b()(h,E,l,p),style:Object.assign(Object.assign({},R),F)})},de=u(36237),N=u(83116),q=u(37613);const oe=new de.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Q=s=>({height:s,lineHeight:`${s}px`}),o=s=>Object.assign({width:s},Q(s)),W=s=>({background:s.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:oe,animationDuration:s.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Se=s=>Object.assign({width:s*5,minWidth:s*5},Q(s)),te=s=>{const{skeletonAvatarCls:h,gradientFromColor:p,controlHeight:F,controlHeightLG:d,controlHeightSM:m}=s;return{[`${h}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:p},o(F)),[`${h}${h}-circle`]:{borderRadius:"50%"},[`${h}${h}-lg`]:Object.assign({},o(d)),[`${h}${h}-sm`]:Object.assign({},o(m))}},re=s=>{const{controlHeight:h,borderRadiusSM:p,skeletonInputCls:F,controlHeightLG:d,controlHeightSM:m,gradientFromColor:E}=s;return{[`${F}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:E,borderRadius:p},Se(h)),[`${F}-lg`]:Object.assign({},Se(d)),[`${F}-sm`]:Object.assign({},Se(m))}},x=s=>Object.assign({width:s},Q(s)),w=s=>{const{skeletonImageCls:h,imageSizeBase:p,gradientFromColor:F,borderRadiusSM:d}=s;return{[`${h}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:F,borderRadius:d},x(p*2)),{[`${h}-path`]:{fill:"#bfbfbf"},[`${h}-svg`]:Object.assign(Object.assign({},x(p)),{maxWidth:p*4,maxHeight:p*4}),[`${h}-svg${h}-svg-circle`]:{borderRadius:"50%"}}),[`${h}${h}-circle`]:{borderRadius:"50%"}}},y=(s,h,p)=>{const{skeletonButtonCls:F}=s;return{[`${p}${F}-circle`]:{width:h,minWidth:h,borderRadius:"50%"},[`${p}${F}-round`]:{borderRadius:h}}},M=s=>Object.assign({width:s*2,minWidth:s*2},Q(s)),O=s=>{const{borderRadiusSM:h,skeletonButtonCls:p,controlHeight:F,controlHeightLG:d,controlHeightSM:m,gradientFromColor:E}=s;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${p}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:E,borderRadius:h,width:F*2,minWidth:F*2},M(F))},y(s,F,p)),{[`${p}-lg`]:Object.assign({},M(d))}),y(s,d,`${p}-lg`)),{[`${p}-sm`]:Object.assign({},M(m))}),y(s,m,`${p}-sm`))},U=s=>{const{componentCls:h,skeletonAvatarCls:p,skeletonTitleCls:F,skeletonParagraphCls:d,skeletonButtonCls:m,skeletonInputCls:E,skeletonImageCls:l,controlHeight:R,controlHeightLG:G,controlHeightSM:me,gradientFromColor:Ee,padding:Fe,marginSM:_e,borderRadius:Oe,titleHeight:ye,blockRadius:ut,paragraphLiHeight:_t,controlHeightXS:Z,paragraphMarginTop:bt}=s;return{[`${h}`]:{display:"table",width:"100%",[`${h}-header`]:{display:"table-cell",paddingInlineEnd:Fe,verticalAlign:"top",[`${p}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ee},o(R)),[`${p}-circle`]:{borderRadius:"50%"},[`${p}-lg`]:Object.assign({},o(G)),[`${p}-sm`]:Object.assign({},o(me))},[`${h}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${F}`]:{width:"100%",height:ye,background:Ee,borderRadius:ut,[`+ ${d}`]:{marginBlockStart:me}},[`${d}`]:{padding:0,"> li":{width:"100%",height:_t,listStyle:"none",background:Ee,borderRadius:ut,"+ li":{marginBlockStart:Z}}},[`${d}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${h}-content`]:{[`${F}, ${d} > li`]:{borderRadius:Oe}}},[`${h}-with-avatar ${h}-content`]:{[`${F}`]:{marginBlockStart:_e,[`+ ${d}`]:{marginBlockStart:bt}}},[`${h}${h}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},O(s)),te(s)),re(s)),w(s)),[`${h}${h}-block`]:{width:"100%",[`${m}`]:{width:"100%"},[`${E}`]:{width:"100%"}},[`${h}${h}-active`]:{[`
${F},
${d} > li,
${p},
${m},
${E},
${l}
`]:Object.assign({},W(s))}}};var $=(0,N.Z)("Skeleton",s=>{const{componentCls:h}=s,p=(0,q.TS)(s,{skeletonAvatarCls:`${h}-avatar`,skeletonTitleCls:`${h}-title`,skeletonParagraphCls:`${h}-paragraph`,skeletonButtonCls:`${h}-button`,skeletonInputCls:`${h}-input`,skeletonImageCls:`${h}-image`,imageSizeBase:s.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${s.gradientFromColor} 25%, ${s.gradientToColor} 37%, ${s.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[U(p)]},s=>{const{colorFillContent:h,colorFill:p}=s,F=h,d=p;return{color:F,colorGradientEnd:d,gradientFromColor:F,gradientToColor:d,titleHeight:s.controlHeight/2,blockRadius:s.borderRadiusSM,paragraphMarginTop:s.marginLG+s.marginXXS,paragraphLiHeight:s.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),J=s=>{const{prefixCls:h,className:p,rootClassName:F,active:d,shape:m="circle",size:E="default"}=s,{getPrefixCls:l}=P.useContext(z.E_),R=l("skeleton",h),[G,me]=$(R),Ee=(0,v.Z)(s,["prefixCls","className"]),Fe=b()(R,`${R}-element`,{[`${R}-active`]:d},p,F,me);return G(P.createElement("div",{className:Fe},P.createElement(fe,Object.assign({prefixCls:`${R}-avatar`,shape:m,size:E},Ee))))},ce=s=>{const{prefixCls:h,className:p,rootClassName:F,active:d,block:m=!1,size:E="default"}=s,{getPrefixCls:l}=P.useContext(z.E_),R=l("skeleton",h),[G,me]=$(R),Ee=(0,v.Z)(s,["prefixCls"]),Fe=b()(R,`${R}-element`,{[`${R}-active`]:d,[`${R}-block`]:m},p,F,me);return G(P.createElement("div",{className:Fe},P.createElement(fe,Object.assign({prefixCls:`${R}-button`,size:E},Ee))))};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:h,className:p,rootClassName:F,style:d,active:m}=s,{getPrefixCls:E}=P.useContext(z.E_),l=E("skeleton",h),[R,G]=$(l),me=b()(l,`${l}-element`,{[`${l}-active`]:m},p,F,G);return R(P.createElement("div",{className:me},P.createElement("div",{className:b()(`${l}-image`,p),style:d},P.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},P.createElement("path",{d:De,className:`${l}-image-path`})))))},T=s=>{const{prefixCls:h,className:p,rootClassName:F,active:d,block:m,size:E="default"}=s,{getPrefixCls:l}=P.useContext(z.E_),R=l("skeleton",h),[G,me]=$(R),Ee=(0,v.Z)(s,["prefixCls"]),Fe=b()(R,`${R}-element`,{[`${R}-active`]:d,[`${R}-block`]:m},p,F,me);return G(P.createElement("div",{className:Fe},P.createElement(fe,Object.assign({prefixCls:`${R}-input`,size:E},Ee))))},Ve=u(60499),Xe={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=Xe,Y=u(7657),ke=function(h,p){return P.createElement(Y.Z,(0,Ve.Z)({},h,{ref:p,icon:H}))},Ce=P.forwardRef(ke),le=Ce,ve=s=>{const{prefixCls:h,className:p,rootClassName:F,style:d,active:m,children:E}=s,{getPrefixCls:l}=P.useContext(z.E_),R=l("skeleton",h),[G,me]=$(R),Ee=b()(R,`${R}-element`,{[`${R}-active`]:m},me,p,F),Fe=E!=null?E:P.createElement(le,null);return G(P.createElement("div",{className:Ee},P.createElement("div",{className:b()(`${R}-image`,p),style:d},Fe)))},je=u(77654),Ke=s=>{const h=l=>{const{width:R,rows:G=2}=s;if(Array.isArray(R))return R[l];if(G-1===l)return R},{prefixCls:p,className:F,style:d,rows:m}=s,E=(0,je.Z)(Array(m)).map((l,R)=>P.createElement("li",{key:R,style:{width:h(R)}}));return P.createElement("ul",{className:b()(p,F),style:d},E)},ot=s=>{let{prefixCls:h,className:p,width:F,style:d}=s;return P.createElement("h3",{className:b()(h,p),style:Object.assign({width:F},d)})};function Ue(s){return s&&typeof s=="object"?s:{}}function He(s,h){return s&&!h?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Qe(s,h){return!s&&h?{width:"38%"}:s&&h?{width:"50%"}:{}}function et(s,h){const p={};return(!s||!h)&&(p.width="61%"),!s&&h?p.rows=3:p.rows=2,p}const tt=s=>{const{prefixCls:h,loading:p,className:F,rootClassName:d,style:m,children:E,avatar:l=!1,title:R=!0,paragraph:G=!0,active:me,round:Ee}=s,{getPrefixCls:Fe,direction:_e,skeleton:Oe}=P.useContext(z.E_),ye=Fe("skeleton",h),[ut,_t]=$(ye);if(p||!("loading"in s)){const Z=!!l,bt=!!R,mt=!!G;let xt;if(Z){const Tt=Object.assign(Object.assign({prefixCls:`${ye}-avatar`},He(bt,mt)),Ue(l));xt=P.createElement("div",{className:`${ye}-header`},P.createElement(fe,Object.assign({},Tt)))}let Ye;if(bt||mt){let Tt;if(bt){const Et=Object.assign(Object.assign({prefixCls:`${ye}-title`},Qe(Z,mt)),Ue(R));Tt=P.createElement(ot,Object.assign({},Et))}let Ft;if(mt){const Et=Object.assign(Object.assign({prefixCls:`${ye}-paragraph`},et(Z,bt)),Ue(G));Ft=P.createElement(Ke,Object.assign({},Et))}Ye=P.createElement("div",{className:`${ye}-content`},Tt,Ft)}const At=b()(ye,{[`${ye}-with-avatar`]:Z,[`${ye}-active`]:me,[`${ye}-rtl`]:_e==="rtl",[`${ye}-round`]:Ee},Oe==null?void 0:Oe.className,F,d,_t);return ut(P.createElement("div",{className:At,style:Object.assign(Object.assign({},Oe==null?void 0:Oe.style),m)},xt,Ye))}return typeof E!="undefined"?E:null};tt.Button=ce,tt.Avatar=J,tt.Input=T,tt.Image=Te,tt.Node=ve;var B=tt,g=B},8378:function(dt,Re){"use strict";const u=a=>({[a.componentCls]:{[`${a.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${a.motionDurationMid} ${a.motionEaseInOut},
opacity ${a.motionDurationMid} ${a.motionEaseInOut} !important`}},[`${a.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${a.motionDurationMid} ${a.motionEaseInOut},
opacity ${a.motionDurationMid} ${a.motionEaseInOut} !important`}}});Re.Z=u},92899:function(dt,Re,u){"use strict";u.d(Re,{Fm:function(){return Q}});var a=u(36237),b=u(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}}),v=new a.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_=new a.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),fe=new a.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),de=new a.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),N=new a.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),q=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:N,outKeyframes:q},"move-down":{inKeyframes:P,outKeyframes:z},"move-left":{inKeyframes:v,outKeyframes:_},"move-right":{inKeyframes:fe,outKeyframes:de}},Q=(o,W)=>{const{antCls:Se}=o,te=`${Se}-${W}`,{inKeyframes:re,outKeyframes:x}=oe[W];return[(0,b.R)(te,re,x,o.motionDurationMid),{[`
${te}-enter,
${te}-appear
`]:{opacity:0,animationTimingFunction:o.motionEaseOutCirc},[`${te}-leave`]:{animationTimingFunction:o.motionEaseInOutCirc}}]}},13826:function(dt,Re,u){"use strict";u.d(Re,{Qt:function(){return v},Uw:function(){return z},fJ:function(){return P},ly:function(){return _},oN:function(){return Q}});var a=u(36237),b=u(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}}),v=new a.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),_=new a.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),fe=new a.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),de=new a.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),N=new a.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),q=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:v,outKeyframes:_},"slide-left":{inKeyframes:fe,outKeyframes:de},"slide-right":{inKeyframes:N,outKeyframes:q}},Q=(o,W)=>{const{antCls:Se}=o,te=`${Se}-${W}`,{inKeyframes:re,outKeyframes:x}=oe[W];return[(0,b.R)(te,re,x,o.motionDurationMid),{[`
${te}-enter,
${te}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:o.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${te}-leave`]:{animationTimingFunction:o.motionEaseInQuint}}]}},3867:function(dt,Re,u){var a=u(97671);(function(b,P){dt.exports=P()})(this,function(){"use strict";function b(d){var m=typeof d;return d!==null&&(m==="object"||m==="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 v=z,_=0,fe=void 0,de=void 0,N=function(m,E){O[_]=m,O[_+1]=E,_+=2,_===2&&(de?de(U):A())};function q(d){de=d}function oe(d){N=d}var Q=typeof window!="undefined"?window:void 0,o=Q||{},W=o.MutationObserver||o.WebKitMutationObserver,Se=typeof self=="undefined"&&typeof a!="undefined"&&{}.toString.call(a)==="[object process]",te=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function re(){return function(){return a.nextTick(U)}}function x(){return typeof fe!="undefined"?function(){fe(U)}:M()}function w(){var d=0,m=new W(U),E=document.createTextNode("");return m.observe(E,{characterData:!0}),function(){E.data=d=++d%2}}function y(){var d=new MessageChannel;return d.port1.onmessage=U,function(){return d.port2.postMessage(0)}}function M(){var d=setTimeout;return function(){return d(U,1)}}var O=new Array(1e3);function U(){for(var d=0;d<_;d+=2){var m=O[d],E=O[d+1];m(E),O[d]=void 0,O[d+1]=void 0}_=0}function $(){try{var d=Function("return this")().require("vertx");return fe=d.runOnLoop||d.runOnContext,x()}catch(m){return M()}}var A=void 0;Se?A=re():W?A=w():te?A=y():Q===void 0?A=$():A=M();function J(d,m){var E=this,l=new this.constructor(De);l[ce]===void 0&&He(l);var R=E._state;if(R){var G=arguments[R-1];N(function(){return Ke(R,l,G,E._result)})}else je(E,l,d,m);return l}function ae(d){var m=this;if(d&&typeof d=="object"&&d.constructor===m)return d;var E=new m(De);return Ce(E,d),E}var ce=Math.random().toString(36).substring(2);function De(){}var Be=void 0,Te=1,Ie=2;function T(){return new TypeError("You cannot resolve a promise with itself")}function Ve(){return new TypeError("A promises callback cannot return that same promise.")}function Xe(d,m,E,l){try{d.call(m,E,l)}catch(R){return R}}function H(d,m,E){N(function(l){var R=!1,G=Xe(E,m,function(me){R||(R=!0,m!==me?Ce(l,me):ue(l,me))},function(me){R||(R=!0,ve(l,me))},"Settle: "+(l._label||" unknown promise"));!R&&G&&(R=!0,ve(l,G))},d)}function Y(d,m){m._state===Te?ue(d,m._result):m._state===Ie?ve(d,m._result):je(m,void 0,function(E){return Ce(d,E)},function(E){return ve(d,E)})}function ke(d,m,E){m.constructor===d.constructor&&E===J&&m.constructor.resolve===ae?Y(d,m):E===void 0?ue(d,m):P(E)?H(d,m,E):ue(d,m)}function Ce(d,m){if(d===m)ve(d,T());else if(b(m)){var E=void 0;try{E=m.then}catch(l){ve(d,l);return}ke(d,m,E)}else ue(d,m)}function le(d){d._onerror&&d._onerror(d._result),Pe(d)}function ue(d,m){d._state===Be&&(d._result=m,d._state=Te,d._subscribers.length!==0&&N(Pe,d))}function ve(d,m){d._state===Be&&(d._state=Ie,d._result=m,N(le,d))}function je(d,m,E,l){var R=d._subscribers,G=R.length;d._onerror=null,R[G]=m,R[G+Te]=E,R[G+Ie]=l,G===0&&d._state&&N(Pe,d)}function Pe(d){var m=d._subscribers,E=d._state;if(m.length!==0){for(var l=void 0,R=void 0,G=d._result,me=0;me<m.length;me+=3)l=m[me],R=m[me+E],l?Ke(E,l,R,G):R(G);d._subscribers.length=0}}function Ke(d,m,E,l){var R=P(E),G=void 0,me=void 0,Ee=!0;if(R){try{G=E(l)}catch(Fe){Ee=!1,me=Fe}if(m===G){ve(m,Ve());return}}else G=l;m._state!==Be||(R&&Ee?Ce(m,G):Ee===!1?ve(m,me):d===Te?ue(m,G):d===Ie&&ve(m,G))}function at(d,m){try{m(function(l){Ce(d,l)},function(l){ve(d,l)})}catch(E){ve(d,E)}}var ot=0;function Ue(){return ot++}function He(d){d[ce]=ot++,d._state=void 0,d._result=void 0,d._subscribers=[]}function Qe(){return new Error("Array Methods must be provided an Array")}var et=function(){function d(m,E){this._instanceConstructor=m,this.promise=new m(De),this.promise[ce]||He(this.promise),v(E)?(this.length=E.length,this._remaining=E.length,this._result=new Array(this.length),this.length===0?ue(this.promise,this._result):(this.length=this.length||0,this._enumerate(E),this._remaining===0&&ue(this.promise,this._result))):ve(this.promise,Qe())}return d.prototype._enumerate=function(E){for(var l=0;this._state===Be&&l<E.length;l++)this._eachEntry(E[l],l)},d.prototype._eachEntry=function(E,l){var R=this._instanceConstructor,G=R.resolve;if(G===ae){var me=void 0,Ee=void 0,Fe=!1;try{me=E.then}catch(Oe){Fe=!0,Ee=Oe}if(me===J&&E._state!==Be)this._settledAt(E._state,l,E._result);else if(typeof me!="function")this._remaining--,this._result[l]=E;else if(R===p){var _e=new R(De);Fe?ve(_e,Ee):ke(_e,E,me),this._willSettleAt(_e,l)}else this._willSettleAt(new R(function(Oe){return Oe(E)}),l)}else this._willSettleAt(G(E),l)},d.prototype._settledAt=function(E,l,R){var G=this.promise;G._state===Be&&(this._remaining--,E===Ie?ve(G,R):this._result[l]=R),this._remaining===0&&ue(G,this._result)},d.prototype._willSettleAt=function(E,l){var R=this;je(E,void 0,function(G){return R._settledAt(Te,l,G)},function(G){return R._settledAt(Ie,l,G)})},d}();function tt(d){return new et(this,d).promise}function B(d){var m=this;return v(d)?new m(function(E,l){for(var R=d.length,G=0;G<R;G++)m.resolve(d[G]).then(E,l)}):new m(function(E,l){return l(new TypeError("You must pass an array to race."))})}function g(d){var m=this,E=new m(De);return ve(E,d),E}function s(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function h(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var p=function(){function d(m){this[ce]=Ue(),this._result=this._state=void 0,this._subscribers=[],De!==m&&(typeof m!="function"&&s(),this instanceof d?at(this,m):h())}return d.prototype.catch=function(E){return this.then(null,E)},d.prototype.finally=function(E){var l=this,R=l.constructor;return P(E)?l.then(function(G){return R.resolve(E()).then(function(){return G})},function(G){return R.resolve(E()).then(function(){throw G})}):l.then(E,E)},d}();p.prototype.then=J,p.all=tt,p.race=B,p.resolve=ae,p.reject=g,p._setScheduler=q,p._setAsap=oe,p._asap=N;function F(){var d=void 0;if(typeof u.g!="undefined")d=u.g;else if(typeof self!="undefined")d=self;else try{d=Function("return this")()}catch(l){throw new Error("polyfill failed because global object is unavailable in this environment")}var m=d.Promise;if(m){var E=null;try{E=Object.prototype.toString.call(m.resolve())}catch(l){}if(E==="[object Promise]"&&!m.cast)return}d.Promise=p}return p.polyfill=F,p.Promise=p,p})},86204:function(dt){"use strict";var Re=typeof Reflect=="object"?Reflect:null,u=Re&&typeof Re.apply=="function"?Re.apply:function(y,M,O){return Function.prototype.apply.call(y,M,O)},a;Re&&typeof Re.ownKeys=="function"?a=Re.ownKeys:Object.getOwnPropertySymbols?a=function(y){return Object.getOwnPropertyNames(y).concat(Object.getOwnPropertySymbols(y))}:a=function(y){return Object.getOwnPropertyNames(y)};function b(w){console&&console.warn&&console.warn(w)}var P=Number.isNaN||function(y){return y!==y};function z(){z.init.call(this)}dt.exports=z,dt.exports.once=te,z.EventEmitter=z,z.prototype._events=void 0,z.prototype._eventsCount=0,z.prototype._maxListeners=void 0;var v=10;function _(w){if(typeof w!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof w)}Object.defineProperty(z,"defaultMaxListeners",{enumerable:!0,get:function(){return v},set:function(w){if(typeof w!="number"||w<0||P(w))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+w+".");v=w}}),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(y){if(typeof y!="number"||y<0||P(y))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+y+".");return this._maxListeners=y,this};function fe(w){return w._maxListeners===void 0?z.defaultMaxListeners:w._maxListeners}z.prototype.getMaxListeners=function(){return fe(this)},z.prototype.emit=function(y){for(var M=[],O=1;O<arguments.length;O++)M.push(arguments[O]);var U=y==="error",$=this._events;if($!==void 0)U=U&&$.error===void 0;else if(!U)return!1;if(U){var A;if(M.length>0&&(A=M[0]),A instanceof Error)throw A;var J=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw J.context=A,J}var ae=$[y];if(ae===void 0)return!1;if(typeof ae=="function")u(ae,this,M);else for(var ce=ae.length,De=o(ae,ce),O=0;O<ce;++O)u(De[O],this,M);return!0};function de(w,y,M,O){var U,$,A;if(_(M),$=w._events,$===void 0?($=w._events=Object.create(null),w._eventsCount=0):($.newListener!==void 0&&(w.emit("newListener",y,M.listener?M.listener:M),$=w._events),A=$[y]),A===void 0)A=$[y]=M,++w._eventsCount;else if(typeof A=="function"?A=$[y]=O?[M,A]:[A,M]:O?A.unshift(M):A.push(M),U=fe(w),U>0&&A.length>U&&!A.warned){A.warned=!0;var J=new Error("Possible EventEmitter memory leak detected. "+A.length+" "+String(y)+" listeners added. Use emitter.setMaxListeners() to increase limit");J.name="MaxListenersExceededWarning",J.emitter=w,J.type=y,J.count=A.length,b(J)}return w}z.prototype.addListener=function(y,M){return de(this,y,M,!1)},z.prototype.on=z.prototype.addListener,z.prototype.prependListener=function(y,M){return de(this,y,M,!0)};function N(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function q(w,y,M){var O={fired:!1,wrapFn:void 0,target:w,type:y,listener:M},U=N.bind(O);return U.listener=M,O.wrapFn=U,U}z.prototype.once=function(y,M){return _(M),this.on(y,q(this,y,M)),this},z.prototype.prependOnceListener=function(y,M){return _(M),this.prependListener(y,q(this,y,M)),this},z.prototype.removeListener=function(y,M){var O,U,$,A,J;if(_(M),U=this._events,U===void 0)return this;if(O=U[y],O===void 0)return this;if(O===M||O.listener===M)--this._eventsCount===0?this._events=Object.create(null):(delete U[y],U.removeListener&&this.emit("removeListener",y,O.listener||M));else if(typeof O!="function"){for($=-1,A=O.length-1;A>=0;A--)if(O[A]===M||O[A].listener===M){J=O[A].listener,$=A;break}if($<0)return this;$===0?O.shift():W(O,$),O.length===1&&(U[y]=O[0]),U.removeListener!==void 0&&this.emit("removeListener",y,J||M)}return this},z.prototype.off=z.prototype.removeListener,z.prototype.removeAllListeners=function(y){var M,O,U;if(O=this._events,O===void 0)return this;if(O.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):O[y]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete O[y]),this;if(arguments.length===0){var $=Object.keys(O),A;for(U=0;U<$.length;++U)A=$[U],A!=="removeListener"&&this.removeAllListeners(A);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(M=O[y],typeof M=="function")this.removeListener(y,M);else if(M!==void 0)for(U=M.length-1;U>=0;U--)this.removeListener(y,M[U]);return this};function oe(w,y,M){var O=w._events;if(O===void 0)return[];var U=O[y];return U===void 0?[]:typeof U=="function"?M?[U.listener||U]:[U]:M?Se(U):o(U,U.length)}z.prototype.listeners=function(y){return oe(this,y,!0)},z.prototype.rawListeners=function(y){return oe(this,y,!1)},z.listenerCount=function(w,y){return typeof w.listenerCount=="function"?w.listenerCount(y):Q.call(w,y)},z.prototype.listenerCount=Q;function Q(w){var y=this._events;if(y!==void 0){var M=y[w];if(typeof M=="function")return 1;if(M!==void 0)return M.length}return 0}z.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function o(w,y){for(var M=new Array(y),O=0;O<y;++O)M[O]=w[O];return M}function W(w,y){for(;y+1<w.length;y++)w[y]=w[y+1];w.pop()}function Se(w){for(var y=new Array(w.length),M=0;M<y.length;++M)y[M]=w[M].listener||w[M];return y}function te(w,y){return new Promise(function(M,O){function U(A){w.removeListener(y,$),O(A)}function $(){typeof w.removeListener=="function"&&w.removeListener("error",U),M([].slice.call(arguments))}x(w,y,$,{once:!0}),y!=="error"&&re(w,U,{once:!0})})}function re(w,y,M){typeof w.on=="function"&&x(w,"error",y,M)}function x(w,y,M,O){if(typeof w.on=="function")O.once?w.once(y,M):w.on(y,M);else if(typeof w.addEventListener=="function")w.addEventListener(y,function U($){O.once&&w.removeEventListener(y,U),M($)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof w)}},31561:function(dt,Re,u){"use strict";u.d(Re,{Z:function(){return $}});var a=u(60499),b=u(18642),P=u(72190),z=u(42244),v=u(35593),_=u(92310),fe=u.n(_),de=u(8654),N=u(59301),q=u(10228),oe=u(16089),Q=q.Z.ESC,o=q.Z.TAB;function W(A){var J=A.visible,ae=A.triggerRef,ce=A.onVisibleChange,De=A.autoFocus,Be=A.overlayRef,Te=N.useRef(!1),Ie=function(){if(J){var H,Y;(H=ae.current)===null||H===void 0||(Y=H.focus)===null||Y===void 0||Y.call(H),ce==null||ce(!1)}},T=function(){var H;return(H=Be.current)!==null&&H!==void 0&&H.focus?(Be.current.focus(),Te.current=!0,!0):!1},Ve=function(H){switch(H.keyCode){case Q:Ie();break;case o:{var Y=!1;Te.current||(Y=T()),Y?H.preventDefault():Ie();break}}};N.useEffect(function(){return J?(window.addEventListener("keydown",Ve),De&&(0,oe.Z)(T,3),function(){window.removeEventListener("keydown",Ve),Te.current=!1}):function(){Te.current=!1}},[J])}var Se=(0,N.forwardRef)(function(A,J){var ae=A.overlay,ce=A.arrow,De=A.prefixCls,Be=(0,N.useMemo)(function(){var Ie;return typeof ae=="function"?Ie=ae():Ie=ae,Ie},[ae]),Te=(0,de.sQ)(J,Be==null?void 0:Be.ref);return N.createElement(N.Fragment,null,ce&&N.createElement("div",{className:"".concat(De,"-arrow")}),N.cloneElement(Be,{ref:(0,de.Yr)(Be)?Te:void 0}))}),te=Se,re={adjustX:1,adjustY:1},x=[0,0],w={topLeft:{points:["bl","tl"],overflow:re,offset:[0,-4],targetOffset:x},top:{points:["bc","tc"],overflow:re,offset:[0,-4],targetOffset:x},topRight:{points:["br","tr"],overflow:re,offset:[0,-4],targetOffset:x},bottomLeft:{points:["tl","bl"],overflow:re,offset:[0,4],targetOffset:x},bottom:{points:["tc","bc"],overflow:re,offset:[0,4],targetOffset:x},bottomRight:{points:["tr","br"],overflow:re,offset:[0,4],targetOffset:x}},y=w,M=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function O(A,J){var ae,ce=A.arrow,De=ce===void 0?!1:ce,Be=A.prefixCls,Te=Be===void 0?"rc-dropdown":Be,Ie=A.transitionName,T=A.animation,Ve=A.align,Xe=A.placement,H=Xe===void 0?"bottomLeft":Xe,Y=A.placements,ke=Y===void 0?y:Y,Ce=A.getPopupContainer,le=A.showAction,ue=A.hideAction,ve=A.overlayClassName,je=A.overlayStyle,Pe=A.visible,Ke=A.trigger,at=Ke===void 0?["hover"]:Ke,ot=A.autoFocus,Ue=A.overlay,He=A.children,Qe=A.onVisibleChange,et=(0,z.Z)(A,M),tt=N.useState(),B=(0,P.Z)(tt,2),g=B[0],s=B[1],h="visible"in A?Pe:g,p=N.useRef(null),F=N.useRef(null),d=N.useRef(null);N.useImperativeHandle(J,function(){return p.current});var m=function(Oe){s(Oe),Qe==null||Qe(Oe)};W({visible:h,triggerRef:d,onVisibleChange:m,autoFocus:ot,overlayRef:F});var E=function(Oe){var ye=A.onOverlayClick;s(!1),ye&&ye(Oe)},l=function(){return N.createElement(te,{ref:F,overlay:Ue,prefixCls:Te,arrow:De})},R=function(){return typeof Ue=="function"?l:l()},G=function(){var Oe=A.minOverlayWidthMatchTrigger,ye=A.alignPoint;return"minOverlayWidthMatchTrigger"in A?Oe:!ye},me=function(){var Oe=A.openClassName;return Oe!==void 0?Oe:"".concat(Te,"-open")},Ee=N.cloneElement(He,{className:fe()((ae=He.props)===null||ae===void 0?void 0:ae.className,h&&me()),ref:(0,de.Yr)(He)?(0,de.sQ)(d,He.ref):void 0}),Fe=ue;return!Fe&&at.indexOf("contextMenu")!==-1&&(Fe=["click"]),N.createElement(v.Z,(0,a.Z)({builtinPlacements:ke},et,{prefixCls:Te,ref:p,popupClassName:fe()(ve,(0,b.Z)({},"".concat(Te,"-show-arrow"),De)),popupStyle:je,action:at,showAction:le,hideAction:Fe,popupPlacement:H,popupAlign:Ve,popupTransitionName:Ie,popupAnimation:T,popupVisible:h,stretch:G()?"minWidth":"",popup:R(),onPopupVisibleChange:m,onPopupClick:E,getPopupContainer:Ce}),Ee)}var U=N.forwardRef(O),$=U},15285:function(dt,Re,u){"use strict";u.d(Re,{iz:function(){return he},ck:function(){return xe},BW:function(){return $e},sN:function(){return xe},Wd:function(){return V},ZP:function(){return qe},Xl:function(){return ae}});var a=u(60499),b=u(18642),P=u(85899),z=u(77654),v=u(72190),_=u(42244),fe=u(92310),de=u.n(fe),N=u(83836),q=u(18929),oe=u(13697),Q=u(48736),o=u(59301),W=u(4676),Se=o.createContext(null);function te(S,C){return S===void 0?null:"".concat(S,"-").concat(C)}function re(S){var C=o.useContext(Se);return te(C,S)}var x=u(80547),w=["children","locked"],y=o.createContext(null);function M(S,C){var L=(0,P.Z)({},S);return Object.keys(C).forEach(function(j){var I=C[j];I!==void 0&&(L[j]=I)}),L}function O(S){var C=S.children,L=S.locked,j=(0,_.Z)(S,w),I=o.useContext(y),k=(0,x.Z)(function(){return M(I,j)},[I,j],function(D,ie){return!L&&(D[0]!==ie[0]||!(0,oe.Z)(D[1],ie[1],!0))});return o.createElement(y.Provider,{value:k},C)}var U=[],$=o.createContext(null);function A(){return o.useContext($)}var J=o.createContext(U);function ae(S){var C=o.useContext(J);return o.useMemo(function(){return S!==void 0?[].concat((0,z.Z)(C),[S]):C},[C,S])}var ce=o.createContext(null),De=o.createContext({}),Be=De,Te=u(29194);function Ie(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,Te.Z)(S)){var L=S.nodeName.toLowerCase(),j=["input","select","textarea","button"].includes(L)||S.isContentEditable||L==="a"&&!!S.getAttribute("href"),I=S.getAttribute("tabindex"),k=Number(I),D=null;return I&&!Number.isNaN(k)?D=k:j&&D===null&&(D=0),j&&S.disabled&&(D=null),D!==null&&(D>=0||C&&D<0)}return!1}function T(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,L=(0,z.Z)(S.querySelectorAll("*")).filter(function(j){return Ie(j,C)});return Ie(S,C)&&L.unshift(S),L}var Ve=null;function Xe(){Ve=document.activeElement}function H(){Ve=null}function Y(){if(Ve)try{Ve.focus()}catch(S){}}function ke(S,C){if(C.keyCode===9){var L=T(S),j=L[C.shiftKey?0:L.length-1],I=j===document.activeElement||S===document.activeElement;if(I){var k=L[C.shiftKey?L.length-1:0];k.focus(),C.preventDefault()}}}var Ce=u(10228),le=u(16089),ue=Ce.Z.LEFT,ve=Ce.Z.RIGHT,je=Ce.Z.UP,Pe=Ce.Z.DOWN,Ke=Ce.Z.ENTER,at=Ce.Z.ESC,ot=Ce.Z.HOME,Ue=Ce.Z.END,He=[je,Pe,ue,ve];function Qe(S,C,L,j){var I,k,D,ie,Ae="prev",be="next",Ze="children",Ne="parent";if(S==="inline"&&j===Ke)return{inlineTrigger:!0};var it=(I={},(0,b.Z)(I,je,Ae),(0,b.Z)(I,Pe,be),I),ct=(k={},(0,b.Z)(k,ue,L?be:Ae),(0,b.Z)(k,ve,L?Ae:be),(0,b.Z)(k,Pe,Ze),(0,b.Z)(k,Ke,Ze),k),rt=(D={},(0,b.Z)(D,je,Ae),(0,b.Z)(D,Pe,be),(0,b.Z)(D,Ke,Ze),(0,b.Z)(D,at,Ne),(0,b.Z)(D,ue,L?Ze:Ne),(0,b.Z)(D,ve,L?Ne:Ze),D),Dt={inline:it,horizontal:ct,vertical:rt,inlineSub:it,horizontalSub:rt,verticalSub:rt},Bt=(ie=Dt["".concat(S).concat(C?"":"Sub")])===null||ie===void 0?void 0:ie[j];switch(Bt){case Ae:return{offset:-1,sibling:!0};case be:return{offset:1,sibling:!0};case Ne:return{offset:-1,sibling:!1};case Ze:return{offset:1,sibling:!1};default:return null}}function et(S){for(var C=S;C;){if(C.getAttribute("data-menu-list"))return C;C=C.parentElement}return null}function tt(S,C){for(var L=S||document.activeElement;L;){if(C.has(L))return L;L=L.parentElement}return null}function B(S,C){var L=T(S,!0);return L.filter(function(j){return C.has(j)})}function g(S,C,L){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!S)return null;var I=B(S,C),k=I.length,D=I.findIndex(function(ie){return L===ie});return j<0?D===-1?D=k-1:D-=1:j>0&&(D+=1),D=(D+k)%k,I[D]}var s=function(C,L){var j=new Set,I=new Map,k=new Map;return C.forEach(function(D){var ie=document.querySelector("[data-menu-id='".concat(te(L,D),"']"));ie&&(j.add(ie),k.set(ie,D),I.set(D,ie))}),{elements:j,key2element:I,element2key:k}};function h(S,C,L,j,I,k,D,ie,Ae,be){var Ze=o.useRef(),Ne=o.useRef();Ne.current=C;var it=function(){le.Z.cancel(Ze.current)};return o.useEffect(function(){return function(){it()}},[]),function(ct){var rt=ct.which;if([].concat(He,[Ke,at,ot,Ue]).includes(rt)){var Dt=k(),Bt=s(Dt,j),Ot=Bt,ht=Ot.elements,lt=Ot.key2element,st=Ot.element2key,Ct=lt.get(C),pt=tt(Ct,ht),Pt=st.get(pt),yt=Qe(S,D(Pt,!0).length===1,L,rt);if(!yt&&rt!==ot&&rt!==Ue)return;(He.includes(rt)||[ot,Ue].includes(rt))&&ct.preventDefault();var tn=function(Ht){if(Ht){var nn=Ht,rn=Ht.querySelector("a");rn!=null&&rn.getAttribute("href")&&(nn=rn);var sn=st.get(Ht);ie(sn),it(),Ze.current=(0,le.Z)(function(){Ne.current===sn&&nn.focus()})}};if([ot,Ue].includes(rt)||yt.sibling||!pt){var wt;!pt||S==="inline"?wt=I.current:wt=et(pt);var Gt,Ut=B(wt,ht);rt===ot?Gt=Ut[0]:rt===Ue?Gt=Ut[Ut.length-1]:Gt=g(wt,ht,pt,yt.offset),tn(Gt)}else if(yt.inlineTrigger)Ae(Pt);else if(yt.offset>0)Ae(Pt,!0),it(),Ze.current=(0,le.Z)(function(){Bt=s(Dt,j);var un=pt.getAttribute("aria-controls"),Ht=document.getElementById(un),nn=g(Ht,Bt.elements);tn(nn)},5);else if(yt.offset<0){var zt=D(Pt,!0),Yt=zt[zt.length-2],Qt=lt.get(Yt);Ae(Yt,!1),tn(Qt)}}be==null||be(ct)}}function p(S){Promise.resolve().then(S)}var F="__RC_UTIL_PATH_SPLIT__",d=function(C){return C.join(F)},m=function(C){return C.split(F)},E="rc-menu-more";function l(){var S=o.useState({}),C=(0,v.Z)(S,2),L=C[1],j=(0,o.useRef)(new Map),I=(0,o.useRef)(new Map),k=o.useState([]),D=(0,v.Z)(k,2),ie=D[0],Ae=D[1],be=(0,o.useRef)(0),Ze=(0,o.useRef)(!1),Ne=function(){Ze.current||L({})},it=(0,o.useCallback)(function(lt,st){var Ct=d(st);I.current.set(Ct,lt),j.current.set(lt,Ct),be.current+=1;var pt=be.current;p(function(){pt===be.current&&Ne()})},[]),ct=(0,o.useCallback)(function(lt,st){var Ct=d(st);I.current.delete(Ct),j.current.delete(lt)},[]),rt=(0,o.useCallback)(function(lt){Ae(lt)},[]),Dt=(0,o.useCallback)(function(lt,st){var Ct=j.current.get(lt)||"",pt=m(Ct);return st&&ie.includes(pt[0])&&pt.unshift(E),pt},[ie]),Bt=(0,o.useCallback)(function(lt,st){return lt.some(function(Ct){var pt=Dt(Ct,!0);return pt.includes(st)})},[Dt]),Ot=function(){var st=(0,z.Z)(j.current.keys());return ie.length&&st.push(E),st},ht=(0,o.useCallback)(function(lt){var st="".concat(j.current.get(lt)).concat(F),Ct=new Set;return(0,z.Z)(I.current.keys()).forEach(function(pt){pt.startsWith(st)&&Ct.add(I.current.get(pt))}),Ct},[]);return o.useEffect(function(){return function(){Ze.current=!0}},[]),{registerPath:it,unregisterPath:ct,refreshOverflowKeys:rt,isSubPathKey:Bt,getKeyPath:Dt,getKeys:Ot,getSubPathKeys:ht}}function R(S){var C=o.useRef(S);C.current=S;var L=o.useCallback(function(){for(var j,I=arguments.length,k=new Array(I),D=0;D<I;D++)k[D]=arguments[D];return(j=C.current)===null||j===void 0?void 0:j.call.apply(j,[C].concat(k))},[]);return S?L:void 0}var G=Math.random().toFixed(5).toString().slice(2),me=0;function Ee(S){var C=(0,q.Z)(S,{value:S}),L=(0,v.Z)(C,2),j=L[0],I=L[1];return o.useEffect(function(){me+=1;var k="".concat(G,"-").concat(me);I("rc-menu-uuid-".concat(k))},[]),j}var Fe=u(38705),_e=u(17212),Oe=u(39153),ye=u(55401),ut=u(2738),_t=u(8654);function Z(S,C,L,j){var I=o.useContext(y),k=I.activeKey,D=I.onActive,ie=I.onInactive,Ae={active:k===S};return C||(Ae.onMouseEnter=function(be){L==null||L({key:S,domEvent:be}),D(S)},Ae.onMouseLeave=function(be){j==null||j({key:S,domEvent:be}),ie(S)}),Ae}function bt(S){var C=o.useContext(y),L=C.mode,j=C.rtl,I=C.inlineIndent;if(L!=="inline")return null;var k=S;return j?{paddingRight:k*I}:{paddingLeft:k*I}}function mt(S){var C=S.icon,L=S.props,j=S.children,I;return C===null||C===!1?null:(typeof C=="function"?I=o.createElement(C,(0,P.Z)({},L)):typeof C!="boolean"&&(I=C),I||j||null)}var xt=["item"];function Ye(S){var C=S.item,L=(0,_.Z)(S,xt);return Object.defineProperty(L,"item",{get:function(){return(0,Q.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),C}}),L}var At=["title","attribute","elementRef"],Tt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ft=["active"],Et=function(S){(0,Oe.Z)(L,S);var C=(0,ye.Z)(L);function L(){return(0,Fe.Z)(this,L),C.apply(this,arguments)}return(0,_e.Z)(L,[{key:"render",value:function(){var I=this.props,k=I.title,D=I.attribute,ie=I.elementRef,Ae=(0,_.Z)(I,At),be=(0,ut.Z)(Ae,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Q.ZP)(!D,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(N.Z.Item,(0,a.Z)({},D,{title:typeof k=="string"?k:void 0},be,{ref:ie}))}}]),L}(o.Component),Zt=o.forwardRef(function(S,C){var L,j=S.style,I=S.className,k=S.eventKey,D=S.warnKey,ie=S.disabled,Ae=S.itemIcon,be=S.children,Ze=S.role,Ne=S.onMouseEnter,it=S.onMouseLeave,ct=S.onClick,rt=S.onKeyDown,Dt=S.onFocus,Bt=(0,_.Z)(S,Tt),Ot=re(k),ht=o.useContext(y),lt=ht.prefixCls,st=ht.onItemClick,Ct=ht.disabled,pt=ht.overflowDisabled,Pt=ht.itemIcon,yt=ht.selectedKeys,tn=ht.onActive,wt=o.useContext(Be),Gt=wt._internalRenderMenuItem,Ut="".concat(lt,"-item"),zt=o.useRef(),Yt=o.useRef(),Qt=Ct||ie,un=(0,_t.x1)(C,Yt),Ht=ae(k),nn=function(jt){return{key:k,keyPath:(0,z.Z)(Ht).reverse(),item:zt.current,domEvent:jt}},rn=Ae||Pt,sn=Z(k,Qt,Ne,it),mn=sn.active,pn=(0,_.Z)(sn,Ft),cn=yt.includes(k),_n=bt(Ht.length),gn=function(jt){if(!Qt){var an=nn(jt);ct==null||ct(Ye(an)),st(an)}},Vt=function(jt){if(rt==null||rt(jt),jt.which===Ce.Z.ENTER){var an=nn(jt);ct==null||ct(Ye(an)),st(an)}},Jt=function(jt){tn(k),Dt==null||Dt(jt)},Sn={};S.role==="option"&&(Sn["aria-selected"]=cn);var vn=o.createElement(Et,(0,a.Z)({ref:zt,elementRef:un,role:Ze===null?"none":Ze||"menuitem",tabIndex:ie?null:-1,"data-menu-id":pt&&Ot?null:Ot},Bt,pn,Sn,{component:"li","aria-disabled":ie,style:(0,P.Z)((0,P.Z)({},_n),j),className:de()(Ut,(L={},(0,b.Z)(L,"".concat(Ut,"-active"),mn),(0,b.Z)(L,"".concat(Ut,"-selected"),cn),(0,b.Z)(L,"".concat(Ut,"-disabled"),Qt),L),I),onClick:gn,onKeyDown:Vt,onFocus:Jt}),be,o.createElement(mt,{props:(0,P.Z)((0,P.Z)({},S),{},{isSelected:cn}),icon:rn}));return Gt&&(vn=Gt(vn,S,{selected:cn})),vn});function Kt(S,C){var L=S.eventKey,j=A(),I=ae(L);return o.useEffect(function(){if(j)return j.registerPath(L,I),function(){j.unregisterPath(L,I)}},[I]),j?null:o.createElement(Zt,(0,a.Z)({},S,{ref:C}))}var xe=o.forwardRef(Kt),We=["className","children"],Rt=function(C,L){var j=C.className,I=C.children,k=(0,_.Z)(C,We),D=o.useContext(y),ie=D.prefixCls,Ae=D.mode,be=D.rtl;return o.createElement("ul",(0,a.Z)({className:de()(ie,be&&"".concat(ie,"-rtl"),"".concat(ie,"-sub"),"".concat(ie,"-").concat(Ae==="inline"?"inline":"vertical"),j),role:"menu"},k,{"data-menu-list":!0,ref:L}),I)},gt=o.forwardRef(Rt);gt.displayName="SubMenuList";var Nt=gt,Mt=u(11592);function kt(S,C){return(0,Mt.Z)(S).map(function(L,j){if(o.isValidElement(L)){var I,k,D=L.key,ie=(I=(k=L.props)===null||k===void 0?void 0:k.eventKey)!==null&&I!==void 0?I:D,Ae=ie==null;Ae&&(ie="tmp_key-".concat([].concat((0,z.Z)(C),[j]).join("-")));var be={key:ie,eventKey:ie};return o.cloneElement(L,be)}return L})}var Lt=u(35593),Je={adjustX:1,adjustY:1},nt={topLeft:{points:["bl","tl"],overflow:Je},topRight:{points:["br","tr"],overflow:Je},bottomLeft:{points:["tl","bl"],overflow:Je},bottomRight:{points:["tr","br"],overflow:Je},leftTop:{points:["tr","tl"],overflow:Je},leftBottom:{points:["br","bl"],overflow:Je},rightTop:{points:["tl","tr"],overflow:Je},rightBottom:{points:["bl","br"],overflow:Je}},dn={topLeft:{points:["bl","tl"],overflow:Je},topRight:{points:["br","tr"],overflow:Je},bottomLeft:{points:["tl","bl"],overflow:Je},bottomRight:{points:["tr","br"],overflow:Je},rightTop:{points:["tr","tl"],overflow:Je},rightBottom:{points:["br","bl"],overflow:Je},leftTop:{points:["tl","tr"],overflow:Je},leftBottom:{points:["bl","br"],overflow:Je}},K=null;function e(S,C,L){if(C)return C;if(L)return L[S]||L.other}var t={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function n(S){var C=S.prefixCls,L=S.visible,j=S.children,I=S.popup,k=S.popupStyle,D=S.popupClassName,ie=S.popupOffset,Ae=S.disabled,be=S.mode,Ze=S.onVisibleChange,Ne=o.useContext(y),it=Ne.getPopupContainer,ct=Ne.rtl,rt=Ne.subMenuOpenDelay,Dt=Ne.subMenuCloseDelay,Bt=Ne.builtinPlacements,Ot=Ne.triggerSubMenuAction,ht=Ne.forceSubMenuRender,lt=Ne.rootClassName,st=Ne.motion,Ct=Ne.defaultMotions,pt=o.useState(!1),Pt=(0,v.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)({},nt),Bt),Gt=t[be],Ut=e(be,st,Ct),zt=o.useRef(Ut);be!=="inline"&&(zt.current=Ut);var Yt=(0,P.Z)((0,P.Z)({},zt.current),{},{leavedClassName:"".concat(C,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Qt=o.useRef();return o.useEffect(function(){return Qt.current=(0,le.Z)(function(){tn(L)}),function(){le.Z.cancel(Qt.current)}},[L]),o.createElement(Lt.Z,{prefixCls:C,popupClassName:de()("".concat(C,"-popup"),(0,b.Z)({},"".concat(C,"-rtl"),ct),D,lt),stretch:be==="horizontal"?"minWidth":null,getPopupContainer:it,builtinPlacements:wt,popupPlacement:Gt,popupVisible:yt,popup:I,popupStyle:k,popupAlign:ie&&{offset:ie},action:Ae?[]:[Ot],mouseEnterDelay:rt,mouseLeaveDelay:Dt,onPopupVisibleChange:Ze,forceRender:ht,popupMotion:Yt,fresh:!0},j)}var i=u(77900);function r(S){var C=S.id,L=S.open,j=S.keyPath,I=S.children,k="inline",D=o.useContext(y),ie=D.prefixCls,Ae=D.forceSubMenuRender,be=D.motion,Ze=D.defaultMotions,Ne=D.mode,it=o.useRef(!1);it.current=Ne===k;var ct=o.useState(!it.current),rt=(0,v.Z)(ct,2),Dt=rt[0],Bt=rt[1],Ot=it.current?L:!1;o.useEffect(function(){it.current&&Bt(!1)},[Ne]);var ht=(0,P.Z)({},e(k,be,Ze));j.length>1&&(ht.motionAppear=!1);var lt=ht.onVisibleChanged;return ht.onVisibleChanged=function(st){return!it.current&&!st&&Bt(!0),lt==null?void 0:lt(st)},Dt?null:o.createElement(O,{mode:k,locked:!it.current},o.createElement(i.default,(0,a.Z)({visible:Ot},ht,{forceRender:Ae,removeOnLeave:!1,leavedClassName:"".concat(ie,"-hidden")}),function(st){var Ct=st.className,pt=st.style;return o.createElement(Nt,{id:C,className:Ct,style:pt},I)}))}var c=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],f=["active"],ee=function(C){var L,j=C.style,I=C.className,k=C.title,D=C.eventKey,ie=C.warnKey,Ae=C.disabled,be=C.internalPopupClose,Ze=C.children,Ne=C.itemIcon,it=C.expandIcon,ct=C.popupClassName,rt=C.popupOffset,Dt=C.popupStyle,Bt=C.onClick,Ot=C.onMouseEnter,ht=C.onMouseLeave,lt=C.onTitleClick,st=C.onTitleMouseEnter,Ct=C.onTitleMouseLeave,pt=(0,_.Z)(C,c),Pt=re(D),yt=o.useContext(y),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(Be),pn=mn._internalRenderSubMenuItem,cn=o.useContext(ce),_n=cn.isSubPathKey,gn=ae(),Vt="".concat(tn,"-submenu"),Jt=Ut||Ae,Sn=o.useRef(),vn=o.useRef(),En=Ne!=null?Ne:un,jt=it!=null?it:Ht,an=Gt.includes(D),hn=!zt&&an,Fn=_n(Qt,D),xn=Z(D,Jt,st,Ct),yn=xn.active,Zn=(0,_.Z)(xn,f),qn=o.useState(!1),Kn=(0,v.Z)(qn,2),Bn=Kn[0],Mn=Kn[1],$n=function(en){Jt||Mn(en)},on=function(en){$n(!0),Ot==null||Ot({key:D,domEvent:en})},Hn=function(en){$n(!1),ht==null||ht({key:D,domEvent:en})},In=o.useMemo(function(){return yn||(wt!=="inline"?Bn||_n([Yt],D):!1)},[wt,yn,Yt,Bn,D,_n]),Nn=bt(gn.length),Vn=function(en){Jt||(lt==null||lt({key:D,domEvent:en}),wt==="inline"&&rn(D,!an))},wn=R(function(ln){Bt==null||Bt(Ye(ln)),nn(ln)}),Ln=function(en){wt!=="inline"&&rn(D,en)},Dn=function(){sn(D)},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 k=="string"?k: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),k,o.createElement(mt,{icon:wt!=="horizontal"?jt:void 0,props:(0,P.Z)((0,P.Z)({},C),{},{isOpen:hn,isSubMenu:!0})},o.createElement("i",{className:"".concat(Vt,"-arrow")}))),qt=o.useRef(wt);if(wt!=="inline"&&gn.length>1?qt.current="vertical":qt.current=wt,!zt){var Rn=qt.current;An=o.createElement(n,{mode:Rn,prefixCls:Vt,visible:!be&&hn&&wt!=="inline",popupClassName:ct,popupOffset:rt,popupStyle:Dt,popup:o.createElement(O,{mode:Rn==="horizontal"?"vertical":Rn},o.createElement(Nt,{id:On,ref:vn},Ze)),disabled:Jt,onVisibleChange:Ln},An)}var bn=o.createElement(N.Z.Item,(0,a.Z)({role:"none"},pt,{component:"li",style:j,className:de()(Vt,"".concat(Vt,"-").concat(wt),I,(L={},(0,b.Z)(L,"".concat(Vt,"-open"),hn),(0,b.Z)(L,"".concat(Vt,"-active"),In),(0,b.Z)(L,"".concat(Vt,"-selected"),Fn),(0,b.Z)(L,"".concat(Vt,"-disabled"),Jt),L)),onMouseEnter:on,onMouseLeave:Hn}),An,!zt&&o.createElement(r,{id:On,open:hn,keyPath:gn},Ze));return pn&&(bn=pn(bn,C,{selected:Fn,active:In,open:hn,disabled:Jt})),o.createElement(O,{onItemClick:wn,mode:wt==="horizontal"?"vertical":wt,itemIcon:En,expandIcon:jt},bn)};function V(S){var C=S.eventKey,L=S.children,j=ae(C),I=kt(L,j),k=A();o.useEffect(function(){if(k)return k.registerPath(C,j),function(){k.unregisterPath(C,j)}},[j]);var D;return k?D=I:D=o.createElement(ee,S,I),o.createElement(J.Provider,{value:j},D)}var pe=u(43749),Me=["className","title","eventKey","children"],ze=["children"],se=function(C){var L=C.className,j=C.title,I=C.eventKey,k=C.children,D=(0,_.Z)(C,Me),ie=o.useContext(y),Ae=ie.prefixCls,be="".concat(Ae,"-item-group");return o.createElement("li",(0,a.Z)({role:"presentation"},D,{onClick:function(Ne){return Ne.stopPropagation()},className:de()(be,L)}),o.createElement("div",{role:"presentation",className:"".concat(be,"-title"),title:typeof j=="string"?j:void 0},j),o.createElement("ul",{role:"group",className:"".concat(be,"-list")},k))};function $e(S){var C=S.children,L=(0,_.Z)(S,ze),j=ae(L.eventKey),I=kt(C,j),k=A();return k?I:o.createElement(se,(0,ut.Z)(L,["warnKey"]),I)}function he(S){var C=S.className,L=S.style,j=o.useContext(y),I=j.prefixCls,k=A();return k?null:o.createElement("li",{role:"separator",className:de()("".concat(I,"-item-divider"),C),style:L})}var X=["label","children","key","type"];function ne(S){return(S||[]).map(function(C,L){if(C&&(0,pe.Z)(C)==="object"){var j=C,I=j.label,k=j.children,D=j.key,ie=j.type,Ae=(0,_.Z)(j,X),be=D!=null?D:"tmp-".concat(L);return k||ie==="group"?ie==="group"?o.createElement($e,(0,a.Z)({key:be},Ae,{title:I}),ne(k)):o.createElement(V,(0,a.Z)({key:be},Ae,{title:I}),ne(k)):ie==="divider"?o.createElement(he,(0,a.Z)({key:be},Ae)):o.createElement(xe,(0,a.Z)({key:be},Ae),I)}return null}).filter(function(C){return C})}function we(S,C,L){var j=S;return C&&(j=ne(C)),kt(j,L)}var Le=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Ge=[],$t=o.forwardRef(function(S,C){var L,j,I=S,k=I.prefixCls,D=k===void 0?"rc-menu":k,ie=I.rootClassName,Ae=I.style,be=I.className,Ze=I.tabIndex,Ne=Ze===void 0?0:Ze,it=I.items,ct=I.children,rt=I.direction,Dt=I.id,Bt=I.mode,Ot=Bt===void 0?"vertical":Bt,ht=I.inlineCollapsed,lt=I.disabled,st=I.disabledOverflow,Ct=I.subMenuOpenDelay,pt=Ct===void 0?.1:Ct,Pt=I.subMenuCloseDelay,yt=Pt===void 0?.1:Pt,tn=I.forceSubMenuRender,wt=I.defaultOpenKeys,Gt=I.openKeys,Ut=I.activeKey,zt=I.defaultActiveFirst,Yt=I.selectable,Qt=Yt===void 0?!0:Yt,un=I.multiple,Ht=un===void 0?!1:un,nn=I.defaultSelectedKeys,rn=I.selectedKeys,sn=I.onSelect,mn=I.onDeselect,pn=I.inlineIndent,cn=pn===void 0?24:pn,_n=I.motion,gn=I.defaultMotions,Vt=I.triggerSubMenuAction,Jt=Vt===void 0?"hover":Vt,Sn=I.builtinPlacements,vn=I.itemIcon,En=I.expandIcon,jt=I.overflowedIndicator,an=jt===void 0?"...":jt,hn=I.overflowedIndicatorPopupClassName,Fn=I.getPopupContainer,xn=I.onClick,yn=I.onOpenChange,Zn=I.onKeyDown,qn=I.openAnimation,Kn=I.openTransitionName,Bn=I._internalRenderMenuItem,Mn=I._internalRenderSubMenuItem,$n=(0,_.Z)(I,Le),on=o.useMemo(function(){return we(ct,it,Ge)},[ct,it]),Hn=o.useState(!1),In=(0,v.Z)(Hn,2),Nn=In[0],Vn=In[1],wn=o.useRef(),Ln=Ee(Dt),Dn=rt==="rtl",On=(0,q.Z)(wt,{value:Gt,postState:function(ft){return ft||Ge}}),An=(0,v.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,W.flushSync)(Wt):Wt()},ln=o.useState(qt),en=(0,v.Z)(ln,2),mi=en[0],pi=en[1],Gn=o.useRef(!1),_i=o.useMemo(function(){return(Ot==="inline"||Ot==="vertical")&&ht?["vertical",ht]:[Ot,!1]},[Ot,ht]),ei=(0,v.Z)(_i,2),Pn=ei[0],Wn=ei[1],ti=Pn==="inline",gi=o.useState(Pn),ni=(0,v.Z)(gi,2),fn=ni[0],vi=ni[1],Ei=o.useState(Wn),ii=(0,v.Z)(Ei,2),yi=ii[0],bi=ii[1];o.useEffect(function(){vi(Pn),bi(Wn),Gn.current&&(ti?Rn(mi):bn(Ge))},[Pn,Wn]);var Ci=o.useState(0),ri=(0,v.Z)(Ci,2),Un=ri[0],Si=ri[1],Xn=Un>=on.length-1||fn!=="horizontal"||st;o.useEffect(function(){ti&&pi(qt)},[qt]),o.useEffect(function(){return Gn.current=!0,function(){Gn.current=!1}},[]);var Cn=l(),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?Ge:on.slice(Un+1).map(function(It){return It.key}))},[Un,Xn]);var Ii=(0,q.Z)(Ut||zt&&((L=on[0])===null||L===void 0?void 0:L.key),{value:Ut}),ui=(0,v.Z)(Ii,2),kn=ui[0],Yn=ui[1],Li=R(function(It){Yn(It)}),Di=R(function(){Yn(void 0)});(0,o.useImperativeHandle)(C,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=B(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,q.Z)(nn||[],{value:rn,postState:function(ft){return Array.isArray(ft)?ft:ft==null?Ge:[ft]}}),di=(0,v.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(Ge)},Fi=R(function(It){xn==null||xn(Ye(It)),Ti(It)}),ci=R(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)}),Mi=function(ft,St){var Wt=St!=null?St:!qt.includes(ft);ci(ft,Wt)},$i=h(fn,kn,Dn,Ln,wn,li,wi,Yn,Mi,Zn);o.useEffect(function(){Vn(!0)},[]);var Ni=o.useMemo(function(){return{_internalRenderMenuItem:Bn,_internalRenderSubMenuItem:Mn}},[Bn,Mn]),Pi=fn!=="horizontal"||st?on:on.map(function(It,ft){return o.createElement(O,{key:It.key,overflowDisabled:ft>Un},It)}),Ui=o.createElement(N.Z,(0,a.Z)({id:Dt,ref:wn,prefixCls:"".concat(D,"-overflow"),component:"ul",itemComponent:xe,className:de()(D,"".concat(D,"-root"),"".concat(D,"-").concat(fn),be,(j={},(0,b.Z)(j,"".concat(D,"-inline-collapsed"),yi),(0,b.Z)(j,"".concat(D,"-rtl"),Dn),j),ie),dir:rt,style:Ae,role:"menu",tabIndex:Ne,data:Pi,renderRawItem:function(ft){return ft},renderRawRest:function(ft){var St=ft.length,Wt=St?on.slice(-St):null;return o.createElement(V,{eventKey:E,title:an,disabled:Xn,internalPopupClose:St===0,popupClassName:hn},Wt)},maxCount:fn!=="horizontal"||st?N.Z.INVALIDATE:N.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ft){Si(ft)},onKeyDown:$i},$n));return o.createElement(Be.Provider,{value:Ni},o.createElement(Se.Provider,{value:Ln},o.createElement(O,{prefixCls:D,rootClassName:ie,mode:fn,openKeys:qt,rtl:Dn,disabled:lt,motion:Nn?_n:null,defaultMotions:Nn?gn: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(ce.Provider,{value:Bi},Ui),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement($.Provider,{value:Ri},on)))))}),vt=$t,ge=vt;ge.Item=xe,ge.SubMenu=V,ge.ItemGroup=$e,ge.Divider=he;var qe=ge},83836:function(dt,Re,u){"use strict";u.d(Re,{Z:function(){return Xe}});var a=u(60499),b=u(85899),P=u(72190),z=u(42244),v=u(59301),_=u(92310),fe=u.n(_),de=u(29301),N=u(34280),q=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],oe=void 0;function Q(H,Y){var ke=H.prefixCls,Ce=H.invalidate,le=H.item,ue=H.renderItem,ve=H.responsive,je=H.responsiveDisabled,Pe=H.registerSize,Ke=H.itemKey,at=H.className,ot=H.style,Ue=H.children,He=H.display,Qe=H.order,et=H.component,tt=et===void 0?"div":et,B=(0,z.Z)(H,q),g=ve&&!He;function s(m){Pe(Ke,m)}v.useEffect(function(){return function(){s(null)}},[]);var h=ue&&le!==oe?ue(le,{index:Qe}):Ue,p;Ce||(p={opacity:g?0:1,height:g?0:oe,overflowY:g?"hidden":oe,order:ve?Qe:oe,pointerEvents:g?"none":oe,position:g?"absolute":oe});var F={};g&&(F["aria-hidden"]=!0);var d=v.createElement(tt,(0,a.Z)({className:fe()(!Ce&&ke,at),style:(0,b.Z)((0,b.Z)({},p),ot)},F,B,{ref:Y}),h);return ve&&(d=v.createElement(de.Z,{onResize:function(E){var l=E.offsetWidth;s(l)},disabled:je},d)),d}var o=v.forwardRef(Q);o.displayName="Item";var W=o,Se=u(6089),te=u(4676),re=u(16089);function x(H){if(typeof MessageChannel=="undefined")(0,re.Z)(H);else{var Y=new MessageChannel;Y.port1.onmessage=function(){return H()},Y.port2.postMessage(void 0)}}function w(){var H=v.useRef(null),Y=function(Ce){H.current||(H.current=[],x(function(){(0,te.unstable_batchedUpdates)(function(){H.current.forEach(function(le){le()}),H.current=null})})),H.current.push(Ce)};return Y}function y(H,Y){var ke=v.useState(Y),Ce=(0,P.Z)(ke,2),le=Ce[0],ue=Ce[1],ve=(0,Se.Z)(function(je){H(function(){ue(je)})});return[le,ve]}var M=v.createContext(null),O=["component"],U=["className"],$=["className"],A=function(Y,ke){var Ce=v.useContext(M);if(!Ce){var le=Y.component,ue=le===void 0?"div":le,ve=(0,z.Z)(Y,O);return v.createElement(ue,(0,a.Z)({},ve,{ref:ke}))}var je=Ce.className,Pe=(0,z.Z)(Ce,U),Ke=Y.className,at=(0,z.Z)(Y,$);return v.createElement(M.Provider,{value:null},v.createElement(W,(0,a.Z)({ref:ke,className:fe()(je,Ke)},Pe,at)))},J=v.forwardRef(A);J.displayName="RawItem";var ae=J,ce=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],De="responsive",Be="invalidate";function Te(H){return"+ ".concat(H.length," ...")}function Ie(H,Y){var ke=H.prefixCls,Ce=ke===void 0?"rc-overflow":ke,le=H.data,ue=le===void 0?[]:le,ve=H.renderItem,je=H.renderRawItem,Pe=H.itemKey,Ke=H.itemWidth,at=Ke===void 0?10:Ke,ot=H.ssr,Ue=H.style,He=H.className,Qe=H.maxCount,et=H.renderRest,tt=H.renderRawRest,B=H.prefix,g=H.suffix,s=H.component,h=s===void 0?"div":s,p=H.itemComponent,F=H.onVisibleChange,d=(0,z.Z)(H,ce),m=ot==="full",E=w(),l=y(E,null),R=(0,P.Z)(l,2),G=R[0],me=R[1],Ee=G||0,Fe=y(E,new Map),_e=(0,P.Z)(Fe,2),Oe=_e[0],ye=_e[1],ut=y(E,0),_t=(0,P.Z)(ut,2),Z=_t[0],bt=_t[1],mt=y(E,0),xt=(0,P.Z)(mt,2),Ye=xt[0],At=xt[1],Tt=y(E,0),Ft=(0,P.Z)(Tt,2),Et=Ft[0],Zt=Ft[1],Kt=y(E,0),xe=(0,P.Z)(Kt,2),We=xe[0],Rt=xe[1],gt=(0,v.useState)(null),Nt=(0,P.Z)(gt,2),Mt=Nt[0],kt=Nt[1],Lt=(0,v.useState)(null),Je=(0,P.Z)(Lt,2),nt=Je[0],dn=Je[1],K=v.useMemo(function(){return nt===null&&m?Number.MAX_SAFE_INTEGER:nt||0},[nt,G]),e=(0,v.useState)(!1),t=(0,P.Z)(e,2),n=t[0],i=t[1],r="".concat(Ce,"-item"),c=Math.max(Z,Ye),f=Qe===De,ee=ue.length&&f,V=Qe===Be,pe=ee||typeof Qe=="number"&&ue.length>Qe,Me=(0,v.useMemo)(function(){var k=ue;return ee?G===null&&m?k=ue:k=ue.slice(0,Math.min(ue.length,Ee/at)):typeof Qe=="number"&&(k=ue.slice(0,Qe)),k},[ue,at,G,Qe,ee]),ze=(0,v.useMemo)(function(){return ee?ue.slice(K+1):ue.slice(Me.length)},[ue,Me,ee,K]),se=(0,v.useCallback)(function(k,D){var ie;return typeof Pe=="function"?Pe(k):(ie=Pe&&(k==null?void 0:k[Pe]))!==null&&ie!==void 0?ie:D},[Pe]),$e=(0,v.useCallback)(ve||function(k){return k},[ve]);function he(k,D,ie){nt===k&&(D===void 0||D===Mt)||(dn(k),ie||(i(k<ue.length-1),F==null||F(k)),D!==void 0&&kt(D))}function X(k,D){me(D.clientWidth)}function ne(k,D){ye(function(ie){var Ae=new Map(ie);return D===null?Ae.delete(k):Ae.set(k,D),Ae})}function we(k,D){At(D),bt(Ye)}function Le(k,D){Zt(D)}function Ge(k,D){Rt(D)}function $t(k){return Oe.get(se(Me[k],k))}(0,N.Z)(function(){if(Ee&&typeof c=="number"&&Me){var k=Et+We,D=Me.length,ie=D-1;if(!D){he(0,null);return}for(var Ae=0;Ae<D;Ae+=1){var be=$t(Ae);if(m&&(be=be||0),be===void 0){he(Ae-1,void 0,!0);break}if(k+=be,ie===0&&k<=Ee||Ae===ie-1&&k+$t(ie)<=Ee){he(ie,null);break}else if(k+c>Ee){he(Ae-1,k-be-We+Ye);break}}g&&$t(0)+We>Ee&&kt(null)}},[Ee,Oe,Ye,Et,We,se,Me]);var vt=n&&!!ze.length,ge={};Mt!==null&&ee&&(ge={position:"absolute",left:Mt,top:0});var qe={prefixCls:r,responsive:ee,component:p,invalidate:V},S=je?function(k,D){var ie=se(k,D);return v.createElement(M.Provider,{key:ie,value:(0,b.Z)((0,b.Z)({},qe),{},{order:D,item:k,itemKey:ie,registerSize:ne,display:D<=K})},je(k,D))}:function(k,D){var ie=se(k,D);return v.createElement(W,(0,a.Z)({},qe,{order:D,key:ie,item:k,renderItem:$e,itemKey:ie,registerSize:ne,display:D<=K}))},C={order:vt?K:Number.MAX_SAFE_INTEGER,className:"".concat(r,"-rest"),registerSize:we,display:vt},L=et||Te,j=tt?v.createElement(M.Provider,{value:(0,b.Z)((0,b.Z)({},qe),C)},tt(ze)):v.createElement(W,(0,a.Z)({},qe,C),typeof L=="function"?L(ze):L),I=v.createElement(h,(0,a.Z)({className:fe()(!V&&Ce,He),style:Ue,ref:Y},d),B&&v.createElement(W,(0,a.Z)({},qe,{responsive:f,responsiveDisabled:!ee,order:-1,className:"".concat(r,"-prefix"),registerSize:Le,display:!0}),B),Me.map(S),pe?j:null,g&&v.createElement(W,(0,a.Z)({},qe,{responsive:f,responsiveDisabled:!ee,order:K,className:"".concat(r,"-suffix"),registerSize:Ge,display:!0,style:ge}),g));return f?v.createElement(de.Z,{onResize:X,disabled:!ee},I):I}var T=v.forwardRef(Ie);T.displayName="Overflow",T.Item=ae,T.RESPONSIVE=De,T.INVALIDATE=Be;var Ve=T,Xe=Ve},82059:function(dt){var Re=arguments[3],u=arguments[4],a=arguments[5],b=JSON.stringify;dt.exports=function(P,z){for(var v,_=Object.keys(a),fe=0,de=_.length;fe<de;fe++){var N=_[fe],q=a[N].exports;if(q===P||q&&q.default===P){v=N;break}}if(!v){v=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var oe={},fe=0,de=_.length;fe<de;fe++){var N=_[fe];oe[N]=N}u[v]=["function(require,module,exports){"+P+"(self); }",oe]}var Q=Math.floor(Math.pow(16,8)*Math.random()).toString(16),o={};o[v]=v,u[Q]=["function(require,module,exports){var f = require("+b(v)+");(f.default ? f.default : f)(self);}",o];var W={};Se(Q);function Se(M){W[M]=!0;for(var O in u[M][1]){var U=u[M][1][O];W[U]||Se(U)}}var te="("+Re+")({"+Object.keys(W).map(function(M){return b(M)+":["+u[M][0]+","+b(u[M][1])+"]"}).join(",")+"},{},["+b(Q)+"])",re=window.URL||window.webkitURL||window.mozURL||window.msURL,x=new Blob([te],{type:"text/javascript"});if(z&&z.bare)return x;var w=re.createObjectURL(x),y=new Worker(w);return y.objectURL=w,y}}}]);