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.
43 lines
353 KiB
43 lines
353 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[6444],{18785:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return de}});var y=i(16378),x=i(59301),Z={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"},J=Z,A=i(7657),m=function(ye,ue){return x.createElement(A.Z,(0,y.Z)({},ye,{ref:ue,icon:J}))},ce=x.forwardRef(m),de=ce},52671:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return de}});var y=i(16378),x=i(59301),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},J=Z,A=i(7657),m=function(ye,ue){return x.createElement(A.Z,(0,y.Z)({},ye,{ref:ue,icon:J}))},ce=x.forwardRef(m),de=ce},8657:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return de}});var y=i(16378),x=i(59301),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},J=Z,A=i(7657),m=function(ye,ue){return x.createElement(A.Z,(0,y.Z)({},ye,{ref:ue,icon:J}))},ce=x.forwardRef(m),de=ce},56082:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return de}});var y=i(16378),x=i(59301),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},J=Z,A=i(7657),m=function(ye,ue){return x.createElement(A.Z,(0,y.Z)({},ye,{ref:ue,icon:J}))},ce=x.forwardRef(m),de=ce},33853:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return de}});var y=i(16378),x=i(59301),Z={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"},J=Z,A=i(7657),m=function(ye,ue){return x.createElement(A.Z,(0,y.Z)({},ye,{ref:ue,icon:J}))},ce=x.forwardRef(m),de=ce},15075:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return de}});var y=i(16378),x=i(59301),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},J=Z,A=i(7657),m=function(ye,ue){return x.createElement(A.Z,(0,y.Z)({},ye,{ref:ue,icon:J}))},ce=x.forwardRef(m),de=ce},43531:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return de}});var y=i(16378),x=i(59301),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},J=Z,A=i(7657),m=function(ye,ue){return x.createElement(A.Z,(0,y.Z)({},ye,{ref:ue,icon:J}))},ce=x.forwardRef(m),de=ce},38819:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return de}});var y=i(16378),x=i(59301),Z={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"},J=Z,A=i(7657),m=function(ye,ue){return x.createElement(A.Z,(0,y.Z)({},ye,{ref:ue,icon:J}))},ce=x.forwardRef(m),de=ce},25039:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return ne}});var y=i(59301),x=i(8591),Z=i(38854),J=i(93726),A=i(40846),m=i(2119),ce=i(56102),de=i(39171),se={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"},ye=(U,Se,K)=>new Promise((T,M)=>{var u=k=>{try{N(K.next(k))}catch(w){M(w)}},C=k=>{try{N(K.throw(k))}catch(w){M(w)}},N=k=>k.done?T(k.value):Promise.resolve(k.value).then(u,C);N((K=K.apply(U,Se)).next())});function ue(U){if(isNaN(U))return{minutes:"00",seconds:"00"};const Se=new Date(U*1e3).toISOString().substr(11,8);return{hour:Se.substr(0,2),minutes:Se.substr(3,2),seconds:Se.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function $(U,Se){return U-Se}function c(U){U.sort($);let Se=0;for(let K=0;K<U.length-1;K++){let T=Math.abs(U[K+1]-U[K]);T<21&&(Se+=T)}return Se}const ie=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var ne=(0,y.forwardRef)(({allow_skip:U,src:Se,toLog:K,videoId:T,logWatchHistory:M,courseId:u=null,startTime:C,handlePause:N=()=>{},handlePlay:k=()=>{},handlePlayEnded:w=()=>{},autoPlay:re=!1,onPlayEnded:Y=()=>{},isShowWaterMark:fe=!0},D)=>{var be;const P=((be=Se==null?void 0:Se.split("."))==null?void 0:be.pop())==="flv",p=(0,y.useRef)(),B=(0,y.useRef)(),me=(0,y.useRef)(),H=(0,y.useRef)(),le=(0,y.useRef)(),Q=(0,y.useRef)(),L=(0,y.useRef)(),W=(0,y.useRef)(),q=(0,y.useRef)(),ae=(0,y.useRef)(),ve=(0,y.useRef)(),Ae=(0,y.useRef)(),Pe=(0,y.useRef)(),Re=(0,y.useRef)(),Je=navigator.userAgent.toLowerCase().match(ie),ke=Je?Je[0]:"pc",Ze=(0,y.useRef)(!1),Ve=(0,m.eY)();let We=0,te=0,g=0,_=null,f=!1,a=20,b=1,V=!1,h=!1,l=[];(0,y.useImperativeHandle)(D,()=>({getLastUpdatedTime:()=>p.current.currentTime,getDuration:()=>p.current.duration})),x.ZP.config({maxCount:1,getContainer:()=>me.current});const v=(0,y.useCallback)((oe,Ee=!1)=>{let F={point:p.current.currentTime};_?(F.log_id=_,F.watch_duration=c(l),F.total_duration=te):(u?(F.video_id=parseInt(T,10),F.course_id=u):F.video_id=T,F.duration=We,F.device=ke),Ee&&(F.ed="1");function Ce(){return ye(this,null,function*(){V=!0,_=yield M==null?void 0:M(F),V=!1,oe&&oe()})}Ce()},[T,u]);(0,y.useEffect)(()=>{p.current&&(H.current.style.display="none",le.current.style.display="block"),x.ZP.destroy();let oe=null;return J.Z.isSupported&&P&&Se&&(Se==null?void 0:Se.indexOf(".m3u8"))<0?(oe=J.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:Se,muted:!1}),p.current&&(oe.attachMediaElement(p.current),oe.load())):p.current.setAttribute("src",Se),d(),()=>{oe&&(oe.unload(),oe.pause(),oe.destroy(),oe=null)}},[p,P,Se]);function s(){p.current.paused?(H.current.style.display="none",le.current.style.display="block"):(H.current.style.display="block",le.current.style.display="none")}function d(){ve.current.style.display="none",Pe.current.style.display="none",Ae.current.style.display="none",p.current.muted||p.current.volume===0?ve.current.style.display="block":p.current.volume>0&&p.current.volume<=.5?Pe.current.style.display="block":Ae.current.style.display="block"}(0,y.useEffect)(()=>{const oe=document.getElementById("play"),Ee=document.querySelectorAll(".playback-icons use");function F(){k(),C&&!Ze.current&&(p.current.currentTime=C),Ze.current=!0,l.push(p.current.currentTime),f||(f=!0,K&&v())}function Ce(){return ye(this,null,function*(){s(),l.push(p.current.currentTime),K&&v(()=>{_=null,g=0,f=!1,V=!1,h=!1,l=[],te=0,b=1},!0),Y()})}function Le(){Q.current.value=Math.round(p.current.currentTime),L.current.value=Math.round(p.current.currentTime)}function X(){const Ne=ue(Math.round(p.current.currentTime));q.current.innerText=`${Ne.hour>0?Ne.hour+":":""}${Ne.minutes}:${Ne.seconds}`,q.current.setAttribute("datetime",`${Ne.hour>0?" "+Ne.hour+" ":""}${Ne.minutes}m ${Ne.seconds}s`)}function je(){var Ne,ct,ft,_t,Rt,It,Ct;const Et=Math.round((Ne=p.current)==null?void 0:Ne.duration);(ft=(ct=Q.current)==null?void 0:ct.setAttribute)==null||ft.call(ct,"max",Et),(Rt=(_t=L.current)==null?void 0:_t.setAttribute)==null||Rt.call(_t,"max",Et);const qe=ue(Et);W.current&&(W.current.innerText=`${qe.hour>0?qe.hour+":":""}${qe.minutes}:${qe.seconds}`,(Ct=(It=W.current).setAttribute)==null||Ct.call(It,"datetime",`${qe.hour>0?" "+qe.hour+" ":""}${qe.minutes}m ${qe.seconds}s`))}function Be(){try{const Ne=Math.round(p.current.duration);Q.current.setAttribute("max",Ne),L.current.setAttribute("max",Ne);const ct=ue(Ne);W.current.innerText=`${ct.hour>0?ct.hour+":":""}${ct.minutes}:${ct.seconds}`,W.current.setAttribute("datetime",`${ct.hour>0?" "+ct.hour+" ":""}${ct.minutes}m ${ct.seconds}s`),Le(),X();const{width:ft,height:_t,x:Rt,y:It}=B.current.getBoundingClientRect();if(Rt<0||It<0||!ft)return;if(!h){let Ct=p.current.currentTime,Et=Ct-g;Math.abs(Et)<10?(te+=Math.abs(Et),g=Ct,V||te-b*a>=0&&(b++,l.push(g),K&&v())):(g=Ct,K&&v())}}catch(Ne){console.log(Ne)}}function Ke(){h=!0}function ze(){p.current.playing&&l.push(p.current.currentTime,g),g=p.current.currentTime,h=!1}function it(){We=p.current.duration,We<=20&&(a=We/3),p.current.addEventListener("play",F)}function ut(Ne){Ne.preventDefault(),(0,de.vp)()?(p.current.style.width="100%",p.current.style.height="100%"):p.current.style.cssText=""}function dt(){N()}function tt(Ne){if(!U){x.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const ct=Ne.target.dataset.seek?Ne.target.dataset.seek:Ne.target.value;p.current.currentTime=ct,L.current.value=ct,Q.current.value=ct}function gt(Ne){const ct=Math.round(Ne.offsetX/Ne.target.clientWidth*parseInt(Ne.target.getAttribute("max"),10));Q.current.setAttribute("data-seek",ct);const ft=ue(ct);ae.current.textContent=`${ft.hour>0?ft.hour+":":""}${ft.minutes}:${ft.seconds}`;const _t=p.current.getBoundingClientRect();ae.current.style.left=`${Ne.pageX-_t.left}px`}function Xe(Ne){switch(Ne.code){case"Space":Ne.preventDefault(),z();break;case"ArrowRight":if(Ne.preventDefault(),!U){x.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(p.current.currentTime>=p.current.duration)break;p.current.currentTime=parseInt(p.current.currentTime)+5,Le();break;case"ArrowLeft":if(Ne.preventDefault(),!U){x.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(p.current.currentTime===0)break;p.current.currentTime=parseInt(p.current.currentTime)-5,Le();break;case"ArrowUp":Ne.preventDefault(),p.current.volume<1&&(p.current.volume=(parseInt(p.current.volume*10)+1)/10);break;case"ArrowDown":Ne.preventDefault(),p.current.volume>0&&(p.current.volume=(parseInt(p.current.volume*10)-1)/10);break}}return me.current.addEventListener((0,de.gH)(),ut),p.current.addEventListener("canplay",it),p.current.addEventListener("ended",Ce),p.current.addEventListener("seeking",Ke),p.current.addEventListener("seeked",ze),p.current.addEventListener("loadedmetadata",je),Q.current.addEventListener("mousemove",gt),Q.current.addEventListener("input",tt),p.current.addEventListener("timeupdate",Be),p.current.addEventListener("pause",dt),p.current.addEventListener("volumechange",d),document.addEventListener("keydown",Xe),()=>{var Ne,ct,ft,_t,Rt,It,Ct,Et,qe,at,He,pe;(Ne=p.current)==null||Ne.removeEventListener("canplay",it),(ct=p.current)==null||ct.removeEventListener("play",F),(ft=p.current)==null||ft.removeEventListener("ended",Ce),(_t=p.current)==null||_t.removeEventListener("seeking",Ke),(Rt=p.current)==null||Rt.removeEventListener("seeked",ze),(It=Q.current)==null||It.removeEventListener("mousemove",gt),(Ct=Q.current)==null||Ct.removeEventListener("input",tt),(Et=p.current)==null||Et.removeEventListener("timeupdate",Be),(qe=p.current)==null||qe.removeEventListener("pause",dt),(at=p.current)==null||at.removeEventListener("loadedmetadata",je),(He=p.current)==null||He.removeEventListener("volumechange",d),document.removeEventListener("keydown",Xe),(pe=p.current)!=null&&pe.playing&&(l.push(g,p.current.currentTime),K&&v())}},[p,Se]),(0,y.useEffect)(()=>{if(p.current.onended=()=>{w(p)},p.current.oncontextmenu=()=>!1,(Se==null?void 0:Se.indexOf(".m3u8"))>-1){if(p.current.canPlayType("application/vnd.apple.mpegurl"))p.current.src=Se;else if(A.ZP.isSupported()){var oe=new A.ZP;oe.loadSource(Se),oe.attachMedia(p.current)}}},[Se]);const[E,I]=(0,y.useState)(1),z=()=>{p.current.paused||p.current.ended?p.current.play():p.current.pause(),s()};function ee(){p.current.muted=!p.current.muted,p.current.muted?(Re.current.setAttribute("data-volume",volume.value),Re.current.value=0):Re.current.value=Re.current.dataset.volume}return y.createElement("div",{style:{position:"relative"},ref:me},y.createElement("div",{ref:B,className:`${se.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${se.animate__loop}`},fe&&Ve?Ve.login:" "),y.createElement("div",{className:se.container},y.createElement("div",{className:se["video-container"],id:"video-container"},y.createElement("div",{className:se["playback-animation"],id:"playback-animation"},y.createElement("svg",{className:se["playback-icons"]},y.createElement("use",{className:"hidden",href:"#play-icon"}),y.createElement("use",{href:"#pause"}))),y.createElement("video",{className:se.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:p,autoPlay:re}),y.createElement("div",{className:`${se["video-controls"]} `,id:"video-controls"},y.createElement("div",{className:se["bottom-controls"]},y.createElement("div",{className:se["left-controls"]},y.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:z},y.createElement("svg",{className:se["playback-icons"]},y.createElement("use",{ref:le,href:"#play-icon"}),y.createElement("use",{ref:H,style:{display:"none"},href:"#pause"}))),y.createElement("div",{className:se.time},y.createElement("time",{id:"time-elapsed",ref:q},"00:00"),y.createElement("span",null," / "),y.createElement("time",{id:"duration",ref:W},"00:00"))),y.createElement("div",{className:se["right-controls"]},U&&y.createElement(Z.Z,{placement:"top",overlayClassName:se.rateOverlay,getPopupContainer:oe=>oe.parentNode,menu:{items:[{key:"1",label:y.createElement("span",{onClick:()=>{I(1),p.current.playbackRate=1}},"1.0x")},{key:"2",label:y.createElement("span",{onClick:()=>{I(1.5),p.current.playbackRate=1.5}},"1.5x")},{key:"3",label:y.createElement("span",{onClick:()=>{I(2),p.current.playbackRate=2}},"2.0x")}]}},y.createElement("div",{className:`${se.controlText} mr5`},"\u500D\u901F")),y.createElement(ce.CopyToClipboard,{text:Se,onCopy:()=>x.ZP.success("\u590D\u5236\u6210\u529F")},y.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},y.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),y.createElement("div",{className:se["volume-controls"]},y.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:se["volume-button"],id:"volume-button",onClick:ee},y.createElement("i",{ref:ve,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),y.createElement("i",{ref:Pe,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),y.createElement("i",{ref:Ae,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),y.createElement("input",{className:se.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Re,style:{display:"none"},onClick:d})),y.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:se["fullscreen-button"],onClick:()=>{(0,de.vp)()?(0,de.BU)():(0,de.Dj)(me.current)}},y.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),y.createElement("div",{className:se["video-progress"]},y.createElement("progress",{ref:L,value:"0",min:"0"}),y.createElement("input",{className:se.seek,ref:Q,value:"0",min:"0",type:"range",step:"1"}),y.createElement("div",{className:se["seek-tooltip"],ref:ae,id:"seek-tooltip"},"00:00"))))),y.createElement("svg",{style:{display:"none"}},y.createElement("defs",null,y.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},y.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),y.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},y.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),y.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},y.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"})),y.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},y.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"})),y.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},y.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"})),y.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},y.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"})),y.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},y.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"})),y.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},y.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"})))))})},91300:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return x}});var y=i(59301);function x(Z,J){const A=(0,y.useRef)();(0,y.useEffect)(()=>{A.current=Z}),(0,y.useEffect)(()=>{function m(){A.current()}if(J!==null){let ce=setInterval(m,J);return()=>clearInterval(ce)}},[J])}},76428:function(pt,Te,i){"use strict";i.r(Te),i.d(Te,{default:function(){return s},formatQuery:function(){return l}});var y=i(59301),x=i(42203),Z=i(71418),J={bg:"bg___eq_Aq",container:"container___j770l",widthle:"widthle___ouh1T"},A=i(24334),m=i(25039),ce=i(43418),de=i(13570),se=i(78673),ye=i(64165),ue={contentWrap:"contentWrap___xMJQi",title:"title___z4t4P",footer:"footer___CLzrT",footer_left:"footer_left___N2sZZ",footer_bfcs:"footer_bfcs___UmvUE",footer_bfcs_value:"footer_bfcs_value___yiYga",pingfen:"pingfen___aEEMe",fenshu:"fenshu___I6HCo",radioGroup:"radioGroup___RT1dL",wrap:"wrap___QZGSJ",introName:"introName___m17tA",rating:"rating___MXLBr",modalRating:"modalRating___aluwj",zdbf:"zdbf___9PNEF"},$=i(91300),c=i(76078),ie=i(58130),ne=i(59301),U=Object.defineProperty,Se=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,M=(d,E,I)=>E in d?U(d,E,{enumerable:!0,configurable:!0,writable:!0,value:I}):d[E]=I,u=(d,E)=>{for(var I in E||(E={}))K.call(E,I)&&M(d,I,E[I]);if(Se)for(var I of Se(E))T.call(E,I)&&M(d,I,E[I]);return d},C=(d,E)=>{var I={};for(var z in d)K.call(d,z)&&E.indexOf(z)<0&&(I[z]=d[z]);if(d!=null&&Se)for(var z of Se(d))E.indexOf(z)<0&&T.call(d,z)&&(I[z]=d[z]);return I},N=(d,E,I)=>new Promise((z,ee)=>{var oe=Ce=>{try{F(I.next(Ce))}catch(Le){ee(Le)}},Ee=Ce=>{try{F(I.throw(Ce))}catch(Le){ee(Le)}},F=Ce=>Ce.done?z(Ce.value):Promise.resolve(Ce.value).then(oe,Ee);F((I=I.apply(d,E)).next())});const k=d=>{var E=d,{videoDetail:I,globalSetting:z,loading:ee,dispatch:oe}=E,Ee=C(E,["videoDetail","globalSetting","loading","dispatch"]);const{queryParams:F,selectParams:Ce,videoList:Le}=I,{subject_id:X,videoId:je}=F,{checkBoxValue:Be,radioValue:Ke}=Ce,ze={videoId:je},it={query:F},ut=(0,y.useRef)(),dt=(0,y.useRef)(),tt=(0,y.useRef)(),gt=(0,y.useRef)(5),{video_item:Xe}=I.detail||{};(0,$.Z)(()=>N(void 0,null,function*(){dt.current&&(console.log("videoRef lastUpdatedTime: ",ut.current.getLastUpdatedTime()),console.log(ut.current),yield Ne())}),gt.current*1e3);const Ne=(qe=!1)=>{const at=qe?{is_f:1}:{};return(0,c.DH)(u(u({},at),{id:ze.videoId,point:ut.current.getLastUpdatedTime(),total:ut.current.getDuration()}))},ct=qe=>(qe.ed==="1"&&(dt.current=!1,Ne(!0)),!dt.current&&!qe.ed&&(dt.current=!0,gt.current=ut.current.getDuration()<=5?1:5,Ne()),oe({type:"userDetail/logWatchHistory",payload:qe})),ft=()=>{dt.current=!1},_t=()=>{dt.current=!0},Rt=()=>{tt.current=5,ce.default.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:ne.createElement("div",{className:"tc font14"},ne.createElement(de.Z,{defaultValue:tt.current,onChange:qe=>tt.current=qe,className:ue.modalRating})),onOk:()=>N(void 0,null,function*(){if((yield(0,c.jK)({id:ze.videoId,star:tt.current})).status===0){const{course_id:at}=(0,ie.oP)();oe({type:"videoDetail/getVideoDetail",payload:{id:ze.videoId,videoId:ze.videoId,course_id:at,subject_id:X}})}})})},It=qe=>{const at=window.filterVideoSign,He=at.findIndex(o=>o.id===je);if(He===at.length-1)return;const e=at[He+1].id,t=at[He+1].can_view,n=at[He+1].link,r=at[He+1].is_public;if(window.checkBoxValue){if(n){window.open(n);return}if(!t){ce.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:ne.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}if(!r){ce.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:ne.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}oe({type:"videoDetail/handleListItemClick",payload:{videoId:e}}),window.videoTimer=setTimeout(()=>{qe.current.play()},2e3)}},Ct=(qe,at)=>{if(qe==="checkBox"){const He=at;window.checkBoxValue=He,oe({type:"videoDetail/setSelectValue",payload:{radioValue:Ke,checkBoxValue:He}});return}oe({type:"videoDetail/setSelectValue",payload:{checkBoxValue:Be,radioValue:at.target.value}})},Et=()=>Le.findIndex(He=>He.id===je)===Le.length-1?ne.createElement("div",null,"\u5F53\u524D\u5DF2\u662F\u6700\u540E\u4E00\u4E2A\u89C6\u9891"):ne.createElement("div",null,ne.createElement(se.Z,{onChange:He=>{Ct("checkBox",He)},defaultChecked:Be,size:"small"}),ne.createElement("span",{className:ue.zdbf},"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891"));return ne.createElement("aside",{className:ue.contentWrap},ne.createElement("aside",{className:ue.wrap},ne.createElement("header",null),ne.createElement("div",{className:ue.title},Xe==null?void 0:Xe.name),!(Xe!=null&&Xe.can_edit)&&!(Xe!=null&&Xe.is_public)?ne.createElement(ye.Z,{description:"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85"}):ne.createElement(m.Z,{ref:ut,startTime:Xe==null?void 0:Xe.last_point,src:Xe!=null&&Xe.is_link?Xe==null?void 0:Xe.link:(Xe==null?void 0:Xe.play_url)&&A.Base64.decode(Xe==null?void 0:Xe.play_url),videoId:Xe==null?void 0:Xe.video_id,logWatchHistory:ct,handlePause:ft,handlePlay:_t,allow_skip:Xe==null?void 0:Xe.allow_skip,handlePlayEnded:It,toLog:()=>{}}),ne.createElement("div",{className:ue.footer},ne.createElement("div",{className:ue.footer_left},ne.createElement("div",{className:ue.pingfen},"\u8BC4\u5206"),ne.createElement(de.Z,{value:Xe==null?void 0:Xe.star,disabled:!0,className:ue.rating,style:{color:"#FFA100",fontSize:12,marginLeft:10}}),ne.createElement("div",{className:ue.fenshu},(Xe==null?void 0:Xe.star)||0,"\u5206")),!(Xe!=null&&Xe.can_edit)&&!(Xe!=null&&Xe.is_public)?null:ne.createElement("div",null,ne.createElement("div",{className:ue.checkBox},Et()))),ne.createElement("div",{className:"mt10"},(Xe==null?void 0:Xe.description)&&ne.createElement("span",{className:ue.introName},"\u7B80\u4ECB\uFF1A",Xe.description))))};var w=(0,x.connect)(({videoDetail:d,loading:E,globalSetting:I})=>({videoDetail:d,globalSetting:I,loading:E}))(k),re=i(8591),Y=i(17574),fe={flex_box_center:"flex_box_center___yWqSL",flex_space_between:"flex_space_between___LgFmv",flex_box_vertical_center:"flex_box_vertical_center____lt6U",flex_box_center_end:"flex_box_center_end___UqkaD",flex_box_column:"flex_box_column___V8XLF",list:"list___8tjfT",tree_style:"tree_style___ZzDvO",title:"title___IVfkQ",gray:"gray___RnyYk",brght:"brght___EWRNa",s1:"s1___dPBQg",s3:"s3___SRBBG",active:"active___hsNCX",tree_line:"tree_line___EGn30",tabs_style:"tabs_style___Nwkiq",tabs_item:"tabs_item___Vzu_U",tabs_item_active:"tabs_item_active___BcIwZ"},D=i(79124),be=i(20387),R=i(10148),P=i(59301),p=Object.defineProperty,B=Object.defineProperties,me=Object.getOwnPropertyDescriptors,H=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,L=(d,E,I)=>E in d?p(d,E,{enumerable:!0,configurable:!0,writable:!0,value:I}):d[E]=I,W=(d,E)=>{for(var I in E||(E={}))le.call(E,I)&&L(d,I,E[I]);if(H)for(var I of H(E))Q.call(E,I)&&L(d,I,E[I]);return d},q=(d,E)=>B(d,me(E)),ae=(d,E)=>{var I={};for(var z in d)le.call(d,z)&&E.indexOf(z)<0&&(I[z]=d[z]);if(d!=null&&H)for(var z of H(d))E.indexOf(z)<0&&Q.call(d,z)&&(I[z]=d[z]);return I},ve=(d,E,I)=>new Promise((z,ee)=>{var oe=Ce=>{try{F(I.next(Ce))}catch(Le){ee(Le)}},Ee=Ce=>{try{F(I.throw(Ce))}catch(Le){ee(Le)}},F=Ce=>Ce.done?z(Ce.value):Promise.resolve(Ce.value).then(oe,Ee);F((I=I.apply(d,E)).next())});const Ae=[{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",icon:P.createElement("i",{className:"iconfont icon-shixun2 font20"}),bq:P.createElement("span",{style:{border:"1px solid #FF9D18",color:"#FF9D18"},className:fe.s1},"\u5B9E\u8BAD")},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",icon:P.createElement("i",{className:"iconfont icon-shipin font20"}),bq:P.createElement("span",{style:{border:"1px solid #9B18FF",color:"#9B18FF"},className:fe.s1},"\u89C6\u9891")},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",icon:P.createElement("i",{className:"iconfont icon-jiaoxueanli font20"}),bq:P.createElement("span",{style:{border:"1px solid #3061D0",color:"#3061D0"},className:fe.s1},"\u8D44\u6599")},{name:"\u7A7A\u76EE\u5F55",type:"StageCatalog",icon:P.createElement("i",{className:"iconfont icon-kongbai font20"}),bq:P.createElement("span",null)}],Pe=d=>{var E=d,{dispatch:I,pathsDetail:z,videoDetail:ee,user:oe}=E,Ee=ae(E,["dispatch","pathsDetail","videoDetail","user"]);const{queryParams:F,stages:Ce,cust_seq:Le,active:X}=ee,{subject_id:je,course_id:Be}=F,Ke=(0,x.useParams)(),[ze]=(0,x.useSearchParams)(),[it,ut]=(0,y.useState)([]),[dt,tt]=(0,y.useState)([(X==null?void 0:X.id)||Number(Ke.videoId)]),[gt,Xe]=(0,y.useState)("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"),Ne=[".PDF",".DOC",".DOCX",".XLS",".XLSX",".PPT",".PPTX"];(0,y.useEffect)(()=>{I(je?{type:"videoDetail/getStageData",payload:{subject_id:je,page_type:"video"}}:{type:"videoDetail/getCourseStageData",payload:{coursesId:Be}})},[]),(0,y.useEffect)(()=>{ct()},[ee==null?void 0:ee.stages]);const ct=()=>{let He=it;Ce.forEach((pe,e)=>{He.push({title:P.createElement("div",{title:pe.stage_name,className:fe.title},pe.stage_name),value:pe==null?void 0:pe.stage_id,key:pe==null?void 0:pe.stage_id,icon:P.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:ft(pe.items||[])})}),ut(He)},ft=He=>{function pe(e){var t;const n=e.children,r=Array.isArray(n)&&n.length>0,o=e==null?void 0:e.id,{name:S,item_type:O,id:we}=e,_e=(t=Ae.find(ot=>ot.type===O))==null?void 0:t.bq,Oe=fe.brght,et=X.id===we?`${Oe} ${fe.active}`:Oe;return{title:P.createElement("div",{onClick:()=>Ct(e),className:Oe,title:S},_e,P.createElement("div",{className:fe.s3},S)),value:o,key:o,icon:P.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:r?n==null?void 0:n.map(ot=>pe(ot)):[]}}return He==null?void 0:He.map(e=>pe(e))},_t=(He,pe)=>ve(void 0,null,function*(){I({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u7A0D\u540E..."}});const e=pe?yield(0,be.BK)({id:He}):yield(0,be.Ir)({id:He});if(I({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),e!=null&&e.game_identifier||e!=null&&e.identifier){(0,ie.xg)(pe?`/tasks/${e==null?void 0:e.identifier}/jupyter`:`/tasks/${e.game_identifier}`);return}(e==null?void 0:e.status)===2?It(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&Rt(e==null?void 0:e.message)}),Rt=He=>{ce.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:P.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",He,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},It=He=>{He=He!=null&&He.includes(".json")?He:`${He}.json`,ce.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:P.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>ve(void 0,null,function*(){const pe=yield(0,D.L8)({url:He});if(!pe)return;re.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const e=yield(0,be.Ir)({id:pe.shixun_identifier});if(e!=null&&e.game_identifier){(0,ie.xg)(`/tasks/${e.game_identifier}`);return}(e==null?void 0:e.status)===2?It(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&Rt(e==null?void 0:e.message)})})},Ct=He=>{var pe,e,t,n,r;if((He==null?void 0:He.item_type)==="StageCatalog")return;clearTimeout(window.videoTimer);const{id:o,item_type:S,identifier:O,is_jupyter:we,url:_e,link:Oe}=He;if(S==="VideoItem"&&!Oe){if(!((pe=oe.userInfo)!=null&&pe.admin)&&!((e=oe.userInfo)!=null&&e.business)&&!He.can_view){ce.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:P.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}I({type:"videoDetail/handleListItemClick",payload:{videoId:o}}),I({type:"videoDetail/getVideoDetail",payload:q(W({id:o},F),{videoId:o}),callback:et=>{if(et&&et.video_item&&!et.video_item.can_edit&&!He.is_public){ce.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:P.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}}});return}if(S==="VideoItem"&&Oe){He.link&&(0,c.DH)({is_f:1,id:He.id,point:0,total:0}),window.open(Oe);return}if(S==="Shixun"){_t(O,we);return}if(S==="Attachment"){if(Oe){(0,ie.xg)(Oe);return}let et=(n=He==null?void 0:He.name)==null?void 0:n.substr((t=He==null?void 0:He.name)==null?void 0:t.lastIndexOf("."));if(Ne.includes(et.toUpperCase())){I({type:"videoDetail/handleListItemClick",payload:{attachmentId:o}});return}else{if(!((r=z.detail)!=null&&r.allow_download)){re.ZP.info("\u6559\u5B66\u8BFE\u4EF6\u4E0D\u652F\u6301\u4E0B\u8F7D");return}(0,ie.FH)(He.name,R.Z.API_SERVER+He.url);return}}window.open(R.Z.IMG_SERVER+_e)},Et=He=>{let pe=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],e=["","\u5341","\u767E","\u5343","\u4E07"];He=parseInt(He);let t=o=>{let S=o.toString().split("").reverse(),O="";for(var we=0;we<S.length;we++)O=(we==0&&S[we]==0||we>0&&S[we]==0&&S[we-1]==0?"":pe[S[we]]+(S[we]==0?e[0]:e[we]))+O;return O},n=Math.floor(He/1e4),r=He%1e4;return r.toString().length<4&&(r="0"+r),n?t(n)+"\u4E07"+t(r):t(He)},qe=(He,pe,e,t)=>{var n;const{name:r,item_type:o,id:S}=He,O=`${pe+1}-${e+1}-${t+1}`,we=(n=Ae.find(et=>et.type===o))==null?void 0:n.icon,_e=fe.brght,Oe=X.id===S?`${_e} ${fe.active}`:_e;return P.createElement("div",{key:O,onClick:()=>Ct(He),className:Oe,style:{paddingLeft:52}},P.createElement("span",{className:fe.s1},we),!!Le&&P.createElement("span",{className:fe.s2},O),P.createElement("span",{className:fe.s3},"\u203B ",r))},at=(He,pe,e)=>{var t;const{name:n,item_type:r,id:o,children:S}=He,O=`${pe+1}-${e+1}`,we=(t=Ae.find(et=>et.type===r))==null?void 0:t.icon,_e=fe.brght,Oe=X.id===o?`${_e} ${fe.active}`:_e;return P.createElement(y.Fragment,{key:O},P.createElement("div",{onClick:()=>Ct(He),className:Oe},P.createElement("span",{className:fe.s1},we),!!Le&&P.createElement("span",{className:fe.s2},O),P.createElement("span",{className:fe.s3},"\u203B ",n)),!!S.length&&S.map((et,ot)=>qe(et,pe,e,ot)))};return P.createElement("aside",{className:fe.list},P.createElement("div",{className:fe.tabs_style},P.createElement("div",{className:fe.tabs_item,onClick:()=>{Xe("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55")}},"\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55",gt=="\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"&&P.createElement("div",{className:fe.tabs_item_active}))),P.createElement("div",{className:fe.tree_style},(it==null?void 0:it.length)>0&&P.createElement(Y.default,{selectedKeys:dt,onSelect:(He,pe)=>{tt([...He])},blockNode:!0,treeData:it,defaultExpandAll:!0,className:fe.tree_line})))};var Re=(0,x.connect)(({user:d,videoDetail:E,loading:I,globalSetting:z,pathsDetail:ee})=>({user:d,videoDetail:E,globalSetting:z,loading:I,pathsDetail:ee}))(Pe),Je=i(923),ke=i(59301),Ze=Object.defineProperty,Ve=Object.defineProperties,We=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,f=(d,E,I)=>E in d?Ze(d,E,{enumerable:!0,configurable:!0,writable:!0,value:I}):d[E]=I,a=(d,E)=>{for(var I in E||(E={}))g.call(E,I)&&f(d,I,E[I]);if(te)for(var I of te(E))_.call(E,I)&&f(d,I,E[I]);return d},b=(d,E)=>Ve(d,We(E)),V=(d,E)=>{var I={};for(var z in d)g.call(d,z)&&E.indexOf(z)<0&&(I[z]=d[z]);if(d!=null&&te)for(var z of te(d))E.indexOf(z)<0&&_.call(d,z)&&(I[z]=d[z]);return I},h=(d,E,I)=>new Promise((z,ee)=>{var oe=Ce=>{try{F(I.next(Ce))}catch(Le){ee(Le)}},Ee=Ce=>{try{F(I.throw(Ce))}catch(Le){ee(Le)}},F=Ce=>Ce.done?z(Ce.value):Promise.resolve(Ce.value).then(oe,Ee);F((I=I.apply(d,E)).next())});const l=d=>{const{subject_id:E}=d;return{subject_id:E,course_id:E}},v=d=>{var E=d,{videoDetail:I,globalSetting:z,loading:ee,pathsDetail:oe,dispatch:Ee}=E,F=V(E,["videoDetail","globalSetting","loading","pathsDetail","dispatch"]),Ce,Le;const{queryParams:X,videoList:je,attachmentList:Be,active:Ke}=I,{subject_id:ze,videoId:it}=X,ut={videoId:it};(0,y.useEffect)(()=>{if(Ke){const{item_type:gt,id:Xe}=Ke;gt==="VideoItem"&&Ee({type:"videoDetail/getVideoDetail",payload:b(a({},X),{id:Xe})})}},[Ke.id]),console.log("---",Ke),(0,y.useEffect)(()=>{ze&&dt()},[]);function dt(){return h(this,null,function*(){const gt=yield Ee({type:"pathsDetail/getPathsDetail",payload:{id:ze}})})}(0,y.useEffect)(()=>{var gt,Xe;(0,ie.Dk)((Xe=(gt=I.detail)==null?void 0:gt.video_item)==null?void 0:Xe.name)},[I]);let tt={width:1200};return Ke&&Ke.item_type==="Attachment"&&Ke.content_type==="application/pdf"&&(tt={width:1250,marginLeft:(document.body.clientWidth-1200)/2}),ke.createElement(Z.Z,{spinning:!1},ke.createElement("section",{className:J.bg},ke.createElement("div",{className:J.container,style:tt},ke.createElement(Re,null),Ke&&Ke.item_type==="VideoItem"&&ke.createElement(w,null),Ke&&Ke.item_type==="Attachment"&&Ke.content_type==="application/pdf"&&Ke.url&&ke.createElement("div",{className:J.widthle},ke.createElement(Je.Z,{disabledDownload:!((Ce=oe.detail)!=null&&Ce.allow_download),type:"pdf",filename:Ke.name,data:R.Z.API_SERVER+Ke.url,style:{position:"absolute",zIndex:1}})),Ke&&Ke.item_type==="Attachment"&&["application/msword","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(Ke.content_type)&&Ke.url&&ke.createElement("div",{className:J.widthle},ke.createElement(Je.Z,{disabledDownload:!((Le=oe.detail)!=null&&Le.allow_download),type:"office",data:R.Z.API_SERVER+Ke.url,style:{position:"absolute",zIndex:1}})))))};var s=(0,x.connect)(({videoDetail:d,loading:E,globalSetting:I,pathsDetail:z})=>({videoDetail:d,globalSetting:I,loading:E,pathsDetail:z}))(v)},39171:function(pt,Te,i){"use strict";i.d(Te,{BU:function(){return x},Dj:function(){return y},gH:function(){return Z},vp:function(){return J}});function y(A){try{A.mozRequestFullScreen?A.mozRequestFullScreen():A.webkitRequestFullScreen&&A.webkitRequestFullScreen()}catch(m){console.log(m,":e")}}function x(){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 Z=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function J(){var A=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,m=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",A),window.isFullScreen?window.isFullScreen:A!=null}},93726:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return He}});class y{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 r=arguments[n];if(r!=null)for(let o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t},typeof self.Promise!="function"&&i(3867).polyfill()}}y.install();var x=y,Z=i(86204),J=i.n(Z);class A{static e(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","error",n),A.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}static i(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","info",n),A.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}static w(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","warn",n),A.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}static d(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","debug",n),A.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}static v(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","verbose",n),A.ENABLE_VERBOSE&&console.log(n)}}A.GLOBAL_TAG="flv.js",A.FORCE_GLOBAL_TAG=!1,A.ENABLE_ERROR=!0,A.ENABLE_INFO=!0,A.ENABLE_WARN=!0,A.ENABLE_DEBUG=!0,A.ENABLE_VERBOSE=!0,A.ENABLE_CALLBACK=!1,A.emitter=new(J());var m=A;class ce{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(e){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let e=(this._now()-this._lastCheckpoint)/1e3;return e==0&&(e=1),this._intervalBytes/e/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}var de=ce;class se{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class ye extends se{constructor(e){super(e)}get name(){return"IllegalStateException"}}class ue extends se{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class $ extends se{constructor(e){super(e)}get name(){return"NotImplementedException"}}const c={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},ie={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class ne{constructor(e){this._type=e||"undefined",this._status=c.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=c.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===c.kConnecting||this._status===c.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 $("Unimplemented abstract function!")}abort(){throw new $("Unimplemented abstract function!")}}let U={};function Se(){let pe=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(pe)||/(opr)[\/]([\w.]+)/.exec(pe)||/(chrome)[ \/]([\w.]+)/.exec(pe)||/(iemobile)[\/]([\w.]+)/.exec(pe)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(pe)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(pe)||/(webkit)[ \/]([\w.]+)/.exec(pe)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(pe)||/(msie) ([\w.]+)/.exec(pe)||pe.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(pe)||pe.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(pe)||[],t=/(ipad)/.exec(pe)||/(ipod)/.exec(pe)||/(windows phone)/.exec(pe)||/(iphone)/.exec(pe)||/(kindle)/.exec(pe)||/(android)/.exec(pe)||/(windows)/.exec(pe)||/(mac)/.exec(pe)||/(linux)/.exec(pe)||/(cros)/.exec(pe)||[],n={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",majorVersion:e[4]||e[2]||"0",platform:t[0]||""},r={};if(n.browser){r[n.browser]=!0;let o=n.majorVersion.split(".");r.version={major:parseInt(n.majorVersion,10),string:n.version},o.length>1&&(r.version.minor=parseInt(o[1],10)),o.length>2&&(r.version.build=parseInt(o[2],10))}if(n.platform&&(r[n.platform]=!0),(r.chrome||r.opr||r.safari)&&(r.webkit=!0),r.rv||r.iemobile){r.rv&&delete r.rv;let o="msie";n.browser=o,r[o]=!0}if(r.edge){delete r.edge;let o="msedge";n.browser=o,r[o]=!0}if(r.opr){let o="opera";n.browser=o,r[o]=!0}if(r.safari&&r.android){let o="android";n.browser=o,r[o]=!0}r.name=n.browser,r.platform=n.platform;for(let o in U)U.hasOwnProperty(o)&&delete U[o];Object.assign(U,r)}Se();var K=U;class T extends ne{static isSupported(){try{let e=K.msedge&&K.version.minor>=15048,t=K.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 r=this._seekHandler.getConfig(n,t),o=new self.Headers;if(typeof r.headers=="object"){let O=r.headers;for(let we in O)O.hasOwnProperty(we)&&o.append(we,O[we])}let S={method:"GET",headers:o,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let O in this._config.headers)o.append(O,this._config.headers[O]);e.cors===!1&&(S.mode="same-origin"),e.withCredentials&&(S.credentials="include"),e.referrerPolicy&&(S.referrerPolicy=e.referrerPolicy),this._status=c.kConnecting,self.fetch(r.url,S).then(O=>{if(this._requestAbort){this._requestAbort=!1,this._status=c.kIdle;return}if(O.ok&&O.status>=200&&O.status<=299){if(O.url!==r.url&&this._onURLRedirect){let _e=this._seekHandler.removeURLParameters(O.url);this._onURLRedirect(_e)}let we=O.headers.get("Content-Length");return we!=null&&(this._contentLength=parseInt(we),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,O.body.getReader())}else if(this._status=c.kError,this._onError)this._onError(ie.HTTP_STATUS_CODE_INVALID,{code:O.status,msg:O.statusText});else throw new se("FetchStreamLoader: Http code invalid, "+O.status+" "+O.statusText)}).catch(O=>{if(this._status=c.kError,this._onError)this._onError(ie.EXCEPTION,{code:-1,msg:O.message});else throw O})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=c.kError;let n=ie.EARLY_EOF,r={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(n,r);else throw new se(r.msg)}else this._status=c.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=c.kComplete,e.cancel();this._status=c.kBuffering;let n=t.value.buffer,r=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength,this._onDataArrival&&this._onDataArrival(n,r,this._receivedLength),this._pump(e)}}).catch(t=>{if(t.code===11&&K.msedge)return;this._status=c.kError;let n=0,r=null;if((t.code===19||t.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(n=ie.EARLY_EOF,r={code:t.code,msg:"Fetch stream meet Early-EOF"}):(n=ie.EXCEPTION,r={code:t.code,msg:t.message}),this._onError)this._onError(n,r);else throw new se(r.msg)})}}var M=T;class u extends ne{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 m.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 r=this._seekHandler.getConfig(n,t);this._requestURL=r.url;let o=this._xhr=new XMLHttpRequest;if(o.open("GET",r.url,!0),o.responseType="moz-chunked-arraybuffer",o.onreadystatechange=this._onReadyStateChange.bind(this),o.onprogress=this._onProgress.bind(this),o.onloadend=this._onLoadEnd.bind(this),o.onerror=this._onXhrError.bind(this),e.withCredentials&&(o.withCredentials=!0),typeof r.headers=="object"){let S=r.headers;for(let O in S)S.hasOwnProperty(O)&&o.setRequestHeader(O,S[O])}if(typeof this._config.headers=="object"){let S=this._config.headers;for(let O in S)S.hasOwnProperty(O)&&o.setRequestHeader(O,S[O])}this._status=c.kConnecting,o.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=c.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=c.kError,this._onError)this._onError(ie.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new se("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);else this._status=c.kBuffering}}_onProgress(e){if(this._status===c.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===c.kError)return;this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(e){this._status=c.kError;let t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=ie.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=ie.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new se(n.msg)}}var C=u;class N 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 r=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?r=this._currentRedirectedURL:e.redirectedURL!=null&&(r=e.redirectedURL));let o=this._seekHandler.getConfig(r,t);this._currentRequestURL=o.url;let S=this._reader=new self.MSStreamReader;S.onprogress=this._msrOnProgress.bind(this),S.onload=this._msrOnLoad.bind(this),S.onerror=this._msrOnError.bind(this);let O=this._xhr=new XMLHttpRequest;if(O.open("GET",o.url,!0),O.responseType="ms-stream",O.onreadystatechange=this._xhrOnReadyStateChange.bind(this),O.onerror=this._xhrOnError.bind(this),e.withCredentials&&(O.withCredentials=!0),typeof o.headers=="object"){let we=o.headers;for(let _e in we)we.hasOwnProperty(_e)&&O.setRequestHeader(_e,we[_e])}if(typeof this._config.headers=="object"){let we=this._config.headers;for(let _e in we)we.hasOwnProperty(_e)&&O.setRequestHeader(_e,we[_e])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,O.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 r=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&r!==this._currentRedirectedURL&&(this._currentRedirectedURL=r,this._onURLRedirect&&this._onURLRedirect(r))}let n=t.getResponseHeader("Content-Length");if(n!=null&&this._contentLength==null){let r=parseInt(n);r>0&&(this._contentLength=r,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 r=n.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=n.byteLength;let o=this._totalRange.from+this._receivedLength;this._receivedLength+=r.byteLength,this._onDataArrival&&this._onDataArrival(r,o,this._receivedLength),n.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${o+r.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let e={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,e,!0)}}_msrOnLoad(e){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(e){this._status=LoaderStatus.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength<this._contentLength?(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:"MSStream meet Early-Eof"}):(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new RuntimeException(n.msg)}}var k=null;class w extends ne{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer",e.responseType==="arraybuffer"}catch(e){return m.w("RangeLoader",e.message),!1}}constructor(e,t){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=e,this._config=t,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new de,this._requestAbort=!1,this._waitForTotalLength=!1,this._totalLengthReceived=!1,this._currentRequestURL=null,this._currentRedirectedURL=null,this._currentRequestRange=null,this._totalLength=null,this._contentLength=null,this._receivedLength=0,this._lastTimeLoaded=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}get currentSpeed(){return this._speedSampler.lastSecondKBps}open(e,t){this._dataSource=e,this._range=t,this._status=c.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 r=this._seekHandler.getConfig(n,t);this._currentRequestURL=r.url;let o=this._xhr=new XMLHttpRequest;if(o.open("GET",r.url,!0),o.responseType="arraybuffer",o.onreadystatechange=this._onReadyStateChange.bind(this),o.onprogress=this._onProgress.bind(this),o.onload=this._onLoad.bind(this),o.onerror=this._onXhrError.bind(this),e.withCredentials&&(o.withCredentials=!0),typeof r.headers=="object"){let S=r.headers;for(let O in S)S.hasOwnProperty(O)&&o.setRequestHeader(O,S[O])}if(typeof this._config.headers=="object"){let S=this._config.headers;for(let O in S)S.hasOwnProperty(O)&&o.setRequestHeader(O,S[O])}o.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=c.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=c.kBuffering}else if(this._status=c.kError,this._onError)this._onError(ie.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new se("RangeLoader: Http code invalid, "+t.status+" "+t.statusText)}}_onProgress(e){if(this._status===c.kError)return;if(this._contentLength===null){let n=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,n=!0;let r=e.total;this._internalAbort(),r!=null&r!==0&&(this._totalLength=r)}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,r=0,o=0,S=n;if(e<t[0])return t[0];for(;o<=S;){if(r=o+Math.floor((S-o)/2),r===n||e>=t[r]&&e<t[r+1])return t[r];t[r]<e?o=r+1:S=r-1}}_onLoad(e){if(this._status===c.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 S=this._normalizeSpeed(t);this._currentSpeedNormalized!==S&&(this._currentSpeedNormalized=S,this._currentChunkSizeKB=S)}let n=e.target.response,r=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength;let o=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():o=!0,this._onDataArrival&&this._onDataArrival(n,r,this._receivedLength),o&&(this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(e){this._status=c.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=ie.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=ie.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new se(n.msg)}}var re=w;class Y extends ne{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=c.kConnecting}catch(t){this._status=c.kError;let n={code:t.code,msg:t.message};if(this._onError)this._onError(ie.EXCEPTION,n);else throw new se(n.msg)}}abort(){let e=this._ws;e&&(e.readyState===0||e.readyState===1)&&(this._requestAbort=!0,e.close()),this._ws=null,this._status=c.kComplete}_onWebSocketOpen(e){this._status=c.kBuffering}_onWebSocketClose(e){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=c.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=c.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(this._onError)this._onError(ie.EXCEPTION,t);else throw new se(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=c.kError;let t={code:e.code,msg:e.message};if(this._onError)this._onError(ie.EXCEPTION,t);else throw new se(t.msg)}}var fe=Y;class D{constructor(e){this._zeroStart=e||!1}getConfig(e,t){let n={};if(t.from!==0||t.to!==-1){let r;t.to!==-1?r=`bytes=${t.from.toString()}-${t.to.toString()}`:r=`bytes=${t.from.toString()}-`,n.Range=r}else this._zeroStart&&(n.Range="bytes=0-");return{url:e,headers:n}}removeURLParameters(e){return e}}var be=D;class R{constructor(e,t){this._startName=e,this._endName=t}getConfig(e,t){let n=e;if(t.from!==0||t.to!==-1){let r=!0;n.indexOf("?")===-1&&(n+="?",r=!1),r&&(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,r=e.indexOf("?");r!==-1&&(n=e.substring(r+1));let o="";if(n!=null&&n.length>0){let S=n.split("&");for(let O=0;O<S.length;O++){let we=S[O].split("="),_e=O>0;we[0]!==this._startName&&we[0]!==this._endName&&(_e&&(o+="&"),o+=S[O])}}return o.length===0?t:t+"?"+o}}var P=R;class p{constructor(e,t,n){this.TAG="IOController",this._config=t,this._extraData=n,this._stashInitialSize=1024*384,t.stashInitialSize!=null&&t.stashInitialSize>0&&(this._stashInitialSize=t.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,t.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new de,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(e){this._extraData=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onSeeked(){return this._onSeeked}set onSeeked(e){this._onSeeked=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}get onRedirect(){return this._onRedirect}set onRedirect(e){this._onRedirect=e}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(e){this._onRecoveredEarlyEof=e}get currentURL(){return this._dataSource.url}get hasRedirect(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===re?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if(e.seekType==="range")this._seekHandler=new be(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new P(t,n)}else if(e.seekType==="custom"){if(typeof e.customSeekHandler!="function")throw new ue("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new ue(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=fe;else if(M.isSupported())this._loaderClass=M;else if(C.isSupported())this._loaderClass=C;else if(re.isSupported())this._loaderClass=re;else throw new se("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 ue("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 r=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,t).set(r,0)}this._stashBuffer=n,this._bufferSize=t}_normalizeSpeed(e){let t=this._speedNormalizeList,n=t.length-1,r=0,o=0,S=n;if(e<t[0])return t[0];for(;o<=S;){if(r=o+Math.floor((S-o)/2),r===n||e>=t[r]&&e<t[r+1])return t[r];t[r]<e?o=r+1:S=r-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 ye("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 r=this._speedSampler.lastSecondKBps;if(r!==0){let o=this._normalizeSpeed(r);this._speedNormalized!==o&&(this._speedNormalized=o,this._adjustStashSize(o))}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 o=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let S=this._stashBuffer.slice(0,this._stashUsed),O=this._dispatchChunks(S,this._stashByteStart);if(O<S.byteLength){if(O>0){let we=new Uint8Array(S,O);o.set(we,0),this._stashUsed=we.byteLength,this._stashByteStart+=O}}else this._stashUsed=0,this._stashByteStart+=O;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),o=new Uint8Array(this._stashBuffer,0,this._bufferSize)),o.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let S=this._dispatchChunks(e,t);if(S<e.byteLength){let O=e.byteLength-S;O>this._bufferSize&&(this._expandBuffer(O),o=new Uint8Array(this._stashBuffer,0,this._bufferSize)),o.set(new Uint8Array(e,S),0),this._stashUsed+=O,this._stashByteStart=t+S}}}else if(this._stashUsed===0){let o=this._dispatchChunks(e,t);if(o<e.byteLength){let S=e.byteLength-o;S>this._bufferSize&&this._expandBuffer(S),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,o),0),this._stashUsed+=S,this._stashByteStart=t+o}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let o=new Uint8Array(this._stashBuffer,0,this._bufferSize);o.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let S=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(S<this._stashUsed&&S>0){let O=new Uint8Array(this._stashBuffer,S);o.set(O,0)}this._stashUsed-=S,this._stashByteStart+=S}}_flushStashBuffer(e){if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),r=t.byteLength-n;if(n<t.byteLength)if(e)m.w(this.TAG,`${r} bytes unconsumed data remain when flush buffer, dropped`);else{if(n>0){let o=new Uint8Array(this._stashBuffer,0,this._bufferSize),S=new Uint8Array(t,n);o.set(S,0),this._stashUsed=S.byteLength,this._stashByteStart+=n}return 0}return this._stashUsed=0,this._stashByteStart=0,r}return 0}_onLoaderComplete(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(e,t){switch(m.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=ie.UNRECOVERABLE_EARLY_EOF),e){case ie.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let n=this._currentRange.to+1;n<this._totalLength&&(m.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1));return}e=ie.UNRECOVERABLE_EARLY_EOF;break}case ie.UNRECOVERABLE_EARLY_EOF:case ie.CONNECTING_TIMEOUT:case ie.HTTP_STATUS_CODE_INVALID:case ie.EXCEPTION:break}if(this._onError)this._onError(e,t);else throw new se("IOException: "+t.msg)}}var B=p;const me={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function H(){return Object.assign({},me)}class le{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let e=new B({},H()),t=e.loaderType;return e.destroy(),t=="fetch-stream-loader"||t=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let e=new B({},H()),t=e.loaderType;return e.destroy(),t}static supportNativeMediaPlayback(e){le.videoElement==null&&(le.videoElement=window.document.createElement("video"));let t=le.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=le.supportMSEH264Playback(),e.networkStreamIO=le.supportNetworkStreamIO(),e.networkLoaderName=le.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=le.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=le.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=le.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var Q=le,W={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 q{static get forceGlobalTag(){return m.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){m.FORCE_GLOBAL_TAG=e,q._notifyChange()}static get globalTag(){return m.GLOBAL_TAG}static set globalTag(e){m.GLOBAL_TAG=e,q._notifyChange()}static get enableAll(){return m.ENABLE_VERBOSE&&m.ENABLE_DEBUG&&m.ENABLE_INFO&&m.ENABLE_WARN&&m.ENABLE_ERROR}static set enableAll(e){m.ENABLE_VERBOSE=e,m.ENABLE_DEBUG=e,m.ENABLE_INFO=e,m.ENABLE_WARN=e,m.ENABLE_ERROR=e,q._notifyChange()}static get enableDebug(){return m.ENABLE_DEBUG}static set enableDebug(e){m.ENABLE_DEBUG=e,q._notifyChange()}static get enableVerbose(){return m.ENABLE_VERBOSE}static set enableVerbose(e){m.ENABLE_VERBOSE=e,q._notifyChange()}static get enableInfo(){return m.ENABLE_INFO}static set enableInfo(e){m.ENABLE_INFO=e,q._notifyChange()}static get enableWarn(){return m.ENABLE_WARN}static set enableWarn(e){m.ENABLE_WARN=e,q._notifyChange()}static get enableError(){return m.ENABLE_ERROR}static set enableError(e){m.ENABLE_ERROR=e,q._notifyChange()}static getConfig(){return{globalTag:m.GLOBAL_TAG,forceGlobalTag:m.FORCE_GLOBAL_TAG,enableVerbose:m.ENABLE_VERBOSE,enableDebug:m.ENABLE_DEBUG,enableInfo:m.ENABLE_INFO,enableWarn:m.ENABLE_WARN,enableError:m.ENABLE_ERROR,enableCallback:m.ENABLE_CALLBACK}}static applyConfig(e){m.GLOBAL_TAG=e.globalTag,m.FORCE_GLOBAL_TAG=e.forceGlobalTag,m.ENABLE_VERBOSE=e.enableVerbose,m.ENABLE_DEBUG=e.enableDebug,m.ENABLE_INFO=e.enableInfo,m.ENABLE_WARN=e.enableWarn,m.ENABLE_ERROR=e.enableError,m.ENABLE_CALLBACK=e.enableCallback}static _notifyChange(){let e=q.emitter;if(e.listenerCount("change")>0){let t=q.getConfig();e.emit("change",t)}}static registerListener(e){q.emitter.addListener("change",e)}static removeListener(e){q.emitter.removeListener("change",e)}static addLogListener(e){m.emitter.addListener("log",e),m.emitter.listenerCount("log")>0&&(m.ENABLE_CALLBACK=!0,q._notifyChange())}static removeLogListener(e){m.emitter.removeListener("log",e),m.emitter.listenerCount("log")===0&&(m.ENABLE_CALLBACK=!1,q._notifyChange())}}q.emitter=new(J());var ae=q;class ve{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,r=e.length-1,o=0,S=0,O=r;for(t<e[0]&&(n=0,S=O+1);S<=O;)if(o=S+Math.floor((O-S)/2),o===r||t>=e[o]&&t<e[o+1]){n=o;break}else e[o]<t?S=o+1:O=o-1;return n}}var Ae=ve;function Pe(pe,e,t){let n=pe;if(e+t<n.length){for(;t--;)if((n[++e]&192)!==128)return!1;return!0}else return!1}function Re(pe){let e=[],t=pe,n=0,r=pe.length;for(;n<r;){if(t[n]<128){e.push(String.fromCharCode(t[n])),++n;continue}else if(!(t[n]<192)){if(t[n]<224){if(Pe(t,n,1)){let o=(t[n]&31)<<6|t[n+1]&63;if(o>=128){e.push(String.fromCharCode(o&65535)),n+=2;continue}}}else if(t[n]<240){if(Pe(t,n,2)){let o=(t[n]&15)<<12|(t[n+1]&63)<<6|t[n+2]&63;if(o>=2048&&(o&63488)!==55296){e.push(String.fromCharCode(o&65535)),n+=3;continue}}}else if(t[n]<248&&Pe(t,n,3)){let o=(t[n]&7)<<18|(t[n+1]&63)<<12|(t[n+2]&63)<<6|t[n+3]&63;if(o>65536&&o<1114112){o-=65536,e.push(String.fromCharCode(o>>>10|55296)),e.push(String.fromCharCode(o&1023|56320)),n+=4;continue}}}e.push("\uFFFD"),++n}return e.join("")}var Je=Re;let ke=function(){let pe=new ArrayBuffer(2);return new DataView(pe).setInt16(0,256,!0),new Int16Array(pe)[0]===256}();class Ze{static parseScriptData(e,t,n){let r={};try{let o=Ze.parseValue(e,t,n),S=Ze.parseValue(e,t+o.size,n-o.size);r[o.data]=S.data}catch(o){m.e("AMF",o.toString())}return r}static parseObject(e,t,n){if(n<3)throw new ye("Data not enough when parse ScriptDataObject");let r=Ze.parseString(e,t,n),o=Ze.parseValue(e,t+r.size,n-r.size),S=o.objectEnd;return{data:{name:r.data,value:o.data},size:r.size+o.size,objectEnd:S}}static parseVariable(e,t,n){return Ze.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new ye("Data not enough when parse String");let o=new DataView(e,t,n).getUint16(0,!ke),S;return o>0?S=Je(new Uint8Array(e,t+2,o)):S="",{data:S,size:2+o}}static parseLongString(e,t,n){if(n<4)throw new ye("Data not enough when parse LongString");let o=new DataView(e,t,n).getUint32(0,!ke),S;return o>0?S=Je(new Uint8Array(e,t+4,o)):S="",{data:S,size:4+o}}static parseDate(e,t,n){if(n<10)throw new ye("Data size invalid when parse Date");let r=new DataView(e,t,n),o=r.getFloat64(0,!ke),S=r.getInt16(8,!ke);return o+=S*60*1e3,{data:new Date(o),size:10}}static parseValue(e,t,n){if(n<1)throw new ye("Data not enough when parse Value");let r=new DataView(e,t,n),o=1,S=r.getUint8(0),O,we=!1;try{switch(S){case 0:O=r.getFloat64(1,!ke),o+=8;break;case 1:{O=!!r.getUint8(1),o+=1;break}case 2:{let _e=Ze.parseString(e,t+1,n-1);O=_e.data,o+=_e.size;break}case 3:{O={};let _e=0;for((r.getUint32(n-4,!ke)&16777215)===9&&(_e=3);o<n-4;){let Oe=Ze.parseObject(e,t+o,n-o-_e);if(Oe.objectEnd)break;O[Oe.data.name]=Oe.data.value,o+=Oe.size}o<=n-3&&(r.getUint32(o-1,!ke)&16777215)===9&&(o+=3);break}case 8:{O={},o+=4;let _e=0;for((r.getUint32(n-4,!ke)&16777215)===9&&(_e=3);o<n-8;){let Oe=Ze.parseVariable(e,t+o,n-o-_e);if(Oe.objectEnd)break;O[Oe.data.name]=Oe.data.value,o+=Oe.size}o<=n-3&&(r.getUint32(o-1,!ke)&16777215)===9&&(o+=3);break}case 9:O=void 0,o=1,we=!0;break;case 10:{O=[];let _e=r.getUint32(1,!ke);o+=4;for(let Oe=0;Oe<_e;Oe++){let et=Ze.parseValue(e,t+o,n-o);O.push(et.data),o+=et.size}break}case 11:{let _e=Ze.parseDate(e,t+1,n-1);O=_e.data,o+=_e.size;break}case 12:{let _e=Ze.parseString(e,t+1,n-1);O=_e.data,o+=_e.size;break}default:o=n,m.w("AMF","Unsupported AMF value type "+S)}}catch(_e){m.e("AMF",_e.toString())}return{data:O,size:o,objectEnd:we}}}var Ve=Ze;class We{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 ye("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 ue("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let S=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,S}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 r=Math.min(n,this._current_word_bits_left),o=this._current_word>>>32-r;return this._current_word<<=r,this._current_word_bits_left-=r,t=t<<r|o,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 te=We;class g{static _ebsp2rbsp(e){let t=e,n=t.byteLength,r=new Uint8Array(n),o=0;for(let S=0;S<n;S++)S>=2&&t[S]===3&&t[S-1]===0&&t[S-2]===0||(r[o]=t[S],o++);return new Uint8Array(r.buffer,0,o)}static parseSPS(e){let t=g._ebsp2rbsp(e),n=new te(t);n.readByte();let r=n.readByte();n.readByte();let o=n.readByte();n.readUEG();let S=g.getProfileString(r),O=g.getLevelString(o),we=1,_e=420,Oe=[0,420,422,444],et=8;if((r===100||r===110||r===122||r===244||r===44||r===83||r===86||r===118||r===128||r===138||r===144)&&(we=n.readUEG(),we===3&&n.readBits(1),we<=3&&(_e=Oe[we]),et=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let St=we!==3?8:12;for(let yt=0;yt<St;yt++)n.readBool()&&(yt<6?g._skipScalingList(n,16):g._skipScalingList(n,64))}n.readUEG();let ot=n.readUEG();if(ot===0)n.readUEG();else if(ot===1){n.readBits(1),n.readSEG(),n.readSEG();let St=n.readUEG();for(let yt=0;yt<St;yt++)n.readSEG()}let Fe=n.readUEG();n.readBits(1);let mt=n.readUEG(),Ue=n.readUEG(),xe=n.readBits(1);xe===0&&n.readBits(1),n.readBits(1);let Me=0,Qe=0,nt=0,ht=0;n.readBool()&&(Me=n.readUEG(),Qe=n.readUEG(),nt=n.readUEG(),ht=n.readUEG());let wt=1,Ye=1,Ge=0,j=!0,G=0,he=0;if(n.readBool()){if(n.readBool()){let St=n.readByte(),yt=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],At=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];St>0&&St<16?(wt=yt[St-1],Ye=At[St-1]):St===255&&(wt=n.readByte()<<8|n.readByte(),Ye=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 St=n.readBits(32),yt=n.readBits(32);j=n.readBool(),G=yt,he=St*2,Ge=G/he}}let ge=1;(wt!==1||Ye!==1)&&(ge=wt/Ye);let $e=0,De=0;if(we===0)$e=1,De=2-xe;else{let St=we===3?1:2,yt=we===1?2:1;$e=St,De=yt*(2-xe)}let st=(mt+1)*16,bt=(2-xe)*((Ue+1)*16);st-=(Me+Qe)*$e,bt-=(nt+ht)*De;let vt=Math.ceil(st*ge);return n.destroy(),n=null,{profile_string:S,level_string:O,bit_depth:et,ref_frames:Fe,chroma_format:_e,chroma_format_string:g.getChromaFormatString(_e),frame_rate:{fixed:j,fps:Ge,fps_den:he,fps_num:G},sar_ratio:{width:wt,height:Ye},codec_size:{width:st,height:bt},present_size:{width:vt,height:bt}}}static _skipScalingList(e,t){let n=8,r=8,o=0;for(let S=0;S<t;S++)r!==0&&(o=e.readSEG(),r=(n+o+256)%256),n=r===0?n:r}static getProfileString(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(e){return(e/10).toFixed(1)}static getChromaFormatString(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var _=g,a={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function b(pe){return pe>>>8&255|(pe&255)<<8}function V(pe){return(pe&4278190080)>>>24|(pe&16711680)>>>8|(pe&65280)<<8|(pe&255)<<24}function h(pe,e){return pe[e]<<24|pe[e+1]<<16|pe[e+2]<<8|pe[e+3]}class l{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 Ae,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 r=(t[4]&4)>>>2!==0,o=(t[4]&1)!==0,S=h(t,5);return S<9?n:{match:!0,consumed:S,dataOffset:S,hasAudioTrack:r,hasVideoTrack:o}}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 Ae}_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 ye("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let n=0,r=this._littleEndian;if(t===0)if(e.byteLength>13)n=l.probe(e).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,t+n!==this._dataOffset&&m.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(e,n).getUint32(0,!r)!==0&&m.w(this.TAG,"PrevTagSize0 !== 0 !!!"),n+=4);n<e.byteLength;){this._dispatch=!0;let o=new DataView(e,n);if(n+11+4>e.byteLength)break;let S=o.getUint8(0),O=o.getUint32(0,!r)&16777215;if(n+11+O+4>e.byteLength)break;if(S!==8&&S!==9&&S!==18){m.w(this.TAG,`Unsupported tag type ${S}, skipped`),n+=11+O+4;continue}let we=o.getUint8(4),_e=o.getUint8(5),Oe=o.getUint8(6),et=o.getUint8(7),ot=Oe|_e<<8|we<<16|et<<24;(o.getUint32(7,!r)&16777215)!==0&&m.w(this.TAG,"Meet tag which has StreamID != 0!");let mt=n+11;switch(S){case 8:this._parseAudioData(e,mt,O,ot);break;case 9:this._parseVideoData(e,mt,O,ot,t+n);break;case 18:this._parseScriptData(e,mt,O);break}let Ue=o.getUint32(11+O,!r);Ue!==11+O&&m.w(this.TAG,`Invalid PrevTagSize ${Ue}`),n+=11+O+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),n}_parseScriptData(e,t,n){let r=Ve.parseScriptData(e,t,n);if(r.hasOwnProperty("onMetaData")){if(r.onMetaData==null||typeof r.onMetaData!="object"){m.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&m.w(this.TAG,"Found another onMetaData tag!"),this._metadata=r;let o=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},o)),typeof o.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=o.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof o.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=o.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof o.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=o.audiodatarate),typeof o.videodatarate=="number"&&(this._mediaInfo.videoDataRate=o.videodatarate),typeof o.width=="number"&&(this._mediaInfo.width=o.width),typeof o.height=="number"&&(this._mediaInfo.height=o.height),typeof o.duration=="number"){if(!this._durationOverrided){let S=Math.floor(o.duration*this._timescale);this._duration=S,this._mediaInfo.duration=S}}else this._mediaInfo.duration=0;if(typeof o.framerate=="number"){let S=Math.floor(o.framerate*1e3);if(S>0){let O=S/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=O,this._referenceFrameRate.fps_num=S,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=O}}if(typeof o.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let S=o.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(S),o.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=o,m.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(r).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},r))}_parseKeyframesIndex(e){let t=[],n=[];for(let r=1;r<e.times.length;r++){let o=this._timestampBase+Math.floor(e.times[r]*1e3);t.push(o),n.push(e.filepositions[r])}return{times:t,filepositions:n}}_parseAudioData(e,t,n,r){if(n<=1){m.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let o=this._littleEndian,O=new DataView(e,t,n).getUint8(0),we=O>>>4;if(we!==2&&we!==10){this._onError(a.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+we);return}let _e=0,Oe=(O&12)>>>2;if(Oe>=0&&Oe<=4)_e=this._flvSoundRateTable[Oe];else{this._onError(a.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Oe);return}let et=(O&2)>>>1,ot=O&1,Fe=this._audioMetadata,mt=this._audioTrack;if(Fe||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Fe=this._audioMetadata={},Fe.type="audio",Fe.id=mt.id,Fe.timescale=this._timescale,Fe.duration=this._duration,Fe.audioSampleRate=_e,Fe.channelCount=ot===0?1:2),we===10){let Ue=this._parseAACAudioData(e,t+1,n-1);if(Ue==null)return;if(Ue.packetType===0){Fe.config&&m.w(this.TAG,"Found another AudioSpecificConfig!");let xe=Ue.data;Fe.audioSampleRate=xe.samplingRate,Fe.channelCount=xe.channelCount,Fe.codec=xe.codec,Fe.originalCodec=xe.originalCodec,Fe.config=xe.config,Fe.refSampleDuration=1024/Fe.audioSampleRate*Fe.timescale,m.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",Fe);let Me=this._mediaInfo;Me.audioCodec=Fe.originalCodec,Me.audioSampleRate=Fe.audioSampleRate,Me.audioChannelCount=Fe.channelCount,Me.hasVideo?Me.videoCodec!=null&&(Me.mimeType='video/x-flv; codecs="'+Me.videoCodec+","+Me.audioCodec+'"'):Me.mimeType='video/x-flv; codecs="'+Me.audioCodec+'"',Me.isComplete()&&this._onMediaInfo(Me)}else if(Ue.packetType===1){let xe=this._timestampBase+r,Me={unit:Ue.data,length:Ue.data.byteLength,dts:xe,pts:xe};mt.samples.push(Me),mt.length+=Ue.data.length}else m.e(this.TAG,`Flv: Unsupported AAC data type ${Ue.packetType}`)}else if(we===2){if(!Fe.codec){let Qe=this._parseMP3AudioData(e,t+1,n-1,!0);if(Qe==null)return;Fe.audioSampleRate=Qe.samplingRate,Fe.channelCount=Qe.channelCount,Fe.codec=Qe.codec,Fe.originalCodec=Qe.originalCodec,Fe.refSampleDuration=1152/Fe.audioSampleRate*Fe.timescale,m.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Fe);let nt=this._mediaInfo;nt.audioCodec=Fe.codec,nt.audioSampleRate=Fe.audioSampleRate,nt.audioChannelCount=Fe.channelCount,nt.audioDataRate=Qe.bitRate,nt.hasVideo?nt.videoCodec!=null&&(nt.mimeType='video/x-flv; codecs="'+nt.videoCodec+","+nt.audioCodec+'"'):nt.mimeType='video/x-flv; codecs="'+nt.audioCodec+'"',nt.isComplete()&&this._onMediaInfo(nt)}let Ue=this._parseMP3AudioData(e,t+1,n-1,!1);if(Ue==null)return;let xe=this._timestampBase+r,Me={unit:Ue,length:Ue.byteLength,dts:xe,pts:xe};mt.samples.push(Me),mt.length+=Ue.length}}_parseAACAudioData(e,t,n){if(n<=1){m.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let r={},o=new Uint8Array(e,t,n);return r.packetType=o[0],o[0]===0?r.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):r.data=o.subarray(1),r}_parseAACAudioSpecificConfig(e,t,n){let r=new Uint8Array(e,t,n),o=null,S=0,O=0,we=null,_e=0,Oe=null;if(S=O=r[0]>>>3,_e=(r[0]&7)<<1|r[1]>>>7,_e<0||_e>=this._mpegSamplingRates.length){this._onError(a.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let et=this._mpegSamplingRates[_e],ot=(r[1]&120)>>>3;if(ot<0||ot>=8){this._onError(a.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}S===5&&(Oe=(r[1]&7)<<1|r[2]>>>7,we=(r[2]&124)>>>2);let Fe=self.navigator.userAgent.toLowerCase();return Fe.indexOf("firefox")!==-1?_e>=6?(S=5,o=new Array(4),Oe=_e-3):(S=2,o=new Array(2),Oe=_e):Fe.indexOf("android")!==-1?(S=2,o=new Array(2),Oe=_e):(S=5,Oe=_e,o=new Array(4),_e>=6?Oe=_e-3:ot===1&&(S=2,o=new Array(2),Oe=_e)),o[0]=S<<3,o[0]|=(_e&15)>>>1,o[1]=(_e&15)<<7,o[1]|=(ot&15)<<3,S===5&&(o[1]|=(Oe&15)>>>1,o[2]=(Oe&1)<<7,o[2]|=8,o[3]=0),{config:o,samplingRate:et,channelCount:ot,codec:"mp4a.40."+S,originalCodec:"mp4a.40."+O}}_parseMP3AudioData(e,t,n,r){if(n<4){m.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let o=this._littleEndian,S=new Uint8Array(e,t,n),O=null;if(r){if(S[0]!==255)return;let we=S[1]>>>3&3,_e=(S[1]&6)>>1,Oe=(S[2]&240)>>>4,et=(S[2]&12)>>>2,Fe=(S[3]>>>6&3)!==3?2:1,mt=0,Ue=0,xe=34,Me="mp3";switch(we){case 0:mt=this._mpegAudioV25SampleRateTable[et];break;case 2:mt=this._mpegAudioV20SampleRateTable[et];break;case 3:mt=this._mpegAudioV10SampleRateTable[et];break}switch(_e){case 1:xe=34,Oe<this._mpegAudioL3BitRateTable.length&&(Ue=this._mpegAudioL3BitRateTable[Oe]);break;case 2:xe=33,Oe<this._mpegAudioL2BitRateTable.length&&(Ue=this._mpegAudioL2BitRateTable[Oe]);break;case 3:xe=32,Oe<this._mpegAudioL1BitRateTable.length&&(Ue=this._mpegAudioL1BitRateTable[Oe]);break}O={bitRate:Ue,samplingRate:mt,channelCount:Fe,codec:Me,originalCodec:Me}}else O=S;return O}_parseVideoData(e,t,n,r,o){if(n<=1){m.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let S=new Uint8Array(e,t,n)[0],O=(S&240)>>>4,we=S&15;if(we!==7){this._onError(a.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${we}`);return}this._parseAVCVideoPacket(e,t+1,n-1,r,o,O)}_parseAVCVideoPacket(e,t,n,r,o,S){if(n<4){m.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let O=this._littleEndian,we=new DataView(e,t,n),_e=we.getUint8(0),et=(we.getUint32(0,!O)&16777215)<<8>>8;if(_e===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(_e===1)this._parseAVCVideoData(e,t+4,n-4,r,o,S,et);else if(_e!==2){this._onError(a.FORMAT_ERROR,`Flv: Invalid video packet type ${_e}`);return}}_parseAVCDecoderConfigurationRecord(e,t,n){if(n<7){m.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let r=this._videoMetadata,o=this._videoTrack,S=this._littleEndian,O=new DataView(e,t,n);r?typeof r.avcc!="undefined"&&m.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),r=this._videoMetadata={},r.type="video",r.id=o.id,r.timescale=this._timescale,r.duration=this._duration);let we=O.getUint8(0),_e=O.getUint8(1),Oe=O.getUint8(2),et=O.getUint8(3);if(we!==1||_e===0){this._onError(a.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(O.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(a.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let ot=O.getUint8(5)&31;if(ot===0){this._onError(a.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else ot>1&&m.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${ot}`);let Fe=6;for(let Ue=0;Ue<ot;Ue++){let xe=O.getUint16(Fe,!S);if(Fe+=2,xe===0)continue;let Me=new Uint8Array(e,t+Fe,xe);Fe+=xe;let Qe=_.parseSPS(Me);if(Ue!==0)continue;r.codecWidth=Qe.codec_size.width,r.codecHeight=Qe.codec_size.height,r.presentWidth=Qe.present_size.width,r.presentHeight=Qe.present_size.height,r.profile=Qe.profile_string,r.level=Qe.level_string,r.bitDepth=Qe.bit_depth,r.chromaFormat=Qe.chroma_format,r.sarRatio=Qe.sar_ratio,r.frameRate=Qe.frame_rate,(Qe.frame_rate.fixed===!1||Qe.frame_rate.fps_num===0||Qe.frame_rate.fps_den===0)&&(r.frameRate=this._referenceFrameRate);let nt=r.frameRate.fps_den,ht=r.frameRate.fps_num;r.refSampleDuration=r.timescale*(nt/ht);let $t=Me.subarray(1,4),wt="avc1.";for(let Ge=0;Ge<3;Ge++){let j=$t[Ge].toString(16);j.length<2&&(j="0"+j),wt+=j}r.codec=wt;let Ye=this._mediaInfo;Ye.width=r.codecWidth,Ye.height=r.codecHeight,Ye.fps=r.frameRate.fps,Ye.profile=r.profile,Ye.level=r.level,Ye.refFrames=Qe.ref_frames,Ye.chromaFormat=Qe.chroma_format_string,Ye.sarNum=r.sarRatio.width,Ye.sarDen=r.sarRatio.height,Ye.videoCodec=wt,Ye.hasAudio?Ye.audioCodec!=null&&(Ye.mimeType='video/x-flv; codecs="'+Ye.videoCodec+","+Ye.audioCodec+'"'):Ye.mimeType='video/x-flv; codecs="'+Ye.videoCodec+'"',Ye.isComplete()&&this._onMediaInfo(Ye)}let mt=O.getUint8(Fe);if(mt===0){this._onError(a.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else mt>1&&m.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${mt}`);Fe++;for(let Ue=0;Ue<mt;Ue++){let xe=O.getUint16(Fe,!S);Fe+=2,xe!==0&&(Fe+=xe)}r.avcc=new Uint8Array(n),r.avcc.set(new Uint8Array(e,t,n),0),m.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",r)}_parseAVCVideoData(e,t,n,r,o,S,O){let we=this._littleEndian,_e=new DataView(e,t,n),Oe=[],et=0,ot=0;const Fe=this._naluLengthSize;let mt=this._timestampBase+r,Ue=S===1;for(;ot<n;){if(ot+4>=n){m.w(this.TAG,`Malformed Nalu near timestamp ${mt}, offset = ${ot}, dataSize = ${n}`);break}let xe=_e.getUint32(ot,!we);if(Fe===3&&(xe>>>=8),xe>n-Fe){m.w(this.TAG,`Malformed Nalus near timestamp ${mt}, NaluSize > DataSize!`);return}let Me=_e.getUint8(ot+Fe)&31;Me===5&&(Ue=!0);let Qe=new Uint8Array(e,t+ot,Fe+xe),nt={type:Me,data:Qe};Oe.push(nt),et+=Qe.byteLength,ot+=Fe+xe}if(Oe.length){let xe=this._videoTrack,Me={units:Oe,length:et,isKeyframe:Ue,dts:mt,cts:O,pts:mt+O};Ue&&(Me.fileposition=o),xe.samples.push(Me),xe.length+=et}}}var v=l;class s{static init(){s.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 s.types)s.types.hasOwnProperty(t)&&(s.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=s.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,r=Array.prototype.slice.call(arguments,1),o=r.length;for(let O=0;O<o;O++)t+=r[O].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 S=8;for(let O=0;O<o;O++)n.set(r[O],S),S+=r[O].byteLength;return n}static generateInitSegment(e){let t=s.box(s.types.ftyp,s.constants.FTYP),n=s.moov(e),r=new Uint8Array(t.byteLength+n.byteLength);return r.set(t,0),r.set(n,t.byteLength),r}static moov(e){let t=s.mvhd(e.timescale,e.duration),n=s.trak(e),r=s.mvex(e);return s.box(s.types.moov,t,n,r)}static mvhd(e,t){return s.box(s.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 s.box(s.types.trak,s.tkhd(e),s.mdia(e))}static tkhd(e){let t=e.id,n=e.duration,r=e.presentWidth,o=e.presentHeight;return s.box(s.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,r>>>8&255,r&255,0,0,o>>>8&255,o&255,0,0]))}static mdia(e){return s.box(s.types.mdia,s.mdhd(e),s.hdlr(e),s.minf(e))}static mdhd(e){let t=e.timescale,n=e.duration;return s.box(s.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=s.constants.HDLR_AUDIO:t=s.constants.HDLR_VIDEO,s.box(s.types.hdlr,t)}static minf(e){let t=null;return e.type==="audio"?t=s.box(s.types.smhd,s.constants.SMHD):t=s.box(s.types.vmhd,s.constants.VMHD),s.box(s.types.minf,t,s.dinf(),s.stbl(e))}static dinf(){return s.box(s.types.dinf,s.box(s.types.dref,s.constants.DREF))}static stbl(e){return s.box(s.types.stbl,s.stsd(e),s.box(s.types.stts,s.constants.STTS),s.box(s.types.stsc,s.constants.STSC),s.box(s.types.stsz,s.constants.STSZ),s.box(s.types.stco,s.constants.STCO))}static stsd(e){return e.type==="audio"?e.codec==="mp3"?s.box(s.types.stsd,s.constants.STSD_PREFIX,s.mp3(e)):s.box(s.types.stsd,s.constants.STSD_PREFIX,s.mp4a(e)):s.box(s.types.stsd,s.constants.STSD_PREFIX,s.avc1(e))}static mp3(e){let t=e.channelCount,n=e.audioSampleRate,r=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 s.box(s.types[".mp3"],r)}static mp4a(e){let t=e.channelCount,n=e.audioSampleRate,r=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 s.box(s.types.mp4a,r,s.esds(e))}static esds(e){let t=e.config||[],n=t.length,r=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 s.box(s.types.esds,r)}static avc1(e){let t=e.avcc,n=e.codecWidth,r=e.codecHeight,o=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,r>>>8&255,r&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 s.box(s.types.avc1,o,s.box(s.types.avcC,t))}static mvex(e){return s.box(s.types.mvex,s.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 s.box(s.types.trex,n)}static moof(e,t){return s.box(s.types.moof,s.mfhd(e.sequenceNumber),s.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 s.box(s.types.mfhd,t)}static traf(e,t){let n=e.id,r=s.box(s.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255])),o=s.box(s.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255])),S=s.sdtp(e),O=s.trun(e,S.byteLength+16+16+8+16+8+8);return s.box(s.types.traf,r,o,O,S)}static sdtp(e){let t=e.samples||[],n=t.length,r=new Uint8Array(4+n);for(let o=0;o<n;o++){let S=t[o].flags;r[o+4]=S.isLeading<<6|S.dependsOn<<4|S.isDependedOn<<2|S.hasRedundancy}return s.box(s.types.sdtp,r)}static trun(e,t){let n=e.samples||[],r=n.length,o=12+16*r,S=new Uint8Array(o);t+=8+o,S.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0);for(let O=0;O<r;O++){let we=n[O].duration,_e=n[O].size,Oe=n[O].flags,et=n[O].cts;S.set([we>>>24&255,we>>>16&255,we>>>8&255,we&255,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255,Oe.isLeading<<2|Oe.dependsOn,Oe.isDependedOn<<6|Oe.hasRedundancy<<4|Oe.isNonSync,0,0,et>>>24&255,et>>>16&255,et>>>8&255,et&255],12+16*O)}return s.box(s.types.trun,S)}static mdat(e){return s.box(s.types.mdat,e)}}s.init();var d=s;class E{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 I=E;class z{constructor(e,t,n,r,o){this.dts=e,this.pts=t,this.duration=n,this.originalDts=r,this.isSyncPoint=o,this.fileposition=null}}class ee{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 oe{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,r=t.length-1,o=0,S=0,O=r;for(e<t[0].dts&&(n=0,S=O+1);S<=O;)if(o=S+Math.floor((O-S)/2),o===r||e>=t[o].dts&&e<t[o+1].dts){n=o;break}else t[o].dts<e?S=o+1:O=o-1;return this._list[n]}}class Ee{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,r=0,o=0,S=n,O=0;if(e<t[0].originalBeginDts)return O=-1,O;for(;o<=S;)if(r=o+Math.floor((S-o)/2),r===n||e>t[r].lastSample.originalDts&&e<t[r+1].originalBeginDts){O=r;break}else t[r].originalBeginDts<e?o=r+1:S=r-1;return O}_searchNearestSegmentAfter(e){return this._searchNearestSegmentBefore(e)+1}append(e){let t=this._list,n=e,r=this._lastAppendLocation,o=0;r!==-1&&r<t.length&&n.originalBeginDts>=t[r].lastSample.originalDts&&(r===t.length-1||r<t.length-1&&n.originalBeginDts<t[r+1].originalBeginDts)?o=r+1:t.length>0&&(o=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=o,this._list.splice(o,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 F{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 Ee("audio"),this._videoSegmentInfoList=new Ee("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(K.chrome&&(K.version.major<50||K.version.major===50&&K.version.build<2661)),this._fillSilentAfterSeek=K.msedge||K.msie,this._mp3UseMpegAudio=!K.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 ye("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}_onTrackMetadataReceived(e,t){let n=null,r="mp4",o=t.codec;if(e==="audio")this._audioMeta=t,t.codec==="mp3"&&this._mp3UseMpegAudio?(r="mpeg",o="",n=new Uint8Array):n=d.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=d.generateInitSegment(t);else return;if(!this._onInitSegment)throw new ye("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:o,container:`${e}/${r}`,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 r={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};t!=null&&(r.samples.push(t),r.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(r,!0)}_remuxAudio(e,t){if(this._audioMeta==null)return;let n=e,r=n.samples,o,S=-1,O=-1,we=-1,_e=this._audioMeta.refSampleDuration,Oe=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,et=this._dtsBaseInited&&this._audioNextDts===void 0,ot=!1;if(!r||r.length===0||r.length===1&&!t)return;let Fe=0,mt=null,Ue=0;Oe?(Fe=0,Ue=n.length):(Fe=8,Ue=8+n.length);let xe=null;if(r.length>1&&(xe=r.pop(),Ue-=xe.length),this._audioStashedLastSample!=null){let Ye=this._audioStashedLastSample;this._audioStashedLastSample=null,r.unshift(Ye),Ue+=Ye.length}xe!=null&&(this._audioStashedLastSample=xe);let Me=r[0].dts-this._dtsBase;if(this._audioNextDts)o=Me-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())o=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(ot=!0);else{let Ye=this._audioSegmentInfoList.getLastSampleBefore(Me);if(Ye!=null){let Ge=Me-(Ye.originalDts+Ye.duration);Ge<=3&&(Ge=0);let j=Ye.dts+Ye.duration+Ge;o=Me-j}else o=0}if(ot){let Ye=Me-o,Ge=this._videoSegmentInfoList.getLastSegmentBefore(Me);if(Ge!=null&&Ge.beginDts<Ye){let j=I.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(j){let G=Ge.beginDts,he=Ye-Ge.beginDts;m.v(this.TAG,`InsertPrefixSilentAudio: dts: ${G}, duration: ${he}`),r.unshift({unit:j,dts:G,pts:G}),Ue+=j.byteLength}}else ot=!1}let Qe=[];for(let Ye=0;Ye<r.length;Ye++){let Ge=r[Ye],j=Ge.unit,G=Ge.dts-this._dtsBase,he=G-o;S===-1&&(S=he);let Ie=0;Ye!==r.length-1?Ie=r[Ye+1].dts-this._dtsBase-o-he:xe!=null?Ie=xe.dts-this._dtsBase-o-he:Qe.length>=1?Ie=Qe[Qe.length-1].duration:Ie=Math.floor(_e);let ge=!1,$e=null;if(Ie>_e*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!K.safari){ge=!0;let De=Math.abs(Ie-_e),st=Math.ceil(De/_e),bt=he+_e;m.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
dts: ${he+Ie} ms, expected: ${he+Math.round(_e)} ms, delta: ${Math.round(De)} ms, generate: ${st} frames`);let vt=I.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);vt==null&&(m.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),vt=j),$e=[];for(let yt=0;yt<st;yt++){let At=Math.round(bt);if($e.length>0){let Ot=$e[$e.length-1];Ot.duration=At-Ot.dts}let Tt={dts:At,pts:At,cts:0,unit:vt,size:vt.byteLength,duration:0,originalDts:G,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};$e.push(Tt),Ue+=Tt.size,bt+=_e}let St=$e[$e.length-1];St.duration=he+Ie-St.dts,Ie=Math.round(_e)}Qe.push({dts:he,pts:he,cts:0,unit:Ge.unit,size:Ge.unit.byteLength,duration:Ie,originalDts:G,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),ge&&Qe.push.apply(Qe,$e)}Oe?mt=new Uint8Array(Ue):(mt=new Uint8Array(Ue),mt[0]=Ue>>>24&255,mt[1]=Ue>>>16&255,mt[2]=Ue>>>8&255,mt[3]=Ue&255,mt.set(d.types.mdat,4));for(let Ye=0;Ye<Qe.length;Ye++){let Ge=Qe[Ye].unit;mt.set(Ge,Fe),Fe+=Ge.byteLength}let nt=Qe[Qe.length-1];O=nt.dts+nt.duration,this._audioNextDts=O;let ht=new ee;ht.beginDts=S,ht.endDts=O,ht.beginPts=S,ht.endPts=O,ht.originalBeginDts=Qe[0].originalDts,ht.originalEndDts=nt.originalDts+nt.duration,ht.firstSample=new z(Qe[0].dts,Qe[0].pts,Qe[0].duration,Qe[0].originalDts,!1),ht.lastSample=new z(nt.dts,nt.pts,nt.duration,nt.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(ht),n.samples=Qe,n.sequenceNumber++;let $t=null;Oe?$t=new Uint8Array:$t=d.moof(n,S),n.samples=[],n.length=0;let wt={type:"audio",data:this._mergeBoxes($t,mt).buffer,sampleCount:Qe.length,info:ht};Oe&&et&&(wt.timestampOffset=S),this._onMediaSegment("audio",wt)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,r=n.samples,o,S=-1,O=-1,we=-1,_e=-1;if(!r||r.length===0||r.length===1&&!t)return;let Oe=8,et=null,ot=8+e.length,Fe=null;if(r.length>1&&(Fe=r.pop(),ot-=Fe.length),this._videoStashedLastSample!=null){let nt=this._videoStashedLastSample;this._videoStashedLastSample=null,r.unshift(nt),ot+=nt.length}Fe!=null&&(this._videoStashedLastSample=Fe);let mt=r[0].dts-this._dtsBase;if(this._videoNextDts)o=mt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())o=0;else{let nt=this._videoSegmentInfoList.getLastSampleBefore(mt);if(nt!=null){let ht=mt-(nt.originalDts+nt.duration);ht<=3&&(ht=0);let $t=nt.dts+nt.duration+ht;o=mt-$t}else o=0}let Ue=new ee,xe=[];for(let nt=0;nt<r.length;nt++){let ht=r[nt],$t=ht.dts-this._dtsBase,wt=ht.isKeyframe,Ye=$t-o,Ge=ht.cts,j=Ye+Ge;S===-1&&(S=Ye,we=j);let G=0;if(nt!==r.length-1?G=r[nt+1].dts-this._dtsBase-o-Ye:Fe!=null?G=Fe.dts-this._dtsBase-o-Ye:xe.length>=1?G=xe[xe.length-1].duration:G=Math.floor(this._videoMeta.refSampleDuration),wt){let he=new z(Ye,j,G,ht.dts,!0);he.fileposition=ht.fileposition,Ue.appendSyncPoint(he)}xe.push({dts:Ye,pts:j,cts:Ge,units:ht.units,size:ht.length,isKeyframe:wt,duration:G,originalDts:$t,flags:{isLeading:0,dependsOn:wt?2:1,isDependedOn:wt?1:0,hasRedundancy:0,isNonSync:wt?0:1}})}et=new Uint8Array(ot),et[0]=ot>>>24&255,et[1]=ot>>>16&255,et[2]=ot>>>8&255,et[3]=ot&255,et.set(d.types.mdat,4);for(let nt=0;nt<xe.length;nt++){let ht=xe[nt].units;for(;ht.length;){let wt=ht.shift().data;et.set(wt,Oe),Oe+=wt.byteLength}}let Me=xe[xe.length-1];if(O=Me.dts+Me.duration,_e=Me.pts+Me.duration,this._videoNextDts=O,Ue.beginDts=S,Ue.endDts=O,Ue.beginPts=we,Ue.endPts=_e,Ue.originalBeginDts=xe[0].originalDts,Ue.originalEndDts=Me.originalDts+Me.duration,Ue.firstSample=new z(xe[0].dts,xe[0].pts,xe[0].duration,xe[0].originalDts,xe[0].isKeyframe),Ue.lastSample=new z(Me.dts,Me.pts,Me.duration,Me.originalDts,Me.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Ue),n.samples=xe,n.sequenceNumber++,this._forceFirstIDR){let nt=xe[0].flags;nt.dependsOn=2,nt.isNonSync=0}let Qe=d.moof(n,S);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Qe,et).buffer,sampleCount:xe.length,info:Ue})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var Ce=F,X={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 je{constructor(e,t){this.TAG="TransmuxingController",this._emitter=new(J()),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(r=>{r.timestampBase=n,n+=r.duration,r.cors=e.cors,r.withCredentials=e.withCredentials,t.referrerPolicy&&(r.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],r=this._ioctl=new B(n,this._config,e);r.onError=this._onIOException.bind(this),r.onSeeked=this._onIOSeeked.bind(this),r.onComplete=this._onIOComplete.bind(this),r.onRedirect=this._onIORedirect.bind(this),r.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):r.onDataArrival=this._onInitChunkArrival.bind(this),r.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 r=n.getNearestKeyframe(e);this._remuxer.seek(r.milliseconds),this._ioctl.seek(r.fileposition),this._pendingResolveSeekPoint=r.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 r=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,r.fileposition),this._pendingResolveSeekPoint=r.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(e){let t=this._mediaDataSource.segments,n=t.length-1;for(let r=0;r<t.length;r++)if(e<t[r].timestampBase){n=r-1;break}return n}_onInitChunkArrival(e,t){let n=null,r=0;if(t>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,r=this._demuxer.parseChunks(e,t);else if((n=v.probe(e)).match){this._demuxer=new v(n,this._config),this._remuxer||(this._remuxer=new Ce(this._config));let o=this._mediaDataSource;o.duration!=null&&!isNaN(o.duration)&&(this._demuxer.overridedDuration=o.duration),typeof o.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=o.hasAudio),typeof o.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=o.hasVideo),this._demuxer.timestampBase=o.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),r=this._demuxer.parseChunks(e,t)}else n=null,m.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(X.DEMUX_ERROR,a.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),r=0;return r}_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,Ae.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,Ae.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(X.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(X.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(X.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(e){let t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}_onIORecoveredEarlyEof(){this._emitter.emit(X.RECOVERED_EARLY_EOF)}_onIOException(e,t){m.e(this.TAG,`IOException: type = ${e}, code = ${t.code}, msg = ${t.msg}`),this._emitter.emit(X.IO_ERROR,e,t),this._disableStatisticsReporter()}_onDemuxException(e,t){m.e(this.TAG,`DemuxException: type = ${e}, info = ${t}`),this._emitter.emit(X.DEMUX_ERROR,e,t)}_onRemuxerInitSegmentArrival(e,t){this._emitter.emit(X.INIT_SEGMENT,e,t)}_onRemuxerMediaSegmentArrival(e,t){if(this._pendingSeekTime==null&&(this._emitter.emit(X.MEDIA_SEGMENT,e,t),this._pendingResolveSeekPoint!=null&&e==="video")){let n=t.info.syncPoints,r=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,K.safari&&n.length>0&&n[0].originalDts===r&&(r=n[0].pts),this._emitter.emit(X.RECOMMEND_SEEKPOINT,r)}}_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(X.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(X.STATISTICS_INFO,e)}}var Be=je,ze=function(pe){let e="TransmuxingWorker",t=null,n=Ue.bind(this);x.install(),pe.addEventListener("message",function(xe){switch(xe.data.cmd){case"init":t=new Be(xe.data.param[0],xe.data.param[1]),t.on(X.IO_ERROR,ot.bind(this)),t.on(X.DEMUX_ERROR,Fe.bind(this)),t.on(X.INIT_SEGMENT,r.bind(this)),t.on(X.MEDIA_SEGMENT,o.bind(this)),t.on(X.LOADING_COMPLETE,S.bind(this)),t.on(X.RECOVERED_EARLY_EOF,O.bind(this)),t.on(X.MEDIA_INFO,we.bind(this)),t.on(X.METADATA_ARRIVED,_e.bind(this)),t.on(X.SCRIPTDATA_ARRIVED,Oe.bind(this)),t.on(X.STATISTICS_INFO,et.bind(this)),t.on(X.RECOMMEND_SEEKPOINT,mt.bind(this));break;case"destroy":t&&(t.destroy(),t=null),pe.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(xe.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let Me=xe.data.param;ae.applyConfig(Me),Me.enableCallback===!0?ae.addLogListener(n):ae.removeLogListener(n);break}}});function r(xe,Me){let Qe={msg:X.INIT_SEGMENT,data:{type:xe,data:Me}};pe.postMessage(Qe,[Me.data])}function o(xe,Me){let Qe={msg:X.MEDIA_SEGMENT,data:{type:xe,data:Me}};pe.postMessage(Qe,[Me.data])}function S(){let xe={msg:X.LOADING_COMPLETE};pe.postMessage(xe)}function O(){let xe={msg:X.RECOVERED_EARLY_EOF};pe.postMessage(xe)}function we(xe){let Me={msg:X.MEDIA_INFO,data:xe};pe.postMessage(Me)}function _e(xe){let Me={msg:X.METADATA_ARRIVED,data:xe};pe.postMessage(Me)}function Oe(xe){let Me={msg:X.SCRIPTDATA_ARRIVED,data:xe};pe.postMessage(Me)}function et(xe){let Me={msg:X.STATISTICS_INFO,data:xe};pe.postMessage(Me)}function ot(xe,Me){pe.postMessage({msg:X.IO_ERROR,data:{type:xe,info:Me}})}function Fe(xe,Me){pe.postMessage({msg:X.DEMUX_ERROR,data:{type:xe,info:Me}})}function mt(xe){pe.postMessage({msg:X.RECOMMEND_SEEKPOINT,data:xe})}function Ue(xe,Me){pe.postMessage({msg:"logcat_callback",data:{type:xe,logcat:Me}})}};class it{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(J()),t.enableWorker&&typeof Worker!="undefined")try{let n=i(82059);this._worker=n(ze),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)},ae.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:ae.getConfig()})}catch(n){m.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Be(e,t)}else this._controller=new Be(e,t);if(this._controller){let n=this._controller;n.on(X.IO_ERROR,this._onIOError.bind(this)),n.on(X.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(X.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(X.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(X.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(X.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(X.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(X.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(X.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(X.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(X.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),ae.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(X.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(X.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(X.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(X.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(X.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(X.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(X.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(X.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(X.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(X.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(X.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 X.INIT_SEGMENT:case X.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case X.LOADING_COMPLETE:case X.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case X.MEDIA_INFO:Object.setPrototypeOf(n,Ae.prototype),this._emitter.emit(t.msg,n);break;case X.METADATA_ARRIVED:case X.SCRIPTDATA_ARRIVED:case X.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case X.IO_ERROR:case X.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case X.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":m.emitter.emit("log",n.type,n.logcat);break;default:break}}}var ut=it,tt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class gt{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new(J()),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 oe}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 ye("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 r=this._sourceBuffers[t];if(r){if(e.readyState!=="closed"){try{e.removeSourceBuffer(r)}catch(o){m.e(this.TAG,o.message)}r.removeEventListener("error",this.e.onSourceBufferError),r.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if(e.readyState==="open")try{e.endOfStream()}catch(t){m.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,r=`${n.container}`;n.codec&&n.codec.length>0&&(r+=`;codecs=${n.codec}`);let o=!1;if(m.v(this.TAG,"Received Initialization Segment, mimeType: "+r),this._lastInitSegments[n.type]=n,r!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])m.v(this.TAG,`Notice: ${n.type} mimeType changed, origin: ${this._mimeTypes[n.type]}, target: ${r}`);else{o=!0;try{let S=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(r);S.addEventListener("error",this.e.onSourceBufferError),S.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(S){m.e(this.TAG,S.message),this._emitter.emit(tt.ERROR,{code:S.code,msg:S.message});return}}this._mimeTypes[n.type]=r}t||this._pendingSegments[n.type].push(n),o||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),K.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(o){m.e(this.TAG,o.message)}this._idrList.clear();let r=this._pendingSegments[t];if(r.splice(0,r.length),this._mediaSource.readyState!=="closed"){for(let o=0;o<n.buffered.length;o++){let S=n.buffered.start(o),O=n.buffered.end(o);this._pendingRemoveRanges[t].push({start:S,end:O})}if(n.updating||this._doRemoveRanges(),K.safari){let o=this._lastInitSegments[t];o&&(this._pendingSegments[t].push(o),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 r=n.buffered;if(r.length>=1&&e-r.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 r=n.buffered,o=!1;for(let S=0;S<r.length;S++){let O=r.start(S),we=r.end(S);if(O<=e&&e<we+3){if(e-O>=this._config.autoCleanupMaxBackwardDuration){o=!0;let _e=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:O,end:_e})}}else we<e&&(o=!0,this._pendingRemoveRanges[t].push({start:O,end:we}))}o&&!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)&&(m.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 r=n.shift();t.remove(r.start,r.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 r=this._sourceBuffers[t].timestampOffset,o=n.timestampOffset/1e3;Math.abs(r-o)>.1&&(m.v(this.TAG,`Update MPEG audio timestampOffset from ${r} to ${o}`),this._sourceBuffers[t].timestampOffset=o),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(r){this._pendingSegments[t].unshift(n),r.code===22?(this._isBufferFull||this._emitter.emit(tt.BUFFER_FULL),this._isBufferFull=!0):(m.e(this.TAG,r.message),this._emitter.emit(tt.ERROR,{code:r.code,msg:r.message}))}}}_onSourceOpen(){if(m.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(tt.SOURCE_OPEN)}_onSourceEnded(){m.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){m.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(tt.UPDATE_END)}_onSourceBufferError(e){m.e(this.TAG,`SourceBuffer Error: ${e}`)}}var Xe=gt;const Ne={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},ct={NETWORK_EXCEPTION:ie.EXCEPTION,NETWORK_STATUS_CODE_INVALID:ie.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:ie.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:ie.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:a.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:a.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:a.CODEC_UNSUPPORTED};class ft{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(J()),this._config=H(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()!=="flv")throw new ue("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=K.chrome&&(K.version.major<50||K.version.major===50&&K.version.build<2661);this._alwaysSeekKeyframe=!!(n||K.msedge||K.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===W.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(W.MEDIA_INFO,this.mediaInfo)}):e===W.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(W.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 Xe(this._config),this._msectl.on(tt.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(tt.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(tt.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(tt.ERROR,t=>{this._emitter.emit(W.ERROR,Ne.MEDIA_ERROR,ct.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 ye("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new ye("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 ut(this._mediaDataSource,this._config),this._transmuxer.on(X.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(X.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&&(m.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(X.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(W.LOADING_COMPLETE)}),this._transmuxer.on(X.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(W.RECOVERED_EARLY_EOF)}),this._transmuxer.on(X.IO_ERROR,(e,t)=>{this._emitter.emit(W.ERROR,Ne.NETWORK_ERROR,e,t)}),this._transmuxer.on(X.DEMUX_ERROR,(e,t)=>{this._emitter.emit(W.ERROR,Ne.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(X.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(W.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(X.METADATA_ARRIVED,e=>{this._emitter.emit(W.METADATA_ARRIVED,e)}),this._transmuxer.on(X.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(W.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(X.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(W.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(X.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,r=0;if(this._mediaElement.getVideoPlaybackQuality){let o=this._mediaElement.getVideoPlaybackQuality();n=o.totalVideoFrames,r=o.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=r),e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,r=0;for(let o=0;o<e.length;o++){let S=e.start(o),O=e.end(o);if(S<=t&&t<O){n=S,r=O;break}}r>=t+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(m.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){m.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 r=0;r<t.length;r++){let o=t.start(r),S=t.end(r);if(e>=o&&e<S){e>=S-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(m.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 r=t.start(n),o=t.end(n);if(e>=r&&e<o)return!0}return!1}_internalSeek(e){let t=this._isTimepointBuffered(e),n=!1,r=0;if(e<1&&this._mediaElement.buffered.length>0){let o=this._mediaElement.buffered.start(0);(o<1&&e<o||K.safari)&&(n=!0,r=K.safari?.1:o)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=r;else if(t){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=e;else{let o=this._msectl.getNearestKeyframe(Math.floor(e*1e3));this._requestSetTime=!0,o!=null?this._mediaElement.currentTime=o.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)&&(m.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 r=n.start(0);if(r<1&&t<r||K.safari){this._requestSetTime=!0,this._mediaElement.currentTime=K.safari?.1:r;return}}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){let r=this._msectl.getNearestKeyframe(Math.floor(t*1e3));r!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=r.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(e){this._checkAndResumeStuckPlayback(!0)}_onvProgress(e){this._checkAndResumeStuckPlayback()}}var _t=ft;class Rt{constructor(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(J()),this._config=H(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()==="flv")throw new ue("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new ue(`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===W.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(W.MEDIA_INFO,this.mediaInfo)}):e===W.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(W.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 ye("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,r=0;if(this._mediaElement.getVideoPlaybackQuality){let o=this._mediaElement.getVideoPlaybackQuality();n=o.totalVideoFrames,r=o.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=r),e}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(W.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(W.STATISTICS_INFO,this.statisticsInfo)}}var It=Rt;x.install();function Ct(pe,e){let t=pe;if(t==null||typeof t!="object")throw new ue("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new ue("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new _t(t,e);default:return new It(t,e)}}function Et(){return Q.supportMSEH264Playback()}function qe(){return Q.getFeatureList()}let at={};at.createPlayer=Ct,at.isSupported=Et,at.getFeatureList=qe,at.BaseLoader=ne,at.LoaderStatus=c,at.LoaderErrors=ie,at.Events=W,at.ErrorTypes=Ne,at.ErrorDetails=ct,at.FlvPlayer=_t,at.NativePlayer=It,at.LoggingControl=ae,Object.defineProperty(at,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var He=at},98447:function(pt,Te,i){"use strict";i.d(Te,{C2:function(){return A}});var y=i(17313),x=i(37613),Z=i(83116);const J=m=>{const{checkboxCls:ce}=m,de=`${ce}-wrapper`;return[{[`${ce}-group`]:Object.assign(Object.assign({},(0,y.Wf)(m)),{display:"inline-flex",flexWrap:"wrap",columnGap:m.marginXS,[`> ${m.antCls}-row`]:{flex:1}}),[de]:Object.assign(Object.assign({},(0,y.Wf)(m)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${de}`]:{marginInlineStart:0},[`&${de}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ce]:Object.assign(Object.assign({},(0,y.Wf)(m)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:m.borderRadiusSM,alignSelf:"center",[`${ce}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ce}-inner`]:Object.assign({},(0,y.oN)(m))},[`${ce}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:m.checkboxSize,height:m.checkboxSize,direction:"ltr",backgroundColor:m.colorBgContainer,border:`${m.lineWidth}px ${m.lineType} ${m.colorBorder}`,borderRadius:m.borderRadiusSM,borderCollapse:"separate",transition:`all ${m.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:m.checkboxSize/14*5,height:m.checkboxSize/14*8,border:`${m.lineWidthBold}px solid ${m.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${m.motionDurationFast} ${m.motionEaseInBack}, opacity ${m.motionDurationFast}`}},"& + span":{paddingInlineStart:m.paddingXS,paddingInlineEnd:m.paddingXS}})},{[`
|
|
${de}:not(${de}-disabled),
|
|
${ce}:not(${ce}-disabled)
|
|
`]:{[`&:hover ${ce}-inner`]:{borderColor:m.colorPrimary}},[`${de}:not(${de}-disabled)`]:{[`&:hover ${ce}-checked:not(${ce}-disabled) ${ce}-inner`]:{backgroundColor:m.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ce}-checked:not(${ce}-disabled):after`]:{borderColor:m.colorPrimaryHover}}},{[`${ce}-checked`]:{[`${ce}-inner`]:{backgroundColor:m.colorPrimary,borderColor:m.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${m.motionDurationMid} ${m.motionEaseOutBack} ${m.motionDurationFast}`}}},[`
|
|
${de}-checked:not(${de}-disabled),
|
|
${ce}-checked:not(${ce}-disabled)
|
|
`]:{[`&:hover ${ce}-inner`]:{backgroundColor:m.colorPrimaryHover,borderColor:"transparent"}}},{[ce]:{"&-indeterminate":{[`${ce}-inner`]:{backgroundColor:m.colorBgContainer,borderColor:m.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:m.fontSizeLG/2,height:m.fontSizeLG/2,backgroundColor:m.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${de}-disabled`]:{cursor:"not-allowed"},[`${ce}-disabled`]:{[`&, ${ce}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ce}-inner`]:{background:m.colorBgContainerDisabled,borderColor:m.colorBorder,"&:after":{borderColor:m.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:m.colorTextDisabled},[`&${ce}-indeterminate ${ce}-inner::after`]:{background:m.colorTextDisabled}}}]};function A(m,ce){const de=(0,x.TS)(ce,{checkboxCls:`.${m}`,checkboxSize:ce.controlInteractiveSize});return[J(de)]}Te.ZP=(0,Z.Z)("Checkbox",(m,ce)=>{let{prefixCls:de}=ce;return[A(de,m)]})},91857:function(pt,Te,i){"use strict";var y=i(59301),x=i(38819),Z=i(92310),J=i.n(Z),A=i(31561),m=i(70425),ce=i(18929),de=i(2738),se=i(79676),ye=i(53487),ue=i(92343),$=i(36355),c=i(20834),ie=i(40875),ne=i(88088),U=i(47211);const Se=null,K=C=>{const{menu:N,arrow:k,prefixCls:w,children:re,trigger:Y,disabled:fe,dropdownRender:D,getPopupContainer:be,overlayClassName:R,rootClassName:P,open:p,onOpenChange:B,visible:me,onVisibleChange:H,mouseEnterDelay:le=.15,mouseLeaveDelay:Q=.1,autoAdjustOverflow:L=!0,placement:W="",overlay:q,transitionName:ae}=C,{getPopupContainer:ve,getPrefixCls:Ae,direction:Pe}=y.useContext($.E_),Re=y.useMemo(()=>{const d=Ae();return ae!==void 0?ae:W.includes("top")?`${d}-slide-down`:`${d}-slide-up`},[Ae,W,ae]),Je=y.useMemo(()=>W?W.includes("Center")?W.slice(0,W.indexOf("Center")):W:Pe==="rtl"?"bottomRight":"bottomLeft",[W,Pe]),ke=Ae("dropdown",w),[Ze,Ve]=(0,U.Z)(ke),[,We]=(0,ne.Z)(),te=y.Children.only(re),g=(0,ue.Tm)(te,{className:J()(`${ke}-trigger`,{[`${ke}-rtl`]:Pe==="rtl"},te.props.className),disabled:fe}),_=fe?[]:Y;let f;_&&_.includes("contextMenu")&&(f=!0);const[a,b]=(0,ce.Z)(!1,{value:p!=null?p:me}),V=(0,m.useEvent)(d=>{B==null||B(d),H==null||H(d),b(d)}),h=J()(R,P,Ve,{[`${ke}-rtl`]:Pe==="rtl"}),l=(0,se.Z)({arrowPointAtCenter:typeof k=="object"&&k.pointAtCenter,autoAdjustOverflow:L,offset:We.marginXXS,arrowWidth:k?We.sizePopupArrow:0,borderRadius:We.borderRadius}),v=y.useCallback(()=>{b(!1)},[]),s=()=>{let d;return N!=null&&N.items?d=y.createElement(c.default,Object.assign({},N)):typeof q=="function"?d=q():d=q,D&&(d=D(d)),d=y.Children.only(typeof d=="string"?y.createElement("span",null,d):d),y.createElement(ie.J,{prefixCls:`${ke}-menu`,expandIcon:y.createElement("span",{className:`${ke}-menu-submenu-arrow`},y.createElement(x.Z,{className:`${ke}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:v,validator:E=>{let{mode:I}=E}},d)};return Ze(y.createElement(A.Z,Object.assign({alignPoint:f},(0,de.Z)(C,["rootClassName"]),{mouseEnterDelay:le,mouseLeaveDelay:Q,visible:a,builtinPlacements:l,arrow:!!k,overlayClassName:h,prefixCls:ke,getPopupContainer:be||ve,transitionName:Re,trigger:_,overlay:s,placement:Je,onVisibleChange:V}),g))};function T(C){return Object.assign(Object.assign({},C),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const M=(0,ye.Z)(K,"dropdown",C=>C,T),u=C=>y.createElement(M,Object.assign({},C),y.createElement("span",null));K._InternalPanelDoNotUseOrYouWillBeFired=u,Te.Z=K},38854:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return ne}});var y=i(91857),x=i(92310),Z=i.n(x),J=i(59301),A=i(18785),m=i(3113),ce=i(36355),de=i(81327),se=i(33234),ye=i(47211),ue=function(U,Se){var K={};for(var T in U)Object.prototype.hasOwnProperty.call(U,T)&&Se.indexOf(T)<0&&(K[T]=U[T]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,T=Object.getOwnPropertySymbols(U);M<T.length;M++)Se.indexOf(T[M])<0&&Object.prototype.propertyIsEnumerable.call(U,T[M])&&(K[T[M]]=U[T[M]]);return K};const $=U=>{const{getPopupContainer:Se,getPrefixCls:K,direction:T}=J.useContext(ce.E_),{prefixCls:M,type:u="default",danger:C,disabled:N,loading:k,onClick:w,htmlType:re,children:Y,className:fe,menu:D,arrow:be,autoFocus:R,overlay:P,trigger:p,align:B,open:me,onOpenChange:H,placement:le,getPopupContainer:Q,href:L,icon:W=J.createElement(A.Z,null),title:q,buttonsRender:ae=s=>s,mouseEnterDelay:ve,mouseLeaveDelay:Ae,overlayClassName:Pe,overlayStyle:Re,destroyPopupOnHide:Je,dropdownRender:ke}=U,Ze=ue(U,["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"]),Ve=K("dropdown",M),We=`${Ve}-button`,[te,g]=(0,ye.Z)(Ve),_={menu:D,arrow:be,autoFocus:R,align:B,disabled:N,trigger:N?[]:p,onOpenChange:H,getPopupContainer:Q||Se,mouseEnterDelay:ve,mouseLeaveDelay:Ae,overlayClassName:Pe,overlayStyle:Re,destroyPopupOnHide:Je,dropdownRender:ke},{compactSize:f,compactItemClassnames:a}=(0,se.ri)(Ve,T),b=Z()(We,a,fe,g);"overlay"in U&&(_.overlay=P),"open"in U&&(_.open=me),"placement"in U?_.placement=le:_.placement=T==="rtl"?"bottomLeft":"bottomRight";const V=J.createElement(m.ZP,{type:u,danger:C,disabled:N,loading:k,onClick:w,htmlType:re,href:L,title:q},Y),h=J.createElement(m.ZP,{type:u,danger:C,icon:W}),[l,v]=ae([V,h]);return te(J.createElement(de.Z.Compact,Object.assign({className:b,size:f,block:!0},Ze),l,J.createElement(y.Z,Object.assign({},_),v)))};$.__ANT_BUTTON=!0;var c=$;const ie=y.Z;ie.Button=c;var ne=ie},47211:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return ue}});var y=i(17313),x=i(13826),Z=i(92899),J=i(29878),A=i(19447),m=i(83116),ce=i(37613),se=$=>{const{componentCls:c,menuCls:ie,colorError:ne,colorTextLightSolid:U}=$,Se=`${ie}-item`;return{[`${c}, ${c}-menu-submenu`]:{[`${ie} ${Se}`]:{[`&${Se}-danger:not(${Se}-disabled)`]:{color:ne,"&:hover":{color:U,backgroundColor:ne}}}}}};const ye=$=>{const{componentCls:c,menuCls:ie,zIndexPopup:ne,dropdownArrowDistance:U,sizePopupArrow:Se,antCls:K,iconCls:T,motionDurationMid:M,dropdownPaddingVertical:u,fontSize:C,dropdownEdgeChildPadding:N,colorTextDisabled:k,fontSizeIcon:w,controlPaddingHorizontal:re,colorBgElevated:Y}=$;return[{[c]:Object.assign(Object.assign({},(0,y.Wf)($)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ne,display:"block","&::before":{position:"absolute",insetBlock:-U+Se/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${K}-btn`]:{[`& > ${T}-down, & > ${K}-btn-icon > ${T}-down`]:{fontSize:w}},[`${c}-wrap`]:{position:"relative",[`${K}-btn > ${T}-down`]:{fontSize:w},[`${T}-down::before`]:{transition:`transform ${M}`}},[`${c}-wrap-open`]:{[`${T}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${K}-slide-down-enter${K}-slide-down-enter-active${c}-placement-bottomLeft,
|
|
&${K}-slide-down-appear${K}-slide-down-appear-active${c}-placement-bottomLeft,
|
|
&${K}-slide-down-enter${K}-slide-down-enter-active${c}-placement-bottom,
|
|
&${K}-slide-down-appear${K}-slide-down-appear-active${c}-placement-bottom,
|
|
&${K}-slide-down-enter${K}-slide-down-enter-active${c}-placement-bottomRight,
|
|
&${K}-slide-down-appear${K}-slide-down-appear-active${c}-placement-bottomRight`]:{animationName:x.fJ},[`&${K}-slide-up-enter${K}-slide-up-enter-active${c}-placement-topLeft,
|
|
&${K}-slide-up-appear${K}-slide-up-appear-active${c}-placement-topLeft,
|
|
&${K}-slide-up-enter${K}-slide-up-enter-active${c}-placement-top,
|
|
&${K}-slide-up-appear${K}-slide-up-appear-active${c}-placement-top,
|
|
&${K}-slide-up-enter${K}-slide-up-enter-active${c}-placement-topRight,
|
|
&${K}-slide-up-appear${K}-slide-up-appear-active${c}-placement-topRight`]:{animationName:x.Qt},[`&${K}-slide-down-leave${K}-slide-down-leave-active${c}-placement-bottomLeft,
|
|
&${K}-slide-down-leave${K}-slide-down-leave-active${c}-placement-bottom,
|
|
&${K}-slide-down-leave${K}-slide-down-leave-active${c}-placement-bottomRight`]:{animationName:x.Uw},[`&${K}-slide-up-leave${K}-slide-up-leave-active${c}-placement-topLeft,
|
|
&${K}-slide-up-leave${K}-slide-up-leave-active${c}-placement-top,
|
|
&${K}-slide-up-leave${K}-slide-up-leave-active${c}-placement-topRight`]:{animationName:x.ly}})},(0,A.ZP)($,{colorBg:Y,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${c} ${ie}`]:{position:"relative",margin:0},[`${ie}-submenu-popup`]:{position:"absolute",zIndex:ne,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${c}, ${c}-menu-submenu`]:{[ie]:Object.assign(Object.assign({padding:N,listStyleType:"none",backgroundColor:Y,backgroundClip:"padding-box",borderRadius:$.borderRadiusLG,outline:"none",boxShadow:$.boxShadowSecondary},(0,y.Qy)($)),{[`${ie}-item-group-title`]:{padding:`${u}px ${re}px`,color:$.colorTextDescription,transition:`all ${M}`},[`${ie}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ie}-item-icon`]:{minWidth:C,marginInlineEnd:$.marginXS,fontSize:$.fontSizeSM},[`${ie}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${M}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ie}-item, ${ie}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${u}px ${re}px`,color:$.colorText,fontWeight:"normal",fontSize:C,lineHeight:$.lineHeight,cursor:"pointer",transition:`all ${M}`,borderRadius:$.borderRadiusSM,"&:hover, &-active":{backgroundColor:$.controlItemBgHover}},(0,y.Qy)($)),{"&-selected":{color:$.colorPrimary,backgroundColor:$.controlItemBgActive,"&:hover, &-active":{backgroundColor:$.controlItemBgActiveHover}},"&-disabled":{color:k,cursor:"not-allowed","&:hover":{color:k,backgroundColor:Y,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${$.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:$.colorSplit},[`${c}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:$.paddingXS,[`${c}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:$.colorTextDescription,fontSize:w,fontStyle:"normal"}}}),[`${ie}-item-group-list`]:{margin:`0 ${$.marginXS}px`,padding:0,listStyle:"none"},[`${ie}-submenu-title`]:{paddingInlineEnd:re+$.fontSizeSM},[`${ie}-submenu-vertical`]:{position:"relative"},[`${ie}-submenu${ie}-submenu-disabled ${c}-menu-submenu-title`]:{[`&, ${c}-menu-submenu-arrow-icon`]:{color:k,backgroundColor:Y,cursor:"not-allowed"}},[`${ie}-submenu-selected ${c}-menu-submenu-title`]:{color:$.colorPrimary}})}},[(0,x.oN)($,"slide-up"),(0,x.oN)($,"slide-down"),(0,Z.Fm)($,"move-up"),(0,Z.Fm)($,"move-down"),(0,J._y)($,"zoom-big")]]};var ue=(0,m.Z)("Dropdown",($,c)=>{let{rootPrefixCls:ie}=c;const{marginXXS:ne,sizePopupArrow:U,controlHeight:Se,fontSize:K,lineHeight:T,paddingXXS:M,componentCls:u,borderRadiusLG:C}=$,N=(Se-K*T)/2,{dropdownArrowOffset:k}=(0,A.fS)({contentRadius:C}),w=(0,ce.TS)($,{menuCls:`${u}-menu`,rootPrefixCls:ie,dropdownArrowDistance:U/2+ne,dropdownArrowOffset:k,dropdownPaddingVertical:N,dropdownEdgeChildPadding:M});return[ye(w),se(w)]},$=>({zIndexPopup:$.zIndexPopupBase+50}))},64165:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return M}});var y=i(92310),x=i.n(y),Z=i(59301),J=i(36355),A=i(9763),m=i(64993),ce=i(88088),se=()=>{const[,u]=(0,ce.Z)(),N=new m.C(u.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Z.createElement("svg",{style:N,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Z.createElement("g",{fill:"none",fillRule:"evenodd"},Z.createElement("g",{transform:"translate(24 31.67)"},Z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Z.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),Z.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),Z.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),Z.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),Z.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),Z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ue=()=>{const[,u]=(0,ce.Z)(),{colorFill:C,colorFillTertiary:N,colorFillQuaternary:k,colorBgContainer:w}=u,{borderColor:re,shadowColor:Y,contentColor:fe}=(0,Z.useMemo)(()=>({borderColor:new m.C(C).onBackground(w).toHexShortString(),shadowColor:new m.C(N).onBackground(w).toHexShortString(),contentColor:new m.C(k).onBackground(w).toHexShortString()}),[C,N,k,w]);return Z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Z.createElement("ellipse",{fill:Y,cx:"32",cy:"33",rx:"32",ry:"7"}),Z.createElement("g",{fillRule:"nonzero",stroke:re},Z.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),Z.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:fe}))))},$=i(83116),c=i(37613);const ie=u=>{const{componentCls:C,margin:N,marginXS:k,marginXL:w,fontSize:re,lineHeight:Y}=u;return{[C]:{marginInline:k,fontSize:re,lineHeight:Y,textAlign:"center",[`${C}-image`]:{height:u.emptyImgHeight,marginBottom:k,opacity:u.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${C}-description`]:{color:u.colorText},[`${C}-footer`]:{marginTop:N},"&-normal":{marginBlock:w,color:u.colorTextDisabled,[`${C}-description`]:{color:u.colorTextDisabled},[`${C}-image`]:{height:u.emptyImgHeightMD}},"&-small":{marginBlock:k,color:u.colorTextDisabled,[`${C}-image`]:{height:u.emptyImgHeightSM}}}}};var ne=(0,$.Z)("Empty",u=>{const{componentCls:C,controlHeightLG:N}=u,k=(0,c.TS)(u,{emptyImgCls:`${C}-img`,emptyImgHeight:N*2.5,emptyImgHeightMD:N,emptyImgHeightSM:N*.875});return[ie(k)]}),U=function(u,C){var N={};for(var k in u)Object.prototype.hasOwnProperty.call(u,k)&&C.indexOf(k)<0&&(N[k]=u[k]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,k=Object.getOwnPropertySymbols(u);w<k.length;w++)C.indexOf(k[w])<0&&Object.prototype.propertyIsEnumerable.call(u,k[w])&&(N[k[w]]=u[k[w]]);return N};const Se=Z.createElement(se,null),K=Z.createElement(ue,null),T=u=>{var{className:C,rootClassName:N,prefixCls:k,image:w=Se,description:re,children:Y,imageStyle:fe,style:D}=u,be=U(u,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:R,direction:P,empty:p}=Z.useContext(J.E_),B=R("empty",k),[me,H]=ne(B),[le]=(0,A.Z)("Empty"),Q=typeof re!="undefined"?re:le==null?void 0:le.description,L=typeof Q=="string"?Q:"empty";let W=null;return typeof w=="string"?W=Z.createElement("img",{alt:L,src:w}):W=w,me(Z.createElement("div",Object.assign({className:x()(H,B,p==null?void 0:p.className,{[`${B}-normal`]:w===K,[`${B}-rtl`]:P==="rtl"},C,N),style:Object.assign(Object.assign({},p==null?void 0:p.style),D)},be),Z.createElement("div",{className:`${B}-image`,style:fe},W),Q&&Z.createElement("div",{className:`${B}-description`},Q),Y&&Z.createElement("div",{className:`${B}-footer`},Y)))};T.PRESENTED_IMAGE_DEFAULT=Se,T.PRESENTED_IMAGE_SIMPLE=K;var M=T},45818:function(pt,Te,i){"use strict";i.d(Te,{D:function(){return M},Z:function(){return N}});var y=i(16378),x=i(59301),Z={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"},J=Z,A=i(7657),m=function(w,re){return x.createElement(A.Z,(0,y.Z)({},w,{ref:re,icon:J}))},ce=x.forwardRef(m),de=ce,se=i(33853),ye=i(38819),ue=i(92310),$=i.n(ue),c=i(2738),ne=k=>!isNaN(parseFloat(k))&&isFinite(k),U=i(36355),Se=i(84966),K=function(k,w){var re={};for(var Y in k)Object.prototype.hasOwnProperty.call(k,Y)&&w.indexOf(Y)<0&&(re[Y]=k[Y]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,Y=Object.getOwnPropertySymbols(k);fe<Y.length;fe++)w.indexOf(Y[fe])<0&&Object.prototype.propertyIsEnumerable.call(k,Y[fe])&&(re[Y[fe]]=k[Y[fe]]);return re};const T={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},M=x.createContext({}),u=(()=>{let k=0;return function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return k+=1,`${w}${k}`}})();var N=x.forwardRef((k,w)=>{const{prefixCls:re,className:Y,trigger:fe,children:D,defaultCollapsed:be=!1,theme:R="dark",style:P={},collapsible:p=!1,reverseArrow:B=!1,width:me=200,collapsedWidth:H=80,zeroWidthTriggerStyle:le,breakpoint:Q,onCollapse:L,onBreakpoint:W}=k,q=K(k,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ae}=(0,x.useContext)(Se.Gs),[ve,Ae]=(0,x.useState)("collapsed"in k?k.collapsed:be),[Pe,Re]=(0,x.useState)(!1);(0,x.useEffect)(()=>{"collapsed"in k&&Ae(k.collapsed)},[k.collapsed]);const Je=(g,_)=>{"collapsed"in k||Ae(g),L==null||L(g,_)},ke=(0,x.useRef)();ke.current=g=>{Re(g.matches),W==null||W(g.matches),ve!==g.matches&&Je(g.matches,"responsive")},(0,x.useEffect)(()=>{function g(f){return ke.current(f)}let _;if(typeof window!="undefined"){const{matchMedia:f}=window;if(f&&Q&&Q in T){_=f(`(max-width: ${T[Q]})`);try{_.addEventListener("change",g)}catch(a){_.addListener(g)}g(_)}}return()=>{try{_==null||_.removeEventListener("change",g)}catch(f){_==null||_.removeListener(g)}}},[Q]),(0,x.useEffect)(()=>{const g=u("ant-sider-");return ae.addSider(g),()=>ae.removeSider(g)},[]);const Ze=()=>{Je(!ve,"clickTrigger")},{getPrefixCls:Ve}=(0,x.useContext)(U.E_),We=()=>{const g=Ve("layout-sider",re),_=(0,c.Z)(q,["collapsed"]),f=ve?H:me,a=ne(f)?`${f}px`:String(f),b=parseFloat(String(H||0))===0?x.createElement("span",{onClick:Ze,className:$()(`${g}-zero-width-trigger`,`${g}-zero-width-trigger-${B?"right":"left"}`),style:le},fe||x.createElement(de,null)):null,l={expanded:B?x.createElement(ye.Z,null):x.createElement(se.Z,null),collapsed:B?x.createElement(se.Z,null):x.createElement(ye.Z,null)}[ve?"collapsed":"expanded"],v=fe!==null?b||x.createElement("div",{className:`${g}-trigger`,onClick:Ze,style:{width:a}},fe||l):null,s=Object.assign(Object.assign({},P),{flex:`0 0 ${a}`,maxWidth:a,minWidth:a,width:a}),d=$()(g,`${g}-${R}`,{[`${g}-collapsed`]:!!ve,[`${g}-has-trigger`]:p&&fe!==null&&!b,[`${g}-below`]:!!Pe,[`${g}-zero-width`]:parseFloat(a)===0},Y);return x.createElement("aside",Object.assign({className:d},_,{style:s,ref:w}),x.createElement("div",{className:`${g}-children`},D),p||Pe&&b?v:null)},te=x.useMemo(()=>({siderCollapsed:ve}),[ve]);return x.createElement(M.Provider,{value:te},We())})},84966:function(pt,Te,i){"use strict";i.d(Te,{VY:function(){return M},$_:function(){return T},h4:function(){return K},Gs:function(){return c},ZP:function(){return u}});var y=i(65093),x=i(92310),Z=i.n(x),J=i(2738),A=i(59301),m=i(36355),ce=i(83116),se=C=>{const{componentCls:N,bodyBg:k,lightSiderBg:w,lightTriggerBg:re,lightTriggerColor:Y}=C;return{[`${N}-sider-light`]:{background:w,[`${N}-sider-trigger`]:{color:Y,background:re},[`${N}-sider-zero-width-trigger`]:{color:Y,background:re,border:`1px solid ${k}`,borderInlineStart:0}}}};const ye=C=>{const{antCls:N,componentCls:k,colorText:w,triggerColor:re,footerBg:Y,triggerBg:fe,headerHeight:D,headerPadding:be,headerColor:R,footerPadding:P,triggerHeight:p,zeroTriggerHeight:B,zeroTriggerWidth:me,motionDurationMid:H,motionDurationSlow:le,fontSize:Q,borderRadius:L,bodyBg:W,headerBg:q,siderBg:ae}=C;return{[k]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:W,"&, *":{boxSizing:"border-box"},[`&${k}-has-sider`]:{flexDirection:"row",[`> ${k}, > ${k}-content`]:{width:0}},[`${k}-header, &${k}-footer`]:{flex:"0 0 auto"},[`${k}-sider`]:{position:"relative",minWidth:0,background:ae,transition:`all ${H}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${N}-menu${N}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:p},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:p,color:re,lineHeight:`${p}px`,textAlign:"center",background:fe,cursor:"pointer",transition:`all ${H}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:D,insetInlineEnd:-me,zIndex:1,width:me,height:B,color:re,fontSize:C.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ae,borderStartStartRadius:0,borderStartEndRadius:L,borderEndEndRadius:L,borderEndStartRadius:0,cursor:"pointer",transition:`background ${le} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${le}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-me,borderStartStartRadius:L,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:L}}}}},se(C)),{"&-rtl":{direction:"rtl"}}),[`${k}-header`]:{height:D,padding:be,color:R,lineHeight:`${D}px`,background:q,[`${N}-menu`]:{lineHeight:"inherit"}},[`${k}-footer`]:{padding:P,color:w,fontSize:Q,background:Y},[`${k}-content`]:{flex:"auto",minHeight:0}}};var ue=(0,ce.Z)("Layout",C=>[ye(C)],C=>{const{colorBgLayout:N,controlHeight:k,controlHeightLG:w,colorText:re,controlHeightSM:Y,marginXXS:fe,colorTextLightSolid:D,colorBgContainer:be}=C,R=w*1.25;return{colorBgHeader:"#001529",colorBgBody:N,colorBgTrigger:"#002140",bodyBg:N,headerBg:"#001529",headerHeight:k*2,headerPadding:`0 ${R}px`,headerColor:re,footerPadding:`${Y}px ${R}px`,footerBg:N,siderBg:"#001529",triggerHeight:w+fe*2,triggerBg:"#002140",triggerColor:D,zeroTriggerWidth:w,zeroTriggerHeight:w,lightSiderBg:be,lightTriggerBg:be,lightTriggerColor:re}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),$=function(C,N){var k={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&N.indexOf(w)<0&&(k[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,w=Object.getOwnPropertySymbols(C);re<w.length;re++)N.indexOf(w[re])<0&&Object.prototype.propertyIsEnumerable.call(C,w[re])&&(k[w[re]]=C[w[re]]);return k};const c=A.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ie(C){let{suffixCls:N,tagName:k,displayName:w}=C;return re=>A.forwardRef((fe,D)=>A.createElement(re,Object.assign({ref:D,suffixCls:N,tagName:k},fe)))}const ne=A.forwardRef((C,N)=>{const{prefixCls:k,suffixCls:w,className:re,tagName:Y}=C,fe=$(C,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:D}=A.useContext(m.E_),be=D("layout",k),[R,P]=ue(be),p=w?`${be}-${w}`:be;return R(A.createElement(Y,Object.assign({className:Z()(k||p,re,P),ref:N},fe)))}),U=A.forwardRef((C,N)=>{const{direction:k}=A.useContext(m.E_),[w,re]=A.useState([]),{prefixCls:Y,className:fe,rootClassName:D,children:be,hasSider:R,tagName:P,style:p}=C,B=$(C,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),me=(0,J.Z)(B,["suffixCls"]),{getPrefixCls:H,layout:le}=A.useContext(m.E_),Q=H("layout",Y),[L,W]=ue(Q),q=Z()(Q,{[`${Q}-has-sider`]:typeof R=="boolean"?R:w.length>0,[`${Q}-rtl`]:k==="rtl"},le==null?void 0:le.className,fe,D,W),ae=A.useMemo(()=>({siderHook:{addSider:ve=>{re(Ae=>[].concat((0,y.Z)(Ae),[ve]))},removeSider:ve=>{re(Ae=>Ae.filter(Pe=>Pe!==ve))}}}),[]);return L(A.createElement(c.Provider,{value:ae},A.createElement(P,Object.assign({ref:N,className:q,style:Object.assign(Object.assign({},le==null?void 0:le.style),p)},me),be)))}),Se=ie({tagName:"div",displayName:"Layout"})(U),K=ie({suffixCls:"header",tagName:"header",displayName:"Header"})(ne),T=ie({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ne),M=ie({suffixCls:"content",tagName:"main",displayName:"Content"})(ne);var u=Se},40875:function(pt,Te,i){"use strict";i.d(Te,{J:function(){return m}});var y=i(59301),x=i(33234),Z=i(70425),J=function(ce,de){var se={};for(var ye in ce)Object.prototype.hasOwnProperty.call(ce,ye)&&de.indexOf(ye)<0&&(se[ye]=ce[ye]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,ye=Object.getOwnPropertySymbols(ce);ue<ye.length;ue++)de.indexOf(ye[ue])<0&&Object.prototype.propertyIsEnumerable.call(ce,ye[ue])&&(se[ye[ue]]=ce[ye[ue]]);return se};const A=y.createContext(null),m=y.forwardRef((ce,de)=>{const{children:se}=ce,ye=J(ce,["children"]),ue=y.useContext(A),$=y.useMemo(()=>Object.assign(Object.assign({},ue),ye),[ue,ye.prefixCls,ye.mode,ye.selectable]);return y.createElement(A.Provider,{value:$},y.createElement(x.BR,null,(0,Z.supportNodeRef)(se)?y.cloneElement(se,{ref:de}):se))});Te.Z=A},20834:function(pt,Te,i){"use strict";i.d(Te,{default:function(){return te}});var y=i(15285),x=i(59301),Z=i(45818),J=i(92310),A=i.n(J),m=i(36355),ce=function(g,_){var f={};for(var a in g)Object.prototype.hasOwnProperty.call(g,a)&&_.indexOf(a)<0&&(f[a]=g[a]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,a=Object.getOwnPropertySymbols(g);b<a.length;b++)_.indexOf(a[b])<0&&Object.prototype.propertyIsEnumerable.call(g,a[b])&&(f[a[b]]=g[a[b]]);return f},se=g=>{const{prefixCls:_,className:f,dashed:a}=g,b=ce(g,["prefixCls","className","dashed"]),{getPrefixCls:V}=x.useContext(m.E_),h=V("menu",_),l=A()({[`${h}-item-divider-dashed`]:!!a},f);return x.createElement(y.iz,Object.assign({className:l},b))},ye=i(11592),ue=i(2738),$=i(6848),c=i(92343),ne=(0,x.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Se=g=>{var _;const{className:f,children:a,icon:b,title:V,danger:h}=g,{prefixCls:l,firstLevel:v,direction:s,disableMenuItemTitleTooltip:d,inlineCollapsed:E}=x.useContext(ne),I=Ce=>{const Le=x.createElement("span",{className:`${l}-title-content`},a);return(!b||(0,c.l$)(a)&&a.type==="span")&&a&&Ce&&v&&typeof a=="string"?x.createElement("div",{className:`${l}-inline-collapsed-noicon`},a.charAt(0)):Le},{siderCollapsed:z}=x.useContext(Z.D);let ee=V;typeof V=="undefined"?ee=v?a:"":V===!1&&(ee="");const oe={title:ee};!z&&!E&&(oe.title=null,oe.open=!1);const Ee=(0,ye.Z)(a).length;let F=x.createElement(y.ck,Object.assign({},(0,ue.Z)(g,["title","icon","danger"]),{className:A()({[`${l}-item-danger`]:h,[`${l}-item-only-child`]:(b?Ee+1:Ee)===1},f),title:typeof V=="string"?V:void 0}),(0,c.Tm)(b,{className:A()((0,c.l$)(b)?(_=b.props)===null||_===void 0?void 0:_.className:"",`${l}-item-icon`)}),I(E));return d||(F=x.createElement($.Z,Object.assign({},oe,{placement:s==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),F)),F},T=g=>{var _;const{popupClassName:f,icon:a,title:b,theme:V}=g,h=x.useContext(ne),{prefixCls:l,inlineCollapsed:v,theme:s}=h,d=(0,y.Xl)();let E;if(!a)E=v&&!d.length&&b&&typeof b=="string"?x.createElement("div",{className:`${l}-inline-collapsed-noicon`},b.charAt(0)):x.createElement("span",{className:`${l}-title-content`},b);else{const z=(0,c.l$)(b)&&b.type==="span";E=x.createElement(x.Fragment,null,(0,c.Tm)(a,{className:A()((0,c.l$)(a)?(_=a.props)===null||_===void 0?void 0:_.className:"",`${l}-item-icon`)}),z?b:x.createElement("span",{className:`${l}-title-content`},b))}const I=x.useMemo(()=>Object.assign(Object.assign({},h),{firstLevel:!1}),[h]);return x.createElement(ne.Provider,{value:I},x.createElement(y.Wd,Object.assign({},(0,ue.Z)(g,["icon"]),{title:E,popupClassName:A()(l,f,`${l}-${V||s}`)})))},M=i(18785),u=i(70425),C=i(62892),N=i(40875),k=function(g,_){var f={};for(var a in g)Object.prototype.hasOwnProperty.call(g,a)&&_.indexOf(a)<0&&(f[a]=g[a]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,a=Object.getOwnPropertySymbols(g);b<a.length;b++)_.indexOf(a[b])<0&&Object.prototype.propertyIsEnumerable.call(g,a[b])&&(f[a[b]]=g[a[b]]);return f};function w(g){return(g||[]).map((_,f)=>{if(_&&typeof _=="object"){const a=_,{label:b,children:V,key:h,type:l}=a,v=k(a,["label","children","key","type"]),s=h!=null?h:`tmp-${f}`;return V||l==="group"?l==="group"?x.createElement(y.BW,Object.assign({key:s},v,{title:b}),w(V)):x.createElement(T,Object.assign({key:s},v,{title:b}),w(V)):l==="divider"?x.createElement(se,Object.assign({key:s},v)):x.createElement(Se,Object.assign({key:s},v),b)}return null}).filter(_=>_)}function re(g){return x.useMemo(()=>g&&w(g),[g])}var Y=i(64993),fe=i(17313),D=i(8378),be=i(13826),R=i(29878),P=i(83116),p=i(37613),me=g=>{const{componentCls:_,motionDurationSlow:f,horizontalLineHeight:a,colorSplit:b,lineWidth:V,lineType:h,itemPaddingInline:l}=g;return{[`${_}-horizontal`]:{lineHeight:a,border:0,borderBottom:`${V}px ${h} ${b}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${_}-item, ${_}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${_}-item:hover,
|
|
> ${_}-item-active,
|
|
> ${_}-submenu ${_}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${_}-item, ${_}-submenu-title`]:{transition:[`border-color ${f}`,`background ${f}`].join(",")},[`${_}-submenu-arrow`]:{display:"none"}}}},le=g=>{let{componentCls:_,menuArrowOffset:f}=g;return{[`${_}-rtl`]:{direction:"rtl"},[`${_}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${_}-rtl${_}-vertical,
|
|
${_}-submenu-rtl ${_}-vertical`]:{[`${_}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${f})`},"&::after":{transform:`rotate(45deg) translateY(${f})`}}}}};const Q=g=>Object.assign({},(0,fe.oN)(g));var W=(g,_)=>{const{componentCls:f,itemColor:a,itemSelectedColor:b,groupTitleColor:V,itemBg:h,subMenuItemBg:l,itemSelectedBg:v,activeBarHeight:s,activeBarWidth:d,activeBarBorderWidth:E,motionDurationSlow:I,motionEaseInOut:z,motionEaseOut:ee,itemPaddingInline:oe,motionDurationMid:Ee,itemHoverColor:F,lineType:Ce,colorSplit:Le,itemDisabledColor:X,dangerItemColor:je,dangerItemHoverColor:Be,dangerItemSelectedColor:Ke,dangerItemActiveBg:ze,dangerItemSelectedBg:it,itemHoverBg:ut,itemActiveBg:dt,menuSubMenuBg:tt,horizontalItemSelectedColor:gt,horizontalItemSelectedBg:Xe,horizontalItemBorderRadius:Ne,horizontalItemHoverBg:ct,popupBg:ft}=g;return{[`${f}-${_}, ${f}-${_} > ${f}`]:{color:a,background:h,[`&${f}-root:focus-visible`]:Object.assign({},Q(g)),[`${f}-item-group-title`]:{color:V},[`${f}-submenu-selected`]:{[`> ${f}-submenu-title`]:{color:b}},[`${f}-item-disabled, ${f}-submenu-disabled`]:{color:`${X} !important`},[`${f}-item:not(${f}-item-selected):not(${f}-submenu-selected)`]:{[`&:hover, > ${f}-submenu-title:hover`]:{color:F}},[`&:not(${f}-horizontal)`]:{[`${f}-item:not(${f}-item-selected)`]:{"&:hover":{backgroundColor:ut},"&:active":{backgroundColor:dt}},[`${f}-submenu-title`]:{"&:hover":{backgroundColor:ut},"&:active":{backgroundColor:dt}}},[`${f}-item-danger`]:{color:je,[`&${f}-item:hover`]:{[`&:not(${f}-item-selected):not(${f}-submenu-selected)`]:{color:Be}},[`&${f}-item:active`]:{background:ze}},[`${f}-item a`]:{"&, &:hover":{color:"inherit"}},[`${f}-item-selected`]:{color:b,[`&${f}-item-danger`]:{color:Ke},"a, a:hover":{color:"inherit"}},[`& ${f}-item-selected`]:{backgroundColor:v,[`&${f}-item-danger`]:{backgroundColor:it}},[`${f}-item, ${f}-submenu-title`]:{[`&:not(${f}-item-disabled):focus-visible`]:Object.assign({},Q(g))},[`&${f}-submenu > ${f}`]:{backgroundColor:tt},[`&${f}-popup > ${f}`]:{backgroundColor:ft},[`&${f}-horizontal`]:Object.assign(Object.assign({},_==="dark"?{borderBottom:0}:{}),{[`> ${f}-item, > ${f}-submenu`]:{top:E,marginTop:-E,marginBottom:0,borderRadius:Ne,"&::after":{position:"absolute",insetInline:oe,bottom:0,borderBottom:`${s}px solid transparent`,transition:`border-color ${I} ${z}`,content:'""'},"&:hover, &-active, &-open":{background:ct,"&::after":{borderBottomWidth:s,borderBottomColor:gt}},"&-selected":{color:gt,backgroundColor:Xe,"&:hover":{backgroundColor:Xe},"&::after":{borderBottomWidth:s,borderBottomColor:gt}}}}),[`&${f}-root`]:{[`&${f}-inline, &${f}-vertical`]:{borderInlineEnd:`${E}px ${Ce} ${Le}`}},[`&${f}-inline`]:{[`${f}-sub${f}-inline`]:{background:l},[`${f}-item, ${f}-submenu-title`]:E&&d?{width:`calc(100% + ${E}px)`}:{},[`${f}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${d}px solid ${b}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ee} ${ee}`,`opacity ${Ee} ${ee}`].join(","),content:'""'},[`&${f}-item-danger`]:{"&::after":{borderInlineEndColor:Ke}}},[`${f}-selected, ${f}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ee} ${z}`,`opacity ${Ee} ${z}`].join(",")}}}}}};const q=g=>{const{componentCls:_,itemHeight:f,itemMarginInline:a,padding:b,menuArrowSize:V,marginXS:h,itemMarginBlock:l}=g,v=b+V+h;return{[`${_}-item`]:{position:"relative",overflow:"hidden"},[`${_}-item, ${_}-submenu-title`]:{height:f,lineHeight:`${f}px`,paddingInline:b,overflow:"hidden",textOverflow:"ellipsis",marginInline:a,marginBlock:l,width:`calc(100% - ${a*2}px)`},[`> ${_}-item,
|
|
> ${_}-submenu > ${_}-submenu-title`]:{height:f,lineHeight:`${f}px`},[`${_}-item-group-list ${_}-submenu-title,
|
|
${_}-submenu-title`]:{paddingInlineEnd:v}}};var ve=g=>{const{componentCls:_,iconCls:f,itemHeight:a,colorTextLightSolid:b,dropdownWidth:V,controlHeightLG:h,motionDurationMid:l,motionEaseOut:v,paddingXL:s,itemMarginInline:d,fontSizeLG:E,motionDurationSlow:I,paddingXS:z,boxShadowSecondary:ee,collapsedWidth:oe,collapsedIconSize:Ee}=g,F={height:a,lineHeight:`${a}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[_]:{"&-inline, &-vertical":Object.assign({[`&${_}-root`]:{boxShadow:"none"}},q(g))},[`${_}-submenu-popup`]:{[`${_}-vertical`]:Object.assign(Object.assign({},q(g)),{boxShadow:ee})}},{[`${_}-submenu-popup ${_}-vertical${_}-sub`]:{minWidth:V,maxHeight:`calc(100vh - ${h*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${_}-inline`]:{width:"100%",[`&${_}-root`]:{[`${_}-item, ${_}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${I}`,`background ${I}`,`padding ${l} ${v}`].join(","),[`> ${_}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${_}-sub${_}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${_}-submenu > ${_}-submenu-title`]:F,[`& ${_}-item-group-title`]:{paddingInlineStart:s}},[`${_}-item`]:F}},{[`${_}-inline-collapsed`]:{width:oe,[`&${_}-root`]:{[`${_}-item, ${_}-submenu ${_}-submenu-title`]:{[`> ${_}-inline-collapsed-noicon`]:{fontSize:E,textAlign:"center"}}},[`> ${_}-item,
|
|
> ${_}-item-group > ${_}-item-group-list > ${_}-item,
|
|
> ${_}-item-group > ${_}-item-group-list > ${_}-submenu > ${_}-submenu-title,
|
|
> ${_}-submenu > ${_}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${E/2}px - ${d}px)`,textOverflow:"clip",[`
|
|
${_}-submenu-arrow,
|
|
${_}-submenu-expand-icon
|
|
`]:{opacity:0},[`${_}-item-icon, ${f}`]:{margin:0,fontSize:Ee,lineHeight:`${a}px`,"+ span":{display:"inline-block",opacity:0}}},[`${_}-item-icon, ${f}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${_}-item-icon, ${f}`]:{display:"none"},"a, a:hover":{color:b}},[`${_}-item-group-title`]:Object.assign(Object.assign({},fe.vS),{paddingInline:z})}}]};const Ae=g=>{const{componentCls:_,motionDurationSlow:f,motionDurationMid:a,motionEaseInOut:b,motionEaseOut:V,iconCls:h,iconSize:l,iconMarginInlineEnd:v}=g;return{[`${_}-item, ${_}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${f}`,`background ${f}`,`padding ${f} ${b}`].join(","),[`${_}-item-icon, ${h}`]:{minWidth:l,fontSize:l,transition:[`font-size ${a} ${V}`,`margin ${f} ${b}`,`color ${f}`].join(","),"+ span":{marginInlineStart:v,opacity:1,transition:[`opacity ${f} ${b}`,`margin ${f}`,`color ${f}`].join(",")}},[`${_}-item-icon`]:Object.assign({},(0,fe.Ro)()),[`&${_}-item-only-child`]:{[`> ${h}, > ${_}-item-icon`]:{marginInlineEnd:0}}},[`${_}-item-disabled, ${_}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${_}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Pe=g=>{const{componentCls:_,motionDurationSlow:f,motionEaseInOut:a,borderRadius:b,menuArrowSize:V,menuArrowOffset:h}=g;return{[`${_}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:g.margin,width:V,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${f} ${a}, opacity ${f}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:V*.6,height:V*.15,backgroundColor:"currentcolor",borderRadius:b,transition:[`background ${f} ${a}`,`transform ${f} ${a}`,`top ${f} ${a}`,`color ${f} ${a}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${h})`},"&::after":{transform:`rotate(-45deg) translateY(${h})`}}}}},Re=g=>{const{antCls:_,componentCls:f,fontSize:a,motionDurationSlow:b,motionDurationMid:V,motionEaseInOut:h,paddingXS:l,padding:v,colorSplit:s,lineWidth:d,zIndexPopup:E,borderRadiusLG:I,subMenuItemBorderRadius:z,menuArrowSize:ee,menuArrowOffset:oe,lineType:Ee,menuPanelMaskInset:F,groupTitleLineHeight:Ce,groupTitleFontSize:Le}=g;return[{"":{[`${f}`]:Object.assign(Object.assign({},(0,fe.dF)()),{"&-hidden":{display:"none"}})},[`${f}-submenu-hidden`]:{display:"none"}},{[f]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(g)),(0,fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:a,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${b} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${f}-item`]:{flex:"none"}},[`${f}-item, ${f}-submenu, ${f}-submenu-title`]:{borderRadius:g.itemBorderRadius},[`${f}-item-group-title`]:{padding:`${l}px ${v}px`,fontSize:Le,lineHeight:Ce,transition:`all ${b}`},[`&-horizontal ${f}-submenu`]:{transition:[`border-color ${b} ${h}`,`background ${b} ${h}`].join(",")},[`${f}-submenu, ${f}-submenu-inline`]:{transition:[`border-color ${b} ${h}`,`background ${b} ${h}`,`padding ${V} ${h}`].join(",")},[`${f}-submenu ${f}-sub`]:{cursor:"initial",transition:[`background ${b} ${h}`,`padding ${b} ${h}`].join(",")},[`${f}-title-content`]:{transition:`color ${b}`},[`${f}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${f}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:Ee,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ae(g)),{[`${f}-item-group`]:{[`${f}-item-group-list`]:{margin:0,padding:0,[`${f}-item, ${f}-submenu-title`]:{paddingInline:`${a*2}px ${v}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:E,borderRadius:I,boxShadow:"none",transformOrigin:"0 0",[`&${f}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${F}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:F},"\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:g.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:g.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:g.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:g.paddingXS},[`> ${f}`]:Object.assign(Object.assign(Object.assign({borderRadius:I},Ae(g)),Pe(g)),{[`${f}-item, ${f}-submenu > ${f}-submenu-title`]:{borderRadius:z},[`${f}-submenu-title::after`]:{transition:`transform ${b} ${h}`}})}}),Pe(g)),{[`&-inline-collapsed ${f}-submenu-arrow,
|
|
&-inline ${f}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${oe})`},"&::after":{transform:`rotate(45deg) translateX(-${oe})`}},[`${f}-submenu-open${f}-submenu-inline > ${f}-submenu-title > ${f}-submenu-arrow`]:{transform:`translateY(-${ee*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${oe})`},"&::before":{transform:`rotate(45deg) translateX(${oe})`}}})},{[`${_}-layout-header`]:{[f]:{lineHeight:"inherit"}}}]};var Je=(g,_)=>(0,P.Z)("Menu",a=>{if(_===!1)return[];const{colorBgElevated:b,colorPrimary:V,colorTextLightSolid:h,controlHeightLG:l,fontSize:v,darkItemColor:s,darkDangerItemColor:d,darkItemBg:E,darkSubMenuItemBg:I,darkItemSelectedColor:z,darkItemSelectedBg:ee,darkDangerItemSelectedBg:oe,darkItemHoverBg:Ee,darkGroupTitleColor:F,darkItemHoverColor:Ce,darkItemDisabledColor:Le,darkDangerItemHoverColor:X,darkDangerItemSelectedColor:je,darkDangerItemActiveBg:Be}=a,Ke=v/7*5,ze=(0,p.TS)(a,{menuArrowSize:Ke,menuHorizontalHeight:l*1.15,menuArrowOffset:`${Ke*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:b}),it=(0,p.TS)(ze,{itemColor:s,itemHoverColor:Ce,groupTitleColor:F,itemSelectedColor:z,itemBg:E,popupBg:E,subMenuItemBg:I,itemActiveBg:"transparent",itemSelectedBg:ee,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ee,itemDisabledColor:Le,dangerItemColor:d,dangerItemHoverColor:X,dangerItemSelectedColor:je,dangerItemActiveBg:Be,dangerItemSelectedBg:oe,menuSubMenuBg:I,horizontalItemSelectedColor:h,horizontalItemSelectedBg:V});return[Re(ze),me(ze),ve(ze),W(ze,"light"),W(it,"dark"),le(ze),(0,D.Z)(ze),(0,be.oN)(ze,"slide-up"),(0,be.oN)(ze,"slide-down"),(0,R._y)(ze,"zoom-big")]},a=>{const{colorPrimary:b,colorError:V,colorTextDisabled:h,colorErrorBg:l,colorText:v,colorTextDescription:s,colorBgContainer:d,colorFillAlter:E,colorFillContent:I,lineWidth:z,lineWidthBold:ee,controlItemBgActive:oe,colorBgTextHover:Ee,controlHeightLG:F,lineHeight:Ce,colorBgElevated:Le,marginXXS:X,padding:je,fontSize:Be,controlHeightSM:Ke,fontSizeLG:ze,colorTextLightSolid:it,colorErrorHover:ut}=a,dt=new Y.C(it).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:a.zIndexPopupBase+50,radiusItem:a.borderRadiusLG,itemBorderRadius:a.borderRadiusLG,radiusSubMenuItem:a.borderRadiusSM,subMenuItemBorderRadius:a.borderRadiusSM,colorItemText:v,itemColor:v,colorItemTextHover:v,itemHoverColor:v,colorItemTextHoverHorizontal:b,horizontalItemHoverColor:b,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:b,itemSelectedColor:b,colorItemTextSelectedHorizontal:b,horizontalItemSelectedColor:b,colorItemBg:d,itemBg:d,colorItemBgHover:Ee,itemHoverBg:Ee,colorItemBgActive:I,itemActiveBg:oe,colorSubItemBg:E,subMenuItemBg:E,colorItemBgSelected:oe,itemSelectedBg:oe,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ee,activeBarHeight:ee,colorActiveBarBorderSize:z,activeBarBorderWidth:z,colorItemTextDisabled:h,itemDisabledColor:h,colorDangerItemText:V,dangerItemColor:V,colorDangerItemTextHover:V,dangerItemHoverColor:V,colorDangerItemTextSelected:V,dangerItemSelectedColor:V,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:a.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:F,groupTitleLineHeight:Ce,collapsedWidth:F*2,popupBg:Le,itemMarginBlock:X,itemPaddingInline:je,horizontalLineHeight:`${F*1.15}px`,iconSize:Be,iconMarginInlineEnd:Ke-Be,collapsedIconSize:ze,groupTitleFontSize:Be,darkItemDisabledColor:new Y.C(it).setAlpha(.25).toRgbString(),darkItemColor:dt,darkDangerItemColor:V,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:it,darkItemSelectedBg:b,darkDangerItemSelectedBg:V,darkItemHoverBg:"transparent",darkGroupTitleColor:dt,darkItemHoverColor:it,darkDangerItemHoverColor:ut,darkDangerItemSelectedColor:it,darkDangerItemActiveBg:V}},{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"]]})(g),ke=function(g,_){var f={};for(var a in g)Object.prototype.hasOwnProperty.call(g,a)&&_.indexOf(a)<0&&(f[a]=g[a]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,a=Object.getOwnPropertySymbols(g);b<a.length;b++)_.indexOf(a[b])<0&&Object.prototype.propertyIsEnumerable.call(g,a[b])&&(f[a[b]]=g[a[b]]);return f},Ve=(0,x.forwardRef)((g,_)=>{var f,a;const b=x.useContext(N.Z),V=b||{},{getPrefixCls:h,getPopupContainer:l,direction:v,menu:s}=x.useContext(m.E_),d=h(),{prefixCls:E,className:I,style:z,theme:ee="light",expandIcon:oe,_internalDisableMenuItemTitleTooltip:Ee,inlineCollapsed:F,siderCollapsed:Ce,items:Le,children:X,rootClassName:je,mode:Be,selectable:Ke,onClick:ze,overflowedIndicatorPopupClassName:it}=g,ut=ke(g,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),dt=(0,ue.Z)(ut,["collapsedWidth"]),tt=re(Le)||X;(f=V.validator)===null||f===void 0||f.call(V,{mode:Be});const gt=(0,u.useEvent)(function(){var at;ze==null||ze.apply(void 0,arguments),(at=V.onClick)===null||at===void 0||at.call(V)}),Xe=V.mode||Be,Ne=Ke!=null?Ke:V.selectable,ct=x.useMemo(()=>Ce!==void 0?Ce:F,[F,Ce]),ft={horizontal:{motionName:`${d}-slide-up`},inline:(0,C.Z)(d),other:{motionName:`${d}-zoom-big`}},_t=h("menu",E||V.prefixCls),[Rt,It]=Je(_t,!b),Ct=A()(`${_t}-${ee}`,s==null?void 0:s.className,I);let Et;if(typeof oe=="function")Et=oe;else if(oe===null||oe===!1)Et=null;else if(V.expandIcon===null||V.expandIcon===!1)Et=null;else{const at=oe!=null?oe:V.expandIcon;Et=(0,c.Tm)(at,{className:A()(`${_t}-submenu-expand-icon`,(0,c.l$)(at)?(a=at.props)===null||a===void 0?void 0:a.className:"")})}const qe=x.useMemo(()=>({prefixCls:_t,inlineCollapsed:ct||!1,direction:v,firstLevel:!0,theme:ee,mode:Xe,disableMenuItemTitleTooltip:Ee}),[_t,ct,v,Ee,ee]);return Rt(x.createElement(N.Z.Provider,{value:null},x.createElement(ne.Provider,{value:qe},x.createElement(y.ZP,Object.assign({getPopupContainer:l,overflowedIndicator:x.createElement(M.Z,null),overflowedIndicatorPopupClassName:A()(_t,`${_t}-${ee}`,it),mode:Xe,selectable:Ne,onClick:gt},dt,{inlineCollapsed:ct,style:Object.assign(Object.assign({},s==null?void 0:s.style),z),className:Ct,prefixCls:_t,direction:v,defaultMotions:ft,expandIcon:Et,ref:_,rootClassName:A()(je,It)}),tt))))});const We=(0,x.forwardRef)((g,_)=>{const f=(0,x.useRef)(null),a=x.useContext(Z.D);return(0,x.useImperativeHandle)(_,()=>({menu:f.current,focus:b=>{var V;(V=f.current)===null||V===void 0||V.focus(b)}})),x.createElement(Ve,Object.assign({ref:f},g,a))});We.Item=Se,We.SubMenu=T,We.Divider=se,We.ItemGroup=y.BW;var te=We},13570:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return Q}});var y=i(16378),x=i(59301),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},J=Z,A=i(7657),m=function(W,q){return x.createElement(A.Z,(0,y.Z)({},W,{ref:q,icon:J}))},ce=x.forwardRef(m),de=ce,se=i(92310),ye=i.n(se),ue=i(78772),$=i(10859),c=i(61206),ie=i(18929),ne=i(10228),U=i(26112);function Se(L,W){var q=L.disabled,ae=L.prefixCls,ve=L.character,Ae=L.characterRender,Pe=L.index,Re=L.count,Je=L.value,ke=L.allowHalf,Ze=L.focused,Ve=L.onHover,We=L.onClick,te=function(l){Ve(l,Pe)},g=function(l){We(l,Pe)},_=function(l){l.keyCode===ne.Z.ENTER&&We(l,Pe)},f=Pe+1,a=new Set([ae]);Je===0&&Pe===0&&Ze?a.add("".concat(ae,"-focused")):ke&&Je+.5>=f&&Je<f?(a.add("".concat(ae,"-half")),a.add("".concat(ae,"-active")),Ze&&a.add("".concat(ae,"-focused"))):(f<=Je?a.add("".concat(ae,"-full")):a.add("".concat(ae,"-zero")),f===Je&&Ze&&a.add("".concat(ae,"-focused")));var b=typeof ve=="function"?ve(L):ve,V=x.createElement("li",{className:ye()(Array.from(a)),ref:W},x.createElement("div",{onClick:q?null:g,onKeyDown:q?null:_,onMouseMove:q?null:te,role:"radio","aria-checked":Je>Pe?"true":"false","aria-posinset":Pe+1,"aria-setsize":Re,tabIndex:q?-1:0},x.createElement("div",{className:"".concat(ae,"-first")},b),x.createElement("div",{className:"".concat(ae,"-second")},b)));return Ae&&(V=Ae(V,L)),V}var K=x.forwardRef(Se);function T(){var L=x.useRef({});function W(ae){return L.current[ae]}function q(ae){return function(ve){L.current[ae]=ve}}return[W,q]}function M(L){var W=L.pageXOffset,q="scrollLeft";if(typeof W!="number"){var ae=L.document;W=ae.documentElement[q],typeof W!="number"&&(W=ae.body[q])}return W}function u(L){var W,q,ae=L.ownerDocument,ve=ae.body,Ae=ae&&ae.documentElement,Pe=L.getBoundingClientRect();return W=Pe.left,q=Pe.top,W-=Ae.clientLeft||ve.clientLeft||0,q-=Ae.clientTop||ve.clientTop||0,{left:W,top:q}}function C(L){var W=u(L),q=L.ownerDocument,ae=q.defaultView||q.parentWindow;return W.left+=M(ae),W.left}var N=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function k(L,W){var q,ae=L.prefixCls,ve=ae===void 0?"rc-rate":ae,Ae=L.className,Pe=L.defaultValue,Re=L.value,Je=L.count,ke=Je===void 0?5:Je,Ze=L.allowHalf,Ve=Ze===void 0?!1:Ze,We=L.allowClear,te=We===void 0?!0:We,g=L.character,_=g===void 0?"\u2605":g,f=L.characterRender,a=L.disabled,b=L.direction,V=b===void 0?"ltr":b,h=L.tabIndex,l=h===void 0?0:h,v=L.autoFocus,s=L.onHoverChange,d=L.onChange,E=L.onFocus,I=L.onBlur,z=L.onKeyDown,ee=L.onMouseLeave,oe=(0,c.Z)(L,N),Ee=T(),F=(0,$.Z)(Ee,2),Ce=F[0],Le=F[1],X=x.useRef(null),je=function(){if(!a){var O;(O=X.current)===null||O===void 0||O.focus()}};x.useImperativeHandle(W,function(){return{focus:je,blur:function(){if(!a){var O;(O=X.current)===null||O===void 0||O.blur()}}}});var Be=(0,ie.Z)(Pe||0,{value:Re}),Ke=(0,$.Z)(Be,2),ze=Ke[0],it=Ke[1],ut=(0,ie.Z)(null),dt=(0,$.Z)(ut,2),tt=dt[0],gt=dt[1],Xe=function(O,we){var _e=V==="rtl",Oe=O+1;if(Ve){var et=Ce(O),ot=C(et),Fe=et.clientWidth;(_e&&we-ot>Fe/2||!_e&&we-ot<Fe/2)&&(Oe-=.5)}return Oe},Ne=function(O){it(O),d==null||d(O)},ct=x.useState(!1),ft=(0,$.Z)(ct,2),_t=ft[0],Rt=ft[1],It=function(){Rt(!0),E==null||E()},Ct=function(){Rt(!1),I==null||I()},Et=x.useState(null),qe=(0,$.Z)(Et,2),at=qe[0],He=qe[1],pe=function(O,we){var _e=Xe(we,O.pageX);_e!==tt&&(He(_e),gt(null)),s==null||s(_e)},e=function(O){a||(He(null),gt(null),s==null||s(void 0)),O&&(ee==null||ee(O))},t=function(O,we){var _e=Xe(we,O.pageX),Oe=!1;te&&(Oe=_e===ze),e(),Ne(Oe?0:_e),gt(Oe?_e:null)},n=function(O){var we=O.keyCode,_e=V==="rtl",Oe=ze;we===ne.Z.RIGHT&&Oe<ke&&!_e?(Ve?Oe+=.5:Oe+=1,Ne(Oe),O.preventDefault()):we===ne.Z.LEFT&&Oe>0&&!_e||we===ne.Z.RIGHT&&Oe>0&&_e?(Ve?Oe-=.5:Oe-=1,Ne(Oe),O.preventDefault()):we===ne.Z.LEFT&&Oe<ke&&_e&&(Ve?Oe+=.5:Oe+=1,Ne(Oe),O.preventDefault()),z==null||z(O)};x.useEffect(function(){v&&!a&&je()},[]);var r=new Array(ke).fill(0).map(function(S,O){return x.createElement(K,{ref:Le(O),index:O,count:ke,disabled:a,prefixCls:"".concat(ve,"-star"),allowHalf:Ve,value:at===null?ze:at,onClick:t,onHover:pe,key:S||O,character:_,characterRender:f,focused:_t})}),o=ye()(ve,Ae,(q={},(0,ue.Z)(q,"".concat(ve,"-disabled"),a),(0,ue.Z)(q,"".concat(ve,"-rtl"),V==="rtl"),q));return x.createElement("ul",(0,y.Z)({className:o,onMouseLeave:e,tabIndex:a?-1:l,onFocus:a?null:It,onBlur:a?null:Ct,onKeyDown:a?null:n,ref:X,role:"radiogroup"},(0,U.Z)(oe,{aria:!0,data:!0,attr:!0})),r)}var w=x.forwardRef(k),re=w,Y=i(36355),fe=i(6848),D=i(17313),be=i(83116),R=i(37613);const P=L=>{const{componentCls:W}=L;return{[`${W}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:L.marginXS},"> div":{transition:`all ${L.motionDurationMid}, outline 0s`,"&:hover":{transform:L.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${L.lineWidth}px dashed ${L.starColor}`,transform:L.starHoverScale}},"&-first, &-second":{color:L.starBg,transition:`all ${L.motionDurationMid}`,userSelect:"none",[L.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${W}-star-first, &-half ${W}-star-second`]:{opacity:1},[`&-half ${W}-star-first, &-full ${W}-star-second`]:{color:"inherit"}}}},p=L=>({[`&-rtl${L.componentCls}`]:{direction:"rtl"}}),B=L=>{const{componentCls:W}=L;return{[W]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(L)),{display:"inline-block",margin:0,padding:0,color:L.starColor,fontSize:L.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${W} ${W}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),P(L)),{[`+ ${W}-text`]:{display:"inline-block",marginInlineStart:L.marginXS,fontSize:L.fontSize}}),p(L))}};var me=(0,be.Z)("Rate",L=>{const W=(0,R.TS)(L,{});return[B(W)]},L=>({starColor:L.yellow6,starSize:L.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:L.colorFillContent})),H=function(L,W){var q={};for(var ae in L)Object.prototype.hasOwnProperty.call(L,ae)&&W.indexOf(ae)<0&&(q[ae]=L[ae]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,ae=Object.getOwnPropertySymbols(L);ve<ae.length;ve++)W.indexOf(ae[ve])<0&&Object.prototype.propertyIsEnumerable.call(L,ae[ve])&&(q[ae[ve]]=L[ae[ve]]);return q},Q=x.forwardRef((L,W)=>{const{prefixCls:q,className:ae,rootClassName:ve,style:Ae,tooltips:Pe,character:Re=x.createElement(de,null)}=L,Je=H(L,["prefixCls","className","rootClassName","style","tooltips","character"]),ke=(a,b)=>{let{index:V}=b;return Pe?x.createElement(fe.Z,{title:Pe[V]},a):a},{getPrefixCls:Ze,direction:Ve,rate:We}=x.useContext(Y.E_),te=Ze("rate",q),[g,_]=me(te),f=Object.assign(Object.assign({},We==null?void 0:We.style),Ae);return g(x.createElement(re,Object.assign({ref:W,character:Re,characterRender:ke},Je,{className:ye()(ae,ve,_,We==null?void 0:We.className),style:f,prefixCls:te,direction:Ve})))})},81327:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return Se}});var y=i(59301),x=i(92310),Z=i.n(x),J=i(11592),A=i(36355),m=i(33234);const ce=y.createContext({latestIndex:0}),de=ce.Provider;var ye=K=>{let{className:T,index:M,children:u,split:C,style:N}=K;const{latestIndex:k}=y.useContext(ce);return u==null?null:y.createElement(y.Fragment,null,y.createElement("div",{className:T,style:N},u),M<k&&C&&y.createElement("span",{className:`${T}-split`},C))},ue=i(2856);function $(K){return["small","middle","large"].includes(K)}function c(K){return K?typeof K=="number"&&!Number.isNaN(K):!1}var ie=function(K,T){var M={};for(var u in K)Object.prototype.hasOwnProperty.call(K,u)&&T.indexOf(u)<0&&(M[u]=K[u]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,u=Object.getOwnPropertySymbols(K);C<u.length;C++)T.indexOf(u[C])<0&&Object.prototype.propertyIsEnumerable.call(K,u[C])&&(M[u[C]]=K[u[C]]);return M};const U=y.forwardRef((K,T)=>{var M,u;const{getPrefixCls:C,space:N,direction:k}=y.useContext(A.E_),{size:w=(N==null?void 0:N.size)||"small",align:re,className:Y,rootClassName:fe,children:D,direction:be="horizontal",prefixCls:R,split:P,style:p,wrap:B=!1,classNames:me,styles:H}=K,le=ie(K,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Q,L]=Array.isArray(w)?w:[w,w],W=$(L),q=$(Q),ae=c(L),ve=c(Q),Ae=(0,J.Z)(D,{keepEmpty:!0}),Pe=re===void 0&&be==="horizontal"?"center":re,Re=C("space",R),[Je,ke]=(0,ue.Z)(Re),Ze=Z()(Re,N==null?void 0:N.className,ke,`${Re}-${be}`,{[`${Re}-rtl`]:k==="rtl",[`${Re}-align-${Pe}`]:Pe,[`${Re}-gap-row-${L}`]:W,[`${Re}-gap-col-${Q}`]:q},Y,fe),Ve=Z()(`${Re}-item`,(M=me==null?void 0:me.item)!==null&&M!==void 0?M:(u=N==null?void 0:N.classNames)===null||u===void 0?void 0:u.item);let We=0;const te=Ae.map((f,a)=>{var b,V;f!=null&&(We=a);const h=f&&f.key||`${Ve}-${a}`;return y.createElement(ye,{className:Ve,key:h,index:a,split:P,style:(b=H==null?void 0:H.item)!==null&&b!==void 0?b:(V=N==null?void 0:N.styles)===null||V===void 0?void 0:V.item},f)}),g=y.useMemo(()=>({latestIndex:We}),[We]);if(Ae.length===0)return null;const _={};return B&&(_.flexWrap="wrap"),!q&&ve&&(_.columnGap=Q),!W&&ae&&(_.rowGap=L),Je(y.createElement("div",Object.assign({ref:T,className:Ze,style:Object.assign(Object.assign(Object.assign({},_),N==null?void 0:N.style),p)},le),y.createElement(de,{value:g},te)))});U.Compact=m.ZP;var Se=U},8378:function(pt,Te){"use strict";const i=y=>({[y.componentCls]:{[`${y.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${y.motionDurationMid} ${y.motionEaseInOut},
|
|
opacity ${y.motionDurationMid} ${y.motionEaseInOut} !important`}},[`${y.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${y.motionDurationMid} ${y.motionEaseInOut},
|
|
opacity ${y.motionDurationMid} ${y.motionEaseInOut} !important`}}});Te.Z=i},92899:function(pt,Te,i){"use strict";i.d(Te,{Fm:function(){return $}});var y=i(93083),x=i(95406);const Z=new y.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),J=new y.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),A=new y.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),m=new y.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 y.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),de=new y.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),se=new y.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ye=new y.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ue={"move-up":{inKeyframes:se,outKeyframes:ye},"move-down":{inKeyframes:Z,outKeyframes:J},"move-left":{inKeyframes:A,outKeyframes:m},"move-right":{inKeyframes:ce,outKeyframes:de}},$=(c,ie)=>{const{antCls:ne}=c,U=`${ne}-${ie}`,{inKeyframes:Se,outKeyframes:K}=ue[ie];return[(0,x.R)(U,Se,K,c.motionDurationMid),{[`
|
|
${U}-enter,
|
|
${U}-appear
|
|
`]:{opacity:0,animationTimingFunction:c.motionEaseOutCirc},[`${U}-leave`]:{animationTimingFunction:c.motionEaseInOutCirc}}]}},13826:function(pt,Te,i){"use strict";i.d(Te,{Qt:function(){return A},Uw:function(){return J},fJ:function(){return Z},ly:function(){return m},oN:function(){return $}});var y=i(93083),x=i(95406);const Z=new y.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),J=new y.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),A=new y.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),m=new y.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ce=new y.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),de=new y.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),se=new y.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ye=new y.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ue={"slide-up":{inKeyframes:Z,outKeyframes:J},"slide-down":{inKeyframes:A,outKeyframes:m},"slide-left":{inKeyframes:ce,outKeyframes:de},"slide-right":{inKeyframes:se,outKeyframes:ye}},$=(c,ie)=>{const{antCls:ne}=c,U=`${ne}-${ie}`,{inKeyframes:Se,outKeyframes:K}=ue[ie];return[(0,x.R)(U,Se,K,c.motionDurationMid),{[`
|
|
${U}-enter,
|
|
${U}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:c.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${U}-leave`]:{animationTimingFunction:c.motionEaseInQuint}}]}},78673:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return be}});var y=i(58617),x=i(92310),Z=i.n(x),J=i(16378),A=i(78772),m=i(10859),ce=i(61206),de=i(59301),se=i(18929),ye=i(10228),ue=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],$=de.forwardRef(function(R,P){var p,B=R.prefixCls,me=B===void 0?"rc-switch":B,H=R.className,le=R.checked,Q=R.defaultChecked,L=R.disabled,W=R.loadingIcon,q=R.checkedChildren,ae=R.unCheckedChildren,ve=R.onClick,Ae=R.onChange,Pe=R.onKeyDown,Re=(0,ce.Z)(R,ue),Je=(0,se.Z)(!1,{value:le,defaultValue:Q}),ke=(0,m.Z)(Je,2),Ze=ke[0],Ve=ke[1];function We(f,a){var b=Ze;return L||(b=f,Ve(b),Ae==null||Ae(b,a)),b}function te(f){f.which===ye.Z.LEFT?We(!1,f):f.which===ye.Z.RIGHT&&We(!0,f),Pe==null||Pe(f)}function g(f){var a=We(!Ze,f);ve==null||ve(a,f)}var _=Z()(me,H,(p={},(0,A.Z)(p,"".concat(me,"-checked"),Ze),(0,A.Z)(p,"".concat(me,"-disabled"),L),p));return de.createElement("button",(0,J.Z)({},Re,{type:"button",role:"switch","aria-checked":Ze,disabled:L,className:_,ref:P,onKeyDown:te,onClick:g}),W,de.createElement("span",{className:"".concat(me,"-inner")},de.createElement("span",{className:"".concat(me,"-inner-checked")},q),de.createElement("span",{className:"".concat(me,"-inner-unchecked")},ae)))});$.displayName="Switch";var c=$,ie=i(14088),ne=i(36355),U=i(1684),Se=i(19716),K=i(64993),T=i(17313),M=i(83116),u=i(37613);const C=R=>{const{componentCls:P,trackHeightSM:p,trackPadding:B,trackMinWidthSM:me,innerMinMarginSM:H,innerMaxMarginSM:le,handleSizeSM:Q}=R,L=`${P}-inner`;return{[P]:{[`&${P}-small`]:{minWidth:me,height:p,lineHeight:`${p}px`,[`${P}-inner`]:{paddingInlineStart:le,paddingInlineEnd:H,[`${L}-checked`]:{marginInlineStart:`calc(-100% + ${Q+B*2}px - ${le*2}px)`,marginInlineEnd:`calc(100% - ${Q+B*2}px + ${le*2}px)`},[`${L}-unchecked`]:{marginTop:-p,marginInlineStart:0,marginInlineEnd:0}},[`${P}-handle`]:{width:Q,height:Q},[`${P}-loading-icon`]:{top:(Q-R.switchLoadingIconSize)/2,fontSize:R.switchLoadingIconSize},[`&${P}-checked`]:{[`${P}-inner`]:{paddingInlineStart:H,paddingInlineEnd:le,[`${L}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${L}-unchecked`]:{marginInlineStart:`calc(100% - ${Q+B*2}px + ${le*2}px)`,marginInlineEnd:`calc(-100% + ${Q+B*2}px - ${le*2}px)`}},[`${P}-handle`]:{insetInlineStart:`calc(100% - ${Q+B}px)`}},[`&:not(${P}-disabled):active`]:{[`&:not(${P}-checked) ${L}`]:{[`${L}-unchecked`]:{marginInlineStart:R.marginXXS/2,marginInlineEnd:-R.marginXXS/2}},[`&${P}-checked ${L}`]:{[`${L}-checked`]:{marginInlineStart:-R.marginXXS/2,marginInlineEnd:R.marginXXS/2}}}}}}},N=R=>{const{componentCls:P,handleSize:p}=R;return{[P]:{[`${P}-loading-icon${R.iconCls}`]:{position:"relative",top:(p-R.fontSize)/2,color:R.switchLoadingIconColor,verticalAlign:"top"},[`&${P}-checked ${P}-loading-icon`]:{color:R.switchColor}}}},k=R=>{const{componentCls:P,motion:p,trackPadding:B,handleBg:me,handleShadow:H,handleSize:le}=R,Q=`${P}-handle`;return{[P]:{[Q]:{position:"absolute",top:B,insetInlineStart:B,width:le,height:le,transition:`all ${R.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:me,borderRadius:le/2,boxShadow:H,transition:`all ${R.switchDuration} ease-in-out`,content:'""'}},[`&${P}-checked ${Q}`]:{insetInlineStart:`calc(100% - ${le+B}px)`},[`&:not(${P}-disabled):active`]:p?{[`${Q}::before`]:{insetInlineEnd:R.switchHandleActiveInset,insetInlineStart:0},[`&${P}-checked ${Q}::before`]:{insetInlineEnd:0,insetInlineStart:R.switchHandleActiveInset}}:{}}}},w=R=>{const{componentCls:P,trackHeight:p,trackPadding:B,innerMinMargin:me,innerMaxMargin:H,handleSize:le}=R,Q=`${P}-inner`;return{[P]:{[Q]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:H,paddingInlineEnd:me,transition:`padding-inline-start ${R.switchDuration} ease-in-out, padding-inline-end ${R.switchDuration} ease-in-out`,[`${Q}-checked, ${Q}-unchecked`]:{display:"block",color:R.colorTextLightSolid,fontSize:R.fontSizeSM,transition:`margin-inline-start ${R.switchDuration} ease-in-out, margin-inline-end ${R.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Q}-checked`]:{marginInlineStart:`calc(-100% + ${le+B*2}px - ${H*2}px)`,marginInlineEnd:`calc(100% - ${le+B*2}px + ${H*2}px)`},[`${Q}-unchecked`]:{marginTop:-p,marginInlineStart:0,marginInlineEnd:0}},[`&${P}-checked ${Q}`]:{paddingInlineStart:me,paddingInlineEnd:H,[`${Q}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Q}-unchecked`]:{marginInlineStart:`calc(100% - ${le+B*2}px + ${H*2}px)`,marginInlineEnd:`calc(-100% + ${le+B*2}px - ${H*2}px)`}},[`&:not(${P}-disabled):active`]:{[`&:not(${P}-checked) ${Q}`]:{[`${Q}-unchecked`]:{marginInlineStart:B*2,marginInlineEnd:-B*2}},[`&${P}-checked ${Q}`]:{[`${Q}-checked`]:{marginInlineStart:-B*2,marginInlineEnd:B*2}}}}}},re=R=>{const{componentCls:P,trackHeight:p,trackMinWidth:B}=R;return{[P]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,T.Wf)(R)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:B,height:p,lineHeight:`${p}px`,verticalAlign:"middle",background:R.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${R.motionDurationMid}`,userSelect:"none",[`&:hover:not(${P}-disabled)`]:{background:R.colorTextTertiary}}),(0,T.Qy)(R)),{[`&${P}-checked`]:{background:R.switchColor,[`&:hover:not(${P}-disabled)`]:{background:R.colorPrimaryHover}},[`&${P}-loading, &${P}-disabled`]:{cursor:"not-allowed",opacity:R.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${P}-rtl`]:{direction:"rtl"}})}};var Y=(0,M.Z)("Switch",R=>{const P=(0,u.TS)(R,{switchDuration:R.motionDurationMid,switchColor:R.colorPrimary,switchDisabledOpacity:R.opacityLoading,switchLoadingIconSize:R.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${R.opacityLoading})`,switchHandleActiveInset:"-30%"});return[re(P),w(P),k(P),N(P),C(P)]},R=>{const{fontSize:P,lineHeight:p,controlHeight:B,colorWhite:me}=R,H=P*p,le=B/2,Q=2,L=H-Q*2,W=le-Q*2;return{trackHeight:H,trackHeightSM:le,trackMinWidth:L*2+Q*4,trackMinWidthSM:W*2+Q*2,trackPadding:Q,handleBg:me,handleSize:L,handleSizeSM:W,handleShadow:`0 2px 4px 0 ${new K.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:L/2,innerMaxMargin:L+Q+Q*2,innerMinMarginSM:W/2,innerMaxMarginSM:W+Q+Q*2}}),fe=function(R,P){var p={};for(var B in R)Object.prototype.hasOwnProperty.call(R,B)&&P.indexOf(B)<0&&(p[B]=R[B]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,B=Object.getOwnPropertySymbols(R);me<B.length;me++)P.indexOf(B[me])<0&&Object.prototype.propertyIsEnumerable.call(R,B[me])&&(p[B[me]]=R[B[me]]);return p};const D=de.forwardRef((R,P)=>{const{prefixCls:p,size:B,disabled:me,loading:H,className:le,rootClassName:Q,style:L}=R,W=fe(R,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:q,direction:ae,switch:ve}=de.useContext(ne.E_),Ae=de.useContext(U.Z),Pe=(me!=null?me:Ae)||H,Re=q("switch",p),Je=de.createElement("div",{className:`${Re}-handle`},H&&de.createElement(y.Z,{className:`${Re}-loading-icon`})),[ke,Ze]=Y(Re),Ve=(0,Se.Z)(B),We=Z()(ve==null?void 0:ve.className,{[`${Re}-small`]:Ve==="small",[`${Re}-loading`]:H,[`${Re}-rtl`]:ae==="rtl"},le,Q,Ze),te=Object.assign(Object.assign({},ve==null?void 0:ve.style),L);return ke(de.createElement(ie.Z,{component:"Switch"},de.createElement(c,Object.assign({},W,{prefixCls:Re,className:We,style:te,disabled:Pe,ref:P,loadingIcon:Je}))))});D.__ANT_SWITCH=!0;var be=D},17574:function(pt,Te,i){"use strict";i.d(Te,{default:function(){return le}});var y=i(48039),x=i(65093),Z=i(52671),J=i(8657),A=i(16378),m=i(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},de=ce,se=i(7657),ye=function(L,W){return m.createElement(se.Z,(0,A.Z)({},L,{ref:W,icon:de}))},ue=m.forwardRef(ye),$=ue,c=i(92310),ie=i.n(c),ne=i(35654),U=i(71430),Se=i(36355),K=i(56082),T=i(62892),M=i(20648);const u=4;function C(Q){const{dropPosition:L,dropLevelOffset:W,prefixCls:q,indent:ae,direction:ve="ltr"}=Q,Ae=ve==="ltr"?"left":"right",Pe=ve==="ltr"?"right":"left",Re={[Ae]:-W*ae+u,[Pe]:0};switch(L){case-1:Re.top=-3;break;case 1:Re.bottom=-3;break;default:Re.bottom=-3,Re[Ae]=ae+u;break}return m.createElement("div",{style:Re,className:`${q}-drop-indicator`})}var N=i(71997),w=m.forwardRef((Q,L)=>{const{getPrefixCls:W,direction:q,virtual:ae,tree:ve}=m.useContext(Se.E_),{prefixCls:Ae,className:Pe,showIcon:Re=!1,showLine:Je,switcherIcon:ke,blockNode:Ze=!1,children:Ve,checkable:We=!1,selectable:te=!0,draggable:g,motion:_,style:f}=Q,a=W("tree",Ae),b=W(),V=_!=null?_:Object.assign(Object.assign({},(0,T.Z)(b)),{motionAppear:!1}),h=Object.assign(Object.assign({},Q),{checkable:We,selectable:te,showIcon:Re,motion:V,blockNode:Ze,showLine:!!Je,dropIndicatorRender:C}),[l,v]=(0,M.ZP)(a),s=m.useMemo(()=>{if(!g)return!1;let E={};switch(typeof g){case"function":E.nodeDraggable=g;break;case"object":E=Object.assign({},g);break;default:break}return E.icon!==!1&&(E.icon=E.icon||m.createElement(K.Z,null)),E},[g]),d=E=>m.createElement(N.Z,{prefixCls:a,switcherIcon:ke,treeNodeProps:E,showLine:Je});return l(m.createElement(y.Z,Object.assign({itemHeight:20,ref:L,virtual:ae},h,{style:Object.assign(Object.assign({},ve==null?void 0:ve.style),f),prefixCls:a,className:ie()({[`${a}-icon-hide`]:!Re,[`${a}-block-node`]:Ze,[`${a}-unselectable`]:!te,[`${a}-rtl`]:q==="rtl"},ve==null?void 0:ve.className,Pe,v),direction:q,checkable:We&&m.createElement("span",{className:`${a}-checkbox-inner`}),selectable:te,switcherIcon:d,draggable:s}),Ve))}),re;(function(Q){Q[Q.None=0]="None",Q[Q.Start=1]="Start",Q[Q.End=2]="End"})(re||(re={}));function Y(Q,L){function W(q){const{key:ae,children:ve}=q;L(ae,q)!==!1&&Y(ve||[],L)}Q.forEach(W)}function fe(Q){let{treeData:L,expandedKeys:W,startKey:q,endKey:ae}=Q;const ve=[];let Ae=re.None;if(q&&q===ae)return[q];if(!q||!ae)return[];function Pe(Re){return Re===q||Re===ae}return Y(L,Re=>{if(Ae===re.End)return!1;if(Pe(Re)){if(ve.push(Re),Ae===re.None)Ae=re.Start;else if(Ae===re.Start)return Ae=re.End,!1}else Ae===re.Start&&ve.push(Re);return W.includes(Re)}),ve}function D(Q,L){const W=(0,x.Z)(L),q=[];return Y(Q,(ae,ve)=>{const Ae=W.indexOf(ae);return Ae!==-1&&(q.push(ve),W.splice(Ae,1)),!!W.length}),q}var be=function(Q,L){var W={};for(var q in Q)Object.prototype.hasOwnProperty.call(Q,q)&&L.indexOf(q)<0&&(W[q]=Q[q]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,q=Object.getOwnPropertySymbols(Q);ae<q.length;ae++)L.indexOf(q[ae])<0&&Object.prototype.propertyIsEnumerable.call(Q,q[ae])&&(W[q[ae]]=Q[q[ae]]);return W};function R(Q){const{isLeaf:L,expanded:W}=Q;return L?m.createElement(Z.Z,null):W?m.createElement(J.Z,null):m.createElement($,null)}function P(Q){let{treeData:L,children:W}=Q;return L||(0,U.zn)(W)}const p=(Q,L)=>{var{defaultExpandAll:W,defaultExpandParent:q,defaultExpandedKeys:ae}=Q,ve=be(Q,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ae=m.useRef(),Pe=m.useRef(),Re=()=>{const{keyEntities:s}=(0,U.I8)(P(ve));let d;return W?d=Object.keys(s):q?d=(0,ne.r7)(ve.expandedKeys||ae||[],s):d=ve.expandedKeys||ae,d},[Je,ke]=m.useState(ve.selectedKeys||ve.defaultSelectedKeys||[]),[Ze,Ve]=m.useState(()=>Re());m.useEffect(()=>{"selectedKeys"in ve&&ke(ve.selectedKeys)},[ve.selectedKeys]),m.useEffect(()=>{"expandedKeys"in ve&&Ve(ve.expandedKeys)},[ve.expandedKeys]);const We=(s,d)=>{var E;return"expandedKeys"in ve||Ve(s),(E=ve.onExpand)===null||E===void 0?void 0:E.call(ve,s,d)},te=(s,d)=>{var E;const{multiple:I}=ve,{node:z,nativeEvent:ee}=d,{key:oe=""}=z,Ee=P(ve),F=Object.assign(Object.assign({},d),{selected:!0}),Ce=(ee==null?void 0:ee.ctrlKey)||(ee==null?void 0:ee.metaKey),Le=ee==null?void 0:ee.shiftKey;let X;I&&Ce?(X=s,Ae.current=oe,Pe.current=X,F.selectedNodes=D(Ee,X)):I&&Le?(X=Array.from(new Set([].concat((0,x.Z)(Pe.current||[]),(0,x.Z)(fe({treeData:Ee,expandedKeys:Ze,startKey:oe,endKey:Ae.current}))))),F.selectedNodes=D(Ee,X)):(X=[oe],Ae.current=oe,Pe.current=X,F.selectedNodes=D(Ee,X)),(E=ve.onSelect)===null||E===void 0||E.call(ve,X,F),"selectedKeys"in ve||ke(X)},{getPrefixCls:g,direction:_}=m.useContext(Se.E_),{prefixCls:f,className:a,showIcon:b=!0,expandAction:V="click"}=ve,h=be(ve,["prefixCls","className","showIcon","expandAction"]),l=g("tree",f),v=ie()(`${l}-directory`,{[`${l}-directory-rtl`]:_==="rtl"},a);return m.createElement(w,Object.assign({icon:R,ref:L,blockNode:!0},h,{showIcon:b,expandAction:V,prefixCls:l,className:v,expandedKeys:Ze,selectedKeys:Je,onSelect:te,onExpand:We}))};var me=m.forwardRef(p);const H=w;H.DirectoryTree=me,H.TreeNode=y.O;var le=H},20648:function(pt,Te,i){"use strict";i.d(Te,{TM:function(){return c},Yk:function(){return $}});var y=i(93083),x=i(98447),Z=i(17313),J=i(8378),A=i(37613),m=i(83116);const ce=new y.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),de=(ie,ne)=>({[`.${ie}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ne.motionDurationSlow}`}}}),se=(ie,ne)=>({[`.${ie}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ne.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ne.lineWidthBold}px solid ${ne.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ye=(ie,ne)=>{const{treeCls:U,treeNodeCls:Se,treeNodePadding:K,titleHeight:T,nodeSelectedBg:M,nodeHoverBg:u}=ne,C=ne.paddingXS;return{[U]:Object.assign(Object.assign({},(0,Z.Wf)(ne)),{background:ne.colorBgContainer,borderRadius:ne.borderRadius,transition:`background-color ${ne.motionDurationSlow}`,[`&${U}-rtl`]:{[`${U}-switcher`]:{"&_close":{[`${U}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${U}-active-focused)`]:Object.assign({},(0,Z.oN)(ne)),[`${U}-list-holder-inner`]:{alignItems:"flex-start"},[`&${U}-block-node`]:{[`${U}-list-holder-inner`]:{alignItems:"stretch",[`${U}-node-content-wrapper`]:{flex:"auto"},[`${Se}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:K,insetInlineStart:0,border:`1px solid ${ne.colorPrimary}`,opacity:0,animationName:ce,animationDuration:ne.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Se}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${K}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${U}-node-content-wrapper`]:{color:ne.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${U}-node-content-wrapper`]:Object.assign({},(0,Z.oN)(ne)),[`&:not(${Se}-disabled).filter-node ${U}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${U}-draggable-icon`]:{flexShrink:0,width:T,lineHeight:`${T}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${ne.motionDurationSlow}`,[`${Se}:hover &`]:{opacity:.45}},[`&${Se}-disabled`]:{[`${U}-draggable-icon`]:{visibility:"hidden"}}}},[`${U}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:T}},[`${U}-draggable-icon`]:{visibility:"hidden"},[`${U}-switcher`]:Object.assign(Object.assign({},de(ie,ne)),{position:"relative",flex:"none",alignSelf:"stretch",width:T,margin:0,lineHeight:`${T}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${U}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:ne.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:T/2,bottom:-K,marginInlineStart:-1,borderInlineEnd:`1px solid ${ne.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:T/2*.8,height:T/2,borderBottom:`1px solid ${ne.colorBorder}`,content:'""'}}}),[`${U}-checkbox`]:{top:"initial",marginInlineEnd:C},[`${U}-node-content-wrapper, ${U}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:T,margin:0,padding:`0 ${ne.paddingXS/2}px`,color:"inherit",lineHeight:`${T}px`,background:"transparent",borderRadius:ne.borderRadius,cursor:"pointer",transition:`all ${ne.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:u},[`&${U}-node-selected`]:{backgroundColor:M},[`${U}-iconEle`]:{display:"inline-block",width:T,height:T,lineHeight:`${T}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${U}-unselectable ${U}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${U}-node-content-wrapper`]:Object.assign({lineHeight:`${T}px`,userSelect:"none"},se(ie,ne)),[`${Se}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${ne.colorPrimary}`}},"&-show-line":{[`${U}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:T/2,bottom:-K,borderInlineEnd:`1px solid ${ne.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${U}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Se}-leaf-last`]:{[`${U}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${T/2}px !important`}}}}})}},ue=ie=>{const{treeCls:ne,treeNodeCls:U,treeNodePadding:Se,directoryNodeSelectedBg:K,directoryNodeSelectedColor:T}=ie;return{[`${ne}${ne}-directory`]:{[U]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Se,insetInlineStart:0,transition:`background-color ${ie.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ie.controlItemBgHover}},"> *":{zIndex:1},[`${ne}-switcher`]:{transition:`color ${ie.motionDurationMid}`},[`${ne}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${ne}-node-selected`]:{color:T,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:K},[`${ne}-switcher`]:{color:T},[`${ne}-node-content-wrapper`]:{color:T,background:"transparent"}}}}}},$=(ie,ne)=>{const U=`.${ie}`,Se=`${U}-treenode`,K=ne.paddingXS/2,T=(0,A.TS)(ne,{treeCls:U,treeNodeCls:Se,treeNodePadding:K});return[ye(ie,T),ue(T)]},c=ie=>{const{controlHeightSM:ne}=ie;return{titleHeight:ne,nodeHoverBg:ie.controlItemBgHover,nodeSelectedBg:ie.controlItemBgActive}};Te.ZP=(0,m.Z)("Tree",(ie,ne)=>{let{prefixCls:U}=ne;return[{[ie.componentCls]:(0,x.C2)(`${U}-checkbox`,ie)},$(U,ie),(0,J.Z)(ie)]},ie=>{const{colorTextLightSolid:ne,colorPrimary:U}=ie;return Object.assign(Object.assign({},c(ie)),{directoryNodeSelectedColor:ne,directoryNodeSelectedBg:U})})},71997:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return Se}});var y=i(16378),x=i(59301),Z={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},J=Z,A=i(7657),m=function(T,M){return x.createElement(A.Z,(0,y.Z)({},T,{ref:M,icon:J}))},ce=x.forwardRef(m),de=ce,se=i(52671),ye=i(58617),ue=i(15075),$=i(43531),c=i(92310),ie=i.n(c),ne=i(92343),Se=K=>{const{prefixCls:T,switcherIcon:M,treeNodeProps:u,showLine:C}=K,{isLeaf:N,expanded:k,loading:w}=u;if(w)return x.createElement(ye.Z,{className:`${T}-switcher-loading-icon`});let re;if(C&&typeof C=="object"&&(re=C.showLeafIcon),N){if(!C)return null;if(typeof re!="boolean"&&re){const D=typeof re=="function"?re(u):re,be=`${T}-switcher-line-custom-icon`;return(0,ne.l$)(D)?(0,ne.Tm)(D,{className:ie()(D.props.className||"",be)}):D}return re?x.createElement(se.Z,{className:`${T}-switcher-line-icon`}):x.createElement("span",{className:`${T}-switcher-leaf-line`})}const Y=`${T}-switcher-icon`,fe=typeof M=="function"?M(u):M;return(0,ne.l$)(fe)?(0,ne.Tm)(fe,{className:ie()(fe.props.className||"",Y)}):fe!==void 0?fe:C?k?x.createElement(ue.Z,{className:`${T}-switcher-line-icon`}):x.createElement($.Z,{className:`${T}-switcher-line-icon`}):x.createElement(de,{className:Y})}},3867:function(pt,Te,i){var y=i(97671);(function(x,Z){pt.exports=Z()})(this,function(){"use strict";function x(h){var l=typeof h;return h!==null&&(l==="object"||l==="function")}function Z(h){return typeof h=="function"}var J=void 0;Array.isArray?J=Array.isArray:J=function(h){return Object.prototype.toString.call(h)==="[object Array]"};var A=J,m=0,ce=void 0,de=void 0,se=function(l,v){C[m]=l,C[m+1]=v,m+=2,m===2&&(de?de(N):w())};function ye(h){de=h}function ue(h){se=h}var $=typeof window!="undefined"?window:void 0,c=$||{},ie=c.MutationObserver||c.WebKitMutationObserver,ne=typeof self=="undefined"&&typeof y!="undefined"&&{}.toString.call(y)==="[object process]",U=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function Se(){return function(){return y.nextTick(N)}}function K(){return typeof ce!="undefined"?function(){ce(N)}:u()}function T(){var h=0,l=new ie(N),v=document.createTextNode("");return l.observe(v,{characterData:!0}),function(){v.data=h=++h%2}}function M(){var h=new MessageChannel;return h.port1.onmessage=N,function(){return h.port2.postMessage(0)}}function u(){var h=setTimeout;return function(){return h(N,1)}}var C=new Array(1e3);function N(){for(var h=0;h<m;h+=2){var l=C[h],v=C[h+1];l(v),C[h]=void 0,C[h+1]=void 0}m=0}function k(){try{var h=Function("return this")().require("vertx");return ce=h.runOnLoop||h.runOnContext,K()}catch(l){return u()}}var w=void 0;ne?w=Se():ie?w=T():U?w=M():$===void 0?w=k():w=u();function re(h,l){var v=this,s=new this.constructor(D);s[fe]===void 0&&Ze(s);var d=v._state;if(d){var E=arguments[d-1];se(function(){return Pe(d,s,E,v._result)})}else ve(v,s,h,l);return s}function Y(h){var l=this;if(h&&typeof h=="object"&&h.constructor===l)return h;var v=new l(D);return L(v,h),v}var fe=Math.random().toString(36).substring(2);function D(){}var be=void 0,R=1,P=2;function p(){return new TypeError("You cannot resolve a promise with itself")}function B(){return new TypeError("A promises callback cannot return that same promise.")}function me(h,l,v,s){try{h.call(l,v,s)}catch(d){return d}}function H(h,l,v){se(function(s){var d=!1,E=me(v,l,function(I){d||(d=!0,l!==I?L(s,I):q(s,I))},function(I){d||(d=!0,ae(s,I))},"Settle: "+(s._label||" unknown promise"));!d&&E&&(d=!0,ae(s,E))},h)}function le(h,l){l._state===R?q(h,l._result):l._state===P?ae(h,l._result):ve(l,void 0,function(v){return L(h,v)},function(v){return ae(h,v)})}function Q(h,l,v){l.constructor===h.constructor&&v===re&&l.constructor.resolve===Y?le(h,l):v===void 0?q(h,l):Z(v)?H(h,l,v):q(h,l)}function L(h,l){if(h===l)ae(h,p());else if(x(l)){var v=void 0;try{v=l.then}catch(s){ae(h,s);return}Q(h,l,v)}else q(h,l)}function W(h){h._onerror&&h._onerror(h._result),Ae(h)}function q(h,l){h._state===be&&(h._result=l,h._state=R,h._subscribers.length!==0&&se(Ae,h))}function ae(h,l){h._state===be&&(h._state=P,h._result=l,se(W,h))}function ve(h,l,v,s){var d=h._subscribers,E=d.length;h._onerror=null,d[E]=l,d[E+R]=v,d[E+P]=s,E===0&&h._state&&se(Ae,h)}function Ae(h){var l=h._subscribers,v=h._state;if(l.length!==0){for(var s=void 0,d=void 0,E=h._result,I=0;I<l.length;I+=3)s=l[I],d=l[I+v],s?Pe(v,s,d,E):d(E);h._subscribers.length=0}}function Pe(h,l,v,s){var d=Z(v),E=void 0,I=void 0,z=!0;if(d){try{E=v(s)}catch(ee){z=!1,I=ee}if(l===E){ae(l,B());return}}else E=s;l._state!==be||(d&&z?L(l,E):z===!1?ae(l,I):h===R?q(l,E):h===P&&ae(l,E))}function Re(h,l){try{l(function(s){L(h,s)},function(s){ae(h,s)})}catch(v){ae(h,v)}}var Je=0;function ke(){return Je++}function Ze(h){h[fe]=Je++,h._state=void 0,h._result=void 0,h._subscribers=[]}function Ve(){return new Error("Array Methods must be provided an Array")}var We=function(){function h(l,v){this._instanceConstructor=l,this.promise=new l(D),this.promise[fe]||Ze(this.promise),A(v)?(this.length=v.length,this._remaining=v.length,this._result=new Array(this.length),this.length===0?q(this.promise,this._result):(this.length=this.length||0,this._enumerate(v),this._remaining===0&&q(this.promise,this._result))):ae(this.promise,Ve())}return h.prototype._enumerate=function(v){for(var s=0;this._state===be&&s<v.length;s++)this._eachEntry(v[s],s)},h.prototype._eachEntry=function(v,s){var d=this._instanceConstructor,E=d.resolve;if(E===Y){var I=void 0,z=void 0,ee=!1;try{I=v.then}catch(Ee){ee=!0,z=Ee}if(I===re&&v._state!==be)this._settledAt(v._state,s,v._result);else if(typeof I!="function")this._remaining--,this._result[s]=v;else if(d===b){var oe=new d(D);ee?ae(oe,z):Q(oe,v,I),this._willSettleAt(oe,s)}else this._willSettleAt(new d(function(Ee){return Ee(v)}),s)}else this._willSettleAt(E(v),s)},h.prototype._settledAt=function(v,s,d){var E=this.promise;E._state===be&&(this._remaining--,v===P?ae(E,d):this._result[s]=d),this._remaining===0&&q(E,this._result)},h.prototype._willSettleAt=function(v,s){var d=this;ve(v,void 0,function(E){return d._settledAt(R,s,E)},function(E){return d._settledAt(P,s,E)})},h}();function te(h){return new We(this,h).promise}function g(h){var l=this;return A(h)?new l(function(v,s){for(var d=h.length,E=0;E<d;E++)l.resolve(h[E]).then(v,s)}):new l(function(v,s){return s(new TypeError("You must pass an array to race."))})}function _(h){var l=this,v=new l(D);return ae(v,h),v}function f(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function a(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var b=function(){function h(l){this[fe]=ke(),this._result=this._state=void 0,this._subscribers=[],D!==l&&(typeof l!="function"&&f(),this instanceof h?Re(this,l):a())}return h.prototype.catch=function(v){return this.then(null,v)},h.prototype.finally=function(v){var s=this,d=s.constructor;return Z(v)?s.then(function(E){return d.resolve(v()).then(function(){return E})},function(E){return d.resolve(v()).then(function(){throw E})}):s.then(v,v)},h}();b.prototype.then=re,b.all=te,b.race=g,b.resolve=Y,b.reject=_,b._setScheduler=ye,b._setAsap=ue,b._asap=se;function V(){var h=void 0;if(typeof i.g!="undefined")h=i.g;else if(typeof self!="undefined")h=self;else try{h=Function("return this")()}catch(s){throw new Error("polyfill failed because global object is unavailable in this environment")}var l=h.Promise;if(l){var v=null;try{v=Object.prototype.toString.call(l.resolve())}catch(s){}if(v==="[object Promise]"&&!l.cast)return}h.Promise=b}return b.polyfill=V,b.Promise=b,b})},86204:function(pt){"use strict";var Te=typeof Reflect=="object"?Reflect:null,i=Te&&typeof Te.apply=="function"?Te.apply:function(M,u,C){return Function.prototype.apply.call(M,u,C)},y;Te&&typeof Te.ownKeys=="function"?y=Te.ownKeys:Object.getOwnPropertySymbols?y=function(M){return Object.getOwnPropertyNames(M).concat(Object.getOwnPropertySymbols(M))}:y=function(M){return Object.getOwnPropertyNames(M)};function x(T){console&&console.warn&&console.warn(T)}var Z=Number.isNaN||function(M){return M!==M};function J(){J.init.call(this)}pt.exports=J,pt.exports.once=U,J.EventEmitter=J,J.prototype._events=void 0,J.prototype._eventsCount=0,J.prototype._maxListeners=void 0;var A=10;function m(T){if(typeof T!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof T)}Object.defineProperty(J,"defaultMaxListeners",{enumerable:!0,get:function(){return A},set:function(T){if(typeof T!="number"||T<0||Z(T))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+T+".");A=T}}),J.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},J.prototype.setMaxListeners=function(M){if(typeof M!="number"||M<0||Z(M))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+M+".");return this._maxListeners=M,this};function ce(T){return T._maxListeners===void 0?J.defaultMaxListeners:T._maxListeners}J.prototype.getMaxListeners=function(){return ce(this)},J.prototype.emit=function(M){for(var u=[],C=1;C<arguments.length;C++)u.push(arguments[C]);var N=M==="error",k=this._events;if(k!==void 0)N=N&&k.error===void 0;else if(!N)return!1;if(N){var w;if(u.length>0&&(w=u[0]),w instanceof Error)throw w;var re=new Error("Unhandled error."+(w?" ("+w.message+")":""));throw re.context=w,re}var Y=k[M];if(Y===void 0)return!1;if(typeof Y=="function")i(Y,this,u);else for(var fe=Y.length,D=c(Y,fe),C=0;C<fe;++C)i(D[C],this,u);return!0};function de(T,M,u,C){var N,k,w;if(m(u),k=T._events,k===void 0?(k=T._events=Object.create(null),T._eventsCount=0):(k.newListener!==void 0&&(T.emit("newListener",M,u.listener?u.listener:u),k=T._events),w=k[M]),w===void 0)w=k[M]=u,++T._eventsCount;else if(typeof w=="function"?w=k[M]=C?[u,w]:[w,u]:C?w.unshift(u):w.push(u),N=ce(T),N>0&&w.length>N&&!w.warned){w.warned=!0;var re=new Error("Possible EventEmitter memory leak detected. "+w.length+" "+String(M)+" listeners added. Use emitter.setMaxListeners() to increase limit");re.name="MaxListenersExceededWarning",re.emitter=T,re.type=M,re.count=w.length,x(re)}return T}J.prototype.addListener=function(M,u){return de(this,M,u,!1)},J.prototype.on=J.prototype.addListener,J.prototype.prependListener=function(M,u){return de(this,M,u,!0)};function se(){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 ye(T,M,u){var C={fired:!1,wrapFn:void 0,target:T,type:M,listener:u},N=se.bind(C);return N.listener=u,C.wrapFn=N,N}J.prototype.once=function(M,u){return m(u),this.on(M,ye(this,M,u)),this},J.prototype.prependOnceListener=function(M,u){return m(u),this.prependListener(M,ye(this,M,u)),this},J.prototype.removeListener=function(M,u){var C,N,k,w,re;if(m(u),N=this._events,N===void 0)return this;if(C=N[M],C===void 0)return this;if(C===u||C.listener===u)--this._eventsCount===0?this._events=Object.create(null):(delete N[M],N.removeListener&&this.emit("removeListener",M,C.listener||u));else if(typeof C!="function"){for(k=-1,w=C.length-1;w>=0;w--)if(C[w]===u||C[w].listener===u){re=C[w].listener,k=w;break}if(k<0)return this;k===0?C.shift():ie(C,k),C.length===1&&(N[M]=C[0]),N.removeListener!==void 0&&this.emit("removeListener",M,re||u)}return this},J.prototype.off=J.prototype.removeListener,J.prototype.removeAllListeners=function(M){var u,C,N;if(C=this._events,C===void 0)return this;if(C.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):C[M]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete C[M]),this;if(arguments.length===0){var k=Object.keys(C),w;for(N=0;N<k.length;++N)w=k[N],w!=="removeListener"&&this.removeAllListeners(w);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(u=C[M],typeof u=="function")this.removeListener(M,u);else if(u!==void 0)for(N=u.length-1;N>=0;N--)this.removeListener(M,u[N]);return this};function ue(T,M,u){var C=T._events;if(C===void 0)return[];var N=C[M];return N===void 0?[]:typeof N=="function"?u?[N.listener||N]:[N]:u?ne(N):c(N,N.length)}J.prototype.listeners=function(M){return ue(this,M,!0)},J.prototype.rawListeners=function(M){return ue(this,M,!1)},J.listenerCount=function(T,M){return typeof T.listenerCount=="function"?T.listenerCount(M):$.call(T,M)},J.prototype.listenerCount=$;function $(T){var M=this._events;if(M!==void 0){var u=M[T];if(typeof u=="function")return 1;if(u!==void 0)return u.length}return 0}J.prototype.eventNames=function(){return this._eventsCount>0?y(this._events):[]};function c(T,M){for(var u=new Array(M),C=0;C<M;++C)u[C]=T[C];return u}function ie(T,M){for(;M+1<T.length;M++)T[M]=T[M+1];T.pop()}function ne(T){for(var M=new Array(T.length),u=0;u<M.length;++u)M[u]=T[u].listener||T[u];return M}function U(T,M){return new Promise(function(u,C){function N(w){T.removeListener(M,k),C(w)}function k(){typeof T.removeListener=="function"&&T.removeListener("error",N),u([].slice.call(arguments))}K(T,M,k,{once:!0}),M!=="error"&&Se(T,N,{once:!0})})}function Se(T,M,u){typeof T.on=="function"&&K(T,"error",M,u)}function K(T,M,u,C){if(typeof T.on=="function")C.once?T.once(M,u):T.on(M,u);else if(typeof T.addEventListener=="function")T.addEventListener(M,function N(k){C.once&&T.removeEventListener(M,N),u(k)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof T)}},24334:function(pt,Te,i){var y,x;(function(Z,J){pt.exports=J(Z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof i.g!="undefined"?i.g:this,function(Z){"use strict";Z=Z||{};var J=Z.Base64,A="2.6.4",m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ce=function(R){for(var P={},p=0,B=R.length;p<B;p++)P[R.charAt(p)]=p;return P}(m),de=String.fromCharCode,se=function(R){if(R.length<2){var P=R.charCodeAt(0);return P<128?R:P<2048?de(192|P>>>6)+de(128|P&63):de(224|P>>>12&15)+de(128|P>>>6&63)+de(128|P&63)}else{var P=65536+(R.charCodeAt(0)-55296)*1024+(R.charCodeAt(1)-56320);return de(240|P>>>18&7)+de(128|P>>>12&63)+de(128|P>>>6&63)+de(128|P&63)}},ye=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ue=function(R){return R.replace(ye,se)},$=function(R){var P=[0,2,1][R.length%3],p=R.charCodeAt(0)<<16|(R.length>1?R.charCodeAt(1):0)<<8|(R.length>2?R.charCodeAt(2):0),B=[m.charAt(p>>>18),m.charAt(p>>>12&63),P>=2?"=":m.charAt(p>>>6&63),P>=1?"=":m.charAt(p&63)];return B.join("")},c=Z.btoa&&typeof Z.btoa=="function"?function(R){return Z.btoa(R)}:function(R){if(R.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return R.replace(/[\s\S]{1,3}/g,$)},ie=function(R){return c(ue(String(R)))},ne=function(R){return R.replace(/[+\/]/g,function(P){return P=="+"?"-":"_"}).replace(/=/g,"")},U=function(R,P){return P?ne(ie(R)):ie(R)},Se=function(R){return U(R,!0)},K;Z.Uint8Array&&(K=function(R,P){for(var p="",B=0,me=R.length;B<me;B+=3){var H=R[B],le=R[B+1],Q=R[B+2],L=H<<16|le<<8|Q;p+=m.charAt(L>>>18)+m.charAt(L>>>12&63)+(typeof le!="undefined"?m.charAt(L>>>6&63):"=")+(typeof Q!="undefined"?m.charAt(L&63):"=")}return P?ne(p):p});var T=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,M=function(R){switch(R.length){case 4:var P=(7&R.charCodeAt(0))<<18|(63&R.charCodeAt(1))<<12|(63&R.charCodeAt(2))<<6|63&R.charCodeAt(3),p=P-65536;return de((p>>>10)+55296)+de((p&1023)+56320);case 3:return de((15&R.charCodeAt(0))<<12|(63&R.charCodeAt(1))<<6|63&R.charCodeAt(2));default:return de((31&R.charCodeAt(0))<<6|63&R.charCodeAt(1))}},u=function(R){return R.replace(T,M)},C=function(R){var P=R.length,p=P%4,B=(P>0?ce[R.charAt(0)]<<18:0)|(P>1?ce[R.charAt(1)]<<12:0)|(P>2?ce[R.charAt(2)]<<6:0)|(P>3?ce[R.charAt(3)]:0),me=[de(B>>>16),de(B>>>8&255),de(B&255)];return me.length-=[0,0,2,1][p],me.join("")},N=Z.atob&&typeof Z.atob=="function"?function(R){return Z.atob(R)}:function(R){return R.replace(/\S{1,4}/g,C)},k=function(R){return N(String(R).replace(/[^A-Za-z0-9\+\/]/g,""))},w=function(R){return u(N(R))},re=function(R){return String(R).replace(/[-_]/g,function(P){return P=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Y=function(R){return w(re(R))},fe;Z.Uint8Array&&(fe=function(R){return Uint8Array.from(k(re(R)),function(P){return P.charCodeAt(0)})});var D=function(){var R=Z.Base64;return Z.Base64=J,R};if(Z.Base64={VERSION:A,atob:k,btoa:c,fromBase64:Y,toBase64:U,utob:ue,encode:U,encodeURI:Se,btou:u,decode:Y,noConflict:D,fromUint8Array:K,toUint8Array:fe},typeof Object.defineProperty=="function"){var be=function(R){return{value:R,enumerable:!1,writable:!0,configurable:!0}};Z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",be(function(){return Y(this)})),Object.defineProperty(String.prototype,"toBase64",be(function(R){return U(this,R)})),Object.defineProperty(String.prototype,"toBase64URI",be(function(){return U(this,!0)}))}}return Z.Meteor&&(Base64=Z.Base64),pt.exports?pt.exports.Base64=Z.Base64:(y=[],x=function(){return Z.Base64}.apply(Te,y),x!==void 0&&(pt.exports=x)),{Base64:Z.Base64}})},31561:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return k}});var y=i(16378),x=i(78772),Z=i(10859),J=i(61206),A=i(35593),m=i(92310),ce=i.n(m),de=i(8654),se=i(59301),ye=i(10228),ue=i(16089),$=ye.Z.ESC,c=ye.Z.TAB;function ie(w){var re=w.visible,Y=w.triggerRef,fe=w.onVisibleChange,D=w.autoFocus,be=w.overlayRef,R=se.useRef(!1),P=function(){if(re){var H,le;(H=Y.current)===null||H===void 0||(le=H.focus)===null||le===void 0||le.call(H),fe==null||fe(!1)}},p=function(){var H;return(H=be.current)!==null&&H!==void 0&&H.focus?(be.current.focus(),R.current=!0,!0):!1},B=function(H){switch(H.keyCode){case $:P();break;case c:{var le=!1;R.current||(le=p()),le?H.preventDefault():P();break}}};se.useEffect(function(){return re?(window.addEventListener("keydown",B),D&&(0,ue.Z)(p,3),function(){window.removeEventListener("keydown",B),R.current=!1}):function(){R.current=!1}},[re])}var ne=(0,se.forwardRef)(function(w,re){var Y=w.overlay,fe=w.arrow,D=w.prefixCls,be=(0,se.useMemo)(function(){var P;return typeof Y=="function"?P=Y():P=Y,P},[Y]),R=(0,de.sQ)(re,be==null?void 0:be.ref);return se.createElement(se.Fragment,null,fe&&se.createElement("div",{className:"".concat(D,"-arrow")}),se.cloneElement(be,{ref:(0,de.Yr)(be)?R:void 0}))}),U=ne,Se={adjustX:1,adjustY:1},K=[0,0],T={topLeft:{points:["bl","tl"],overflow:Se,offset:[0,-4],targetOffset:K},top:{points:["bc","tc"],overflow:Se,offset:[0,-4],targetOffset:K},topRight:{points:["br","tr"],overflow:Se,offset:[0,-4],targetOffset:K},bottomLeft:{points:["tl","bl"],overflow:Se,offset:[0,4],targetOffset:K},bottom:{points:["tc","bc"],overflow:Se,offset:[0,4],targetOffset:K},bottomRight:{points:["tr","br"],overflow:Se,offset:[0,4],targetOffset:K}},M=T,u=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function C(w,re){var Y,fe=w.arrow,D=fe===void 0?!1:fe,be=w.prefixCls,R=be===void 0?"rc-dropdown":be,P=w.transitionName,p=w.animation,B=w.align,me=w.placement,H=me===void 0?"bottomLeft":me,le=w.placements,Q=le===void 0?M:le,L=w.getPopupContainer,W=w.showAction,q=w.hideAction,ae=w.overlayClassName,ve=w.overlayStyle,Ae=w.visible,Pe=w.trigger,Re=Pe===void 0?["hover"]:Pe,Je=w.autoFocus,ke=w.overlay,Ze=w.children,Ve=w.onVisibleChange,We=(0,J.Z)(w,u),te=se.useState(),g=(0,Z.Z)(te,2),_=g[0],f=g[1],a="visible"in w?Ae:_,b=se.useRef(null),V=se.useRef(null),h=se.useRef(null);se.useImperativeHandle(re,function(){return b.current});var l=function(Ee){f(Ee),Ve==null||Ve(Ee)};ie({visible:a,triggerRef:h,onVisibleChange:l,autoFocus:Je,overlayRef:V});var v=function(Ee){var F=w.onOverlayClick;f(!1),F&&F(Ee)},s=function(){return se.createElement(U,{ref:V,overlay:ke,prefixCls:R,arrow:D})},d=function(){return typeof ke=="function"?s:s()},E=function(){var Ee=w.minOverlayWidthMatchTrigger,F=w.alignPoint;return"minOverlayWidthMatchTrigger"in w?Ee:!F},I=function(){var Ee=w.openClassName;return Ee!==void 0?Ee:"".concat(R,"-open")},z=se.cloneElement(Ze,{className:ce()((Y=Ze.props)===null||Y===void 0?void 0:Y.className,a&&I()),ref:(0,de.Yr)(Ze)?(0,de.sQ)(h,Ze.ref):void 0}),ee=q;return!ee&&Re.indexOf("contextMenu")!==-1&&(ee=["click"]),se.createElement(A.Z,(0,y.Z)({builtinPlacements:Q},We,{prefixCls:R,ref:b,popupClassName:ce()(ae,(0,x.Z)({},"".concat(R,"-show-arrow"),D)),popupStyle:ve,action:Re,showAction:W,hideAction:ee,popupPlacement:H,popupAlign:B,popupTransitionName:P,popupAnimation:p,popupVisible:a,stretch:E()?"minWidth":"",popup:d(),onPopupVisibleChange:l,onPopupClick:v,getPopupContainer:L}),z)}var N=se.forwardRef(C),k=N},15285:function(pt,Te,i){"use strict";i.d(Te,{iz:function(){return Ue},ck:function(){return Ne},BW:function(){return mt},sN:function(){return Ne},Wd:function(){return _e},ZP:function(){return Ge},Xl:function(){return Y}});var y=i(16378),x=i(78772),Z=i(35227),J=i(65093),A=i(10859),m=i(61206),ce=i(92310),de=i.n(ce),se=i(11780),ye=i(18929),ue=i(13697),$=i(48736),c=i(59301),ie=i(4676),ne=c.createContext(null);function U(j,G){return j===void 0?null:"".concat(j,"-").concat(G)}function Se(j){var G=c.useContext(ne);return U(G,j)}var K=i(80547),T=["children","locked"],M=c.createContext(null);function u(j,G){var he=(0,Z.Z)({},j);return Object.keys(G).forEach(function(Ie){var ge=G[Ie];ge!==void 0&&(he[Ie]=ge)}),he}function C(j){var G=j.children,he=j.locked,Ie=(0,m.Z)(j,T),ge=c.useContext(M),$e=(0,K.Z)(function(){return u(ge,Ie)},[ge,Ie],function(De,st){return!he&&(De[0]!==st[0]||!(0,ue.Z)(De[1],st[1],!0))});return c.createElement(M.Provider,{value:$e},G)}var N=[],k=c.createContext(null);function w(){return c.useContext(k)}var re=c.createContext(N);function Y(j){var G=c.useContext(re);return c.useMemo(function(){return j!==void 0?[].concat((0,J.Z)(G),[j]):G},[G,j])}var fe=c.createContext(null),D=c.createContext({}),be=D,R=i(29194);function P(j){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,R.Z)(j)){var he=j.nodeName.toLowerCase(),Ie=["input","select","textarea","button"].includes(he)||j.isContentEditable||he==="a"&&!!j.getAttribute("href"),ge=j.getAttribute("tabindex"),$e=Number(ge),De=null;return ge&&!Number.isNaN($e)?De=$e:Ie&&De===null&&(De=0),Ie&&j.disabled&&(De=null),De!==null&&(De>=0||G&&De<0)}return!1}function p(j){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,he=(0,J.Z)(j.querySelectorAll("*")).filter(function(Ie){return P(Ie,G)});return P(j,G)&&he.unshift(j),he}var B=null;function me(){B=document.activeElement}function H(){B=null}function le(){if(B)try{B.focus()}catch(j){}}function Q(j,G){if(G.keyCode===9){var he=p(j),Ie=he[G.shiftKey?0:he.length-1],ge=Ie===document.activeElement||j===document.activeElement;if(ge){var $e=he[G.shiftKey?he.length-1:0];$e.focus(),G.preventDefault()}}}var L=i(10228),W=i(16089),q=L.Z.LEFT,ae=L.Z.RIGHT,ve=L.Z.UP,Ae=L.Z.DOWN,Pe=L.Z.ENTER,Re=L.Z.ESC,Je=L.Z.HOME,ke=L.Z.END,Ze=[ve,Ae,q,ae];function Ve(j,G,he,Ie){var ge,$e,De,st,bt="prev",vt="next",St="children",yt="parent";if(j==="inline"&&Ie===Pe)return{inlineTrigger:!0};var At=(ge={},(0,x.Z)(ge,ve,bt),(0,x.Z)(ge,Ae,vt),ge),Tt=($e={},(0,x.Z)($e,q,he?vt:bt),(0,x.Z)($e,ae,he?bt:vt),(0,x.Z)($e,Ae,St),(0,x.Z)($e,Pe,St),$e),Ot=(De={},(0,x.Z)(De,ve,bt),(0,x.Z)(De,Ae,vt),(0,x.Z)(De,Pe,St),(0,x.Z)(De,Re,yt),(0,x.Z)(De,q,he?St:yt),(0,x.Z)(De,ae,he?yt:St),De),zt={inline:At,horizontal:Tt,vertical:Ot,inlineSub:At,horizontalSub:Ot,verticalSub:Ot},Zt=(st=zt["".concat(j).concat(G?"":"Sub")])===null||st===void 0?void 0:st[Ie];switch(Zt){case bt:return{offset:-1,sibling:!0};case vt:return{offset:1,sibling:!0};case yt:return{offset:-1,sibling:!1};case St:return{offset:1,sibling:!1};default:return null}}function We(j){for(var G=j;G;){if(G.getAttribute("data-menu-list"))return G;G=G.parentElement}return null}function te(j,G){for(var he=j||document.activeElement;he;){if(G.has(he))return he;he=he.parentElement}return null}function g(j,G){var he=p(j,!0);return he.filter(function(Ie){return G.has(Ie)})}function _(j,G,he){var Ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!j)return null;var ge=g(j,G),$e=ge.length,De=ge.findIndex(function(st){return he===st});return Ie<0?De===-1?De=$e-1:De-=1:Ie>0&&(De+=1),De=(De+$e)%$e,ge[De]}var f=function(G,he){var Ie=new Set,ge=new Map,$e=new Map;return G.forEach(function(De){var st=document.querySelector("[data-menu-id='".concat(U(he,De),"']"));st&&(Ie.add(st),$e.set(st,De),ge.set(De,st))}),{elements:Ie,key2element:ge,element2key:$e}};function a(j,G,he,Ie,ge,$e,De,st,bt,vt){var St=c.useRef(),yt=c.useRef();yt.current=G;var At=function(){W.Z.cancel(St.current)};return c.useEffect(function(){return function(){At()}},[]),function(Tt){var Ot=Tt.which;if([].concat(Ze,[Pe,Re,Je,ke]).includes(Ot)){var zt=$e(),Zt=f(zt,Ie),jt=Zt,Nt=jt.elements,Dt=jt.key2element,Lt=jt.element2key,Bt=Dt.get(G),Pt=te(Bt,Nt),Wt=Lt.get(Pt),Kt=Ve(j,De(Wt,!0).length===1,he,Ot);if(!Kt&&Ot!==Je&&Ot!==ke)return;(Ze.includes(Ot)||[Je,ke].includes(Ot))&&Tt.preventDefault();var on=function(qt){if(qt){var Jt=qt,rn=qt.querySelector("a");rn!=null&&rn.getAttribute("href")&&(Jt=rn);var lt=Lt.get(qt);st(lt),At(),St.current=(0,W.Z)(function(){yt.current===lt&&Jt.focus()})}};if([Je,ke].includes(Ot)||Kt.sibling||!Pt){var Ft;!Pt||j==="inline"?Ft=ge.current:Ft=We(Pt);var Qt,Xt=g(Ft,Nt);Ot===Je?Qt=Xt[0]:Ot===ke?Qt=Xt[Xt.length-1]:Qt=_(Ft,Nt,Pt,Kt.offset),on(Qt)}else if(Kt.inlineTrigger)bt(Wt);else if(Kt.offset>0)bt(Wt,!0),At(),St.current=(0,W.Z)(function(){Zt=f(zt,Ie);var fn=Pt.getAttribute("aria-controls"),qt=document.getElementById(fn),Jt=_(qt,Zt.elements);on(Jt)},5);else if(Kt.offset<0){var Yt=De(Wt,!0),en=Yt[Yt.length-2],nn=Dt.get(en);bt(en,!1),on(nn)}}vt==null||vt(Tt)}}function b(j){Promise.resolve().then(j)}var V="__RC_UTIL_PATH_SPLIT__",h=function(G){return G.join(V)},l=function(G){return G.split(V)},v="rc-menu-more";function s(){var j=c.useState({}),G=(0,A.Z)(j,2),he=G[1],Ie=(0,c.useRef)(new Map),ge=(0,c.useRef)(new Map),$e=c.useState([]),De=(0,A.Z)($e,2),st=De[0],bt=De[1],vt=(0,c.useRef)(0),St=(0,c.useRef)(!1),yt=function(){St.current||he({})},At=(0,c.useCallback)(function(Dt,Lt){var Bt=h(Lt);ge.current.set(Bt,Dt),Ie.current.set(Dt,Bt),vt.current+=1;var Pt=vt.current;b(function(){Pt===vt.current&&yt()})},[]),Tt=(0,c.useCallback)(function(Dt,Lt){var Bt=h(Lt);ge.current.delete(Bt),Ie.current.delete(Dt)},[]),Ot=(0,c.useCallback)(function(Dt){bt(Dt)},[]),zt=(0,c.useCallback)(function(Dt,Lt){var Bt=Ie.current.get(Dt)||"",Pt=l(Bt);return Lt&&st.includes(Pt[0])&&Pt.unshift(v),Pt},[st]),Zt=(0,c.useCallback)(function(Dt,Lt){return Dt.some(function(Bt){var Pt=zt(Bt,!0);return Pt.includes(Lt)})},[zt]),jt=function(){var Lt=(0,J.Z)(Ie.current.keys());return st.length&&Lt.push(v),Lt},Nt=(0,c.useCallback)(function(Dt){var Lt="".concat(Ie.current.get(Dt)).concat(V),Bt=new Set;return(0,J.Z)(ge.current.keys()).forEach(function(Pt){Pt.startsWith(Lt)&&Bt.add(ge.current.get(Pt))}),Bt},[]);return c.useEffect(function(){return function(){St.current=!0}},[]),{registerPath:At,unregisterPath:Tt,refreshOverflowKeys:Ot,isSubPathKey:Zt,getKeyPath:zt,getKeys:jt,getSubPathKeys:Nt}}function d(j){var G=c.useRef(j);G.current=j;var he=c.useCallback(function(){for(var Ie,ge=arguments.length,$e=new Array(ge),De=0;De<ge;De++)$e[De]=arguments[De];return(Ie=G.current)===null||Ie===void 0?void 0:Ie.call.apply(Ie,[G].concat($e))},[]);return j?he:void 0}var E=Math.random().toFixed(5).toString().slice(2),I=0;function z(j){var G=(0,ye.Z)(j,{value:j}),he=(0,A.Z)(G,2),Ie=he[0],ge=he[1];return c.useEffect(function(){I+=1;var $e="".concat(E,"-").concat(I);ge("rc-menu-uuid-".concat($e))},[]),Ie}var ee=i(44202),oe=i(86773),Ee=i(82412),F=i(60845),Ce=i(2738),Le=i(8654);function X(j,G,he,Ie){var ge=c.useContext(M),$e=ge.activeKey,De=ge.onActive,st=ge.onInactive,bt={active:$e===j};return G||(bt.onMouseEnter=function(vt){he==null||he({key:j,domEvent:vt}),De(j)},bt.onMouseLeave=function(vt){Ie==null||Ie({key:j,domEvent:vt}),st(j)}),bt}function je(j){var G=c.useContext(M),he=G.mode,Ie=G.rtl,ge=G.inlineIndent;if(he!=="inline")return null;var $e=j;return Ie?{paddingRight:$e*ge}:{paddingLeft:$e*ge}}function Be(j){var G=j.icon,he=j.props,Ie=j.children,ge;return G===null||G===!1?null:(typeof G=="function"?ge=c.createElement(G,(0,Z.Z)({},he)):typeof G!="boolean"&&(ge=G),ge||Ie||null)}var Ke=["item"];function ze(j){var G=j.item,he=(0,m.Z)(j,Ke);return Object.defineProperty(he,"item",{get:function(){return(0,$.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),G}}),he}var it=["title","attribute","elementRef"],ut=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],dt=["active"],tt=function(j){(0,Ee.Z)(he,j);var G=(0,F.Z)(he);function he(){return(0,ee.Z)(this,he),G.apply(this,arguments)}return(0,oe.Z)(he,[{key:"render",value:function(){var ge=this.props,$e=ge.title,De=ge.attribute,st=ge.elementRef,bt=(0,m.Z)(ge,it),vt=(0,Ce.Z)(bt,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,$.ZP)(!De,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(se.Z.Item,(0,y.Z)({},De,{title:typeof $e=="string"?$e:void 0},vt,{ref:st}))}}]),he}(c.Component),gt=c.forwardRef(function(j,G){var he,Ie=j.style,ge=j.className,$e=j.eventKey,De=j.warnKey,st=j.disabled,bt=j.itemIcon,vt=j.children,St=j.role,yt=j.onMouseEnter,At=j.onMouseLeave,Tt=j.onClick,Ot=j.onKeyDown,zt=j.onFocus,Zt=(0,m.Z)(j,ut),jt=Se($e),Nt=c.useContext(M),Dt=Nt.prefixCls,Lt=Nt.onItemClick,Bt=Nt.disabled,Pt=Nt.overflowDisabled,Wt=Nt.itemIcon,Kt=Nt.selectedKeys,on=Nt.onActive,Ft=c.useContext(be),Qt=Ft._internalRenderMenuItem,Xt="".concat(Dt,"-item"),Yt=c.useRef(),en=c.useRef(),nn=Bt||st,fn=(0,Le.x1)(G,en),qt=Y($e),Jt=function(tn){return{key:$e,keyPath:(0,J.Z)(qt).reverse(),item:Yt.current,domEvent:tn}},rn=bt||Wt,lt=X($e,nn,yt,At),rt=lt.active,xt=(0,m.Z)(lt,dt),Mt=Kt.includes($e),Ut=je(qt.length),dn=function(tn){if(!nn){var vn=Jt(tn);Tt==null||Tt(ze(vn)),Lt(vn)}},Gt=function(tn){if(Ot==null||Ot(tn),tn.which===L.Z.ENTER){var vn=Jt(tn);Tt==null||Tt(ze(vn)),Lt(vn)}},an=function(tn){on($e),zt==null||zt(tn)},yn={};j.role==="option"&&(yn["aria-selected"]=Mt);var mn=c.createElement(tt,(0,y.Z)({ref:Yt,elementRef:fn,role:St===null?"none":St||"menuitem",tabIndex:st?null:-1,"data-menu-id":Pt&&jt?null:jt},Zt,xt,yn,{component:"li","aria-disabled":st,style:(0,Z.Z)((0,Z.Z)({},Ut),Ie),className:de()(Xt,(he={},(0,x.Z)(he,"".concat(Xt,"-active"),rt),(0,x.Z)(he,"".concat(Xt,"-selected"),Mt),(0,x.Z)(he,"".concat(Xt,"-disabled"),nn),he),ge),onClick:dn,onKeyDown:Gt,onFocus:an}),vt,c.createElement(Be,{props:(0,Z.Z)((0,Z.Z)({},j),{},{isSelected:Mt}),icon:rn}));return Qt&&(mn=Qt(mn,j,{selected:Mt})),mn});function Xe(j,G){var he=j.eventKey,Ie=w(),ge=Y(he);return c.useEffect(function(){if(Ie)return Ie.registerPath(he,ge),function(){Ie.unregisterPath(he,ge)}},[ge]),Ie?null:c.createElement(gt,(0,y.Z)({},j,{ref:G}))}var Ne=c.forwardRef(Xe),ct=["className","children"],ft=function(G,he){var Ie=G.className,ge=G.children,$e=(0,m.Z)(G,ct),De=c.useContext(M),st=De.prefixCls,bt=De.mode,vt=De.rtl;return c.createElement("ul",(0,y.Z)({className:de()(st,vt&&"".concat(st,"-rtl"),"".concat(st,"-sub"),"".concat(st,"-").concat(bt==="inline"?"inline":"vertical"),Ie),role:"menu"},$e,{"data-menu-list":!0,ref:he}),ge)},_t=c.forwardRef(ft);_t.displayName="SubMenuList";var Rt=_t,It=i(11592);function Ct(j,G){return(0,It.Z)(j).map(function(he,Ie){if(c.isValidElement(he)){var ge,$e,De=he.key,st=(ge=($e=he.props)===null||$e===void 0?void 0:$e.eventKey)!==null&&ge!==void 0?ge:De,bt=st==null;bt&&(st="tmp_key-".concat([].concat((0,J.Z)(G),[Ie]).join("-")));var vt={key:st,eventKey:st};return c.cloneElement(he,vt)}return he})}var Et=i(35593),qe={adjustX:1,adjustY:1},at={topLeft:{points:["bl","tl"],overflow:qe},topRight:{points:["br","tr"],overflow:qe},bottomLeft:{points:["tl","bl"],overflow:qe},bottomRight:{points:["tr","br"],overflow:qe},leftTop:{points:["tr","tl"],overflow:qe},leftBottom:{points:["br","bl"],overflow:qe},rightTop:{points:["tl","tr"],overflow:qe},rightBottom:{points:["bl","br"],overflow:qe}},He={topLeft:{points:["bl","tl"],overflow:qe},topRight:{points:["br","tr"],overflow:qe},bottomLeft:{points:["tl","bl"],overflow:qe},bottomRight:{points:["tr","br"],overflow:qe},rightTop:{points:["tr","tl"],overflow:qe},rightBottom:{points:["br","bl"],overflow:qe},leftTop:{points:["tl","tr"],overflow:qe},leftBottom:{points:["bl","br"],overflow:qe}},pe=null;function e(j,G,he){if(G)return G;if(he)return he[j]||he.other}var t={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function n(j){var G=j.prefixCls,he=j.visible,Ie=j.children,ge=j.popup,$e=j.popupStyle,De=j.popupClassName,st=j.popupOffset,bt=j.disabled,vt=j.mode,St=j.onVisibleChange,yt=c.useContext(M),At=yt.getPopupContainer,Tt=yt.rtl,Ot=yt.subMenuOpenDelay,zt=yt.subMenuCloseDelay,Zt=yt.builtinPlacements,jt=yt.triggerSubMenuAction,Nt=yt.forceSubMenuRender,Dt=yt.rootClassName,Lt=yt.motion,Bt=yt.defaultMotions,Pt=c.useState(!1),Wt=(0,A.Z)(Pt,2),Kt=Wt[0],on=Wt[1],Ft=Tt?(0,Z.Z)((0,Z.Z)({},He),Zt):(0,Z.Z)((0,Z.Z)({},at),Zt),Qt=t[vt],Xt=e(vt,Lt,Bt),Yt=c.useRef(Xt);vt!=="inline"&&(Yt.current=Xt);var en=(0,Z.Z)((0,Z.Z)({},Yt.current),{},{leavedClassName:"".concat(G,"-hidden"),removeOnLeave:!1,motionAppear:!0}),nn=c.useRef();return c.useEffect(function(){return nn.current=(0,W.Z)(function(){on(he)}),function(){W.Z.cancel(nn.current)}},[he]),c.createElement(Et.Z,{prefixCls:G,popupClassName:de()("".concat(G,"-popup"),(0,x.Z)({},"".concat(G,"-rtl"),Tt),De,Dt),stretch:vt==="horizontal"?"minWidth":null,getPopupContainer:At,builtinPlacements:Ft,popupPlacement:Qt,popupVisible:Kt,popup:ge,popupStyle:$e,popupAlign:st&&{offset:st},action:bt?[]:[jt],mouseEnterDelay:Ot,mouseLeaveDelay:zt,onPopupVisibleChange:St,forceRender:Nt,popupMotion:en,fresh:!0},Ie)}var r=i(77900);function o(j){var G=j.id,he=j.open,Ie=j.keyPath,ge=j.children,$e="inline",De=c.useContext(M),st=De.prefixCls,bt=De.forceSubMenuRender,vt=De.motion,St=De.defaultMotions,yt=De.mode,At=c.useRef(!1);At.current=yt===$e;var Tt=c.useState(!At.current),Ot=(0,A.Z)(Tt,2),zt=Ot[0],Zt=Ot[1],jt=At.current?he:!1;c.useEffect(function(){At.current&&Zt(!1)},[yt]);var Nt=(0,Z.Z)({},e($e,vt,St));Ie.length>1&&(Nt.motionAppear=!1);var Dt=Nt.onVisibleChanged;return Nt.onVisibleChanged=function(Lt){return!At.current&&!Lt&&Zt(!0),Dt==null?void 0:Dt(Lt)},zt?null:c.createElement(C,{mode:$e,locked:!At.current},c.createElement(r.default,(0,y.Z)({visible:jt},Nt,{forceRender:bt,removeOnLeave:!1,leavedClassName:"".concat(st,"-hidden")}),function(Lt){var Bt=Lt.className,Pt=Lt.style;return c.createElement(Rt,{id:G,className:Bt,style:Pt},ge)}))}var S=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],O=["active"],we=function(G){var he,Ie=G.style,ge=G.className,$e=G.title,De=G.eventKey,st=G.warnKey,bt=G.disabled,vt=G.internalPopupClose,St=G.children,yt=G.itemIcon,At=G.expandIcon,Tt=G.popupClassName,Ot=G.popupOffset,zt=G.popupStyle,Zt=G.onClick,jt=G.onMouseEnter,Nt=G.onMouseLeave,Dt=G.onTitleClick,Lt=G.onTitleMouseEnter,Bt=G.onTitleMouseLeave,Pt=(0,m.Z)(G,S),Wt=Se(De),Kt=c.useContext(M),on=Kt.prefixCls,Ft=Kt.mode,Qt=Kt.openKeys,Xt=Kt.disabled,Yt=Kt.overflowDisabled,en=Kt.activeKey,nn=Kt.selectedKeys,fn=Kt.itemIcon,qt=Kt.expandIcon,Jt=Kt.onItemClick,rn=Kt.onOpenChange,lt=Kt.onActive,rt=c.useContext(be),xt=rt._internalRenderSubMenuItem,Mt=c.useContext(fe),Ut=Mt.isSubPathKey,dn=Y(),Gt="".concat(on,"-submenu"),an=Xt||bt,yn=c.useRef(),mn=c.useRef(),hn=yt!=null?yt:fn,tn=At!=null?At:qt,vn=Qt.includes(De),_n=!Yt&&vn,$n=Ut(nn,De),xn=X(De,an,Lt,Bt),Sn=xn.active,zn=(0,m.Z)(xn,O),qn=c.useState(!1),Hn=(0,A.Z)(qn,2),On=Hn[0],Pn=Hn[1],kn=function(un){an||Pn(un)},pn=function(un){kn(!0),jt==null||jt({key:De,domEvent:un})},jn=function(un){kn(!1),Nt==null||Nt({key:De,domEvent:un})},Ln=c.useMemo(function(){return Sn||(Ft!=="inline"?On||Ut([en],De):!1)},[Ft,Sn,en,On,De,Ut]),Bn=je(dn.length),Vn=function(un){an||(Dt==null||Dt({key:De,domEvent:un}),Ft==="inline"&&rn(De,!vn))},Rn=d(function(gn){Zt==null||Zt(ze(gn)),Jt(gn)}),Dn=function(un){Ft!=="inline"&&rn(De,un)},An=function(){lt(De)},Tn=Wt&&"".concat(Wt,"-popup"),In=c.createElement("div",(0,y.Z)({role:"menuitem",style:Bn,className:"".concat(Gt,"-title"),tabIndex:an?null:-1,ref:yn,title:typeof $e=="string"?$e:null,"data-menu-id":Yt&&Wt?null:Wt,"aria-expanded":_n,"aria-haspopup":!0,"aria-controls":Tn,"aria-disabled":an,onClick:Vn,onFocus:An},zn),$e,c.createElement(Be,{icon:Ft!=="horizontal"?tn:void 0,props:(0,Z.Z)((0,Z.Z)({},G),{},{isOpen:_n,isSubMenu:!0})},c.createElement("i",{className:"".concat(Gt,"-arrow")}))),cn=c.useRef(Ft);if(Ft!=="inline"&&dn.length>1?cn.current="vertical":cn.current=Ft,!Yt){var wn=cn.current;In=c.createElement(n,{mode:wn,prefixCls:Gt,visible:!vt&&_n&&Ft!=="inline",popupClassName:Tt,popupOffset:Ot,popupStyle:zt,popup:c.createElement(C,{mode:wn==="horizontal"?"vertical":wn},c.createElement(Rt,{id:Tn,ref:mn},St)),disabled:an,onVisibleChange:Dn},In)}var bn=c.createElement(se.Z.Item,(0,y.Z)({role:"none"},Pt,{component:"li",style:Ie,className:de()(Gt,"".concat(Gt,"-").concat(Ft),ge,(he={},(0,x.Z)(he,"".concat(Gt,"-open"),_n),(0,x.Z)(he,"".concat(Gt,"-active"),Ln),(0,x.Z)(he,"".concat(Gt,"-selected"),$n),(0,x.Z)(he,"".concat(Gt,"-disabled"),an),he)),onMouseEnter:pn,onMouseLeave:jn}),In,!Yt&&c.createElement(o,{id:Tn,open:_n,keyPath:dn},St));return xt&&(bn=xt(bn,G,{selected:$n,active:Ln,open:_n,disabled:an})),c.createElement(C,{onItemClick:Rn,mode:Ft==="horizontal"?"vertical":Ft,itemIcon:hn,expandIcon:tn},bn)};function _e(j){var G=j.eventKey,he=j.children,Ie=Y(G),ge=Ct(he,Ie),$e=w();c.useEffect(function(){if($e)return $e.registerPath(G,Ie),function(){$e.unregisterPath(G,Ie)}},[Ie]);var De;return $e?De=ge:De=c.createElement(we,j,ge),c.createElement(re.Provider,{value:Ie},De)}var Oe=i(42066),et=["className","title","eventKey","children"],ot=["children"],Fe=function(G){var he=G.className,Ie=G.title,ge=G.eventKey,$e=G.children,De=(0,m.Z)(G,et),st=c.useContext(M),bt=st.prefixCls,vt="".concat(bt,"-item-group");return c.createElement("li",(0,y.Z)({role:"presentation"},De,{onClick:function(yt){return yt.stopPropagation()},className:de()(vt,he)}),c.createElement("div",{role:"presentation",className:"".concat(vt,"-title"),title:typeof Ie=="string"?Ie:void 0},Ie),c.createElement("ul",{role:"group",className:"".concat(vt,"-list")},$e))};function mt(j){var G=j.children,he=(0,m.Z)(j,ot),Ie=Y(he.eventKey),ge=Ct(G,Ie),$e=w();return $e?ge:c.createElement(Fe,(0,Ce.Z)(he,["warnKey"]),ge)}function Ue(j){var G=j.className,he=j.style,Ie=c.useContext(M),ge=Ie.prefixCls,$e=w();return $e?null:c.createElement("li",{role:"separator",className:de()("".concat(ge,"-item-divider"),G),style:he})}var xe=["label","children","key","type"];function Me(j){return(j||[]).map(function(G,he){if(G&&(0,Oe.Z)(G)==="object"){var Ie=G,ge=Ie.label,$e=Ie.children,De=Ie.key,st=Ie.type,bt=(0,m.Z)(Ie,xe),vt=De!=null?De:"tmp-".concat(he);return $e||st==="group"?st==="group"?c.createElement(mt,(0,y.Z)({key:vt},bt,{title:ge}),Me($e)):c.createElement(_e,(0,y.Z)({key:vt},bt,{title:ge}),Me($e)):st==="divider"?c.createElement(Ue,(0,y.Z)({key:vt},bt)):c.createElement(Ne,(0,y.Z)({key:vt},bt),ge)}return null}).filter(function(G){return G})}function Qe(j,G,he){var Ie=j;return G&&(Ie=Me(G)),Ct(Ie,he)}var nt=["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"],ht=[],$t=c.forwardRef(function(j,G){var he,Ie,ge=j,$e=ge.prefixCls,De=$e===void 0?"rc-menu":$e,st=ge.rootClassName,bt=ge.style,vt=ge.className,St=ge.tabIndex,yt=St===void 0?0:St,At=ge.items,Tt=ge.children,Ot=ge.direction,zt=ge.id,Zt=ge.mode,jt=Zt===void 0?"vertical":Zt,Nt=ge.inlineCollapsed,Dt=ge.disabled,Lt=ge.disabledOverflow,Bt=ge.subMenuOpenDelay,Pt=Bt===void 0?.1:Bt,Wt=ge.subMenuCloseDelay,Kt=Wt===void 0?.1:Wt,on=ge.forceSubMenuRender,Ft=ge.defaultOpenKeys,Qt=ge.openKeys,Xt=ge.activeKey,Yt=ge.defaultActiveFirst,en=ge.selectable,nn=en===void 0?!0:en,fn=ge.multiple,qt=fn===void 0?!1:fn,Jt=ge.defaultSelectedKeys,rn=ge.selectedKeys,lt=ge.onSelect,rt=ge.onDeselect,xt=ge.inlineIndent,Mt=xt===void 0?24:xt,Ut=ge.motion,dn=ge.defaultMotions,Gt=ge.triggerSubMenuAction,an=Gt===void 0?"hover":Gt,yn=ge.builtinPlacements,mn=ge.itemIcon,hn=ge.expandIcon,tn=ge.overflowedIndicator,vn=tn===void 0?"...":tn,_n=ge.overflowedIndicatorPopupClassName,$n=ge.getPopupContainer,xn=ge.onClick,Sn=ge.onOpenChange,zn=ge.onKeyDown,qn=ge.openAnimation,Hn=ge.openTransitionName,On=ge._internalRenderMenuItem,Pn=ge._internalRenderSubMenuItem,kn=(0,m.Z)(ge,nt),pn=c.useMemo(function(){return Qe(Tt,At,ht)},[Tt,At]),jn=c.useState(!1),Ln=(0,A.Z)(jn,2),Bn=Ln[0],Vn=Ln[1],Rn=c.useRef(),Dn=z(zt),An=Ot==="rtl",Tn=(0,ye.Z)(Ft,{value:Qt,postState:function(kt){return kt||ht}}),In=(0,A.Z)(Tn,2),cn=In[0],wn=In[1],bn=function(kt){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function sn(){wn(kt),Sn==null||Sn(kt)}Ht?(0,ie.flushSync)(sn):sn()},gn=c.useState(cn),un=(0,A.Z)(gn,2),mr=un[0],vr=un[1],Wn=c.useRef(!1),pr=c.useMemo(function(){return(jt==="inline"||jt==="vertical")&&Nt?["vertical",Nt]:[jt,!1]},[jt,Nt]),er=(0,A.Z)(pr,2),Kn=er[0],Gn=er[1],tr=Kn==="inline",gr=c.useState(Kn),nr=(0,A.Z)(gr,2),En=nr[0],yr=nr[1],_r=c.useState(Gn),rr=(0,A.Z)(_r,2),Er=rr[0],Sr=rr[1];c.useEffect(function(){yr(Kn),Sr(Gn),Wn.current&&(tr?wn(mr):bn(ht))},[Kn,Gn]);var br=c.useState(0),ir=(0,A.Z)(br,2),Fn=ir[0],Cr=ir[1],Xn=Fn>=pn.length-1||En!=="horizontal"||Lt;c.useEffect(function(){tr&&vr(cn)},[cn]),c.useEffect(function(){return Wn.current=!0,function(){Wn.current=!1}},[]);var Cn=s(),ar=Cn.registerPath,or=Cn.unregisterPath,xr=Cn.refreshOverflowKeys,sr=Cn.isSubPathKey,Rr=Cn.getKeyPath,lr=Cn.getKeys,Ir=Cn.getSubPathKeys,wr=c.useMemo(function(){return{registerPath:ar,unregisterPath:or}},[ar,or]),Or=c.useMemo(function(){return{isSubPathKey:sr}},[sr]);c.useEffect(function(){xr(Xn?ht:pn.slice(Fn+1).map(function(Vt){return Vt.key}))},[Fn,Xn]);var Lr=(0,ye.Z)(Xt||Yt&&((he=pn[0])===null||he===void 0?void 0:he.key),{value:Xt}),dr=(0,A.Z)(Lr,2),Nn=dr[0],Yn=dr[1],Dr=d(function(Vt){Yn(Vt)}),Ar=d(function(){Yn(void 0)});(0,c.useImperativeHandle)(G,function(){return{list:Rn.current,focus:function(kt){var Ht,sn=lr(),ln=f(sn,Dn),Un=ln.elements,Qn=ln.key2element,Zr=ln.element2key,fr=g(Rn.current,Un),hr=Nn!=null?Nn:fr[0]?Zr.get(fr[0]):(Ht=pn.find(function(Ur){return!Ur.props.disabled}))===null||Ht===void 0?void 0:Ht.key,Mn=Qn.get(hr);if(hr&&Mn){var Jn;Mn==null||(Jn=Mn.focus)===null||Jn===void 0||Jn.call(Mn,kt)}}}});var Tr=(0,ye.Z)(Jt||[],{value:rn,postState:function(kt){return Array.isArray(kt)?kt:kt==null?ht:[kt]}}),cr=(0,A.Z)(Tr,2),Zn=cr[0],Nr=cr[1],Mr=function(kt){if(nn){var Ht=kt.key,sn=Zn.includes(Ht),ln;qt?sn?ln=Zn.filter(function(Qn){return Qn!==Ht}):ln=[].concat((0,J.Z)(Zn),[Ht]):ln=[Ht],Nr(ln);var Un=(0,Z.Z)((0,Z.Z)({},kt),{},{selectedKeys:ln});sn?rt==null||rt(Un):lt==null||lt(Un)}!qt&&cn.length&&En!=="inline"&&bn(ht)},$r=d(function(Vt){xn==null||xn(ze(Vt)),Mr(Vt)}),ur=d(function(Vt,kt){var Ht=cn.filter(function(ln){return ln!==Vt});if(kt)Ht.push(Vt);else if(En!=="inline"){var sn=Ir(Vt);Ht=Ht.filter(function(ln){return!sn.has(ln)})}(0,ue.Z)(cn,Ht,!0)||bn(Ht,!0)}),Pr=function(kt,Ht){var sn=Ht!=null?Ht:!cn.includes(kt);ur(kt,sn)},kr=a(En,Nn,An,Dn,Rn,lr,Rr,Yn,Pr,zn);c.useEffect(function(){Vn(!0)},[]);var Br=c.useMemo(function(){return{_internalRenderMenuItem:On,_internalRenderSubMenuItem:Pn}},[On,Pn]),Kr=En!=="horizontal"||Lt?pn:pn.map(function(Vt,kt){return c.createElement(C,{key:Vt.key,overflowDisabled:kt>Fn},Vt)}),Fr=c.createElement(se.Z,(0,y.Z)({id:zt,ref:Rn,prefixCls:"".concat(De,"-overflow"),component:"ul",itemComponent:Ne,className:de()(De,"".concat(De,"-root"),"".concat(De,"-").concat(En),vt,(Ie={},(0,x.Z)(Ie,"".concat(De,"-inline-collapsed"),Er),(0,x.Z)(Ie,"".concat(De,"-rtl"),An),Ie),st),dir:Ot,style:bt,role:"menu",tabIndex:yt,data:Kr,renderRawItem:function(kt){return kt},renderRawRest:function(kt){var Ht=kt.length,sn=Ht?pn.slice(-Ht):null;return c.createElement(_e,{eventKey:v,title:vn,disabled:Xn,internalPopupClose:Ht===0,popupClassName:_n},sn)},maxCount:En!=="horizontal"||Lt?se.Z.INVALIDATE:se.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(kt){Cr(kt)},onKeyDown:kr},kn));return c.createElement(be.Provider,{value:Br},c.createElement(ne.Provider,{value:Dn},c.createElement(C,{prefixCls:De,rootClassName:st,mode:En,openKeys:cn,rtl:An,disabled:Dt,motion:Bn?Ut:null,defaultMotions:Bn?dn:null,activeKey:Nn,onActive:Dr,onInactive:Ar,selectedKeys:Zn,inlineIndent:Mt,subMenuOpenDelay:Pt,subMenuCloseDelay:Kt,forceSubMenuRender:on,builtinPlacements:yn,triggerSubMenuAction:an,getPopupContainer:$n,itemIcon:mn,expandIcon:hn,onItemClick:$r,onOpenChange:ur},c.createElement(fe.Provider,{value:Or},Fr),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(k.Provider,{value:wr},pn)))))}),wt=$t,Ye=wt;Ye.Item=Ne,Ye.SubMenu=_e,Ye.ItemGroup=mt,Ye.Divider=Ue;var Ge=Ye},11780:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return me}});var y=i(16378),x=i(35227),Z=i(10859),J=i(61206),A=i(59301),m=i(92310),ce=i.n(m),de=i(29301),se=i(34280),ye=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ue=void 0;function $(H,le){var Q=H.prefixCls,L=H.invalidate,W=H.item,q=H.renderItem,ae=H.responsive,ve=H.responsiveDisabled,Ae=H.registerSize,Pe=H.itemKey,Re=H.className,Je=H.style,ke=H.children,Ze=H.display,Ve=H.order,We=H.component,te=We===void 0?"div":We,g=(0,J.Z)(H,ye),_=ae&&!Ze;function f(l){Ae(Pe,l)}A.useEffect(function(){return function(){f(null)}},[]);var a=q&&W!==ue?q(W,{index:Ve}):ke,b;L||(b={opacity:_?0:1,height:_?0:ue,overflowY:_?"hidden":ue,order:ae?Ve:ue,pointerEvents:_?"none":ue,position:_?"absolute":ue});var V={};_&&(V["aria-hidden"]=!0);var h=A.createElement(te,(0,y.Z)({className:ce()(!L&&Q,Re),style:(0,x.Z)((0,x.Z)({},b),Je)},V,g,{ref:le}),a);return ae&&(h=A.createElement(de.Z,{onResize:function(v){var s=v.offsetWidth;f(s)},disabled:ve},h)),h}var c=A.forwardRef($);c.displayName="Item";var ie=c,ne=i(6089),U=i(4676),Se=i(16089);function K(H){if(typeof MessageChannel=="undefined")(0,Se.Z)(H);else{var le=new MessageChannel;le.port1.onmessage=function(){return H()},le.port2.postMessage(void 0)}}function T(){var H=A.useRef(null),le=function(L){H.current||(H.current=[],K(function(){(0,U.unstable_batchedUpdates)(function(){H.current.forEach(function(W){W()}),H.current=null})})),H.current.push(L)};return le}function M(H,le){var Q=A.useState(le),L=(0,Z.Z)(Q,2),W=L[0],q=L[1],ae=(0,ne.Z)(function(ve){H(function(){q(ve)})});return[W,ae]}var u=A.createContext(null),C=["component"],N=["className"],k=["className"],w=function(le,Q){var L=A.useContext(u);if(!L){var W=le.component,q=W===void 0?"div":W,ae=(0,J.Z)(le,C);return A.createElement(q,(0,y.Z)({},ae,{ref:Q}))}var ve=L.className,Ae=(0,J.Z)(L,N),Pe=le.className,Re=(0,J.Z)(le,k);return A.createElement(u.Provider,{value:null},A.createElement(ie,(0,y.Z)({ref:Q,className:ce()(ve,Pe)},Ae,Re)))},re=A.forwardRef(w);re.displayName="RawItem";var Y=re,fe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],D="responsive",be="invalidate";function R(H){return"+ ".concat(H.length," ...")}function P(H,le){var Q=H.prefixCls,L=Q===void 0?"rc-overflow":Q,W=H.data,q=W===void 0?[]:W,ae=H.renderItem,ve=H.renderRawItem,Ae=H.itemKey,Pe=H.itemWidth,Re=Pe===void 0?10:Pe,Je=H.ssr,ke=H.style,Ze=H.className,Ve=H.maxCount,We=H.renderRest,te=H.renderRawRest,g=H.suffix,_=H.component,f=_===void 0?"div":_,a=H.itemComponent,b=H.onVisibleChange,V=(0,J.Z)(H,fe),h=Je==="full",l=T(),v=M(l,null),s=(0,Z.Z)(v,2),d=s[0],E=s[1],I=d||0,z=M(l,new Map),ee=(0,Z.Z)(z,2),oe=ee[0],Ee=ee[1],F=M(l,0),Ce=(0,Z.Z)(F,2),Le=Ce[0],X=Ce[1],je=M(l,0),Be=(0,Z.Z)(je,2),Ke=Be[0],ze=Be[1],it=M(l,0),ut=(0,Z.Z)(it,2),dt=ut[0],tt=ut[1],gt=(0,A.useState)(null),Xe=(0,Z.Z)(gt,2),Ne=Xe[0],ct=Xe[1],ft=(0,A.useState)(null),_t=(0,Z.Z)(ft,2),Rt=_t[0],It=_t[1],Ct=A.useMemo(function(){return Rt===null&&h?Number.MAX_SAFE_INTEGER:Rt||0},[Rt,d]),Et=(0,A.useState)(!1),qe=(0,Z.Z)(Et,2),at=qe[0],He=qe[1],pe="".concat(L,"-item"),e=Math.max(Le,Ke),t=Ve===D,n=q.length&&t,r=Ve===be,o=n||typeof Ve=="number"&&q.length>Ve,S=(0,A.useMemo)(function(){var Ge=q;return n?d===null&&h?Ge=q:Ge=q.slice(0,Math.min(q.length,I/Re)):typeof Ve=="number"&&(Ge=q.slice(0,Ve)),Ge},[q,Re,d,Ve,n]),O=(0,A.useMemo)(function(){return n?q.slice(Ct+1):q.slice(S.length)},[q,S,n,Ct]),we=(0,A.useCallback)(function(Ge,j){var G;return typeof Ae=="function"?Ae(Ge):(G=Ae&&(Ge==null?void 0:Ge[Ae]))!==null&&G!==void 0?G:j},[Ae]),_e=(0,A.useCallback)(ae||function(Ge){return Ge},[ae]);function Oe(Ge,j,G){Rt===Ge&&(j===void 0||j===Ne)||(It(Ge),G||(He(Ge<q.length-1),b==null||b(Ge)),j!==void 0&&ct(j))}function et(Ge,j){E(j.clientWidth)}function ot(Ge,j){Ee(function(G){var he=new Map(G);return j===null?he.delete(Ge):he.set(Ge,j),he})}function Fe(Ge,j){ze(j),X(Ke)}function mt(Ge,j){tt(j)}function Ue(Ge){return oe.get(we(S[Ge],Ge))}(0,se.Z)(function(){if(I&&typeof e=="number"&&S){var Ge=dt,j=S.length,G=j-1;if(!j){Oe(0,null);return}for(var he=0;he<j;he+=1){var Ie=Ue(he);if(h&&(Ie=Ie||0),Ie===void 0){Oe(he-1,void 0,!0);break}if(Ge+=Ie,G===0&&Ge<=I||he===G-1&&Ge+Ue(G)<=I){Oe(G,null);break}else if(Ge+e>I){Oe(he-1,Ge-Ie-dt+Ke);break}}g&&Ue(0)+dt>I&&ct(null)}},[I,oe,Ke,dt,we,S]);var xe=at&&!!O.length,Me={};Ne!==null&&n&&(Me={position:"absolute",left:Ne,top:0});var Qe={prefixCls:pe,responsive:n,component:a,invalidate:r},nt=ve?function(Ge,j){var G=we(Ge,j);return A.createElement(u.Provider,{key:G,value:(0,x.Z)((0,x.Z)({},Qe),{},{order:j,item:Ge,itemKey:G,registerSize:ot,display:j<=Ct})},ve(Ge,j))}:function(Ge,j){var G=we(Ge,j);return A.createElement(ie,(0,y.Z)({},Qe,{order:j,key:G,item:Ge,renderItem:_e,itemKey:G,registerSize:ot,display:j<=Ct}))},ht={order:xe?Ct:Number.MAX_SAFE_INTEGER,className:"".concat(pe,"-rest"),registerSize:Fe,display:xe},$t=We||R,wt=te?A.createElement(u.Provider,{value:(0,x.Z)((0,x.Z)({},Qe),ht)},te(O)):A.createElement(ie,(0,y.Z)({},Qe,ht),typeof $t=="function"?$t(O):$t),Ye=A.createElement(f,(0,y.Z)({className:ce()(!r&&L,Ze),style:ke,ref:le},V),S.map(nt),o?wt:null,g&&A.createElement(ie,(0,y.Z)({},Qe,{responsive:t,responsiveDisabled:!n,order:Ct,className:"".concat(pe,"-suffix"),registerSize:mt,display:!0,style:Me}),g));return t?A.createElement(de.Z,{onResize:et,disabled:!n},Ye):Ye}var p=A.forwardRef(P);p.displayName="Overflow",p.Item=Y,p.RESPONSIVE=D,p.INVALIDATE=be;var B=p,me=B},39417:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return w}});var y=i(16378),x=i(78772),Z=i(61206),J=i(35227),A=i(44202),m=i(86773),ce=i(93002),de=i(82412),se=i(60845),ye=i(92310),ue=i.n(ye),$=i(26112),c=i(59301),ie=i(39378),ne=function(Y){for(var fe=Y.prefixCls,D=Y.level,be=Y.isStart,R=Y.isEnd,P="".concat(fe,"-indent-unit"),p=[],B=0;B<D;B+=1){var me;p.push(c.createElement("span",{key:B,className:ue()(P,(me={},(0,x.Z)(me,"".concat(P,"-start"),be[B]),(0,x.Z)(me,"".concat(P,"-end"),R[B]),me))}))}return c.createElement("span",{"aria-hidden":"true",className:"".concat(fe,"-indent")},p)},U=c.memo(ne),Se=i(67841),K=i(71430),T=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],M="open",u="close",C="---",N=function(re){(0,de.Z)(fe,re);var Y=(0,se.Z)(fe);function fe(){var D;(0,A.Z)(this,fe);for(var be=arguments.length,R=new Array(be),P=0;P<be;P++)R[P]=arguments[P];return D=Y.call.apply(Y,[this].concat(R)),D.state={dragNodeHighlight:!1},D.selectHandle=void 0,D.cacheIndent=void 0,D.onSelectorClick=function(p){var B=D.props.context.onNodeClick;B(p,(0,K.F)(D.props)),D.isSelectable()?D.onSelect(p):D.onCheck(p)},D.onSelectorDoubleClick=function(p){var B=D.props.context.onNodeDoubleClick;B(p,(0,K.F)(D.props))},D.onSelect=function(p){if(!D.isDisabled()){var B=D.props.context.onNodeSelect;B(p,(0,K.F)(D.props))}},D.onCheck=function(p){if(!D.isDisabled()){var B=D.props,me=B.disableCheckbox,H=B.checked,le=D.props.context.onNodeCheck;if(!(!D.isCheckable()||me)){var Q=!H;le(p,(0,K.F)(D.props),Q)}}},D.onMouseEnter=function(p){var B=D.props.context.onNodeMouseEnter;B(p,(0,K.F)(D.props))},D.onMouseLeave=function(p){var B=D.props.context.onNodeMouseLeave;B(p,(0,K.F)(D.props))},D.onContextMenu=function(p){var B=D.props.context.onNodeContextMenu;B(p,(0,K.F)(D.props))},D.onDragStart=function(p){var B=D.props.context.onNodeDragStart;p.stopPropagation(),D.setState({dragNodeHighlight:!0}),B(p,(0,ce.Z)(D));try{p.dataTransfer.setData("text/plain","")}catch(me){}},D.onDragEnter=function(p){var B=D.props.context.onNodeDragEnter;p.preventDefault(),p.stopPropagation(),B(p,(0,ce.Z)(D))},D.onDragOver=function(p){var B=D.props.context.onNodeDragOver;p.preventDefault(),p.stopPropagation(),B(p,(0,ce.Z)(D))},D.onDragLeave=function(p){var B=D.props.context.onNodeDragLeave;p.stopPropagation(),B(p,(0,ce.Z)(D))},D.onDragEnd=function(p){var B=D.props.context.onNodeDragEnd;p.stopPropagation(),D.setState({dragNodeHighlight:!1}),B(p,(0,ce.Z)(D))},D.onDrop=function(p){var B=D.props.context.onNodeDrop;p.preventDefault(),p.stopPropagation(),D.setState({dragNodeHighlight:!1}),B(p,(0,ce.Z)(D))},D.onExpand=function(p){var B=D.props,me=B.loading,H=B.context.onNodeExpand;me||H(p,(0,K.F)(D.props))},D.setSelectHandle=function(p){D.selectHandle=p},D.getNodeState=function(){var p=D.props.expanded;return D.isLeaf()?null:p?M:u},D.hasChildren=function(){var p=D.props.eventKey,B=D.props.context.keyEntities,me=(0,Se.Z)(B,p)||{},H=me.children;return!!(H||[]).length},D.isLeaf=function(){var p=D.props,B=p.isLeaf,me=p.loaded,H=D.props.context.loadData,le=D.hasChildren();return B===!1?!1:B||!H&&!le||H&&me&&!le},D.isDisabled=function(){var p=D.props.disabled,B=D.props.context.disabled;return!!(B||p)},D.isCheckable=function(){var p=D.props.checkable,B=D.props.context.checkable;return!B||p===!1?!1:B},D.syncLoadData=function(p){var B=p.expanded,me=p.loading,H=p.loaded,le=D.props.context,Q=le.loadData,L=le.onNodeLoad;me||Q&&B&&!D.isLeaf()&&!D.hasChildren()&&!H&&L((0,K.F)(D.props))},D.isDraggable=function(){var p=D.props,B=p.data,me=p.context.draggable;return!!(me&&(!me.nodeDraggable||me.nodeDraggable(B)))},D.renderDragHandler=function(){var p=D.props.context,B=p.draggable,me=p.prefixCls;return B!=null&&B.icon?c.createElement("span",{className:"".concat(me,"-draggable-icon")},B.icon):null},D.renderSwitcherIconDom=function(p){var B=D.props.switcherIcon,me=D.props.context.switcherIcon,H=B||me;return typeof H=="function"?H((0,J.Z)((0,J.Z)({},D.props),{},{isLeaf:p})):H},D.renderSwitcher=function(){var p=D.props.expanded,B=D.props.context.prefixCls;if(D.isLeaf()){var me=D.renderSwitcherIconDom(!0);return me!==!1?c.createElement("span",{className:ue()("".concat(B,"-switcher"),"".concat(B,"-switcher-noop"))},me):null}var H=ue()("".concat(B,"-switcher"),"".concat(B,"-switcher_").concat(p?M:u)),le=D.renderSwitcherIconDom(!1);return le!==!1?c.createElement("span",{onClick:D.onExpand,className:H},le):null},D.renderCheckbox=function(){var p=D.props,B=p.checked,me=p.halfChecked,H=p.disableCheckbox,le=D.props.context.prefixCls,Q=D.isDisabled(),L=D.isCheckable();if(!L)return null;var W=typeof L!="boolean"?L:null;return c.createElement("span",{className:ue()("".concat(le,"-checkbox"),B&&"".concat(le,"-checkbox-checked"),!B&&me&&"".concat(le,"-checkbox-indeterminate"),(Q||H)&&"".concat(le,"-checkbox-disabled")),onClick:D.onCheck},W)},D.renderIcon=function(){var p=D.props.loading,B=D.props.context.prefixCls;return c.createElement("span",{className:ue()("".concat(B,"-iconEle"),"".concat(B,"-icon__").concat(D.getNodeState()||"docu"),p&&"".concat(B,"-icon_loading"))})},D.renderSelector=function(){var p=D.state.dragNodeHighlight,B=D.props,me=B.title,H=me===void 0?C:me,le=B.selected,Q=B.icon,L=B.loading,W=B.data,q=D.props.context,ae=q.prefixCls,ve=q.showIcon,Ae=q.icon,Pe=q.loadData,Re=q.titleRender,Je=D.isDisabled(),ke="".concat(ae,"-node-content-wrapper"),Ze;if(ve){var Ve=Q||Ae;Ze=Ve?c.createElement("span",{className:ue()("".concat(ae,"-iconEle"),"".concat(ae,"-icon__customize"))},typeof Ve=="function"?Ve(D.props):Ve):D.renderIcon()}else Pe&&L&&(Ze=D.renderIcon());var We;typeof H=="function"?We=H(W):Re?We=Re(W):We=H;var te=c.createElement("span",{className:"".concat(ae,"-title")},We);return c.createElement("span",{ref:D.setSelectHandle,title:typeof H=="string"?H:"",className:ue()("".concat(ke),"".concat(ke,"-").concat(D.getNodeState()||"normal"),!Je&&(le||p)&&"".concat(ae,"-node-selected")),onMouseEnter:D.onMouseEnter,onMouseLeave:D.onMouseLeave,onContextMenu:D.onContextMenu,onClick:D.onSelectorClick,onDoubleClick:D.onSelectorDoubleClick},Ze,te,D.renderDropIndicator())},D.renderDropIndicator=function(){var p=D.props,B=p.disabled,me=p.eventKey,H=D.props.context,le=H.draggable,Q=H.dropLevelOffset,L=H.dropPosition,W=H.prefixCls,q=H.indent,ae=H.dropIndicatorRender,ve=H.dragOverNodeKey,Ae=H.direction,Pe=!!le,Re=!B&&Pe&&ve===me,Je=q!=null?q:D.cacheIndent;return D.cacheIndent=q,Re?ae({dropPosition:L,dropLevelOffset:Q,indent:Je,prefixCls:W,direction:Ae}):null},D}return(0,m.Z)(fe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var be=this.props.selectable,R=this.props.context.selectable;return typeof be=="boolean"?be:R}},{key:"render",value:function(){var be,R=this.props,P=R.eventKey,p=R.className,B=R.style,me=R.dragOver,H=R.dragOverGapTop,le=R.dragOverGapBottom,Q=R.isLeaf,L=R.isStart,W=R.isEnd,q=R.expanded,ae=R.selected,ve=R.checked,Ae=R.halfChecked,Pe=R.loading,Re=R.domRef,Je=R.active,ke=R.data,Ze=R.onMouseMove,Ve=R.selectable,We=(0,Z.Z)(R,T),te=this.props.context,g=te.prefixCls,_=te.filterTreeNode,f=te.keyEntities,a=te.dropContainerKey,b=te.dropTargetKey,V=te.draggingNodeKey,h=this.isDisabled(),l=(0,$.Z)(We,{aria:!0,data:!0}),v=(0,Se.Z)(f,P)||{},s=v.level,d=W[W.length-1],E=this.isDraggable(),I=!h&&E,z=V===P,ee=Ve!==void 0?{"aria-selected":!!Ve}:void 0;return c.createElement("div",(0,y.Z)({ref:Re,className:ue()(p,"".concat(g,"-treenode"),(be={},(0,x.Z)(be,"".concat(g,"-treenode-disabled"),h),(0,x.Z)(be,"".concat(g,"-treenode-switcher-").concat(q?"open":"close"),!Q),(0,x.Z)(be,"".concat(g,"-treenode-checkbox-checked"),ve),(0,x.Z)(be,"".concat(g,"-treenode-checkbox-indeterminate"),Ae),(0,x.Z)(be,"".concat(g,"-treenode-selected"),ae),(0,x.Z)(be,"".concat(g,"-treenode-loading"),Pe),(0,x.Z)(be,"".concat(g,"-treenode-active"),Je),(0,x.Z)(be,"".concat(g,"-treenode-leaf-last"),d),(0,x.Z)(be,"".concat(g,"-treenode-draggable"),E),(0,x.Z)(be,"dragging",z),(0,x.Z)(be,"drop-target",b===P),(0,x.Z)(be,"drop-container",a===P),(0,x.Z)(be,"drag-over",!h&&me),(0,x.Z)(be,"drag-over-gap-top",!h&&H),(0,x.Z)(be,"drag-over-gap-bottom",!h&&le),(0,x.Z)(be,"filter-node",_&&_((0,K.F)(this.props))),be)),style:B,draggable:I,"aria-grabbed":z,onDragStart:I?this.onDragStart:void 0,onDragEnter:E?this.onDragEnter:void 0,onDragOver:E?this.onDragOver:void 0,onDragLeave:E?this.onDragLeave:void 0,onDrop:E?this.onDrop:void 0,onDragEnd:E?this.onDragEnd:void 0,onMouseMove:Ze},ee,l),c.createElement(U,{prefixCls:g,level:s,isStart:L,isEnd:W}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),fe}(c.Component),k=function(Y){return c.createElement(ie.k.Consumer,null,function(fe){return c.createElement(N,(0,y.Z)({},Y,{context:fe}))})};k.displayName="TreeNode",k.isTreeNode=1;var w=k},39378:function(pt,Te,i){"use strict";i.d(Te,{k:function(){return x}});var y=i(59301),x=y.createContext(null)},48039:function(pt,Te,i){"use strict";i.d(Te,{O:function(){return w.Z},Z:function(){return te}});var y=i(16378),x=i(78772),Z=i(42066),J=i(35227),A=i(65093),m=i(44202),ce=i(86773),de=i(93002),se=i(82412),ye=i(60845),ue=i(92310),$=i.n(ue),c=i(10228),ie=i(26112),ne=i(48736),U=i(59301),Se=i(39378);function K(g){var _=g.dropPosition,f=g.dropLevelOffset,a=g.indent,b={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(_){case-1:b.top=0,b.left=-f*a;break;case 1:b.bottom=0,b.left=-f*a;break;case 0:b.bottom=0,b.left=a;break}return U.createElement("div",{style:b})}function T(g){if(g==null)throw new TypeError("Cannot destructure "+g)}var M=i(10859),u=i(61206),C=i(34280),N=i(50030),k=i(77900),w=i(39417);function re(g,_){var f=U.useState(!1),a=(0,M.Z)(f,2),b=a[0],V=a[1];U.useLayoutEffect(function(){if(b)return g(),function(){_()}},[b]),U.useLayoutEffect(function(){return V(!0),function(){V(!1)}},[])}var Y=i(71430),fe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],D=function(_,f){var a=_.className,b=_.style,V=_.motion,h=_.motionNodes,l=_.motionType,v=_.onMotionStart,s=_.onMotionEnd,d=_.active,E=_.treeNodeRequiredProps,I=(0,u.Z)(_,fe),z=U.useState(!0),ee=(0,M.Z)(z,2),oe=ee[0],Ee=ee[1],F=U.useContext(Se.k),Ce=F.prefixCls,Le=h&&l!=="hide";(0,C.Z)(function(){h&&Le!==oe&&Ee(Le)},[h]);var X=function(){h&&v()},je=U.useRef(!1),Be=function(){h&&!je.current&&(je.current=!0,s())};re(X,Be);var Ke=function(it){Le===it&&Be()};return h?U.createElement(k.default,(0,y.Z)({ref:f,visible:oe},V,{motionAppear:l==="show",onVisibleChanged:Ke}),function(ze,it){var ut=ze.className,dt=ze.style;return U.createElement("div",{ref:it,className:$()("".concat(Ce,"-treenode-motion"),ut),style:dt},h.map(function(tt){var gt=(0,y.Z)({},(T(tt.data),tt.data)),Xe=tt.title,Ne=tt.key,ct=tt.isStart,ft=tt.isEnd;delete gt.children;var _t=(0,Y.H8)(Ne,E);return U.createElement(w.Z,(0,y.Z)({},gt,_t,{title:Xe,active:d,data:tt.data,key:Ne,isStart:ct,isEnd:ft}))}))}):U.createElement(w.Z,(0,y.Z)({domRef:f,className:a,style:b},I,{active:d}))};D.displayName="MotionTreeNode";var be=U.forwardRef(D),R=be;function P(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=g.length,a=_.length;if(Math.abs(f-a)!==1)return{add:!1,key:null};function b(V,h){var l=new Map;V.forEach(function(s){l.set(s,!0)});var v=h.filter(function(s){return!l.has(s)});return v.length===1?v[0]:null}return f<a?{add:!0,key:b(g,_)}:{add:!1,key:b(_,g)}}function p(g,_,f){var a=g.findIndex(function(l){return l.key===f}),b=g[a+1],V=_.findIndex(function(l){return l.key===f});if(b){var h=_.findIndex(function(l){return l.key===b.key});return _.slice(V+1,h)}return _.slice(V+1)}var B=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],me={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},H=function(){},le="RC_TREE_MOTION_".concat(Math.random()),Q={key:le},L={key:le,level:0,index:0,pos:"0",node:Q,nodes:[Q]},W={parent:null,children:[],pos:L.pos,data:Q,title:null,key:le,isStart:[],isEnd:[]};function q(g,_,f,a){return _===!1||!f?g:g.slice(0,Math.ceil(f/a)+1)}function ae(g){var _=g.key,f=g.pos;return(0,Y.km)(_,f)}function ve(g){for(var _=String(g.data.key),f=g;f.parent;)f=f.parent,_="".concat(f.data.key," > ").concat(_);return _}var Ae=U.forwardRef(function(g,_){var f=g.prefixCls,a=g.data,b=g.selectable,V=g.checkable,h=g.expandedKeys,l=g.selectedKeys,v=g.checkedKeys,s=g.loadedKeys,d=g.loadingKeys,E=g.halfCheckedKeys,I=g.keyEntities,z=g.disabled,ee=g.dragging,oe=g.dragOverNodeKey,Ee=g.dropPosition,F=g.motion,Ce=g.height,Le=g.itemHeight,X=g.virtual,je=g.focusable,Be=g.activeItem,Ke=g.focused,ze=g.tabIndex,it=g.onKeyDown,ut=g.onFocus,dt=g.onBlur,tt=g.onActiveChange,gt=g.onListChangeStart,Xe=g.onListChangeEnd,Ne=(0,u.Z)(g,B),ct=U.useRef(null),ft=U.useRef(null);U.useImperativeHandle(_,function(){return{scrollTo:function(Me){ct.current.scrollTo(Me)},getIndentWidth:function(){return ft.current.offsetWidth}}});var _t=U.useState(h),Rt=(0,M.Z)(_t,2),It=Rt[0],Ct=Rt[1],Et=U.useState(a),qe=(0,M.Z)(Et,2),at=qe[0],He=qe[1],pe=U.useState(a),e=(0,M.Z)(pe,2),t=e[0],n=e[1],r=U.useState([]),o=(0,M.Z)(r,2),S=o[0],O=o[1],we=U.useState(null),_e=(0,M.Z)(we,2),Oe=_e[0],et=_e[1],ot=U.useRef(a);ot.current=a;function Fe(){var xe=ot.current;He(xe),n(xe),O([]),et(null),Xe()}(0,C.Z)(function(){Ct(h);var xe=P(It,h);if(xe.key!==null)if(xe.add){var Me=at.findIndex(function(Ye){var Ge=Ye.key;return Ge===xe.key}),Qe=q(p(at,a,xe.key),X,Ce,Le),nt=at.slice();nt.splice(Me+1,0,W),n(nt),O(Qe),et("show")}else{var ht=a.findIndex(function(Ye){var Ge=Ye.key;return Ge===xe.key}),$t=q(p(a,at,xe.key),X,Ce,Le),wt=a.slice();wt.splice(ht+1,0,W),n(wt),O($t),et("hide")}else at!==a&&(He(a),n(a))},[h,a]),U.useEffect(function(){ee||Fe()},[ee]);var mt=F?t:a,Ue={expandedKeys:h,selectedKeys:l,loadedKeys:s,loadingKeys:d,checkedKeys:v,halfCheckedKeys:E,dragOverNodeKey:oe,dropPosition:Ee,keyEntities:I};return U.createElement(U.Fragment,null,Ke&&Be&&U.createElement("span",{style:me,"aria-live":"assertive"},ve(Be)),U.createElement("div",null,U.createElement("input",{style:me,disabled:je===!1||z,tabIndex:je!==!1?ze:null,onKeyDown:it,onFocus:ut,onBlur:dt,value:"",onChange:H,"aria-label":"for screen reader"})),U.createElement("div",{className:"".concat(f,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},U.createElement("div",{className:"".concat(f,"-indent")},U.createElement("div",{ref:ft,className:"".concat(f,"-indent-unit")}))),U.createElement(N.Z,(0,y.Z)({},Ne,{data:mt,itemKey:ae,height:Ce,fullHeight:!1,virtual:X,itemHeight:Le,prefixCls:"".concat(f,"-list"),ref:ct,onVisibleChange:function(Me,Qe){var nt=new Set(Me),ht=Qe.filter(function($t){return!nt.has($t)});ht.some(function($t){return ae($t)===le})&&Fe()}}),function(xe){var Me=xe.pos,Qe=(0,y.Z)({},(T(xe.data),xe.data)),nt=xe.title,ht=xe.key,$t=xe.isStart,wt=xe.isEnd,Ye=(0,Y.km)(ht,Me);delete Qe.key,delete Qe.children;var Ge=(0,Y.H8)(Ye,Ue);return U.createElement(R,(0,y.Z)({},Qe,Ge,{title:nt,active:!!Be&&ht===Be.key,pos:Me,data:xe.data,isStart:$t,isEnd:wt,motion:F,motionNodes:ht===le?S:null,motionType:Oe,onMotionStart:gt,onMotionEnd:Fe,treeNodeRequiredProps:Ue,onMouseMove:function(){tt(null)}}))}))});Ae.displayName="NodeList";var Pe=Ae,Re=i(35654),Je=i(90782),ke=i(67841),Ze=10,Ve=function(g){(0,se.Z)(f,g);var _=(0,ye.Z)(f);function f(){var a;(0,m.Z)(this,f);for(var b=arguments.length,V=new Array(b),h=0;h<b;h++)V[h]=arguments[h];return a=_.call.apply(_,[this].concat(V)),a.destroyed=!1,a.delayedDragEnterLogic=void 0,a.loadingRetryTimes={},a.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Y.w$)()},a.dragStartMousePosition=null,a.dragNode=void 0,a.currentMouseOverDroppableNodeKey=null,a.listRef=U.createRef(),a.onNodeDragStart=function(l,v){var s=a.state,d=s.expandedKeys,E=s.keyEntities,I=a.props.onDragStart,z=v.props.eventKey;a.dragNode=v,a.dragStartMousePosition={x:l.clientX,y:l.clientY};var ee=(0,Re._5)(d,z);a.setState({draggingNodeKey:z,dragChildrenKeys:(0,Re.wA)(z,E),indent:a.listRef.current.getIndentWidth()}),a.setExpandedKeys(ee),window.addEventListener("dragend",a.onWindowDragEnd),I==null||I({event:l,node:(0,Y.F)(v.props)})},a.onNodeDragEnter=function(l,v){var s=a.state,d=s.expandedKeys,E=s.keyEntities,I=s.dragChildrenKeys,z=s.flattenNodes,ee=s.indent,oe=a.props,Ee=oe.onDragEnter,F=oe.onExpand,Ce=oe.allowDrop,Le=oe.direction,X=v.props,je=X.pos,Be=X.eventKey,Ke=(0,de.Z)(a),ze=Ke.dragNode;if(a.currentMouseOverDroppableNodeKey!==Be&&(a.currentMouseOverDroppableNodeKey=Be),!ze){a.resetDragState();return}var it=(0,Re.OM)(l,ze,v,ee,a.dragStartMousePosition,Ce,z,E,d,Le),ut=it.dropPosition,dt=it.dropLevelOffset,tt=it.dropTargetKey,gt=it.dropContainerKey,Xe=it.dropTargetPos,Ne=it.dropAllowed,ct=it.dragOverNodeKey;if(I.indexOf(tt)!==-1||!Ne){a.resetDragState();return}if(a.delayedDragEnterLogic||(a.delayedDragEnterLogic={}),Object.keys(a.delayedDragEnterLogic).forEach(function(ft){clearTimeout(a.delayedDragEnterLogic[ft])}),ze.props.eventKey!==v.props.eventKey&&(l.persist(),a.delayedDragEnterLogic[je]=window.setTimeout(function(){if(a.state.draggingNodeKey!==null){var ft=(0,A.Z)(d),_t=(0,ke.Z)(E,v.props.eventKey);_t&&(_t.children||[]).length&&(ft=(0,Re.L0)(d,v.props.eventKey)),"expandedKeys"in a.props||a.setExpandedKeys(ft),F==null||F(ft,{node:(0,Y.F)(v.props),expanded:!0,nativeEvent:l.nativeEvent})}},800)),ze.props.eventKey===tt&&dt===0){a.resetDragState();return}a.setState({dragOverNodeKey:ct,dropPosition:ut,dropLevelOffset:dt,dropTargetKey:tt,dropContainerKey:gt,dropTargetPos:Xe,dropAllowed:Ne}),Ee==null||Ee({event:l,node:(0,Y.F)(v.props),expandedKeys:d})},a.onNodeDragOver=function(l,v){var s=a.state,d=s.dragChildrenKeys,E=s.flattenNodes,I=s.keyEntities,z=s.expandedKeys,ee=s.indent,oe=a.props,Ee=oe.onDragOver,F=oe.allowDrop,Ce=oe.direction,Le=(0,de.Z)(a),X=Le.dragNode;if(X){var je=(0,Re.OM)(l,X,v,ee,a.dragStartMousePosition,F,E,I,z,Ce),Be=je.dropPosition,Ke=je.dropLevelOffset,ze=je.dropTargetKey,it=je.dropContainerKey,ut=je.dropAllowed,dt=je.dropTargetPos,tt=je.dragOverNodeKey;d.indexOf(ze)!==-1||!ut||(X.props.eventKey===ze&&Ke===0?a.state.dropPosition===null&&a.state.dropLevelOffset===null&&a.state.dropTargetKey===null&&a.state.dropContainerKey===null&&a.state.dropTargetPos===null&&a.state.dropAllowed===!1&&a.state.dragOverNodeKey===null||a.resetDragState():Be===a.state.dropPosition&&Ke===a.state.dropLevelOffset&&ze===a.state.dropTargetKey&&it===a.state.dropContainerKey&&dt===a.state.dropTargetPos&&ut===a.state.dropAllowed&&tt===a.state.dragOverNodeKey||a.setState({dropPosition:Be,dropLevelOffset:Ke,dropTargetKey:ze,dropContainerKey:it,dropTargetPos:dt,dropAllowed:ut,dragOverNodeKey:tt}),Ee==null||Ee({event:l,node:(0,Y.F)(v.props)}))}},a.onNodeDragLeave=function(l,v){a.currentMouseOverDroppableNodeKey===v.props.eventKey&&!l.currentTarget.contains(l.relatedTarget)&&(a.resetDragState(),a.currentMouseOverDroppableNodeKey=null);var s=a.props.onDragLeave;s==null||s({event:l,node:(0,Y.F)(v.props)})},a.onWindowDragEnd=function(l){a.onNodeDragEnd(l,null,!0),window.removeEventListener("dragend",a.onWindowDragEnd)},a.onNodeDragEnd=function(l,v){var s=a.props.onDragEnd;a.setState({dragOverNodeKey:null}),a.cleanDragState(),s==null||s({event:l,node:(0,Y.F)(v.props)}),a.dragNode=null,window.removeEventListener("dragend",a.onWindowDragEnd)},a.onNodeDrop=function(l,v){var s,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,E=a.state,I=E.dragChildrenKeys,z=E.dropPosition,ee=E.dropTargetKey,oe=E.dropTargetPos,Ee=E.dropAllowed;if(Ee){var F=a.props.onDrop;if(a.setState({dragOverNodeKey:null}),a.cleanDragState(),ee!==null){var Ce=(0,J.Z)((0,J.Z)({},(0,Y.H8)(ee,a.getTreeNodeRequiredProps())),{},{active:((s=a.getActiveItem())===null||s===void 0?void 0:s.key)===ee,data:(0,ke.Z)(a.state.keyEntities,ee).node}),Le=I.indexOf(ee)!==-1;(0,ne.ZP)(!Le,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var X=(0,Re.yx)(oe),je={event:l,node:(0,Y.F)(Ce),dragNode:a.dragNode?(0,Y.F)(a.dragNode.props):null,dragNodesKeys:[a.dragNode.props.eventKey].concat(I),dropToGap:z!==0,dropPosition:z+Number(X[X.length-1])};d||F==null||F(je),a.dragNode=null}}},a.cleanDragState=function(){var l=a.state.draggingNodeKey;l!==null&&a.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),a.dragStartMousePosition=null,a.currentMouseOverDroppableNodeKey=null},a.triggerExpandActionExpand=function(l,v){var s=a.state,d=s.expandedKeys,E=s.flattenNodes,I=v.expanded,z=v.key,ee=v.isLeaf;if(!(ee||l.shiftKey||l.metaKey||l.ctrlKey)){var oe=E.filter(function(F){return F.key===z})[0],Ee=(0,Y.F)((0,J.Z)((0,J.Z)({},(0,Y.H8)(z,a.getTreeNodeRequiredProps())),{},{data:oe.data}));a.setExpandedKeys(I?(0,Re._5)(d,z):(0,Re.L0)(d,z)),a.onNodeExpand(l,Ee)}},a.onNodeClick=function(l,v){var s=a.props,d=s.onClick,E=s.expandAction;E==="click"&&a.triggerExpandActionExpand(l,v),d==null||d(l,v)},a.onNodeDoubleClick=function(l,v){var s=a.props,d=s.onDoubleClick,E=s.expandAction;E==="doubleClick"&&a.triggerExpandActionExpand(l,v),d==null||d(l,v)},a.onNodeSelect=function(l,v){var s=a.state.selectedKeys,d=a.state,E=d.keyEntities,I=d.fieldNames,z=a.props,ee=z.onSelect,oe=z.multiple,Ee=v.selected,F=v[I.key],Ce=!Ee;Ce?oe?s=(0,Re.L0)(s,F):s=[F]:s=(0,Re._5)(s,F);var Le=s.map(function(X){var je=(0,ke.Z)(E,X);return je?je.node:null}).filter(function(X){return X});a.setUncontrolledState({selectedKeys:s}),ee==null||ee(s,{event:"select",selected:Ce,node:v,selectedNodes:Le,nativeEvent:l.nativeEvent})},a.onNodeCheck=function(l,v,s){var d=a.state,E=d.keyEntities,I=d.checkedKeys,z=d.halfCheckedKeys,ee=a.props,oe=ee.checkStrictly,Ee=ee.onCheck,F=v.key,Ce,Le={event:"check",node:v,checked:s,nativeEvent:l.nativeEvent};if(oe){var X=s?(0,Re.L0)(I,F):(0,Re._5)(I,F),je=(0,Re._5)(z,F);Ce={checked:X,halfChecked:je},Le.checkedNodes=X.map(function(dt){return(0,ke.Z)(E,dt)}).filter(function(dt){return dt}).map(function(dt){return dt.node}),a.setUncontrolledState({checkedKeys:X})}else{var Be=(0,Je.S)([].concat((0,A.Z)(I),[F]),!0,E),Ke=Be.checkedKeys,ze=Be.halfCheckedKeys;if(!s){var it=new Set(Ke);it.delete(F);var ut=(0,Je.S)(Array.from(it),{checked:!1,halfCheckedKeys:ze},E);Ke=ut.checkedKeys,ze=ut.halfCheckedKeys}Ce=Ke,Le.checkedNodes=[],Le.checkedNodesPositions=[],Le.halfCheckedKeys=ze,Ke.forEach(function(dt){var tt=(0,ke.Z)(E,dt);if(tt){var gt=tt.node,Xe=tt.pos;Le.checkedNodes.push(gt),Le.checkedNodesPositions.push({node:gt,pos:Xe})}}),a.setUncontrolledState({checkedKeys:Ke},!1,{halfCheckedKeys:ze})}Ee==null||Ee(Ce,Le)},a.onNodeLoad=function(l){var v=l.key,s=new Promise(function(d,E){a.setState(function(I){var z=I.loadedKeys,ee=z===void 0?[]:z,oe=I.loadingKeys,Ee=oe===void 0?[]:oe,F=a.props,Ce=F.loadData,Le=F.onLoad;if(!Ce||ee.indexOf(v)!==-1||Ee.indexOf(v)!==-1)return null;var X=Ce(l);return X.then(function(){var je=a.state.loadedKeys,Be=(0,Re.L0)(je,v);Le==null||Le(Be,{event:"load",node:l}),a.setUncontrolledState({loadedKeys:Be}),a.setState(function(Ke){return{loadingKeys:(0,Re._5)(Ke.loadingKeys,v)}}),d()}).catch(function(je){if(a.setState(function(Ke){return{loadingKeys:(0,Re._5)(Ke.loadingKeys,v)}}),a.loadingRetryTimes[v]=(a.loadingRetryTimes[v]||0)+1,a.loadingRetryTimes[v]>=Ze){var Be=a.state.loadedKeys;(0,ne.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),a.setUncontrolledState({loadedKeys:(0,Re.L0)(Be,v)}),d()}E(je)}),{loadingKeys:(0,Re.L0)(Ee,v)}})});return s.catch(function(){}),s},a.onNodeMouseEnter=function(l,v){var s=a.props.onMouseEnter;s==null||s({event:l,node:v})},a.onNodeMouseLeave=function(l,v){var s=a.props.onMouseLeave;s==null||s({event:l,node:v})},a.onNodeContextMenu=function(l,v){var s=a.props.onRightClick;s&&(l.preventDefault(),s({event:l,node:v}))},a.onFocus=function(){var l=a.props.onFocus;a.setState({focused:!0});for(var v=arguments.length,s=new Array(v),d=0;d<v;d++)s[d]=arguments[d];l==null||l.apply(void 0,s)},a.onBlur=function(){var l=a.props.onBlur;a.setState({focused:!1}),a.onActiveChange(null);for(var v=arguments.length,s=new Array(v),d=0;d<v;d++)s[d]=arguments[d];l==null||l.apply(void 0,s)},a.getTreeNodeRequiredProps=function(){var l=a.state,v=l.expandedKeys,s=l.selectedKeys,d=l.loadedKeys,E=l.loadingKeys,I=l.checkedKeys,z=l.halfCheckedKeys,ee=l.dragOverNodeKey,oe=l.dropPosition,Ee=l.keyEntities;return{expandedKeys:v||[],selectedKeys:s||[],loadedKeys:d||[],loadingKeys:E||[],checkedKeys:I||[],halfCheckedKeys:z||[],dragOverNodeKey:ee,dropPosition:oe,keyEntities:Ee}},a.setExpandedKeys=function(l){var v=a.state,s=v.treeData,d=v.fieldNames,E=(0,Y.oH)(s,l,d);a.setUncontrolledState({expandedKeys:l,flattenNodes:E},!0)},a.onNodeExpand=function(l,v){var s=a.state.expandedKeys,d=a.state,E=d.listChanging,I=d.fieldNames,z=a.props,ee=z.onExpand,oe=z.loadData,Ee=v.expanded,F=v[I.key];if(!E){var Ce=s.indexOf(F),Le=!Ee;if((0,ne.ZP)(Ee&&Ce!==-1||!Ee&&Ce===-1,"Expand state not sync with index check"),Le?s=(0,Re.L0)(s,F):s=(0,Re._5)(s,F),a.setExpandedKeys(s),ee==null||ee(s,{node:v,expanded:Le,nativeEvent:l.nativeEvent}),Le&&oe){var X=a.onNodeLoad(v);X&&X.then(function(){var je=(0,Y.oH)(a.state.treeData,s,I);a.setUncontrolledState({flattenNodes:je})}).catch(function(){var je=a.state.expandedKeys,Be=(0,Re._5)(je,F);a.setExpandedKeys(Be)})}}},a.onListChangeStart=function(){a.setUncontrolledState({listChanging:!0})},a.onListChangeEnd=function(){setTimeout(function(){a.setUncontrolledState({listChanging:!1})})},a.onActiveChange=function(l){var v=a.state.activeKey,s=a.props.onActiveChange;v!==l&&(a.setState({activeKey:l}),l!==null&&a.scrollTo({key:l}),s==null||s(l))},a.getActiveItem=function(){var l=a.state,v=l.activeKey,s=l.flattenNodes;return v===null?null:s.find(function(d){var E=d.key;return E===v})||null},a.offsetActiveKey=function(l){var v=a.state,s=v.flattenNodes,d=v.activeKey,E=s.findIndex(function(ee){var oe=ee.key;return oe===d});E===-1&&l<0&&(E=s.length),E=(E+l+s.length)%s.length;var I=s[E];if(I){var z=I.key;a.onActiveChange(z)}else a.onActiveChange(null)},a.onKeyDown=function(l){var v=a.state,s=v.activeKey,d=v.expandedKeys,E=v.checkedKeys,I=v.fieldNames,z=a.props,ee=z.onKeyDown,oe=z.checkable,Ee=z.selectable;switch(l.which){case c.Z.UP:{a.offsetActiveKey(-1),l.preventDefault();break}case c.Z.DOWN:{a.offsetActiveKey(1),l.preventDefault();break}}var F=a.getActiveItem();if(F&&F.data){var Ce=a.getTreeNodeRequiredProps(),Le=F.data.isLeaf===!1||!!(F.data[I.children]||[]).length,X=(0,Y.F)((0,J.Z)((0,J.Z)({},(0,Y.H8)(s,Ce)),{},{data:F.data,active:!0}));switch(l.which){case c.Z.LEFT:{Le&&d.includes(s)?a.onNodeExpand({},X):F.parent&&a.onActiveChange(F.parent.key),l.preventDefault();break}case c.Z.RIGHT:{Le&&!d.includes(s)?a.onNodeExpand({},X):F.children&&F.children.length&&a.onActiveChange(F.children[0].key),l.preventDefault();break}case c.Z.ENTER:case c.Z.SPACE:{oe&&!X.disabled&&X.checkable!==!1&&!X.disableCheckbox?a.onNodeCheck({},X,!E.includes(s)):!oe&&Ee&&!X.disabled&&X.selectable!==!1&&a.onNodeSelect({},X);break}}}ee==null||ee(l)},a.setUncontrolledState=function(l){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!a.destroyed){var d=!1,E=!0,I={};Object.keys(l).forEach(function(z){if(z in a.props){E=!1;return}d=!0,I[z]=l[z]}),d&&(!v||E)&&a.setState((0,J.Z)((0,J.Z)({},I),s))}},a.scrollTo=function(l){a.listRef.current.scrollTo(l)},a}return(0,ce.Z)(f,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var b=this.props.activeKey;b!==void 0&&b!==this.state.activeKey&&(this.setState({activeKey:b}),b!==null&&this.scrollTo({key:b}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var b,V=this.state,h=V.focused,l=V.flattenNodes,v=V.keyEntities,s=V.draggingNodeKey,d=V.activeKey,E=V.dropLevelOffset,I=V.dropContainerKey,z=V.dropTargetKey,ee=V.dropPosition,oe=V.dragOverNodeKey,Ee=V.indent,F=this.props,Ce=F.prefixCls,Le=F.className,X=F.style,je=F.showLine,Be=F.focusable,Ke=F.tabIndex,ze=Ke===void 0?0:Ke,it=F.selectable,ut=F.showIcon,dt=F.icon,tt=F.switcherIcon,gt=F.draggable,Xe=F.checkable,Ne=F.checkStrictly,ct=F.disabled,ft=F.motion,_t=F.loadData,Rt=F.filterTreeNode,It=F.height,Ct=F.itemHeight,Et=F.virtual,qe=F.titleRender,at=F.dropIndicatorRender,He=F.onContextMenu,pe=F.onScroll,e=F.direction,t=F.rootClassName,n=F.rootStyle,r=(0,ie.Z)(this.props,{aria:!0,data:!0}),o;return gt&&((0,Z.Z)(gt)==="object"?o=gt:typeof gt=="function"?o={nodeDraggable:gt}:o={}),U.createElement(Se.k.Provider,{value:{prefixCls:Ce,selectable:it,showIcon:ut,icon:dt,switcherIcon:tt,draggable:o,draggingNodeKey:s,checkable:Xe,checkStrictly:Ne,disabled:ct,keyEntities:v,dropLevelOffset:E,dropContainerKey:I,dropTargetKey:z,dropPosition:ee,dragOverNodeKey:oe,indent:Ee,direction:e,dropIndicatorRender:at,loadData:_t,filterTreeNode:Rt,titleRender:qe,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},U.createElement("div",{role:"tree",className:$()(Ce,Le,t,(b={},(0,x.Z)(b,"".concat(Ce,"-show-line"),je),(0,x.Z)(b,"".concat(Ce,"-focused"),h),(0,x.Z)(b,"".concat(Ce,"-active-focused"),d!==null),b)),style:n},U.createElement(Pe,(0,y.Z)({ref:this.listRef,prefixCls:Ce,style:X,data:l,disabled:ct,selectable:it,checkable:!!Xe,motion:ft,dragging:s!==null,height:It,itemHeight:Ct,virtual:Et,focusable:Be,focused:h,tabIndex:ze,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:He,onScroll:pe},this.getTreeNodeRequiredProps(),r))))}}],[{key:"getDerivedStateFromProps",value:function(b,V){var h=V.prevProps,l={prevProps:b};function v(Be){return!h&&Be in b||h&&h[Be]!==b[Be]}var s,d=V.fieldNames;if(v("fieldNames")&&(d=(0,Y.w$)(b.fieldNames),l.fieldNames=d),v("treeData")?s=b.treeData:v("children")&&((0,ne.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),s=(0,Y.zn)(b.children)),s){l.treeData=s;var E=(0,Y.I8)(s,{fieldNames:d});l.keyEntities=(0,J.Z)((0,x.Z)({},le,L),E.keyEntities)}var I=l.keyEntities||V.keyEntities;if(v("expandedKeys")||h&&v("autoExpandParent"))l.expandedKeys=b.autoExpandParent||!h&&b.defaultExpandParent?(0,Re.r7)(b.expandedKeys,I):b.expandedKeys;else if(!h&&b.defaultExpandAll){var z=(0,J.Z)({},I);delete z[le],l.expandedKeys=Object.keys(z).map(function(Be){return z[Be].key})}else!h&&b.defaultExpandedKeys&&(l.expandedKeys=b.autoExpandParent||b.defaultExpandParent?(0,Re.r7)(b.defaultExpandedKeys,I):b.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,s||l.expandedKeys){var ee=(0,Y.oH)(s||V.treeData,l.expandedKeys||V.expandedKeys,d);l.flattenNodes=ee}if(b.selectable&&(v("selectedKeys")?l.selectedKeys=(0,Re.BT)(b.selectedKeys,b):!h&&b.defaultSelectedKeys&&(l.selectedKeys=(0,Re.BT)(b.defaultSelectedKeys,b))),b.checkable){var oe;if(v("checkedKeys")?oe=(0,Re.E6)(b.checkedKeys)||{}:!h&&b.defaultCheckedKeys?oe=(0,Re.E6)(b.defaultCheckedKeys)||{}:s&&(oe=(0,Re.E6)(b.checkedKeys)||{checkedKeys:V.checkedKeys,halfCheckedKeys:V.halfCheckedKeys}),oe){var Ee=oe,F=Ee.checkedKeys,Ce=F===void 0?[]:F,Le=Ee.halfCheckedKeys,X=Le===void 0?[]:Le;if(!b.checkStrictly){var je=(0,Je.S)(Ce,!0,I);Ce=je.checkedKeys,X=je.halfCheckedKeys}l.checkedKeys=Ce,l.halfCheckedKeys=X}}return v("loadedKeys")&&(l.loadedKeys=b.loadedKeys),l}}]),f}(U.Component);Ve.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:K,allowDrop:function(){return!0},expandAction:!1},Ve.TreeNode=w.Z;var We=Ve,te=We},35654:function(pt,Te,i){"use strict";i.d(Te,{BT:function(){return U},E6:function(){return T},L0:function(){return ye},OM:function(){return ne},_5:function(){return se},r7:function(){return M},wA:function(){return $},yx:function(){return ue}});var y=i(65093),x=i(42066),Z=i(48736),J=i(59301),A=i(39417),m=i(67841),ce=i(71430),de=null;function se(u,C){if(!u)return[];var N=u.slice(),k=N.indexOf(C);return k>=0&&N.splice(k,1),N}function ye(u,C){var N=(u||[]).slice();return N.indexOf(C)===-1&&N.push(C),N}function ue(u){return u.split("-")}function $(u,C){var N=[],k=(0,m.Z)(C,u);function w(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];re.forEach(function(Y){var fe=Y.key,D=Y.children;N.push(fe),w(D)})}return w(k.children),N}function c(u){if(u.parent){var C=ue(u.pos);return Number(C[C.length-1])===u.parent.children.length-1}return!1}function ie(u){var C=ue(u.pos);return Number(C[C.length-1])===0}function ne(u,C,N,k,w,re,Y,fe,D,be){var R,P=u.clientX,p=u.clientY,B=u.target.getBoundingClientRect(),me=B.top,H=B.height,le=(be==="rtl"?-1:1)*(((w==null?void 0:w.x)||0)-P),Q=(le-12)/k,L=(0,m.Z)(fe,N.props.eventKey);if(p<me+H/2){var W=Y.findIndex(function(te){return te.key===L.key}),q=W<=0?0:W-1,ae=Y[q].key;L=(0,m.Z)(fe,ae)}var ve=L.key,Ae=L,Pe=L.key,Re=0,Je=0;if(!D.includes(ve))for(var ke=0;ke<Q&&c(L);ke+=1)L=L.parent,Je+=1;var Ze=C.props.data,Ve=L.node,We=!0;return ie(L)&&L.level===0&&p<me+H/2&&re({dragNode:Ze,dropNode:Ve,dropPosition:-1})&&L.key===N.props.eventKey?Re=-1:(Ae.children||[]).length&&D.includes(Pe)?re({dragNode:Ze,dropNode:Ve,dropPosition:0})?Re=0:We=!1:Je===0?Q>-1.5?re({dragNode:Ze,dropNode:Ve,dropPosition:1})?Re=1:We=!1:re({dragNode:Ze,dropNode:Ve,dropPosition:0})?Re=0:re({dragNode:Ze,dropNode:Ve,dropPosition:1})?Re=1:We=!1:re({dragNode:Ze,dropNode:Ve,dropPosition:1})?Re=1:We=!1,{dropPosition:Re,dropLevelOffset:Je,dropTargetKey:L.key,dropTargetPos:L.pos,dragOverNodeKey:Pe,dropContainerKey:Re===0?null:((R=L.parent)===null||R===void 0?void 0:R.key)||null,dropAllowed:We}}function U(u,C){if(u){var N=C.multiple;return N?u.slice():u.length?[u[0]]:u}}var Se=function(C){return C};function K(u,C){if(!u)return[];var N=C||{},k=N.processProps,w=k===void 0?Se:k,re=Array.isArray(u)?u:[u];return re.map(function(Y){var fe=Y.children,D=_objectWithoutProperties(Y,de),be=K(fe,C);return React.createElement(TreeNode,_extends({key:D.key},w(D)),be)})}function T(u){if(!u)return null;var C;if(Array.isArray(u))C={checkedKeys:u,halfCheckedKeys:void 0};else if((0,x.Z)(u)==="object")C={checkedKeys:u.checked||void 0,halfCheckedKeys:u.halfChecked||void 0};else return(0,Z.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return C}function M(u,C){var N=new Set;function k(w){if(!N.has(w)){var re=(0,m.Z)(C,w);if(re){N.add(w);var Y=re.parent,fe=re.node;fe.disabled||Y&&k(Y.key)}}}return(u||[]).forEach(function(w){k(w)}),(0,y.Z)(N)}},90782:function(pt,Te,i){"use strict";i.d(Te,{S:function(){return ce}});var y=i(48736),x=i(67841);function Z(de,se){var ye=new Set;return de.forEach(function(ue){se.has(ue)||ye.add(ue)}),ye}function J(de){var se=de||{},ye=se.disabled,ue=se.disableCheckbox,$=se.checkable;return!!(ye||ue)||$===!1}function A(de,se,ye,ue){for(var $=new Set(de),c=new Set,ie=0;ie<=ye;ie+=1){var ne=se.get(ie)||new Set;ne.forEach(function(T){var M=T.key,u=T.node,C=T.children,N=C===void 0?[]:C;$.has(M)&&!ue(u)&&N.filter(function(k){return!ue(k.node)}).forEach(function(k){$.add(k.key)})})}for(var U=new Set,Se=ye;Se>=0;Se-=1){var K=se.get(Se)||new Set;K.forEach(function(T){var M=T.parent,u=T.node;if(!(ue(u)||!T.parent||U.has(T.parent.key))){if(ue(T.parent.node)){U.add(M.key);return}var C=!0,N=!1;(M.children||[]).filter(function(k){return!ue(k.node)}).forEach(function(k){var w=k.key,re=$.has(w);C&&!re&&(C=!1),!N&&(re||c.has(w))&&(N=!0)}),C&&$.add(M.key),N&&c.add(M.key),U.add(M.key)}})}return{checkedKeys:Array.from($),halfCheckedKeys:Array.from(Z(c,$))}}function m(de,se,ye,ue,$){for(var c=new Set(de),ie=new Set(se),ne=0;ne<=ue;ne+=1){var U=ye.get(ne)||new Set;U.forEach(function(M){var u=M.key,C=M.node,N=M.children,k=N===void 0?[]:N;!c.has(u)&&!ie.has(u)&&!$(C)&&k.filter(function(w){return!$(w.node)}).forEach(function(w){c.delete(w.key)})})}ie=new Set;for(var Se=new Set,K=ue;K>=0;K-=1){var T=ye.get(K)||new Set;T.forEach(function(M){var u=M.parent,C=M.node;if(!($(C)||!M.parent||Se.has(M.parent.key))){if($(M.parent.node)){Se.add(u.key);return}var N=!0,k=!1;(u.children||[]).filter(function(w){return!$(w.node)}).forEach(function(w){var re=w.key,Y=c.has(re);N&&!Y&&(N=!1),!k&&(Y||ie.has(re))&&(k=!0)}),N||c.delete(u.key),k&&ie.add(u.key),Se.add(u.key)}})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(Z(ie,c))}}function ce(de,se,ye,ue){var $=[],c;ue?c=ue:c=J;var ie=new Set(de.filter(function(K){var T=!!(0,x.Z)(ye,K);return T||$.push(K),T})),ne=new Map,U=0;Object.keys(ye).forEach(function(K){var T=ye[K],M=T.level,u=ne.get(M);u||(u=new Set,ne.set(M,u)),u.add(T),U=Math.max(U,M)}),(0,y.ZP)(!$.length,"Tree missing follow keys: ".concat($.slice(0,100).map(function(K){return"'".concat(K,"'")}).join(", ")));var Se;return se===!0?Se=A(ie,ne,U,c):Se=m(ie,se.halfCheckedKeys,ne,U,c),Se}},67841:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return y}});function y(x,Z){return x[Z]}},71430:function(pt,Te,i){"use strict";i.d(Te,{F:function(){return M},H8:function(){return T},I8:function(){return K},km:function(){return $},oH:function(){return U},w$:function(){return c},zn:function(){return ne}});var y=i(42066),x=i(65093),Z=i(35227),J=i(61206),A=i(11592),m=i(2738),ce=i(48736),de=i(67841),se=["children"];function ye(u,C){return"".concat(u,"-").concat(C)}function ue(u){return u&&u.type&&u.type.isTreeNode}function $(u,C){return u!=null?u:C}function c(u){var C=u||{},N=C.title,k=C._title,w=C.key,re=C.children,Y=N||"title";return{title:Y,_title:k||[Y],key:w||"key",children:re||"children"}}function ie(u,C){var N=new Map;function k(w){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(w||[]).forEach(function(Y){var fe=Y[C.key],D=Y[C.children];warning(fe!=null,"Tree node must have a certain key: [".concat(re).concat(fe,"]"));var be=String(fe);warning(!N.has(be)||fe===null||fe===void 0,"Same 'key' exist in the Tree: ".concat(be)),N.set(be,!0),k(D,"".concat(re).concat(be," > "))})}k(u)}function ne(u){function C(N){var k=(0,A.Z)(N);return k.map(function(w){if(!ue(w))return(0,ce.ZP)(!w,"Tree/TreeNode can only accept TreeNode as children."),null;var re=w.key,Y=w.props,fe=Y.children,D=(0,J.Z)(Y,se),be=(0,Z.Z)({key:re},D),R=C(fe);return R.length&&(be.children=R),be}).filter(function(w){return w})}return C(u)}function U(u,C,N){var k=c(N),w=k._title,re=k.key,Y=k.children,fe=new Set(C===!0?[]:C),D=[];function be(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return R.map(function(p,B){for(var me=ye(P?P.pos:"0",B),H=$(p[re],me),le,Q=0;Q<w.length;Q+=1){var L=w[Q];if(p[L]!==void 0){le=p[L];break}}var W=(0,Z.Z)((0,Z.Z)({},(0,m.Z)(p,[].concat((0,x.Z)(w),[re,Y]))),{},{title:le,key:H,parent:P,pos:me,children:null,data:p,isStart:[].concat((0,x.Z)(P?P.isStart:[]),[B===0]),isEnd:[].concat((0,x.Z)(P?P.isEnd:[]),[B===R.length-1])});return D.push(W),C===!0||fe.has(H)?W.children=be(p[Y]||[],W):W.children=[],W})}return be(u),D}function Se(u,C,N){var k={};(0,y.Z)(N)==="object"?k=N:k={externalGetKey:N},k=k||{};var w=k,re=w.childrenPropName,Y=w.externalGetKey,fe=w.fieldNames,D=c(fe),be=D.key,R=D.children,P=re||R,p;Y?typeof Y=="string"?p=function(H){return H[Y]}:typeof Y=="function"&&(p=function(H){return Y(H)}):p=function(H,le){return $(H[be],le)};function B(me,H,le,Q){var L=me?me[P]:u,W=me?ye(le.pos,H):"0",q=me?[].concat((0,x.Z)(Q),[me]):[];if(me){var ae=p(me,W),ve={node:me,index:H,pos:W,key:ae,parentPos:le.node?le.pos:null,level:le.level+1,nodes:q};C(ve)}L&&L.forEach(function(Ae,Pe){B(Ae,Pe,{node:me,pos:W,level:le?le.level+1:-1},q)})}B(null)}function K(u){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=C.initWrapper,k=C.processEntity,w=C.onProcessFinished,re=C.externalGetKey,Y=C.childrenPropName,fe=C.fieldNames,D=arguments.length>2?arguments[2]:void 0,be=re||D,R={},P={},p={posEntities:R,keyEntities:P};return N&&(p=N(p)||p),Se(u,function(B){var me=B.node,H=B.index,le=B.pos,Q=B.key,L=B.parentPos,W=B.level,q=B.nodes,ae={node:me,nodes:q,index:H,key:Q,pos:le,level:W},ve=$(Q,le);R[le]=ae,P[ve]=ae,ae.parent=R[L],ae.parent&&(ae.parent.children=ae.parent.children||[],ae.parent.children.push(ae)),k&&k(ae,p)},{externalGetKey:be,childrenPropName:Y,fieldNames:fe}),w&&w(p),p}function T(u,C){var N=C.expandedKeys,k=C.selectedKeys,w=C.loadedKeys,re=C.loadingKeys,Y=C.checkedKeys,fe=C.halfCheckedKeys,D=C.dragOverNodeKey,be=C.dropPosition,R=C.keyEntities,P=(0,de.Z)(R,u),p={eventKey:u,expanded:N.indexOf(u)!==-1,selected:k.indexOf(u)!==-1,loaded:w.indexOf(u)!==-1,loading:re.indexOf(u)!==-1,checked:Y.indexOf(u)!==-1,halfChecked:fe.indexOf(u)!==-1,pos:String(P?P.pos:""),dragOver:D===u&&be===0,dragOverGapTop:D===u&&be===-1,dragOverGapBottom:D===u&&be===1};return p}function M(u){var C=u.data,N=u.expanded,k=u.selected,w=u.checked,re=u.loaded,Y=u.loading,fe=u.halfChecked,D=u.dragOver,be=u.dragOverGapTop,R=u.dragOverGapBottom,P=u.pos,p=u.active,B=u.eventKey,me=(0,Z.Z)((0,Z.Z)({},C),{},{expanded:N,selected:k,checked:w,loaded:re,loading:Y,halfChecked:fe,dragOver:D,dragOverGapTop:be,dragOverGapBottom:R,pos:P,active:p,key:B});return"props"in me||Object.defineProperty(me,"props",{get:function(){return(0,ce.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),u}}),me}},50030:function(pt,Te,i){"use strict";i.d(Te,{Z:function(){return We}});var y=i(16378),x=i(42066),Z=i(35227),J=i(78772),A=i(10859),m=i(61206),ce=i(92310),de=i.n(ce),se=i(29301),ye=i(70425),ue=i(34280),$=i(59301),c=i(4676),ie=$.forwardRef(function(te,g){var _=te.height,f=te.offsetY,a=te.offsetX,b=te.children,V=te.prefixCls,h=te.onInnerResize,l=te.innerProps,v=te.rtl,s=te.extra,d={},E={display:"flex",flexDirection:"column"};return f!==void 0&&(d={height:_,position:"relative",overflow:"hidden"},E=(0,Z.Z)((0,Z.Z)({},E),{},(0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)({transform:"translateY(".concat(f,"px)")},v?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),$.createElement("div",{style:d},$.createElement(se.Z,{onResize:function(z){var ee=z.offsetHeight;ee&&h&&h()}},$.createElement("div",(0,y.Z)({style:E,className:de()((0,J.Z)({},"".concat(V,"-holder-inner"),V)),ref:g},l),b,s)))});ie.displayName="Filler";var ne=ie;function U(te){var g=te.children,_=te.setRef,f=$.useCallback(function(a){_(a)},[]);return $.cloneElement(g,{ref:f})}function Se(te,g,_,f,a,b,V,h){var l=h.getKey;return te.slice(g,_+1).map(function(v,s){var d=g+s,E=V(v,d,{style:{width:f},offsetX:a}),I=l(v);return $.createElement(U,{key:I,setRef:function(ee){return b(v,ee)}},E)})}function K(te,g,_,f){var a=_-te,b=g-_,V=Math.min(a,b)*2;if(f<=V){var h=Math.floor(f/2);return f%2?_+h+1:_-h}return a>b?_-(f-b):_+(f-a)}function T(te,g,_){var f=te.length,a=g.length,b,V;if(f===0&&a===0)return null;f<a?(b=te,V=g):(b=g,V=te);var h={__EMPTY_ITEM__:!0};function l(z){return z!==void 0?_(z):h}for(var v=null,s=Math.abs(f-a)!==1,d=0;d<V.length;d+=1){var E=l(b[d]),I=l(V[d]);if(E!==I){v=d,s=s||E!==l(V[d+1]);break}}return v===null?null:{index:v,multiple:s}}function M(te,g,_){var f=$.useState(te),a=(0,A.Z)(f,2),b=a[0],V=a[1],h=$.useState(null),l=(0,A.Z)(h,2),v=l[0],s=l[1];return $.useEffect(function(){var d=T(b||[],te||[],g);(d==null?void 0:d.index)!==void 0&&(_==null||_(d.index),s(te[d.index])),V(te)},[te]),[v]}var u=i(16089),C=(typeof navigator=="undefined"?"undefined":(0,x.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),N=C,k=function(te,g,_,f){var a=(0,$.useRef)(!1),b=(0,$.useRef)(null);function V(){clearTimeout(b.current),a.current=!0,b.current=setTimeout(function(){a.current=!1},50)}var h=(0,$.useRef)({top:te,bottom:g,left:_,right:f});return h.current.top=te,h.current.bottom=g,h.current.left=_,h.current.right=f,function(l,v){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=l?v<0&&h.current.left||v>0&&h.current.right:v<0&&h.current.top||v>0&&h.current.bottom;return s&&d?(clearTimeout(b.current),a.current=!1):(!d||a.current)&&V(),!a.current&&d}};function w(te,g,_,f,a,b,V){var h=(0,$.useRef)(0),l=(0,$.useRef)(null),v=(0,$.useRef)(null),s=(0,$.useRef)(!1),d=k(g,_,f,a);function E(F,Ce){if(u.Z.cancel(l.current),!d(!1,Ce)){var Le=F;if(!Le._virtualHandled)Le._virtualHandled=!0;else return;h.current+=Ce,v.current=Ce,N||Le.preventDefault(),l.current=(0,u.Z)(function(){var X=s.current?10:1;V(h.current*X,!1),h.current=0})}}function I(F,Ce){V(Ce,!0),N||F.preventDefault()}var z=(0,$.useRef)(null),ee=(0,$.useRef)(null);function oe(F){if(te){u.Z.cancel(ee.current),ee.current=(0,u.Z)(function(){z.current=null},2);var Ce=F.deltaX,Le=F.deltaY,X=F.shiftKey,je=Ce,Be=Le;(z.current==="sx"||!z.current&&X&&Le&&!Ce)&&(je=Le,Be=0,z.current="sx");var Ke=Math.abs(je),ze=Math.abs(Be);z.current===null&&(z.current=b&&Ke>ze?"x":"y"),z.current==="y"?E(F,Be):I(F,je)}}function Ee(F){te&&(s.current=F.detail===v.current)}return[oe,Ee]}function re(te,g,_,f){var a=$.useMemo(function(){return[new Map,[]]},[te,_.id,f]),b=(0,A.Z)(a,2),V=b[0],h=b[1],l=function(s){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,E=V.get(s),I=V.get(d);if(E===void 0||I===void 0)for(var z=te.length,ee=h.length;ee<z;ee+=1){var oe,Ee=te[ee],F=g(Ee);V.set(F,ee);var Ce=(oe=_.get(F))!==null&&oe!==void 0?oe:f;if(h[ee]=(h[ee-1]||0)+Ce,F===s&&(E=ee),F===d&&(I=ee),E!==void 0&&I!==void 0)break}return{top:h[E-1]||0,bottom:h[I]}};return l}var Y=i(76846),fe=i(44202),D=i(86773),be=function(){function te(){(0,fe.Z)(this,te),(0,J.Z)(this,"maps",void 0),(0,J.Z)(this,"id",0),(0,J.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,D.Z)(te,[{key:"set",value:function(_,f){this.maps[_]=f,this.id+=1,this.diffKeys.add(_)}},{key:"get",value:function(_){return this.maps[_]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),te}(),R=be;function P(te){var g=parseFloat(te);return isNaN(g)?0:g}function p(te,g,_){var f=$.useState(0),a=(0,A.Z)(f,2),b=a[0],V=a[1],h=(0,$.useRef)(new Map),l=(0,$.useRef)(new R),v=(0,$.useRef)(0);function s(){v.current+=1}function d(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;s();var z=function(){var Ee=!1;h.current.forEach(function(F,Ce){if(F&&F.offsetParent){var Le=(0,Y.ZP)(F),X=Le.offsetHeight,je=getComputedStyle(Le),Be=je.marginTop,Ke=je.marginBottom,ze=P(Be),it=P(Ke),ut=X+ze+it;l.current.get(Ce)!==ut&&(l.current.set(Ce,ut),Ee=!0)}}),Ee&&V(function(F){return F+1})};if(I)z();else{v.current+=1;var ee=v.current;Promise.resolve().then(function(){ee===v.current&&z()})}}function E(I,z){var ee=te(I),oe=h.current.get(ee);z?(h.current.set(ee,z),d()):h.current.delete(ee),!oe!=!z&&(z?g==null||g(I):_==null||_(I))}return(0,$.useEffect)(function(){return s},[]),[E,d,l.current,b]}var B=14/15;function me(te,g,_){var f=(0,$.useRef)(!1),a=(0,$.useRef)(0),b=(0,$.useRef)(0),V=(0,$.useRef)(null),h=(0,$.useRef)(null),l,v=function(I){if(f.current){var z=Math.ceil(I.touches[0].pageX),ee=Math.ceil(I.touches[0].pageY),oe=a.current-z,Ee=b.current-ee,F=Math.abs(oe)>Math.abs(Ee);F?a.current=z:b.current=ee;var Ce=_(F,F?oe:Ee,!1,I);Ce&&I.preventDefault(),clearInterval(h.current),Ce&&(h.current=setInterval(function(){F?oe*=B:Ee*=B;var Le=Math.floor(F?oe:Ee);(!_(F,Le,!0)||Math.abs(Le)<=.1)&&clearInterval(h.current)},16))}},s=function(){f.current=!1,l()},d=function(I){l(),I.touches.length===1&&!f.current&&(f.current=!0,a.current=Math.ceil(I.touches[0].pageX),b.current=Math.ceil(I.touches[0].pageY),V.current=I.target,V.current.addEventListener("touchmove",v,{passive:!1}),V.current.addEventListener("touchend",s,{passive:!0}))};l=function(){V.current&&(V.current.removeEventListener("touchmove",v),V.current.removeEventListener("touchend",s))},(0,ue.Z)(function(){return te&&g.current.addEventListener("touchstart",d,{passive:!0}),function(){var E;(E=g.current)===null||E===void 0||E.removeEventListener("touchstart",d),l(),clearInterval(h.current)}},[te])}function H(te){return Math.floor(Math.pow(te,.5))}function le(te,g){var _="touches"in te?te.touches[0]:te;return _[g?"pageX":"pageY"]-window[g?"scrollX":"scrollY"]}function Q(te,g,_){$.useEffect(function(){var f=g.current;if(te&&f){var a=!1,b,V,h=function(){u.Z.cancel(b)},l=function E(){h(),b=(0,u.Z)(function(){_(V),E()})},v=function(I){var z=I;z._virtualHandled||(z._virtualHandled=!0,a=!0)},s=function(){a=!1,h()},d=function(I){if(a){var z=le(I,!1),ee=f.getBoundingClientRect(),oe=ee.top,Ee=ee.bottom;if(z<=oe){var F=oe-z;V=-H(F),l()}else if(z>=Ee){var Ce=z-Ee;V=H(Ce),l()}else h()}};return f.addEventListener("mousedown",v),f.ownerDocument.addEventListener("mouseup",s),f.ownerDocument.addEventListener("mousemove",d),function(){f.removeEventListener("mousedown",v),f.ownerDocument.removeEventListener("mouseup",s),f.ownerDocument.removeEventListener("mousemove",d),h()}}},[te])}var L=10;function W(te,g,_,f,a,b,V,h){var l=$.useRef(),v=$.useState(null),s=(0,A.Z)(v,2),d=s[0],E=s[1];return(0,ue.Z)(function(){if(d&&d.times<L){if(!te.current){E(function(_t){return(0,Z.Z)({},_t)});return}b();var I=d.targetAlign,z=d.originAlign,ee=d.index,oe=d.offset,Ee=te.current.clientHeight,F=!1,Ce=I,Le=null;if(Ee){for(var X=I||z,je=0,Be=0,Ke=0,ze=Math.min(g.length-1,ee),it=0;it<=ze;it+=1){var ut=a(g[it]);Be=je;var dt=_.get(ut);Ke=Be+(dt===void 0?f:dt),je=Ke}for(var tt=X==="top"?oe:Ee-oe,gt=ze;gt>=0;gt-=1){var Xe=a(g[gt]),Ne=_.get(Xe);if(Ne===void 0){F=!0;break}if(tt-=Ne,tt<=0)break}switch(X){case"top":Le=Be-oe;break;case"bottom":Le=Ke-Ee+oe;break;default:{var ct=te.current.scrollTop,ft=ct+Ee;Be<ct?Ce="top":Ke>ft&&(Ce="bottom")}}Le!==null&&V(Le),Le!==d.lastTop&&(F=!0)}F&&E((0,Z.Z)((0,Z.Z)({},d),{},{times:d.times+1,targetAlign:Ce,lastTop:Le}))}},[d,te.current]),function(I){if(I==null){h();return}if(u.Z.cancel(l.current),typeof I=="number")V(I);else if(I&&(0,x.Z)(I)==="object"){var z,ee=I.align;"index"in I?z=I.index:z=g.findIndex(function(F){return a(F)===I.key});var oe=I.offset,Ee=oe===void 0?0:oe;E({times:0,index:z,offset:Ee,originAlign:ee})}}}var q=$.forwardRef(function(te,g){var _=te.prefixCls,f=te.rtl,a=te.scrollOffset,b=te.scrollRange,V=te.onStartMove,h=te.onStopMove,l=te.onScroll,v=te.horizontal,s=te.spinSize,d=te.containerSize,E=te.style,I=te.thumbStyle,z=te.showScrollBar,ee=$.useState(!1),oe=(0,A.Z)(ee,2),Ee=oe[0],F=oe[1],Ce=$.useState(null),Le=(0,A.Z)(Ce,2),X=Le[0],je=Le[1],Be=$.useState(null),Ke=(0,A.Z)(Be,2),ze=Ke[0],it=Ke[1],ut=!f,dt=$.useRef(),tt=$.useRef(),gt=$.useState(z),Xe=(0,A.Z)(gt,2),Ne=Xe[0],ct=Xe[1],ft=$.useRef(),_t=function(){z===!0||z===!1||(clearTimeout(ft.current),ct(!0),ft.current=setTimeout(function(){ct(!1)},3e3))},Rt=b-d||0,It=d-s||0,Ct=$.useMemo(function(){if(a===0||Rt===0)return 0;var r=a/Rt;return r*It},[a,Rt,It]),Et=function(o){o.stopPropagation(),o.preventDefault()},qe=$.useRef({top:Ct,dragging:Ee,pageY:X,startTop:ze});qe.current={top:Ct,dragging:Ee,pageY:X,startTop:ze};var at=function(o){F(!0),je(le(o,v)),it(qe.current.top),V(),o.stopPropagation(),o.preventDefault()};$.useEffect(function(){var r=function(we){we.preventDefault()},o=dt.current,S=tt.current;return o.addEventListener("touchstart",r,{passive:!1}),S.addEventListener("touchstart",at,{passive:!1}),function(){o.removeEventListener("touchstart",r),S.removeEventListener("touchstart",at)}},[]);var He=$.useRef();He.current=Rt;var pe=$.useRef();pe.current=It,$.useEffect(function(){if(Ee){var r,o=function(we){var _e=qe.current,Oe=_e.dragging,et=_e.pageY,ot=_e.startTop;u.Z.cancel(r);var Fe=dt.current.getBoundingClientRect(),mt=d/(v?Fe.width:Fe.height);if(Oe){var Ue=(le(we,v)-et)*mt,xe=ot;!ut&&v?xe-=Ue:xe+=Ue;var Me=He.current,Qe=pe.current,nt=Qe?xe/Qe:0,ht=Math.ceil(nt*Me);ht=Math.max(ht,0),ht=Math.min(ht,Me),r=(0,u.Z)(function(){l(ht,v)})}},S=function(){F(!1),h()};return window.addEventListener("mousemove",o,{passive:!0}),window.addEventListener("touchmove",o,{passive:!0}),window.addEventListener("mouseup",S,{passive:!0}),window.addEventListener("touchend",S,{passive:!0}),function(){window.removeEventListener("mousemove",o),window.removeEventListener("touchmove",o),window.removeEventListener("mouseup",S),window.removeEventListener("touchend",S),u.Z.cancel(r)}}},[Ee]),$.useEffect(function(){return _t(),function(){clearTimeout(ft.current)}},[a]),$.useImperativeHandle(g,function(){return{delayHidden:_t}});var e="".concat(_,"-scrollbar"),t={position:"absolute",visibility:Ne?null:"hidden"},n={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return v?(t.height=8,t.left=0,t.right=0,t.bottom=0,n.height="100%",n.width=s,ut?n.left=Ct:n.right=Ct):(t.width=8,t.top=0,t.bottom=0,ut?t.right=0:t.left=0,n.width="100%",n.height=s,n.top=Ct),$.createElement("div",{ref:dt,className:de()(e,(0,J.Z)((0,J.Z)((0,J.Z)({},"".concat(e,"-horizontal"),v),"".concat(e,"-vertical"),!v),"".concat(e,"-visible"),Ne)),style:(0,Z.Z)((0,Z.Z)({},t),E),onMouseDown:Et,onMouseMove:_t},$.createElement("div",{ref:tt,className:de()("".concat(e,"-thumb"),(0,J.Z)({},"".concat(e,"-thumb-moving"),Ee)),style:(0,Z.Z)((0,Z.Z)({},n),I),onMouseDown:at}))}),ae=q,ve=20;function Ae(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=te/g*te;return isNaN(_)&&(_=0),_=Math.max(_,ve),Math.floor(_)}var Pe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Re=[],Je={overflowY:"auto",overflowAnchor:"none"};function ke(te,g){var _=te.prefixCls,f=_===void 0?"rc-virtual-list":_,a=te.className,b=te.height,V=te.itemHeight,h=te.fullHeight,l=h===void 0?!0:h,v=te.style,s=te.data,d=te.children,E=te.itemKey,I=te.virtual,z=te.direction,ee=te.scrollWidth,oe=te.component,Ee=oe===void 0?"div":oe,F=te.onScroll,Ce=te.onVirtualScroll,Le=te.onVisibleChange,X=te.innerProps,je=te.extraRender,Be=te.styles,Ke=te.showScrollBar,ze=Ke===void 0?"optional":Ke,it=(0,m.Z)(te,Pe),ut=$.useCallback(function(lt){return typeof E=="function"?E(lt):lt==null?void 0:lt[E]},[E]),dt=p(ut,null,null),tt=(0,A.Z)(dt,4),gt=tt[0],Xe=tt[1],Ne=tt[2],ct=tt[3],ft=!!(I!==!1&&b&&V),_t=$.useMemo(function(){return Object.values(Ne.maps).reduce(function(lt,rt){return lt+rt},0)},[Ne.id,Ne.maps]),Rt=ft&&s&&(Math.max(V*s.length,_t)>b||!!ee),It=z==="rtl",Ct=de()(f,(0,J.Z)({},"".concat(f,"-rtl"),It),a),Et=s||Re,qe=(0,$.useRef)(),at=(0,$.useRef)(),He=(0,$.useRef)(),pe=(0,$.useState)(0),e=(0,A.Z)(pe,2),t=e[0],n=e[1],r=(0,$.useState)(0),o=(0,A.Z)(r,2),S=o[0],O=o[1],we=(0,$.useState)(!1),_e=(0,A.Z)(we,2),Oe=_e[0],et=_e[1],ot=function(){et(!0)},Fe=function(){et(!1)},mt={getKey:ut};function Ue(lt){n(function(rt){var xt;typeof lt=="function"?xt=lt(rt):xt=lt;var Mt=At(xt);return qe.current.scrollTop=Mt,Mt})}var xe=(0,$.useRef)({start:0,end:Et.length}),Me=(0,$.useRef)(),Qe=M(Et,ut),nt=(0,A.Z)(Qe,1),ht=nt[0];Me.current=ht;var $t=$.useMemo(function(){if(!ft)return{scrollHeight:void 0,start:0,end:Et.length-1,offset:void 0};if(!Rt){var lt;return{scrollHeight:((lt=at.current)===null||lt===void 0?void 0:lt.offsetHeight)||0,start:0,end:Et.length-1,offset:void 0}}for(var rt=0,xt,Mt,Ut,dn=Et.length,Gt=0;Gt<dn;Gt+=1){var an=Et[Gt],yn=ut(an),mn=Ne.get(yn),hn=rt+(mn===void 0?V:mn);hn>=t&&xt===void 0&&(xt=Gt,Mt=rt),hn>t+b&&Ut===void 0&&(Ut=Gt),rt=hn}return xt===void 0&&(xt=0,Mt=0,Ut=Math.ceil(b/V)),Ut===void 0&&(Ut=Et.length-1),Ut=Math.min(Ut+1,Et.length-1),{scrollHeight:rt,start:xt,end:Ut,offset:Mt}},[Rt,ft,t,Et,ct,b]),wt=$t.scrollHeight,Ye=$t.start,Ge=$t.end,j=$t.offset;xe.current.start=Ye,xe.current.end=Ge,$.useLayoutEffect(function(){var lt=Ne.getRecord();if(lt.size===1){var rt=Array.from(lt)[0],xt=ut(Et[Ye]);if(xt===rt){var Mt=Ne.get(rt),Ut=Mt-V;Ue(function(dn){return dn+Ut})}}Ne.resetRecord()},[wt]);var G=$.useState({width:0,height:b}),he=(0,A.Z)(G,2),Ie=he[0],ge=he[1],$e=function(rt){ge({width:rt.offsetWidth,height:rt.offsetHeight})},De=(0,$.useRef)(),st=(0,$.useRef)(),bt=$.useMemo(function(){return Ae(Ie.width,ee)},[Ie.width,ee]),vt=$.useMemo(function(){return Ae(Ie.height,wt)},[Ie.height,wt]),St=wt-b,yt=(0,$.useRef)(St);yt.current=St;function At(lt){var rt=lt;return Number.isNaN(yt.current)||(rt=Math.min(rt,yt.current)),rt=Math.max(rt,0),rt}var Tt=t<=0,Ot=t>=St,zt=S<=0,Zt=S>=ee,jt=k(Tt,Ot,zt,Zt),Nt=function(){return{x:It?-S:S,y:t}},Dt=(0,$.useRef)(Nt()),Lt=(0,ye.useEvent)(function(lt){if(Ce){var rt=(0,Z.Z)((0,Z.Z)({},Nt()),lt);(Dt.current.x!==rt.x||Dt.current.y!==rt.y)&&(Ce(rt),Dt.current=rt)}});function Bt(lt,rt){var xt=lt;rt?((0,c.flushSync)(function(){O(xt)}),Lt()):Ue(xt)}function Pt(lt){var rt=lt.currentTarget.scrollTop;rt!==t&&Ue(rt),F==null||F(lt),Lt()}var Wt=function(rt){var xt=rt,Mt=ee?ee-Ie.width:0;return xt=Math.max(xt,0),xt=Math.min(xt,Mt),xt},Kt=(0,ye.useEvent)(function(lt,rt){rt?((0,c.flushSync)(function(){O(function(xt){var Mt=xt+(It?-lt:lt);return Wt(Mt)})}),Lt()):Ue(function(xt){var Mt=xt+lt;return Mt})}),on=w(ft,Tt,Ot,zt,Zt,!!ee,Kt),Ft=(0,A.Z)(on,2),Qt=Ft[0],Xt=Ft[1];me(ft,qe,function(lt,rt,xt,Mt){var Ut=Mt;return jt(lt,rt,xt)?!1:!Ut||!Ut._virtualHandled?(Ut&&(Ut._virtualHandled=!0),Qt({preventDefault:function(){},deltaX:lt?rt:0,deltaY:lt?0:rt}),!0):!1}),Q(Rt,qe,function(lt){Ue(function(rt){return rt+lt})}),(0,ue.Z)(function(){function lt(xt){var Mt=Tt&&xt.detail<0,Ut=Ot&&xt.detail>0;ft&&!Mt&&!Ut&&xt.preventDefault()}var rt=qe.current;return rt.addEventListener("wheel",Qt,{passive:!1}),rt.addEventListener("DOMMouseScroll",Xt,{passive:!0}),rt.addEventListener("MozMousePixelScroll",lt,{passive:!1}),function(){rt.removeEventListener("wheel",Qt),rt.removeEventListener("DOMMouseScroll",Xt),rt.removeEventListener("MozMousePixelScroll",lt)}},[ft,Tt,Ot]),(0,ue.Z)(function(){if(ee){var lt=Wt(S);O(lt),Lt({x:lt})}},[Ie.width,ee]);var Yt=function(){var rt,xt;(rt=De.current)===null||rt===void 0||rt.delayHidden(),(xt=st.current)===null||xt===void 0||xt.delayHidden()},en=W(qe,Et,Ne,V,ut,function(){return Xe(!0)},Ue,Yt);$.useImperativeHandle(g,function(){return{nativeElement:He.current,getScrollInfo:Nt,scrollTo:function(rt){function xt(Mt){return Mt&&(0,x.Z)(Mt)==="object"&&("left"in Mt||"top"in Mt)}xt(rt)?(rt.left!==void 0&&O(Wt(rt.left)),en(rt.top)):en(rt)}}}),(0,ue.Z)(function(){if(Le){var lt=Et.slice(Ye,Ge+1);Le(lt,Et)}},[Ye,Ge,Et]);var nn=re(Et,ut,Ne,V),fn=je==null?void 0:je({start:Ye,end:Ge,virtual:Rt,offsetX:S,offsetY:j,rtl:It,getSize:nn}),qt=Se(Et,Ye,Ge,ee,S,gt,d,mt),Jt=null;b&&(Jt=(0,Z.Z)((0,J.Z)({},l?"height":"maxHeight",b),Je),ft&&(Jt.overflowY="hidden",ee&&(Jt.overflowX="hidden"),Oe&&(Jt.pointerEvents="none")));var rn={};return It&&(rn.dir="rtl"),$.createElement("div",(0,y.Z)({ref:He,style:(0,Z.Z)((0,Z.Z)({},v),{},{position:"relative"}),className:Ct},rn,it),$.createElement(se.Z,{onResize:$e},$.createElement(Ee,{className:"".concat(f,"-holder"),style:Jt,ref:qe,onScroll:Pt,onMouseEnter:Yt},$.createElement(ne,{prefixCls:f,height:wt,offsetX:S,offsetY:j,scrollWidth:ee,onInnerResize:Xe,ref:at,innerProps:X,rtl:It,extra:fn},qt))),Rt&&wt>b&&$.createElement(ae,{ref:De,prefixCls:f,scrollOffset:t,scrollRange:wt,rtl:It,onScroll:Bt,onStartMove:ot,onStopMove:Fe,spinSize:vt,containerSize:Ie.height,style:Be==null?void 0:Be.verticalScrollBar,thumbStyle:Be==null?void 0:Be.verticalScrollBarThumb,showScrollBar:ze}),Rt&&ee>Ie.width&&$.createElement(ae,{ref:st,prefixCls:f,scrollOffset:S,scrollRange:ee,rtl:It,onScroll:Bt,onStartMove:ot,onStopMove:Fe,spinSize:bt,containerSize:Ie.width,horizontal:!0,style:Be==null?void 0:Be.horizontalScrollBar,thumbStyle:Be==null?void 0:Be.horizontalScrollBarThumb,showScrollBar:ze}))}var Ze=$.forwardRef(ke);Ze.displayName="List";var Ve=Ze,We=Ve},82059:function(pt){var Te=arguments[3],i=arguments[4],y=arguments[5],x=JSON.stringify;pt.exports=function(Z,J){for(var A,m=Object.keys(y),ce=0,de=m.length;ce<de;ce++){var se=m[ce],ye=y[se].exports;if(ye===Z||ye&&ye.default===Z){A=se;break}}if(!A){A=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var ue={},ce=0,de=m.length;ce<de;ce++){var se=m[ce];ue[se]=se}i[A]=["function(require,module,exports){"+Z+"(self); }",ue]}var $=Math.floor(Math.pow(16,8)*Math.random()).toString(16),c={};c[A]=A,i[$]=["function(require,module,exports){var f = require("+x(A)+");(f.default ? f.default : f)(self);}",c];var ie={};ne($);function ne(u){ie[u]=!0;for(var C in i[u][1]){var N=i[u][1][C];ie[N]||ne(N)}}var U="("+Te+")({"+Object.keys(ie).map(function(u){return x(u)+":["+i[u][0]+","+x(i[u][1])+"]"}).join(",")+"},{},["+x($)+"])",Se=window.URL||window.webkitURL||window.mozURL||window.msURL,K=new Blob([U],{type:"text/javascript"});if(J&&J.bare)return K;var T=Se.createObjectURL(K),M=new Worker(T);return M.objectURL=T,M}}}]);
|