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.
44 lines
278 KiB
44 lines
278 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[4928],{18785:function(ut,xe,u){"use strict";u.d(xe,{Z:function(){return ue}});var a=u(92413),S=u(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},P=M,C=u(7657),_=function(q,re){return S.createElement(C.Z,(0,a.Z)({},q,{ref:re,icon:P}))},ce=S.forwardRef(_),ue=ce},33853:function(ut,xe,u){"use strict";u.d(xe,{Z:function(){return ue}});var a=u(92413),S=u(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},P=M,C=u(7657),_=function(q,re){return S.createElement(C.Z,(0,a.Z)({},q,{ref:re,icon:P}))},ce=S.forwardRef(_),ue=ce},38819:function(ut,xe,u){"use strict";u.d(xe,{Z:function(){return ue}});var a=u(92413),S=u(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},P=M,C=u(7657),_=function(q,re){return S.createElement(C.Z,(0,a.Z)({},q,{ref:re,icon:P}))},ce=S.forwardRef(_),ue=ce},71839:function(ut,xe,u){"use strict";u.d(xe,{Z:function(){return we}});var a=u(59301),S=u(8591),M=u(38854),P=u(29382),C=u(40846),_=u(24065),ce=u(56102),ue=u(4901),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=(ee,te,E)=>new Promise((w,y)=>{var L=T=>{try{O(E.next(T))}catch(A){y(A)}},I=T=>{try{O(E.throw(T))}catch(A){y(A)}},O=T=>T.done?w(T.value):Promise.resolve(T.value).then(L,I);O((E=E.apply(ee,te)).next())});function re(ee){if(isNaN(ee))return{minutes:"00",seconds:"00"};const te=new Date(ee*1e3).toISOString().substr(11,8);return{hour:te.substr(0,2),minutes:te.substr(3,2),seconds:te.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function Q(ee,te){return ee-te}function o(ee){ee.sort(Q);let te=0;for(let E=0;E<ee.length-1;E++){let w=Math.abs(ee[E+1]-ee[E]);w<21&&(te+=w)}return te}const H=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var we=(0,a.forwardRef)(({allow_skip:ee,src:te,toLog:E,videoId:w,logWatchHistory:y,courseId:L=null,startTime:I,handlePause:O=()=>{},handlePlay:T=()=>{},handlePlayEnded:A=()=>{},autoPlay:J=!1,onPlayEnded:ie=()=>{},isShowWaterMark:he=!0},Ie)=>{var Se;const Ae=((Se=te==null?void 0:te.split("."))==null?void 0:Se.pop())==="flv",F=(0,a.useRef)(),Ge=(0,a.useRef)(),We=(0,a.useRef)(),Z=(0,a.useRef)(),Y=(0,a.useRef)(),Be=(0,a.useRef)(),Ee=(0,a.useRef)(),se=(0,a.useRef)(),ae=(0,a.useRef)(),_e=(0,a.useRef)(),Ue=(0,a.useRef)(),$e=(0,a.useRef)(),je=(0,a.useRef)(),Xe=(0,a.useRef)(),nt=navigator.userAgent.toLowerCase().match(H),Me=nt?nt[0]:"pc",He=(0,a.useRef)(!1),Qe=(0,_.eY)();let Je=0,et=0,B=0,b=null,s=!1,h=20,f=1,$=!1,d=!1,m=[];(0,a.useImperativeHandle)(Ie,()=>({getLastUpdatedTime:()=>F.current.currentTime,getDuration:()=>F.current.duration})),S.ZP.config({maxCount:1,getContainer:()=>We.current});const x=(0,a.useCallback)((ge,ke=!1)=>{let Ce={point:F.current.currentTime};b?(Ce.log_id=b,Ce.watch_duration=o(m),Ce.total_duration=et):(L?(Ce.video_id=parseInt(w,10),Ce.course_id=L):Ce.video_id=w,Ce.duration=Je,Ce.device=Me),ke&&(Ce.ed="1");function ot(){return q(this,null,function*(){$=!0,b=yield y==null?void 0:y(Ce),$=!1,ge&&ge()})}ot()},[w,L]);(0,a.useEffect)(()=>{F.current&&(Z.current.style.display="none",Y.current.style.display="block"),S.ZP.destroy();let ge=null;return P.Z.isSupported&&Ae&&te&&(te==null?void 0:te.indexOf(".m3u8"))<0?(ge=P.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:te,muted:!1}),F.current&&(ge.attachMediaElement(F.current),ge.load())):F.current.setAttribute("src",te),R(),()=>{ge&&(ge.unload(),ge.pause(),ge.destroy(),ge=null)}},[F,Ae,te]);function l(){F.current.paused?(Z.current.style.display="none",Y.current.style.display="block"):(Z.current.style.display="block",Y.current.style.display="none")}function R(){Ue.current.style.display="none",je.current.style.display="none",$e.current.style.display="none",F.current.muted||F.current.volume===0?Ue.current.style.display="block":F.current.volume>0&&F.current.volume<=.5?je.current.style.display="block":$e.current.style.display="block"}(0,a.useEffect)(()=>{const ge=document.getElementById("play"),ke=document.querySelectorAll(".playback-icons use");function Ce(){T(),I&&!He.current&&(F.current.currentTime=I),He.current=!0,m.push(F.current.currentTime),s||(s=!0,E&&x())}function ot(){return q(this,null,function*(){l(),m.push(F.current.currentTime),E&&x(()=>{b=null,B=0,s=!1,$=!1,d=!1,m=[],et=0,f=1},!0),ie()})}function _t(){Be.current.value=Math.round(F.current.currentTime),Ee.current.value=Math.round(F.current.currentTime)}function j(){const Re=re(Math.round(F.current.currentTime));ae.current.innerText=`${Re.hour>0?Re.hour+":":""}${Re.minutes}:${Re.seconds}`,ae.current.setAttribute("datetime",`${Re.hour>0?" "+Re.hour+" ":""}${Re.minutes}m ${Re.seconds}s`)}function bt(){var Re,qe,Bt,pt,$t,Pt,St;const Ot=Math.round((Re=F.current)==null?void 0:Re.duration);(Bt=(qe=Be.current)==null?void 0:qe.setAttribute)==null||Bt.call(qe,"max",Ot),($t=(pt=Ee.current)==null?void 0:pt.setAttribute)==null||$t.call(pt,"max",Ot);const tt=re(Ot);se.current&&(se.current.innerText=`${tt.hour>0?tt.hour+":":""}${tt.minutes}:${tt.seconds}`,(St=(Pt=se.current).setAttribute)==null||St.call(Pt,"datetime",`${tt.hour>0?" "+tt.hour+" ":""}${tt.minutes}m ${tt.seconds}s`))}function ct(){try{const Re=Math.round(F.current.duration);Be.current.setAttribute("max",Re),Ee.current.setAttribute("max",Re);const qe=re(Re);se.current.innerText=`${qe.hour>0?qe.hour+":":""}${qe.minutes}:${qe.seconds}`,se.current.setAttribute("datetime",`${qe.hour>0?" "+qe.hour+" ":""}${qe.minutes}m ${qe.seconds}s`),_t(),j();const{width:Bt,height:pt,x:$t,y:Pt}=Ge.current.getBoundingClientRect();if($t<0||Pt<0||!Bt)return;if(!d){let St=F.current.currentTime,Ot=St-B;Math.abs(Ot)<10?(et+=Math.abs(Ot),B=St,$||et-f*h>=0&&(f++,m.push(B),E&&x())):(B=St,E&&x())}}catch(Re){console.log(Re)}}function vt(){d=!0}function it(){F.current.playing&&m.push(F.current.currentTime,B),B=F.current.currentTime,d=!1}function Rt(){Je=F.current.duration,Je<=20&&(h=Je/3),F.current.addEventListener("play",Ce)}function Ft(Re){Re.preventDefault(),(0,ue.vp)()?(F.current.style.width="100%",F.current.style.height="100%"):F.current.style.cssText=""}function Dt(){O()}function Ct(Re){if(!ee){S.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const qe=Re.target.dataset.seek?Re.target.dataset.seek:Re.target.value;F.current.currentTime=qe,Ee.current.value=qe,Be.current.value=qe}function Kt(Re){const qe=Math.round(Re.offsetX/Re.target.clientWidth*parseInt(Re.target.getAttribute("max"),10));Be.current.setAttribute("data-seek",qe);const Bt=re(qe);_e.current.textContent=`${Bt.hour>0?Bt.hour+":":""}${Bt.minutes}:${Bt.seconds}`;const pt=F.current.getBoundingClientRect();_e.current.style.left=`${Re.pageX-pt.left}px`}function zt(Re){switch(Re.code){case"Space":Re.preventDefault(),De();break;case"ArrowRight":if(Re.preventDefault(),!ee){S.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(F.current.currentTime>=F.current.duration)break;F.current.currentTime=parseInt(F.current.currentTime)+5,_t();break;case"ArrowLeft":if(Re.preventDefault(),!ee){S.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(F.current.currentTime===0)break;F.current.currentTime=parseInt(F.current.currentTime)-5,_t();break;case"ArrowUp":Re.preventDefault(),F.current.volume<1&&(F.current.volume=(parseInt(F.current.volume*10)+1)/10);break;case"ArrowDown":Re.preventDefault(),F.current.volume>0&&(F.current.volume=(parseInt(F.current.volume*10)-1)/10);break}}return We.current.addEventListener((0,ue.gH)(),Ft),F.current.addEventListener("canplay",Rt),F.current.addEventListener("ended",ot),F.current.addEventListener("seeking",vt),F.current.addEventListener("seeked",it),F.current.addEventListener("loadedmetadata",bt),Be.current.addEventListener("mousemove",Kt),Be.current.addEventListener("input",Ct),F.current.addEventListener("timeupdate",ct),F.current.addEventListener("pause",Dt),F.current.addEventListener("volumechange",R),document.addEventListener("keydown",zt),()=>{var Re,qe,Bt,pt,$t,Pt,St,Ot,tt,dt,dn,K;(Re=F.current)==null||Re.removeEventListener("canplay",Rt),(qe=F.current)==null||qe.removeEventListener("play",Ce),(Bt=F.current)==null||Bt.removeEventListener("ended",ot),(pt=F.current)==null||pt.removeEventListener("seeking",vt),($t=F.current)==null||$t.removeEventListener("seeked",it),(Pt=Be.current)==null||Pt.removeEventListener("mousemove",Kt),(St=Be.current)==null||St.removeEventListener("input",Ct),(Ot=F.current)==null||Ot.removeEventListener("timeupdate",ct),(tt=F.current)==null||tt.removeEventListener("pause",Dt),(dt=F.current)==null||dt.removeEventListener("loadedmetadata",bt),(dn=F.current)==null||dn.removeEventListener("volumechange",R),document.removeEventListener("keydown",zt),(K=F.current)!=null&&K.playing&&(m.push(B,F.current.currentTime),E&&x())}},[F,te]),(0,a.useEffect)(()=>{if(F.current.onended=()=>{A(F)},F.current.oncontextmenu=()=>!1,(te==null?void 0:te.indexOf(".m3u8"))>-1){if(F.current.canPlayType("application/vnd.apple.mpegurl"))F.current.src=te;else if(C.ZP.isSupported()){var ge=new C.ZP;ge.loadSource(te),ge.attachMedia(F.current)}}},[te]);const[W,de]=(0,a.useState)(1),De=()=>{F.current.paused||F.current.ended?F.current.play():F.current.pause(),l()};function Fe(){F.current.muted=!F.current.muted,F.current.muted?(Xe.current.setAttribute("data-volume",volume.value),Xe.current.value=0):Xe.current.value=Xe.current.dataset.volume}return a.createElement("div",{style:{position:"relative"},ref:We},a.createElement("div",{ref:Ge,className:`${N.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${N.animate__loop}`},he&&Qe?Qe.login:" "),a.createElement("div",{className:N.container},a.createElement("div",{className:N["video-container"],id:"video-container"},a.createElement("div",{className:N["playback-animation"],id:"playback-animation"},a.createElement("svg",{className:N["playback-icons"]},a.createElement("use",{className:"hidden",href:"#play-icon"}),a.createElement("use",{href:"#pause"}))),a.createElement("video",{className:N.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:F,autoPlay: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:De},a.createElement("svg",{className:N["playback-icons"]},a.createElement("use",{ref:Y,href:"#play-icon"}),a.createElement("use",{ref:Z,style:{display:"none"},href:"#pause"}))),a.createElement("div",{className:N.time},a.createElement("time",{id:"time-elapsed",ref:ae},"00:00"),a.createElement("span",null," / "),a.createElement("time",{id:"duration",ref:se},"00:00"))),a.createElement("div",{className:N["right-controls"]},ee&&a.createElement(M.Z,{placement:"top",overlayClassName:N.rateOverlay,getPopupContainer:ge=>ge.parentNode,menu:{items:[{key:"1",label:a.createElement("span",{onClick:()=>{de(1),F.current.playbackRate=1}},"1.0x")},{key:"2",label:a.createElement("span",{onClick:()=>{de(1.5),F.current.playbackRate=1.5}},"1.5x")},{key:"3",label:a.createElement("span",{onClick:()=>{de(2),F.current.playbackRate=2}},"2.0x")}]}},a.createElement("div",{className:`${N.controlText} mr5`},"\u500D\u901F")),a.createElement(ce.CopyToClipboard,{text:te,onCopy:()=>S.ZP.success("\u590D\u5236\u6210\u529F")},a.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},a.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),a.createElement("div",{className:N["volume-controls"]},a.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:N["volume-button"],id:"volume-button",onClick:Fe},a.createElement("i",{ref:Ue,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),a.createElement("i",{ref:je,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),a.createElement("i",{ref:$e,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),a.createElement("input",{className:N.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Xe,style:{display:"none"},onClick:R})),a.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:N["fullscreen-button"],onClick:()=>{(0,ue.vp)()?(0,ue.BU)():(0,ue.Dj)(We.current)}},a.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),a.createElement("div",{className:N["video-progress"]},a.createElement("progress",{ref:Ee,value:"0",min:"0"}),a.createElement("input",{className:N.seek,ref:Be,value:"0",min:"0",type:"range",step:"1"}),a.createElement("div",{className:N["seek-tooltip"],ref:_e,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"})))))})},66676:function(ut,xe,u){"use strict";u.r(xe),u.d(xe,{default:function(){return te}});var a=u(59301),S=u(89070),M=u(61621),P=u(43418),C={flex_box_center:"flex_box_center___yF0Vb",flex_space_between:"flex_space_between___vsNYO",flex_box_vertical_center:"flex_box_vertical_center___C4UqH",flex_box_center_end:"flex_box_center_end___EGtmE",flex_box_column:"flex_box_column___uX9g9",bg:"bg___sRga2",menu:"menu___s8xQl",desc:"desc___poG1Z",listItem:"listItem___ml9kN",info:"info___Z8R2Z",add:"add___jH8te",addForm:"addForm___O999t",attendanceCode:"attendanceCode___hPKyl",signInStatus:"signInStatus___usMPT",colorE02020:"colorE02020___hZvSz",color0152d9:"color0152d9___RgXzd",colorFA6400:"colorFA6400___g2yU6",iframe:"iframe___HRzMh"},_=u(24065);const ce={init:[{stage_name:"\u521D\u59CB\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7EEA\u8BBA",parent:0,key:1},{discipline_name:"\u7EEA\u8BBA",shixun_count:"1",video_count:"2",parent:1,key:"11"},{shixun_name:"\u7EEA\u8BBA1",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f066ae1a9a8f418f837e5bf8d02b2690/76df907c20efd95bea0fa23424f10693-hd.m3u8",parent:"11",key:"111"},{shixun_name:"\u7EEA\u8BBA2",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/068ca7853da448c794eeffb0dee8bed4/5bb446a882043683e37474ff408f601b-hd.m3u8",parent:"11",key:"112"},{shixun_name:"C++\u5F00\u53D1\u73AF\u5883\u5E94\u7528\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/zxb937qn/challenges",parent:"11",key:"113"},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:2},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:2,key:"21"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"21",key:"212"},{discipline_name:"\u5224\u65AD\u8BED\u53E5",shixun_count:"2",video_count:"2",parent:2,key:"22"},{shixun_name:"if\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/3b4e821b200443948c553e4c6b51d940/b9601216238e60440192c2deb58adc53-hd.m3u8",parent:"22",key:"221"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08if\u591A\u91CD\u9009\u62E9\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/23xkyrmn/challenges",parent:"22",key:"222"},{shixun_name:"switch\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/3b4e821b200443948c553e4c6b51d940/b9601216238e60440192c2deb58adc53-hd.m3u8",parent:"22",key:"223"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"22",key:"224"},{discipline_name:"\u5FAA\u73AF",shixun_count:"2",video_count:"2",parent:2,key:"23"},{shixun_name:"while\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/dda06371a1594f5d865479a0fadc77bb/cb504e3af36ebe2ba979e8fe5fbb2222-hd.m3u8",parent:"23",key:"231"},{shixun_name:"C++\u5FAA\u73AF\u7ED3\u6784\u2014\u2014\uFF08\u719F\u6089while\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/8yhf4sn6/challenges",parent:"23",key:"232"},{shixun_name:"for\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/503194c483f44ccfacc7f9ee14cda70a/36cbd964c6657d1bbc43eb33b98f0c51-hd.m3u8",parent:"23",key:"233"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"23",key:"234"},{stage_name:"\u51FD\u6570",parent:0,key:3},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"31",key:"311"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"31",key:"312"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"31",key:"313"},{discipline_name:"\u4F20\u8F93\u4F20\u9012",shixun_count:"2",video_count:"1",parent:3,key:"32"},{shixun_name:"\u51FD\u6570\u7684\u53C2\u6570",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"32",key:"321"},{shixun_name:"C++\u53C2\u6570\u4F20\u90121",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/2phrn8yk/challenges",parent:"32",key:"322"},{shixun_name:"C++\u53C2\u6570\u4F20\u90122",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xsq7p4a6/challenges",parent:"32",key:"323"},{discipline_name:"\u51FD\u6570\u91CD\u8F7D",shixun_count:"1",video_count:"1",parent:3,key:"33"},{shixun_name:"\u51FD\u6570\u91CD\u8F7D",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"33",key:"331"},{shixun_name:"C++\u51FD\u6570\u91CD\u8F7D",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/6hbqpv7e/challenges",parent:"33",key:"332"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"34"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"34",key:"341"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"34",key:"342"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"34",key:"343"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:4},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"41",key:"411"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"41",key:"412"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"41",key:"413"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:5},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"51",key:"511"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"51",key:"512"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:6},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:6,key:"61"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"61",key:"611"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"61",key:"612"},{discipline_name:"\u6307\u9488",shixun_count:"3",video_count:"1",parent:6,key:"62"},{shixun_name:"\u6307\u9488",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/00a5448862c84c42b1a369ac2be88ae9/9b9627710a725e570ede478663c2589d-hd.m3u8",parent:"62",key:"621"},{shixun_name:"\u6307\u9488\u7EC3\u624B-\u5B57\u7B26\u4E32\u5012\u5E8F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lkn6xuc3/challenges",parent:"62",key:"622"},{shixun_name:"\u6307\u9488\u6570\u7EC4-\u5355\u8BCD\u5012\u5E8F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/vtk73ny2/challenges",parent:"62",key:"623"},{shixun_name:"\u7528\u6307\u9488\u89E3\u51B3\u95EE\u9898-\u6587\u672C\u683C\u5F0F\u5904\u7406",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xfnp73fz/challenges",parent:"62",key:"624"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:7},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"1",video_count:"3",parent:7,key:"71"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(3)",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7806?subject_id=jpl5vs26",parent:"71",key:"713"},{shixun_name:"\u7EE7\u627F\u4E0E\u6D3E\u751F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/f83ipgyo/challenges",parent:"71",key:"714"},{stage_name:"\u591A\u6001\u6027",parent:0,key:8},{discipline_name:"\u591A\u6001\u6027",shixun_count:"1",video_count:"2",parent:8,key:"81"},{shixun_name:"\u591A\u6001\u6027(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/5a960b51ebf346d2b77afb3b70d00768/73d6fa00824f4c73b885d33f688c3294-hd.m3u8",parent:"81",key:"811"},{shixun_name:"\u591A\u6001\u6027(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/08fe97a36e184cf1bf27cdd7a24794c9/625c4e9e863840443f5332ccc02761fc-hd.m3u8",parent:"81",key:"812"},{shixun_name:"\u865A\u51FD\u6570\u4E0E\u591A\u6001\u6027",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/9pjmg7uf/challenges",parent:"81",key:"813"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:9},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"1",video_count:"3",parent:9,key:"91"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/459f2693af7b48f8b854033e666a77f8/f5b140c5adc0f24ac56b72492373306a-hd.m3u8",parent:"91",key:"912"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(3)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/ccea50bc15d2468aab99aff19eb69e16/a5ecac1ee0c07360d07880187a787085-hd.m3u8",parent:"91",key:"913"},{shixun_name:"\u7FA4\u4F53\u7C7B\u548C\u7FA4\u4F53\u6570\u636E\u7684\u7EC4\u7EC7",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/kfv3my9o/challenges",parent:"91",key:"914"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:10},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"1",video_count:"3",parent:10,key:"101"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"101",key:"1011"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/23be6a61e4e54db398b9172b1213a1f2/3f1e88f97957369e29ef2bde63640004-hd.m3u8",parent:"101",key:"1012"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(3)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/a5887adcc34445bba695de7dcadb781e/0fb3a6a6ad38f7a107054c5f2f0de262-hd.m3u8",parent:"101",key:"1013"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hmtw5iq6/challenges",parent:"101",key:"1014"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA11",parent:0,key:1911},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"1",video_count:"2",parent:1911,key:9111},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)22222",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:9111,key:"91111"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/65c02365a4ad40858b69b8cbe3ca4aa1/18a2c5697d4a84a971c500565509f038-hd.m3u8",parent:"9111",key:"91112"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hsvuixpm/challenges",parent:"9111",key:"91113"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:12},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:12,key:"121"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"121",key:"1211"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"121",key:"1212"}].map(E=>(E.parent=Number(E.parent),E.key=Number(E.key),E)),review:[{stage_name:"\u590D\u4E60\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:1},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:1,key:"11"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"11",key:"111"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"11",key:"112"},{discipline_name:"\u5FAA\u73AF",shixun_count:"2",video_count:"2",parent:1,key:"12"},{shixun_name:"while\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/dda06371a1594f5d865479a0fadc77bb/cb504e3af36ebe2ba979e8fe5fbb2222-hd.m3u8",parent:"12",key:"121"},{shixun_name:"C++\u5FAA\u73AF\u7ED3\u6784\u2014\u2014\uFF08\u719F\u6089while\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/8yhf4sn6/challenges",parent:"12",key:"122"},{shixun_name:"for\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/503194c483f44ccfacc7f9ee14cda70a/36cbd964c6657d1bbc43eb33b98f0c51-hd.m3u8",parent:"12",key:"123"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"12",key:"124"},{stage_name:"\u51FD\u6570",parent:0,key:2},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:2,key:"21"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"21",key:"212"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"21",key:"213"},{discipline_name:"\u4F20\u8F93\u4F20\u9012",shixun_count:"2",video_count:"1",parent:2,key:"22"},{shixun_name:"\u51FD\u6570\u7684\u53C2\u6570",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"22",key:"221"},{shixun_name:"C++\u53C2\u6570\u4F20\u90121",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/2phrn8yk/challenges",parent:"22",key:"222"},{shixun_name:"C++\u53C2\u6570\u4F20\u90122",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xsq7p4a6/challenges",parent:"22",key:"223"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"2",parent:2,key:"23"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"23",key:"231"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"23",key:"232"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"23",key:"233"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:3},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"31",key:"311"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"31",key:"312"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"31",key:"313"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:4},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"41",key:"411"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"41",key:"412"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:5},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"51",key:"511"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"51",key:"512"},{discipline_name:"\u6307\u9488",shixun_count:"1",video_count:"1",parent:5,key:"52"},{shixun_name:"\u6307\u9488",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/00a5448862c84c42b1a369ac2be88ae9/9b9627710a725e570ede478663c2589d-hd.m3u8",parent:"52",key:"521"},{shixun_name:"\u7528\u6307\u9488\u89E3\u51B3\u95EE\u9898-\u6587\u672C\u683C\u5F0F\u5904\u7406",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xfnp73fz/challenges",parent:"52",key:"522"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:6},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"0",video_count:"2",parent:6,key:"61"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"61",key:"611"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"61",key:"612"},{stage_name:"\u591A\u6001\u6027",parent:0,key:7},{discipline_name:"\u591A\u6001\u6027",shixun_count:"1",video_count:"2",parent:7,key:"71"},{shixun_name:"\u591A\u6001\u6027(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/5a960b51ebf346d2b77afb3b70d00768/73d6fa00824f4c73b885d33f688c3294-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u591A\u6001\u6027(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/08fe97a36e184cf1bf27cdd7a24794c9/625c4e9e863840443f5332ccc02761fc-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u865A\u51FD\u6570\u4E0E\u591A\u6001\u6027",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/9pjmg7uf/challenges",parent:"71",key:"713"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:8},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"1",video_count:"1",parent:8,key:"81"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"81",key:"811"},{shixun_name:"\u7FA4\u4F53\u7C7B\u548C\u7FA4\u4F53\u6570\u636E\u7684\u7EC4\u7EC7",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/kfv3my9o/challenges",parent:"81",key:"812"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:9},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"1",video_count:"1",parent:9,key:"91"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hmtw5iq6/challenges",parent:"91",key:"912"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",parent:0,key:10},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"0",video_count:"2",parent:10,key:"101"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:"101",key:"1011"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/65c02365a4ad40858b69b8cbe3ca4aa1/18a2c5697d4a84a971c500565509f038-hd.m3u8",parent:"101",key:"1012"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hsvuixpm/challenges",parent:"101",key:"1013"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:9911},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:9911,key:"99111"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"99111",key:"991111"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"99111",key:"991112"}].map(E=>(E.parent=Number(E.parent),E.key=Number(E.key),E)),before:[{stage_name:"\u8003\u524D\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7EEA\u8BBA",parent:0,key:1},{discipline_name:"\u7EEA\u8BBA",shixun_count:"1",video_count:"2",parent:1,key:"11"},{shixun_name:"\u7EEA\u8BBA1",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f066ae1a9a8f418f837e5bf8d02b2690/76df907c20efd95bea0fa23424f10693-hd.m3u8",parent:"11",key:"111"},{shixun_name:"\u7EEA\u8BBA2",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/068ca7853da448c794eeffb0dee8bed4/5bb446a882043683e37474ff408f601b-hd.m3u8",parent:"11",key:"112"},{shixun_name:"C++\u5F00\u53D1\u73AF\u5883\u5E94\u7528\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/zxb937qn/challenges",parent:"11",key:"113"},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:2},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:2,key:"21"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"21",key:"212"},{stage_name:"\u51FD\u6570",parent:0,key:3},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"31",key:"311"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"31",key:"312"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"31",key:"313"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"32"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"32",key:"321"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"32",key:"322"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"32",key:"323"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:4},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"41",key:"411"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"41",key:"412"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"41",key:"413"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:5},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"51",key:"511"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"51",key:"512"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:6},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:6,key:"61"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"61",key:"611"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"61",key:"612"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:7},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"1",video_count:"3",parent:7,key:"71"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(3)",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7806?subject_id=jpl5vs26",parent:"71",key:"713"},{shixun_name:"\u7EE7\u627F\u4E0E\u6D3E\u751F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/f83ipgyo/challenges",parent:"71",key:"714"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:8},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"0",video_count:"1",parent:8,key:"81"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"81",key:"811"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:9},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"0",video_count:"1",parent:9,key:"91"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/23be6a61e4e54db398b9172b1213a1f2/3f1e88f97957369e29ef2bde63640004-hd.m3u8",parent:"91",key:"912"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",parent:0,key:10},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"0",video_count:"1",parent:10,key:"101"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:"101",key:"1011"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:9911},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:9911,key:"99111"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"99111",key:"991111"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"99111",key:"991112"}].map(E=>(E.parent=Number(E.parent),E.key=Number(E.key),E))};var ue=u(62202),N=u(71839),q=Object.defineProperty,re=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,H=(E,w,y)=>w in E?q(E,w,{enumerable:!0,configurable:!0,writable:!0,value:y}):E[w]=y,we=(E,w)=>{for(var y in w||(w={}))Q.call(w,y)&&H(E,y,w[y]);if(re)for(var y of re(w))o.call(w,y)&&H(E,y,w[y]);return E};const ee=({classroomList:E,loading:w,dispatch:y})=>{const[L]=(0,S.useSearchParams)(),[I]=(0,a.useState)(we({},(0,S.useParams)())),[O,T]=(0,a.useState)("init"),[A,J]=(0,a.useState)(""),ie=(0,a.useRef)();(0,a.useEffect)(()=>{const Ae=L.get("tabId");Ae&&(T(Ae),I.status=Ae)},[I.categoryId,L.get("tabId")]);const he=Ae=>{T(Ae.key)},Ie=[{name:"\u521D\u59CB\u5B66\u4E60",id:"init"},{name:"\u590D\u4E60\u5B66\u4E60",id:"review"},{name:"\u8003\u524D\u5B66\u4E60",id:"before"}],Se=Ae=>{Ae.data.type==="playVideo"&&J(Ae.data.url)};(0,a.useEffect)(()=>{O&&Oe(),window.addEventListener("message",Se)},[O]);const Oe=()=>{var Ae;(Ae=ie.current.contentWindow)==null||Ae.postMessage({data:ce[O]},"*")};return a.createElement("section",null,a.createElement(ue.Z,{isLoading:w["classroomList/getClassroomAttendancesList"],tabDataSource:Ie,isAdmin:(0,_.GJ)(),onTabMenuClick:he,defaultSelectedKeys:[O]}),a.createElement("section",null,a.createElement(M.Z,{loading:w["classroomList/getClassroomAttendancesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},a.createElement("iframe",{src:"/knowledgegraph/parseTree.html",onLoad:Oe,className:C.iframe,ref:ie}))),a.createElement(P.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 te=(0,S.connect)(({classroomList:E,loading:w,globalSetting:y})=>({classroomList:E,globalSetting:y,loading:w.effects}))(ee)},62202:function(ut,xe,u){"use strict";u.d(xe,{Z:function(){return Q}});var a=u(59301),S=u(95237),M=u(43604),P=u(20834),C=u(38854),_=u(8591),ce=u(6848),ue={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},N=u(89070),q=u(24065),Q=({isLoading:o,addText:H,tabDataSource:we,isAdmin:ee,dispatch:te,classroomList:E,type:w,isExercise:y,defaultSelectedKeys:L,onTabMenuClick:I,getDropdownMenu:O,showControlButton:T,buttonText:A,buttonIcon:J="icon-tianjiadaohang",extraNode:ie,user:he,onButtonClick:Ie,isModelUser:Se})=>{var Oe,Ae,F,Ge,We;const Z=(0,N.useParams)();return a.createElement("div",{className:ue.tabMenuContainer},a.createElement(S.Z,null,a.createElement(M.Z,{flex:"1"},a.createElement(P.default,{onSelect:Y=>o?{}:I(Y),mode:"horizontal",selectedKeys:L},we.map(Y=>a.createElement(P.default.Item,{key:typeof Y.index=="number"?Y.index:Y.id},a.createElement("span",{className:"c-grey-666"},Y.name),Y.total!==void 0&&ee&&a.createElement("span",{className:"c-grey-999 ml20"},Y.total||0))))),ee&&y&&a.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{te({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),ee&&a.createElement(M.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},y&&a.createElement(C.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>a.createElement(P.default,null,a.createElement(P.default.Item,{key:1,onClick:()=>{var Y;if((0,q.Rm)()&&!((Y=E.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}te({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:w,exportType:"exercise",category_id:Z.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),a.createElement(P.default.Item,{key:3,onClick:()=>{var Y;if((0,q.Rm)()&&!((Y=E.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/${Z==null?void 0:Z.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:ue.control},a.createElement("div",{className:ue.extra},ie),T&&(A=="\u6DFB\u52A0\u76F4\u64AD"?a.createElement(C.Z,{menu:{items:(Ae=(Oe=[{label:a.createElement("div",{onClick:()=>{Ie("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Se&&{label:a.createElement("div",{onClick:()=>{Ie("\u5934\u6B4C")}},"\u5934\u6B4C\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:Oe.filter(Y=>Y==null?void 0:Y.show))==null?void 0:Ae.map(Y=>({label:Y==null?void 0:Y.label,key:Y==null?void 0:Y.key}))}},a.createElement("span",{className:ue.selectBtn},a.createElement("span",null,a.createElement("i",{className:`iconfont ${J}`})),a.createElement("span",null,A))):a.createElement("span",{onClick:Ie,style:{cursor:"pointer"},className:ue.selectBtn},a.createElement("span",null,a.createElement("i",{className:`iconfont ${J}`})),a.createElement("span",null,A))),!!O&&a.createElement(C.Z,{disabled:((F=he==null?void 0:he.userInfo)==null?void 0:F.user_status)===2,className:"ml10",dropdownRender:O},a.createElement("span",{className:((Ge=he==null?void 0:he.userInfo)==null?void 0:Ge.user_status)===2?ue.selectBtn1:ue.selectBtn},a.createElement("span",null,a.createElement("i",{className:"iconfont icon-tianjiadaohang"})),a.createElement(ce.Z,{title:((We=he==null?void 0:he.userInfo)==null?void 0:We.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,H||"\u521B\u5EFA\u8BD5\u5377"))))))))}},4901:function(ut,xe,u){"use strict";u.d(xe,{BU:function(){return S},Dj:function(){return a},gH:function(){return M},vp:function(){return P}});function a(C){try{C.mozRequestFullScreen?C.mozRequestFullScreen():C.webkitRequestFullScreen&&C.webkitRequestFullScreen()}catch(_){console.log(_,":e")}}function S(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const M=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function P(){var C=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,_=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",C),window.isFullScreen?window.isFullScreen:C!=null}},29382:function(ut,xe,u){"use strict";u.d(xe,{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 S=a,M=u(86204),P=u.n(M);class C{static e(e,t){(!e||C.FORCE_GLOBAL_TAG)&&(e=C.GLOBAL_TAG);let n=`[${e}] > ${t}`;C.ENABLE_CALLBACK&&C.emitter.emit("log","error",n),C.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}static i(e,t){(!e||C.FORCE_GLOBAL_TAG)&&(e=C.GLOBAL_TAG);let n=`[${e}] > ${t}`;C.ENABLE_CALLBACK&&C.emitter.emit("log","info",n),C.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}static w(e,t){(!e||C.FORCE_GLOBAL_TAG)&&(e=C.GLOBAL_TAG);let n=`[${e}] > ${t}`;C.ENABLE_CALLBACK&&C.emitter.emit("log","warn",n),C.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}static d(e,t){(!e||C.FORCE_GLOBAL_TAG)&&(e=C.GLOBAL_TAG);let n=`[${e}] > ${t}`;C.ENABLE_CALLBACK&&C.emitter.emit("log","debug",n),C.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}static v(e,t){(!e||C.FORCE_GLOBAL_TAG)&&(e=C.GLOBAL_TAG);let n=`[${e}] > ${t}`;C.ENABLE_CALLBACK&&C.emitter.emit("log","verbose",n),C.ENABLE_VERBOSE&&console.log(n)}}C.GLOBAL_TAG="flv.js",C.FORCE_GLOBAL_TAG=!1,C.ENABLE_ERROR=!0,C.ENABLE_INFO=!0,C.ENABLE_WARN=!0,C.ENABLE_DEBUG=!0,C.ENABLE_VERBOSE=!0,C.ENABLE_CALLBACK=!1,C.emitter=new(P());var _=C;class ce{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(e){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let e=(this._now()-this._lastCheckpoint)/1e3;return e==0&&(e=1),this._intervalBytes/e/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}var ue=ce;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 re 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},H={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class we{constructor(e){this._type=e||"undefined",this._status=o.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=o.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===o.kConnecting||this._status===o.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(e){this._onContentLengthKnown=e}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(e){this._onURLRedirect=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}open(e,t){throw new Q("Unimplemented abstract function!")}abort(){throw new Q("Unimplemented abstract function!")}}let ee={};function te(){let K=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(K)||/(opr)[\/]([\w.]+)/.exec(K)||/(chrome)[ \/]([\w.]+)/.exec(K)||/(iemobile)[\/]([\w.]+)/.exec(K)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(K)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(K)||/(webkit)[ \/]([\w.]+)/.exec(K)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(K)||/(msie) ([\w.]+)/.exec(K)||K.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(K)||K.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(K)||[],t=/(ipad)/.exec(K)||/(ipod)/.exec(K)||/(windows phone)/.exec(K)||/(iphone)/.exec(K)||/(kindle)/.exec(K)||/(android)/.exec(K)||/(windows)/.exec(K)||/(mac)/.exec(K)||/(linux)/.exec(K)||/(cros)/.exec(K)||[],n={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",majorVersion:e[4]||e[2]||"0",platform:t[0]||""},i={};if(n.browser){i[n.browser]=!0;let r=n.majorVersion.split(".");i.version={major:parseInt(n.majorVersion,10),string:n.version},r.length>1&&(i.version.minor=parseInt(r[1],10)),r.length>2&&(i.version.build=parseInt(r[2],10))}if(n.platform&&(i[n.platform]=!0),(i.chrome||i.opr||i.safari)&&(i.webkit=!0),i.rv||i.iemobile){i.rv&&delete i.rv;let r="msie";n.browser=r,i[r]=!0}if(i.edge){delete i.edge;let r="msedge";n.browser=r,i[r]=!0}if(i.opr){let r="opera";n.browser=r,i[r]=!0}if(i.safari&&i.android){let r="android";n.browser=r,i[r]=!0}i.name=n.browser,i.platform=n.platform;for(let r in ee)ee.hasOwnProperty(r)&&delete ee[r];Object.assign(ee,i)}te();var E=ee;class w extends we{static isSupported(){try{let e=E.msedge&&E.version.minor>=15048,t=E.msedge?e:!0;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}}constructor(e,t){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let n=e.url;this._config.reuseRedirectedURL&&e.redirectedURL!=null&&(n=e.redirectedURL);let i=this._seekHandler.getConfig(n,t),r=new self.Headers;if(typeof i.headers=="object"){let g=i.headers;for(let oe in g)g.hasOwnProperty(oe)&&r.append(oe,g[oe])}let c={method:"GET",headers:r,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let g in this._config.headers)r.append(g,this._config.headers[g]);e.cors===!1&&(c.mode="same-origin"),e.withCredentials&&(c.credentials="include"),e.referrerPolicy&&(c.referrerPolicy=e.referrerPolicy),this._status=o.kConnecting,self.fetch(i.url,c).then(g=>{if(this._requestAbort){this._requestAbort=!1,this._status=o.kIdle;return}if(g.ok&&g.status>=200&&g.status<=299){if(g.url!==i.url&&this._onURLRedirect){let V=this._seekHandler.removeURLParameters(g.url);this._onURLRedirect(V)}let oe=g.headers.get("Content-Length");return oe!=null&&(this._contentLength=parseInt(oe),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,g.body.getReader())}else if(this._status=o.kError,this._onError)this._onError(H.HTTP_STATUS_CODE_INVALID,{code:g.status,msg:g.statusText});else throw new N("FetchStreamLoader: Http code invalid, "+g.status+" "+g.statusText)}).catch(g=>{if(this._status=o.kError,this._onError)this._onError(H.EXCEPTION,{code:-1,msg:g.message});else throw g})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=o.kError;let n=H.EARLY_EOF,i={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(n,i);else throw new N(i.msg)}else this._status=o.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1);else{if(this._requestAbort===!0)return this._requestAbort=!1,this._status=o.kComplete,e.cancel();this._status=o.kBuffering;let n=t.value.buffer,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),this._pump(e)}}).catch(t=>{if(t.code===11&&E.msedge)return;this._status=o.kError;let n=0,i=null;if((t.code===19||t.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(n=H.EARLY_EOF,i={code:t.code,msg:"Fetch stream meet Early-EOF"}):(n=H.EXCEPTION,i={code:t.code,msg:t.message}),this._onError)this._onError(n,i);else throw new N(i.msg)})}}var y=w;class L extends we{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="moz-chunked-arraybuffer",e.responseType==="moz-chunked-arraybuffer"}catch(e){return _.w("MozChunkedLoader",e.message),!1}}constructor(e,t){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let n=e.url;this._config.reuseRedirectedURL&&e.redirectedURL!=null&&(n=e.redirectedURL);let i=this._seekHandler.getConfig(n,t);this._requestURL=i.url;let r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="moz-chunked-arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onloadend=this._onLoadEnd.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),typeof i.headers=="object"){let c=i.headers;for(let g in c)c.hasOwnProperty(g)&&r.setRequestHeader(g,c[g])}if(typeof this._config.headers=="object"){let c=this._config.headers;for(let g in c)c.hasOwnProperty(g)&&r.setRequestHeader(g,c[g])}this._status=o.kConnecting,r.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=o.kComplete}_onReadyStateChange(e){let t=e.target;if(t.readyState===2){if(t.responseURL!=null&&t.responseURL!==this._requestURL&&this._onURLRedirect){let n=this._seekHandler.removeURLParameters(t.responseURL);this._onURLRedirect(n)}if(t.status!==0&&(t.status<200||t.status>299))if(this._status=o.kError,this._onError)this._onError(H.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=H.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=H.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new N(n.msg)}}var I=L;class O extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="ms-stream",e.responseType==="ms-stream"}catch(e){return Log.w("MSStreamLoader",e.message),!1}}constructor(e,t){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(e,t){this._internalOpen(e,t,!1)}_internalOpen(e,t,n){this._dataSource=e,n?this._currentRange=t:this._totalRange=t;let i=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?i=this._currentRedirectedURL:e.redirectedURL!=null&&(i=e.redirectedURL));let r=this._seekHandler.getConfig(i,t);this._currentRequestURL=r.url;let c=this._reader=new self.MSStreamReader;c.onprogress=this._msrOnProgress.bind(this),c.onload=this._msrOnLoad.bind(this),c.onerror=this._msrOnError.bind(this);let g=this._xhr=new XMLHttpRequest;if(g.open("GET",r.url,!0),g.responseType="ms-stream",g.onreadystatechange=this._xhrOnReadyStateChange.bind(this),g.onerror=this._xhrOnError.bind(this),e.withCredentials&&(g.withCredentials=!0),typeof r.headers=="object"){let oe=r.headers;for(let V in oe)oe.hasOwnProperty(V)&&g.setRequestHeader(V,oe[V])}if(typeof this._config.headers=="object"){let oe=this._config.headers;for(let V in oe)oe.hasOwnProperty(V)&&g.setRequestHeader(V,oe[V])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,g.send()}abort(){this._internalAbort(),this._status=LoaderStatus.kComplete}_internalAbort(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}_xhrOnReadyStateChange(e){let t=e.target;if(t.readyState===2)if(t.status>=200&&t.status<=299){if(this._status=LoaderStatus.kBuffering,t.responseURL!=null){let i=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&i!==this._currentRedirectedURL&&(this._currentRedirectedURL=i,this._onURLRedirect&&this._onURLRedirect(i))}let n=t.getResponseHeader("Content-Length");if(n!=null&&this._contentLength==null){let i=parseInt(n);i>0&&(this._contentLength=i,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+t.status+" "+t.statusText);else if(t.readyState===3&&t.status>=200&&t.status<=299){this._status=LoaderStatus.kBuffering;let n=t.response;this._reader.readAsArrayBuffer(n)}}_xhrOnError(e){this._status=LoaderStatus.kError;let t=LoaderErrors.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type};if(this._onError)this._onError(t,n);else throw new RuntimeException(n.msg)}_msrOnProgress(e){let n=e.target.result;if(n==null){this._doReconnectIfNeeded();return}let i=n.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=n.byteLength;let r=this._totalRange.from+this._receivedLength;this._receivedLength+=i.byteLength,this._onDataArrival&&this._onDataArrival(i,r,this._receivedLength),n.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${r+i.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let e={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,e,!0)}}_msrOnLoad(e){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(e){this._status=LoaderStatus.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength<this._contentLength?(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:"MSStream meet Early-Eof"}):(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new RuntimeException(n.msg)}}var T=null;class A extends we{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer",e.responseType==="arraybuffer"}catch(e){return _.w("RangeLoader",e.message),!1}}constructor(e,t){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=e,this._config=t,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new ue,this._requestAbort=!1,this._waitForTotalLength=!1,this._totalLengthReceived=!1,this._currentRequestURL=null,this._currentRedirectedURL=null,this._currentRequestRange=null,this._totalLength=null,this._contentLength=null,this._receivedLength=0,this._lastTimeLoaded=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}get currentSpeed(){return this._speedSampler.lastSecondKBps}open(e,t){this._dataSource=e,this._range=t,this._status=o.kConnecting;let n=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(n=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!n?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let e=this._currentChunkSizeKB*1024,t=this._range.from+this._receivedLength,n=t+e;this._contentLength!=null&&n-this._range.from>=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(e,t){this._lastTimeLoaded=0;let n=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?n=this._currentRedirectedURL:e.redirectedURL!=null&&(n=e.redirectedURL));let i=this._seekHandler.getConfig(n,t);this._currentRequestURL=i.url;let r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onload=this._onLoad.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),typeof i.headers=="object"){let c=i.headers;for(let g in c)c.hasOwnProperty(g)&&r.setRequestHeader(g,c[g])}if(typeof this._config.headers=="object"){let c=this._config.headers;for(let g in c)c.hasOwnProperty(g)&&r.setRequestHeader(g,c[g])}r.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=o.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(e){let t=e.target;if(t.readyState===2){if(t.responseURL!=null){let n=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=o.kBuffering}else if(this._status=o.kError,this._onError)this._onError(H.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=H.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=H.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 ie extends we{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(e){return!1}}constructor(){super("websocket-loader"),this.TAG="WebSocketLoader",this._needStash=!0,this._ws=null,this._requestAbort=!1,this._receivedLength=0}destroy(){this._ws&&this.abort(),super.destroy()}open(e){try{let t=this._ws=new self.WebSocket(e.url);t.binaryType="arraybuffer",t.onopen=this._onWebSocketOpen.bind(this),t.onclose=this._onWebSocketClose.bind(this),t.onmessage=this._onWebSocketMessage.bind(this),t.onerror=this._onWebSocketError.bind(this),this._status=o.kConnecting}catch(t){this._status=o.kError;let n={code:t.code,msg:t.message};if(this._onError)this._onError(H.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(H.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(H.EXCEPTION,t);else throw new N(t.msg)}}var he=ie;class Ie{constructor(e){this._zeroStart=e||!1}getConfig(e,t){let n={};if(t.from!==0||t.to!==-1){let i;t.to!==-1?i=`bytes=${t.from.toString()}-${t.to.toString()}`:i=`bytes=${t.from.toString()}-`,n.Range=i}else this._zeroStart&&(n.Range="bytes=0-");return{url:e,headers:n}}removeURLParameters(e){return e}}var Se=Ie;class Oe{constructor(e,t){this._startName=e,this._endName=t}getConfig(e,t){let n=e;if(t.from!==0||t.to!==-1){let i=!0;n.indexOf("?")===-1&&(n+="?",i=!1),i&&(n+="&"),n+=`${this._startName}=${t.from.toString()}`,t.to!==-1&&(n+=`&${this._endName}=${t.to.toString()}`)}return{url:n,headers:{}}}removeURLParameters(e){let t=e.split("?")[0],n,i=e.indexOf("?");i!==-1&&(n=e.substring(i+1));let r="";if(n!=null&&n.length>0){let c=n.split("&");for(let g=0;g<c.length;g++){let oe=c[g].split("="),V=g>0;oe[0]!==this._startName&&oe[0]!==this._endName&&(V&&(r+="&"),r+=c[g])}}return r.length===0?t:t+"?"+r}}var Ae=Oe;class F{constructor(e,t,n){this.TAG="IOController",this._config=t,this._extraData=n,this._stashInitialSize=1024*384,t.stashInitialSize!=null&&t.stashInitialSize>0&&(this._stashInitialSize=t.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,t.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new ue,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 Se(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new Ae(t,n)}else if(e.seekType==="custom"){if(typeof e.customSeekHandler!="function")throw new re("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new re(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=he;else if(y.isSupported())this._loaderClass=y;else if(I.isSupported())this._loaderClass=I;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 re("Url must be a non-empty string!");this._dataSource.url=e}_expandBuffer(e){let t=this._stashSize;for(;t+1024*1024*1<e;)t*=2;if(t+=1024*1024*1,t===this._bufferSize)return;let n=new ArrayBuffer(t);if(this._stashUsed>0){let i=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,t).set(i,0)}this._stashBuffer=n,this._bufferSize=t}_normalizeSpeed(e){let t=this._speedNormalizeList,n=t.length-1,i=0,r=0,c=n;if(e<t[0])return t[0];for(;r<=c;){if(i=r+Math.floor((c-r)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?r=i+1:c=i-1}}_adjustStashSize(e){let t=0;this._config.isLive||e<512?t=e:e>=512&&e<=1024?t=Math.floor(e*1.5):t=e*2,t>8192&&(t=8192);let n=t*1024+1024*1024*1;this._bufferSize<n&&this._expandBuffer(n),this._stashSize=t*1024}_dispatchChunks(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)}_onURLRedirect(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)}_onContentLengthKnown(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)}_onLoaderChunkArrival(e,t,n){if(!this._onDataArrival)throw new 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),g=this._dispatchChunks(c,this._stashByteStart);if(g<c.byteLength){if(g>0){let oe=new Uint8Array(c,g);r.set(oe,0),this._stashUsed=oe.byteLength,this._stashByteStart+=g}}else this._stashUsed=0,this._stashByteStart+=g;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),r=new Uint8Array(this._stashBuffer,0,this._bufferSize)),r.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let c=this._dispatchChunks(e,t);if(c<e.byteLength){let g=e.byteLength-c;g>this._bufferSize&&(this._expandBuffer(g),r=new Uint8Array(this._stashBuffer,0,this._bufferSize)),r.set(new Uint8Array(e,c),0),this._stashUsed+=g,this._stashByteStart=t+c}}}else if(this._stashUsed===0){let r=this._dispatchChunks(e,t);if(r<e.byteLength){let c=e.byteLength-r;c>this._bufferSize&&this._expandBuffer(c),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,r),0),this._stashUsed+=c,this._stashByteStart=t+r}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let r=new Uint8Array(this._stashBuffer,0,this._bufferSize);r.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let c=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(c<this._stashUsed&&c>0){let g=new Uint8Array(this._stashBuffer,c);r.set(g,0)}this._stashUsed-=c,this._stashByteStart+=c}}_flushStashBuffer(e){if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),i=t.byteLength-n;if(n<t.byteLength)if(e)_.w(this.TAG,`${i} bytes unconsumed data remain when flush buffer, dropped`);else{if(n>0){let r=new Uint8Array(this._stashBuffer,0,this._bufferSize),c=new Uint8Array(t,n);r.set(c,0),this._stashUsed=c.byteLength,this._stashByteStart+=n}return 0}return this._stashUsed=0,this._stashByteStart=0,i}return 0}_onLoaderComplete(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(e,t){switch(_.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=H.UNRECOVERABLE_EARLY_EOF),e){case H.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=H.UNRECOVERABLE_EARLY_EOF;break}case H.UNRECOVERABLE_EARLY_EOF:case H.CONNECTING_TIMEOUT:case H.HTTP_STATUS_CODE_INVALID:case H.EXCEPTION:break}if(this._onError)this._onError(e,t);else throw new N("IOException: "+t.msg)}}var Ge=F;const We={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function Z(){return Object.assign({},We)}class Y{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let e=new Ge({},Z()),t=e.loaderType;return e.destroy(),t=="fetch-stream-loader"||t=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let e=new Ge({},Z()),t=e.loaderType;return e.destroy(),t}static supportNativeMediaPlayback(e){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 Be=Y,se={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};class ae{static get forceGlobalTag(){return _.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){_.FORCE_GLOBAL_TAG=e,ae._notifyChange()}static get globalTag(){return _.GLOBAL_TAG}static set globalTag(e){_.GLOBAL_TAG=e,ae._notifyChange()}static get enableAll(){return _.ENABLE_VERBOSE&&_.ENABLE_DEBUG&&_.ENABLE_INFO&&_.ENABLE_WARN&&_.ENABLE_ERROR}static set enableAll(e){_.ENABLE_VERBOSE=e,_.ENABLE_DEBUG=e,_.ENABLE_INFO=e,_.ENABLE_WARN=e,_.ENABLE_ERROR=e,ae._notifyChange()}static get enableDebug(){return _.ENABLE_DEBUG}static set enableDebug(e){_.ENABLE_DEBUG=e,ae._notifyChange()}static get enableVerbose(){return _.ENABLE_VERBOSE}static set enableVerbose(e){_.ENABLE_VERBOSE=e,ae._notifyChange()}static get enableInfo(){return _.ENABLE_INFO}static set enableInfo(e){_.ENABLE_INFO=e,ae._notifyChange()}static get enableWarn(){return _.ENABLE_WARN}static set enableWarn(e){_.ENABLE_WARN=e,ae._notifyChange()}static get enableError(){return _.ENABLE_ERROR}static set enableError(e){_.ENABLE_ERROR=e,ae._notifyChange()}static getConfig(){return{globalTag:_.GLOBAL_TAG,forceGlobalTag:_.FORCE_GLOBAL_TAG,enableVerbose:_.ENABLE_VERBOSE,enableDebug:_.ENABLE_DEBUG,enableInfo:_.ENABLE_INFO,enableWarn:_.ENABLE_WARN,enableError:_.ENABLE_ERROR,enableCallback:_.ENABLE_CALLBACK}}static applyConfig(e){_.GLOBAL_TAG=e.globalTag,_.FORCE_GLOBAL_TAG=e.forceGlobalTag,_.ENABLE_VERBOSE=e.enableVerbose,_.ENABLE_DEBUG=e.enableDebug,_.ENABLE_INFO=e.enableInfo,_.ENABLE_WARN=e.enableWarn,_.ENABLE_ERROR=e.enableError,_.ENABLE_CALLBACK=e.enableCallback}static _notifyChange(){let e=ae.emitter;if(e.listenerCount("change")>0){let t=ae.getConfig();e.emit("change",t)}}static registerListener(e){ae.emitter.addListener("change",e)}static removeListener(e){ae.emitter.removeListener("change",e)}static addLogListener(e){_.emitter.addListener("log",e),_.emitter.listenerCount("log")>0&&(_.ENABLE_CALLBACK=!0,ae._notifyChange())}static removeLogListener(e){_.emitter.removeListener("log",e),_.emitter.listenerCount("log")===0&&(_.ENABLE_CALLBACK=!1,ae._notifyChange())}}ae.emitter=new(P());var _e=ae;class Ue{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let e=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,t=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&e&&t}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(e){if(this.keyframesIndex==null)return null;let t=this.keyframesIndex,n=this._search(t.times,e);return{index:n,milliseconds:t.times[n],fileposition:t.filepositions[n]}}_search(e,t){let n=0,i=e.length-1,r=0,c=0,g=i;for(t<e[0]&&(n=0,c=g+1);c<=g;)if(r=c+Math.floor((g-c)/2),r===i||t>=e[r]&&t<e[r+1]){n=r;break}else e[r]<t?c=r+1:g=r-1;return n}}var $e=Ue;function je(K,e,t){let n=K;if(e+t<n.length){for(;t--;)if((n[++e]&192)!==128)return!1;return!0}else return!1}function Xe(K){let e=[],t=K,n=0,i=K.length;for(;n<i;){if(t[n]<128){e.push(String.fromCharCode(t[n])),++n;continue}else if(!(t[n]<192)){if(t[n]<224){if(je(t,n,1)){let r=(t[n]&31)<<6|t[n+1]&63;if(r>=128){e.push(String.fromCharCode(r&65535)),n+=2;continue}}}else if(t[n]<240){if(je(t,n,2)){let r=(t[n]&15)<<12|(t[n+1]&63)<<6|t[n+2]&63;if(r>=2048&&(r&63488)!==55296){e.push(String.fromCharCode(r&65535)),n+=3;continue}}}else if(t[n]<248&&je(t,n,3)){let r=(t[n]&7)<<18|(t[n+1]&63)<<12|(t[n+2]&63)<<6|t[n+3]&63;if(r>65536&&r<1114112){r-=65536,e.push(String.fromCharCode(r>>>10|55296)),e.push(String.fromCharCode(r&1023|56320)),n+=4;continue}}}e.push("\uFFFD"),++n}return e.join("")}var nt=Xe;let Me=function(){let K=new ArrayBuffer(2);return new DataView(K).setInt16(0,256,!0),new Int16Array(K)[0]===256}();class He{static parseScriptData(e,t,n){let i={};try{let r=He.parseValue(e,t,n),c=He.parseValue(e,t+r.size,n-r.size);i[r.data]=c.data}catch(r){_.e("AMF",r.toString())}return i}static parseObject(e,t,n){if(n<3)throw new 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,!Me),c;return r>0?c=nt(new Uint8Array(e,t+2,r)):c="",{data:c,size:2+r}}static parseLongString(e,t,n){if(n<4)throw new q("Data not enough when parse LongString");let r=new DataView(e,t,n).getUint32(0,!Me),c;return r>0?c=nt(new Uint8Array(e,t+4,r)):c="",{data:c,size:4+r}}static parseDate(e,t,n){if(n<10)throw new q("Data size invalid when parse Date");let i=new DataView(e,t,n),r=i.getFloat64(0,!Me),c=i.getInt16(8,!Me);return r+=c*60*1e3,{data:new Date(r),size:10}}static parseValue(e,t,n){if(n<1)throw new q("Data not enough when parse Value");let i=new DataView(e,t,n),r=1,c=i.getUint8(0),g,oe=!1;try{switch(c){case 0:g=i.getFloat64(1,!Me),r+=8;break;case 1:{g=!!i.getUint8(1),r+=1;break}case 2:{let V=He.parseString(e,t+1,n-1);g=V.data,r+=V.size;break}case 3:{g={};let V=0;for((i.getUint32(n-4,!Me)&16777215)===9&&(V=3);r<n-4;){let fe=He.parseObject(e,t+r,n-r-V);if(fe.objectEnd)break;g[fe.data.name]=fe.data.value,r+=fe.size}r<=n-3&&(i.getUint32(r-1,!Me)&16777215)===9&&(r+=3);break}case 8:{g={},r+=4;let V=0;for((i.getUint32(n-4,!Me)&16777215)===9&&(V=3);r<n-8;){let fe=He.parseVariable(e,t+r,n-r-V);if(fe.objectEnd)break;g[fe.data.name]=fe.data.value,r+=fe.size}r<=n-3&&(i.getUint32(r-1,!Me)&16777215)===9&&(r+=3);break}case 9:g=void 0,r=1,oe=!0;break;case 10:{g=[];let V=i.getUint32(1,!Me);r+=4;for(let fe=0;fe<V;fe++){let Ve=He.parseValue(e,t+r,n-r);g.push(Ve.data),r+=Ve.size}break}case 11:{let V=He.parseDate(e,t+1,n-1);g=V.data,r+=V.size;break}case 12:{let V=He.parseString(e,t+1,n-1);g=V.data,r+=V.size;break}default:r=n,_.w("AMF","Unsupported AMF value type "+c)}}catch(V){_.e("AMF",V.toString())}return{data:g,size:r,objectEnd:oe}}}var Qe=He;class Je{constructor(e){this.TAG="ExpGolomb",this._buffer=e,this._buffer_index=0,this._total_bytes=e.byteLength,this._total_bits=e.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let e=this._total_bytes-this._buffer_index;if(e<=0)throw new 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 re("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let c=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,c}let t=this._current_word_bits_left?this._current_word:0;t=t>>>32-this._current_word_bits_left;let n=e-this._current_word_bits_left;this._fillCurrentWord();let i=Math.min(n,this._current_word_bits_left),r=this._current_word>>>32-i;return this._current_word<<=i,this._current_word_bits_left-=i,t=t<<i|r,t}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let e;for(e=0;e<this._current_word_bits_left;e++)if(this._current_word&2147483648>>>e)return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}readUEG(){let e=this._skipLeadingZero();return this.readBits(e+1)-1}readSEG(){let e=this.readUEG();return e&1?e+1>>>1:-1*(e>>>1)}}var et=Je;class B{static _ebsp2rbsp(e){let t=e,n=t.byteLength,i=new Uint8Array(n),r=0;for(let c=0;c<n;c++)c>=2&&t[c]===3&&t[c-1]===0&&t[c-2]===0||(i[r]=t[c],r++);return new Uint8Array(i.buffer,0,r)}static parseSPS(e){let t=B._ebsp2rbsp(e),n=new et(t);n.readByte();let i=n.readByte();n.readByte();let r=n.readByte();n.readUEG();let c=B.getProfileString(i),g=B.getLevelString(r),oe=1,V=420,fe=[0,420,422,444],Ve=8;if((i===100||i===110||i===122||i===244||i===44||i===83||i===86||i===118||i===128||i===138||i===144)&&(oe=n.readUEG(),oe===3&&n.readBits(1),oe<=3&&(V=fe[oe]),Ve=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let Ke=oe!==3?8:12;for(let Pe=0;Pe<Ke;Pe++)n.readBool()&&(Pe<6?B._skipScalingList(n,16):B._skipScalingList(n,64))}n.readUEG();let ze=n.readUEG();if(ze===0)n.readUEG();else if(ze===1){n.readBits(1),n.readSEG(),n.readSEG();let Ke=n.readUEG();for(let Pe=0;Pe<Ke;Pe++)n.readSEG()}let le=n.readUEG();n.readBits(1);let Ne=n.readUEG(),me=n.readUEG(),G=n.readBits(1);G===0&&n.readBits(1),n.readBits(1);let ne=0,ye=0,Le=0,Ye=0;n.readBool()&&(ne=n.readUEG(),ye=n.readUEG(),Le=n.readUEG(),Ye=n.readUEG());let Et=1,ve=1,pe=0,p=!0,v=0,D=0;if(n.readBool()){if(n.readBool()){let Ke=n.readByte(),Pe=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],rt=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Ke>0&&Ke<16?(Et=Pe[Ke-1],ve=rt[Ke-1]):Ke===255&&(Et=n.readByte()<<8|n.readByte(),ve=n.readByte()<<8|n.readByte())}if(n.readBool()&&n.readBool(),n.readBool()&&(n.readBits(4),n.readBool()&&n.readBits(24)),n.readBool()&&(n.readUEG(),n.readUEG()),n.readBool()){let Ke=n.readBits(32),Pe=n.readBits(32);p=n.readBool(),v=Pe,D=Ke*2,pe=v/D}}let k=1;(Et!==1||ve!==1)&&(k=Et/ve);let X=0,z=0;if(oe===0)X=1,z=2-G;else{let Ke=oe===3?1:2,Pe=oe===1?2:1;X=Ke,z=Pe*(2-G)}let be=(Ne+1)*16,Ze=(2-G)*((me+1)*16);be-=(ne+ye)*X,Ze-=(Le+Ye)*z;let Te=Math.ceil(be*k);return n.destroy(),n=null,{profile_string:c,level_string:g,bit_depth:Ve,ref_frames:le,chroma_format:V,chroma_format_string:B.getChromaFormatString(V),frame_rate:{fixed:p,fps:pe,fps_den:D,fps_num:v},sar_ratio:{width:Et,height:ve},codec_size:{width:be,height:Ze},present_size:{width:Te,height:Ze}}}static _skipScalingList(e,t){let n=8,i=8,r=0;for(let c=0;c<t;c++)i!==0&&(r=e.readSEG(),i=(n+r+256)%256),n=i===0?n:i}static getProfileString(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(e){return(e/10).toFixed(1)}static getChromaFormatString(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var b=B,h={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function f(K){return K>>>8&255|(K&255)<<8}function $(K){return(K&4278190080)>>>24|(K&16711680)>>>8|(K&65280)<<8|(K&255)<<24}function d(K,e){return K[e]<<24|K[e+1]<<16|K[e+2]<<8|K[e+3]}class m{constructor(e,t){this.TAG="FLVDemuxer",this._config=t,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=e.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=e.hasAudioTrack,this._hasVideo=e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new $e,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let n=new ArrayBuffer(2);return new DataView(n).setInt16(0,256,!0),new Int16Array(n)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(e){let t=new Uint8Array(e),n={match:!1};if(t[0]!==70||t[1]!==76||t[2]!==86||t[3]!==1)return n;let i=(t[4]&4)>>>2!==0,r=(t[4]&1)!==0,c=d(t,5);return c<9?n:{match:!0,consumed:c,dataOffset:c,hasAudioTrack:i,hasVideoTrack:r}}bindDataSource(e){return e.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(e){this._onTrackMetadata=e}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(e){this._onMediaInfo=e}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(e){this._onMetaDataArrived=e}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(e){this._onScriptDataArrived=e}get onError(){return this._onError}set onError(e){this._onError=e}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(e){this._onDataAvailable=e}get timestampBase(){return this._timestampBase}set timestampBase(e){this._timestampBase=e}get overridedDuration(){return this._duration}set overridedDuration(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e}set overridedHasAudio(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e}set overridedHasVideo(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e}resetMediaInfo(){this._mediaInfo=new $e}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(e,t){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new 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),g=r.getUint32(0,!i)&16777215;if(n+11+g+4>e.byteLength)break;if(c!==8&&c!==9&&c!==18){_.w(this.TAG,`Unsupported tag type ${c}, skipped`),n+=11+g+4;continue}let oe=r.getUint8(4),V=r.getUint8(5),fe=r.getUint8(6),Ve=r.getUint8(7),ze=fe|V<<8|oe<<16|Ve<<24;(r.getUint32(7,!i)&16777215)!==0&&_.w(this.TAG,"Meet tag which has StreamID != 0!");let Ne=n+11;switch(c){case 8:this._parseAudioData(e,Ne,g,ze);break;case 9:this._parseVideoData(e,Ne,g,ze,t+n);break;case 18:this._parseScriptData(e,Ne,g);break}let me=r.getUint32(11+g,!i);me!==11+g&&_.w(this.TAG,`Invalid PrevTagSize ${me}`),n+=11+g+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),n}_parseScriptData(e,t,n){let i=Qe.parseScriptData(e,t,n);if(i.hasOwnProperty("onMetaData")){if(i.onMetaData==null||typeof i.onMetaData!="object"){_.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&_.w(this.TAG,"Found another onMetaData tag!"),this._metadata=i;let r=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},r)),typeof r.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=r.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof r.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=r.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof r.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=r.audiodatarate),typeof r.videodatarate=="number"&&(this._mediaInfo.videoDataRate=r.videodatarate),typeof r.width=="number"&&(this._mediaInfo.width=r.width),typeof r.height=="number"&&(this._mediaInfo.height=r.height),typeof r.duration=="number"){if(!this._durationOverrided){let c=Math.floor(r.duration*this._timescale);this._duration=c,this._mediaInfo.duration=c}}else this._mediaInfo.duration=0;if(typeof r.framerate=="number"){let c=Math.floor(r.framerate*1e3);if(c>0){let g=c/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=g,this._referenceFrameRate.fps_num=c,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=g}}if(typeof r.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let c=r.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(c),r.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=r,_.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(i).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},i))}_parseKeyframesIndex(e){let t=[],n=[];for(let i=1;i<e.times.length;i++){let r=this._timestampBase+Math.floor(e.times[i]*1e3);t.push(r),n.push(e.filepositions[i])}return{times:t,filepositions:n}}_parseAudioData(e,t,n,i){if(n<=1){_.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let r=this._littleEndian,g=new DataView(e,t,n).getUint8(0),oe=g>>>4;if(oe!==2&&oe!==10){this._onError(h.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+oe);return}let V=0,fe=(g&12)>>>2;if(fe>=0&&fe<=4)V=this._flvSoundRateTable[fe];else{this._onError(h.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+fe);return}let Ve=(g&2)>>>1,ze=g&1,le=this._audioMetadata,Ne=this._audioTrack;if(le||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),le=this._audioMetadata={},le.type="audio",le.id=Ne.id,le.timescale=this._timescale,le.duration=this._duration,le.audioSampleRate=V,le.channelCount=ze===0?1:2),oe===10){let me=this._parseAACAudioData(e,t+1,n-1);if(me==null)return;if(me.packetType===0){le.config&&_.w(this.TAG,"Found another AudioSpecificConfig!");let G=me.data;le.audioSampleRate=G.samplingRate,le.channelCount=G.channelCount,le.codec=G.codec,le.originalCodec=G.originalCodec,le.config=G.config,le.refSampleDuration=1024/le.audioSampleRate*le.timescale,_.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",le);let ne=this._mediaInfo;ne.audioCodec=le.originalCodec,ne.audioSampleRate=le.audioSampleRate,ne.audioChannelCount=le.channelCount,ne.hasVideo?ne.videoCodec!=null&&(ne.mimeType='video/x-flv; codecs="'+ne.videoCodec+","+ne.audioCodec+'"'):ne.mimeType='video/x-flv; codecs="'+ne.audioCodec+'"',ne.isComplete()&&this._onMediaInfo(ne)}else if(me.packetType===1){let G=this._timestampBase+i,ne={unit:me.data,length:me.data.byteLength,dts:G,pts:G};Ne.samples.push(ne),Ne.length+=me.data.length}else _.e(this.TAG,`Flv: Unsupported AAC data type ${me.packetType}`)}else if(oe===2){if(!le.codec){let ye=this._parseMP3AudioData(e,t+1,n-1,!0);if(ye==null)return;le.audioSampleRate=ye.samplingRate,le.channelCount=ye.channelCount,le.codec=ye.codec,le.originalCodec=ye.originalCodec,le.refSampleDuration=1152/le.audioSampleRate*le.timescale,_.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",le);let Le=this._mediaInfo;Le.audioCodec=le.codec,Le.audioSampleRate=le.audioSampleRate,Le.audioChannelCount=le.channelCount,Le.audioDataRate=ye.bitRate,Le.hasVideo?Le.videoCodec!=null&&(Le.mimeType='video/x-flv; codecs="'+Le.videoCodec+","+Le.audioCodec+'"'):Le.mimeType='video/x-flv; codecs="'+Le.audioCodec+'"',Le.isComplete()&&this._onMediaInfo(Le)}let me=this._parseMP3AudioData(e,t+1,n-1,!1);if(me==null)return;let G=this._timestampBase+i,ne={unit:me,length:me.byteLength,dts:G,pts:G};Ne.samples.push(ne),Ne.length+=me.length}}_parseAACAudioData(e,t,n){if(n<=1){_.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let i={},r=new Uint8Array(e,t,n);return i.packetType=r[0],r[0]===0?i.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):i.data=r.subarray(1),i}_parseAACAudioSpecificConfig(e,t,n){let i=new Uint8Array(e,t,n),r=null,c=0,g=0,oe=null,V=0,fe=null;if(c=g=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 Ve=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&&(fe=(i[1]&7)<<1|i[2]>>>7,oe=(i[2]&124)>>>2);let le=self.navigator.userAgent.toLowerCase();return le.indexOf("firefox")!==-1?V>=6?(c=5,r=new Array(4),fe=V-3):(c=2,r=new Array(2),fe=V):le.indexOf("android")!==-1?(c=2,r=new Array(2),fe=V):(c=5,fe=V,r=new Array(4),V>=6?fe=V-3:ze===1&&(c=2,r=new Array(2),fe=V)),r[0]=c<<3,r[0]|=(V&15)>>>1,r[1]=(V&15)<<7,r[1]|=(ze&15)<<3,c===5&&(r[1]|=(fe&15)>>>1,r[2]=(fe&1)<<7,r[2]|=8,r[3]=0),{config:r,samplingRate:Ve,channelCount:ze,codec:"mp4a.40."+c,originalCodec:"mp4a.40."+g}}_parseMP3AudioData(e,t,n,i){if(n<4){_.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let r=this._littleEndian,c=new Uint8Array(e,t,n),g=null;if(i){if(c[0]!==255)return;let oe=c[1]>>>3&3,V=(c[1]&6)>>1,fe=(c[2]&240)>>>4,Ve=(c[2]&12)>>>2,le=(c[3]>>>6&3)!==3?2:1,Ne=0,me=0,G=34,ne="mp3";switch(oe){case 0:Ne=this._mpegAudioV25SampleRateTable[Ve];break;case 2:Ne=this._mpegAudioV20SampleRateTable[Ve];break;case 3:Ne=this._mpegAudioV10SampleRateTable[Ve];break}switch(V){case 1:G=34,fe<this._mpegAudioL3BitRateTable.length&&(me=this._mpegAudioL3BitRateTable[fe]);break;case 2:G=33,fe<this._mpegAudioL2BitRateTable.length&&(me=this._mpegAudioL2BitRateTable[fe]);break;case 3:G=32,fe<this._mpegAudioL1BitRateTable.length&&(me=this._mpegAudioL1BitRateTable[fe]);break}g={bitRate:me,samplingRate:Ne,channelCount:le,codec:ne,originalCodec:ne}}else g=c;return g}_parseVideoData(e,t,n,i,r){if(n<=1){_.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let c=new Uint8Array(e,t,n)[0],g=(c&240)>>>4,oe=c&15;if(oe!==7){this._onError(h.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${oe}`);return}this._parseAVCVideoPacket(e,t+1,n-1,i,r,g)}_parseAVCVideoPacket(e,t,n,i,r,c){if(n<4){_.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let g=this._littleEndian,oe=new DataView(e,t,n),V=oe.getUint8(0),Ve=(oe.getUint32(0,!g)&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,Ve);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,g=new DataView(e,t,n);i?typeof i.avcc!="undefined"&&_.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),i=this._videoMetadata={},i.type="video",i.id=r.id,i.timescale=this._timescale,i.duration=this._duration);let oe=g.getUint8(0),V=g.getUint8(1),fe=g.getUint8(2),Ve=g.getUint8(3);if(oe!==1||V===0){this._onError(h.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(g.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(h.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let ze=g.getUint8(5)&31;if(ze===0){this._onError(h.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else ze>1&&_.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${ze}`);let le=6;for(let me=0;me<ze;me++){let G=g.getUint16(le,!c);if(le+=2,G===0)continue;let ne=new Uint8Array(e,t+le,G);le+=G;let ye=b.parseSPS(ne);if(me!==0)continue;i.codecWidth=ye.codec_size.width,i.codecHeight=ye.codec_size.height,i.presentWidth=ye.present_size.width,i.presentHeight=ye.present_size.height,i.profile=ye.profile_string,i.level=ye.level_string,i.bitDepth=ye.bit_depth,i.chromaFormat=ye.chroma_format,i.sarRatio=ye.sar_ratio,i.frameRate=ye.frame_rate,(ye.frame_rate.fixed===!1||ye.frame_rate.fps_num===0||ye.frame_rate.fps_den===0)&&(i.frameRate=this._referenceFrameRate);let Le=i.frameRate.fps_den,Ye=i.frameRate.fps_num;i.refSampleDuration=i.timescale*(Le/Ye);let Mt=ne.subarray(1,4),Et="avc1.";for(let pe=0;pe<3;pe++){let p=Mt[pe].toString(16);p.length<2&&(p="0"+p),Et+=p}i.codec=Et;let ve=this._mediaInfo;ve.width=i.codecWidth,ve.height=i.codecHeight,ve.fps=i.frameRate.fps,ve.profile=i.profile,ve.level=i.level,ve.refFrames=ye.ref_frames,ve.chromaFormat=ye.chroma_format_string,ve.sarNum=i.sarRatio.width,ve.sarDen=i.sarRatio.height,ve.videoCodec=Et,ve.hasAudio?ve.audioCodec!=null&&(ve.mimeType='video/x-flv; codecs="'+ve.videoCodec+","+ve.audioCodec+'"'):ve.mimeType='video/x-flv; codecs="'+ve.videoCodec+'"',ve.isComplete()&&this._onMediaInfo(ve)}let Ne=g.getUint8(le);if(Ne===0){this._onError(h.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Ne>1&&_.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${Ne}`);le++;for(let me=0;me<Ne;me++){let G=g.getUint16(le,!c);le+=2,G!==0&&(le+=G)}i.avcc=new Uint8Array(n),i.avcc.set(new Uint8Array(e,t,n),0),_.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",i)}_parseAVCVideoData(e,t,n,i,r,c,g){let oe=this._littleEndian,V=new DataView(e,t,n),fe=[],Ve=0,ze=0;const le=this._naluLengthSize;let Ne=this._timestampBase+i,me=c===1;for(;ze<n;){if(ze+4>=n){_.w(this.TAG,`Malformed Nalu near timestamp ${Ne}, offset = ${ze}, dataSize = ${n}`);break}let G=V.getUint32(ze,!oe);if(le===3&&(G>>>=8),G>n-le){_.w(this.TAG,`Malformed Nalus near timestamp ${Ne}, NaluSize > DataSize!`);return}let ne=V.getUint8(ze+le)&31;ne===5&&(me=!0);let ye=new Uint8Array(e,t+ze,le+G),Le={type:ne,data:ye};fe.push(Le),Ve+=ye.byteLength,ze+=le+G}if(fe.length){let G=this._videoTrack,ne={units:fe,length:Ve,isKeyframe:me,dts:Ne,cts:g,pts:Ne+g};me&&(ne.fileposition=r),G.samples.push(ne),G.length+=Ve}}}var x=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 g=0;g<r;g++)t+=i[g].byteLength;n=new Uint8Array(t),n[0]=t>>>24&255,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n.set(e,4);let c=8;for(let g=0;g<r;g++)n.set(i[g],c),c+=i[g].byteLength;return n}static generateInitSegment(e){let t=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),g=l.trun(e,c.byteLength+16+16+8+16+8+8);return l.box(l.types.traf,i,r,g,c)}static sdtp(e){let t=e.samples||[],n=t.length,i=new Uint8Array(4+n);for(let r=0;r<n;r++){let c=t[r].flags;i[r+4]=c.isLeading<<6|c.dependsOn<<4|c.isDependedOn<<2|c.hasRedundancy}return 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 g=0;g<i;g++){let oe=n[g].duration,V=n[g].size,fe=n[g].flags,Ve=n[g].cts;c.set([oe>>>24&255,oe>>>16&255,oe>>>8&255,oe&255,V>>>24&255,V>>>16&255,V>>>8&255,V&255,fe.isLeading<<2|fe.dependsOn,fe.isDependedOn<<6|fe.hasRedundancy<<4|fe.isNonSync,0,0,Ve>>>24&255,Ve>>>16&255,Ve>>>8&255,Ve&255],12+16*g)}return l.box(l.types.trun,c)}static mdat(e){return l.box(l.types.mdat,e)}}l.init();var R=l;class W{static getSilentFrame(e,t){if(e==="mp4a.40.2"){if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}var de=W;class De{constructor(e,t,n,i,r){this.dts=e,this.pts=t,this.duration=n,this.originalDts=i,this.isSyncPoint=r,this.fileposition=null}}class Fe{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(e){e.isSyncPoint=!0,this.syncPoints.push(e)}}class ge{constructor(){this._list=[]}clear(){this._list=[]}appendArray(e){let t=this._list;e.length!==0&&(t.length>0&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))}getLastSyncPointBeforeDts(e){if(this._list.length==0)return null;let t=this._list,n=0,i=t.length-1,r=0,c=0,g=i;for(e<t[0].dts&&(n=0,c=g+1);c<=g;)if(r=c+Math.floor((g-c)/2),r===i||e>=t[r].dts&&e<t[r+1].dts){n=r;break}else t[r].dts<e?c=r+1:g=r-1;return this._list[n]}}class ke{constructor(e){this._type=e,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return this._list.length===0}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(e){let t=this._list;if(t.length===0)return-2;let n=t.length-1,i=0,r=0,c=n,g=0;if(e<t[0].originalBeginDts)return g=-1,g;for(;r<=c;)if(i=r+Math.floor((c-r)/2),i===n||e>t[i].lastSample.originalDts&&e<t[i+1].originalBeginDts){g=i;break}else t[i].originalBeginDts<e?r=i+1:c=i-1;return g}_searchNearestSegmentAfter(e){return this._searchNearestSegmentBefore(e)+1}append(e){let t=this._list,n=e,i=this._lastAppendLocation,r=0;i!==-1&&i<t.length&&n.originalBeginDts>=t[i].lastSample.originalDts&&(i===t.length-1||i<t.length-1&&n.originalBeginDts<t[i+1].originalBeginDts)?r=i+1:t.length>0&&(r=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=r,this._list.splice(r,0,n)}getLastSegmentBefore(e){let t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null}getLastSampleBefore(e){let t=this.getLastSegmentBefore(e);return t!=null?t.lastSample:null}getLastSyncPointBefore(e){let t=this._searchNearestSegmentBefore(e),n=this._list[t].syncPoints;for(;n.length===0&&t>0;)t--,n=this._list[t].syncPoints;return n.length>0?n[n.length-1]:null}}class Ce{constructor(e){this.TAG="MP4Remuxer",this._config=e,this._isLive=e.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new ke("audio"),this._videoSegmentInfoList=new ke("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(E.chrome&&(E.version.major<50||E.version.major===50&&E.version.build<2661)),this._fillSilentAfterSeek=E.msedge||E.msie,this._mp3UseMpegAudio=!E.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(e){this._onInitSegment=e}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(e){this._onMediaSegment=e}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(e,t){if(!this._onMediaSegment)throw new 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,g=-1,oe=-1,V=this._audioMeta.refSampleDuration,fe=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Ve=this._dtsBaseInited&&this._audioNextDts===void 0,ze=!1;if(!i||i.length===0||i.length===1&&!t)return;let le=0,Ne=null,me=0;fe?(le=0,me=n.length):(le=8,me=8+n.length);let G=null;if(i.length>1&&(G=i.pop(),me-=G.length),this._audioStashedLastSample!=null){let ve=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(ve),me+=ve.length}G!=null&&(this._audioStashedLastSample=G);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 ve=this._audioSegmentInfoList.getLastSampleBefore(ne);if(ve!=null){let pe=ne-(ve.originalDts+ve.duration);pe<=3&&(pe=0);let p=ve.dts+ve.duration+pe;r=ne-p}else r=0}if(ze){let ve=ne-r,pe=this._videoSegmentInfoList.getLastSegmentBefore(ne);if(pe!=null&&pe.beginDts<ve){let p=de.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(p){let v=pe.beginDts,D=ve-pe.beginDts;_.v(this.TAG,`InsertPrefixSilentAudio: dts: ${v}, duration: ${D}`),i.unshift({unit:p,dts:v,pts:v}),me+=p.byteLength}}else ze=!1}let ye=[];for(let ve=0;ve<i.length;ve++){let pe=i[ve],p=pe.unit,v=pe.dts-this._dtsBase,D=v-r;c===-1&&(c=D);let U=0;ve!==i.length-1?U=i[ve+1].dts-this._dtsBase-r-D:G!=null?U=G.dts-this._dtsBase-r-D:ye.length>=1?U=ye[ye.length-1].duration:U=Math.floor(V);let k=!1,X=null;if(U>V*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!E.safari){k=!0;let z=Math.abs(U-V),be=Math.ceil(z/V),Ze=D+V;_.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
dts: ${D+U} ms, expected: ${D+Math.round(V)} ms, delta: ${Math.round(z)} ms, generate: ${be} frames`);let Te=de.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Te==null&&(_.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Te=p),X=[];for(let Pe=0;Pe<be;Pe++){let rt=Math.round(Ze);if(X.length>0){let st=X[X.length-1];st.duration=rt-st.dts}let ht={dts:rt,pts:rt,cts:0,unit:Te,size:Te.byteLength,duration:0,originalDts:v,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};X.push(ht),me+=ht.size,Ze+=V}let Ke=X[X.length-1];Ke.duration=D+U-Ke.dts,U=Math.round(V)}ye.push({dts:D,pts:D,cts:0,unit:pe.unit,size:pe.unit.byteLength,duration:U,originalDts:v,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),k&&ye.push.apply(ye,X)}fe?Ne=new Uint8Array(me):(Ne=new Uint8Array(me),Ne[0]=me>>>24&255,Ne[1]=me>>>16&255,Ne[2]=me>>>8&255,Ne[3]=me&255,Ne.set(R.types.mdat,4));for(let ve=0;ve<ye.length;ve++){let pe=ye[ve].unit;Ne.set(pe,le),le+=pe.byteLength}let Le=ye[ye.length-1];g=Le.dts+Le.duration,this._audioNextDts=g;let Ye=new Fe;Ye.beginDts=c,Ye.endDts=g,Ye.beginPts=c,Ye.endPts=g,Ye.originalBeginDts=ye[0].originalDts,Ye.originalEndDts=Le.originalDts+Le.duration,Ye.firstSample=new De(ye[0].dts,ye[0].pts,ye[0].duration,ye[0].originalDts,!1),Ye.lastSample=new De(Le.dts,Le.pts,Le.duration,Le.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Ye),n.samples=ye,n.sequenceNumber++;let Mt=null;fe?Mt=new Uint8Array:Mt=R.moof(n,c),n.samples=[],n.length=0;let Et={type:"audio",data:this._mergeBoxes(Mt,Ne).buffer,sampleCount:ye.length,info:Ye};fe&&Ve&&(Et.timestampOffset=c),this._onMediaSegment("audio",Et)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,i=n.samples,r,c=-1,g=-1,oe=-1,V=-1;if(!i||i.length===0||i.length===1&&!t)return;let fe=8,Ve=null,ze=8+e.length,le=null;if(i.length>1&&(le=i.pop(),ze-=le.length),this._videoStashedLastSample!=null){let Le=this._videoStashedLastSample;this._videoStashedLastSample=null,i.unshift(Le),ze+=Le.length}le!=null&&(this._videoStashedLastSample=le);let Ne=i[0].dts-this._dtsBase;if(this._videoNextDts)r=Ne-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())r=0;else{let Le=this._videoSegmentInfoList.getLastSampleBefore(Ne);if(Le!=null){let Ye=Ne-(Le.originalDts+Le.duration);Ye<=3&&(Ye=0);let Mt=Le.dts+Le.duration+Ye;r=Ne-Mt}else r=0}let me=new Fe,G=[];for(let Le=0;Le<i.length;Le++){let Ye=i[Le],Mt=Ye.dts-this._dtsBase,Et=Ye.isKeyframe,ve=Mt-r,pe=Ye.cts,p=ve+pe;c===-1&&(c=ve,oe=p);let v=0;if(Le!==i.length-1?v=i[Le+1].dts-this._dtsBase-r-ve:le!=null?v=le.dts-this._dtsBase-r-ve:G.length>=1?v=G[G.length-1].duration:v=Math.floor(this._videoMeta.refSampleDuration),Et){let D=new De(ve,p,v,Ye.dts,!0);D.fileposition=Ye.fileposition,me.appendSyncPoint(D)}G.push({dts:ve,pts:p,cts:pe,units:Ye.units,size:Ye.length,isKeyframe:Et,duration:v,originalDts:Mt,flags:{isLeading:0,dependsOn:Et?2:1,isDependedOn:Et?1:0,hasRedundancy:0,isNonSync:Et?0:1}})}Ve=new Uint8Array(ze),Ve[0]=ze>>>24&255,Ve[1]=ze>>>16&255,Ve[2]=ze>>>8&255,Ve[3]=ze&255,Ve.set(R.types.mdat,4);for(let Le=0;Le<G.length;Le++){let Ye=G[Le].units;for(;Ye.length;){let Et=Ye.shift().data;Ve.set(Et,fe),fe+=Et.byteLength}}let ne=G[G.length-1];if(g=ne.dts+ne.duration,V=ne.pts+ne.duration,this._videoNextDts=g,me.beginDts=c,me.endDts=g,me.beginPts=oe,me.endPts=V,me.originalBeginDts=G[0].originalDts,me.originalEndDts=ne.originalDts+ne.duration,me.firstSample=new De(G[0].dts,G[0].pts,G[0].duration,G[0].originalDts,G[0].isKeyframe),me.lastSample=new De(ne.dts,ne.pts,ne.duration,ne.originalDts,ne.isKeyframe),this._isLive||this._videoSegmentInfoList.append(me),n.samples=G,n.sequenceNumber++,this._forceFirstIDR){let Le=G[0].flags;Le.dependsOn=2,Le.isNonSync=0}let ye=R.moof(n,c);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(ye,Ve).buffer,sampleCount:G.length,info:me})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var ot=Ce,j={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};class bt{constructor(e,t){this.TAG="TransmuxingController",this._emitter=new(P()),this._config=t,e.segments||(e.segments=[{duration:e.duration,filesize:e.filesize,url:e.url}]),typeof e.cors!="boolean"&&(e.cors=!0),typeof e.withCredentials!="boolean"&&(e.withCredentials=!1),this._mediaDataSource=e,this._currentSegmentIndex=0;let n=0;this._mediaDataSource.segments.forEach(i=>{i.timestampBase=n,n+=i.duration,i.cors=e.cors,i.withCredentials=e.withCredentials,t.referrerPolicy&&(i.referrerPolicy=t.referrerPolicy)}),!isNaN(n)&&this._mediaDataSource.duration!==n&&(this._mediaDataSource.duration=n),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(e,t){this._currentSegmentIndex=e;let n=this._mediaDataSource.segments[e],i=this._ioctl=new Ge(n,this._config,e);i.onError=this._onIOException.bind(this),i.onSeeked=this._onIOSeeked.bind(this),i.onComplete=this._onIOComplete.bind(this),i.onRedirect=this._onIORedirect.bind(this),i.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):i.onDataArrival=this._onInitChunkArrival.bind(this),i.open(t)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(e){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){let n=this._mediaInfo.segments[t];if(n==null)this._pendingSeekTime=e;else{let i=n.getNearestKeyframe(e);this._remuxer.seek(i.milliseconds),this._ioctl.seek(i.fileposition),this._pendingResolveSeekPoint=i.milliseconds}}else{let n=this._mediaInfo.segments[t];if(n==null)this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t);else{let i=n.getNearestKeyframe(e);this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,i.fileposition),this._pendingResolveSeekPoint=i.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(e){let t=this._mediaDataSource.segments,n=t.length-1;for(let i=0;i<t.length;i++)if(e<t[i].timestampBase){n=i-1;break}return n}_onInitChunkArrival(e,t){let n=null,i=0;if(t>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,i=this._demuxer.parseChunks(e,t);else if((n=x.probe(e)).match){this._demuxer=new x(n,this._config),this._remuxer||(this._remuxer=new ot(this._config));let r=this._mediaDataSource;r.duration!=null&&!isNaN(r.duration)&&(this._demuxer.overridedDuration=r.duration),typeof r.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=r.hasAudio),typeof r.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=r.hasVideo),this._demuxer.timestampBase=r.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),i=this._demuxer.parseChunks(e,t)}else n=null,_.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(j.DEMUX_ERROR,h.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),i=0;return i}_onMediaInfo(e){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,$e.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,$e.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=t,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let n=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(n)})}_onMetaDataArrived(e){this._emitter.emit(j.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(j.SCRIPTDATA_ARRIVED,e)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(e){let n=e+1;n<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(n)):(this._remuxer.flushStashedSamples(),this._emitter.emit(j.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(e){let t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}_onIORecoveredEarlyEof(){this._emitter.emit(j.RECOVERED_EARLY_EOF)}_onIOException(e,t){_.e(this.TAG,`IOException: type = ${e}, code = ${t.code}, msg = ${t.msg}`),this._emitter.emit(j.IO_ERROR,e,t),this._disableStatisticsReporter()}_onDemuxException(e,t){_.e(this.TAG,`DemuxException: type = ${e}, info = ${t}`),this._emitter.emit(j.DEMUX_ERROR,e,t)}_onRemuxerInitSegmentArrival(e,t){this._emitter.emit(j.INIT_SEGMENT,e,t)}_onRemuxerMediaSegmentArrival(e,t){if(this._pendingSeekTime==null&&(this._emitter.emit(j.MEDIA_SEGMENT,e,t),this._pendingResolveSeekPoint!=null&&e==="video")){let n=t.info.syncPoints,i=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,E.safari&&n.length>0&&n[0].originalDts===i&&(i=n[0].pts),this._emitter.emit(j.RECOMMEND_SEEKPOINT,i)}}_enableStatisticsReporter(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(e){let t=this._mediaInfo.segments[e],n=Object.assign({},t);n.duration=this._mediaInfo.duration,n.segmentCount=this._mediaInfo.segmentCount,delete n.segments,delete n.keyframesIndex,this._emitter.emit(j.MEDIA_INFO,n)}_reportStatisticsInfo(){let e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(j.STATISTICS_INFO,e)}}var ct=bt,it=function(K){let e="TransmuxingWorker",t=null,n=me.bind(this);S.install(),K.addEventListener("message",function(G){switch(G.data.cmd){case"init":t=new ct(G.data.param[0],G.data.param[1]),t.on(j.IO_ERROR,ze.bind(this)),t.on(j.DEMUX_ERROR,le.bind(this)),t.on(j.INIT_SEGMENT,i.bind(this)),t.on(j.MEDIA_SEGMENT,r.bind(this)),t.on(j.LOADING_COMPLETE,c.bind(this)),t.on(j.RECOVERED_EARLY_EOF,g.bind(this)),t.on(j.MEDIA_INFO,oe.bind(this)),t.on(j.METADATA_ARRIVED,V.bind(this)),t.on(j.SCRIPTDATA_ARRIVED,fe.bind(this)),t.on(j.STATISTICS_INFO,Ve.bind(this)),t.on(j.RECOMMEND_SEEKPOINT,Ne.bind(this));break;case"destroy":t&&(t.destroy(),t=null),K.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(G.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let ne=G.data.param;_e.applyConfig(ne),ne.enableCallback===!0?_e.addLogListener(n):_e.removeLogListener(n);break}}});function i(G,ne){let ye={msg:j.INIT_SEGMENT,data:{type:G,data:ne}};K.postMessage(ye,[ne.data])}function r(G,ne){let ye={msg:j.MEDIA_SEGMENT,data:{type:G,data:ne}};K.postMessage(ye,[ne.data])}function c(){let G={msg:j.LOADING_COMPLETE};K.postMessage(G)}function g(){let G={msg:j.RECOVERED_EARLY_EOF};K.postMessage(G)}function oe(G){let ne={msg:j.MEDIA_INFO,data:G};K.postMessage(ne)}function V(G){let ne={msg:j.METADATA_ARRIVED,data:G};K.postMessage(ne)}function fe(G){let ne={msg:j.SCRIPTDATA_ARRIVED,data:G};K.postMessage(ne)}function Ve(G){let ne={msg:j.STATISTICS_INFO,data:G};K.postMessage(ne)}function ze(G,ne){K.postMessage({msg:j.IO_ERROR,data:{type:G,info:ne}})}function le(G,ne){K.postMessage({msg:j.DEMUX_ERROR,data:{type:G,info:ne}})}function Ne(G){K.postMessage({msg:j.RECOMMEND_SEEKPOINT,data:G})}function me(G,ne){K.postMessage({msg:"logcat_callback",data:{type:G,logcat:ne}})}};class Rt{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(P()),t.enableWorker&&typeof Worker!="undefined")try{let n=u(82059);this._worker=n(it),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[e,t]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},_e.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:_e.getConfig()})}catch(n){_.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new ct(e,t)}else this._controller=new ct(e,t);if(this._controller){let n=this._controller;n.on(j.IO_ERROR,this._onIOError.bind(this)),n.on(j.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(j.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(j.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(j.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(j.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(j.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(j.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(j.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(j.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(j.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),_e.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}hasWorker(){return this._worker!=null}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(j.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(j.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(j.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(j.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(j.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(j.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(j.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(j.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(j.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(j.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(j.RECOMMEND_SEEKPOINT,e)})}_onLoggingConfigChanged(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})}_onWorkerMessage(e){let t=e.data,n=t.data;if(t.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(t.msg){case j.INIT_SEGMENT:case j.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case j.LOADING_COMPLETE:case j.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case j.MEDIA_INFO:Object.setPrototypeOf(n,$e.prototype),this._emitter.emit(t.msg,n);break;case j.METADATA_ARRIVED:case j.SCRIPTDATA_ARRIVED:case j.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case j.IO_ERROR:case j.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case j.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":_.emitter.emit("log",n.type,n.logcat);break;default:break}}}var Ft=Rt,Ct={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Kt{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new(P()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new ge}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(Ct.ERROR,{code:c.code,msg:c.message});return}}this._mimeTypes[n.type]=i}t||this._pendingSegments[n.type].push(n),r||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),E.safari&&n.container==="audio/mpeg"&&n.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(e){let t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let n=this._sourceBuffers[t.type];n&&!n.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(e){for(let t in this._sourceBuffers){if(!this._sourceBuffers[t])continue;let n=this._sourceBuffers[t];if(this._mediaSource.readyState==="open")try{n.abort()}catch(r){_.e(this.TAG,r.message)}this._idrList.clear();let i=this._pendingSegments[t];if(i.splice(0,i.length),this._mediaSource.readyState!=="closed"){for(let r=0;r<n.buffered.length;r++){let c=n.buffered.start(r),g=n.buffered.end(r);this._pendingRemoveRanges[t].push({start:c,end:g})}if(n.updating||this._doRemoveRanges(),E.safari){let r=this._lastInitSegments[t];r&&(this._pendingSegments[t].push(r),n.updating||this._doAppendSegments())}}}}endOfStream(){let e=this._mediaSource,t=this._sourceBuffers;if(!e||e.readyState!=="open"){e&&e.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream())}getNearestKeyframe(e){return this._idrList.getLastSyncPointBeforeDts(e)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let i=n.buffered;if(i.length>=1&&e-i.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let i=n.buffered,r=!1;for(let c=0;c<i.length;c++){let g=i.start(c),oe=i.end(c);if(g<=e&&e<oe+3){if(e-g>=this._config.autoCleanupMaxBackwardDuration){r=!0;let V=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:g,end:V})}}else oe<e&&(r=!0,this._pendingRemoveRanges[t].push({start:g,end:oe}))}r&&!n.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let e=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||e.video&&e.video.updating||e.audio&&e.audio.updating)return;let t=this._mediaSource.duration,n=this._pendingMediaDuration;n>0&&(isNaN(t)||n>t)&&(_.v(this.TAG,`Update MediaSource duration from ${t} to ${n}`),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let e in this._pendingRemoveRanges){if(!this._sourceBuffers[e]||this._sourceBuffers[e].updating)continue;let t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];for(;n.length&&!t.updating;){let i=n.shift();t.remove(i.start,i.end)}}}_doAppendSegments(){let e=this._pendingSegments;for(let t in e)if(!(!this._sourceBuffers[t]||this._sourceBuffers[t].updating)&&e[t].length>0){let n=e[t].shift();if(n.timestampOffset){let i=this._sourceBuffers[t].timestampOffset,r=n.timestampOffset/1e3;Math.abs(i-r)>.1&&(_.v(this.TAG,`Update MPEG audio timestampOffset from ${i} to ${r}`),this._sourceBuffers[t].timestampOffset=r),delete n.timestampOffset}if(!n.data||n.data.byteLength===0)continue;try{this._sourceBuffers[t].appendBuffer(n.data),this._isBufferFull=!1,t==="video"&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(i){this._pendingSegments[t].unshift(n),i.code===22?(this._isBufferFull||this._emitter.emit(Ct.BUFFER_FULL),this._isBufferFull=!0):(_.e(this.TAG,i.message),this._emitter.emit(Ct.ERROR,{code:i.code,msg:i.message}))}}}_onSourceOpen(){if(_.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let e=this._pendingSourceBufferInit;for(;e.length;){let t=e.shift();this.appendInitSegment(t,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Ct.SOURCE_OPEN)}_onSourceEnded(){_.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){_.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let e=this._pendingSegments;return e.video.length>0||e.audio.length>0}_hasPendingRemoveRanges(){let e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Ct.UPDATE_END)}_onSourceBufferError(e){_.e(this.TAG,`SourceBuffer Error: ${e}`)}}var zt=Kt;const Re={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},qe={NETWORK_EXCEPTION:H.EXCEPTION,NETWORK_STATUS_CODE_INVALID:H.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:H.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:H.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:h.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:h.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:h.CODEC_UNSUPPORTED};class Bt{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(P()),this._config=Z(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()!=="flv")throw new re("FlvPlayer requires an flv MediaDataSource input!");e.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let n=E.chrome&&(E.version.major<50||E.version.major===50&&E.version.build<2661);this._alwaysSeekKeyframe=!!(n||E.msedge||E.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===se.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(se.MEDIA_INFO,this.mediaInfo)}):e===se.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(se.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new zt(this._config),this._msectl.on(Ct.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Ct.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Ct.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Ct.ERROR,t=>{this._emitter.emit(se.ERROR,Re.MEDIA_ERROR,qe.MEDIA_MSE_ERROR,t)}),this._msectl.attachMediaElement(e),this._pendingSeekTime!=null)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new 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 Ft(this._mediaDataSource,this._config),this._transmuxer.on(j.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(j.MEDIA_SEGMENT,(e,t)=>{if(this._msectl.appendMediaSegment(t),this._config.lazyLoad&&!this._config.isLive){let n=this._mediaElement.currentTime;t.info.endDts>=(n+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(_.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(j.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(se.LOADING_COMPLETE)}),this._transmuxer.on(j.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(se.RECOVERED_EARLY_EOF)}),this._transmuxer.on(j.IO_ERROR,(e,t)=>{this._emitter.emit(se.ERROR,Re.NETWORK_ERROR,e,t)}),this._transmuxer.on(j.DEMUX_ERROR,(e,t)=>{this._emitter.emit(se.ERROR,Re.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(j.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(se.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(j.METADATA_ARRIVED,e=>{this._emitter.emit(se.METADATA_ARRIVED,e)}),this._transmuxer.on(j.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(se.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(j.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(se.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(j.RECOMMEND_SEEKPOINT,e=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e/1e3)}),this._transmuxer.open()}}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){let r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,i=0;for(let r=0;r<e.length;r++){let c=e.start(r),g=e.end(r);if(c<=t&&t<g){n=c,i=g;break}}i>=t+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(_.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){_.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1;for(let i=0;i<t.length;i++){let r=t.start(i),c=t.end(i);if(e>=r&&e<c){e>=c-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(_.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(e){let t=this._mediaElement.buffered;for(let n=0;n<t.length;n++){let i=t.start(n),r=t.end(n);if(e>=i&&e<r)return!0}return!1}_internalSeek(e){let t=this._isTimepointBuffered(e),n=!1,i=0;if(e<1&&this._mediaElement.buffered.length>0){let r=this._mediaElement.buffered.start(0);(r<1&&e<r||E.safari)&&(n=!0,i=E.safari?.1:r)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=i;else if(t){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=e;else{let r=this._msectl.getNearestKeyframe(Math.floor(e*1e3));this._requestSetTime=!0,r!=null?this._mediaElement.currentTime=r.dts/1e3:this._mediaElement.currentTime=e}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(e*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let e=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(e)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(e*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(e){let t=this._mediaElement;if(e||!this._receivedCanPlay||t.readyState<2){let n=t.buffered;n.length>0&&t.currentTime<n.start(0)&&(_.w(this.TAG,`Playback seems stuck at ${t.currentTime}, seek to ${n.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=n.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(e){let t=this._mediaElement.currentTime,n=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(t<1&&n.length>0){let i=n.start(0);if(i<1&&t<i||E.safari){this._requestSetTime=!0,this._mediaElement.currentTime=E.safari?.1:i;return}}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){let i=this._msectl.getNearestKeyframe(Math.floor(t*1e3));i!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=i.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(e){this._checkAndResumeStuckPlayback(!0)}_onvProgress(e){this._checkAndResumeStuckPlayback()}}var pt=Bt;class $t{constructor(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(P()),this._config=Z(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()==="flv")throw new re("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new re(`NativePlayer(${e.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=e,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===se.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(se.MEDIA_INFO,this.mediaInfo)}):e===se.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(se.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new 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(se.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(se.STATISTICS_INFO,this.statisticsInfo)}}var Pt=$t;S.install();function St(K,e){let t=K;if(t==null||typeof t!="object")throw new re("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new re("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new pt(t,e);default:return new Pt(t,e)}}function Ot(){return Be.supportMSEH264Playback()}function tt(){return Be.getFeatureList()}let dt={};dt.createPlayer=St,dt.isSupported=Ot,dt.getFeatureList=tt,dt.BaseLoader=we,dt.LoaderStatus=o,dt.LoaderErrors=H,dt.Events=se,dt.ErrorTypes=Re,dt.ErrorDetails=qe,dt.FlvPlayer=pt,dt.NativePlayer=Pt,dt.LoggingControl=_e,Object.defineProperty(dt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var dn=dt},91857:function(ut,xe,u){"use strict";var a=u(59301),S=u(38819),M=u(92310),P=u.n(M),C=u(31561),_=u(70425),ce=u(18929),ue=u(2738),N=u(79676),q=u(53487),re=u(92343),Q=u(36355),o=u(20834),H=u(40875),we=u(88088),ee=u(47211);const te=null,E=I=>{const{menu:O,arrow:T,prefixCls:A,children:J,trigger:ie,disabled:he,dropdownRender:Ie,getPopupContainer:Se,overlayClassName:Oe,rootClassName:Ae,open:F,onOpenChange:Ge,visible:We,onVisibleChange:Z,mouseEnterDelay:Y=.15,mouseLeaveDelay:Be=.1,autoAdjustOverflow:Ee=!0,placement:se="",overlay:ae,transitionName:_e}=I,{getPopupContainer:Ue,getPrefixCls:$e,direction:je}=a.useContext(Q.E_),Xe=a.useMemo(()=>{const R=$e();return _e!==void 0?_e:se.includes("top")?`${R}-slide-down`:`${R}-slide-up`},[$e,se,_e]),nt=a.useMemo(()=>se?se.includes("Center")?se.slice(0,se.indexOf("Center")):se:je==="rtl"?"bottomRight":"bottomLeft",[se,je]),Me=$e("dropdown",A),[He,Qe]=(0,ee.Z)(Me),[,Je]=(0,we.Z)(),et=a.Children.only(J),B=(0,re.Tm)(et,{className:P()(`${Me}-trigger`,{[`${Me}-rtl`]:je==="rtl"},et.props.className),disabled:he}),b=he?[]:ie;let s;b&&b.includes("contextMenu")&&(s=!0);const[h,f]=(0,ce.Z)(!1,{value:F!=null?F:We}),$=(0,_.useEvent)(R=>{Ge==null||Ge(R),Z==null||Z(R),f(R)}),d=P()(Oe,Ae,Qe,{[`${Me}-rtl`]:je==="rtl"}),m=(0,N.Z)({arrowPointAtCenter:typeof T=="object"&&T.pointAtCenter,autoAdjustOverflow:Ee,offset:Je.marginXXS,arrowWidth:T?Je.sizePopupArrow:0,borderRadius:Je.borderRadius}),x=a.useCallback(()=>{f(!1)},[]),l=()=>{let R;return O!=null&&O.items?R=a.createElement(o.default,Object.assign({},O)):typeof ae=="function"?R=ae():R=ae,Ie&&(R=Ie(R)),R=a.Children.only(typeof R=="string"?a.createElement("span",null,R):R),a.createElement(H.J,{prefixCls:`${Me}-menu`,expandIcon:a.createElement("span",{className:`${Me}-menu-submenu-arrow`},a.createElement(S.Z,{className:`${Me}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:x,validator:W=>{let{mode:de}=W}},R)};return He(a.createElement(C.Z,Object.assign({alignPoint:s},(0,ue.Z)(I,["rootClassName"]),{mouseEnterDelay:Y,mouseLeaveDelay:Be,visible:h,builtinPlacements:m,arrow:!!T,overlayClassName:d,prefixCls:Me,getPopupContainer:Se||Ue,transitionName:Xe,trigger:b,overlay:l,placement:nt,onVisibleChange:$}),B))};function w(I){return Object.assign(Object.assign({},I),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const y=(0,q.Z)(E,"dropdown",I=>I,w),L=I=>a.createElement(y,Object.assign({},I),a.createElement("span",null));E._InternalPanelDoNotUseOrYouWillBeFired=L,xe.Z=E},38854:function(ut,xe,u){"use strict";u.d(xe,{Z:function(){return we}});var a=u(91857),S=u(92310),M=u.n(S),P=u(59301),C=u(18785),_=u(3113),ce=u(36355),ue=u(81327),N=u(33234),q=u(47211),re=function(ee,te){var E={};for(var w in ee)Object.prototype.hasOwnProperty.call(ee,w)&&te.indexOf(w)<0&&(E[w]=ee[w]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,w=Object.getOwnPropertySymbols(ee);y<w.length;y++)te.indexOf(w[y])<0&&Object.prototype.propertyIsEnumerable.call(ee,w[y])&&(E[w[y]]=ee[w[y]]);return E};const Q=ee=>{const{getPopupContainer:te,getPrefixCls:E,direction:w}=P.useContext(ce.E_),{prefixCls:y,type:L="default",danger:I,disabled:O,loading:T,onClick:A,htmlType:J,children:ie,className:he,menu:Ie,arrow:Se,autoFocus:Oe,overlay:Ae,trigger:F,align:Ge,open:We,onOpenChange:Z,placement:Y,getPopupContainer:Be,href:Ee,icon:se=P.createElement(C.Z,null),title:ae,buttonsRender:_e=l=>l,mouseEnterDelay:Ue,mouseLeaveDelay:$e,overlayClassName:je,overlayStyle:Xe,destroyPopupOnHide:nt,dropdownRender:Me}=ee,He=re(ee,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Qe=E("dropdown",y),Je=`${Qe}-button`,[et,B]=(0,q.Z)(Qe),b={menu:Ie,arrow:Se,autoFocus:Oe,align:Ge,disabled:O,trigger:O?[]:F,onOpenChange:Z,getPopupContainer:Be||te,mouseEnterDelay:Ue,mouseLeaveDelay:$e,overlayClassName:je,overlayStyle:Xe,destroyPopupOnHide:nt,dropdownRender:Me},{compactSize:s,compactItemClassnames:h}=(0,N.ri)(Qe,w),f=M()(Je,h,he,B);"overlay"in ee&&(b.overlay=Ae),"open"in ee&&(b.open=We),"placement"in ee?b.placement=Y:b.placement=w==="rtl"?"bottomLeft":"bottomRight";const $=P.createElement(_.ZP,{type:L,danger:I,disabled:O,loading:T,onClick:A,htmlType:J,href:Ee,title:ae},ie),d=P.createElement(_.ZP,{type:L,danger:I,icon:se}),[m,x]=_e([$,d]);return et(P.createElement(ue.Z.Compact,Object.assign({className:f,size:s,block:!0},He),m,P.createElement(a.Z,Object.assign({},b),x)))};Q.__ANT_BUTTON=!0;var o=Q;const H=a.Z;H.Button=o;var we=H},47211:function(ut,xe,u){"use strict";u.d(xe,{Z:function(){return re}});var a=u(17313),S=u(13826),M=u(92899),P=u(29878),C=u(19447),_=u(83116),ce=u(37613),N=Q=>{const{componentCls:o,menuCls:H,colorError:we,colorTextLightSolid:ee}=Q,te=`${H}-item`;return{[`${o}, ${o}-menu-submenu`]:{[`${H} ${te}`]:{[`&${te}-danger:not(${te}-disabled)`]:{color:we,"&:hover":{color:ee,backgroundColor:we}}}}}};const q=Q=>{const{componentCls:o,menuCls:H,zIndexPopup:we,dropdownArrowDistance:ee,sizePopupArrow:te,antCls:E,iconCls:w,motionDurationMid:y,dropdownPaddingVertical:L,fontSize:I,dropdownEdgeChildPadding:O,colorTextDisabled:T,fontSizeIcon:A,controlPaddingHorizontal:J,colorBgElevated:ie}=Q;return[{[o]:Object.assign(Object.assign({},(0,a.Wf)(Q)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:we,display:"block","&::before":{position:"absolute",insetBlock:-ee+te/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${E}-btn`]:{[`& > ${w}-down, & > ${E}-btn-icon > ${w}-down`]:{fontSize:A}},[`${o}-wrap`]:{position:"relative",[`${E}-btn > ${w}-down`]:{fontSize:A},[`${w}-down::before`]:{transition:`transform ${y}`}},[`${o}-wrap-open`]:{[`${w}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${E}-slide-down-enter${E}-slide-down-enter-active${o}-placement-bottomLeft,
|
|
&${E}-slide-down-appear${E}-slide-down-appear-active${o}-placement-bottomLeft,
|
|
&${E}-slide-down-enter${E}-slide-down-enter-active${o}-placement-bottom,
|
|
&${E}-slide-down-appear${E}-slide-down-appear-active${o}-placement-bottom,
|
|
&${E}-slide-down-enter${E}-slide-down-enter-active${o}-placement-bottomRight,
|
|
&${E}-slide-down-appear${E}-slide-down-appear-active${o}-placement-bottomRight`]:{animationName:S.fJ},[`&${E}-slide-up-enter${E}-slide-up-enter-active${o}-placement-topLeft,
|
|
&${E}-slide-up-appear${E}-slide-up-appear-active${o}-placement-topLeft,
|
|
&${E}-slide-up-enter${E}-slide-up-enter-active${o}-placement-top,
|
|
&${E}-slide-up-appear${E}-slide-up-appear-active${o}-placement-top,
|
|
&${E}-slide-up-enter${E}-slide-up-enter-active${o}-placement-topRight,
|
|
&${E}-slide-up-appear${E}-slide-up-appear-active${o}-placement-topRight`]:{animationName:S.Qt},[`&${E}-slide-down-leave${E}-slide-down-leave-active${o}-placement-bottomLeft,
|
|
&${E}-slide-down-leave${E}-slide-down-leave-active${o}-placement-bottom,
|
|
&${E}-slide-down-leave${E}-slide-down-leave-active${o}-placement-bottomRight`]:{animationName:S.Uw},[`&${E}-slide-up-leave${E}-slide-up-leave-active${o}-placement-topLeft,
|
|
&${E}-slide-up-leave${E}-slide-up-leave-active${o}-placement-top,
|
|
&${E}-slide-up-leave${E}-slide-up-leave-active${o}-placement-topRight`]:{animationName:S.ly}})},(0,C.ZP)(Q,{colorBg:ie,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${o} ${H}`]:{position:"relative",margin:0},[`${H}-submenu-popup`]:{position:"absolute",zIndex:we,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${o}, ${o}-menu-submenu`]:{[H]:Object.assign(Object.assign({padding:O,listStyleType:"none",backgroundColor:ie,backgroundClip:"padding-box",borderRadius:Q.borderRadiusLG,outline:"none",boxShadow:Q.boxShadowSecondary},(0,a.Qy)(Q)),{[`${H}-item-group-title`]:{padding:`${L}px ${J}px`,color:Q.colorTextDescription,transition:`all ${y}`},[`${H}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${H}-item-icon`]:{minWidth:I,marginInlineEnd:Q.marginXS,fontSize:Q.fontSizeSM},[`${H}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${y}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${H}-item, ${H}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${L}px ${J}px`,color:Q.colorText,fontWeight:"normal",fontSize:I,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:T,cursor:"not-allowed","&:hover":{color:T,backgroundColor:ie,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"}}}),[`${H}-item-group-list`]:{margin:`0 ${Q.marginXS}px`,padding:0,listStyle:"none"},[`${H}-submenu-title`]:{paddingInlineEnd:J+Q.fontSizeSM},[`${H}-submenu-vertical`]:{position:"relative"},[`${H}-submenu${H}-submenu-disabled ${o}-menu-submenu-title`]:{[`&, ${o}-menu-submenu-arrow-icon`]:{color:T,backgroundColor:ie,cursor:"not-allowed"}},[`${H}-submenu-selected ${o}-menu-submenu-title`]:{color:Q.colorPrimary}})}},[(0,S.oN)(Q,"slide-up"),(0,S.oN)(Q,"slide-down"),(0,M.Fm)(Q,"move-up"),(0,M.Fm)(Q,"move-down"),(0,P._y)(Q,"zoom-big")]]};var re=(0,_.Z)("Dropdown",(Q,o)=>{let{rootPrefixCls:H}=o;const{marginXXS:we,sizePopupArrow:ee,controlHeight:te,fontSize:E,lineHeight:w,paddingXXS:y,componentCls:L,borderRadiusLG:I}=Q,O=(te-E*w)/2,{dropdownArrowOffset:T}=(0,C.fS)({contentRadius:I}),A=(0,ce.TS)(Q,{menuCls:`${L}-menu`,rootPrefixCls:H,dropdownArrowDistance:ee/2+we,dropdownArrowOffset:T,dropdownPaddingVertical:O,dropdownEdgeChildPadding:y});return[q(A),N(A)]},Q=>({zIndexPopup:Q.zIndexPopupBase+50}))},45818:function(ut,xe,u){"use strict";u.d(xe,{D:function(){return y},Z:function(){return O}});var a=u(92413),S=u(59301),M={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},P=M,C=u(7657),_=function(A,J){return S.createElement(C.Z,(0,a.Z)({},A,{ref:J,icon:P}))},ce=S.forwardRef(_),ue=ce,N=u(33853),q=u(38819),re=u(92310),Q=u.n(re),o=u(2738),we=T=>!isNaN(parseFloat(T))&&isFinite(T),ee=u(36355),te=u(84966),E=function(T,A){var J={};for(var ie in T)Object.prototype.hasOwnProperty.call(T,ie)&&A.indexOf(ie)<0&&(J[ie]=T[ie]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,ie=Object.getOwnPropertySymbols(T);he<ie.length;he++)A.indexOf(ie[he])<0&&Object.prototype.propertyIsEnumerable.call(T,ie[he])&&(J[ie[he]]=T[ie[he]]);return J};const w={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},y=S.createContext({}),L=(()=>{let T=0;return function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return T+=1,`${A}${T}`}})();var O=S.forwardRef((T,A)=>{const{prefixCls:J,className:ie,trigger:he,children:Ie,defaultCollapsed:Se=!1,theme:Oe="dark",style:Ae={},collapsible:F=!1,reverseArrow:Ge=!1,width:We=200,collapsedWidth:Z=80,zeroWidthTriggerStyle:Y,breakpoint:Be,onCollapse:Ee,onBreakpoint:se}=T,ae=E(T,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:_e}=(0,S.useContext)(te.Gs),[Ue,$e]=(0,S.useState)("collapsed"in T?T.collapsed:Se),[je,Xe]=(0,S.useState)(!1);(0,S.useEffect)(()=>{"collapsed"in T&&$e(T.collapsed)},[T.collapsed]);const nt=(B,b)=>{"collapsed"in T||$e(B),Ee==null||Ee(B,b)},Me=(0,S.useRef)();Me.current=B=>{Xe(B.matches),se==null||se(B.matches),Ue!==B.matches&&nt(B.matches,"responsive")},(0,S.useEffect)(()=>{function B(s){return Me.current(s)}let b;if(typeof window!="undefined"){const{matchMedia:s}=window;if(s&&Be&&Be in w){b=s(`(max-width: ${w[Be]})`);try{b.addEventListener("change",B)}catch(h){b.addListener(B)}B(b)}}return()=>{try{b==null||b.removeEventListener("change",B)}catch(s){b==null||b.removeListener(B)}}},[Be]),(0,S.useEffect)(()=>{const B=L("ant-sider-");return _e.addSider(B),()=>_e.removeSider(B)},[]);const He=()=>{nt(!Ue,"clickTrigger")},{getPrefixCls:Qe}=(0,S.useContext)(ee.E_),Je=()=>{const B=Qe("layout-sider",J),b=(0,o.Z)(ae,["collapsed"]),s=Ue?Z:We,h=we(s)?`${s}px`:String(s),f=parseFloat(String(Z||0))===0?S.createElement("span",{onClick:He,className:Q()(`${B}-zero-width-trigger`,`${B}-zero-width-trigger-${Ge?"right":"left"}`),style:Y},he||S.createElement(ue,null)):null,m={expanded:Ge?S.createElement(q.Z,null):S.createElement(N.Z,null),collapsed:Ge?S.createElement(N.Z,null):S.createElement(q.Z,null)}[Ue?"collapsed":"expanded"],x=he!==null?f||S.createElement("div",{className:`${B}-trigger`,onClick:He,style:{width:h}},he||m):null,l=Object.assign(Object.assign({},Ae),{flex:`0 0 ${h}`,maxWidth:h,minWidth:h,width:h}),R=Q()(B,`${B}-${Oe}`,{[`${B}-collapsed`]:!!Ue,[`${B}-has-trigger`]:F&&he!==null&&!f,[`${B}-below`]:!!je,[`${B}-zero-width`]:parseFloat(h)===0},ie);return S.createElement("aside",Object.assign({className:R},b,{style:l,ref:A}),S.createElement("div",{className:`${B}-children`},Ie),F||je&&f?x:null)},et=S.useMemo(()=>({siderCollapsed:Ue}),[Ue]);return S.createElement(y.Provider,{value:et},Je())})},84966:function(ut,xe,u){"use strict";u.d(xe,{VY:function(){return y},$_:function(){return w},h4:function(){return E},Gs:function(){return o},ZP:function(){return L}});var a=u(26407),S=u(92310),M=u.n(S),P=u(2738),C=u(59301),_=u(36355),ce=u(83116),N=I=>{const{componentCls:O,bodyBg:T,lightSiderBg:A,lightTriggerBg:J,lightTriggerColor:ie}=I;return{[`${O}-sider-light`]:{background:A,[`${O}-sider-trigger`]:{color:ie,background:J},[`${O}-sider-zero-width-trigger`]:{color:ie,background:J,border:`1px solid ${T}`,borderInlineStart:0}}}};const q=I=>{const{antCls:O,componentCls:T,colorText:A,triggerColor:J,footerBg:ie,triggerBg:he,headerHeight:Ie,headerPadding:Se,headerColor:Oe,footerPadding:Ae,triggerHeight:F,zeroTriggerHeight:Ge,zeroTriggerWidth:We,motionDurationMid:Z,motionDurationSlow:Y,fontSize:Be,borderRadius:Ee,bodyBg:se,headerBg:ae,siderBg:_e}=I;return{[T]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:se,"&, *":{boxSizing:"border-box"},[`&${T}-has-sider`]:{flexDirection:"row",[`> ${T}, > ${T}-content`]:{width:0}},[`${T}-header, &${T}-footer`]:{flex:"0 0 auto"},[`${T}-sider`]:{position:"relative",minWidth:0,background:_e,transition:`all ${Z}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${O}-menu${O}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:F},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:F,color:J,lineHeight:`${F}px`,textAlign:"center",background:he,cursor:"pointer",transition:`all ${Z}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ie,insetInlineEnd:-We,zIndex:1,width:We,height:Ge,color:J,fontSize:I.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:_e,borderStartStartRadius:0,borderStartEndRadius:Ee,borderEndEndRadius:Ee,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:-We,borderStartStartRadius:Ee,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ee}}}}},N(I)),{"&-rtl":{direction:"rtl"}}),[`${T}-header`]:{height:Ie,padding:Se,color:Oe,lineHeight:`${Ie}px`,background:ae,[`${O}-menu`]:{lineHeight:"inherit"}},[`${T}-footer`]:{padding:Ae,color:A,fontSize:Be,background:ie},[`${T}-content`]:{flex:"auto",minHeight:0}}};var re=(0,ce.Z)("Layout",I=>[q(I)],I=>{const{colorBgLayout:O,controlHeight:T,controlHeightLG:A,colorText:J,controlHeightSM:ie,marginXXS:he,colorTextLightSolid:Ie,colorBgContainer:Se}=I,Oe=A*1.25;return{colorBgHeader:"#001529",colorBgBody:O,colorBgTrigger:"#002140",bodyBg:O,headerBg:"#001529",headerHeight:T*2,headerPadding:`0 ${Oe}px`,headerColor:J,footerPadding:`${ie}px ${Oe}px`,footerBg:O,siderBg:"#001529",triggerHeight:A+he*2,triggerBg:"#002140",triggerColor:Ie,zeroTriggerWidth:A,zeroTriggerHeight:A,lightSiderBg:Se,lightTriggerBg:Se,lightTriggerColor:J}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Q=function(I,O){var T={};for(var A in I)Object.prototype.hasOwnProperty.call(I,A)&&O.indexOf(A)<0&&(T[A]=I[A]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,A=Object.getOwnPropertySymbols(I);J<A.length;J++)O.indexOf(A[J])<0&&Object.prototype.propertyIsEnumerable.call(I,A[J])&&(T[A[J]]=I[A[J]]);return T};const o=C.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function H(I){let{suffixCls:O,tagName:T,displayName:A}=I;return J=>C.forwardRef((he,Ie)=>C.createElement(J,Object.assign({ref:Ie,suffixCls:O,tagName:T},he)))}const we=C.forwardRef((I,O)=>{const{prefixCls:T,suffixCls:A,className:J,tagName:ie}=I,he=Q(I,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ie}=C.useContext(_.E_),Se=Ie("layout",T),[Oe,Ae]=re(Se),F=A?`${Se}-${A}`:Se;return Oe(C.createElement(ie,Object.assign({className:M()(T||F,J,Ae),ref:O},he)))}),ee=C.forwardRef((I,O)=>{const{direction:T}=C.useContext(_.E_),[A,J]=C.useState([]),{prefixCls:ie,className:he,rootClassName:Ie,children:Se,hasSider:Oe,tagName:Ae,style:F}=I,Ge=Q(I,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),We=(0,P.Z)(Ge,["suffixCls"]),{getPrefixCls:Z,layout:Y}=C.useContext(_.E_),Be=Z("layout",ie),[Ee,se]=re(Be),ae=M()(Be,{[`${Be}-has-sider`]:typeof Oe=="boolean"?Oe:A.length>0,[`${Be}-rtl`]:T==="rtl"},Y==null?void 0:Y.className,he,Ie,se),_e=C.useMemo(()=>({siderHook:{addSider:Ue=>{J($e=>[].concat((0,a.Z)($e),[Ue]))},removeSider:Ue=>{J($e=>$e.filter(je=>je!==Ue))}}}),[]);return Ee(C.createElement(o.Provider,{value:_e},C.createElement(Ae,Object.assign({ref:O,className:ae,style:Object.assign(Object.assign({},Y==null?void 0:Y.style),F)},We),Se)))}),te=H({tagName:"div",displayName:"Layout"})(ee),E=H({suffixCls:"header",tagName:"header",displayName:"Header"})(we),w=H({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(we),y=H({suffixCls:"content",tagName:"main",displayName:"Content"})(we);var L=te},40875:function(ut,xe,u){"use strict";u.d(xe,{J:function(){return _}});var a=u(59301),S=u(33234),M=u(70425),P=function(ce,ue){var N={};for(var q in ce)Object.prototype.hasOwnProperty.call(ce,q)&&ue.indexOf(q)<0&&(N[q]=ce[q]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,q=Object.getOwnPropertySymbols(ce);re<q.length;re++)ue.indexOf(q[re])<0&&Object.prototype.propertyIsEnumerable.call(ce,q[re])&&(N[q[re]]=ce[q[re]]);return N};const C=a.createContext(null),_=a.forwardRef((ce,ue)=>{const{children:N}=ce,q=P(ce,["children"]),re=a.useContext(C),Q=a.useMemo(()=>Object.assign(Object.assign({},re),q),[re,q.prefixCls,q.mode,q.selectable]);return a.createElement(C.Provider,{value:Q},a.createElement(S.BR,null,(0,M.supportNodeRef)(N)?a.cloneElement(N,{ref:ue}):N))});xe.Z=C},20834:function(ut,xe,u){"use strict";u.d(xe,{default:function(){return et}});var a=u(15285),S=u(59301),M=u(45818),P=u(92310),C=u.n(P),_=u(36355),ce=function(B,b){var s={};for(var h in B)Object.prototype.hasOwnProperty.call(B,h)&&b.indexOf(h)<0&&(s[h]=B[h]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,h=Object.getOwnPropertySymbols(B);f<h.length;f++)b.indexOf(h[f])<0&&Object.prototype.propertyIsEnumerable.call(B,h[f])&&(s[h[f]]=B[h[f]]);return s},N=B=>{const{prefixCls:b,className:s,dashed:h}=B,f=ce(B,["prefixCls","className","dashed"]),{getPrefixCls:$}=S.useContext(_.E_),d=$("menu",b),m=C()({[`${d}-item-divider-dashed`]:!!h},s);return S.createElement(a.iz,Object.assign({className:m},f))},q=u(11592),re=u(2738),Q=u(6848),o=u(92343),we=(0,S.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),te=B=>{var b;const{className:s,children:h,icon:f,title:$,danger:d}=B,{prefixCls:m,firstLevel:x,direction:l,disableMenuItemTitleTooltip:R,inlineCollapsed:W}=S.useContext(we),de=ot=>{const _t=S.createElement("span",{className:`${m}-title-content`},h);return(!f||(0,o.l$)(h)&&h.type==="span")&&h&&ot&&x&&typeof h=="string"?S.createElement("div",{className:`${m}-inline-collapsed-noicon`},h.charAt(0)):_t},{siderCollapsed:De}=S.useContext(M.D);let Fe=$;typeof $=="undefined"?Fe=x?h:"":$===!1&&(Fe="");const ge={title:Fe};!De&&!W&&(ge.title=null,ge.open=!1);const ke=(0,q.Z)(h).length;let Ce=S.createElement(a.ck,Object.assign({},(0,re.Z)(B,["title","icon","danger"]),{className:C()({[`${m}-item-danger`]:d,[`${m}-item-only-child`]:(f?ke+1:ke)===1},s),title:typeof $=="string"?$:void 0}),(0,o.Tm)(f,{className:C()((0,o.l$)(f)?(b=f.props)===null||b===void 0?void 0:b.className:"",`${m}-item-icon`)}),de(W));return R||(Ce=S.createElement(Q.Z,Object.assign({},ge,{placement:l==="rtl"?"left":"right",overlayClassName:`${m}-inline-collapsed-tooltip`}),Ce)),Ce},w=B=>{var b;const{popupClassName:s,icon:h,title:f,theme:$}=B,d=S.useContext(we),{prefixCls:m,inlineCollapsed:x,theme:l}=d,R=(0,a.Xl)();let W;if(!h)W=x&&!R.length&&f&&typeof f=="string"?S.createElement("div",{className:`${m}-inline-collapsed-noicon`},f.charAt(0)):S.createElement("span",{className:`${m}-title-content`},f);else{const De=(0,o.l$)(f)&&f.type==="span";W=S.createElement(S.Fragment,null,(0,o.Tm)(h,{className:C()((0,o.l$)(h)?(b=h.props)===null||b===void 0?void 0:b.className:"",`${m}-item-icon`)}),De?f:S.createElement("span",{className:`${m}-title-content`},f))}const de=S.useMemo(()=>Object.assign(Object.assign({},d),{firstLevel:!1}),[d]);return S.createElement(we.Provider,{value:de},S.createElement(a.Wd,Object.assign({},(0,re.Z)(B,["icon"]),{title:W,popupClassName:C()(m,s,`${m}-${$||l}`)})))},y=u(18785),L=u(70425),I=u(62892),O=u(40875),T=function(B,b){var s={};for(var h in B)Object.prototype.hasOwnProperty.call(B,h)&&b.indexOf(h)<0&&(s[h]=B[h]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,h=Object.getOwnPropertySymbols(B);f<h.length;f++)b.indexOf(h[f])<0&&Object.prototype.propertyIsEnumerable.call(B,h[f])&&(s[h[f]]=B[h[f]]);return s};function A(B){return(B||[]).map((b,s)=>{if(b&&typeof b=="object"){const h=b,{label:f,children:$,key:d,type:m}=h,x=T(h,["label","children","key","type"]),l=d!=null?d:`tmp-${s}`;return $||m==="group"?m==="group"?S.createElement(a.BW,Object.assign({key:l},x,{title:f}),A($)):S.createElement(w,Object.assign({key:l},x,{title:f}),A($)):m==="divider"?S.createElement(N,Object.assign({key:l},x)):S.createElement(te,Object.assign({key:l},x),f)}return null}).filter(b=>b)}function J(B){return S.useMemo(()=>B&&A(B),[B])}var ie=u(64993),he=u(17313),Ie=u(8378),Se=u(13826),Oe=u(29878),Ae=u(83116),F=u(37613),We=B=>{const{componentCls:b,motionDurationSlow:s,horizontalLineHeight:h,colorSplit:f,lineWidth:$,lineType:d,itemPaddingInline:m}=B;return{[`${b}-horizontal`]:{lineHeight:h,border:0,borderBottom:`${$}px ${d} ${f}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${b}-item, ${b}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:m},[`> ${b}-item:hover,
|
|
> ${b}-item-active,
|
|
> ${b}-submenu ${b}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${b}-item, ${b}-submenu-title`]:{transition:[`border-color ${s}`,`background ${s}`].join(",")},[`${b}-submenu-arrow`]:{display:"none"}}}},Y=B=>{let{componentCls:b,menuArrowOffset:s}=B;return{[`${b}-rtl`]:{direction:"rtl"},[`${b}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${b}-rtl${b}-vertical,
|
|
${b}-submenu-rtl ${b}-vertical`]:{[`${b}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${s})`},"&::after":{transform:`rotate(45deg) translateY(${s})`}}}}};const Be=B=>Object.assign({},(0,he.oN)(B));var se=(B,b)=>{const{componentCls:s,itemColor:h,itemSelectedColor:f,groupTitleColor:$,itemBg:d,subMenuItemBg:m,itemSelectedBg:x,activeBarHeight:l,activeBarWidth:R,activeBarBorderWidth:W,motionDurationSlow:de,motionEaseInOut:De,motionEaseOut:Fe,itemPaddingInline:ge,motionDurationMid:ke,itemHoverColor:Ce,lineType:ot,colorSplit:_t,itemDisabledColor:j,dangerItemColor:bt,dangerItemHoverColor:ct,dangerItemSelectedColor:vt,dangerItemActiveBg:it,dangerItemSelectedBg:Rt,itemHoverBg:Ft,itemActiveBg:Dt,menuSubMenuBg:Ct,horizontalItemSelectedColor:Kt,horizontalItemSelectedBg:zt,horizontalItemBorderRadius:Re,horizontalItemHoverBg:qe,popupBg:Bt}=B;return{[`${s}-${b}, ${s}-${b} > ${s}`]:{color:h,background:d,[`&${s}-root:focus-visible`]:Object.assign({},Be(B)),[`${s}-item-group-title`]:{color:$},[`${s}-submenu-selected`]:{[`> ${s}-submenu-title`]:{color:f}},[`${s}-item-disabled, ${s}-submenu-disabled`]:{color:`${j} !important`},[`${s}-item:not(${s}-item-selected):not(${s}-submenu-selected)`]:{[`&:hover, > ${s}-submenu-title:hover`]:{color:Ce}},[`&:not(${s}-horizontal)`]:{[`${s}-item:not(${s}-item-selected)`]:{"&:hover":{backgroundColor:Ft},"&:active":{backgroundColor:Dt}},[`${s}-submenu-title`]:{"&:hover":{backgroundColor:Ft},"&:active":{backgroundColor:Dt}}},[`${s}-item-danger`]:{color:bt,[`&${s}-item:hover`]:{[`&:not(${s}-item-selected):not(${s}-submenu-selected)`]:{color:ct}},[`&${s}-item:active`]:{background:it}},[`${s}-item a`]:{"&, &:hover":{color:"inherit"}},[`${s}-item-selected`]:{color:f,[`&${s}-item-danger`]:{color:vt},"a, a:hover":{color:"inherit"}},[`& ${s}-item-selected`]:{backgroundColor:x,[`&${s}-item-danger`]:{backgroundColor:Rt}},[`${s}-item, ${s}-submenu-title`]:{[`&:not(${s}-item-disabled):focus-visible`]:Object.assign({},Be(B))},[`&${s}-submenu > ${s}`]:{backgroundColor:Ct},[`&${s}-popup > ${s}`]:{backgroundColor:Bt},[`&${s}-horizontal`]:Object.assign(Object.assign({},b==="dark"?{borderBottom:0}:{}),{[`> ${s}-item, > ${s}-submenu`]:{top:W,marginTop:-W,marginBottom:0,borderRadius:Re,"&::after":{position:"absolute",insetInline:ge,bottom:0,borderBottom:`${l}px solid transparent`,transition:`border-color ${de} ${De}`,content:'""'},"&:hover, &-active, &-open":{background:qe,"&::after":{borderBottomWidth:l,borderBottomColor:Kt}},"&-selected":{color:Kt,backgroundColor:zt,"&:hover":{backgroundColor:zt},"&::after":{borderBottomWidth:l,borderBottomColor:Kt}}}}),[`&${s}-root`]:{[`&${s}-inline, &${s}-vertical`]:{borderInlineEnd:`${W}px ${ot} ${_t}`}},[`&${s}-inline`]:{[`${s}-sub${s}-inline`]:{background:m},[`${s}-item, ${s}-submenu-title`]:W&&R?{width:`calc(100% + ${W}px)`}:{},[`${s}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${R}px solid ${f}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ke} ${Fe}`,`opacity ${ke} ${Fe}`].join(","),content:'""'},[`&${s}-item-danger`]:{"&::after":{borderInlineEndColor:vt}}},[`${s}-selected, ${s}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ke} ${De}`,`opacity ${ke} ${De}`].join(",")}}}}}};const ae=B=>{const{componentCls:b,itemHeight:s,itemMarginInline:h,padding:f,menuArrowSize:$,marginXS:d,itemMarginBlock:m}=B,x=f+$+d;return{[`${b}-item`]:{position:"relative",overflow:"hidden"},[`${b}-item, ${b}-submenu-title`]:{height:s,lineHeight:`${s}px`,paddingInline:f,overflow:"hidden",textOverflow:"ellipsis",marginInline:h,marginBlock:m,width:`calc(100% - ${h*2}px)`},[`> ${b}-item,
|
|
> ${b}-submenu > ${b}-submenu-title`]:{height:s,lineHeight:`${s}px`},[`${b}-item-group-list ${b}-submenu-title,
|
|
${b}-submenu-title`]:{paddingInlineEnd:x}}};var Ue=B=>{const{componentCls:b,iconCls:s,itemHeight:h,colorTextLightSolid:f,dropdownWidth:$,controlHeightLG:d,motionDurationMid:m,motionEaseOut:x,paddingXL:l,itemMarginInline:R,fontSizeLG:W,motionDurationSlow:de,paddingXS:De,boxShadowSecondary:Fe,collapsedWidth:ge,collapsedIconSize:ke}=B,Ce={height:h,lineHeight:`${h}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[b]:{"&-inline, &-vertical":Object.assign({[`&${b}-root`]:{boxShadow:"none"}},ae(B))},[`${b}-submenu-popup`]:{[`${b}-vertical`]:Object.assign(Object.assign({},ae(B)),{boxShadow:Fe})}},{[`${b}-submenu-popup ${b}-vertical${b}-sub`]:{minWidth:$,maxHeight:`calc(100vh - ${d*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${b}-inline`]:{width:"100%",[`&${b}-root`]:{[`${b}-item, ${b}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${de}`,`background ${de}`,`padding ${m} ${x}`].join(","),[`> ${b}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${b}-sub${b}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${b}-submenu > ${b}-submenu-title`]:Ce,[`& ${b}-item-group-title`]:{paddingInlineStart:l}},[`${b}-item`]:Ce}},{[`${b}-inline-collapsed`]:{width:ge,[`&${b}-root`]:{[`${b}-item, ${b}-submenu ${b}-submenu-title`]:{[`> ${b}-inline-collapsed-noicon`]:{fontSize:W,textAlign:"center"}}},[`> ${b}-item,
|
|
> ${b}-item-group > ${b}-item-group-list > ${b}-item,
|
|
> ${b}-item-group > ${b}-item-group-list > ${b}-submenu > ${b}-submenu-title,
|
|
> ${b}-submenu > ${b}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${W/2}px - ${R}px)`,textOverflow:"clip",[`
|
|
${b}-submenu-arrow,
|
|
${b}-submenu-expand-icon
|
|
`]:{opacity:0},[`${b}-item-icon, ${s}`]:{margin:0,fontSize:ke,lineHeight:`${h}px`,"+ span":{display:"inline-block",opacity:0}}},[`${b}-item-icon, ${s}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${b}-item-icon, ${s}`]:{display:"none"},"a, a:hover":{color:f}},[`${b}-item-group-title`]:Object.assign(Object.assign({},he.vS),{paddingInline:De})}}]};const $e=B=>{const{componentCls:b,motionDurationSlow:s,motionDurationMid:h,motionEaseInOut:f,motionEaseOut:$,iconCls:d,iconSize:m,iconMarginInlineEnd:x}=B;return{[`${b}-item, ${b}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${s}`,`background ${s}`,`padding ${s} ${f}`].join(","),[`${b}-item-icon, ${d}`]:{minWidth:m,fontSize:m,transition:[`font-size ${h} ${$}`,`margin ${s} ${f}`,`color ${s}`].join(","),"+ span":{marginInlineStart:x,opacity:1,transition:[`opacity ${s} ${f}`,`margin ${s}`,`color ${s}`].join(",")}},[`${b}-item-icon`]:Object.assign({},(0,he.Ro)()),[`&${b}-item-only-child`]:{[`> ${d}, > ${b}-item-icon`]:{marginInlineEnd:0}}},[`${b}-item-disabled, ${b}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${b}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},je=B=>{const{componentCls:b,motionDurationSlow:s,motionEaseInOut:h,borderRadius:f,menuArrowSize:$,menuArrowOffset:d}=B;return{[`${b}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:B.margin,width:$,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${s} ${h}, opacity ${s}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:$*.6,height:$*.15,backgroundColor:"currentcolor",borderRadius:f,transition:[`background ${s} ${h}`,`transform ${s} ${h}`,`top ${s} ${h}`,`color ${s} ${h}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${d})`},"&::after":{transform:`rotate(-45deg) translateY(${d})`}}}}},Xe=B=>{const{antCls:b,componentCls:s,fontSize:h,motionDurationSlow:f,motionDurationMid:$,motionEaseInOut:d,paddingXS:m,padding:x,colorSplit:l,lineWidth:R,zIndexPopup:W,borderRadiusLG:de,subMenuItemBorderRadius:De,menuArrowSize:Fe,menuArrowOffset:ge,lineType:ke,menuPanelMaskInset:Ce,groupTitleLineHeight:ot,groupTitleFontSize:_t}=B;return[{"":{[`${s}`]:Object.assign(Object.assign({},(0,he.dF)()),{"&-hidden":{display:"none"}})},[`${s}-submenu-hidden`]:{display:"none"}},{[s]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,he.Wf)(B)),(0,he.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:h,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${f} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${s}-item`]:{flex:"none"}},[`${s}-item, ${s}-submenu, ${s}-submenu-title`]:{borderRadius:B.itemBorderRadius},[`${s}-item-group-title`]:{padding:`${m}px ${x}px`,fontSize:_t,lineHeight:ot,transition:`all ${f}`},[`&-horizontal ${s}-submenu`]:{transition:[`border-color ${f} ${d}`,`background ${f} ${d}`].join(",")},[`${s}-submenu, ${s}-submenu-inline`]:{transition:[`border-color ${f} ${d}`,`background ${f} ${d}`,`padding ${$} ${d}`].join(",")},[`${s}-submenu ${s}-sub`]:{cursor:"initial",transition:[`background ${f} ${d}`,`padding ${f} ${d}`].join(",")},[`${s}-title-content`]:{transition:`color ${f}`},[`${s}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${s}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:l,borderStyle:ke,borderWidth:0,borderTopWidth:R,marginBlock:R,padding:0,"&-dashed":{borderStyle:"dashed"}}}),$e(B)),{[`${s}-item-group`]:{[`${s}-item-group-list`]:{margin:0,padding:0,[`${s}-item, ${s}-submenu-title`]:{paddingInline:`${h*2}px ${x}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:W,borderRadius:de,boxShadow:"none",transformOrigin:"0 0",[`&${s}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ce}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ce},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd: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:de},$e(B)),je(B)),{[`${s}-item, ${s}-submenu > ${s}-submenu-title`]:{borderRadius:De},[`${s}-submenu-title::after`]:{transition:`transform ${f} ${d}`}})}}),je(B)),{[`&-inline-collapsed ${s}-submenu-arrow,
|
|
&-inline ${s}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ge})`},"&::after":{transform:`rotate(45deg) translateX(-${ge})`}},[`${s}-submenu-open${s}-submenu-inline > ${s}-submenu-title > ${s}-submenu-arrow`]:{transform:`translateY(-${Fe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ge})`},"&::before":{transform:`rotate(45deg) translateX(${ge})`}}})},{[`${b}-layout-header`]:{[s]:{lineHeight:"inherit"}}}]};var nt=(B,b)=>(0,Ae.Z)("Menu",h=>{if(b===!1)return[];const{colorBgElevated:f,colorPrimary:$,colorTextLightSolid:d,controlHeightLG:m,fontSize:x,darkItemColor:l,darkDangerItemColor:R,darkItemBg:W,darkSubMenuItemBg:de,darkItemSelectedColor:De,darkItemSelectedBg:Fe,darkDangerItemSelectedBg:ge,darkItemHoverBg:ke,darkGroupTitleColor:Ce,darkItemHoverColor:ot,darkItemDisabledColor:_t,darkDangerItemHoverColor:j,darkDangerItemSelectedColor:bt,darkDangerItemActiveBg:ct}=h,vt=x/7*5,it=(0,F.TS)(h,{menuArrowSize:vt,menuHorizontalHeight:m*1.15,menuArrowOffset:`${vt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:f}),Rt=(0,F.TS)(it,{itemColor:l,itemHoverColor:ot,groupTitleColor:Ce,itemSelectedColor:De,itemBg:W,popupBg:W,subMenuItemBg:de,itemActiveBg:"transparent",itemSelectedBg:Fe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ke,itemDisabledColor:_t,dangerItemColor:R,dangerItemHoverColor:j,dangerItemSelectedColor:bt,dangerItemActiveBg:ct,dangerItemSelectedBg:ge,menuSubMenuBg:de,horizontalItemSelectedColor:d,horizontalItemSelectedBg:$});return[Xe(it),We(it),Ue(it),se(it,"light"),se(Rt,"dark"),Y(it),(0,Ie.Z)(it),(0,Se.oN)(it,"slide-up"),(0,Se.oN)(it,"slide-down"),(0,Oe._y)(it,"zoom-big")]},h=>{const{colorPrimary:f,colorError:$,colorTextDisabled:d,colorErrorBg:m,colorText:x,colorTextDescription:l,colorBgContainer:R,colorFillAlter:W,colorFillContent:de,lineWidth:De,lineWidthBold:Fe,controlItemBgActive:ge,colorBgTextHover:ke,controlHeightLG:Ce,lineHeight:ot,colorBgElevated:_t,marginXXS:j,padding:bt,fontSize:ct,controlHeightSM:vt,fontSizeLG:it,colorTextLightSolid:Rt,colorErrorHover:Ft}=h,Dt=new ie.C(Rt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:h.zIndexPopupBase+50,radiusItem:h.borderRadiusLG,itemBorderRadius:h.borderRadiusLG,radiusSubMenuItem:h.borderRadiusSM,subMenuItemBorderRadius:h.borderRadiusSM,colorItemText:x,itemColor:x,colorItemTextHover:x,itemHoverColor:x,colorItemTextHoverHorizontal:f,horizontalItemHoverColor:f,colorGroupTitle:l,groupTitleColor:l,colorItemTextSelected:f,itemSelectedColor:f,colorItemTextSelectedHorizontal:f,horizontalItemSelectedColor:f,colorItemBg:R,itemBg:R,colorItemBgHover:ke,itemHoverBg:ke,colorItemBgActive:de,itemActiveBg:ge,colorSubItemBg:W,subMenuItemBg:W,colorItemBgSelected:ge,itemSelectedBg:ge,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Fe,activeBarHeight:Fe,colorActiveBarBorderSize:De,activeBarBorderWidth:De,colorItemTextDisabled:d,itemDisabledColor:d,colorDangerItemText:$,dangerItemColor:$,colorDangerItemTextHover:$,dangerItemHoverColor:$,colorDangerItemTextSelected:$,dangerItemSelectedColor:$,colorDangerItemBgActive:m,dangerItemActiveBg:m,colorDangerItemBgSelected:m,dangerItemSelectedBg:m,itemMarginInline:h.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ce,groupTitleLineHeight:ot,collapsedWidth:Ce*2,popupBg:_t,itemMarginBlock:j,itemPaddingInline:bt,horizontalLineHeight:`${Ce*1.15}px`,iconSize:ct,iconMarginInlineEnd:vt-ct,collapsedIconSize:it,groupTitleFontSize:ct,darkItemDisabledColor:new ie.C(Rt).setAlpha(.25).toRgbString(),darkItemColor:Dt,darkDangerItemColor:$,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Rt,darkItemSelectedBg:f,darkDangerItemSelectedBg:$,darkItemHoverBg:"transparent",darkGroupTitleColor:Dt,darkItemHoverColor:Rt,darkDangerItemHoverColor:Ft,darkDangerItemSelectedColor:Rt,darkDangerItemActiveBg:$}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(B),Me=function(B,b){var s={};for(var h in B)Object.prototype.hasOwnProperty.call(B,h)&&b.indexOf(h)<0&&(s[h]=B[h]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,h=Object.getOwnPropertySymbols(B);f<h.length;f++)b.indexOf(h[f])<0&&Object.prototype.propertyIsEnumerable.call(B,h[f])&&(s[h[f]]=B[h[f]]);return s},Qe=(0,S.forwardRef)((B,b)=>{var s,h;const f=S.useContext(O.Z),$=f||{},{getPrefixCls:d,getPopupContainer:m,direction:x,menu:l}=S.useContext(_.E_),R=d(),{prefixCls:W,className:de,style:De,theme:Fe="light",expandIcon:ge,_internalDisableMenuItemTitleTooltip:ke,inlineCollapsed:Ce,siderCollapsed:ot,items:_t,children:j,rootClassName:bt,mode:ct,selectable:vt,onClick:it,overflowedIndicatorPopupClassName:Rt}=B,Ft=Me(B,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Dt=(0,re.Z)(Ft,["collapsedWidth"]),Ct=J(_t)||j;(s=$.validator)===null||s===void 0||s.call($,{mode:ct});const Kt=(0,L.useEvent)(function(){var dt;it==null||it.apply(void 0,arguments),(dt=$.onClick)===null||dt===void 0||dt.call($)}),zt=$.mode||ct,Re=vt!=null?vt:$.selectable,qe=S.useMemo(()=>ot!==void 0?ot:Ce,[Ce,ot]),Bt={horizontal:{motionName:`${R}-slide-up`},inline:(0,I.Z)(R),other:{motionName:`${R}-zoom-big`}},pt=d("menu",W||$.prefixCls),[$t,Pt]=nt(pt,!f),St=C()(`${pt}-${Fe}`,l==null?void 0:l.className,de);let Ot;if(typeof ge=="function")Ot=ge;else if(ge===null||ge===!1)Ot=null;else if($.expandIcon===null||$.expandIcon===!1)Ot=null;else{const dt=ge!=null?ge:$.expandIcon;Ot=(0,o.Tm)(dt,{className:C()(`${pt}-submenu-expand-icon`,(0,o.l$)(dt)?(h=dt.props)===null||h===void 0?void 0:h.className:"")})}const tt=S.useMemo(()=>({prefixCls:pt,inlineCollapsed:qe||!1,direction:x,firstLevel:!0,theme:Fe,mode:zt,disableMenuItemTitleTooltip:ke}),[pt,qe,x,ke,Fe]);return $t(S.createElement(O.Z.Provider,{value:null},S.createElement(we.Provider,{value:tt},S.createElement(a.ZP,Object.assign({getPopupContainer:m,overflowedIndicator:S.createElement(y.Z,null),overflowedIndicatorPopupClassName:C()(pt,`${pt}-${Fe}`,Rt),mode:zt,selectable:Re,onClick:Kt},Dt,{inlineCollapsed:qe,style:Object.assign(Object.assign({},l==null?void 0:l.style),De),className:St,prefixCls:pt,direction:x,defaultMotions:Bt,expandIcon:Ot,ref:b,rootClassName:C()(bt,Pt)}),Ct))))});const Je=(0,S.forwardRef)((B,b)=>{const s=(0,S.useRef)(null),h=S.useContext(M.D);return(0,S.useImperativeHandle)(b,()=>({menu:s.current,focus:f=>{var $;($=s.current)===null||$===void 0||$.focus(f)}})),S.createElement(Qe,Object.assign({ref:s},B,h))});Je.Item=te,Je.SubMenu=w,Je.Divider=N,Je.ItemGroup=a.BW;var et=Je},61621:function(ut,xe,u){"use strict";u.d(xe,{Z:function(){return b}});var a=u(92310),S=u.n(a),M=u(59301),P=u(36355),C=u(2738),ce=s=>{const{prefixCls:h,className:f,style:$,size:d,shape:m}=s,x=S()({[`${h}-lg`]:d==="large",[`${h}-sm`]:d==="small"}),l=S()({[`${h}-circle`]:m==="circle",[`${h}-square`]:m==="square",[`${h}-round`]:m==="round"}),R=M.useMemo(()=>typeof d=="number"?{width:d,height:d,lineHeight:`${d}px`}:{},[d]);return M.createElement("span",{className:S()(h,x,l,f),style:Object.assign(Object.assign({},R),$)})},ue=u(93083),N=u(83116),q=u(37613);const re=new ue.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)),H=s=>({background:s.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:re,animationDuration:s.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),we=s=>Object.assign({width:s*5,minWidth:s*5},Q(s)),ee=s=>{const{skeletonAvatarCls:h,gradientFromColor:f,controlHeight:$,controlHeightLG:d,controlHeightSM:m}=s;return{[`${h}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},o($)),[`${h}${h}-circle`]:{borderRadius:"50%"},[`${h}${h}-lg`]:Object.assign({},o(d)),[`${h}${h}-sm`]:Object.assign({},o(m))}},te=s=>{const{controlHeight:h,borderRadiusSM:f,skeletonInputCls:$,controlHeightLG:d,controlHeightSM:m,gradientFromColor:x}=s;return{[`${$}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:x,borderRadius:f},we(h)),[`${$}-lg`]:Object.assign({},we(d)),[`${$}-sm`]:Object.assign({},we(m))}},E=s=>Object.assign({width:s},Q(s)),w=s=>{const{skeletonImageCls:h,imageSizeBase:f,gradientFromColor:$,borderRadiusSM:d}=s;return{[`${h}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:$,borderRadius:d},E(f*2)),{[`${h}-path`]:{fill:"#bfbfbf"},[`${h}-svg`]:Object.assign(Object.assign({},E(f)),{maxWidth:f*4,maxHeight:f*4}),[`${h}-svg${h}-svg-circle`]:{borderRadius:"50%"}}),[`${h}${h}-circle`]:{borderRadius:"50%"}}},y=(s,h,f)=>{const{skeletonButtonCls:$}=s;return{[`${f}${$}-circle`]:{width:h,minWidth:h,borderRadius:"50%"},[`${f}${$}-round`]:{borderRadius:h}}},L=s=>Object.assign({width:s*2,minWidth:s*2},Q(s)),I=s=>{const{borderRadiusSM:h,skeletonButtonCls:f,controlHeight:$,controlHeightLG:d,controlHeightSM:m,gradientFromColor:x}=s;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${f}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:x,borderRadius:h,width:$*2,minWidth:$*2},L($))},y(s,$,f)),{[`${f}-lg`]:Object.assign({},L(d))}),y(s,d,`${f}-lg`)),{[`${f}-sm`]:Object.assign({},L(m))}),y(s,m,`${f}-sm`))},O=s=>{const{componentCls:h,skeletonAvatarCls:f,skeletonTitleCls:$,skeletonParagraphCls:d,skeletonButtonCls:m,skeletonInputCls:x,skeletonImageCls:l,controlHeight:R,controlHeightLG:W,controlHeightSM:de,gradientFromColor:De,padding:Fe,marginSM:ge,borderRadius:ke,titleHeight:Ce,blockRadius:ot,paragraphLiHeight:_t,controlHeightXS:j,paragraphMarginTop:bt}=s;return{[`${h}`]:{display:"table",width:"100%",[`${h}-header`]:{display:"table-cell",paddingInlineEnd:Fe,verticalAlign:"top",[`${f}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:De},o(R)),[`${f}-circle`]:{borderRadius:"50%"},[`${f}-lg`]:Object.assign({},o(W)),[`${f}-sm`]:Object.assign({},o(de))},[`${h}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${$}`]:{width:"100%",height:Ce,background:De,borderRadius:ot,[`+ ${d}`]:{marginBlockStart:de}},[`${d}`]:{padding:0,"> li":{width:"100%",height:_t,listStyle:"none",background:De,borderRadius:ot,"+ li":{marginBlockStart:j}}},[`${d}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${h}-content`]:{[`${$}, ${d} > li`]:{borderRadius:ke}}},[`${h}-with-avatar ${h}-content`]:{[`${$}`]:{marginBlockStart:ge,[`+ ${d}`]:{marginBlockStart:bt}}},[`${h}${h}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},I(s)),ee(s)),te(s)),w(s)),[`${h}${h}-block`]:{width:"100%",[`${m}`]:{width:"100%"},[`${x}`]:{width:"100%"}},[`${h}${h}-active`]:{[`
|
|
${$},
|
|
${d} > li,
|
|
${f},
|
|
${m},
|
|
${x},
|
|
${l}
|
|
`]:Object.assign({},H(s))}}};var T=(0,N.Z)("Skeleton",s=>{const{componentCls:h}=s,f=(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[O(f)]},s=>{const{colorFillContent:h,colorFill:f}=s,$=h,d=f;return{color:$,colorGradientEnd:d,gradientFromColor:$,gradientToColor:d,titleHeight:s.controlHeight/2,blockRadius:s.borderRadiusSM,paragraphMarginTop:s.marginLG+s.marginXXS,paragraphLiHeight:s.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),J=s=>{const{prefixCls:h,className:f,rootClassName:$,active:d,shape:m="circle",size:x="default"}=s,{getPrefixCls:l}=M.useContext(P.E_),R=l("skeleton",h),[W,de]=T(R),De=(0,C.Z)(s,["prefixCls","className"]),Fe=S()(R,`${R}-element`,{[`${R}-active`]:d},f,$,de);return W(M.createElement("div",{className:Fe},M.createElement(ce,Object.assign({prefixCls:`${R}-avatar`,shape:m,size:x},De))))},he=s=>{const{prefixCls:h,className:f,rootClassName:$,active:d,block:m=!1,size:x="default"}=s,{getPrefixCls:l}=M.useContext(P.E_),R=l("skeleton",h),[W,de]=T(R),De=(0,C.Z)(s,["prefixCls"]),Fe=S()(R,`${R}-element`,{[`${R}-active`]:d,[`${R}-block`]:m},f,$,de);return W(M.createElement("div",{className:Fe},M.createElement(ce,Object.assign({prefixCls:`${R}-button`,size:x},De))))};const Ie="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 Oe=s=>{const{prefixCls:h,className:f,rootClassName:$,style:d,active:m}=s,{getPrefixCls:x}=M.useContext(P.E_),l=x("skeleton",h),[R,W]=T(l),de=S()(l,`${l}-element`,{[`${l}-active`]:m},f,$,W);return R(M.createElement("div",{className:de},M.createElement("div",{className:S()(`${l}-image`,f),style:d},M.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},M.createElement("path",{d:Ie,className:`${l}-image-path`})))))},F=s=>{const{prefixCls:h,className:f,rootClassName:$,active:d,block:m,size:x="default"}=s,{getPrefixCls:l}=M.useContext(P.E_),R=l("skeleton",h),[W,de]=T(R),De=(0,C.Z)(s,["prefixCls"]),Fe=S()(R,`${R}-element`,{[`${R}-active`]:d,[`${R}-block`]:m},f,$,de);return W(M.createElement("div",{className:Fe},M.createElement(ce,Object.assign({prefixCls:`${R}-input`,size:x},De))))},Ge=u(92413),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Z=We,Y=u(7657),Be=function(h,f){return M.createElement(Y.Z,(0,Ge.Z)({},h,{ref:f,icon:Z}))},Ee=M.forwardRef(Be),se=Ee,_e=s=>{const{prefixCls:h,className:f,rootClassName:$,style:d,active:m,children:x}=s,{getPrefixCls:l}=M.useContext(P.E_),R=l("skeleton",h),[W,de]=T(R),De=S()(R,`${R}-element`,{[`${R}-active`]:m},de,f,$),Fe=x!=null?x:M.createElement(se,null);return W(M.createElement("div",{className:De},M.createElement("div",{className:S()(`${R}-image`,f),style:d},Fe)))},Ue=u(26407),je=s=>{const h=l=>{const{width:R,rows:W=2}=s;if(Array.isArray(R))return R[l];if(W-1===l)return R},{prefixCls:f,className:$,style:d,rows:m}=s,x=(0,Ue.Z)(Array(m)).map((l,R)=>M.createElement("li",{key:R,style:{width:h(R)}}));return M.createElement("ul",{className:S()(f,$),style:d},x)},nt=s=>{let{prefixCls:h,className:f,width:$,style:d}=s;return M.createElement("h3",{className:S()(h,f),style:Object.assign({width:$},d)})};function Me(s){return s&&typeof s=="object"?s:{}}function He(s,h){return s&&!h?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Qe(s,h){return!s&&h?{width:"38%"}:s&&h?{width:"50%"}:{}}function Je(s,h){const f={};return(!s||!h)&&(f.width="61%"),!s&&h?f.rows=3:f.rows=2,f}const et=s=>{const{prefixCls:h,loading:f,className:$,rootClassName:d,style:m,children:x,avatar:l=!1,title:R=!0,paragraph:W=!0,active:de,round:De}=s,{getPrefixCls:Fe,direction:ge,skeleton:ke}=M.useContext(P.E_),Ce=Fe("skeleton",h),[ot,_t]=T(Ce);if(f||!("loading"in s)){const j=!!l,bt=!!R,ct=!!W;let vt;if(j){const Ft=Object.assign(Object.assign({prefixCls:`${Ce}-avatar`},He(bt,ct)),Me(l));vt=M.createElement("div",{className:`${Ce}-header`},M.createElement(ce,Object.assign({},Ft)))}let it;if(bt||ct){let Ft;if(bt){const Ct=Object.assign(Object.assign({prefixCls:`${Ce}-title`},Qe(j,ct)),Me(R));Ft=M.createElement(nt,Object.assign({},Ct))}let Dt;if(ct){const Ct=Object.assign(Object.assign({prefixCls:`${Ce}-paragraph`},Je(j,bt)),Me(W));Dt=M.createElement(je,Object.assign({},Ct))}it=M.createElement("div",{className:`${Ce}-content`},Ft,Dt)}const Rt=S()(Ce,{[`${Ce}-with-avatar`]:j,[`${Ce}-active`]:de,[`${Ce}-rtl`]:ge==="rtl",[`${Ce}-round`]:De},ke==null?void 0:ke.className,$,d,_t);return ot(M.createElement("div",{className:Rt,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),m)},vt,it))}return typeof x!="undefined"?x:null};et.Button=he,et.Avatar=J,et.Input=F,et.Image=Oe,et.Node=_e;var B=et,b=B},81327:function(ut,xe,u){"use strict";u.d(xe,{Z:function(){return te}});var a=u(59301),S=u(92310),M=u.n(S),P=u(11592),C=u(36355),_=u(33234);const ce=a.createContext({latestIndex:0}),ue=ce.Provider;var q=E=>{let{className:w,index:y,children:L,split:I,style:O}=E;const{latestIndex:T}=a.useContext(ce);return L==null?null:a.createElement(a.Fragment,null,a.createElement("div",{className:w,style:O},L),y<T&&I&&a.createElement("span",{className:`${w}-split`},I))},re=u(2856);function Q(E){return["small","middle","large"].includes(E)}function o(E){return E?typeof E=="number"&&!Number.isNaN(E):!1}var H=function(E,w){var y={};for(var L in E)Object.prototype.hasOwnProperty.call(E,L)&&w.indexOf(L)<0&&(y[L]=E[L]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,L=Object.getOwnPropertySymbols(E);I<L.length;I++)w.indexOf(L[I])<0&&Object.prototype.propertyIsEnumerable.call(E,L[I])&&(y[L[I]]=E[L[I]]);return y};const ee=a.forwardRef((E,w)=>{var y,L;const{getPrefixCls:I,space:O,direction:T}=a.useContext(C.E_),{size:A=(O==null?void 0:O.size)||"small",align:J,className:ie,rootClassName:he,children:Ie,direction:Se="horizontal",prefixCls:Oe,split:Ae,style:F,wrap:Ge=!1,classNames:We,styles:Z}=E,Y=H(E,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Be,Ee]=Array.isArray(A)?A:[A,A],se=Q(Ee),ae=Q(Be),_e=o(Ee),Ue=o(Be),$e=(0,P.Z)(Ie,{keepEmpty:!0}),je=J===void 0&&Se==="horizontal"?"center":J,Xe=I("space",Oe),[nt,Me]=(0,re.Z)(Xe),He=M()(Xe,O==null?void 0:O.className,Me,`${Xe}-${Se}`,{[`${Xe}-rtl`]:T==="rtl",[`${Xe}-align-${je}`]:je,[`${Xe}-gap-row-${Ee}`]:se,[`${Xe}-gap-col-${Be}`]:ae},ie,he),Qe=M()(`${Xe}-item`,(y=We==null?void 0:We.item)!==null&&y!==void 0?y:(L=O==null?void 0:O.classNames)===null||L===void 0?void 0:L.item);let Je=0;const et=$e.map((s,h)=>{var f,$;s!=null&&(Je=h);const d=s&&s.key||`${Qe}-${h}`;return a.createElement(q,{className:Qe,key:d,index:h,split:Ae,style:(f=Z==null?void 0:Z.item)!==null&&f!==void 0?f:($=O==null?void 0:O.styles)===null||$===void 0?void 0:$.item},s)}),B=a.useMemo(()=>({latestIndex:Je}),[Je]);if($e.length===0)return null;const b={};return Ge&&(b.flexWrap="wrap"),!ae&&Ue&&(b.columnGap=Be),!se&&_e&&(b.rowGap=Ee),nt(a.createElement("div",Object.assign({ref:w,className:He,style:Object.assign(Object.assign(Object.assign({},b),O==null?void 0:O.style),F)},Y),a.createElement(ue,{value:B},et)))});ee.Compact=_.ZP;var te=ee},8378:function(ut,xe){"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`}}});xe.Z=u},92899:function(ut,xe,u){"use strict";u.d(xe,{Fm:function(){return Q}});var a=u(93083),S=u(95406);const M=new a.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P=new a.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),C=new a.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_=new a.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ce=new a.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ue=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}}),re={"move-up":{inKeyframes:N,outKeyframes:q},"move-down":{inKeyframes:M,outKeyframes:P},"move-left":{inKeyframes:C,outKeyframes:_},"move-right":{inKeyframes:ce,outKeyframes:ue}},Q=(o,H)=>{const{antCls:we}=o,ee=`${we}-${H}`,{inKeyframes:te,outKeyframes:E}=re[H];return[(0,S.R)(ee,te,E,o.motionDurationMid),{[`
|
|
${ee}-enter,
|
|
${ee}-appear
|
|
`]:{opacity:0,animationTimingFunction:o.motionEaseOutCirc},[`${ee}-leave`]:{animationTimingFunction:o.motionEaseInOutCirc}}]}},13826:function(ut,xe,u){"use strict";u.d(xe,{Qt:function(){return C},Uw:function(){return P},fJ:function(){return M},ly:function(){return _},oN:function(){return Q}});var a=u(93083),S=u(95406);const M=new a.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),P=new a.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),C=new a.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),_=new a.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ce=new a.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ue=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}}),re={"slide-up":{inKeyframes:M,outKeyframes:P},"slide-down":{inKeyframes:C,outKeyframes:_},"slide-left":{inKeyframes:ce,outKeyframes:ue},"slide-right":{inKeyframes:N,outKeyframes:q}},Q=(o,H)=>{const{antCls:we}=o,ee=`${we}-${H}`,{inKeyframes:te,outKeyframes:E}=re[H];return[(0,S.R)(ee,te,E,o.motionDurationMid),{[`
|
|
${ee}-enter,
|
|
${ee}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:o.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${ee}-leave`]:{animationTimingFunction:o.motionEaseInQuint}}]}},3867:function(ut,xe,u){var a=u(97671);(function(S,M){ut.exports=M()})(this,function(){"use strict";function S(d){var m=typeof d;return d!==null&&(m==="object"||m==="function")}function M(d){return typeof d=="function"}var P=void 0;Array.isArray?P=Array.isArray:P=function(d){return Object.prototype.toString.call(d)==="[object Array]"};var C=P,_=0,ce=void 0,ue=void 0,N=function(m,x){I[_]=m,I[_+1]=x,_+=2,_===2&&(ue?ue(O):A())};function q(d){ue=d}function re(d){N=d}var Q=typeof window!="undefined"?window:void 0,o=Q||{},H=o.MutationObserver||o.WebKitMutationObserver,we=typeof self=="undefined"&&typeof a!="undefined"&&{}.toString.call(a)==="[object process]",ee=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function te(){return function(){return a.nextTick(O)}}function E(){return typeof ce!="undefined"?function(){ce(O)}:L()}function w(){var d=0,m=new H(O),x=document.createTextNode("");return m.observe(x,{characterData:!0}),function(){x.data=d=++d%2}}function y(){var d=new MessageChannel;return d.port1.onmessage=O,function(){return d.port2.postMessage(0)}}function L(){var d=setTimeout;return function(){return d(O,1)}}var I=new Array(1e3);function O(){for(var d=0;d<_;d+=2){var m=I[d],x=I[d+1];m(x),I[d]=void 0,I[d+1]=void 0}_=0}function T(){try{var d=Function("return this")().require("vertx");return ce=d.runOnLoop||d.runOnContext,E()}catch(m){return L()}}var A=void 0;we?A=te():H?A=w():ee?A=y():Q===void 0?A=T():A=L();function J(d,m){var x=this,l=new this.constructor(Ie);l[he]===void 0&&He(l);var R=x._state;if(R){var W=arguments[R-1];N(function(){return je(R,l,W,x._result)})}else Ue(x,l,d,m);return l}function ie(d){var m=this;if(d&&typeof d=="object"&&d.constructor===m)return d;var x=new m(Ie);return Ee(x,d),x}var he=Math.random().toString(36).substring(2);function Ie(){}var Se=void 0,Oe=1,Ae=2;function F(){return new TypeError("You cannot resolve a promise with itself")}function Ge(){return new TypeError("A promises callback cannot return that same promise.")}function We(d,m,x,l){try{d.call(m,x,l)}catch(R){return R}}function Z(d,m,x){N(function(l){var R=!1,W=We(x,m,function(de){R||(R=!0,m!==de?Ee(l,de):ae(l,de))},function(de){R||(R=!0,_e(l,de))},"Settle: "+(l._label||" unknown promise"));!R&&W&&(R=!0,_e(l,W))},d)}function Y(d,m){m._state===Oe?ae(d,m._result):m._state===Ae?_e(d,m._result):Ue(m,void 0,function(x){return Ee(d,x)},function(x){return _e(d,x)})}function Be(d,m,x){m.constructor===d.constructor&&x===J&&m.constructor.resolve===ie?Y(d,m):x===void 0?ae(d,m):M(x)?Z(d,m,x):ae(d,m)}function Ee(d,m){if(d===m)_e(d,F());else if(S(m)){var x=void 0;try{x=m.then}catch(l){_e(d,l);return}Be(d,m,x)}else ae(d,m)}function se(d){d._onerror&&d._onerror(d._result),$e(d)}function ae(d,m){d._state===Se&&(d._result=m,d._state=Oe,d._subscribers.length!==0&&N($e,d))}function _e(d,m){d._state===Se&&(d._state=Ae,d._result=m,N(se,d))}function Ue(d,m,x,l){var R=d._subscribers,W=R.length;d._onerror=null,R[W]=m,R[W+Oe]=x,R[W+Ae]=l,W===0&&d._state&&N($e,d)}function $e(d){var m=d._subscribers,x=d._state;if(m.length!==0){for(var l=void 0,R=void 0,W=d._result,de=0;de<m.length;de+=3)l=m[de],R=m[de+x],l?je(x,l,R,W):R(W);d._subscribers.length=0}}function je(d,m,x,l){var R=M(x),W=void 0,de=void 0,De=!0;if(R){try{W=x(l)}catch(Fe){De=!1,de=Fe}if(m===W){_e(m,Ge());return}}else W=l;m._state!==Se||(R&&De?Ee(m,W):De===!1?_e(m,de):d===Oe?ae(m,W):d===Ae&&_e(m,W))}function Xe(d,m){try{m(function(l){Ee(d,l)},function(l){_e(d,l)})}catch(x){_e(d,x)}}var nt=0;function Me(){return nt++}function He(d){d[he]=nt++,d._state=void 0,d._result=void 0,d._subscribers=[]}function Qe(){return new Error("Array Methods must be provided an Array")}var Je=function(){function d(m,x){this._instanceConstructor=m,this.promise=new m(Ie),this.promise[he]||He(this.promise),C(x)?(this.length=x.length,this._remaining=x.length,this._result=new Array(this.length),this.length===0?ae(this.promise,this._result):(this.length=this.length||0,this._enumerate(x),this._remaining===0&&ae(this.promise,this._result))):_e(this.promise,Qe())}return d.prototype._enumerate=function(x){for(var l=0;this._state===Se&&l<x.length;l++)this._eachEntry(x[l],l)},d.prototype._eachEntry=function(x,l){var R=this._instanceConstructor,W=R.resolve;if(W===ie){var de=void 0,De=void 0,Fe=!1;try{de=x.then}catch(ke){Fe=!0,De=ke}if(de===J&&x._state!==Se)this._settledAt(x._state,l,x._result);else if(typeof de!="function")this._remaining--,this._result[l]=x;else if(R===f){var ge=new R(Ie);Fe?_e(ge,De):Be(ge,x,de),this._willSettleAt(ge,l)}else this._willSettleAt(new R(function(ke){return ke(x)}),l)}else this._willSettleAt(W(x),l)},d.prototype._settledAt=function(x,l,R){var W=this.promise;W._state===Se&&(this._remaining--,x===Ae?_e(W,R):this._result[l]=R),this._remaining===0&&ae(W,this._result)},d.prototype._willSettleAt=function(x,l){var R=this;Ue(x,void 0,function(W){return R._settledAt(Oe,l,W)},function(W){return R._settledAt(Ae,l,W)})},d}();function et(d){return new Je(this,d).promise}function B(d){var m=this;return C(d)?new m(function(x,l){for(var R=d.length,W=0;W<R;W++)m.resolve(d[W]).then(x,l)}):new m(function(x,l){return l(new TypeError("You must pass an array to race."))})}function b(d){var m=this,x=new m(Ie);return _e(x,d),x}function s(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function h(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var f=function(){function d(m){this[he]=Me(),this._result=this._state=void 0,this._subscribers=[],Ie!==m&&(typeof m!="function"&&s(),this instanceof d?Xe(this,m):h())}return d.prototype.catch=function(x){return this.then(null,x)},d.prototype.finally=function(x){var l=this,R=l.constructor;return M(x)?l.then(function(W){return R.resolve(x()).then(function(){return W})},function(W){return R.resolve(x()).then(function(){throw W})}):l.then(x,x)},d}();f.prototype.then=J,f.all=et,f.race=B,f.resolve=ie,f.reject=b,f._setScheduler=q,f._setAsap=re,f._asap=N;function $(){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 x=null;try{x=Object.prototype.toString.call(m.resolve())}catch(l){}if(x==="[object Promise]"&&!m.cast)return}d.Promise=f}return f.polyfill=$,f.Promise=f,f})},86204:function(ut){"use strict";var xe=typeof Reflect=="object"?Reflect:null,u=xe&&typeof xe.apply=="function"?xe.apply:function(y,L,I){return Function.prototype.apply.call(y,L,I)},a;xe&&typeof xe.ownKeys=="function"?a=xe.ownKeys:Object.getOwnPropertySymbols?a=function(y){return Object.getOwnPropertyNames(y).concat(Object.getOwnPropertySymbols(y))}:a=function(y){return Object.getOwnPropertyNames(y)};function S(w){console&&console.warn&&console.warn(w)}var M=Number.isNaN||function(y){return y!==y};function P(){P.init.call(this)}ut.exports=P,ut.exports.once=ee,P.EventEmitter=P,P.prototype._events=void 0,P.prototype._eventsCount=0,P.prototype._maxListeners=void 0;var C=10;function _(w){if(typeof w!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof w)}Object.defineProperty(P,"defaultMaxListeners",{enumerable:!0,get:function(){return C},set:function(w){if(typeof w!="number"||w<0||M(w))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+w+".");C=w}}),P.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},P.prototype.setMaxListeners=function(y){if(typeof y!="number"||y<0||M(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 ce(w){return w._maxListeners===void 0?P.defaultMaxListeners:w._maxListeners}P.prototype.getMaxListeners=function(){return ce(this)},P.prototype.emit=function(y){for(var L=[],I=1;I<arguments.length;I++)L.push(arguments[I]);var O=y==="error",T=this._events;if(T!==void 0)O=O&&T.error===void 0;else if(!O)return!1;if(O){var A;if(L.length>0&&(A=L[0]),A instanceof Error)throw A;var J=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw J.context=A,J}var ie=T[y];if(ie===void 0)return!1;if(typeof ie=="function")u(ie,this,L);else for(var he=ie.length,Ie=o(ie,he),I=0;I<he;++I)u(Ie[I],this,L);return!0};function ue(w,y,L,I){var O,T,A;if(_(L),T=w._events,T===void 0?(T=w._events=Object.create(null),w._eventsCount=0):(T.newListener!==void 0&&(w.emit("newListener",y,L.listener?L.listener:L),T=w._events),A=T[y]),A===void 0)A=T[y]=L,++w._eventsCount;else if(typeof A=="function"?A=T[y]=I?[L,A]:[A,L]:I?A.unshift(L):A.push(L),O=ce(w),O>0&&A.length>O&&!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,S(J)}return w}P.prototype.addListener=function(y,L){return ue(this,y,L,!1)},P.prototype.on=P.prototype.addListener,P.prototype.prependListener=function(y,L){return ue(this,y,L,!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,L){var I={fired:!1,wrapFn:void 0,target:w,type:y,listener:L},O=N.bind(I);return O.listener=L,I.wrapFn=O,O}P.prototype.once=function(y,L){return _(L),this.on(y,q(this,y,L)),this},P.prototype.prependOnceListener=function(y,L){return _(L),this.prependListener(y,q(this,y,L)),this},P.prototype.removeListener=function(y,L){var I,O,T,A,J;if(_(L),O=this._events,O===void 0)return this;if(I=O[y],I===void 0)return this;if(I===L||I.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete O[y],O.removeListener&&this.emit("removeListener",y,I.listener||L));else if(typeof I!="function"){for(T=-1,A=I.length-1;A>=0;A--)if(I[A]===L||I[A].listener===L){J=I[A].listener,T=A;break}if(T<0)return this;T===0?I.shift():H(I,T),I.length===1&&(O[y]=I[0]),O.removeListener!==void 0&&this.emit("removeListener",y,J||L)}return this},P.prototype.off=P.prototype.removeListener,P.prototype.removeAllListeners=function(y){var L,I,O;if(I=this._events,I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[y]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[y]),this;if(arguments.length===0){var T=Object.keys(I),A;for(O=0;O<T.length;++O)A=T[O],A!=="removeListener"&&this.removeAllListeners(A);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=I[y],typeof L=="function")this.removeListener(y,L);else if(L!==void 0)for(O=L.length-1;O>=0;O--)this.removeListener(y,L[O]);return this};function re(w,y,L){var I=w._events;if(I===void 0)return[];var O=I[y];return O===void 0?[]:typeof O=="function"?L?[O.listener||O]:[O]:L?we(O):o(O,O.length)}P.prototype.listeners=function(y){return re(this,y,!0)},P.prototype.rawListeners=function(y){return re(this,y,!1)},P.listenerCount=function(w,y){return typeof w.listenerCount=="function"?w.listenerCount(y):Q.call(w,y)},P.prototype.listenerCount=Q;function Q(w){var y=this._events;if(y!==void 0){var L=y[w];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}P.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function o(w,y){for(var L=new Array(y),I=0;I<y;++I)L[I]=w[I];return L}function H(w,y){for(;y+1<w.length;y++)w[y]=w[y+1];w.pop()}function we(w){for(var y=new Array(w.length),L=0;L<y.length;++L)y[L]=w[L].listener||w[L];return y}function ee(w,y){return new Promise(function(L,I){function O(A){w.removeListener(y,T),I(A)}function T(){typeof w.removeListener=="function"&&w.removeListener("error",O),L([].slice.call(arguments))}E(w,y,T,{once:!0}),y!=="error"&&te(w,O,{once:!0})})}function te(w,y,L){typeof w.on=="function"&&E(w,"error",y,L)}function E(w,y,L,I){if(typeof w.on=="function")I.once?w.once(y,L):w.on(y,L);else if(typeof w.addEventListener=="function")w.addEventListener(y,function O(T){I.once&&w.removeEventListener(y,O),L(T)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof w)}},31561:function(ut,xe,u){"use strict";u.d(xe,{Z:function(){return T}});var a=u(92413),S=u(400),M=u(33606),P=u(37061),C=u(35593),_=u(92310),ce=u.n(_),ue=u(8654),N=u(59301),q=u(10228),re=u(16089),Q=q.Z.ESC,o=q.Z.TAB;function H(A){var J=A.visible,ie=A.triggerRef,he=A.onVisibleChange,Ie=A.autoFocus,Se=A.overlayRef,Oe=N.useRef(!1),Ae=function(){if(J){var Z,Y;(Z=ie.current)===null||Z===void 0||(Y=Z.focus)===null||Y===void 0||Y.call(Z),he==null||he(!1)}},F=function(){var Z;return(Z=Se.current)!==null&&Z!==void 0&&Z.focus?(Se.current.focus(),Oe.current=!0,!0):!1},Ge=function(Z){switch(Z.keyCode){case Q:Ae();break;case o:{var Y=!1;Oe.current||(Y=F()),Y?Z.preventDefault():Ae();break}}};N.useEffect(function(){return J?(window.addEventListener("keydown",Ge),Ie&&(0,re.Z)(F,3),function(){window.removeEventListener("keydown",Ge),Oe.current=!1}):function(){Oe.current=!1}},[J])}var we=(0,N.forwardRef)(function(A,J){var ie=A.overlay,he=A.arrow,Ie=A.prefixCls,Se=(0,N.useMemo)(function(){var Ae;return typeof ie=="function"?Ae=ie():Ae=ie,Ae},[ie]),Oe=(0,ue.sQ)(J,Se==null?void 0:Se.ref);return N.createElement(N.Fragment,null,he&&N.createElement("div",{className:"".concat(Ie,"-arrow")}),N.cloneElement(Se,{ref:(0,ue.Yr)(Se)?Oe:void 0}))}),ee=we,te={adjustX:1,adjustY:1},E=[0,0],w={topLeft:{points:["bl","tl"],overflow:te,offset:[0,-4],targetOffset:E},top:{points:["bc","tc"],overflow:te,offset:[0,-4],targetOffset:E},topRight:{points:["br","tr"],overflow:te,offset:[0,-4],targetOffset:E},bottomLeft:{points:["tl","bl"],overflow:te,offset:[0,4],targetOffset:E},bottom:{points:["tc","bc"],overflow:te,offset:[0,4],targetOffset:E},bottomRight:{points:["tr","br"],overflow:te,offset:[0,4],targetOffset:E}},y=w,L=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function I(A,J){var ie,he=A.arrow,Ie=he===void 0?!1:he,Se=A.prefixCls,Oe=Se===void 0?"rc-dropdown":Se,Ae=A.transitionName,F=A.animation,Ge=A.align,We=A.placement,Z=We===void 0?"bottomLeft":We,Y=A.placements,Be=Y===void 0?y:Y,Ee=A.getPopupContainer,se=A.showAction,ae=A.hideAction,_e=A.overlayClassName,Ue=A.overlayStyle,$e=A.visible,je=A.trigger,Xe=je===void 0?["hover"]:je,nt=A.autoFocus,Me=A.overlay,He=A.children,Qe=A.onVisibleChange,Je=(0,P.Z)(A,L),et=N.useState(),B=(0,M.Z)(et,2),b=B[0],s=B[1],h="visible"in A?$e:b,f=N.useRef(null),$=N.useRef(null),d=N.useRef(null);N.useImperativeHandle(J,function(){return f.current});var m=function(ke){s(ke),Qe==null||Qe(ke)};H({visible:h,triggerRef:d,onVisibleChange:m,autoFocus:nt,overlayRef:$});var x=function(ke){var Ce=A.onOverlayClick;s(!1),Ce&&Ce(ke)},l=function(){return N.createElement(ee,{ref:$,overlay:Me,prefixCls:Oe,arrow:Ie})},R=function(){return typeof Me=="function"?l:l()},W=function(){var ke=A.minOverlayWidthMatchTrigger,Ce=A.alignPoint;return"minOverlayWidthMatchTrigger"in A?ke:!Ce},de=function(){var ke=A.openClassName;return ke!==void 0?ke:"".concat(Oe,"-open")},De=N.cloneElement(He,{className:ce()((ie=He.props)===null||ie===void 0?void 0:ie.className,h&&de()),ref:(0,ue.Yr)(He)?(0,ue.sQ)(d,He.ref):void 0}),Fe=ae;return!Fe&&Xe.indexOf("contextMenu")!==-1&&(Fe=["click"]),N.createElement(C.Z,(0,a.Z)({builtinPlacements:Be},Je,{prefixCls:Oe,ref:f,popupClassName:ce()(_e,(0,S.Z)({},"".concat(Oe,"-show-arrow"),Ie)),popupStyle:Ue,action:Xe,showAction:se,hideAction:Fe,popupPlacement:Z,popupAlign:Ge,popupTransitionName:Ae,popupAnimation:F,popupVisible:h,stretch:W()?"minWidth":"",popup:R(),onPopupVisibleChange:m,onPopupClick:x,getPopupContainer:Ee}),De)}var O=N.forwardRef(I),T=O},15285:function(ut,xe,u){"use strict";u.d(xe,{iz:function(){return me},ck:function(){return Re},BW:function(){return Ne},sN:function(){return Re},Wd:function(){return V},ZP:function(){return pe},Xl:function(){return ie}});var a=u(92413),S=u(400),M=u(33708),P=u(26407),C=u(33606),_=u(37061),ce=u(92310),ue=u.n(ce),N=u(11780),q=u(18929),re=u(13697),Q=u(48736),o=u(59301),H=u(4676),we=o.createContext(null);function ee(p,v){return p===void 0?null:"".concat(p,"-").concat(v)}function te(p){var v=o.useContext(we);return ee(v,p)}var E=u(80547),w=["children","locked"],y=o.createContext(null);function L(p,v){var D=(0,M.Z)({},p);return Object.keys(v).forEach(function(U){var k=v[U];k!==void 0&&(D[U]=k)}),D}function I(p){var v=p.children,D=p.locked,U=(0,_.Z)(p,w),k=o.useContext(y),X=(0,E.Z)(function(){return L(k,U)},[k,U],function(z,be){return!D&&(z[0]!==be[0]||!(0,re.Z)(z[1],be[1],!0))});return o.createElement(y.Provider,{value:X},v)}var O=[],T=o.createContext(null);function A(){return o.useContext(T)}var J=o.createContext(O);function ie(p){var v=o.useContext(J);return o.useMemo(function(){return p!==void 0?[].concat((0,P.Z)(v),[p]):v},[v,p])}var he=o.createContext(null),Ie=o.createContext({}),Se=Ie,Oe=u(29194);function Ae(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,Oe.Z)(p)){var D=p.nodeName.toLowerCase(),U=["input","select","textarea","button"].includes(D)||p.isContentEditable||D==="a"&&!!p.getAttribute("href"),k=p.getAttribute("tabindex"),X=Number(k),z=null;return k&&!Number.isNaN(X)?z=X:U&&z===null&&(z=0),U&&p.disabled&&(z=null),z!==null&&(z>=0||v&&z<0)}return!1}function F(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,D=(0,P.Z)(p.querySelectorAll("*")).filter(function(U){return Ae(U,v)});return Ae(p,v)&&D.unshift(p),D}var Ge=null;function We(){Ge=document.activeElement}function Z(){Ge=null}function Y(){if(Ge)try{Ge.focus()}catch(p){}}function Be(p,v){if(v.keyCode===9){var D=F(p),U=D[v.shiftKey?0:D.length-1],k=U===document.activeElement||p===document.activeElement;if(k){var X=D[v.shiftKey?D.length-1:0];X.focus(),v.preventDefault()}}}var Ee=u(10228),se=u(16089),ae=Ee.Z.LEFT,_e=Ee.Z.RIGHT,Ue=Ee.Z.UP,$e=Ee.Z.DOWN,je=Ee.Z.ENTER,Xe=Ee.Z.ESC,nt=Ee.Z.HOME,Me=Ee.Z.END,He=[Ue,$e,ae,_e];function Qe(p,v,D,U){var k,X,z,be,Ze="prev",Te="next",Ke="children",Pe="parent";if(p==="inline"&&U===je)return{inlineTrigger:!0};var rt=(k={},(0,S.Z)(k,Ue,Ze),(0,S.Z)(k,$e,Te),k),ht=(X={},(0,S.Z)(X,ae,D?Te:Ze),(0,S.Z)(X,_e,D?Ze:Te),(0,S.Z)(X,$e,Ke),(0,S.Z)(X,je,Ke),X),st=(z={},(0,S.Z)(z,Ue,Ze),(0,S.Z)(z,$e,Te),(0,S.Z)(z,je,Ke),(0,S.Z)(z,Xe,Pe),(0,S.Z)(z,ae,D?Ke:Pe),(0,S.Z)(z,_e,D?Pe:Ke),z),kt={inline:rt,horizontal:ht,vertical:st,inlineSub:rt,horizontalSub:st,verticalSub:st},It=(be=kt["".concat(p).concat(v?"":"Sub")])===null||be===void 0?void 0:be[U];switch(It){case Ze:return{offset:-1,sibling:!0};case Te:return{offset:1,sibling:!0};case Pe:return{offset:-1,sibling:!1};case Ke:return{offset:1,sibling:!1};default:return null}}function Je(p){for(var v=p;v;){if(v.getAttribute("data-menu-list"))return v;v=v.parentElement}return null}function et(p,v){for(var D=p||document.activeElement;D;){if(v.has(D))return D;D=D.parentElement}return null}function B(p,v){var D=F(p,!0);return D.filter(function(U){return v.has(U)})}function b(p,v,D){var U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!p)return null;var k=B(p,v),X=k.length,z=k.findIndex(function(be){return D===be});return U<0?z===-1?z=X-1:z-=1:U>0&&(z+=1),z=(z+X)%X,k[z]}var s=function(v,D){var U=new Set,k=new Map,X=new Map;return v.forEach(function(z){var be=document.querySelector("[data-menu-id='".concat(ee(D,z),"']"));be&&(U.add(be),X.set(be,z),k.set(z,be))}),{elements:U,key2element:k,element2key:X}};function h(p,v,D,U,k,X,z,be,Ze,Te){var Ke=o.useRef(),Pe=o.useRef();Pe.current=v;var rt=function(){se.Z.cancel(Ke.current)};return o.useEffect(function(){return function(){rt()}},[]),function(ht){var st=ht.which;if([].concat(He,[je,Xe,nt,Me]).includes(st)){var kt=X(),It=s(kt,U),Tt=It,ft=Tt.elements,lt=Tt.key2element,at=Tt.element2key,xt=lt.get(v),gt=et(xt,ft),Nt=at.get(gt),yt=Qe(p,z(Nt,!0).length===1,D,st);if(!yt&&st!==nt&&st!==Me)return;(He.includes(st)||[nt,Me].includes(st))&&ht.preventDefault();var tn=function(Ht){if(Ht){var nn=Ht,rn=Ht.querySelector("a");rn!=null&&rn.getAttribute("href")&&(nn=rn);var sn=at.get(Ht);be(sn),rt(),Ke.current=(0,se.Z)(function(){Pe.current===sn&&nn.focus()})}};if([nt,Me].includes(st)||yt.sibling||!gt){var At;!gt||p==="inline"?At=k.current:At=Je(gt);var Gt,Ut=B(At,ft);st===nt?Gt=Ut[0]:st===Me?Gt=Ut[Ut.length-1]:Gt=b(At,ft,gt,yt.offset),tn(Gt)}else if(yt.inlineTrigger)Ze(Nt);else if(yt.offset>0)Ze(Nt,!0),rt(),Ke.current=(0,se.Z)(function(){It=s(kt,U);var un=gt.getAttribute("aria-controls"),Ht=document.getElementById(un),nn=b(Ht,It.elements);tn(nn)},5);else if(yt.offset<0){var jt=z(Nt,!0),Yt=jt[jt.length-2],Qt=lt.get(Yt);Ze(Yt,!1),tn(Qt)}}Te==null||Te(ht)}}function f(p){Promise.resolve().then(p)}var $="__RC_UTIL_PATH_SPLIT__",d=function(v){return v.join($)},m=function(v){return v.split($)},x="rc-menu-more";function l(){var p=o.useState({}),v=(0,C.Z)(p,2),D=v[1],U=(0,o.useRef)(new Map),k=(0,o.useRef)(new Map),X=o.useState([]),z=(0,C.Z)(X,2),be=z[0],Ze=z[1],Te=(0,o.useRef)(0),Ke=(0,o.useRef)(!1),Pe=function(){Ke.current||D({})},rt=(0,o.useCallback)(function(lt,at){var xt=d(at);k.current.set(xt,lt),U.current.set(lt,xt),Te.current+=1;var gt=Te.current;f(function(){gt===Te.current&&Pe()})},[]),ht=(0,o.useCallback)(function(lt,at){var xt=d(at);k.current.delete(xt),U.current.delete(lt)},[]),st=(0,o.useCallback)(function(lt){Ze(lt)},[]),kt=(0,o.useCallback)(function(lt,at){var xt=U.current.get(lt)||"",gt=m(xt);return at&&be.includes(gt[0])&>.unshift(x),gt},[be]),It=(0,o.useCallback)(function(lt,at){return lt.some(function(xt){var gt=kt(xt,!0);return gt.includes(at)})},[kt]),Tt=function(){var at=(0,P.Z)(U.current.keys());return be.length&&at.push(x),at},ft=(0,o.useCallback)(function(lt){var at="".concat(U.current.get(lt)).concat($),xt=new Set;return(0,P.Z)(k.current.keys()).forEach(function(gt){gt.startsWith(at)&&xt.add(k.current.get(gt))}),xt},[]);return o.useEffect(function(){return function(){Ke.current=!0}},[]),{registerPath:rt,unregisterPath:ht,refreshOverflowKeys:st,isSubPathKey:It,getKeyPath:kt,getKeys:Tt,getSubPathKeys:ft}}function R(p){var v=o.useRef(p);v.current=p;var D=o.useCallback(function(){for(var U,k=arguments.length,X=new Array(k),z=0;z<k;z++)X[z]=arguments[z];return(U=v.current)===null||U===void 0?void 0:U.call.apply(U,[v].concat(X))},[]);return p?D:void 0}var W=Math.random().toFixed(5).toString().slice(2),de=0;function De(p){var v=(0,q.Z)(p,{value:p}),D=(0,C.Z)(v,2),U=D[0],k=D[1];return o.useEffect(function(){de+=1;var X="".concat(W,"-").concat(de);k("rc-menu-uuid-".concat(X))},[]),U}var Fe=u(6909),ge=u(4771),ke=u(9427),Ce=u(25440),ot=u(2738),_t=u(8654);function j(p,v,D,U){var k=o.useContext(y),X=k.activeKey,z=k.onActive,be=k.onInactive,Ze={active:X===p};return v||(Ze.onMouseEnter=function(Te){D==null||D({key:p,domEvent:Te}),z(p)},Ze.onMouseLeave=function(Te){U==null||U({key:p,domEvent:Te}),be(p)}),Ze}function bt(p){var v=o.useContext(y),D=v.mode,U=v.rtl,k=v.inlineIndent;if(D!=="inline")return null;var X=p;return U?{paddingRight:X*k}:{paddingLeft:X*k}}function ct(p){var v=p.icon,D=p.props,U=p.children,k;return v===null||v===!1?null:(typeof v=="function"?k=o.createElement(v,(0,M.Z)({},D)):typeof v!="boolean"&&(k=v),k||U||null)}var vt=["item"];function it(p){var v=p.item,D=(0,_.Z)(p,vt);return Object.defineProperty(D,"item",{get:function(){return(0,Q.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),v}}),D}var Rt=["title","attribute","elementRef"],Ft=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Dt=["active"],Ct=function(p){(0,ke.Z)(D,p);var v=(0,Ce.Z)(D);function D(){return(0,Fe.Z)(this,D),v.apply(this,arguments)}return(0,ge.Z)(D,[{key:"render",value:function(){var k=this.props,X=k.title,z=k.attribute,be=k.elementRef,Ze=(0,_.Z)(k,Rt),Te=(0,ot.Z)(Ze,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Q.ZP)(!z,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(N.Z.Item,(0,a.Z)({},z,{title:typeof X=="string"?X:void 0},Te,{ref:be}))}}]),D}(o.Component),Kt=o.forwardRef(function(p,v){var D,U=p.style,k=p.className,X=p.eventKey,z=p.warnKey,be=p.disabled,Ze=p.itemIcon,Te=p.children,Ke=p.role,Pe=p.onMouseEnter,rt=p.onMouseLeave,ht=p.onClick,st=p.onKeyDown,kt=p.onFocus,It=(0,_.Z)(p,Ft),Tt=te(X),ft=o.useContext(y),lt=ft.prefixCls,at=ft.onItemClick,xt=ft.disabled,gt=ft.overflowDisabled,Nt=ft.itemIcon,yt=ft.selectedKeys,tn=ft.onActive,At=o.useContext(Se),Gt=At._internalRenderMenuItem,Ut="".concat(lt,"-item"),jt=o.useRef(),Yt=o.useRef(),Qt=xt||be,un=(0,_t.x1)(v,Yt),Ht=ie(X),nn=function(Zt){return{key:X,keyPath:(0,P.Z)(Ht).reverse(),item:jt.current,domEvent:Zt}},rn=Ze||Nt,sn=j(X,Qt,Pe,rt),mn=sn.active,pn=(0,_.Z)(sn,Dt),cn=yt.includes(X),gn=bt(Ht.length),_n=function(Zt){if(!Qt){var an=nn(Zt);ht==null||ht(it(an)),at(an)}},Vt=function(Zt){if(st==null||st(Zt),Zt.which===Ee.Z.ENTER){var an=nn(Zt);ht==null||ht(it(an)),at(an)}},Jt=function(Zt){tn(X),kt==null||kt(Zt)},Sn={};p.role==="option"&&(Sn["aria-selected"]=cn);var vn=o.createElement(Ct,(0,a.Z)({ref:jt,elementRef:un,role:Ke===null?"none":Ke||"menuitem",tabIndex:be?null:-1,"data-menu-id":gt&&Tt?null:Tt},It,pn,Sn,{component:"li","aria-disabled":be,style:(0,M.Z)((0,M.Z)({},gn),U),className:ue()(Ut,(D={},(0,S.Z)(D,"".concat(Ut,"-active"),mn),(0,S.Z)(D,"".concat(Ut,"-selected"),cn),(0,S.Z)(D,"".concat(Ut,"-disabled"),Qt),D),k),onClick:_n,onKeyDown:Vt,onFocus:Jt}),Te,o.createElement(ct,{props:(0,M.Z)((0,M.Z)({},p),{},{isSelected:cn}),icon:rn}));return Gt&&(vn=Gt(vn,p,{selected:cn})),vn});function zt(p,v){var D=p.eventKey,U=A(),k=ie(D);return o.useEffect(function(){if(U)return U.registerPath(D,k),function(){U.unregisterPath(D,k)}},[k]),U?null:o.createElement(Kt,(0,a.Z)({},p,{ref:v}))}var Re=o.forwardRef(zt),qe=["className","children"],Bt=function(v,D){var U=v.className,k=v.children,X=(0,_.Z)(v,qe),z=o.useContext(y),be=z.prefixCls,Ze=z.mode,Te=z.rtl;return o.createElement("ul",(0,a.Z)({className:ue()(be,Te&&"".concat(be,"-rtl"),"".concat(be,"-sub"),"".concat(be,"-").concat(Ze==="inline"?"inline":"vertical"),U),role:"menu"},X,{"data-menu-list":!0,ref:D}),k)},pt=o.forwardRef(Bt);pt.displayName="SubMenuList";var $t=pt,Pt=u(11592);function St(p,v){return(0,Pt.Z)(p).map(function(D,U){if(o.isValidElement(D)){var k,X,z=D.key,be=(k=(X=D.props)===null||X===void 0?void 0:X.eventKey)!==null&&k!==void 0?k:z,Ze=be==null;Ze&&(be="tmp_key-".concat([].concat((0,P.Z)(v),[U]).join("-")));var Te={key:be,eventKey:be};return o.cloneElement(D,Te)}return D})}var Ot=u(35593),tt={adjustX:1,adjustY:1},dt={topLeft:{points:["bl","tl"],overflow:tt},topRight:{points:["br","tr"],overflow:tt},bottomLeft:{points:["tl","bl"],overflow:tt},bottomRight:{points:["tr","br"],overflow:tt},leftTop:{points:["tr","tl"],overflow:tt},leftBottom:{points:["br","bl"],overflow:tt},rightTop:{points:["tl","tr"],overflow:tt},rightBottom:{points:["bl","br"],overflow:tt}},dn={topLeft:{points:["bl","tl"],overflow:tt},topRight:{points:["br","tr"],overflow:tt},bottomLeft:{points:["tl","bl"],overflow:tt},bottomRight:{points:["tr","br"],overflow:tt},rightTop:{points:["tr","tl"],overflow:tt},rightBottom:{points:["br","bl"],overflow:tt},leftTop:{points:["tl","tr"],overflow:tt},leftBottom:{points:["bl","br"],overflow:tt}},K=null;function e(p,v,D){if(v)return v;if(D)return D[p]||D.other}var t={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function n(p){var v=p.prefixCls,D=p.visible,U=p.children,k=p.popup,X=p.popupStyle,z=p.popupClassName,be=p.popupOffset,Ze=p.disabled,Te=p.mode,Ke=p.onVisibleChange,Pe=o.useContext(y),rt=Pe.getPopupContainer,ht=Pe.rtl,st=Pe.subMenuOpenDelay,kt=Pe.subMenuCloseDelay,It=Pe.builtinPlacements,Tt=Pe.triggerSubMenuAction,ft=Pe.forceSubMenuRender,lt=Pe.rootClassName,at=Pe.motion,xt=Pe.defaultMotions,gt=o.useState(!1),Nt=(0,C.Z)(gt,2),yt=Nt[0],tn=Nt[1],At=ht?(0,M.Z)((0,M.Z)({},dn),It):(0,M.Z)((0,M.Z)({},dt),It),Gt=t[Te],Ut=e(Te,at,xt),jt=o.useRef(Ut);Te!=="inline"&&(jt.current=Ut);var Yt=(0,M.Z)((0,M.Z)({},jt.current),{},{leavedClassName:"".concat(v,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Qt=o.useRef();return o.useEffect(function(){return Qt.current=(0,se.Z)(function(){tn(D)}),function(){se.Z.cancel(Qt.current)}},[D]),o.createElement(Ot.Z,{prefixCls:v,popupClassName:ue()("".concat(v,"-popup"),(0,S.Z)({},"".concat(v,"-rtl"),ht),z,lt),stretch:Te==="horizontal"?"minWidth":null,getPopupContainer:rt,builtinPlacements:At,popupPlacement:Gt,popupVisible:yt,popup:k,popupStyle:X,popupAlign:be&&{offset:be},action:Ze?[]:[Tt],mouseEnterDelay:st,mouseLeaveDelay:kt,onPopupVisibleChange:Ke,forceRender:ft,popupMotion:Yt,fresh:!0},U)}var i=u(77900);function r(p){var v=p.id,D=p.open,U=p.keyPath,k=p.children,X="inline",z=o.useContext(y),be=z.prefixCls,Ze=z.forceSubMenuRender,Te=z.motion,Ke=z.defaultMotions,Pe=z.mode,rt=o.useRef(!1);rt.current=Pe===X;var ht=o.useState(!rt.current),st=(0,C.Z)(ht,2),kt=st[0],It=st[1],Tt=rt.current?D:!1;o.useEffect(function(){rt.current&&It(!1)},[Pe]);var ft=(0,M.Z)({},e(X,Te,Ke));U.length>1&&(ft.motionAppear=!1);var lt=ft.onVisibleChanged;return ft.onVisibleChanged=function(at){return!rt.current&&!at&&It(!0),lt==null?void 0:lt(at)},kt?null:o.createElement(I,{mode:X,locked:!rt.current},o.createElement(i.default,(0,a.Z)({visible:Tt},ft,{forceRender:Ze,removeOnLeave:!1,leavedClassName:"".concat(be,"-hidden")}),function(at){var xt=at.className,gt=at.style;return o.createElement($t,{id:v,className:xt,style:gt},k)}))}var c=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],g=["active"],oe=function(v){var D,U=v.style,k=v.className,X=v.title,z=v.eventKey,be=v.warnKey,Ze=v.disabled,Te=v.internalPopupClose,Ke=v.children,Pe=v.itemIcon,rt=v.expandIcon,ht=v.popupClassName,st=v.popupOffset,kt=v.popupStyle,It=v.onClick,Tt=v.onMouseEnter,ft=v.onMouseLeave,lt=v.onTitleClick,at=v.onTitleMouseEnter,xt=v.onTitleMouseLeave,gt=(0,_.Z)(v,c),Nt=te(z),yt=o.useContext(y),tn=yt.prefixCls,At=yt.mode,Gt=yt.openKeys,Ut=yt.disabled,jt=yt.overflowDisabled,Yt=yt.activeKey,Qt=yt.selectedKeys,un=yt.itemIcon,Ht=yt.expandIcon,nn=yt.onItemClick,rn=yt.onOpenChange,sn=yt.onActive,mn=o.useContext(Se),pn=mn._internalRenderSubMenuItem,cn=o.useContext(he),gn=cn.isSubPathKey,_n=ie(),Vt="".concat(tn,"-submenu"),Jt=Ut||Ze,Sn=o.useRef(),vn=o.useRef(),En=Pe!=null?Pe:un,Zt=rt!=null?rt:Ht,an=Gt.includes(z),hn=!jt&&an,Fn=gn(Qt,z),xn=j(z,Jt,at,xt),yn=xn.active,Zn=(0,_.Z)(xn,g),qn=o.useState(!1),Kn=(0,C.Z)(qn,2),Bn=Kn[0],$n=Kn[1],Mn=function(en){Jt||$n(en)},on=function(en){Mn(!0),Tt==null||Tt({key:z,domEvent:en})},Hn=function(en){Mn(!1),ft==null||ft({key:z,domEvent:en})},In=o.useMemo(function(){return yn||(At!=="inline"?Bn||gn([Yt],z):!1)},[At,yn,Yt,Bn,z,gn]),Nn=bt(_n.length),Vn=function(en){Jt||(lt==null||lt({key:z,domEvent:en}),At==="inline"&&rn(z,!an))},wn=R(function(ln){It==null||It(it(ln)),nn(ln)}),Ln=function(en){At!=="inline"&&rn(z,en)},Dn=function(){sn(z)},On=Nt&&"".concat(Nt,"-popup"),An=o.createElement("div",(0,a.Z)({role:"menuitem",style:Nn,className:"".concat(Vt,"-title"),tabIndex:Jt?null:-1,ref:Sn,title:typeof X=="string"?X:null,"data-menu-id":jt&&Nt?null:Nt,"aria-expanded":hn,"aria-haspopup":!0,"aria-controls":On,"aria-disabled":Jt,onClick:Vn,onFocus:Dn},Zn),X,o.createElement(ct,{icon:At!=="horizontal"?Zt:void 0,props:(0,M.Z)((0,M.Z)({},v),{},{isOpen:hn,isSubMenu:!0})},o.createElement("i",{className:"".concat(Vt,"-arrow")}))),qt=o.useRef(At);if(At!=="inline"&&_n.length>1?qt.current="vertical":qt.current=At,!jt){var Rn=qt.current;An=o.createElement(n,{mode:Rn,prefixCls:Vt,visible:!Te&&hn&&At!=="inline",popupClassName:ht,popupOffset:st,popupStyle:kt,popup:o.createElement(I,{mode:Rn==="horizontal"?"vertical":Rn},o.createElement($t,{id:On,ref:vn},Ke)),disabled:Jt,onVisibleChange:Ln},An)}var bn=o.createElement(N.Z.Item,(0,a.Z)({role:"none"},gt,{component:"li",style:U,className:ue()(Vt,"".concat(Vt,"-").concat(At),k,(D={},(0,S.Z)(D,"".concat(Vt,"-open"),hn),(0,S.Z)(D,"".concat(Vt,"-active"),In),(0,S.Z)(D,"".concat(Vt,"-selected"),Fn),(0,S.Z)(D,"".concat(Vt,"-disabled"),Jt),D)),onMouseEnter:on,onMouseLeave:Hn}),An,!jt&&o.createElement(r,{id:On,open:hn,keyPath:_n},Ke));return pn&&(bn=pn(bn,v,{selected:Fn,active:In,open:hn,disabled:Jt})),o.createElement(I,{onItemClick:wn,mode:At==="horizontal"?"vertical":At,itemIcon:En,expandIcon:Zt},bn)};function V(p){var v=p.eventKey,D=p.children,U=ie(v),k=St(D,U),X=A();o.useEffect(function(){if(X)return X.registerPath(v,U),function(){X.unregisterPath(v,U)}},[U]);var z;return X?z=k:z=o.createElement(oe,p,k),o.createElement(J.Provider,{value:U},z)}var fe=u(39559),Ve=["className","title","eventKey","children"],ze=["children"],le=function(v){var D=v.className,U=v.title,k=v.eventKey,X=v.children,z=(0,_.Z)(v,Ve),be=o.useContext(y),Ze=be.prefixCls,Te="".concat(Ze,"-item-group");return o.createElement("li",(0,a.Z)({role:"presentation"},z,{onClick:function(Pe){return Pe.stopPropagation()},className:ue()(Te,D)}),o.createElement("div",{role:"presentation",className:"".concat(Te,"-title"),title:typeof U=="string"?U:void 0},U),o.createElement("ul",{role:"group",className:"".concat(Te,"-list")},X))};function Ne(p){var v=p.children,D=(0,_.Z)(p,ze),U=ie(D.eventKey),k=St(v,U),X=A();return X?k:o.createElement(le,(0,ot.Z)(D,["warnKey"]),k)}function me(p){var v=p.className,D=p.style,U=o.useContext(y),k=U.prefixCls,X=A();return X?null:o.createElement("li",{role:"separator",className:ue()("".concat(k,"-item-divider"),v),style:D})}var G=["label","children","key","type"];function ne(p){return(p||[]).map(function(v,D){if(v&&(0,fe.Z)(v)==="object"){var U=v,k=U.label,X=U.children,z=U.key,be=U.type,Ze=(0,_.Z)(U,G),Te=z!=null?z:"tmp-".concat(D);return X||be==="group"?be==="group"?o.createElement(Ne,(0,a.Z)({key:Te},Ze,{title:k}),ne(X)):o.createElement(V,(0,a.Z)({key:Te},Ze,{title:k}),ne(X)):be==="divider"?o.createElement(me,(0,a.Z)({key:Te},Ze)):o.createElement(Re,(0,a.Z)({key:Te},Ze),k)}return null}).filter(function(v){return v})}function ye(p,v,D){var U=p;return v&&(U=ne(v)),St(U,D)}var Le=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Ye=[],Mt=o.forwardRef(function(p,v){var D,U,k=p,X=k.prefixCls,z=X===void 0?"rc-menu":X,be=k.rootClassName,Ze=k.style,Te=k.className,Ke=k.tabIndex,Pe=Ke===void 0?0:Ke,rt=k.items,ht=k.children,st=k.direction,kt=k.id,It=k.mode,Tt=It===void 0?"vertical":It,ft=k.inlineCollapsed,lt=k.disabled,at=k.disabledOverflow,xt=k.subMenuOpenDelay,gt=xt===void 0?.1:xt,Nt=k.subMenuCloseDelay,yt=Nt===void 0?.1:Nt,tn=k.forceSubMenuRender,At=k.defaultOpenKeys,Gt=k.openKeys,Ut=k.activeKey,jt=k.defaultActiveFirst,Yt=k.selectable,Qt=Yt===void 0?!0:Yt,un=k.multiple,Ht=un===void 0?!1:un,nn=k.defaultSelectedKeys,rn=k.selectedKeys,sn=k.onSelect,mn=k.onDeselect,pn=k.inlineIndent,cn=pn===void 0?24:pn,gn=k.motion,_n=k.defaultMotions,Vt=k.triggerSubMenuAction,Jt=Vt===void 0?"hover":Vt,Sn=k.builtinPlacements,vn=k.itemIcon,En=k.expandIcon,Zt=k.overflowedIndicator,an=Zt===void 0?"...":Zt,hn=k.overflowedIndicatorPopupClassName,Fn=k.getPopupContainer,xn=k.onClick,yn=k.onOpenChange,Zn=k.onKeyDown,qn=k.openAnimation,Kn=k.openTransitionName,Bn=k._internalRenderMenuItem,$n=k._internalRenderSubMenuItem,Mn=(0,_.Z)(k,Le),on=o.useMemo(function(){return ye(ht,rt,Ye)},[ht,rt]),Hn=o.useState(!1),In=(0,C.Z)(Hn,2),Nn=In[0],Vn=In[1],wn=o.useRef(),Ln=De(kt),Dn=st==="rtl",On=(0,q.Z)(At,{value:Gt,postState:function(mt){return mt||Ye}}),An=(0,C.Z)(On,2),qt=An[0],Rn=An[1],bn=function(mt){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Wt(){Rn(mt),yn==null||yn(mt)}wt?(0,H.flushSync)(Wt):Wt()},ln=o.useState(qt),en=(0,C.Z)(ln,2),mi=en[0],pi=en[1],Gn=o.useRef(!1),gi=o.useMemo(function(){return(Tt==="inline"||Tt==="vertical")&&ft?["vertical",ft]:[Tt,!1]},[Tt,ft]),ei=(0,C.Z)(gi,2),Pn=ei[0],Wn=ei[1],ti=Pn==="inline",_i=o.useState(Pn),ni=(0,C.Z)(_i,2),fn=ni[0],vi=ni[1],Ei=o.useState(Wn),ii=(0,C.Z)(Ei,2),yi=ii[0],bi=ii[1];o.useEffect(function(){vi(Pn),bi(Wn),Gn.current&&(ti?Rn(mi):bn(Ye))},[Pn,Wn]);var Ci=o.useState(0),ri=(0,C.Z)(Ci,2),Un=ri[0],Si=ri[1],Xn=Un>=on.length-1||fn!=="horizontal"||at;o.useEffect(function(){ti&&pi(qt)},[qt]),o.useEffect(function(){return Gn.current=!0,function(){Gn.current=!1}},[]);var Cn=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?Ye:on.slice(Un+1).map(function(Lt){return Lt.key}))},[Un,Xn]);var Ii=(0,q.Z)(Ut||jt&&((D=on[0])===null||D===void 0?void 0:D.key),{value:Ut}),ui=(0,C.Z)(Ii,2),kn=ui[0],Yn=ui[1],Li=R(function(Lt){Yn(Lt)}),Di=R(function(){Yn(void 0)});(0,o.useImperativeHandle)(v,function(){return{list:wn.current,focus:function(mt){var wt,Wt=li(),Xt=s(Wt,Ln),jn=Xt.elements,Qn=Xt.key2element,zi=Xt.element2key,hi=B(wn.current,jn),fi=kn!=null?kn:hi[0]?zi.get(hi[0]):(wt=on.find(function(ji){return!ji.props.disabled}))===null||wt===void 0?void 0:wt.key,Tn=Qn.get(fi);if(fi&&Tn){var Jn;Tn==null||(Jn=Tn.focus)===null||Jn===void 0||Jn.call(Tn,mt)}}}});var Oi=(0,q.Z)(nn||[],{value:rn,postState:function(mt){return Array.isArray(mt)?mt:mt==null?Ye:[mt]}}),di=(0,C.Z)(Oi,2),zn=di[0],ki=di[1],Ti=function(mt){if(Qt){var wt=mt.key,Wt=zn.includes(wt),Xt;Ht?Wt?Xt=zn.filter(function(Qn){return Qn!==wt}):Xt=[].concat((0,P.Z)(zn),[wt]):Xt=[wt],ki(Xt);var jn=(0,M.Z)((0,M.Z)({},mt),{},{selectedKeys:Xt});Wt?mn==null||mn(jn):sn==null||sn(jn)}!Ht&&qt.length&&fn!=="inline"&&bn(Ye)},Fi=R(function(Lt){xn==null||xn(it(Lt)),Ti(Lt)}),ci=R(function(Lt,mt){var wt=qt.filter(function(Xt){return Xt!==Lt});if(mt)wt.push(Lt);else if(fn!=="inline"){var Wt=Ai(Lt);wt=wt.filter(function(Xt){return!Wt.has(Xt)})}(0,re.Z)(qt,wt,!0)||bn(wt,!0)}),$i=function(mt,wt){var Wt=wt!=null?wt:!qt.includes(mt);ci(mt,Wt)},Mi=h(fn,kn,Dn,Ln,wn,li,wi,Yn,$i,Zn);o.useEffect(function(){Vn(!0)},[]);var Ni=o.useMemo(function(){return{_internalRenderMenuItem:Bn,_internalRenderSubMenuItem:$n}},[Bn,$n]),Pi=fn!=="horizontal"||at?on:on.map(function(Lt,mt){return o.createElement(I,{key:Lt.key,overflowDisabled:mt>Un},Lt)}),Ui=o.createElement(N.Z,(0,a.Z)({id:kt,ref:wn,prefixCls:"".concat(z,"-overflow"),component:"ul",itemComponent:Re,className:ue()(z,"".concat(z,"-root"),"".concat(z,"-").concat(fn),Te,(U={},(0,S.Z)(U,"".concat(z,"-inline-collapsed"),yi),(0,S.Z)(U,"".concat(z,"-rtl"),Dn),U),be),dir:st,style:Ze,role:"menu",tabIndex:Pe,data:Pi,renderRawItem:function(mt){return mt},renderRawRest:function(mt){var wt=mt.length,Wt=wt?on.slice(-wt):null;return o.createElement(V,{eventKey:x,title:an,disabled:Xn,internalPopupClose:wt===0,popupClassName:hn},Wt)},maxCount:fn!=="horizontal"||at?N.Z.INVALIDATE:N.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(mt){Si(mt)},onKeyDown:Mi},Mn));return o.createElement(Se.Provider,{value:Ni},o.createElement(we.Provider,{value:Ln},o.createElement(I,{prefixCls:z,rootClassName:be,mode:fn,openKeys:qt,rtl:Dn,disabled:lt,motion:Nn?gn:null,defaultMotions:Nn?_n:null,activeKey:kn,onActive:Li,onInactive:Di,selectedKeys:zn,inlineIndent:cn,subMenuOpenDelay:gt,subMenuCloseDelay:yt,forceSubMenuRender:tn,builtinPlacements:Sn,triggerSubMenuAction:Jt,getPopupContainer:Fn,itemIcon:vn,expandIcon:En,onItemClick:Fi,onOpenChange:ci},o.createElement(he.Provider,{value:Bi},Ui),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(T.Provider,{value:Ri},on)))))}),Et=Mt,ve=Et;ve.Item=Re,ve.SubMenu=V,ve.ItemGroup=Ne,ve.Divider=me;var pe=ve},11780:function(ut,xe,u){"use strict";u.d(xe,{Z:function(){return We}});var a=u(92413),S=u(33708),M=u(33606),P=u(37061),C=u(59301),_=u(92310),ce=u.n(_),ue=u(29301),N=u(34280),q=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],re=void 0;function Q(Z,Y){var Be=Z.prefixCls,Ee=Z.invalidate,se=Z.item,ae=Z.renderItem,_e=Z.responsive,Ue=Z.responsiveDisabled,$e=Z.registerSize,je=Z.itemKey,Xe=Z.className,nt=Z.style,Me=Z.children,He=Z.display,Qe=Z.order,Je=Z.component,et=Je===void 0?"div":Je,B=(0,P.Z)(Z,q),b=_e&&!He;function s(m){$e(je,m)}C.useEffect(function(){return function(){s(null)}},[]);var h=ae&&se!==re?ae(se,{index:Qe}):Me,f;Ee||(f={opacity:b?0:1,height:b?0:re,overflowY:b?"hidden":re,order:_e?Qe:re,pointerEvents:b?"none":re,position:b?"absolute":re});var $={};b&&($["aria-hidden"]=!0);var d=C.createElement(et,(0,a.Z)({className:ce()(!Ee&&Be,Xe),style:(0,S.Z)((0,S.Z)({},f),nt)},$,B,{ref:Y}),h);return _e&&(d=C.createElement(ue.Z,{onResize:function(x){var l=x.offsetWidth;s(l)},disabled:Ue},d)),d}var o=C.forwardRef(Q);o.displayName="Item";var H=o,we=u(6089),ee=u(4676),te=u(16089);function E(Z){if(typeof MessageChannel=="undefined")(0,te.Z)(Z);else{var Y=new MessageChannel;Y.port1.onmessage=function(){return Z()},Y.port2.postMessage(void 0)}}function w(){var Z=C.useRef(null),Y=function(Ee){Z.current||(Z.current=[],E(function(){(0,ee.unstable_batchedUpdates)(function(){Z.current.forEach(function(se){se()}),Z.current=null})})),Z.current.push(Ee)};return Y}function y(Z,Y){var Be=C.useState(Y),Ee=(0,M.Z)(Be,2),se=Ee[0],ae=Ee[1],_e=(0,we.Z)(function(Ue){Z(function(){ae(Ue)})});return[se,_e]}var L=C.createContext(null),I=["component"],O=["className"],T=["className"],A=function(Y,Be){var Ee=C.useContext(L);if(!Ee){var se=Y.component,ae=se===void 0?"div":se,_e=(0,P.Z)(Y,I);return C.createElement(ae,(0,a.Z)({},_e,{ref:Be}))}var Ue=Ee.className,$e=(0,P.Z)(Ee,O),je=Y.className,Xe=(0,P.Z)(Y,T);return C.createElement(L.Provider,{value:null},C.createElement(H,(0,a.Z)({ref:Be,className:ce()(Ue,je)},$e,Xe)))},J=C.forwardRef(A);J.displayName="RawItem";var ie=J,he=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ie="responsive",Se="invalidate";function Oe(Z){return"+ ".concat(Z.length," ...")}function Ae(Z,Y){var Be=Z.prefixCls,Ee=Be===void 0?"rc-overflow":Be,se=Z.data,ae=se===void 0?[]:se,_e=Z.renderItem,Ue=Z.renderRawItem,$e=Z.itemKey,je=Z.itemWidth,Xe=je===void 0?10:je,nt=Z.ssr,Me=Z.style,He=Z.className,Qe=Z.maxCount,Je=Z.renderRest,et=Z.renderRawRest,B=Z.suffix,b=Z.component,s=b===void 0?"div":b,h=Z.itemComponent,f=Z.onVisibleChange,$=(0,P.Z)(Z,he),d=nt==="full",m=w(),x=y(m,null),l=(0,M.Z)(x,2),R=l[0],W=l[1],de=R||0,De=y(m,new Map),Fe=(0,M.Z)(De,2),ge=Fe[0],ke=Fe[1],Ce=y(m,0),ot=(0,M.Z)(Ce,2),_t=ot[0],j=ot[1],bt=y(m,0),ct=(0,M.Z)(bt,2),vt=ct[0],it=ct[1],Rt=y(m,0),Ft=(0,M.Z)(Rt,2),Dt=Ft[0],Ct=Ft[1],Kt=(0,C.useState)(null),zt=(0,M.Z)(Kt,2),Re=zt[0],qe=zt[1],Bt=(0,C.useState)(null),pt=(0,M.Z)(Bt,2),$t=pt[0],Pt=pt[1],St=C.useMemo(function(){return $t===null&&d?Number.MAX_SAFE_INTEGER:$t||0},[$t,R]),Ot=(0,C.useState)(!1),tt=(0,M.Z)(Ot,2),dt=tt[0],dn=tt[1],K="".concat(Ee,"-item"),e=Math.max(_t,vt),t=Qe===Ie,n=ae.length&&t,i=Qe===Se,r=n||typeof Qe=="number"&&ae.length>Qe,c=(0,C.useMemo)(function(){var pe=ae;return n?R===null&&d?pe=ae:pe=ae.slice(0,Math.min(ae.length,de/Xe)):typeof Qe=="number"&&(pe=ae.slice(0,Qe)),pe},[ae,Xe,R,Qe,n]),g=(0,C.useMemo)(function(){return n?ae.slice(St+1):ae.slice(c.length)},[ae,c,n,St]),oe=(0,C.useCallback)(function(pe,p){var v;return typeof $e=="function"?$e(pe):(v=$e&&(pe==null?void 0:pe[$e]))!==null&&v!==void 0?v:p},[$e]),V=(0,C.useCallback)(_e||function(pe){return pe},[_e]);function fe(pe,p,v){$t===pe&&(p===void 0||p===Re)||(Pt(pe),v||(dn(pe<ae.length-1),f==null||f(pe)),p!==void 0&&qe(p))}function Ve(pe,p){W(p.clientWidth)}function ze(pe,p){ke(function(v){var D=new Map(v);return p===null?D.delete(pe):D.set(pe,p),D})}function le(pe,p){it(p),j(vt)}function Ne(pe,p){Ct(p)}function me(pe){return ge.get(oe(c[pe],pe))}(0,N.Z)(function(){if(de&&typeof e=="number"&&c){var pe=Dt,p=c.length,v=p-1;if(!p){fe(0,null);return}for(var D=0;D<p;D+=1){var U=me(D);if(d&&(U=U||0),U===void 0){fe(D-1,void 0,!0);break}if(pe+=U,v===0&&pe<=de||D===v-1&&pe+me(v)<=de){fe(v,null);break}else if(pe+e>de){fe(D-1,pe-U-Dt+vt);break}}B&&me(0)+Dt>de&&qe(null)}},[de,ge,vt,Dt,oe,c]);var G=dt&&!!g.length,ne={};Re!==null&&n&&(ne={position:"absolute",left:Re,top:0});var ye={prefixCls:K,responsive:n,component:h,invalidate:i},Le=Ue?function(pe,p){var v=oe(pe,p);return C.createElement(L.Provider,{key:v,value:(0,S.Z)((0,S.Z)({},ye),{},{order:p,item:pe,itemKey:v,registerSize:ze,display:p<=St})},Ue(pe,p))}:function(pe,p){var v=oe(pe,p);return C.createElement(H,(0,a.Z)({},ye,{order:p,key:v,item:pe,renderItem:V,itemKey:v,registerSize:ze,display:p<=St}))},Ye={order:G?St:Number.MAX_SAFE_INTEGER,className:"".concat(K,"-rest"),registerSize:le,display:G},Mt=Je||Oe,Et=et?C.createElement(L.Provider,{value:(0,S.Z)((0,S.Z)({},ye),Ye)},et(g)):C.createElement(H,(0,a.Z)({},ye,Ye),typeof Mt=="function"?Mt(g):Mt),ve=C.createElement(s,(0,a.Z)({className:ce()(!i&&Ee,He),style:Me,ref:Y},$),c.map(Le),r?Et:null,B&&C.createElement(H,(0,a.Z)({},ye,{responsive:t,responsiveDisabled:!n,order:St,className:"".concat(K,"-suffix"),registerSize:Ne,display:!0,style:ne}),B));return t?C.createElement(ue.Z,{onResize:Ve,disabled:!n},ve):ve}var F=C.forwardRef(Ae);F.displayName="Overflow",F.Item=ie,F.RESPONSIVE=Ie,F.INVALIDATE=Se;var Ge=F,We=Ge},82059:function(ut){var xe=arguments[3],u=arguments[4],a=arguments[5],S=JSON.stringify;ut.exports=function(M,P){for(var C,_=Object.keys(a),ce=0,ue=_.length;ce<ue;ce++){var N=_[ce],q=a[N].exports;if(q===M||q&&q.default===M){C=N;break}}if(!C){C=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var re={},ce=0,ue=_.length;ce<ue;ce++){var N=_[ce];re[N]=N}u[C]=["function(require,module,exports){"+M+"(self); }",re]}var Q=Math.floor(Math.pow(16,8)*Math.random()).toString(16),o={};o[C]=C,u[Q]=["function(require,module,exports){var f = require("+S(C)+");(f.default ? f.default : f)(self);}",o];var H={};we(Q);function we(L){H[L]=!0;for(var I in u[L][1]){var O=u[L][1][I];H[O]||we(O)}}var ee="("+xe+")({"+Object.keys(H).map(function(L){return S(L)+":["+u[L][0]+","+S(u[L][1])+"]"}).join(",")+"},{},["+S(Q)+"])",te=window.URL||window.webkitURL||window.mozURL||window.msURL,E=new Blob([ee],{type:"text/javascript"});if(P&&P.bare)return E;var w=te.createObjectURL(E),y=new Worker(w);return y.objectURL=w,y}}}]);
|