You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Video__Detail__id.c8e98b...

43 lines
354 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[6444],{18785:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return le}});var y=a(54476),C=a(59301),F={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"},Y=F,D=a(7657),f=function(Se,fe){return C.createElement(D.Z,(0,y.Z)({},Se,{ref:fe,icon:Y}))},ue=C.forwardRef(f),le=ue},52671:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return le}});var y=a(54476),C=a(59301),F={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"},Y=F,D=a(7657),f=function(Se,fe){return C.createElement(D.Z,(0,y.Z)({},Se,{ref:fe,icon:Y}))},ue=C.forwardRef(f),le=ue},8657:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return le}});var y=a(54476),C=a(59301),F={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"},Y=F,D=a(7657),f=function(Se,fe){return C.createElement(D.Z,(0,y.Z)({},Se,{ref:fe,icon:Y}))},ue=C.forwardRef(f),le=ue},56082:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return le}});var y=a(54476),C=a(59301),F={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"},Y=F,D=a(7657),f=function(Se,fe){return C.createElement(D.Z,(0,y.Z)({},Se,{ref:fe,icon:Y}))},ue=C.forwardRef(f),le=ue},33853:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return le}});var y=a(54476),C=a(59301),F={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"},Y=F,D=a(7657),f=function(Se,fe){return C.createElement(D.Z,(0,y.Z)({},Se,{ref:fe,icon:Y}))},ue=C.forwardRef(f),le=ue},15075:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return le}});var y=a(54476),C=a(59301),F={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"},Y=F,D=a(7657),f=function(Se,fe){return C.createElement(D.Z,(0,y.Z)({},Se,{ref:fe,icon:Y}))},ue=C.forwardRef(f),le=ue},43531:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return le}});var y=a(54476),C=a(59301),F={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"},Y=F,D=a(7657),f=function(Se,fe){return C.createElement(D.Z,(0,y.Z)({},Se,{ref:fe,icon:Y}))},ue=C.forwardRef(f),le=ue},38819:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return le}});var y=a(54476),C=a(59301),F={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"},Y=F,D=a(7657),f=function(Se,fe){return C.createElement(D.Z,(0,y.Z)({},Se,{ref:fe,icon:Y}))},ue=C.forwardRef(f),le=ue},88852:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return q}});var y=a(59301),C=a(8591),F=a(38854),Y=a(4089),D=a(16471),f=a(96141),ue=a(56102),le=a(74905),oe={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"},Se=(U,Ce,K)=>new Promise((A,N)=>{var u=P=>{try{T(K.next(P))}catch(w){N(w)}},S=P=>{try{T(K.throw(P))}catch(w){N(w)}},T=P=>P.done?A(P.value):Promise.resolve(P.value).then(u,S);T((K=K.apply(U,Ce)).next())});function fe(U){if(isNaN(U))return{minutes:"00",seconds:"00"};const Ce=new Date(U*1e3).toISOString().substr(11,8);return{hour:Ce.substr(0,2),minutes:Ce.substr(3,2),seconds:Ce.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function M(U,Ce){return U-Ce}function d(U){U.sort(M);let Ce=0;for(let K=0;K<U.length-1;K++){let A=Math.abs(U[K+1]-U[K]);A<21&&(Ce+=A)}return Ce}const ne=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var q=(0,y.forwardRef)(({allow_skip:U,src:Ce,toLog:K,videoId:A,logWatchHistory:N,courseId:u=null,startTime:S,handlePause:T=()=>{},handlePlay:P=()=>{},handlePlayEnded:w=()=>{},autoPlay:re=!1,onPlayEnded:G=()=>{},isShowWaterMark:me=!0},L)=>{var xe;const $=((xe=Ce==null?void 0:Ce.split("."))==null?void 0:xe.pop())==="flv",p=(0,y.useRef)(),k=(0,y.useRef)(),pe=(0,y.useRef)(),H=(0,y.useRef)(),de=(0,y.useRef)(),X=(0,y.useRef)(),O=(0,y.useRef)(),j=(0,y.useRef)(),J=(0,y.useRef)(),ae=(0,y.useRef)(),ge=(0,y.useRef)(),Te=(0,y.useRef)(),ke=(0,y.useRef)(),Re=(0,y.useRef)(),We=navigator.userAgent.toLowerCase().match(ne),Ze=We?We[0]:"pc",Ue=(0,y.useRef)(!1),Ve=(0,f.eY)();let V=0,Oe=0,h=0,_=null,m=!1,o=20,b=1,Z=!1,E=!1,l=[];(0,y.useImperativeHandle)(L,()=>({getLastUpdatedTime:()=>p.current.currentTime,getDuration:()=>p.current.duration})),C.ZP.config({maxCount:1,getContainer:()=>pe.current});const g=(0,y.useCallback)((ce,se=!1)=>{let z={point:p.current.currentTime};_?(z.log_id=_,z.watch_duration=d(l),z.total_duration=Oe):(u?(z.video_id=parseInt(A,10),z.course_id=u):z.video_id=A,z.duration=V,z.device=Ze),se&&(z.ed="1");function Le(){return Se(this,null,function*(){Z=!0,_=yield N==null?void 0:N(z),Z=!1,ce&&ce()})}Le()},[A,u]);(0,y.useEffect)(()=>{p.current&&(H.current.style.display="none",de.current.style.display="block"),C.ZP.destroy();let ce=null;return Y.Z.isSupported&&$&&Ce&&(Ce==null?void 0:Ce.indexOf(".m3u8"))<0?(ce=Y.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:Ce,muted:!1}),p.current&&(ce.attachMediaElement(p.current),ce.load())):p.current.setAttribute("src",Ce),c(),()=>{ce&&(ce.unload(),ce.pause(),ce.destroy(),ce=null)}},[p,$,Ce]);function r(){p.current.paused?(H.current.style.display="none",de.current.style.display="block"):(H.current.style.display="block",de.current.style.display="none")}function c(){ge.current.style.display="none",ke.current.style.display="none",Te.current.style.display="none",p.current.muted||p.current.volume===0?ge.current.style.display="block":p.current.volume>0&&p.current.volume<=.5?ke.current.style.display="block":Te.current.style.display="block"}(0,y.useEffect)(()=>{const ce=document.getElementById("play"),se=document.querySelectorAll(".playback-icons use");function z(){P(),S&&!Ue.current&&(p.current.currentTime=S),Ue.current=!0,l.push(p.current.currentTime),m||(m=!0,K&&g())}function Le(){return Se(this,null,function*(){r(),l.push(p.current.currentTime),K&&g(()=>{_=null,h=0,m=!1,Z=!1,E=!1,l=[],Oe=0,b=1},!0),G()})}function Be(){X.current.value=Math.round(p.current.currentTime),O.current.value=Math.round(p.current.currentTime)}function W(){const Fe=fe(Math.round(p.current.currentTime));J.current.innerText=`${Fe.hour>0?Fe.hour+":":""}${Fe.minutes}:${Fe.seconds}`,J.current.setAttribute("datetime",`${Fe.hour>0?" "+Fe.hour+" ":""}${Fe.minutes}m ${Fe.seconds}s`)}function Ke(){var Fe,Je,yt,ht,xt,wt,_t;const bt=Math.round((Fe=p.current)==null?void 0:Fe.duration);(yt=(Je=X.current)==null?void 0:Je.setAttribute)==null||yt.call(Je,"max",bt),(xt=(ht=O.current)==null?void 0:ht.setAttribute)==null||xt.call(ht,"max",bt);const ot=fe(bt);j.current&&(j.current.innerText=`${ot.hour>0?ot.hour+":":""}${ot.minutes}:${ot.seconds}`,(_t=(wt=j.current).setAttribute)==null||_t.call(wt,"datetime",`${ot.hour>0?" "+ot.hour+" ":""}${ot.minutes}m ${ot.seconds}s`))}function Me(){try{const Fe=Math.round(p.current.duration);X.current.setAttribute("max",Fe),O.current.setAttribute("max",Fe);const Je=fe(Fe);j.current.innerText=`${Je.hour>0?Je.hour+":":""}${Je.minutes}:${Je.seconds}`,j.current.setAttribute("datetime",`${Je.hour>0?" "+Je.hour+" ":""}${Je.minutes}m ${Je.seconds}s`),Be(),W();const{width:yt,height:ht,x:xt,y:wt}=k.current.getBoundingClientRect();if(xt<0||wt<0||!yt)return;if(!E){let _t=p.current.currentTime,bt=_t-h;Math.abs(bt)<10?(Oe+=Math.abs(bt),h=_t,Z||Oe-b*o>=0&&(b++,l.push(h),K&&g())):(h=_t,K&&g())}}catch(Fe){console.log(Fe)}}function rt(){E=!0}function ze(){p.current.playing&&l.push(p.current.currentTime,h),h=p.current.currentTime,E=!1}function it(){V=p.current.duration,V<=20&&(o=V/3),p.current.addEventListener("play",z)}function pt(Fe){Fe.preventDefault(),(0,le.vp)()?(p.current.style.width="100%",p.current.style.height="100%"):p.current.style.cssText=""}function lt(){T()}function nt(Fe){if(!U){C.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Je=Fe.target.dataset.seek?Fe.target.dataset.seek:Fe.target.value;p.current.currentTime=Je,O.current.value=Je,X.current.value=Je}function mt(Fe){const Je=Math.round(Fe.offsetX/Fe.target.clientWidth*parseInt(Fe.target.getAttribute("max"),10));X.current.setAttribute("data-seek",Je);const yt=fe(Je);ae.current.textContent=`${yt.hour>0?yt.hour+":":""}${yt.minutes}:${yt.seconds}`;const ht=p.current.getBoundingClientRect();ae.current.style.left=`${Fe.pageX-ht.left}px`}function Ge(Fe){switch(Fe.code){case"Space":Fe.preventDefault(),Q();break;case"ArrowRight":if(Fe.preventDefault(),!U){C.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,Be();break;case"ArrowLeft":if(Fe.preventDefault(),!U){C.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,Be();break;case"ArrowUp":Fe.preventDefault(),p.current.volume<1&&(p.current.volume=(parseInt(p.current.volume*10)+1)/10);break;case"ArrowDown":Fe.preventDefault(),p.current.volume>0&&(p.current.volume=(parseInt(p.current.volume*10)-1)/10);break}}return pe.current.addEventListener((0,le.gH)(),pt),p.current.addEventListener("canplay",it),p.current.addEventListener("ended",Le),p.current.addEventListener("seeking",rt),p.current.addEventListener("seeked",ze),p.current.addEventListener("loadedmetadata",Ke),X.current.addEventListener("mousemove",mt),X.current.addEventListener("input",nt),p.current.addEventListener("timeupdate",Me),p.current.addEventListener("pause",lt),p.current.addEventListener("volumechange",c),document.addEventListener("keydown",Ge),()=>{var Fe,Je,yt,ht,xt,wt,_t,bt,ot,at,Lt,ee;(Fe=p.current)==null||Fe.removeEventListener("canplay",it),(Je=p.current)==null||Je.removeEventListener("play",z),(yt=p.current)==null||yt.removeEventListener("ended",Le),(ht=p.current)==null||ht.removeEventListener("seeking",rt),(xt=p.current)==null||xt.removeEventListener("seeked",ze),(wt=X.current)==null||wt.removeEventListener("mousemove",mt),(_t=X.current)==null||_t.removeEventListener("input",nt),(bt=p.current)==null||bt.removeEventListener("timeupdate",Me),(ot=p.current)==null||ot.removeEventListener("pause",lt),(at=p.current)==null||at.removeEventListener("loadedmetadata",Ke),(Lt=p.current)==null||Lt.removeEventListener("volumechange",c),document.removeEventListener("keydown",Ge),(ee=p.current)!=null&&ee.playing&&(l.push(h,p.current.currentTime),K&&g())}},[p,Ce]),(0,y.useEffect)(()=>{if(p.current.onended=()=>{w(p)},p.current.oncontextmenu=()=>!1,(Ce==null?void 0:Ce.indexOf(".m3u8"))>-1){if(p.current.canPlayType("application/vnd.apple.mpegurl"))p.current.src=Ce;else if(D.ZP.isSupported()){var ce=new D.ZP;ce.loadSource(Ce),ce.attachMedia(p.current)}}},[Ce]);const[v,B]=(0,y.useState)(1),Q=()=>{p.current.paused||p.current.ended?p.current.play():p.current.pause(),r()};function he(){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:pe},y.createElement("div",{ref:k,className:`${oe.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${oe.animate__loop}`},me&&Ve?Ve.login:" "),y.createElement("div",{className:oe.container},y.createElement("div",{className:oe["video-container"],id:"video-container"},y.createElement("div",{className:oe["playback-animation"],id:"playback-animation"},y.createElement("svg",{className:oe["playback-icons"]},y.createElement("use",{className:"hidden",href:"#play-icon"}),y.createElement("use",{href:"#pause"}))),y.createElement("video",{className:oe.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:p,autoPlay:re}),y.createElement("div",{className:`${oe["video-controls"]} `,id:"video-controls"},y.createElement("div",{className:oe["bottom-controls"]},y.createElement("div",{className:oe["left-controls"]},y.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Q},y.createElement("svg",{className:oe["playback-icons"]},y.createElement("use",{ref:de,href:"#play-icon"}),y.createElement("use",{ref:H,style:{display:"none"},href:"#pause"}))),y.createElement("div",{className:oe.time},y.createElement("time",{id:"time-elapsed",ref:J},"00:00"),y.createElement("span",null," / "),y.createElement("time",{id:"duration",ref:j},"00:00"))),y.createElement("div",{className:oe["right-controls"]},U&&y.createElement(F.Z,{placement:"top",overlayClassName:oe.rateOverlay,getPopupContainer:ce=>ce.parentNode,menu:{items:[{key:"1",label:y.createElement("span",{onClick:()=>{B(1),p.current.playbackRate=1}},"1.0x")},{key:"2",label:y.createElement("span",{onClick:()=>{B(1.5),p.current.playbackRate=1.5}},"1.5x")},{key:"3",label:y.createElement("span",{onClick:()=>{B(2),p.current.playbackRate=2}},"2.0x")}]}},y.createElement("div",{className:`${oe.controlText} mr5`},"\u500D\u901F")),y.createElement(ue.CopyToClipboard,{text:Ce,onCopy:()=>C.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:oe["volume-controls"]},y.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:oe["volume-button"],id:"volume-button",onClick:he},y.createElement("i",{ref:ge,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),y.createElement("i",{ref:ke,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),y.createElement("i",{ref:Te,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),y.createElement("input",{className:oe.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Re,style:{display:"none"},onClick:c})),y.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:oe["fullscreen-button"],onClick:()=>{(0,le.vp)()?(0,le.BU)():(0,le.Dj)(pe.current)}},y.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),y.createElement("div",{className:oe["video-progress"]},y.createElement("progress",{ref:O,value:"0",min:"0"}),y.createElement("input",{className:oe.seek,ref:X,value:"0",min:"0",type:"range",step:"1"}),y.createElement("div",{className:oe["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"})))))})},40835:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return C}});var y=a(59301);function C(F,Y){const D=(0,y.useRef)();(0,y.useEffect)(()=>{D.current=F}),(0,y.useEffect)(()=>{function f(){D.current()}if(Y!==null){let ue=setInterval(f,Y);return()=>clearInterval(ue)}},[Y])}},29128:function(ft,Ne,a){"use strict";a.r(Ne),a.d(Ne,{default:function(){return g},formatQuery:function(){return E}});var y=a(59301),C=a(75759),F=a(71418),Y={bg:"bg___eq_Aq",container:"container___j770l",widthle:"widthle___ouh1T"},D=a(24334),f=a(88852),ue=a(43418),le=a(13570),oe=a(78673),Se=a(64165),fe={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"},M=a(40835),d=a(68155),ne=a(19694),q=a(59301),U=Object.defineProperty,Ce=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,N=(r,c,v)=>c in r?U(r,c,{enumerable:!0,configurable:!0,writable:!0,value:v}):r[c]=v,u=(r,c)=>{for(var v in c||(c={}))K.call(c,v)&&N(r,v,c[v]);if(Ce)for(var v of Ce(c))A.call(c,v)&&N(r,v,c[v]);return r},S=(r,c)=>{var v={};for(var B in r)K.call(r,B)&&c.indexOf(B)<0&&(v[B]=r[B]);if(r!=null&&Ce)for(var B of Ce(r))c.indexOf(B)<0&&A.call(r,B)&&(v[B]=r[B]);return v},T=(r,c,v)=>new Promise((B,Q)=>{var he=z=>{try{se(v.next(z))}catch(Le){Q(Le)}},ce=z=>{try{se(v.throw(z))}catch(Le){Q(Le)}},se=z=>z.done?B(z.value):Promise.resolve(z.value).then(he,ce);se((v=v.apply(r,c)).next())});const P=r=>{var c=r,{videoDetail:v,globalSetting:B,loading:Q,dispatch:he}=c,ce=S(c,["videoDetail","globalSetting","loading","dispatch"]);const se=(0,C.useIntl)(),{queryParams:z,selectParams:Le,videoList:Be}=v,{subject_id:W,videoId:Ke}=z,{checkBoxValue:Me,radioValue:rt}=Le,ze={videoId:Ke},it={query:z},pt=(0,y.useRef)(),lt=(0,y.useRef)(),nt=(0,y.useRef)(),mt=(0,y.useRef)(5),{video_item:Ge}=v.detail||{};(0,M.Z)(()=>T(void 0,null,function*(){lt.current&&(console.log("videoRef lastUpdatedTime: ",pt.current.getLastUpdatedTime()),console.log(pt.current),yield Fe())}),mt.current*1e3);const Fe=(ot=!1)=>{const at=ot?{is_f:1}:{};return(0,d.DH)(u(u({},at),{id:ze.videoId,point:pt.current.getLastUpdatedTime(),total:pt.current.getDuration()}))},Je=ot=>(ot.ed==="1"&&(lt.current=!1,Fe(!0)),!lt.current&&!ot.ed&&(lt.current=!0,mt.current=pt.current.getDuration()<=5?1:5,Fe()),he({type:"userDetail/logWatchHistory",payload:ot})),yt=()=>{lt.current=!1},ht=()=>{lt.current=!0},xt=()=>{nt.current=5,ue.default.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:q.createElement("div",{className:"tc font14"},q.createElement(le.Z,{defaultValue:nt.current,onChange:ot=>nt.current=ot,className:fe.modalRating})),onOk:()=>T(void 0,null,function*(){if((yield(0,d.jK)({id:ze.videoId,star:nt.current})).status===0){const{course_id:at}=(0,ne.oP)();he({type:"videoDetail/getVideoDetail",payload:{id:ze.videoId,videoId:ze.videoId,course_id:at,subject_id:W}})}})})},wt=ot=>{const at=window.filterVideoSign,Lt=at.findIndex(s=>s.id===Ke);if(Lt===at.length-1)return;const e=at[Lt+1].id,t=at[Lt+1].can_view,n=at[Lt+1].link,i=at[Lt+1].is_public;if(window.checkBoxValue){if(n){window.open(n);return}if(!t){ue.default.info({centered:!0,width:400,okText:se.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),icon:null,content:q.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(!i){ue.default.info({centered:!0,width:400,okText:se.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),icon:null,content:q.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}he({type:"videoDetail/handleListItemClick",payload:{videoId:e}}),window.videoTimer=setTimeout(()=>{ot.current.play()},2e3)}},_t=(ot,at)=>{if(ot==="checkBox"){const Lt=at;window.checkBoxValue=Lt,he({type:"videoDetail/setSelectValue",payload:{radioValue:rt,checkBoxValue:Lt}});return}he({type:"videoDetail/setSelectValue",payload:{checkBoxValue:Me,radioValue:at.target.value}})},bt=()=>Be.findIndex(Lt=>Lt.id===Ke)===Be.length-1?q.createElement("div",null,"\u5F53\u524D\u5DF2\u662F\u6700\u540E\u4E00\u4E2A\u89C6\u9891"):q.createElement("div",null,q.createElement(oe.Z,{onChange:Lt=>{_t("checkBox",Lt)},defaultChecked:Me,size:"small"}),q.createElement("span",{className:fe.zdbf},"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891"));return q.createElement("aside",{className:fe.contentWrap},q.createElement("aside",{className:fe.wrap},q.createElement("header",null),q.createElement("div",{className:fe.title},Ge==null?void 0:Ge.name),!(Ge!=null&&Ge.can_edit)&&!(Ge!=null&&Ge.is_public)?q.createElement(Se.Z,{description:"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85"}):q.createElement(f.Z,{ref:pt,startTime:Ge==null?void 0:Ge.last_point,src:Ge!=null&&Ge.is_link?Ge==null?void 0:Ge.link:(Ge==null?void 0:Ge.play_url)&&D.Base64.decode(Ge==null?void 0:Ge.play_url),videoId:Ge==null?void 0:Ge.video_id,logWatchHistory:Je,handlePause:yt,handlePlay:ht,allow_skip:Ge==null?void 0:Ge.allow_skip,handlePlayEnded:wt,toLog:()=>{}}),q.createElement("div",{className:fe.footer},q.createElement("div",{className:fe.footer_left},q.createElement("div",{className:fe.pingfen},"\u8BC4\u5206"),q.createElement(le.Z,{value:Ge==null?void 0:Ge.star,disabled:!0,className:fe.rating,style:{color:"#FFA100",fontSize:12,marginLeft:10}}),q.createElement("div",{className:fe.fenshu},(Ge==null?void 0:Ge.star)||0,"\u5206")),!(Ge!=null&&Ge.can_edit)&&!(Ge!=null&&Ge.is_public)?null:q.createElement("div",null,q.createElement("div",{className:fe.checkBox},bt()))),q.createElement("div",{className:"mt10"},(Ge==null?void 0:Ge.description)&&q.createElement("span",{className:fe.introName},"\u7B80\u4ECB\uFF1A",Ge.description))))};var w=(0,C.connect)(({videoDetail:r,loading:c,globalSetting:v})=>({videoDetail:r,globalSetting:v,loading:c}))(P),re=a(8591),G=a(17574),me={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"},L=a(7494),xe=a(18303),x=a(35545),$=a(59301),p=Object.defineProperty,k=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,H=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,O=(r,c,v)=>c in r?p(r,c,{enumerable:!0,configurable:!0,writable:!0,value:v}):r[c]=v,j=(r,c)=>{for(var v in c||(c={}))de.call(c,v)&&O(r,v,c[v]);if(H)for(var v of H(c))X.call(c,v)&&O(r,v,c[v]);return r},J=(r,c)=>k(r,pe(c)),ae=(r,c)=>{var v={};for(var B in r)de.call(r,B)&&c.indexOf(B)<0&&(v[B]=r[B]);if(r!=null&&H)for(var B of H(r))c.indexOf(B)<0&&X.call(r,B)&&(v[B]=r[B]);return v},ge=(r,c,v)=>new Promise((B,Q)=>{var he=z=>{try{se(v.next(z))}catch(Le){Q(Le)}},ce=z=>{try{se(v.throw(z))}catch(Le){Q(Le)}},se=z=>z.done?B(z.value):Promise.resolve(z.value).then(he,ce);se((v=v.apply(r,c)).next())});const Te=r=>{var c=r,{dispatch:v,pathsDetail:B,videoDetail:Q,user:he}=c,ce=ae(c,["dispatch","pathsDetail","videoDetail","user"]);const se=(0,C.useIntl)(),{queryParams:z,stages:Le,cust_seq:Be,active:W}=Q,{subject_id:Ke,course_id:Me}=z,rt=(0,C.useParams)(),[ze]=(0,C.useSearchParams)(),[it,pt]=(0,y.useState)([]),[lt,nt]=(0,y.useState)([(W==null?void 0:W.id)||Number(rt.videoId)]),[mt,Ge]=(0,y.useState)("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"),Fe=[".PDF",".DOC",".DOCX",".XLS",".XLSX",".PPT",".PPTX"],Je=[{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",icon:$.createElement("i",{className:"iconfont icon-shixun2 font20"}),bq:$.createElement("span",{style:{border:"1px solid #FF9D18",color:"#FF9D18"},className:me.s1},"\u5B9E\u8BAD")},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",icon:$.createElement("i",{className:"iconfont icon-shipin font20"}),bq:$.createElement("span",{style:{border:"1px solid #9B18FF",color:"#9B18FF"},className:me.s1},"\u89C6\u9891")},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",icon:$.createElement("i",{className:"iconfont icon-jiaoxueanli font20"}),bq:$.createElement("span",{style:{border:"1px solid #3061D0",color:"#3061D0"},className:me.s1},"\u8D44\u6599")},{name:"\u7A7A\u76EE\u5F55",type:"StageCatalog",icon:$.createElement("i",{className:"iconfont icon-kongbai font20"}),bq:$.createElement("span",null)}];(0,y.useEffect)(()=>{v(Ke?{type:"videoDetail/getStageData",payload:{subject_id:Ke,page_type:"video"}}:{type:"videoDetail/getCourseStageData",payload:{coursesId:Me}})},[]),(0,y.useEffect)(()=>{yt()},[Q==null?void 0:Q.stages]);const yt=()=>{let ee=it;Le.forEach((e,t)=>{ee.push({title:$.createElement("div",{title:e.stage_name,className:me.title},e.stage_name),value:e==null?void 0:e.stage_id,key:e==null?void 0:e.stage_id,icon:$.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:ht(e.items||[])})}),pt(ee)},ht=ee=>{function e(t){var n;const i=t.children,s=Array.isArray(i)&&i.length>0,R=t==null?void 0:t.id,{name:I,item_type:we,id:ye}=t,Ae=(n=Je.find($e=>$e.type===we))==null?void 0:n.bq,Xe=me.brght,Qe=W.id===ye?`${Xe} ${me.active}`:Xe;return{title:$.createElement("div",{onClick:()=>bt(t),className:Xe,title:I},Ae,$.createElement("div",{className:me.s3},I)),value:R,key:R,icon:$.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:s?i==null?void 0:i.map($e=>e($e)):[]}}return ee==null?void 0:ee.map(t=>e(t))},xt=(ee,e)=>ge(void 0,null,function*(){v({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u7A0D\u540E..."}});const t=e?yield(0,xe.BK)({id:ee}):yield(0,xe.Ir)({id:ee});if(v({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),t!=null&&t.game_identifier||t!=null&&t.identifier){(0,ne.xg)(e?`/tasks/${t==null?void 0:t.identifier}/jupyter`:`/tasks/${t.game_identifier}`);return}(t==null?void 0:t.status)===2?_t(t==null?void 0:t.message):(t==null?void 0:t.status)===3&&wt(t==null?void 0:t.message)}),wt=ee=>{ue.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:$.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",ee,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},_t=ee=>{ee=ee!=null&&ee.includes(".json")?ee:`${ee}.json`,ue.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:$.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>ge(void 0,null,function*(){const e=yield(0,L.L8)({url:ee});if(!e)return;re.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const t=yield(0,xe.Ir)({id:e.shixun_identifier});if(t!=null&&t.game_identifier){(0,ne.xg)(`/tasks/${t.game_identifier}`);return}(t==null?void 0:t.status)===2?_t(t==null?void 0:t.message):(t==null?void 0:t.status)===3&&wt(t==null?void 0:t.message)})})},bt=ee=>{var e,t,n,i,s;if((ee==null?void 0:ee.item_type)==="StageCatalog")return;clearTimeout(window.videoTimer);const{id:R,item_type:I,identifier:we,is_jupyter:ye,url:Ae,link:Xe}=ee;if(I==="VideoItem"&&!Xe){if(!((e=he.userInfo)!=null&&e.admin)&&!((t=he.userInfo)!=null&&t.business)&&!ee.can_view){ue.default.info({centered:!0,width:400,okText:se.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),icon:null,content:$.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}v({type:"videoDetail/handleListItemClick",payload:{videoId:R}}),v({type:"videoDetail/getVideoDetail",payload:J(j({id:R},z),{videoId:R}),callback:Qe=>{if(Qe&&Qe.video_item&&!Qe.video_item.can_edit&&!ee.is_public){ue.default.info({centered:!0,width:400,okText:se.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),icon:null,content:$.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}}});return}if(I==="VideoItem"&&Xe){ee.link&&(0,d.DH)({is_f:1,id:ee.id,point:0,total:0}),window.open(Xe);return}if(I==="Shixun"){xt(we,ye);return}if(I==="Attachment"){if(Xe){(0,ne.xg)(Xe);return}let Qe=(i=ee==null?void 0:ee.name)==null?void 0:i.substr((n=ee==null?void 0:ee.name)==null?void 0:n.lastIndexOf("."));if(Fe.includes(Qe.toUpperCase())){v({type:"videoDetail/handleListItemClick",payload:{attachmentId:R}});return}else{if(!((s=B.detail)!=null&&s.allow_download)){re.ZP.info("\u6559\u5B66\u8BFE\u4EF6\u4E0D\u652F\u6301\u4E0B\u8F7D");return}(0,ne.FH)(ee.name,x.Z.API_SERVER+ee.url);return}}window.open(x.Z.IMG_SERVER+Ae)},ot=ee=>{let e=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],t=["","\u5341","\u767E","\u5343","\u4E07"];ee=parseInt(ee);let n=R=>{let I=R.toString().split("").reverse(),we="";for(var ye=0;ye<I.length;ye++)we=(ye==0&&I[ye]==0||ye>0&&I[ye]==0&&I[ye-1]==0?"":e[I[ye]]+(I[ye]==0?t[0]:t[ye]))+we;return we},i=Math.floor(ee/1e4),s=ee%1e4;return s.toString().length<4&&(s="0"+s),i?n(i)+"\u4E07"+n(s):n(ee)},at=(ee,e,t,n)=>{var i;const{name:s,item_type:R,id:I}=ee,we=`${e+1}-${t+1}-${n+1}`,ye=(i=Je.find(Qe=>Qe.type===R))==null?void 0:i.icon,Ae=me.brght,Xe=W.id===I?`${Ae} ${me.active}`:Ae;return $.createElement("div",{key:we,onClick:()=>bt(ee),className:Xe,style:{paddingLeft:52}},$.createElement("span",{className:me.s1},ye),!!Be&&$.createElement("span",{className:me.s2},we),$.createElement("span",{className:me.s3},"\u203B ",s))},Lt=(ee,e,t)=>{var n;const{name:i,item_type:s,id:R,children:I}=ee,we=`${e+1}-${t+1}`,ye=(n=Je.find(Qe=>Qe.type===s))==null?void 0:n.icon,Ae=me.brght,Xe=W.id===R?`${Ae} ${me.active}`:Ae;return $.createElement(y.Fragment,{key:we},$.createElement("div",{onClick:()=>bt(ee),className:Xe},$.createElement("span",{className:me.s1},ye),!!Be&&$.createElement("span",{className:me.s2},we),$.createElement("span",{className:me.s3},"\u203B ",i)),!!I.length&&I.map((Qe,$e)=>at(Qe,e,t,$e)))};return $.createElement("aside",{className:me.list},$.createElement("div",{className:me.tabs_style},$.createElement("div",{className:me.tabs_item,onClick:()=>{Ge("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55")}},"\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55",mt=="\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"&&$.createElement("div",{className:me.tabs_item_active}))),$.createElement("div",{className:me.tree_style},(it==null?void 0:it.length)>0&&$.createElement(G.default,{selectedKeys:lt,onSelect:(ee,e)=>{nt([...ee])},blockNode:!0,treeData:it,defaultExpandAll:!0,className:me.tree_line})))};var ke=(0,C.connect)(({user:r,videoDetail:c,loading:v,globalSetting:B,pathsDetail:Q})=>({user:r,videoDetail:c,globalSetting:B,loading:v,pathsDetail:Q}))(Te),Re=a(58880),We=a(59301),Ze=Object.defineProperty,Ue=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,_=(r,c,v)=>c in r?Ze(r,c,{enumerable:!0,configurable:!0,writable:!0,value:v}):r[c]=v,m=(r,c)=>{for(var v in c||(c={}))Oe.call(c,v)&&_(r,v,c[v]);if(V)for(var v of V(c))h.call(c,v)&&_(r,v,c[v]);return r},o=(r,c)=>Ue(r,Ve(c)),b=(r,c)=>{var v={};for(var B in r)Oe.call(r,B)&&c.indexOf(B)<0&&(v[B]=r[B]);if(r!=null&&V)for(var B of V(r))c.indexOf(B)<0&&h.call(r,B)&&(v[B]=r[B]);return v},Z=(r,c,v)=>new Promise((B,Q)=>{var he=z=>{try{se(v.next(z))}catch(Le){Q(Le)}},ce=z=>{try{se(v.throw(z))}catch(Le){Q(Le)}},se=z=>z.done?B(z.value):Promise.resolve(z.value).then(he,ce);se((v=v.apply(r,c)).next())});const E=r=>{const{subject_id:c}=r;return{subject_id:c,course_id:c}},l=r=>{var c=r,{videoDetail:v,globalSetting:B,loading:Q,pathsDetail:he,dispatch:ce}=c,se=b(c,["videoDetail","globalSetting","loading","pathsDetail","dispatch"]),z,Le;const{queryParams:Be,videoList:W,attachmentList:Ke,active:Me}=v,{subject_id:rt,videoId:ze}=Be,it={videoId:ze};(0,y.useEffect)(()=>{if(Me){const{item_type:nt,id:mt}=Me;nt==="VideoItem"&&ce({type:"videoDetail/getVideoDetail",payload:o(m({},Be),{id:mt})})}},[Me.id]),console.log("---",Me),(0,y.useEffect)(()=>{rt&&pt()},[]);function pt(){return Z(this,null,function*(){const nt=yield ce({type:"pathsDetail/getPathsDetail",payload:{id:rt}})})}(0,y.useEffect)(()=>{var nt,mt;(0,ne.Dk)((mt=(nt=v.detail)==null?void 0:nt.video_item)==null?void 0:mt.name)},[v]);let lt={width:1200};return Me&&Me.item_type==="Attachment"&&Me.content_type==="application/pdf"&&(lt={width:1250,marginLeft:(document.body.clientWidth-1200)/2}),We.createElement(F.Z,{spinning:!1},We.createElement("section",{className:Y.bg},We.createElement("div",{className:Y.container,style:lt},We.createElement(ke,null),Me&&Me.item_type==="VideoItem"&&We.createElement(w,null),Me&&Me.item_type==="Attachment"&&Me.content_type==="application/pdf"&&Me.url&&We.createElement("div",{className:Y.widthle},We.createElement(Re.Z,{disabledDownload:!((z=he.detail)!=null&&z.allow_download),type:"pdf",filename:Me.name,data:x.Z.API_SERVER+Me.url,style:{position:"absolute",zIndex:1}})),Me&&Me.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(Me.content_type)&&Me.url&&We.createElement("div",{className:Y.widthle},We.createElement(Re.Z,{disabledDownload:!((Le=he.detail)!=null&&Le.allow_download),type:"office",data:x.Z.API_SERVER+Me.url,style:{position:"absolute",zIndex:1}})))))};var g=(0,C.connect)(({videoDetail:r,loading:c,globalSetting:v,pathsDetail:B})=>({videoDetail:r,globalSetting:v,loading:c,pathsDetail:B}))(l)},74905:function(ft,Ne,a){"use strict";a.d(Ne,{BU:function(){return C},Dj:function(){return y},gH:function(){return F},vp:function(){return Y}});function y(D){try{D.mozRequestFullScreen?D.mozRequestFullScreen():D.webkitRequestFullScreen&&D.webkitRequestFullScreen()}catch(f){console.log(f,":e")}}function C(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const F=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function Y(){var D=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,f=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",D),window.isFullScreen?window.isFullScreen:D!=null}},4089:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return Lt}});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 i=arguments[n];if(i!=null)for(let s in i)i.hasOwnProperty(s)&&(t[s]=i[s])}return t},typeof self.Promise!="function"&&a(3867).polyfill()}}y.install();var C=y,F=a(86204),Y=a.n(F);class D{static e(e,t){(!e||D.FORCE_GLOBAL_TAG)&&(e=D.GLOBAL_TAG);let n=`[${e}] > ${t}`;D.ENABLE_CALLBACK&&D.emitter.emit("log","error",n),D.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}static i(e,t){(!e||D.FORCE_GLOBAL_TAG)&&(e=D.GLOBAL_TAG);let n=`[${e}] > ${t}`;D.ENABLE_CALLBACK&&D.emitter.emit("log","info",n),D.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}static w(e,t){(!e||D.FORCE_GLOBAL_TAG)&&(e=D.GLOBAL_TAG);let n=`[${e}] > ${t}`;D.ENABLE_CALLBACK&&D.emitter.emit("log","warn",n),D.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}static d(e,t){(!e||D.FORCE_GLOBAL_TAG)&&(e=D.GLOBAL_TAG);let n=`[${e}] > ${t}`;D.ENABLE_CALLBACK&&D.emitter.emit("log","debug",n),D.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}static v(e,t){(!e||D.FORCE_GLOBAL_TAG)&&(e=D.GLOBAL_TAG);let n=`[${e}] > ${t}`;D.ENABLE_CALLBACK&&D.emitter.emit("log","verbose",n),D.ENABLE_VERBOSE&&console.log(n)}}D.GLOBAL_TAG="flv.js",D.FORCE_GLOBAL_TAG=!1,D.ENABLE_ERROR=!0,D.ENABLE_INFO=!0,D.ENABLE_WARN=!0,D.ENABLE_DEBUG=!0,D.ENABLE_VERBOSE=!0,D.ENABLE_CALLBACK=!1,D.emitter=new(Y());var f=D;class ue{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(e){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let e=(this._now()-this._lastCheckpoint)/1e3;return e==0&&(e=1),this._intervalBytes/e/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}var le=ue;class oe{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class Se extends oe{constructor(e){super(e)}get name(){return"IllegalStateException"}}class fe extends oe{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class M extends oe{constructor(e){super(e)}get name(){return"NotImplementedException"}}const d={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},ne={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class q{constructor(e){this._type=e||"undefined",this._status=d.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=d.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===d.kConnecting||this._status===d.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 M("Unimplemented abstract function!")}abort(){throw new M("Unimplemented abstract function!")}}let U={};function Ce(){let ee=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(ee)||/(opr)[\/]([\w.]+)/.exec(ee)||/(chrome)[ \/]([\w.]+)/.exec(ee)||/(iemobile)[\/]([\w.]+)/.exec(ee)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(ee)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(ee)||/(webkit)[ \/]([\w.]+)/.exec(ee)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ee)||/(msie) ([\w.]+)/.exec(ee)||ee.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(ee)||ee.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(ee)||[],t=/(ipad)/.exec(ee)||/(ipod)/.exec(ee)||/(windows phone)/.exec(ee)||/(iphone)/.exec(ee)||/(kindle)/.exec(ee)||/(android)/.exec(ee)||/(windows)/.exec(ee)||/(mac)/.exec(ee)||/(linux)/.exec(ee)||/(cros)/.exec(ee)||[],n={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",majorVersion:e[4]||e[2]||"0",platform:t[0]||""},i={};if(n.browser){i[n.browser]=!0;let s=n.majorVersion.split(".");i.version={major:parseInt(n.majorVersion,10),string:n.version},s.length>1&&(i.version.minor=parseInt(s[1],10)),s.length>2&&(i.version.build=parseInt(s[2],10))}if(n.platform&&(i[n.platform]=!0),(i.chrome||i.opr||i.safari)&&(i.webkit=!0),i.rv||i.iemobile){i.rv&&delete i.rv;let s="msie";n.browser=s,i[s]=!0}if(i.edge){delete i.edge;let s="msedge";n.browser=s,i[s]=!0}if(i.opr){let s="opera";n.browser=s,i[s]=!0}if(i.safari&&i.android){let s="android";n.browser=s,i[s]=!0}i.name=n.browser,i.platform=n.platform;for(let s in U)U.hasOwnProperty(s)&&delete U[s];Object.assign(U,i)}Ce();var K=U;class A extends q{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 i=this._seekHandler.getConfig(n,t),s=new self.Headers;if(typeof i.headers=="object"){let I=i.headers;for(let we in I)I.hasOwnProperty(we)&&s.append(we,I[we])}let R={method:"GET",headers:s,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let I in this._config.headers)s.append(I,this._config.headers[I]);e.cors===!1&&(R.mode="same-origin"),e.withCredentials&&(R.credentials="include"),e.referrerPolicy&&(R.referrerPolicy=e.referrerPolicy),this._status=d.kConnecting,self.fetch(i.url,R).then(I=>{if(this._requestAbort){this._requestAbort=!1,this._status=d.kIdle;return}if(I.ok&&I.status>=200&&I.status<=299){if(I.url!==i.url&&this._onURLRedirect){let ye=this._seekHandler.removeURLParameters(I.url);this._onURLRedirect(ye)}let we=I.headers.get("Content-Length");return we!=null&&(this._contentLength=parseInt(we),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,I.body.getReader())}else if(this._status=d.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:I.status,msg:I.statusText});else throw new oe("FetchStreamLoader: Http code invalid, "+I.status+" "+I.statusText)}).catch(I=>{if(this._status=d.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:I.message});else throw I})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=d.kError;let n=ne.EARLY_EOF,i={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(n,i);else throw new oe(i.msg)}else this._status=d.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=d.kComplete,e.cancel();this._status=d.kBuffering;let n=t.value.buffer,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),this._pump(e)}}).catch(t=>{if(t.code===11&&K.msedge)return;this._status=d.kError;let n=0,i=null;if((t.code===19||t.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(n=ne.EARLY_EOF,i={code:t.code,msg:"Fetch stream meet Early-EOF"}):(n=ne.EXCEPTION,i={code:t.code,msg:t.message}),this._onError)this._onError(n,i);else throw new oe(i.msg)})}}var N=A;class u extends q{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 f.w("MozChunkedLoader",e.message),!1}}constructor(e,t){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let n=e.url;this._config.reuseRedirectedURL&&e.redirectedURL!=null&&(n=e.redirectedURL);let i=this._seekHandler.getConfig(n,t);this._requestURL=i.url;let s=this._xhr=new XMLHttpRequest;if(s.open("GET",i.url,!0),s.responseType="moz-chunked-arraybuffer",s.onreadystatechange=this._onReadyStateChange.bind(this),s.onprogress=this._onProgress.bind(this),s.onloadend=this._onLoadEnd.bind(this),s.onerror=this._onXhrError.bind(this),e.withCredentials&&(s.withCredentials=!0),typeof i.headers=="object"){let R=i.headers;for(let I in R)R.hasOwnProperty(I)&&s.setRequestHeader(I,R[I])}if(typeof this._config.headers=="object"){let R=this._config.headers;for(let I in R)R.hasOwnProperty(I)&&s.setRequestHeader(I,R[I])}this._status=d.kConnecting,s.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=d.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=d.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new oe("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);else this._status=d.kBuffering}}_onProgress(e){if(this._status===d.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===d.kError)return;this._status=d.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(e){this._status=d.kError;let t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=ne.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=ne.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new oe(n.msg)}}var S=u;class T extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="ms-stream",e.responseType==="ms-stream"}catch(e){return Log.w("MSStreamLoader",e.message),!1}}constructor(e,t){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(e,t){this._internalOpen(e,t,!1)}_internalOpen(e,t,n){this._dataSource=e,n?this._currentRange=t:this._totalRange=t;let i=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?i=this._currentRedirectedURL:e.redirectedURL!=null&&(i=e.redirectedURL));let s=this._seekHandler.getConfig(i,t);this._currentRequestURL=s.url;let R=this._reader=new self.MSStreamReader;R.onprogress=this._msrOnProgress.bind(this),R.onload=this._msrOnLoad.bind(this),R.onerror=this._msrOnError.bind(this);let I=this._xhr=new XMLHttpRequest;if(I.open("GET",s.url,!0),I.responseType="ms-stream",I.onreadystatechange=this._xhrOnReadyStateChange.bind(this),I.onerror=this._xhrOnError.bind(this),e.withCredentials&&(I.withCredentials=!0),typeof s.headers=="object"){let we=s.headers;for(let ye in we)we.hasOwnProperty(ye)&&I.setRequestHeader(ye,we[ye])}if(typeof this._config.headers=="object"){let we=this._config.headers;for(let ye in we)we.hasOwnProperty(ye)&&I.setRequestHeader(ye,we[ye])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,I.send()}abort(){this._internalAbort(),this._status=LoaderStatus.kComplete}_internalAbort(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}_xhrOnReadyStateChange(e){let t=e.target;if(t.readyState===2)if(t.status>=200&&t.status<=299){if(this._status=LoaderStatus.kBuffering,t.responseURL!=null){let i=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&i!==this._currentRedirectedURL&&(this._currentRedirectedURL=i,this._onURLRedirect&&this._onURLRedirect(i))}let n=t.getResponseHeader("Content-Length");if(n!=null&&this._contentLength==null){let i=parseInt(n);i>0&&(this._contentLength=i,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+t.status+" "+t.statusText);else if(t.readyState===3&&t.status>=200&&t.status<=299){this._status=LoaderStatus.kBuffering;let n=t.response;this._reader.readAsArrayBuffer(n)}}_xhrOnError(e){this._status=LoaderStatus.kError;let t=LoaderErrors.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type};if(this._onError)this._onError(t,n);else throw new RuntimeException(n.msg)}_msrOnProgress(e){let n=e.target.result;if(n==null){this._doReconnectIfNeeded();return}let i=n.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=n.byteLength;let s=this._totalRange.from+this._receivedLength;this._receivedLength+=i.byteLength,this._onDataArrival&&this._onDataArrival(i,s,this._receivedLength),n.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${s+i.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let e={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,e,!0)}}_msrOnLoad(e){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(e){this._status=LoaderStatus.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength<this._contentLength?(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:"MSStream meet Early-Eof"}):(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new RuntimeException(n.msg)}}var P=null;class w extends q{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer",e.responseType==="arraybuffer"}catch(e){return f.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 le,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=d.kConnecting;let n=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(n=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!n?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let e=this._currentChunkSizeKB*1024,t=this._range.from+this._receivedLength,n=t+e;this._contentLength!=null&&n-this._range.from>=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(e,t){this._lastTimeLoaded=0;let n=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?n=this._currentRedirectedURL:e.redirectedURL!=null&&(n=e.redirectedURL));let i=this._seekHandler.getConfig(n,t);this._currentRequestURL=i.url;let s=this._xhr=new XMLHttpRequest;if(s.open("GET",i.url,!0),s.responseType="arraybuffer",s.onreadystatechange=this._onReadyStateChange.bind(this),s.onprogress=this._onProgress.bind(this),s.onload=this._onLoad.bind(this),s.onerror=this._onXhrError.bind(this),e.withCredentials&&(s.withCredentials=!0),typeof i.headers=="object"){let R=i.headers;for(let I in R)R.hasOwnProperty(I)&&s.setRequestHeader(I,R[I])}if(typeof this._config.headers=="object"){let R=this._config.headers;for(let I in R)R.hasOwnProperty(I)&&s.setRequestHeader(I,R[I])}s.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=d.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=d.kBuffering}else if(this._status=d.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new oe("RangeLoader: Http code invalid, "+t.status+" "+t.statusText)}}_onProgress(e){if(this._status===d.kError)return;if(this._contentLength===null){let n=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,n=!0;let i=e.total;this._internalAbort(),i!=null&i!==0&&(this._totalLength=i)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,n){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let t=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(t)}_normalizeSpeed(e){let t=this._chunkSizeKBList,n=t.length-1,i=0,s=0,R=n;if(e<t[0])return t[0];for(;s<=R;){if(i=s+Math.floor((R-s)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?s=i+1:R=i-1}}_onLoad(e){if(this._status===d.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 R=this._normalizeSpeed(t);this._currentSpeedNormalized!==R&&(this._currentSpeedNormalized=R,this._currentChunkSizeKB=R)}let n=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength;let s=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():s=!0,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),s&&(this._status=d.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(e){this._status=d.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=ne.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=ne.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new oe(n.msg)}}var re=w;class G extends q{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=d.kConnecting}catch(t){this._status=d.kError;let n={code:t.code,msg:t.message};if(this._onError)this._onError(ne.EXCEPTION,n);else throw new oe(n.msg)}}abort(){let e=this._ws;e&&(e.readyState===0||e.readyState===1)&&(this._requestAbort=!0,e.close()),this._ws=null,this._status=d.kComplete}_onWebSocketOpen(e){this._status=d.kBuffering}_onWebSocketClose(e){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=d.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=d.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,t);else throw new oe(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=d.kError;let t={code:e.code,msg:e.message};if(this._onError)this._onError(ne.EXCEPTION,t);else throw new oe(t.msg)}}var me=G;class L{constructor(e){this._zeroStart=e||!1}getConfig(e,t){let n={};if(t.from!==0||t.to!==-1){let i;t.to!==-1?i=`bytes=${t.from.toString()}-${t.to.toString()}`:i=`bytes=${t.from.toString()}-`,n.Range=i}else this._zeroStart&&(n.Range="bytes=0-");return{url:e,headers:n}}removeURLParameters(e){return e}}var xe=L;class x{constructor(e,t){this._startName=e,this._endName=t}getConfig(e,t){let n=e;if(t.from!==0||t.to!==-1){let i=!0;n.indexOf("?")===-1&&(n+="?",i=!1),i&&(n+="&"),n+=`${this._startName}=${t.from.toString()}`,t.to!==-1&&(n+=`&${this._endName}=${t.to.toString()}`)}return{url:n,headers:{}}}removeURLParameters(e){let t=e.split("?")[0],n,i=e.indexOf("?");i!==-1&&(n=e.substring(i+1));let s="";if(n!=null&&n.length>0){let R=n.split("&");for(let I=0;I<R.length;I++){let we=R[I].split("="),ye=I>0;we[0]!==this._startName&&we[0]!==this._endName&&(ye&&(s+="&"),s+=R[I])}}return s.length===0?t:t+"?"+s}}var $=x;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 le,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 xe(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new $(t,n)}else if(e.seekType==="custom"){if(typeof e.customSeekHandler!="function")throw new fe("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new fe(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=me;else if(N.isSupported())this._loaderClass=N;else if(S.isSupported())this._loaderClass=S;else if(re.isSupported())this._loaderClass=re;else throw new oe("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 fe("Url must be a non-empty string!");this._dataSource.url=e}_expandBuffer(e){let t=this._stashSize;for(;t+1024*1024*1<e;)t*=2;if(t+=1024*1024*1,t===this._bufferSize)return;let n=new ArrayBuffer(t);if(this._stashUsed>0){let i=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,t).set(i,0)}this._stashBuffer=n,this._bufferSize=t}_normalizeSpeed(e){let t=this._speedNormalizeList,n=t.length-1,i=0,s=0,R=n;if(e<t[0])return t[0];for(;s<=R;){if(i=s+Math.floor((R-s)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?s=i+1:R=i-1}}_adjustStashSize(e){let t=0;this._config.isLive||e<512?t=e:e>=512&&e<=1024?t=Math.floor(e*1.5):t=e*2,t>8192&&(t=8192);let n=t*1024+1024*1024*1;this._bufferSize<n&&this._expandBuffer(n),this._stashSize=t*1024}_dispatchChunks(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)}_onURLRedirect(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)}_onContentLengthKnown(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)}_onLoaderChunkArrival(e,t,n){if(!this._onDataArrival)throw new Se("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(e.byteLength);let i=this._speedSampler.lastSecondKBps;if(i!==0){let s=this._normalizeSpeed(i);this._speedNormalized!==s&&(this._speedNormalized=s,this._adjustStashSize(s))}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 s=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let R=this._stashBuffer.slice(0,this._stashUsed),I=this._dispatchChunks(R,this._stashByteStart);if(I<R.byteLength){if(I>0){let we=new Uint8Array(R,I);s.set(we,0),this._stashUsed=we.byteLength,this._stashByteStart+=I}}else this._stashUsed=0,this._stashByteStart+=I;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),s=new Uint8Array(this._stashBuffer,0,this._bufferSize)),s.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let R=this._dispatchChunks(e,t);if(R<e.byteLength){let I=e.byteLength-R;I>this._bufferSize&&(this._expandBuffer(I),s=new Uint8Array(this._stashBuffer,0,this._bufferSize)),s.set(new Uint8Array(e,R),0),this._stashUsed+=I,this._stashByteStart=t+R}}}else if(this._stashUsed===0){let s=this._dispatchChunks(e,t);if(s<e.byteLength){let R=e.byteLength-s;R>this._bufferSize&&this._expandBuffer(R),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,s),0),this._stashUsed+=R,this._stashByteStart=t+s}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let s=new Uint8Array(this._stashBuffer,0,this._bufferSize);s.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let R=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(R<this._stashUsed&&R>0){let I=new Uint8Array(this._stashBuffer,R);s.set(I,0)}this._stashUsed-=R,this._stashByteStart+=R}}_flushStashBuffer(e){if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),i=t.byteLength-n;if(n<t.byteLength)if(e)f.w(this.TAG,`${i} bytes unconsumed data remain when flush buffer, dropped`);else{if(n>0){let s=new Uint8Array(this._stashBuffer,0,this._bufferSize),R=new Uint8Array(t,n);s.set(R,0),this._stashUsed=R.byteLength,this._stashByteStart+=n}return 0}return this._stashUsed=0,this._stashByteStart=0,i}return 0}_onLoaderComplete(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(e,t){switch(f.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=ne.UNRECOVERABLE_EARLY_EOF),e){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let n=this._currentRange.to+1;n<this._totalLength&&(f.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1));return}e=ne.UNRECOVERABLE_EARLY_EOF;break}case ne.UNRECOVERABLE_EARLY_EOF:case ne.CONNECTING_TIMEOUT:case ne.HTTP_STATUS_CODE_INVALID:case ne.EXCEPTION:break}if(this._onError)this._onError(e,t);else throw new oe("IOException: "+t.msg)}}var k=p;const pe={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({},pe)}class de{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let e=new k({},H()),t=e.loaderType;return e.destroy(),t=="fetch-stream-loader"||t=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let e=new k({},H()),t=e.loaderType;return e.destroy(),t}static supportNativeMediaPlayback(e){de.videoElement==null&&(de.videoElement=window.document.createElement("video"));let t=de.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=de.supportMSEH264Playback(),e.networkStreamIO=de.supportNetworkStreamIO(),e.networkLoaderName=de.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=de.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=de.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=de.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var X=de,j={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 J{static get forceGlobalTag(){return f.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){f.FORCE_GLOBAL_TAG=e,J._notifyChange()}static get globalTag(){return f.GLOBAL_TAG}static set globalTag(e){f.GLOBAL_TAG=e,J._notifyChange()}static get enableAll(){return f.ENABLE_VERBOSE&&f.ENABLE_DEBUG&&f.ENABLE_INFO&&f.ENABLE_WARN&&f.ENABLE_ERROR}static set enableAll(e){f.ENABLE_VERBOSE=e,f.ENABLE_DEBUG=e,f.ENABLE_INFO=e,f.ENABLE_WARN=e,f.ENABLE_ERROR=e,J._notifyChange()}static get enableDebug(){return f.ENABLE_DEBUG}static set enableDebug(e){f.ENABLE_DEBUG=e,J._notifyChange()}static get enableVerbose(){return f.ENABLE_VERBOSE}static set enableVerbose(e){f.ENABLE_VERBOSE=e,J._notifyChange()}static get enableInfo(){return f.ENABLE_INFO}static set enableInfo(e){f.ENABLE_INFO=e,J._notifyChange()}static get enableWarn(){return f.ENABLE_WARN}static set enableWarn(e){f.ENABLE_WARN=e,J._notifyChange()}static get enableError(){return f.ENABLE_ERROR}static set enableError(e){f.ENABLE_ERROR=e,J._notifyChange()}static getConfig(){return{globalTag:f.GLOBAL_TAG,forceGlobalTag:f.FORCE_GLOBAL_TAG,enableVerbose:f.ENABLE_VERBOSE,enableDebug:f.ENABLE_DEBUG,enableInfo:f.ENABLE_INFO,enableWarn:f.ENABLE_WARN,enableError:f.ENABLE_ERROR,enableCallback:f.ENABLE_CALLBACK}}static applyConfig(e){f.GLOBAL_TAG=e.globalTag,f.FORCE_GLOBAL_TAG=e.forceGlobalTag,f.ENABLE_VERBOSE=e.enableVerbose,f.ENABLE_DEBUG=e.enableDebug,f.ENABLE_INFO=e.enableInfo,f.ENABLE_WARN=e.enableWarn,f.ENABLE_ERROR=e.enableError,f.ENABLE_CALLBACK=e.enableCallback}static _notifyChange(){let e=J.emitter;if(e.listenerCount("change")>0){let t=J.getConfig();e.emit("change",t)}}static registerListener(e){J.emitter.addListener("change",e)}static removeListener(e){J.emitter.removeListener("change",e)}static addLogListener(e){f.emitter.addListener("log",e),f.emitter.listenerCount("log")>0&&(f.ENABLE_CALLBACK=!0,J._notifyChange())}static removeLogListener(e){f.emitter.removeListener("log",e),f.emitter.listenerCount("log")===0&&(f.ENABLE_CALLBACK=!1,J._notifyChange())}}J.emitter=new(Y());var ae=J;class ge{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let e=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,t=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&e&&t}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(e){if(this.keyframesIndex==null)return null;let t=this.keyframesIndex,n=this._search(t.times,e);return{index:n,milliseconds:t.times[n],fileposition:t.filepositions[n]}}_search(e,t){let n=0,i=e.length-1,s=0,R=0,I=i;for(t<e[0]&&(n=0,R=I+1);R<=I;)if(s=R+Math.floor((I-R)/2),s===i||t>=e[s]&&t<e[s+1]){n=s;break}else e[s]<t?R=s+1:I=s-1;return n}}var Te=ge;function ke(ee,e,t){let n=ee;if(e+t<n.length){for(;t--;)if((n[++e]&192)!==128)return!1;return!0}else return!1}function Re(ee){let e=[],t=ee,n=0,i=ee.length;for(;n<i;){if(t[n]<128){e.push(String.fromCharCode(t[n])),++n;continue}else if(!(t[n]<192)){if(t[n]<224){if(ke(t,n,1)){let s=(t[n]&31)<<6|t[n+1]&63;if(s>=128){e.push(String.fromCharCode(s&65535)),n+=2;continue}}}else if(t[n]<240){if(ke(t,n,2)){let s=(t[n]&15)<<12|(t[n+1]&63)<<6|t[n+2]&63;if(s>=2048&&(s&63488)!==55296){e.push(String.fromCharCode(s&65535)),n+=3;continue}}}else if(t[n]<248&&ke(t,n,3)){let s=(t[n]&7)<<18|(t[n+1]&63)<<12|(t[n+2]&63)<<6|t[n+3]&63;if(s>65536&&s<1114112){s-=65536,e.push(String.fromCharCode(s>>>10|55296)),e.push(String.fromCharCode(s&1023|56320)),n+=4;continue}}}e.push("\uFFFD"),++n}return e.join("")}var We=Re;let Ze=function(){let ee=new ArrayBuffer(2);return new DataView(ee).setInt16(0,256,!0),new Int16Array(ee)[0]===256}();class Ue{static parseScriptData(e,t,n){let i={};try{let s=Ue.parseValue(e,t,n),R=Ue.parseValue(e,t+s.size,n-s.size);i[s.data]=R.data}catch(s){f.e("AMF",s.toString())}return i}static parseObject(e,t,n){if(n<3)throw new Se("Data not enough when parse ScriptDataObject");let i=Ue.parseString(e,t,n),s=Ue.parseValue(e,t+i.size,n-i.size),R=s.objectEnd;return{data:{name:i.data,value:s.data},size:i.size+s.size,objectEnd:R}}static parseVariable(e,t,n){return Ue.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new Se("Data not enough when parse String");let s=new DataView(e,t,n).getUint16(0,!Ze),R;return s>0?R=We(new Uint8Array(e,t+2,s)):R="",{data:R,size:2+s}}static parseLongString(e,t,n){if(n<4)throw new Se("Data not enough when parse LongString");let s=new DataView(e,t,n).getUint32(0,!Ze),R;return s>0?R=We(new Uint8Array(e,t+4,s)):R="",{data:R,size:4+s}}static parseDate(e,t,n){if(n<10)throw new Se("Data size invalid when parse Date");let i=new DataView(e,t,n),s=i.getFloat64(0,!Ze),R=i.getInt16(8,!Ze);return s+=R*60*1e3,{data:new Date(s),size:10}}static parseValue(e,t,n){if(n<1)throw new Se("Data not enough when parse Value");let i=new DataView(e,t,n),s=1,R=i.getUint8(0),I,we=!1;try{switch(R){case 0:I=i.getFloat64(1,!Ze),s+=8;break;case 1:{I=!!i.getUint8(1),s+=1;break}case 2:{let ye=Ue.parseString(e,t+1,n-1);I=ye.data,s+=ye.size;break}case 3:{I={};let ye=0;for((i.getUint32(n-4,!Ze)&16777215)===9&&(ye=3);s<n-4;){let Ae=Ue.parseObject(e,t+s,n-s-ye);if(Ae.objectEnd)break;I[Ae.data.name]=Ae.data.value,s+=Ae.size}s<=n-3&&(i.getUint32(s-1,!Ze)&16777215)===9&&(s+=3);break}case 8:{I={},s+=4;let ye=0;for((i.getUint32(n-4,!Ze)&16777215)===9&&(ye=3);s<n-8;){let Ae=Ue.parseVariable(e,t+s,n-s-ye);if(Ae.objectEnd)break;I[Ae.data.name]=Ae.data.value,s+=Ae.size}s<=n-3&&(i.getUint32(s-1,!Ze)&16777215)===9&&(s+=3);break}case 9:I=void 0,s=1,we=!0;break;case 10:{I=[];let ye=i.getUint32(1,!Ze);s+=4;for(let Ae=0;Ae<ye;Ae++){let Xe=Ue.parseValue(e,t+s,n-s);I.push(Xe.data),s+=Xe.size}break}case 11:{let ye=Ue.parseDate(e,t+1,n-1);I=ye.data,s+=ye.size;break}case 12:{let ye=Ue.parseString(e,t+1,n-1);I=ye.data,s+=ye.size;break}default:s=n,f.w("AMF","Unsupported AMF value type "+R)}}catch(ye){f.e("AMF",ye.toString())}return{data:I,size:s,objectEnd:we}}}var Ve=Ue;class V{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 Se("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 fe("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let R=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,R}let t=this._current_word_bits_left?this._current_word:0;t=t>>>32-this._current_word_bits_left;let n=e-this._current_word_bits_left;this._fillCurrentWord();let i=Math.min(n,this._current_word_bits_left),s=this._current_word>>>32-i;return this._current_word<<=i,this._current_word_bits_left-=i,t=t<<i|s,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 Oe=V;class h{static _ebsp2rbsp(e){let t=e,n=t.byteLength,i=new Uint8Array(n),s=0;for(let R=0;R<n;R++)R>=2&&t[R]===3&&t[R-1]===0&&t[R-2]===0||(i[s]=t[R],s++);return new Uint8Array(i.buffer,0,s)}static parseSPS(e){let t=h._ebsp2rbsp(e),n=new Oe(t);n.readByte();let i=n.readByte();n.readByte();let s=n.readByte();n.readUEG();let R=h.getProfileString(i),I=h.getLevelString(s),we=1,ye=420,Ae=[0,420,422,444],Xe=8;if((i===100||i===110||i===122||i===244||i===44||i===83||i===86||i===118||i===128||i===138||i===144)&&(we=n.readUEG(),we===3&&n.readBits(1),we<=3&&(ye=Ae[we]),Xe=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let Et=we!==3?8:12;for(let gt=0;gt<Et;gt++)n.readBool()&&(gt<6?h._skipScalingList(n,16):h._skipScalingList(n,64))}n.readUEG();let Qe=n.readUEG();if(Qe===0)n.readUEG();else if(Qe===1){n.readBits(1),n.readSEG(),n.readSEG();let Et=n.readUEG();for(let gt=0;gt<Et;gt++)n.readSEG()}let $e=n.readUEG();n.readBits(1);let ct=n.readUEG(),je=n.readUEG(),Ie=n.readBits(1);Ie===0&&n.readBits(1),n.readBits(1);let Pe=0,tt=0,qe=0,vt=0;n.readBool()&&(Pe=n.readUEG(),tt=n.readUEG(),qe=n.readUEG(),vt=n.readUEG());let Rt=1,Ye=1,St=0,ie=!0,te=0,ve=0;if(n.readBool()){if(n.readBool()){let Et=n.readByte(),gt=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],It=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Et>0&&Et<16?(Rt=gt[Et-1],Ye=It[Et-1]):Et===255&&(Rt=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 Et=n.readBits(32),gt=n.readBits(32);ie=n.readBool(),te=gt,ve=Et*2,St=te/ve}}let _e=1;(Rt!==1||Ye!==1)&&(_e=Rt/Ye);let be=0,Ee=0;if(we===0)be=1,Ee=2-Ie;else{let Et=we===3?1:2,gt=we===1?2:1;be=Et,Ee=gt*(2-Ie)}let He=(ct+1)*16,ut=(2-Ie)*((je+1)*16);He-=(Pe+tt)*be,ut-=(qe+vt)*Ee;let dt=Math.ceil(He*_e);return n.destroy(),n=null,{profile_string:R,level_string:I,bit_depth:Xe,ref_frames:$e,chroma_format:ye,chroma_format_string:h.getChromaFormatString(ye),frame_rate:{fixed:ie,fps:St,fps_den:ve,fps_num:te},sar_ratio:{width:Rt,height:Ye},codec_size:{width:He,height:ut},present_size:{width:dt,height:ut}}}static _skipScalingList(e,t){let n=8,i=8,s=0;for(let R=0;R<t;R++)i!==0&&(s=e.readSEG(),i=(n+s+256)%256),n=i===0?n:i}static getProfileString(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(e){return(e/10).toFixed(1)}static getChromaFormatString(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var _=h,o={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function b(ee){return ee>>>8&255|(ee&255)<<8}function Z(ee){return(ee&4278190080)>>>24|(ee&16711680)>>>8|(ee&65280)<<8|(ee&255)<<24}function E(ee,e){return ee[e]<<24|ee[e+1]<<16|ee[e+2]<<8|ee[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 Te,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let n=new ArrayBuffer(2);return new DataView(n).setInt16(0,256,!0),new Int16Array(n)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(e){let t=new Uint8Array(e),n={match:!1};if(t[0]!==70||t[1]!==76||t[2]!==86||t[3]!==1)return n;let i=(t[4]&4)>>>2!==0,s=(t[4]&1)!==0,R=E(t,5);return R<9?n:{match:!0,consumed:R,dataOffset:R,hasAudioTrack:i,hasVideoTrack:s}}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 Te}_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 Se("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let n=0,i=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&&f.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(e,n).getUint32(0,!i)!==0&&f.w(this.TAG,"PrevTagSize0 !== 0 !!!"),n+=4);n<e.byteLength;){this._dispatch=!0;let s=new DataView(e,n);if(n+11+4>e.byteLength)break;let R=s.getUint8(0),I=s.getUint32(0,!i)&16777215;if(n+11+I+4>e.byteLength)break;if(R!==8&&R!==9&&R!==18){f.w(this.TAG,`Unsupported tag type ${R}, skipped`),n+=11+I+4;continue}let we=s.getUint8(4),ye=s.getUint8(5),Ae=s.getUint8(6),Xe=s.getUint8(7),Qe=Ae|ye<<8|we<<16|Xe<<24;(s.getUint32(7,!i)&16777215)!==0&&f.w(this.TAG,"Meet tag which has StreamID != 0!");let ct=n+11;switch(R){case 8:this._parseAudioData(e,ct,I,Qe);break;case 9:this._parseVideoData(e,ct,I,Qe,t+n);break;case 18:this._parseScriptData(e,ct,I);break}let je=s.getUint32(11+I,!i);je!==11+I&&f.w(this.TAG,`Invalid PrevTagSize ${je}`),n+=11+I+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),n}_parseScriptData(e,t,n){let i=Ve.parseScriptData(e,t,n);if(i.hasOwnProperty("onMetaData")){if(i.onMetaData==null||typeof i.onMetaData!="object"){f.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&f.w(this.TAG,"Found another onMetaData tag!"),this._metadata=i;let s=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},s)),typeof s.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=s.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof s.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=s.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof s.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=s.audiodatarate),typeof s.videodatarate=="number"&&(this._mediaInfo.videoDataRate=s.videodatarate),typeof s.width=="number"&&(this._mediaInfo.width=s.width),typeof s.height=="number"&&(this._mediaInfo.height=s.height),typeof s.duration=="number"){if(!this._durationOverrided){let R=Math.floor(s.duration*this._timescale);this._duration=R,this._mediaInfo.duration=R}}else this._mediaInfo.duration=0;if(typeof s.framerate=="number"){let R=Math.floor(s.framerate*1e3);if(R>0){let I=R/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=I,this._referenceFrameRate.fps_num=R,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=I}}if(typeof s.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let R=s.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(R),s.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=s,f.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(i).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},i))}_parseKeyframesIndex(e){let t=[],n=[];for(let i=1;i<e.times.length;i++){let s=this._timestampBase+Math.floor(e.times[i]*1e3);t.push(s),n.push(e.filepositions[i])}return{times:t,filepositions:n}}_parseAudioData(e,t,n,i){if(n<=1){f.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let s=this._littleEndian,I=new DataView(e,t,n).getUint8(0),we=I>>>4;if(we!==2&&we!==10){this._onError(o.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+we);return}let ye=0,Ae=(I&12)>>>2;if(Ae>=0&&Ae<=4)ye=this._flvSoundRateTable[Ae];else{this._onError(o.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Ae);return}let Xe=(I&2)>>>1,Qe=I&1,$e=this._audioMetadata,ct=this._audioTrack;if($e||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),$e=this._audioMetadata={},$e.type="audio",$e.id=ct.id,$e.timescale=this._timescale,$e.duration=this._duration,$e.audioSampleRate=ye,$e.channelCount=Qe===0?1:2),we===10){let je=this._parseAACAudioData(e,t+1,n-1);if(je==null)return;if(je.packetType===0){$e.config&&f.w(this.TAG,"Found another AudioSpecificConfig!");let Ie=je.data;$e.audioSampleRate=Ie.samplingRate,$e.channelCount=Ie.channelCount,$e.codec=Ie.codec,$e.originalCodec=Ie.originalCodec,$e.config=Ie.config,$e.refSampleDuration=1024/$e.audioSampleRate*$e.timescale,f.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",$e);let Pe=this._mediaInfo;Pe.audioCodec=$e.originalCodec,Pe.audioSampleRate=$e.audioSampleRate,Pe.audioChannelCount=$e.channelCount,Pe.hasVideo?Pe.videoCodec!=null&&(Pe.mimeType='video/x-flv; codecs="'+Pe.videoCodec+","+Pe.audioCodec+'"'):Pe.mimeType='video/x-flv; codecs="'+Pe.audioCodec+'"',Pe.isComplete()&&this._onMediaInfo(Pe)}else if(je.packetType===1){let Ie=this._timestampBase+i,Pe={unit:je.data,length:je.data.byteLength,dts:Ie,pts:Ie};ct.samples.push(Pe),ct.length+=je.data.length}else f.e(this.TAG,`Flv: Unsupported AAC data type ${je.packetType}`)}else if(we===2){if(!$e.codec){let tt=this._parseMP3AudioData(e,t+1,n-1,!0);if(tt==null)return;$e.audioSampleRate=tt.samplingRate,$e.channelCount=tt.channelCount,$e.codec=tt.codec,$e.originalCodec=tt.originalCodec,$e.refSampleDuration=1152/$e.audioSampleRate*$e.timescale,f.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",$e);let qe=this._mediaInfo;qe.audioCodec=$e.codec,qe.audioSampleRate=$e.audioSampleRate,qe.audioChannelCount=$e.channelCount,qe.audioDataRate=tt.bitRate,qe.hasVideo?qe.videoCodec!=null&&(qe.mimeType='video/x-flv; codecs="'+qe.videoCodec+","+qe.audioCodec+'"'):qe.mimeType='video/x-flv; codecs="'+qe.audioCodec+'"',qe.isComplete()&&this._onMediaInfo(qe)}let je=this._parseMP3AudioData(e,t+1,n-1,!1);if(je==null)return;let Ie=this._timestampBase+i,Pe={unit:je,length:je.byteLength,dts:Ie,pts:Ie};ct.samples.push(Pe),ct.length+=je.length}}_parseAACAudioData(e,t,n){if(n<=1){f.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let i={},s=new Uint8Array(e,t,n);return i.packetType=s[0],s[0]===0?i.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):i.data=s.subarray(1),i}_parseAACAudioSpecificConfig(e,t,n){let i=new Uint8Array(e,t,n),s=null,R=0,I=0,we=null,ye=0,Ae=null;if(R=I=i[0]>>>3,ye=(i[0]&7)<<1|i[1]>>>7,ye<0||ye>=this._mpegSamplingRates.length){this._onError(o.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Xe=this._mpegSamplingRates[ye],Qe=(i[1]&120)>>>3;if(Qe<0||Qe>=8){this._onError(o.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}R===5&&(Ae=(i[1]&7)<<1|i[2]>>>7,we=(i[2]&124)>>>2);let $e=self.navigator.userAgent.toLowerCase();return $e.indexOf("firefox")!==-1?ye>=6?(R=5,s=new Array(4),Ae=ye-3):(R=2,s=new Array(2),Ae=ye):$e.indexOf("android")!==-1?(R=2,s=new Array(2),Ae=ye):(R=5,Ae=ye,s=new Array(4),ye>=6?Ae=ye-3:Qe===1&&(R=2,s=new Array(2),Ae=ye)),s[0]=R<<3,s[0]|=(ye&15)>>>1,s[1]=(ye&15)<<7,s[1]|=(Qe&15)<<3,R===5&&(s[1]|=(Ae&15)>>>1,s[2]=(Ae&1)<<7,s[2]|=8,s[3]=0),{config:s,samplingRate:Xe,channelCount:Qe,codec:"mp4a.40."+R,originalCodec:"mp4a.40."+I}}_parseMP3AudioData(e,t,n,i){if(n<4){f.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let s=this._littleEndian,R=new Uint8Array(e,t,n),I=null;if(i){if(R[0]!==255)return;let we=R[1]>>>3&3,ye=(R[1]&6)>>1,Ae=(R[2]&240)>>>4,Xe=(R[2]&12)>>>2,$e=(R[3]>>>6&3)!==3?2:1,ct=0,je=0,Ie=34,Pe="mp3";switch(we){case 0:ct=this._mpegAudioV25SampleRateTable[Xe];break;case 2:ct=this._mpegAudioV20SampleRateTable[Xe];break;case 3:ct=this._mpegAudioV10SampleRateTable[Xe];break}switch(ye){case 1:Ie=34,Ae<this._mpegAudioL3BitRateTable.length&&(je=this._mpegAudioL3BitRateTable[Ae]);break;case 2:Ie=33,Ae<this._mpegAudioL2BitRateTable.length&&(je=this._mpegAudioL2BitRateTable[Ae]);break;case 3:Ie=32,Ae<this._mpegAudioL1BitRateTable.length&&(je=this._mpegAudioL1BitRateTable[Ae]);break}I={bitRate:je,samplingRate:ct,channelCount:$e,codec:Pe,originalCodec:Pe}}else I=R;return I}_parseVideoData(e,t,n,i,s){if(n<=1){f.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let R=new Uint8Array(e,t,n)[0],I=(R&240)>>>4,we=R&15;if(we!==7){this._onError(o.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${we}`);return}this._parseAVCVideoPacket(e,t+1,n-1,i,s,I)}_parseAVCVideoPacket(e,t,n,i,s,R){if(n<4){f.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let I=this._littleEndian,we=new DataView(e,t,n),ye=we.getUint8(0),Xe=(we.getUint32(0,!I)&16777215)<<8>>8;if(ye===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(ye===1)this._parseAVCVideoData(e,t+4,n-4,i,s,R,Xe);else if(ye!==2){this._onError(o.FORMAT_ERROR,`Flv: Invalid video packet type ${ye}`);return}}_parseAVCDecoderConfigurationRecord(e,t,n){if(n<7){f.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let i=this._videoMetadata,s=this._videoTrack,R=this._littleEndian,I=new DataView(e,t,n);i?typeof i.avcc!="undefined"&&f.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),i=this._videoMetadata={},i.type="video",i.id=s.id,i.timescale=this._timescale,i.duration=this._duration);let we=I.getUint8(0),ye=I.getUint8(1),Ae=I.getUint8(2),Xe=I.getUint8(3);if(we!==1||ye===0){this._onError(o.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(I.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(o.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Qe=I.getUint8(5)&31;if(Qe===0){this._onError(o.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Qe>1&&f.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Qe}`);let $e=6;for(let je=0;je<Qe;je++){let Ie=I.getUint16($e,!R);if($e+=2,Ie===0)continue;let Pe=new Uint8Array(e,t+$e,Ie);$e+=Ie;let tt=_.parseSPS(Pe);if(je!==0)continue;i.codecWidth=tt.codec_size.width,i.codecHeight=tt.codec_size.height,i.presentWidth=tt.present_size.width,i.presentHeight=tt.present_size.height,i.profile=tt.profile_string,i.level=tt.level_string,i.bitDepth=tt.bit_depth,i.chromaFormat=tt.chroma_format,i.sarRatio=tt.sar_ratio,i.frameRate=tt.frame_rate,(tt.frame_rate.fixed===!1||tt.frame_rate.fps_num===0||tt.frame_rate.fps_den===0)&&(i.frameRate=this._referenceFrameRate);let qe=i.frameRate.fps_den,vt=i.frameRate.fps_num;i.refSampleDuration=i.timescale*(qe/vt);let Tt=Pe.subarray(1,4),Rt="avc1.";for(let St=0;St<3;St++){let ie=Tt[St].toString(16);ie.length<2&&(ie="0"+ie),Rt+=ie}i.codec=Rt;let Ye=this._mediaInfo;Ye.width=i.codecWidth,Ye.height=i.codecHeight,Ye.fps=i.frameRate.fps,Ye.profile=i.profile,Ye.level=i.level,Ye.refFrames=tt.ref_frames,Ye.chromaFormat=tt.chroma_format_string,Ye.sarNum=i.sarRatio.width,Ye.sarDen=i.sarRatio.height,Ye.videoCodec=Rt,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 ct=I.getUint8($e);if(ct===0){this._onError(o.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else ct>1&&f.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${ct}`);$e++;for(let je=0;je<ct;je++){let Ie=I.getUint16($e,!R);$e+=2,Ie!==0&&($e+=Ie)}i.avcc=new Uint8Array(n),i.avcc.set(new Uint8Array(e,t,n),0),f.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",i)}_parseAVCVideoData(e,t,n,i,s,R,I){let we=this._littleEndian,ye=new DataView(e,t,n),Ae=[],Xe=0,Qe=0;const $e=this._naluLengthSize;let ct=this._timestampBase+i,je=R===1;for(;Qe<n;){if(Qe+4>=n){f.w(this.TAG,`Malformed Nalu near timestamp ${ct}, offset = ${Qe}, dataSize = ${n}`);break}let Ie=ye.getUint32(Qe,!we);if($e===3&&(Ie>>>=8),Ie>n-$e){f.w(this.TAG,`Malformed Nalus near timestamp ${ct}, NaluSize > DataSize!`);return}let Pe=ye.getUint8(Qe+$e)&31;Pe===5&&(je=!0);let tt=new Uint8Array(e,t+Qe,$e+Ie),qe={type:Pe,data:tt};Ae.push(qe),Xe+=tt.byteLength,Qe+=$e+Ie}if(Ae.length){let Ie=this._videoTrack,Pe={units:Ae,length:Xe,isKeyframe:je,dts:ct,cts:I,pts:ct+I};je&&(Pe.fileposition=s),Ie.samples.push(Pe),Ie.length+=Xe}}}var g=l;class r{static init(){r.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 r.types)r.types.hasOwnProperty(t)&&(r.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=r.constants={};e.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),e.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),e.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSC=e.STCO=e.STTS,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),e.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),e.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(e){let t=8,n=null,i=Array.prototype.slice.call(arguments,1),s=i.length;for(let I=0;I<s;I++)t+=i[I].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 R=8;for(let I=0;I<s;I++)n.set(i[I],R),R+=i[I].byteLength;return n}static generateInitSegment(e){let t=r.box(r.types.ftyp,r.constants.FTYP),n=r.moov(e),i=new Uint8Array(t.byteLength+n.byteLength);return i.set(t,0),i.set(n,t.byteLength),i}static moov(e){let t=r.mvhd(e.timescale,e.duration),n=r.trak(e),i=r.mvex(e);return r.box(r.types.moov,t,n,i)}static mvhd(e,t){return r.box(r.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 r.box(r.types.trak,r.tkhd(e),r.mdia(e))}static tkhd(e){let t=e.id,n=e.duration,i=e.presentWidth,s=e.presentHeight;return r.box(r.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>>8&255,i&255,0,0,s>>>8&255,s&255,0,0]))}static mdia(e){return r.box(r.types.mdia,r.mdhd(e),r.hdlr(e),r.minf(e))}static mdhd(e){let t=e.timescale,n=e.duration;return r.box(r.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=r.constants.HDLR_AUDIO:t=r.constants.HDLR_VIDEO,r.box(r.types.hdlr,t)}static minf(e){let t=null;return e.type==="audio"?t=r.box(r.types.smhd,r.constants.SMHD):t=r.box(r.types.vmhd,r.constants.VMHD),r.box(r.types.minf,t,r.dinf(),r.stbl(e))}static dinf(){return r.box(r.types.dinf,r.box(r.types.dref,r.constants.DREF))}static stbl(e){return r.box(r.types.stbl,r.stsd(e),r.box(r.types.stts,r.constants.STTS),r.box(r.types.stsc,r.constants.STSC),r.box(r.types.stsz,r.constants.STSZ),r.box(r.types.stco,r.constants.STCO))}static stsd(e){return e.type==="audio"?e.codec==="mp3"?r.box(r.types.stsd,r.constants.STSD_PREFIX,r.mp3(e)):r.box(r.types.stsd,r.constants.STSD_PREFIX,r.mp4a(e)):r.box(r.types.stsd,r.constants.STSD_PREFIX,r.avc1(e))}static mp3(e){let t=e.channelCount,n=e.audioSampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,n>>>8&255,n&255,0,0]);return r.box(r.types[".mp3"],i)}static mp4a(e){let t=e.channelCount,n=e.audioSampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,n>>>8&255,n&255,0,0]);return r.box(r.types.mp4a,i,r.esds(e))}static esds(e){let t=e.config||[],n=t.length,i=new Uint8Array([0,0,0,0,3,23+n,0,1,0,4,15+n,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([n]).concat(t).concat([6,1,2]));return r.box(r.types.esds,i)}static avc1(e){let t=e.avcc,n=e.codecWidth,i=e.codecHeight,s=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n>>>8&255,n&255,i>>>8&255,i&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return r.box(r.types.avc1,s,r.box(r.types.avcC,t))}static mvex(e){return r.box(r.types.mvex,r.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 r.box(r.types.trex,n)}static moof(e,t){return r.box(r.types.moof,r.mfhd(e.sequenceNumber),r.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 r.box(r.types.mfhd,t)}static traf(e,t){let n=e.id,i=r.box(r.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255])),s=r.box(r.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255])),R=r.sdtp(e),I=r.trun(e,R.byteLength+16+16+8+16+8+8);return r.box(r.types.traf,i,s,I,R)}static sdtp(e){let t=e.samples||[],n=t.length,i=new Uint8Array(4+n);for(let s=0;s<n;s++){let R=t[s].flags;i[s+4]=R.isLeading<<6|R.dependsOn<<4|R.isDependedOn<<2|R.hasRedundancy}return r.box(r.types.sdtp,i)}static trun(e,t){let n=e.samples||[],i=n.length,s=12+16*i,R=new Uint8Array(s);t+=8+s,R.set([0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0);for(let I=0;I<i;I++){let we=n[I].duration,ye=n[I].size,Ae=n[I].flags,Xe=n[I].cts;R.set([we>>>24&255,we>>>16&255,we>>>8&255,we&255,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255,Ae.isLeading<<2|Ae.dependsOn,Ae.isDependedOn<<6|Ae.hasRedundancy<<4|Ae.isNonSync,0,0,Xe>>>24&255,Xe>>>16&255,Xe>>>8&255,Xe&255],12+16*I)}return r.box(r.types.trun,R)}static mdat(e){return r.box(r.types.mdat,e)}}r.init();var c=r;class v{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 B=v;class Q{constructor(e,t,n,i,s){this.dts=e,this.pts=t,this.duration=n,this.originalDts=i,this.isSyncPoint=s,this.fileposition=null}}class he{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 ce{constructor(){this._list=[]}clear(){this._list=[]}appendArray(e){let t=this._list;e.length!==0&&(t.length>0&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))}getLastSyncPointBeforeDts(e){if(this._list.length==0)return null;let t=this._list,n=0,i=t.length-1,s=0,R=0,I=i;for(e<t[0].dts&&(n=0,R=I+1);R<=I;)if(s=R+Math.floor((I-R)/2),s===i||e>=t[s].dts&&e<t[s+1].dts){n=s;break}else t[s].dts<e?R=s+1:I=s-1;return this._list[n]}}class se{constructor(e){this._type=e,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return this._list.length===0}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(e){let t=this._list;if(t.length===0)return-2;let n=t.length-1,i=0,s=0,R=n,I=0;if(e<t[0].originalBeginDts)return I=-1,I;for(;s<=R;)if(i=s+Math.floor((R-s)/2),i===n||e>t[i].lastSample.originalDts&&e<t[i+1].originalBeginDts){I=i;break}else t[i].originalBeginDts<e?s=i+1:R=i-1;return I}_searchNearestSegmentAfter(e){return this._searchNearestSegmentBefore(e)+1}append(e){let t=this._list,n=e,i=this._lastAppendLocation,s=0;i!==-1&&i<t.length&&n.originalBeginDts>=t[i].lastSample.originalDts&&(i===t.length-1||i<t.length-1&&n.originalBeginDts<t[i+1].originalBeginDts)?s=i+1:t.length>0&&(s=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=s,this._list.splice(s,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 z{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 se("audio"),this._videoSegmentInfoList=new se("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 Se("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}_onTrackMetadataReceived(e,t){let n=null,i="mp4",s=t.codec;if(e==="audio")this._audioMeta=t,t.codec==="mp3"&&this._mp3UseMpegAudio?(i="mpeg",s="",n=new Uint8Array):n=c.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=c.generateInitSegment(t);else return;if(!this._onInitSegment)throw new Se("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:s,container:`${e}/${i}`,mediaDuration:t.duration})}_calculateDtsBase(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let e=this._videoStashedLastSample,t=this._audioStashedLastSample,n={type:"video",id:1,sequenceNumber:0,samples:[],length:0};e!=null&&(n.samples.push(e),n.length=e.length);let i={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};t!=null&&(i.samples.push(t),i.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(i,!0)}_remuxAudio(e,t){if(this._audioMeta==null)return;let n=e,i=n.samples,s,R=-1,I=-1,we=-1,ye=this._audioMeta.refSampleDuration,Ae=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Xe=this._dtsBaseInited&&this._audioNextDts===void 0,Qe=!1;if(!i||i.length===0||i.length===1&&!t)return;let $e=0,ct=null,je=0;Ae?($e=0,je=n.length):($e=8,je=8+n.length);let Ie=null;if(i.length>1&&(Ie=i.pop(),je-=Ie.length),this._audioStashedLastSample!=null){let Ye=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(Ye),je+=Ye.length}Ie!=null&&(this._audioStashedLastSample=Ie);let Pe=i[0].dts-this._dtsBase;if(this._audioNextDts)s=Pe-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())s=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Qe=!0);else{let Ye=this._audioSegmentInfoList.getLastSampleBefore(Pe);if(Ye!=null){let St=Pe-(Ye.originalDts+Ye.duration);St<=3&&(St=0);let ie=Ye.dts+Ye.duration+St;s=Pe-ie}else s=0}if(Qe){let Ye=Pe-s,St=this._videoSegmentInfoList.getLastSegmentBefore(Pe);if(St!=null&&St.beginDts<Ye){let ie=B.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(ie){let te=St.beginDts,ve=Ye-St.beginDts;f.v(this.TAG,`InsertPrefixSilentAudio: dts: ${te}, duration: ${ve}`),i.unshift({unit:ie,dts:te,pts:te}),je+=ie.byteLength}}else Qe=!1}let tt=[];for(let Ye=0;Ye<i.length;Ye++){let St=i[Ye],ie=St.unit,te=St.dts-this._dtsBase,ve=te-s;R===-1&&(R=ve);let De=0;Ye!==i.length-1?De=i[Ye+1].dts-this._dtsBase-s-ve:Ie!=null?De=Ie.dts-this._dtsBase-s-ve:tt.length>=1?De=tt[tt.length-1].duration:De=Math.floor(ye);let _e=!1,be=null;if(De>ye*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!K.safari){_e=!0;let Ee=Math.abs(De-ye),He=Math.ceil(Ee/ye),ut=ve+ye;f.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
dts: ${ve+De} ms, expected: ${ve+Math.round(ye)} ms, delta: ${Math.round(Ee)} ms, generate: ${He} frames`);let dt=B.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);dt==null&&(f.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),dt=ie),be=[];for(let gt=0;gt<He;gt++){let It=Math.round(ut);if(be.length>0){let Dt=be[be.length-1];Dt.duration=It-Dt.dts}let Nt={dts:It,pts:It,cts:0,unit:dt,size:dt.byteLength,duration:0,originalDts:te,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};be.push(Nt),je+=Nt.size,ut+=ye}let Et=be[be.length-1];Et.duration=ve+De-Et.dts,De=Math.round(ye)}tt.push({dts:ve,pts:ve,cts:0,unit:St.unit,size:St.unit.byteLength,duration:De,originalDts:te,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),_e&&tt.push.apply(tt,be)}Ae?ct=new Uint8Array(je):(ct=new Uint8Array(je),ct[0]=je>>>24&255,ct[1]=je>>>16&255,ct[2]=je>>>8&255,ct[3]=je&255,ct.set(c.types.mdat,4));for(let Ye=0;Ye<tt.length;Ye++){let St=tt[Ye].unit;ct.set(St,$e),$e+=St.byteLength}let qe=tt[tt.length-1];I=qe.dts+qe.duration,this._audioNextDts=I;let vt=new he;vt.beginDts=R,vt.endDts=I,vt.beginPts=R,vt.endPts=I,vt.originalBeginDts=tt[0].originalDts,vt.originalEndDts=qe.originalDts+qe.duration,vt.firstSample=new Q(tt[0].dts,tt[0].pts,tt[0].duration,tt[0].originalDts,!1),vt.lastSample=new Q(qe.dts,qe.pts,qe.duration,qe.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(vt),n.samples=tt,n.sequenceNumber++;let Tt=null;Ae?Tt=new Uint8Array:Tt=c.moof(n,R),n.samples=[],n.length=0;let Rt={type:"audio",data:this._mergeBoxes(Tt,ct).buffer,sampleCount:tt.length,info:vt};Ae&&Xe&&(Rt.timestampOffset=R),this._onMediaSegment("audio",Rt)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,i=n.samples,s,R=-1,I=-1,we=-1,ye=-1;if(!i||i.length===0||i.length===1&&!t)return;let Ae=8,Xe=null,Qe=8+e.length,$e=null;if(i.length>1&&($e=i.pop(),Qe-=$e.length),this._videoStashedLastSample!=null){let qe=this._videoStashedLastSample;this._videoStashedLastSample=null,i.unshift(qe),Qe+=qe.length}$e!=null&&(this._videoStashedLastSample=$e);let ct=i[0].dts-this._dtsBase;if(this._videoNextDts)s=ct-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())s=0;else{let qe=this._videoSegmentInfoList.getLastSampleBefore(ct);if(qe!=null){let vt=ct-(qe.originalDts+qe.duration);vt<=3&&(vt=0);let Tt=qe.dts+qe.duration+vt;s=ct-Tt}else s=0}let je=new he,Ie=[];for(let qe=0;qe<i.length;qe++){let vt=i[qe],Tt=vt.dts-this._dtsBase,Rt=vt.isKeyframe,Ye=Tt-s,St=vt.cts,ie=Ye+St;R===-1&&(R=Ye,we=ie);let te=0;if(qe!==i.length-1?te=i[qe+1].dts-this._dtsBase-s-Ye:$e!=null?te=$e.dts-this._dtsBase-s-Ye:Ie.length>=1?te=Ie[Ie.length-1].duration:te=Math.floor(this._videoMeta.refSampleDuration),Rt){let ve=new Q(Ye,ie,te,vt.dts,!0);ve.fileposition=vt.fileposition,je.appendSyncPoint(ve)}Ie.push({dts:Ye,pts:ie,cts:St,units:vt.units,size:vt.length,isKeyframe:Rt,duration:te,originalDts:Tt,flags:{isLeading:0,dependsOn:Rt?2:1,isDependedOn:Rt?1:0,hasRedundancy:0,isNonSync:Rt?0:1}})}Xe=new Uint8Array(Qe),Xe[0]=Qe>>>24&255,Xe[1]=Qe>>>16&255,Xe[2]=Qe>>>8&255,Xe[3]=Qe&255,Xe.set(c.types.mdat,4);for(let qe=0;qe<Ie.length;qe++){let vt=Ie[qe].units;for(;vt.length;){let Rt=vt.shift().data;Xe.set(Rt,Ae),Ae+=Rt.byteLength}}let Pe=Ie[Ie.length-1];if(I=Pe.dts+Pe.duration,ye=Pe.pts+Pe.duration,this._videoNextDts=I,je.beginDts=R,je.endDts=I,je.beginPts=we,je.endPts=ye,je.originalBeginDts=Ie[0].originalDts,je.originalEndDts=Pe.originalDts+Pe.duration,je.firstSample=new Q(Ie[0].dts,Ie[0].pts,Ie[0].duration,Ie[0].originalDts,Ie[0].isKeyframe),je.lastSample=new Q(Pe.dts,Pe.pts,Pe.duration,Pe.originalDts,Pe.isKeyframe),this._isLive||this._videoSegmentInfoList.append(je),n.samples=Ie,n.sequenceNumber++,this._forceFirstIDR){let qe=Ie[0].flags;qe.dependsOn=2,qe.isNonSync=0}let tt=c.moof(n,R);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(tt,Xe).buffer,sampleCount:Ie.length,info:je})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var Le=z,W={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 Ke{constructor(e,t){this.TAG="TransmuxingController",this._emitter=new(Y()),this._config=t,e.segments||(e.segments=[{duration:e.duration,filesize:e.filesize,url:e.url}]),typeof e.cors!="boolean"&&(e.cors=!0),typeof e.withCredentials!="boolean"&&(e.withCredentials=!1),this._mediaDataSource=e,this._currentSegmentIndex=0;let n=0;this._mediaDataSource.segments.forEach(i=>{i.timestampBase=n,n+=i.duration,i.cors=e.cors,i.withCredentials=e.withCredentials,t.referrerPolicy&&(i.referrerPolicy=t.referrerPolicy)}),!isNaN(n)&&this._mediaDataSource.duration!==n&&(this._mediaDataSource.duration=n),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(e,t){this._currentSegmentIndex=e;let n=this._mediaDataSource.segments[e],i=this._ioctl=new k(n,this._config,e);i.onError=this._onIOException.bind(this),i.onSeeked=this._onIOSeeked.bind(this),i.onComplete=this._onIOComplete.bind(this),i.onRedirect=this._onIORedirect.bind(this),i.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):i.onDataArrival=this._onInitChunkArrival.bind(this),i.open(t)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(e){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){let n=this._mediaInfo.segments[t];if(n==null)this._pendingSeekTime=e;else{let i=n.getNearestKeyframe(e);this._remuxer.seek(i.milliseconds),this._ioctl.seek(i.fileposition),this._pendingResolveSeekPoint=i.milliseconds}}else{let n=this._mediaInfo.segments[t];if(n==null)this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t);else{let i=n.getNearestKeyframe(e);this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,i.fileposition),this._pendingResolveSeekPoint=i.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(e){let t=this._mediaDataSource.segments,n=t.length-1;for(let i=0;i<t.length;i++)if(e<t[i].timestampBase){n=i-1;break}return n}_onInitChunkArrival(e,t){let n=null,i=0;if(t>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,i=this._demuxer.parseChunks(e,t);else if((n=g.probe(e)).match){this._demuxer=new g(n,this._config),this._remuxer||(this._remuxer=new Le(this._config));let s=this._mediaDataSource;s.duration!=null&&!isNaN(s.duration)&&(this._demuxer.overridedDuration=s.duration),typeof s.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=s.hasAudio),typeof s.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=s.hasVideo),this._demuxer.timestampBase=s.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),i=this._demuxer.parseChunks(e,t)}else n=null,f.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(W.DEMUX_ERROR,o.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),i=0;return i}_onMediaInfo(e){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Te.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,Te.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(W.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(W.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(W.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(e){let t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}_onIORecoveredEarlyEof(){this._emitter.emit(W.RECOVERED_EARLY_EOF)}_onIOException(e,t){f.e(this.TAG,`IOException: type = ${e}, code = ${t.code}, msg = ${t.msg}`),this._emitter.emit(W.IO_ERROR,e,t),this._disableStatisticsReporter()}_onDemuxException(e,t){f.e(this.TAG,`DemuxException: type = ${e}, info = ${t}`),this._emitter.emit(W.DEMUX_ERROR,e,t)}_onRemuxerInitSegmentArrival(e,t){this._emitter.emit(W.INIT_SEGMENT,e,t)}_onRemuxerMediaSegmentArrival(e,t){if(this._pendingSeekTime==null&&(this._emitter.emit(W.MEDIA_SEGMENT,e,t),this._pendingResolveSeekPoint!=null&&e==="video")){let n=t.info.syncPoints,i=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,K.safari&&n.length>0&&n[0].originalDts===i&&(i=n[0].pts),this._emitter.emit(W.RECOMMEND_SEEKPOINT,i)}}_enableStatisticsReporter(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(e){let t=this._mediaInfo.segments[e],n=Object.assign({},t);n.duration=this._mediaInfo.duration,n.segmentCount=this._mediaInfo.segmentCount,delete n.segments,delete n.keyframesIndex,this._emitter.emit(W.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(W.STATISTICS_INFO,e)}}var Me=Ke,ze=function(ee){let e="TransmuxingWorker",t=null,n=je.bind(this);C.install(),ee.addEventListener("message",function(Ie){switch(Ie.data.cmd){case"init":t=new Me(Ie.data.param[0],Ie.data.param[1]),t.on(W.IO_ERROR,Qe.bind(this)),t.on(W.DEMUX_ERROR,$e.bind(this)),t.on(W.INIT_SEGMENT,i.bind(this)),t.on(W.MEDIA_SEGMENT,s.bind(this)),t.on(W.LOADING_COMPLETE,R.bind(this)),t.on(W.RECOVERED_EARLY_EOF,I.bind(this)),t.on(W.MEDIA_INFO,we.bind(this)),t.on(W.METADATA_ARRIVED,ye.bind(this)),t.on(W.SCRIPTDATA_ARRIVED,Ae.bind(this)),t.on(W.STATISTICS_INFO,Xe.bind(this)),t.on(W.RECOMMEND_SEEKPOINT,ct.bind(this));break;case"destroy":t&&(t.destroy(),t=null),ee.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(Ie.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let Pe=Ie.data.param;ae.applyConfig(Pe),Pe.enableCallback===!0?ae.addLogListener(n):ae.removeLogListener(n);break}}});function i(Ie,Pe){let tt={msg:W.INIT_SEGMENT,data:{type:Ie,data:Pe}};ee.postMessage(tt,[Pe.data])}function s(Ie,Pe){let tt={msg:W.MEDIA_SEGMENT,data:{type:Ie,data:Pe}};ee.postMessage(tt,[Pe.data])}function R(){let Ie={msg:W.LOADING_COMPLETE};ee.postMessage(Ie)}function I(){let Ie={msg:W.RECOVERED_EARLY_EOF};ee.postMessage(Ie)}function we(Ie){let Pe={msg:W.MEDIA_INFO,data:Ie};ee.postMessage(Pe)}function ye(Ie){let Pe={msg:W.METADATA_ARRIVED,data:Ie};ee.postMessage(Pe)}function Ae(Ie){let Pe={msg:W.SCRIPTDATA_ARRIVED,data:Ie};ee.postMessage(Pe)}function Xe(Ie){let Pe={msg:W.STATISTICS_INFO,data:Ie};ee.postMessage(Pe)}function Qe(Ie,Pe){ee.postMessage({msg:W.IO_ERROR,data:{type:Ie,info:Pe}})}function $e(Ie,Pe){ee.postMessage({msg:W.DEMUX_ERROR,data:{type:Ie,info:Pe}})}function ct(Ie){ee.postMessage({msg:W.RECOMMEND_SEEKPOINT,data:Ie})}function je(Ie,Pe){ee.postMessage({msg:"logcat_callback",data:{type:Ie,logcat:Pe}})}};class it{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(Y()),t.enableWorker&&typeof Worker!="undefined")try{let n=a(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){f.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Me(e,t)}else this._controller=new Me(e,t);if(this._controller){let n=this._controller;n.on(W.IO_ERROR,this._onIOError.bind(this)),n.on(W.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(W.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(W.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(W.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(W.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(W.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(W.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(W.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(W.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(W.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(W.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(W.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(W.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(W.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(W.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(W.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(W.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(W.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(W.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(W.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(W.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 W.INIT_SEGMENT:case W.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case W.LOADING_COMPLETE:case W.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case W.MEDIA_INFO:Object.setPrototypeOf(n,Te.prototype),this._emitter.emit(t.msg,n);break;case W.METADATA_ARRIVED:case W.SCRIPTDATA_ARRIVED:case W.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case W.IO_ERROR:case W.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case W.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":f.emitter.emit("log",n.type,n.logcat);break;default:break}}}var pt=it,nt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class mt{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new(Y()),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 ce}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 Se("MediaSource has been attached to an HTMLMediaElement!");let t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let e=this._mediaSource;for(let t in this._sourceBuffers){let n=this._pendingSegments[t];n.splice(0,n.length),this._pendingSegments[t]=null,this._pendingRemoveRanges[t]=null,this._lastInitSegments[t]=null;let i=this._sourceBuffers[t];if(i){if(e.readyState!=="closed"){try{e.removeSourceBuffer(i)}catch(s){f.e(this.TAG,s.message)}i.removeEventListener("error",this.e.onSourceBufferError),i.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if(e.readyState==="open")try{e.endOfStream()}catch(t){f.e(this.TAG,t.message)}e.removeEventListener("sourceopen",this.e.onSourceOpen),e.removeEventListener("sourceended",this.e.onSourceEnded),e.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(e,t){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(e),this._pendingSegments[e.type].push(e);return}let n=e,i=`${n.container}`;n.codec&&n.codec.length>0&&(i+=`;codecs=${n.codec}`);let s=!1;if(f.v(this.TAG,"Received Initialization Segment, mimeType: "+i),this._lastInitSegments[n.type]=n,i!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])f.v(this.TAG,`Notice: ${n.type} mimeType changed, origin: ${this._mimeTypes[n.type]}, target: ${i}`);else{s=!0;try{let R=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);R.addEventListener("error",this.e.onSourceBufferError),R.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(R){f.e(this.TAG,R.message),this._emitter.emit(nt.ERROR,{code:R.code,msg:R.message});return}}this._mimeTypes[n.type]=i}t||this._pendingSegments[n.type].push(n),s||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(s){f.e(this.TAG,s.message)}this._idrList.clear();let i=this._pendingSegments[t];if(i.splice(0,i.length),this._mediaSource.readyState!=="closed"){for(let s=0;s<n.buffered.length;s++){let R=n.buffered.start(s),I=n.buffered.end(s);this._pendingRemoveRanges[t].push({start:R,end:I})}if(n.updating||this._doRemoveRanges(),K.safari){let s=this._lastInitSegments[t];s&&(this._pendingSegments[t].push(s),n.updating||this._doAppendSegments())}}}}endOfStream(){let e=this._mediaSource,t=this._sourceBuffers;if(!e||e.readyState!=="open"){e&&e.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream())}getNearestKeyframe(e){return this._idrList.getLastSyncPointBeforeDts(e)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let i=n.buffered;if(i.length>=1&&e-i.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let i=n.buffered,s=!1;for(let R=0;R<i.length;R++){let I=i.start(R),we=i.end(R);if(I<=e&&e<we+3){if(e-I>=this._config.autoCleanupMaxBackwardDuration){s=!0;let ye=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:I,end:ye})}}else we<e&&(s=!0,this._pendingRemoveRanges[t].push({start:I,end:we}))}s&&!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)&&(f.v(this.TAG,`Update MediaSource duration from ${t} to ${n}`),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let e in this._pendingRemoveRanges){if(!this._sourceBuffers[e]||this._sourceBuffers[e].updating)continue;let t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];for(;n.length&&!t.updating;){let i=n.shift();t.remove(i.start,i.end)}}}_doAppendSegments(){let e=this._pendingSegments;for(let t in e)if(!(!this._sourceBuffers[t]||this._sourceBuffers[t].updating)&&e[t].length>0){let n=e[t].shift();if(n.timestampOffset){let i=this._sourceBuffers[t].timestampOffset,s=n.timestampOffset/1e3;Math.abs(i-s)>.1&&(f.v(this.TAG,`Update MPEG audio timestampOffset from ${i} to ${s}`),this._sourceBuffers[t].timestampOffset=s),delete n.timestampOffset}if(!n.data||n.data.byteLength===0)continue;try{this._sourceBuffers[t].appendBuffer(n.data),this._isBufferFull=!1,t==="video"&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(i){this._pendingSegments[t].unshift(n),i.code===22?(this._isBufferFull||this._emitter.emit(nt.BUFFER_FULL),this._isBufferFull=!0):(f.e(this.TAG,i.message),this._emitter.emit(nt.ERROR,{code:i.code,msg:i.message}))}}}_onSourceOpen(){if(f.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(nt.SOURCE_OPEN)}_onSourceEnded(){f.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){f.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(nt.UPDATE_END)}_onSourceBufferError(e){f.e(this.TAG,`SourceBuffer Error: ${e}`)}}var Ge=mt;const Fe={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Je={NETWORK_EXCEPTION:ne.EXCEPTION,NETWORK_STATUS_CODE_INVALID:ne.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:ne.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:ne.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:o.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:o.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:o.CODEC_UNSUPPORTED};class yt{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(Y()),this._config=H(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()!=="flv")throw new fe("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===j.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(j.MEDIA_INFO,this.mediaInfo)}):e===j.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(j.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 Ge(this._config),this._msectl.on(nt.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(nt.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(nt.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(nt.ERROR,t=>{this._emitter.emit(j.ERROR,Fe.MEDIA_ERROR,Je.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 Se("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new Se("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 pt(this._mediaDataSource,this._config),this._transmuxer.on(W.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(W.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&&(f.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(W.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(j.LOADING_COMPLETE)}),this._transmuxer.on(W.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(j.RECOVERED_EARLY_EOF)}),this._transmuxer.on(W.IO_ERROR,(e,t)=>{this._emitter.emit(j.ERROR,Fe.NETWORK_ERROR,e,t)}),this._transmuxer.on(W.DEMUX_ERROR,(e,t)=>{this._emitter.emit(j.ERROR,Fe.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(W.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(j.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(W.METADATA_ARRIVED,e=>{this._emitter.emit(j.METADATA_ARRIVED,e)}),this._transmuxer.on(W.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(j.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(W.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(j.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(W.RECOMMEND_SEEKPOINT,e=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e/1e3)}),this._transmuxer.open()}}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){let s=this._mediaElement.getVideoPlaybackQuality();n=s.totalVideoFrames,i=s.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,i=0;for(let s=0;s<e.length;s++){let R=e.start(s),I=e.end(s);if(R<=t&&t<I){n=R,i=I;break}}i>=t+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(f.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){f.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1;for(let i=0;i<t.length;i++){let s=t.start(i),R=t.end(i);if(e>=s&&e<R){e>=R-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(f.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(e){let t=this._mediaElement.buffered;for(let n=0;n<t.length;n++){let i=t.start(n),s=t.end(n);if(e>=i&&e<s)return!0}return!1}_internalSeek(e){let t=this._isTimepointBuffered(e),n=!1,i=0;if(e<1&&this._mediaElement.buffered.length>0){let s=this._mediaElement.buffered.start(0);(s<1&&e<s||K.safari)&&(n=!0,i=K.safari?.1:s)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=i;else if(t){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=e;else{let s=this._msectl.getNearestKeyframe(Math.floor(e*1e3));this._requestSetTime=!0,s!=null?this._mediaElement.currentTime=s.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)&&(f.w(this.TAG,`Playback seems stuck at ${t.currentTime}, seek to ${n.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=n.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(e){let t=this._mediaElement.currentTime,n=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(t<1&&n.length>0){let i=n.start(0);if(i<1&&t<i||K.safari){this._requestSetTime=!0,this._mediaElement.currentTime=K.safari?.1:i;return}}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){let i=this._msectl.getNearestKeyframe(Math.floor(t*1e3));i!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=i.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(e){this._checkAndResumeStuckPlayback(!0)}_onvProgress(e){this._checkAndResumeStuckPlayback()}}var ht=yt;class xt{constructor(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(Y()),this._config=H(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()==="flv")throw new fe("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new fe(`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===j.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(j.MEDIA_INFO,this.mediaInfo)}):e===j.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(j.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 Se("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e}get mediaInfo(){let t={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t}get statisticsInfo(){let e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){let s=this._mediaElement.getVideoPlaybackQuality();n=s.totalVideoFrames,i=s.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(j.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(j.STATISTICS_INFO,this.statisticsInfo)}}var wt=xt;C.install();function _t(ee,e){let t=ee;if(t==null||typeof t!="object")throw new fe("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new fe("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new ht(t,e);default:return new wt(t,e)}}function bt(){return X.supportMSEH264Playback()}function ot(){return X.getFeatureList()}let at={};at.createPlayer=_t,at.isSupported=bt,at.getFeatureList=ot,at.BaseLoader=q,at.LoaderStatus=d,at.LoaderErrors=ne,at.Events=j,at.ErrorTypes=Fe,at.ErrorDetails=Je,at.FlvPlayer=ht,at.NativePlayer=wt,at.LoggingControl=ae,Object.defineProperty(at,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Lt=at},98447:function(ft,Ne,a){"use strict";a.d(Ne,{C2:function(){return D}});var y=a(17313),C=a(37613),F=a(83116);const Y=f=>{const{checkboxCls:ue}=f,le=`${ue}-wrapper`;return[{[`${ue}-group`]:Object.assign(Object.assign({},(0,y.Wf)(f)),{display:"inline-flex",flexWrap:"wrap",columnGap:f.marginXS,[`> ${f.antCls}-row`]:{flex:1}}),[le]:Object.assign(Object.assign({},(0,y.Wf)(f)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${le}`]:{marginInlineStart:0},[`&${le}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ue]:Object.assign(Object.assign({},(0,y.Wf)(f)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:f.borderRadiusSM,alignSelf:"center",[`${ue}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ue}-inner`]:Object.assign({},(0,y.oN)(f))},[`${ue}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:f.checkboxSize,height:f.checkboxSize,direction:"ltr",backgroundColor:f.colorBgContainer,border:`${f.lineWidth}px ${f.lineType} ${f.colorBorder}`,borderRadius:f.borderRadiusSM,borderCollapse:"separate",transition:`all ${f.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:f.checkboxSize/14*5,height:f.checkboxSize/14*8,border:`${f.lineWidthBold}px solid ${f.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${f.motionDurationFast} ${f.motionEaseInBack}, opacity ${f.motionDurationFast}`}},"& + span":{paddingInlineStart:f.paddingXS,paddingInlineEnd:f.paddingXS}})},{[`
${le}:not(${le}-disabled),
${ue}:not(${ue}-disabled)
`]:{[`&:hover ${ue}-inner`]:{borderColor:f.colorPrimary}},[`${le}:not(${le}-disabled)`]:{[`&:hover ${ue}-checked:not(${ue}-disabled) ${ue}-inner`]:{backgroundColor:f.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ue}-checked:not(${ue}-disabled):after`]:{borderColor:f.colorPrimaryHover}}},{[`${ue}-checked`]:{[`${ue}-inner`]:{backgroundColor:f.colorPrimary,borderColor:f.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${f.motionDurationMid} ${f.motionEaseOutBack} ${f.motionDurationFast}`}}},[`
${le}-checked:not(${le}-disabled),
${ue}-checked:not(${ue}-disabled)
`]:{[`&:hover ${ue}-inner`]:{backgroundColor:f.colorPrimaryHover,borderColor:"transparent"}}},{[ue]:{"&-indeterminate":{[`${ue}-inner`]:{backgroundColor:f.colorBgContainer,borderColor:f.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:f.fontSizeLG/2,height:f.fontSizeLG/2,backgroundColor:f.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${le}-disabled`]:{cursor:"not-allowed"},[`${ue}-disabled`]:{[`&, ${ue}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ue}-inner`]:{background:f.colorBgContainerDisabled,borderColor:f.colorBorder,"&:after":{borderColor:f.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:f.colorTextDisabled},[`&${ue}-indeterminate ${ue}-inner::after`]:{background:f.colorTextDisabled}}}]};function D(f,ue){const le=(0,C.TS)(ue,{checkboxCls:`.${f}`,checkboxSize:ue.controlInteractiveSize});return[Y(le)]}Ne.ZP=(0,F.Z)("Checkbox",(f,ue)=>{let{prefixCls:le}=ue;return[D(le,f)]})},91857:function(ft,Ne,a){"use strict";var y=a(59301),C=a(38819),F=a(92310),Y=a.n(F),D=a(31561),f=a(70425),ue=a(18929),le=a(2738),oe=a(79676),Se=a(53487),fe=a(92343),M=a(36355),d=a(20834),ne=a(40875),q=a(88088),U=a(47211);const Ce=null,K=S=>{const{menu:T,arrow:P,prefixCls:w,children:re,trigger:G,disabled:me,dropdownRender:L,getPopupContainer:xe,overlayClassName:x,rootClassName:$,open:p,onOpenChange:k,visible:pe,onVisibleChange:H,mouseEnterDelay:de=.15,mouseLeaveDelay:X=.1,autoAdjustOverflow:O=!0,placement:j="",overlay:J,transitionName:ae}=S,{getPopupContainer:ge,getPrefixCls:Te,direction:ke}=y.useContext(M.E_),Re=y.useMemo(()=>{const c=Te();return ae!==void 0?ae:j.includes("top")?`${c}-slide-down`:`${c}-slide-up`},[Te,j,ae]),We=y.useMemo(()=>j?j.includes("Center")?j.slice(0,j.indexOf("Center")):j:ke==="rtl"?"bottomRight":"bottomLeft",[j,ke]),Ze=Te("dropdown",w),[Ue,Ve]=(0,U.Z)(Ze),[,V]=(0,q.Z)(),Oe=y.Children.only(re),h=(0,fe.Tm)(Oe,{className:Y()(`${Ze}-trigger`,{[`${Ze}-rtl`]:ke==="rtl"},Oe.props.className),disabled:me}),_=me?[]:G;let m;_&&_.includes("contextMenu")&&(m=!0);const[o,b]=(0,ue.Z)(!1,{value:p!=null?p:pe}),Z=(0,f.useEvent)(c=>{k==null||k(c),H==null||H(c),b(c)}),E=Y()(x,$,Ve,{[`${Ze}-rtl`]:ke==="rtl"}),l=(0,oe.Z)({arrowPointAtCenter:typeof P=="object"&&P.pointAtCenter,autoAdjustOverflow:O,offset:V.marginXXS,arrowWidth:P?V.sizePopupArrow:0,borderRadius:V.borderRadius}),g=y.useCallback(()=>{b(!1)},[]),r=()=>{let c;return T!=null&&T.items?c=y.createElement(d.default,Object.assign({},T)):typeof J=="function"?c=J():c=J,L&&(c=L(c)),c=y.Children.only(typeof c=="string"?y.createElement("span",null,c):c),y.createElement(ne.J,{prefixCls:`${Ze}-menu`,expandIcon:y.createElement("span",{className:`${Ze}-menu-submenu-arrow`},y.createElement(C.Z,{className:`${Ze}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:g,validator:v=>{let{mode:B}=v}},c)};return Ue(y.createElement(D.Z,Object.assign({alignPoint:m},(0,le.Z)(S,["rootClassName"]),{mouseEnterDelay:de,mouseLeaveDelay:X,visible:o,builtinPlacements:l,arrow:!!P,overlayClassName:E,prefixCls:Ze,getPopupContainer:xe||ge,transitionName:Re,trigger:_,overlay:r,placement:We,onVisibleChange:Z}),h))};function A(S){return Object.assign(Object.assign({},S),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const N=(0,Se.Z)(K,"dropdown",S=>S,A),u=S=>y.createElement(N,Object.assign({},S),y.createElement("span",null));K._InternalPanelDoNotUseOrYouWillBeFired=u,Ne.Z=K},38854:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return q}});var y=a(91857),C=a(92310),F=a.n(C),Y=a(59301),D=a(18785),f=a(3113),ue=a(36355),le=a(81327),oe=a(33234),Se=a(47211),fe=function(U,Ce){var K={};for(var A in U)Object.prototype.hasOwnProperty.call(U,A)&&Ce.indexOf(A)<0&&(K[A]=U[A]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,A=Object.getOwnPropertySymbols(U);N<A.length;N++)Ce.indexOf(A[N])<0&&Object.prototype.propertyIsEnumerable.call(U,A[N])&&(K[A[N]]=U[A[N]]);return K};const M=U=>{const{getPopupContainer:Ce,getPrefixCls:K,direction:A}=Y.useContext(ue.E_),{prefixCls:N,type:u="default",danger:S,disabled:T,loading:P,onClick:w,htmlType:re,children:G,className:me,menu:L,arrow:xe,autoFocus:x,overlay:$,trigger:p,align:k,open:pe,onOpenChange:H,placement:de,getPopupContainer:X,href:O,icon:j=Y.createElement(D.Z,null),title:J,buttonsRender:ae=r=>r,mouseEnterDelay:ge,mouseLeaveDelay:Te,overlayClassName:ke,overlayStyle:Re,destroyPopupOnHide:We,dropdownRender:Ze}=U,Ue=fe(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",N),V=`${Ve}-button`,[Oe,h]=(0,Se.Z)(Ve),_={menu:L,arrow:xe,autoFocus:x,align:k,disabled:T,trigger:T?[]:p,onOpenChange:H,getPopupContainer:X||Ce,mouseEnterDelay:ge,mouseLeaveDelay:Te,overlayClassName:ke,overlayStyle:Re,destroyPopupOnHide:We,dropdownRender:Ze},{compactSize:m,compactItemClassnames:o}=(0,oe.ri)(Ve,A),b=F()(V,o,me,h);"overlay"in U&&(_.overlay=$),"open"in U&&(_.open=pe),"placement"in U?_.placement=de:_.placement=A==="rtl"?"bottomLeft":"bottomRight";const Z=Y.createElement(f.ZP,{type:u,danger:S,disabled:T,loading:P,onClick:w,htmlType:re,href:O,title:J},G),E=Y.createElement(f.ZP,{type:u,danger:S,icon:j}),[l,g]=ae([Z,E]);return Oe(Y.createElement(le.Z.Compact,Object.assign({className:b,size:m,block:!0},Ue),l,Y.createElement(y.Z,Object.assign({},_),g)))};M.__ANT_BUTTON=!0;var d=M;const ne=y.Z;ne.Button=d;var q=ne},47211:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return fe}});var y=a(17313),C=a(13826),F=a(92899),Y=a(29878),D=a(19447),f=a(83116),ue=a(37613),oe=M=>{const{componentCls:d,menuCls:ne,colorError:q,colorTextLightSolid:U}=M,Ce=`${ne}-item`;return{[`${d}, ${d}-menu-submenu`]:{[`${ne} ${Ce}`]:{[`&${Ce}-danger:not(${Ce}-disabled)`]:{color:q,"&:hover":{color:U,backgroundColor:q}}}}}};const Se=M=>{const{componentCls:d,menuCls:ne,zIndexPopup:q,dropdownArrowDistance:U,sizePopupArrow:Ce,antCls:K,iconCls:A,motionDurationMid:N,dropdownPaddingVertical:u,fontSize:S,dropdownEdgeChildPadding:T,colorTextDisabled:P,fontSizeIcon:w,controlPaddingHorizontal:re,colorBgElevated:G}=M;return[{[d]:Object.assign(Object.assign({},(0,y.Wf)(M)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:q,display:"block","&::before":{position:"absolute",insetBlock:-U+Ce/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${K}-btn`]:{[`& > ${A}-down, & > ${K}-btn-icon > ${A}-down`]:{fontSize:w}},[`${d}-wrap`]:{position:"relative",[`${K}-btn > ${A}-down`]:{fontSize:w},[`${A}-down::before`]:{transition:`transform ${N}`}},[`${d}-wrap-open`]:{[`${A}-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${d}-placement-bottomLeft,
&${K}-slide-down-appear${K}-slide-down-appear-active${d}-placement-bottomLeft,
&${K}-slide-down-enter${K}-slide-down-enter-active${d}-placement-bottom,
&${K}-slide-down-appear${K}-slide-down-appear-active${d}-placement-bottom,
&${K}-slide-down-enter${K}-slide-down-enter-active${d}-placement-bottomRight,
&${K}-slide-down-appear${K}-slide-down-appear-active${d}-placement-bottomRight`]:{animationName:C.fJ},[`&${K}-slide-up-enter${K}-slide-up-enter-active${d}-placement-topLeft,
&${K}-slide-up-appear${K}-slide-up-appear-active${d}-placement-topLeft,
&${K}-slide-up-enter${K}-slide-up-enter-active${d}-placement-top,
&${K}-slide-up-appear${K}-slide-up-appear-active${d}-placement-top,
&${K}-slide-up-enter${K}-slide-up-enter-active${d}-placement-topRight,
&${K}-slide-up-appear${K}-slide-up-appear-active${d}-placement-topRight`]:{animationName:C.Qt},[`&${K}-slide-down-leave${K}-slide-down-leave-active${d}-placement-bottomLeft,
&${K}-slide-down-leave${K}-slide-down-leave-active${d}-placement-bottom,
&${K}-slide-down-leave${K}-slide-down-leave-active${d}-placement-bottomRight`]:{animationName:C.Uw},[`&${K}-slide-up-leave${K}-slide-up-leave-active${d}-placement-topLeft,
&${K}-slide-up-leave${K}-slide-up-leave-active${d}-placement-top,
&${K}-slide-up-leave${K}-slide-up-leave-active${d}-placement-topRight`]:{animationName:C.ly}})},(0,D.ZP)(M,{colorBg:G,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${d} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:q,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${d}, ${d}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:T,listStyleType:"none",backgroundColor:G,backgroundClip:"padding-box",borderRadius:M.borderRadiusLG,outline:"none",boxShadow:M.boxShadowSecondary},(0,y.Qy)(M)),{[`${ne}-item-group-title`]:{padding:`${u}px ${re}px`,color:M.colorTextDescription,transition:`all ${N}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:S,marginInlineEnd:M.marginXS,fontSize:M.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${N}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${u}px ${re}px`,color:M.colorText,fontWeight:"normal",fontSize:S,lineHeight:M.lineHeight,cursor:"pointer",transition:`all ${N}`,borderRadius:M.borderRadiusSM,"&:hover, &-active":{backgroundColor:M.controlItemBgHover}},(0,y.Qy)(M)),{"&-selected":{color:M.colorPrimary,backgroundColor:M.controlItemBgActive,"&:hover, &-active":{backgroundColor:M.controlItemBgActiveHover}},"&-disabled":{color:P,cursor:"not-allowed","&:hover":{color:P,backgroundColor:G,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${M.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:M.colorSplit},[`${d}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:M.paddingXS,[`${d}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:M.colorTextDescription,fontSize:w,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${M.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:re+M.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${d}-menu-submenu-title`]:{[`&, ${d}-menu-submenu-arrow-icon`]:{color:P,backgroundColor:G,cursor:"not-allowed"}},[`${ne}-submenu-selected ${d}-menu-submenu-title`]:{color:M.colorPrimary}})}},[(0,C.oN)(M,"slide-up"),(0,C.oN)(M,"slide-down"),(0,F.Fm)(M,"move-up"),(0,F.Fm)(M,"move-down"),(0,Y._y)(M,"zoom-big")]]};var fe=(0,f.Z)("Dropdown",(M,d)=>{let{rootPrefixCls:ne}=d;const{marginXXS:q,sizePopupArrow:U,controlHeight:Ce,fontSize:K,lineHeight:A,paddingXXS:N,componentCls:u,borderRadiusLG:S}=M,T=(Ce-K*A)/2,{dropdownArrowOffset:P}=(0,D.fS)({contentRadius:S}),w=(0,ue.TS)(M,{menuCls:`${u}-menu`,rootPrefixCls:ne,dropdownArrowDistance:U/2+q,dropdownArrowOffset:P,dropdownPaddingVertical:T,dropdownEdgeChildPadding:N});return[Se(w),oe(w)]},M=>({zIndexPopup:M.zIndexPopupBase+50}))},64165:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return N}});var y=a(92310),C=a.n(y),F=a(59301),Y=a(36355),D=a(9763),f=a(64993),ue=a(88088),oe=()=>{const[,u]=(0,ue.Z)(),T=new f.C(u.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return F.createElement("svg",{style:T,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},F.createElement("g",{fill:"none",fillRule:"evenodd"},F.createElement("g",{transform:"translate(24 31.67)"},F.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),F.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"}),F.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)"}),F.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"}),F.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"})),F.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"}),F.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},F.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),F.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},fe=()=>{const[,u]=(0,ue.Z)(),{colorFill:S,colorFillTertiary:T,colorFillQuaternary:P,colorBgContainer:w}=u,{borderColor:re,shadowColor:G,contentColor:me}=(0,F.useMemo)(()=>({borderColor:new f.C(S).onBackground(w).toHexShortString(),shadowColor:new f.C(T).onBackground(w).toHexShortString(),contentColor:new f.C(P).onBackground(w).toHexShortString()}),[S,T,P,w]);return F.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},F.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},F.createElement("ellipse",{fill:G,cx:"32",cy:"33",rx:"32",ry:"7"}),F.createElement("g",{fillRule:"nonzero",stroke:re},F.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"}),F.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:me}))))},M=a(83116),d=a(37613);const ne=u=>{const{componentCls:S,margin:T,marginXS:P,marginXL:w,fontSize:re,lineHeight:G}=u;return{[S]:{marginInline:P,fontSize:re,lineHeight:G,textAlign:"center",[`${S}-image`]:{height:u.emptyImgHeight,marginBottom:P,opacity:u.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${S}-description`]:{color:u.colorText},[`${S}-footer`]:{marginTop:T},"&-normal":{marginBlock:w,color:u.colorTextDisabled,[`${S}-description`]:{color:u.colorTextDisabled},[`${S}-image`]:{height:u.emptyImgHeightMD}},"&-small":{marginBlock:P,color:u.colorTextDisabled,[`${S}-image`]:{height:u.emptyImgHeightSM}}}}};var q=(0,M.Z)("Empty",u=>{const{componentCls:S,controlHeightLG:T}=u,P=(0,d.TS)(u,{emptyImgCls:`${S}-img`,emptyImgHeight:T*2.5,emptyImgHeightMD:T,emptyImgHeightSM:T*.875});return[ne(P)]}),U=function(u,S){var T={};for(var P in u)Object.prototype.hasOwnProperty.call(u,P)&&S.indexOf(P)<0&&(T[P]=u[P]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,P=Object.getOwnPropertySymbols(u);w<P.length;w++)S.indexOf(P[w])<0&&Object.prototype.propertyIsEnumerable.call(u,P[w])&&(T[P[w]]=u[P[w]]);return T};const Ce=F.createElement(oe,null),K=F.createElement(fe,null),A=u=>{var{className:S,rootClassName:T,prefixCls:P,image:w=Ce,description:re,children:G,imageStyle:me,style:L}=u,xe=U(u,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:x,direction:$,empty:p}=F.useContext(Y.E_),k=x("empty",P),[pe,H]=q(k),[de]=(0,D.Z)("Empty"),X=typeof re!="undefined"?re:de==null?void 0:de.description,O=typeof X=="string"?X:"empty";let j=null;return typeof w=="string"?j=F.createElement("img",{alt:O,src:w}):j=w,pe(F.createElement("div",Object.assign({className:C()(H,k,p==null?void 0:p.className,{[`${k}-normal`]:w===K,[`${k}-rtl`]:$==="rtl"},S,T),style:Object.assign(Object.assign({},p==null?void 0:p.style),L)},xe),F.createElement("div",{className:`${k}-image`,style:me},j),X&&F.createElement("div",{className:`${k}-description`},X),G&&F.createElement("div",{className:`${k}-footer`},G)))};A.PRESENTED_IMAGE_DEFAULT=Ce,A.PRESENTED_IMAGE_SIMPLE=K;var N=A},45818:function(ft,Ne,a){"use strict";a.d(Ne,{D:function(){return N},Z:function(){return T}});var y=a(54476),C=a(59301),F={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"},Y=F,D=a(7657),f=function(w,re){return C.createElement(D.Z,(0,y.Z)({},w,{ref:re,icon:Y}))},ue=C.forwardRef(f),le=ue,oe=a(33853),Se=a(38819),fe=a(92310),M=a.n(fe),d=a(2738),q=P=>!isNaN(parseFloat(P))&&isFinite(P),U=a(36355),Ce=a(84966),K=function(P,w){var re={};for(var G in P)Object.prototype.hasOwnProperty.call(P,G)&&w.indexOf(G)<0&&(re[G]=P[G]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,G=Object.getOwnPropertySymbols(P);me<G.length;me++)w.indexOf(G[me])<0&&Object.prototype.propertyIsEnumerable.call(P,G[me])&&(re[G[me]]=P[G[me]]);return re};const A={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},N=C.createContext({}),u=(()=>{let P=0;return function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return P+=1,`${w}${P}`}})();var T=C.forwardRef((P,w)=>{const{prefixCls:re,className:G,trigger:me,children:L,defaultCollapsed:xe=!1,theme:x="dark",style:$={},collapsible:p=!1,reverseArrow:k=!1,width:pe=200,collapsedWidth:H=80,zeroWidthTriggerStyle:de,breakpoint:X,onCollapse:O,onBreakpoint:j}=P,J=K(P,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ae}=(0,C.useContext)(Ce.Gs),[ge,Te]=(0,C.useState)("collapsed"in P?P.collapsed:xe),[ke,Re]=(0,C.useState)(!1);(0,C.useEffect)(()=>{"collapsed"in P&&Te(P.collapsed)},[P.collapsed]);const We=(h,_)=>{"collapsed"in P||Te(h),O==null||O(h,_)},Ze=(0,C.useRef)();Ze.current=h=>{Re(h.matches),j==null||j(h.matches),ge!==h.matches&&We(h.matches,"responsive")},(0,C.useEffect)(()=>{function h(m){return Ze.current(m)}let _;if(typeof window!="undefined"){const{matchMedia:m}=window;if(m&&X&&X in A){_=m(`(max-width: ${A[X]})`);try{_.addEventListener("change",h)}catch(o){_.addListener(h)}h(_)}}return()=>{try{_==null||_.removeEventListener("change",h)}catch(m){_==null||_.removeListener(h)}}},[X]),(0,C.useEffect)(()=>{const h=u("ant-sider-");return ae.addSider(h),()=>ae.removeSider(h)},[]);const Ue=()=>{We(!ge,"clickTrigger")},{getPrefixCls:Ve}=(0,C.useContext)(U.E_),V=()=>{const h=Ve("layout-sider",re),_=(0,d.Z)(J,["collapsed"]),m=ge?H:pe,o=q(m)?`${m}px`:String(m),b=parseFloat(String(H||0))===0?C.createElement("span",{onClick:Ue,className:M()(`${h}-zero-width-trigger`,`${h}-zero-width-trigger-${k?"right":"left"}`),style:de},me||C.createElement(le,null)):null,l={expanded:k?C.createElement(Se.Z,null):C.createElement(oe.Z,null),collapsed:k?C.createElement(oe.Z,null):C.createElement(Se.Z,null)}[ge?"collapsed":"expanded"],g=me!==null?b||C.createElement("div",{className:`${h}-trigger`,onClick:Ue,style:{width:o}},me||l):null,r=Object.assign(Object.assign({},$),{flex:`0 0 ${o}`,maxWidth:o,minWidth:o,width:o}),c=M()(h,`${h}-${x}`,{[`${h}-collapsed`]:!!ge,[`${h}-has-trigger`]:p&&me!==null&&!b,[`${h}-below`]:!!ke,[`${h}-zero-width`]:parseFloat(o)===0},G);return C.createElement("aside",Object.assign({className:c},_,{style:r,ref:w}),C.createElement("div",{className:`${h}-children`},L),p||ke&&b?g:null)},Oe=C.useMemo(()=>({siderCollapsed:ge}),[ge]);return C.createElement(N.Provider,{value:Oe},V())})},84966:function(ft,Ne,a){"use strict";a.d(Ne,{VY:function(){return N},$_:function(){return A},h4:function(){return K},Gs:function(){return d},ZP:function(){return u}});var y=a(94480),C=a(92310),F=a.n(C),Y=a(2738),D=a(59301),f=a(36355),ue=a(83116),oe=S=>{const{componentCls:T,bodyBg:P,lightSiderBg:w,lightTriggerBg:re,lightTriggerColor:G}=S;return{[`${T}-sider-light`]:{background:w,[`${T}-sider-trigger`]:{color:G,background:re},[`${T}-sider-zero-width-trigger`]:{color:G,background:re,border:`1px solid ${P}`,borderInlineStart:0}}}};const Se=S=>{const{antCls:T,componentCls:P,colorText:w,triggerColor:re,footerBg:G,triggerBg:me,headerHeight:L,headerPadding:xe,headerColor:x,footerPadding:$,triggerHeight:p,zeroTriggerHeight:k,zeroTriggerWidth:pe,motionDurationMid:H,motionDurationSlow:de,fontSize:X,borderRadius:O,bodyBg:j,headerBg:J,siderBg:ae}=S;return{[P]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:j,"&, *":{boxSizing:"border-box"},[`&${P}-has-sider`]:{flexDirection:"row",[`> ${P}, > ${P}-content`]:{width:0}},[`${P}-header, &${P}-footer`]:{flex:"0 0 auto"},[`${P}-sider`]:{position:"relative",minWidth:0,background:ae,transition:`all ${H}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${T}-menu${T}-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:me,cursor:"pointer",transition:`all ${H}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:L,insetInlineEnd:-pe,zIndex:1,width:pe,height:k,color:re,fontSize:S.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ae,borderStartStartRadius:0,borderStartEndRadius:O,borderEndEndRadius:O,borderEndStartRadius:0,cursor:"pointer",transition:`background ${de} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${de}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-pe,borderStartStartRadius:O,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:O}}}}},oe(S)),{"&-rtl":{direction:"rtl"}}),[`${P}-header`]:{height:L,padding:xe,color:x,lineHeight:`${L}px`,background:J,[`${T}-menu`]:{lineHeight:"inherit"}},[`${P}-footer`]:{padding:$,color:w,fontSize:X,background:G},[`${P}-content`]:{flex:"auto",minHeight:0}}};var fe=(0,ue.Z)("Layout",S=>[Se(S)],S=>{const{colorBgLayout:T,controlHeight:P,controlHeightLG:w,colorText:re,controlHeightSM:G,marginXXS:me,colorTextLightSolid:L,colorBgContainer:xe}=S,x=w*1.25;return{colorBgHeader:"#001529",colorBgBody:T,colorBgTrigger:"#002140",bodyBg:T,headerBg:"#001529",headerHeight:P*2,headerPadding:`0 ${x}px`,headerColor:re,footerPadding:`${G}px ${x}px`,footerBg:T,siderBg:"#001529",triggerHeight:w+me*2,triggerBg:"#002140",triggerColor:L,zeroTriggerWidth:w,zeroTriggerHeight:w,lightSiderBg:xe,lightTriggerBg:xe,lightTriggerColor:re}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),M=function(S,T){var P={};for(var w in S)Object.prototype.hasOwnProperty.call(S,w)&&T.indexOf(w)<0&&(P[w]=S[w]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,w=Object.getOwnPropertySymbols(S);re<w.length;re++)T.indexOf(w[re])<0&&Object.prototype.propertyIsEnumerable.call(S,w[re])&&(P[w[re]]=S[w[re]]);return P};const d=D.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(S){let{suffixCls:T,tagName:P,displayName:w}=S;return re=>D.forwardRef((me,L)=>D.createElement(re,Object.assign({ref:L,suffixCls:T,tagName:P},me)))}const q=D.forwardRef((S,T)=>{const{prefixCls:P,suffixCls:w,className:re,tagName:G}=S,me=M(S,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:L}=D.useContext(f.E_),xe=L("layout",P),[x,$]=fe(xe),p=w?`${xe}-${w}`:xe;return x(D.createElement(G,Object.assign({className:F()(P||p,re,$),ref:T},me)))}),U=D.forwardRef((S,T)=>{const{direction:P}=D.useContext(f.E_),[w,re]=D.useState([]),{prefixCls:G,className:me,rootClassName:L,children:xe,hasSider:x,tagName:$,style:p}=S,k=M(S,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),pe=(0,Y.Z)(k,["suffixCls"]),{getPrefixCls:H,layout:de}=D.useContext(f.E_),X=H("layout",G),[O,j]=fe(X),J=F()(X,{[`${X}-has-sider`]:typeof x=="boolean"?x:w.length>0,[`${X}-rtl`]:P==="rtl"},de==null?void 0:de.className,me,L,j),ae=D.useMemo(()=>({siderHook:{addSider:ge=>{re(Te=>[].concat((0,y.Z)(Te),[ge]))},removeSider:ge=>{re(Te=>Te.filter(ke=>ke!==ge))}}}),[]);return O(D.createElement(d.Provider,{value:ae},D.createElement($,Object.assign({ref:T,className:J,style:Object.assign(Object.assign({},de==null?void 0:de.style),p)},pe),xe)))}),Ce=ne({tagName:"div",displayName:"Layout"})(U),K=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(q),A=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(q),N=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(q);var u=Ce},40875:function(ft,Ne,a){"use strict";a.d(Ne,{J:function(){return f}});var y=a(59301),C=a(33234),F=a(70425),Y=function(ue,le){var oe={};for(var Se in ue)Object.prototype.hasOwnProperty.call(ue,Se)&&le.indexOf(Se)<0&&(oe[Se]=ue[Se]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,Se=Object.getOwnPropertySymbols(ue);fe<Se.length;fe++)le.indexOf(Se[fe])<0&&Object.prototype.propertyIsEnumerable.call(ue,Se[fe])&&(oe[Se[fe]]=ue[Se[fe]]);return oe};const D=y.createContext(null),f=y.forwardRef((ue,le)=>{const{children:oe}=ue,Se=Y(ue,["children"]),fe=y.useContext(D),M=y.useMemo(()=>Object.assign(Object.assign({},fe),Se),[fe,Se.prefixCls,Se.mode,Se.selectable]);return y.createElement(D.Provider,{value:M},y.createElement(C.BR,null,(0,F.supportNodeRef)(oe)?y.cloneElement(oe,{ref:le}):oe))});Ne.Z=D},20834:function(ft,Ne,a){"use strict";a.d(Ne,{default:function(){return Oe}});var y=a(15285),C=a(59301),F=a(45818),Y=a(92310),D=a.n(Y),f=a(36355),ue=function(h,_){var m={};for(var o in h)Object.prototype.hasOwnProperty.call(h,o)&&_.indexOf(o)<0&&(m[o]=h[o]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,o=Object.getOwnPropertySymbols(h);b<o.length;b++)_.indexOf(o[b])<0&&Object.prototype.propertyIsEnumerable.call(h,o[b])&&(m[o[b]]=h[o[b]]);return m},oe=h=>{const{prefixCls:_,className:m,dashed:o}=h,b=ue(h,["prefixCls","className","dashed"]),{getPrefixCls:Z}=C.useContext(f.E_),E=Z("menu",_),l=D()({[`${E}-item-divider-dashed`]:!!o},m);return C.createElement(y.iz,Object.assign({className:l},b))},Se=a(11592),fe=a(2738),M=a(6848),d=a(92343),q=(0,C.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ce=h=>{var _;const{className:m,children:o,icon:b,title:Z,danger:E}=h,{prefixCls:l,firstLevel:g,direction:r,disableMenuItemTitleTooltip:c,inlineCollapsed:v}=C.useContext(q),B=Le=>{const Be=C.createElement("span",{className:`${l}-title-content`},o);return(!b||(0,d.l$)(o)&&o.type==="span")&&o&&Le&&g&&typeof o=="string"?C.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):Be},{siderCollapsed:Q}=C.useContext(F.D);let he=Z;typeof Z=="undefined"?he=g?o:"":Z===!1&&(he="");const ce={title:he};!Q&&!v&&(ce.title=null,ce.open=!1);const se=(0,Se.Z)(o).length;let z=C.createElement(y.ck,Object.assign({},(0,fe.Z)(h,["title","icon","danger"]),{className:D()({[`${l}-item-danger`]:E,[`${l}-item-only-child`]:(b?se+1:se)===1},m),title:typeof Z=="string"?Z:void 0}),(0,d.Tm)(b,{className:D()((0,d.l$)(b)?(_=b.props)===null||_===void 0?void 0:_.className:"",`${l}-item-icon`)}),B(v));return c||(z=C.createElement(M.Z,Object.assign({},ce,{placement:r==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),z)),z},A=h=>{var _;const{popupClassName:m,icon:o,title:b,theme:Z}=h,E=C.useContext(q),{prefixCls:l,inlineCollapsed:g,theme:r}=E,c=(0,y.Xl)();let v;if(!o)v=g&&!c.length&&b&&typeof b=="string"?C.createElement("div",{className:`${l}-inline-collapsed-noicon`},b.charAt(0)):C.createElement("span",{className:`${l}-title-content`},b);else{const Q=(0,d.l$)(b)&&b.type==="span";v=C.createElement(C.Fragment,null,(0,d.Tm)(o,{className:D()((0,d.l$)(o)?(_=o.props)===null||_===void 0?void 0:_.className:"",`${l}-item-icon`)}),Q?b:C.createElement("span",{className:`${l}-title-content`},b))}const B=C.useMemo(()=>Object.assign(Object.assign({},E),{firstLevel:!1}),[E]);return C.createElement(q.Provider,{value:B},C.createElement(y.Wd,Object.assign({},(0,fe.Z)(h,["icon"]),{title:v,popupClassName:D()(l,m,`${l}-${Z||r}`)})))},N=a(18785),u=a(70425),S=a(62892),T=a(40875),P=function(h,_){var m={};for(var o in h)Object.prototype.hasOwnProperty.call(h,o)&&_.indexOf(o)<0&&(m[o]=h[o]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,o=Object.getOwnPropertySymbols(h);b<o.length;b++)_.indexOf(o[b])<0&&Object.prototype.propertyIsEnumerable.call(h,o[b])&&(m[o[b]]=h[o[b]]);return m};function w(h){return(h||[]).map((_,m)=>{if(_&&typeof _=="object"){const o=_,{label:b,children:Z,key:E,type:l}=o,g=P(o,["label","children","key","type"]),r=E!=null?E:`tmp-${m}`;return Z||l==="group"?l==="group"?C.createElement(y.BW,Object.assign({key:r},g,{title:b}),w(Z)):C.createElement(A,Object.assign({key:r},g,{title:b}),w(Z)):l==="divider"?C.createElement(oe,Object.assign({key:r},g)):C.createElement(Ce,Object.assign({key:r},g),b)}return null}).filter(_=>_)}function re(h){return C.useMemo(()=>h&&w(h),[h])}var G=a(64993),me=a(17313),L=a(8378),xe=a(13826),x=a(29878),$=a(83116),p=a(37613),pe=h=>{const{componentCls:_,motionDurationSlow:m,horizontalLineHeight:o,colorSplit:b,lineWidth:Z,lineType:E,itemPaddingInline:l}=h;return{[`${_}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${Z}px ${E} ${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 ${m}`,`background ${m}`].join(",")},[`${_}-submenu-arrow`]:{display:"none"}}}},de=h=>{let{componentCls:_,menuArrowOffset:m}=h;return{[`${_}-rtl`]:{direction:"rtl"},[`${_}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${_}-rtl${_}-vertical,
${_}-submenu-rtl ${_}-vertical`]:{[`${_}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${m})`},"&::after":{transform:`rotate(45deg) translateY(${m})`}}}}};const X=h=>Object.assign({},(0,me.oN)(h));var j=(h,_)=>{const{componentCls:m,itemColor:o,itemSelectedColor:b,groupTitleColor:Z,itemBg:E,subMenuItemBg:l,itemSelectedBg:g,activeBarHeight:r,activeBarWidth:c,activeBarBorderWidth:v,motionDurationSlow:B,motionEaseInOut:Q,motionEaseOut:he,itemPaddingInline:ce,motionDurationMid:se,itemHoverColor:z,lineType:Le,colorSplit:Be,itemDisabledColor:W,dangerItemColor:Ke,dangerItemHoverColor:Me,dangerItemSelectedColor:rt,dangerItemActiveBg:ze,dangerItemSelectedBg:it,itemHoverBg:pt,itemActiveBg:lt,menuSubMenuBg:nt,horizontalItemSelectedColor:mt,horizontalItemSelectedBg:Ge,horizontalItemBorderRadius:Fe,horizontalItemHoverBg:Je,popupBg:yt}=h;return{[`${m}-${_}, ${m}-${_} > ${m}`]:{color:o,background:E,[`&${m}-root:focus-visible`]:Object.assign({},X(h)),[`${m}-item-group-title`]:{color:Z},[`${m}-submenu-selected`]:{[`> ${m}-submenu-title`]:{color:b}},[`${m}-item-disabled, ${m}-submenu-disabled`]:{color:`${W} !important`},[`${m}-item:not(${m}-item-selected):not(${m}-submenu-selected)`]:{[`&:hover, > ${m}-submenu-title:hover`]:{color:z}},[`&:not(${m}-horizontal)`]:{[`${m}-item:not(${m}-item-selected)`]:{"&:hover":{backgroundColor:pt},"&:active":{backgroundColor:lt}},[`${m}-submenu-title`]:{"&:hover":{backgroundColor:pt},"&:active":{backgroundColor:lt}}},[`${m}-item-danger`]:{color:Ke,[`&${m}-item:hover`]:{[`&:not(${m}-item-selected):not(${m}-submenu-selected)`]:{color:Me}},[`&${m}-item:active`]:{background:ze}},[`${m}-item a`]:{"&, &:hover":{color:"inherit"}},[`${m}-item-selected`]:{color:b,[`&${m}-item-danger`]:{color:rt},"a, a:hover":{color:"inherit"}},[`& ${m}-item-selected`]:{backgroundColor:g,[`&${m}-item-danger`]:{backgroundColor:it}},[`${m}-item, ${m}-submenu-title`]:{[`&:not(${m}-item-disabled):focus-visible`]:Object.assign({},X(h))},[`&${m}-submenu > ${m}`]:{backgroundColor:nt},[`&${m}-popup > ${m}`]:{backgroundColor:yt},[`&${m}-horizontal`]:Object.assign(Object.assign({},_==="dark"?{borderBottom:0}:{}),{[`> ${m}-item, > ${m}-submenu`]:{top:v,marginTop:-v,marginBottom:0,borderRadius:Fe,"&::after":{position:"absolute",insetInline:ce,bottom:0,borderBottom:`${r}px solid transparent`,transition:`border-color ${B} ${Q}`,content:'""'},"&:hover, &-active, &-open":{background:Je,"&::after":{borderBottomWidth:r,borderBottomColor:mt}},"&-selected":{color:mt,backgroundColor:Ge,"&:hover":{backgroundColor:Ge},"&::after":{borderBottomWidth:r,borderBottomColor:mt}}}}),[`&${m}-root`]:{[`&${m}-inline, &${m}-vertical`]:{borderInlineEnd:`${v}px ${Le} ${Be}`}},[`&${m}-inline`]:{[`${m}-sub${m}-inline`]:{background:l},[`${m}-item, ${m}-submenu-title`]:v&&c?{width:`calc(100% + ${v}px)`}:{},[`${m}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${c}px solid ${b}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${se} ${he}`,`opacity ${se} ${he}`].join(","),content:'""'},[`&${m}-item-danger`]:{"&::after":{borderInlineEndColor:rt}}},[`${m}-selected, ${m}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${se} ${Q}`,`opacity ${se} ${Q}`].join(",")}}}}}};const J=h=>{const{componentCls:_,itemHeight:m,itemMarginInline:o,padding:b,menuArrowSize:Z,marginXS:E,itemMarginBlock:l}=h,g=b+Z+E;return{[`${_}-item`]:{position:"relative",overflow:"hidden"},[`${_}-item, ${_}-submenu-title`]:{height:m,lineHeight:`${m}px`,paddingInline:b,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:l,width:`calc(100% - ${o*2}px)`},[`> ${_}-item,
> ${_}-submenu > ${_}-submenu-title`]:{height:m,lineHeight:`${m}px`},[`${_}-item-group-list ${_}-submenu-title,
${_}-submenu-title`]:{paddingInlineEnd:g}}};var ge=h=>{const{componentCls:_,iconCls:m,itemHeight:o,colorTextLightSolid:b,dropdownWidth:Z,controlHeightLG:E,motionDurationMid:l,motionEaseOut:g,paddingXL:r,itemMarginInline:c,fontSizeLG:v,motionDurationSlow:B,paddingXS:Q,boxShadowSecondary:he,collapsedWidth:ce,collapsedIconSize:se}=h,z={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[_]:{"&-inline, &-vertical":Object.assign({[`&${_}-root`]:{boxShadow:"none"}},J(h))},[`${_}-submenu-popup`]:{[`${_}-vertical`]:Object.assign(Object.assign({},J(h)),{boxShadow:he})}},{[`${_}-submenu-popup ${_}-vertical${_}-sub`]:{minWidth:Z,maxHeight:`calc(100vh - ${E*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 ${B}`,`background ${B}`,`padding ${l} ${g}`].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`]:z,[`& ${_}-item-group-title`]:{paddingInlineStart:r}},[`${_}-item`]:z}},{[`${_}-inline-collapsed`]:{width:ce,[`&${_}-root`]:{[`${_}-item, ${_}-submenu ${_}-submenu-title`]:{[`> ${_}-inline-collapsed-noicon`]:{fontSize:v,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% - ${v/2}px - ${c}px)`,textOverflow:"clip",[`
${_}-submenu-arrow,
${_}-submenu-expand-icon
`]:{opacity:0},[`${_}-item-icon, ${m}`]:{margin:0,fontSize:se,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${_}-item-icon, ${m}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${_}-item-icon, ${m}`]:{display:"none"},"a, a:hover":{color:b}},[`${_}-item-group-title`]:Object.assign(Object.assign({},me.vS),{paddingInline:Q})}}]};const Te=h=>{const{componentCls:_,motionDurationSlow:m,motionDurationMid:o,motionEaseInOut:b,motionEaseOut:Z,iconCls:E,iconSize:l,iconMarginInlineEnd:g}=h;return{[`${_}-item, ${_}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${m}`,`background ${m}`,`padding ${m} ${b}`].join(","),[`${_}-item-icon, ${E}`]:{minWidth:l,fontSize:l,transition:[`font-size ${o} ${Z}`,`margin ${m} ${b}`,`color ${m}`].join(","),"+ span":{marginInlineStart:g,opacity:1,transition:[`opacity ${m} ${b}`,`margin ${m}`,`color ${m}`].join(",")}},[`${_}-item-icon`]:Object.assign({},(0,me.Ro)()),[`&${_}-item-only-child`]:{[`> ${E}, > ${_}-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"}}}},ke=h=>{const{componentCls:_,motionDurationSlow:m,motionEaseInOut:o,borderRadius:b,menuArrowSize:Z,menuArrowOffset:E}=h;return{[`${_}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:h.margin,width:Z,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${m} ${o}, opacity ${m}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Z*.6,height:Z*.15,backgroundColor:"currentcolor",borderRadius:b,transition:[`background ${m} ${o}`,`transform ${m} ${o}`,`top ${m} ${o}`,`color ${m} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${E})`},"&::after":{transform:`rotate(-45deg) translateY(${E})`}}}}},Re=h=>{const{antCls:_,componentCls:m,fontSize:o,motionDurationSlow:b,motionDurationMid:Z,motionEaseInOut:E,paddingXS:l,padding:g,colorSplit:r,lineWidth:c,zIndexPopup:v,borderRadiusLG:B,subMenuItemBorderRadius:Q,menuArrowSize:he,menuArrowOffset:ce,lineType:se,menuPanelMaskInset:z,groupTitleLineHeight:Le,groupTitleFontSize:Be}=h;return[{"":{[`${m}`]:Object.assign(Object.assign({},(0,me.dF)()),{"&-hidden":{display:"none"}})},[`${m}-submenu-hidden`]:{display:"none"}},{[m]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,me.Wf)(h)),(0,me.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:o,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",[`${m}-item`]:{flex:"none"}},[`${m}-item, ${m}-submenu, ${m}-submenu-title`]:{borderRadius:h.itemBorderRadius},[`${m}-item-group-title`]:{padding:`${l}px ${g}px`,fontSize:Be,lineHeight:Le,transition:`all ${b}`},[`&-horizontal ${m}-submenu`]:{transition:[`border-color ${b} ${E}`,`background ${b} ${E}`].join(",")},[`${m}-submenu, ${m}-submenu-inline`]:{transition:[`border-color ${b} ${E}`,`background ${b} ${E}`,`padding ${Z} ${E}`].join(",")},[`${m}-submenu ${m}-sub`]:{cursor:"initial",transition:[`background ${b} ${E}`,`padding ${b} ${E}`].join(",")},[`${m}-title-content`]:{transition:`color ${b}`},[`${m}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${m}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:r,borderStyle:se,borderWidth:0,borderTopWidth:c,marginBlock:c,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Te(h)),{[`${m}-item-group`]:{[`${m}-item-group-list`]:{margin:0,padding:0,[`${m}-item, ${m}-submenu-title`]:{paddingInline:`${o*2}px ${g}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:v,borderRadius:B,boxShadow:"none",transformOrigin:"0 0",[`&${m}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${z}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:z},"\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:h.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:h.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:h.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:h.paddingXS},[`> ${m}`]:Object.assign(Object.assign(Object.assign({borderRadius:B},Te(h)),ke(h)),{[`${m}-item, ${m}-submenu > ${m}-submenu-title`]:{borderRadius:Q},[`${m}-submenu-title::after`]:{transition:`transform ${b} ${E}`}})}}),ke(h)),{[`&-inline-collapsed ${m}-submenu-arrow,
&-inline ${m}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ce})`},"&::after":{transform:`rotate(45deg) translateX(-${ce})`}},[`${m}-submenu-open${m}-submenu-inline > ${m}-submenu-title > ${m}-submenu-arrow`]:{transform:`translateY(-${he*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ce})`},"&::before":{transform:`rotate(45deg) translateX(${ce})`}}})},{[`${_}-layout-header`]:{[m]:{lineHeight:"inherit"}}}]};var We=(h,_)=>(0,$.Z)("Menu",o=>{if(_===!1)return[];const{colorBgElevated:b,colorPrimary:Z,colorTextLightSolid:E,controlHeightLG:l,fontSize:g,darkItemColor:r,darkDangerItemColor:c,darkItemBg:v,darkSubMenuItemBg:B,darkItemSelectedColor:Q,darkItemSelectedBg:he,darkDangerItemSelectedBg:ce,darkItemHoverBg:se,darkGroupTitleColor:z,darkItemHoverColor:Le,darkItemDisabledColor:Be,darkDangerItemHoverColor:W,darkDangerItemSelectedColor:Ke,darkDangerItemActiveBg:Me}=o,rt=g/7*5,ze=(0,p.TS)(o,{menuArrowSize:rt,menuHorizontalHeight:l*1.15,menuArrowOffset:`${rt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:b}),it=(0,p.TS)(ze,{itemColor:r,itemHoverColor:Le,groupTitleColor:z,itemSelectedColor:Q,itemBg:v,popupBg:v,subMenuItemBg:B,itemActiveBg:"transparent",itemSelectedBg:he,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:se,itemDisabledColor:Be,dangerItemColor:c,dangerItemHoverColor:W,dangerItemSelectedColor:Ke,dangerItemActiveBg:Me,dangerItemSelectedBg:ce,menuSubMenuBg:B,horizontalItemSelectedColor:E,horizontalItemSelectedBg:Z});return[Re(ze),pe(ze),ge(ze),j(ze,"light"),j(it,"dark"),de(ze),(0,L.Z)(ze),(0,xe.oN)(ze,"slide-up"),(0,xe.oN)(ze,"slide-down"),(0,x._y)(ze,"zoom-big")]},o=>{const{colorPrimary:b,colorError:Z,colorTextDisabled:E,colorErrorBg:l,colorText:g,colorTextDescription:r,colorBgContainer:c,colorFillAlter:v,colorFillContent:B,lineWidth:Q,lineWidthBold:he,controlItemBgActive:ce,colorBgTextHover:se,controlHeightLG:z,lineHeight:Le,colorBgElevated:Be,marginXXS:W,padding:Ke,fontSize:Me,controlHeightSM:rt,fontSizeLG:ze,colorTextLightSolid:it,colorErrorHover:pt}=o,lt=new G.C(it).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:o.zIndexPopupBase+50,radiusItem:o.borderRadiusLG,itemBorderRadius:o.borderRadiusLG,radiusSubMenuItem:o.borderRadiusSM,subMenuItemBorderRadius:o.borderRadiusSM,colorItemText:g,itemColor:g,colorItemTextHover:g,itemHoverColor:g,colorItemTextHoverHorizontal:b,horizontalItemHoverColor:b,colorGroupTitle:r,groupTitleColor:r,colorItemTextSelected:b,itemSelectedColor:b,colorItemTextSelectedHorizontal:b,horizontalItemSelectedColor:b,colorItemBg:c,itemBg:c,colorItemBgHover:se,itemHoverBg:se,colorItemBgActive:B,itemActiveBg:ce,colorSubItemBg:v,subMenuItemBg:v,colorItemBgSelected:ce,itemSelectedBg:ce,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:he,activeBarHeight:he,colorActiveBarBorderSize:Q,activeBarBorderWidth:Q,colorItemTextDisabled:E,itemDisabledColor:E,colorDangerItemText:Z,dangerItemColor:Z,colorDangerItemTextHover:Z,dangerItemHoverColor:Z,colorDangerItemTextSelected:Z,dangerItemSelectedColor:Z,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:o.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:z,groupTitleLineHeight:Le,collapsedWidth:z*2,popupBg:Be,itemMarginBlock:W,itemPaddingInline:Ke,horizontalLineHeight:`${z*1.15}px`,iconSize:Me,iconMarginInlineEnd:rt-Me,collapsedIconSize:ze,groupTitleFontSize:Me,darkItemDisabledColor:new G.C(it).setAlpha(.25).toRgbString(),darkItemColor:lt,darkDangerItemColor:Z,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:it,darkItemSelectedBg:b,darkDangerItemSelectedBg:Z,darkItemHoverBg:"transparent",darkGroupTitleColor:lt,darkItemHoverColor:it,darkDangerItemHoverColor:pt,darkDangerItemSelectedColor:it,darkDangerItemActiveBg:Z}},{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"]]})(h),Ze=function(h,_){var m={};for(var o in h)Object.prototype.hasOwnProperty.call(h,o)&&_.indexOf(o)<0&&(m[o]=h[o]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,o=Object.getOwnPropertySymbols(h);b<o.length;b++)_.indexOf(o[b])<0&&Object.prototype.propertyIsEnumerable.call(h,o[b])&&(m[o[b]]=h[o[b]]);return m},Ve=(0,C.forwardRef)((h,_)=>{var m,o;const b=C.useContext(T.Z),Z=b||{},{getPrefixCls:E,getPopupContainer:l,direction:g,menu:r}=C.useContext(f.E_),c=E(),{prefixCls:v,className:B,style:Q,theme:he="light",expandIcon:ce,_internalDisableMenuItemTitleTooltip:se,inlineCollapsed:z,siderCollapsed:Le,items:Be,children:W,rootClassName:Ke,mode:Me,selectable:rt,onClick:ze,overflowedIndicatorPopupClassName:it}=h,pt=Ze(h,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),lt=(0,fe.Z)(pt,["collapsedWidth"]),nt=re(Be)||W;(m=Z.validator)===null||m===void 0||m.call(Z,{mode:Me});const mt=(0,u.useEvent)(function(){var at;ze==null||ze.apply(void 0,arguments),(at=Z.onClick)===null||at===void 0||at.call(Z)}),Ge=Z.mode||Me,Fe=rt!=null?rt:Z.selectable,Je=C.useMemo(()=>Le!==void 0?Le:z,[z,Le]),yt={horizontal:{motionName:`${c}-slide-up`},inline:(0,S.Z)(c),other:{motionName:`${c}-zoom-big`}},ht=E("menu",v||Z.prefixCls),[xt,wt]=We(ht,!b),_t=D()(`${ht}-${he}`,r==null?void 0:r.className,B);let bt;if(typeof ce=="function")bt=ce;else if(ce===null||ce===!1)bt=null;else if(Z.expandIcon===null||Z.expandIcon===!1)bt=null;else{const at=ce!=null?ce:Z.expandIcon;bt=(0,d.Tm)(at,{className:D()(`${ht}-submenu-expand-icon`,(0,d.l$)(at)?(o=at.props)===null||o===void 0?void 0:o.className:"")})}const ot=C.useMemo(()=>({prefixCls:ht,inlineCollapsed:Je||!1,direction:g,firstLevel:!0,theme:he,mode:Ge,disableMenuItemTitleTooltip:se}),[ht,Je,g,se,he]);return xt(C.createElement(T.Z.Provider,{value:null},C.createElement(q.Provider,{value:ot},C.createElement(y.ZP,Object.assign({getPopupContainer:l,overflowedIndicator:C.createElement(N.Z,null),overflowedIndicatorPopupClassName:D()(ht,`${ht}-${he}`,it),mode:Ge,selectable:Fe,onClick:mt},lt,{inlineCollapsed:Je,style:Object.assign(Object.assign({},r==null?void 0:r.style),Q),className:_t,prefixCls:ht,direction:g,defaultMotions:yt,expandIcon:bt,ref:_,rootClassName:D()(Ke,wt)}),nt))))});const V=(0,C.forwardRef)((h,_)=>{const m=(0,C.useRef)(null),o=C.useContext(F.D);return(0,C.useImperativeHandle)(_,()=>({menu:m.current,focus:b=>{var Z;(Z=m.current)===null||Z===void 0||Z.focus(b)}})),C.createElement(Ve,Object.assign({ref:m},h,o))});V.Item=Ce,V.SubMenu=A,V.Divider=oe,V.ItemGroup=y.BW;var Oe=V},13570:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return X}});var y=a(54476),C=a(59301),F={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"},Y=F,D=a(7657),f=function(j,J){return C.createElement(D.Z,(0,y.Z)({},j,{ref:J,icon:Y}))},ue=C.forwardRef(f),le=ue,oe=a(92310),Se=a.n(oe),fe=a(20068),M=a(42978),d=a(75931),ne=a(18929),q=a(10228),U=a(26112);function Ce(O,j){var J=O.disabled,ae=O.prefixCls,ge=O.character,Te=O.characterRender,ke=O.index,Re=O.count,We=O.value,Ze=O.allowHalf,Ue=O.focused,Ve=O.onHover,V=O.onClick,Oe=function(l){Ve(l,ke)},h=function(l){V(l,ke)},_=function(l){l.keyCode===q.Z.ENTER&&V(l,ke)},m=ke+1,o=new Set([ae]);We===0&&ke===0&&Ue?o.add("".concat(ae,"-focused")):Ze&&We+.5>=m&&We<m?(o.add("".concat(ae,"-half")),o.add("".concat(ae,"-active")),Ue&&o.add("".concat(ae,"-focused"))):(m<=We?o.add("".concat(ae,"-full")):o.add("".concat(ae,"-zero")),m===We&&Ue&&o.add("".concat(ae,"-focused")));var b=typeof ge=="function"?ge(O):ge,Z=C.createElement("li",{className:Se()(Array.from(o)),ref:j},C.createElement("div",{onClick:J?null:h,onKeyDown:J?null:_,onMouseMove:J?null:Oe,role:"radio","aria-checked":We>ke?"true":"false","aria-posinset":ke+1,"aria-setsize":Re,tabIndex:J?-1:0},C.createElement("div",{className:"".concat(ae,"-first")},b),C.createElement("div",{className:"".concat(ae,"-second")},b)));return Te&&(Z=Te(Z,O)),Z}var K=C.forwardRef(Ce);function A(){var O=C.useRef({});function j(ae){return O.current[ae]}function J(ae){return function(ge){O.current[ae]=ge}}return[j,J]}function N(O){var j=O.pageXOffset,J="scrollLeft";if(typeof j!="number"){var ae=O.document;j=ae.documentElement[J],typeof j!="number"&&(j=ae.body[J])}return j}function u(O){var j,J,ae=O.ownerDocument,ge=ae.body,Te=ae&&ae.documentElement,ke=O.getBoundingClientRect();return j=ke.left,J=ke.top,j-=Te.clientLeft||ge.clientLeft||0,J-=Te.clientTop||ge.clientTop||0,{left:j,top:J}}function S(O){var j=u(O),J=O.ownerDocument,ae=J.defaultView||J.parentWindow;return j.left+=N(ae),j.left}var T=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function P(O,j){var J,ae=O.prefixCls,ge=ae===void 0?"rc-rate":ae,Te=O.className,ke=O.defaultValue,Re=O.value,We=O.count,Ze=We===void 0?5:We,Ue=O.allowHalf,Ve=Ue===void 0?!1:Ue,V=O.allowClear,Oe=V===void 0?!0:V,h=O.character,_=h===void 0?"\u2605":h,m=O.characterRender,o=O.disabled,b=O.direction,Z=b===void 0?"ltr":b,E=O.tabIndex,l=E===void 0?0:E,g=O.autoFocus,r=O.onHoverChange,c=O.onChange,v=O.onFocus,B=O.onBlur,Q=O.onKeyDown,he=O.onMouseLeave,ce=(0,d.Z)(O,T),se=A(),z=(0,M.Z)(se,2),Le=z[0],Be=z[1],W=C.useRef(null),Ke=function(){if(!o){var I;(I=W.current)===null||I===void 0||I.focus()}};C.useImperativeHandle(j,function(){return{focus:Ke,blur:function(){if(!o){var I;(I=W.current)===null||I===void 0||I.blur()}}}});var Me=(0,ne.Z)(ke||0,{value:Re}),rt=(0,M.Z)(Me,2),ze=rt[0],it=rt[1],pt=(0,ne.Z)(null),lt=(0,M.Z)(pt,2),nt=lt[0],mt=lt[1],Ge=function(I,we){var ye=Z==="rtl",Ae=I+1;if(Ve){var Xe=Le(I),Qe=S(Xe),$e=Xe.clientWidth;(ye&&we-Qe>$e/2||!ye&&we-Qe<$e/2)&&(Ae-=.5)}return Ae},Fe=function(I){it(I),c==null||c(I)},Je=C.useState(!1),yt=(0,M.Z)(Je,2),ht=yt[0],xt=yt[1],wt=function(){xt(!0),v==null||v()},_t=function(){xt(!1),B==null||B()},bt=C.useState(null),ot=(0,M.Z)(bt,2),at=ot[0],Lt=ot[1],ee=function(I,we){var ye=Ge(we,I.pageX);ye!==nt&&(Lt(ye),mt(null)),r==null||r(ye)},e=function(I){o||(Lt(null),mt(null),r==null||r(void 0)),I&&(he==null||he(I))},t=function(I,we){var ye=Ge(we,I.pageX),Ae=!1;Oe&&(Ae=ye===ze),e(),Fe(Ae?0:ye),mt(Ae?ye:null)},n=function(I){var we=I.keyCode,ye=Z==="rtl",Ae=ze;we===q.Z.RIGHT&&Ae<Ze&&!ye?(Ve?Ae+=.5:Ae+=1,Fe(Ae),I.preventDefault()):we===q.Z.LEFT&&Ae>0&&!ye||we===q.Z.RIGHT&&Ae>0&&ye?(Ve?Ae-=.5:Ae-=1,Fe(Ae),I.preventDefault()):we===q.Z.LEFT&&Ae<Ze&&ye&&(Ve?Ae+=.5:Ae+=1,Fe(Ae),I.preventDefault()),Q==null||Q(I)};C.useEffect(function(){g&&!o&&Ke()},[]);var i=new Array(Ze).fill(0).map(function(R,I){return C.createElement(K,{ref:Be(I),index:I,count:Ze,disabled:o,prefixCls:"".concat(ge,"-star"),allowHalf:Ve,value:at===null?ze:at,onClick:t,onHover:ee,key:R||I,character:_,characterRender:m,focused:ht})}),s=Se()(ge,Te,(J={},(0,fe.Z)(J,"".concat(ge,"-disabled"),o),(0,fe.Z)(J,"".concat(ge,"-rtl"),Z==="rtl"),J));return C.createElement("ul",(0,y.Z)({className:s,onMouseLeave:e,tabIndex:o?-1:l,onFocus:o?null:wt,onBlur:o?null:_t,onKeyDown:o?null:n,ref:W,role:"radiogroup"},(0,U.Z)(ce,{aria:!0,data:!0,attr:!0})),i)}var w=C.forwardRef(P),re=w,G=a(36355),me=a(6848),L=a(17313),xe=a(83116),x=a(37613);const $=O=>{const{componentCls:j}=O;return{[`${j}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:O.marginXS},"> div":{transition:`all ${O.motionDurationMid}, outline 0s`,"&:hover":{transform:O.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${O.lineWidth}px dashed ${O.starColor}`,transform:O.starHoverScale}},"&-first, &-second":{color:O.starBg,transition:`all ${O.motionDurationMid}`,userSelect:"none",[O.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${j}-star-first, &-half ${j}-star-second`]:{opacity:1},[`&-half ${j}-star-first, &-full ${j}-star-second`]:{color:"inherit"}}}},p=O=>({[`&-rtl${O.componentCls}`]:{direction:"rtl"}}),k=O=>{const{componentCls:j}=O;return{[j]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,L.Wf)(O)),{display:"inline-block",margin:0,padding:0,color:O.starColor,fontSize:O.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${j} ${j}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),$(O)),{[`+ ${j}-text`]:{display:"inline-block",marginInlineStart:O.marginXS,fontSize:O.fontSize}}),p(O))}};var pe=(0,xe.Z)("Rate",O=>{const j=(0,x.TS)(O,{});return[k(j)]},O=>({starColor:O.yellow6,starSize:O.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:O.colorFillContent})),H=function(O,j){var J={};for(var ae in O)Object.prototype.hasOwnProperty.call(O,ae)&&j.indexOf(ae)<0&&(J[ae]=O[ae]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,ae=Object.getOwnPropertySymbols(O);ge<ae.length;ge++)j.indexOf(ae[ge])<0&&Object.prototype.propertyIsEnumerable.call(O,ae[ge])&&(J[ae[ge]]=O[ae[ge]]);return J},X=C.forwardRef((O,j)=>{const{prefixCls:J,className:ae,rootClassName:ge,style:Te,tooltips:ke,character:Re=C.createElement(le,null)}=O,We=H(O,["prefixCls","className","rootClassName","style","tooltips","character"]),Ze=(o,b)=>{let{index:Z}=b;return ke?C.createElement(me.Z,{title:ke[Z]},o):o},{getPrefixCls:Ue,direction:Ve,rate:V}=C.useContext(G.E_),Oe=Ue("rate",J),[h,_]=pe(Oe),m=Object.assign(Object.assign({},V==null?void 0:V.style),Te);return h(C.createElement(re,Object.assign({ref:j,character:Re,characterRender:Ze},We,{className:Se()(ae,ge,_,V==null?void 0:V.className),style:m,prefixCls:Oe,direction:Ve})))})},81327:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return Ce}});var y=a(59301),C=a(92310),F=a.n(C),Y=a(11592),D=a(36355),f=a(33234);const ue=y.createContext({latestIndex:0}),le=ue.Provider;var Se=K=>{let{className:A,index:N,children:u,split:S,style:T}=K;const{latestIndex:P}=y.useContext(ue);return u==null?null:y.createElement(y.Fragment,null,y.createElement("div",{className:A,style:T},u),N<P&&S&&y.createElement("span",{className:`${A}-split`},S))},fe=a(2856);function M(K){return["small","middle","large"].includes(K)}function d(K){return K?typeof K=="number"&&!Number.isNaN(K):!1}var ne=function(K,A){var N={};for(var u in K)Object.prototype.hasOwnProperty.call(K,u)&&A.indexOf(u)<0&&(N[u]=K[u]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,u=Object.getOwnPropertySymbols(K);S<u.length;S++)A.indexOf(u[S])<0&&Object.prototype.propertyIsEnumerable.call(K,u[S])&&(N[u[S]]=K[u[S]]);return N};const U=y.forwardRef((K,A)=>{var N,u;const{getPrefixCls:S,space:T,direction:P}=y.useContext(D.E_),{size:w=(T==null?void 0:T.size)||"small",align:re,className:G,rootClassName:me,children:L,direction:xe="horizontal",prefixCls:x,split:$,style:p,wrap:k=!1,classNames:pe,styles:H}=K,de=ne(K,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[X,O]=Array.isArray(w)?w:[w,w],j=M(O),J=M(X),ae=d(O),ge=d(X),Te=(0,Y.Z)(L,{keepEmpty:!0}),ke=re===void 0&&xe==="horizontal"?"center":re,Re=S("space",x),[We,Ze]=(0,fe.Z)(Re),Ue=F()(Re,T==null?void 0:T.className,Ze,`${Re}-${xe}`,{[`${Re}-rtl`]:P==="rtl",[`${Re}-align-${ke}`]:ke,[`${Re}-gap-row-${O}`]:j,[`${Re}-gap-col-${X}`]:J},G,me),Ve=F()(`${Re}-item`,(N=pe==null?void 0:pe.item)!==null&&N!==void 0?N:(u=T==null?void 0:T.classNames)===null||u===void 0?void 0:u.item);let V=0;const Oe=Te.map((m,o)=>{var b,Z;m!=null&&(V=o);const E=m&&m.key||`${Ve}-${o}`;return y.createElement(Se,{className:Ve,key:E,index:o,split:$,style:(b=H==null?void 0:H.item)!==null&&b!==void 0?b:(Z=T==null?void 0:T.styles)===null||Z===void 0?void 0:Z.item},m)}),h=y.useMemo(()=>({latestIndex:V}),[V]);if(Te.length===0)return null;const _={};return k&&(_.flexWrap="wrap"),!J&&ge&&(_.columnGap=X),!j&&ae&&(_.rowGap=O),We(y.createElement("div",Object.assign({ref:A,className:Ue,style:Object.assign(Object.assign(Object.assign({},_),T==null?void 0:T.style),p)},de),y.createElement(le,{value:h},Oe)))});U.Compact=f.ZP;var Ce=U},8378:function(ft,Ne){"use strict";const a=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`}}});Ne.Z=a},92899:function(ft,Ne,a){"use strict";a.d(Ne,{Fm:function(){return M}});var y=a(36237),C=a(95406);const F=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}}),Y=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}}),D=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}}),f=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}}),ue=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}}),le=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}}),oe=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}}),Se=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}}),fe={"move-up":{inKeyframes:oe,outKeyframes:Se},"move-down":{inKeyframes:F,outKeyframes:Y},"move-left":{inKeyframes:D,outKeyframes:f},"move-right":{inKeyframes:ue,outKeyframes:le}},M=(d,ne)=>{const{antCls:q}=d,U=`${q}-${ne}`,{inKeyframes:Ce,outKeyframes:K}=fe[ne];return[(0,C.R)(U,Ce,K,d.motionDurationMid),{[`
${U}-enter,
${U}-appear
`]:{opacity:0,animationTimingFunction:d.motionEaseOutCirc},[`${U}-leave`]:{animationTimingFunction:d.motionEaseInOutCirc}}]}},13826:function(ft,Ne,a){"use strict";a.d(Ne,{Qt:function(){return D},Uw:function(){return Y},fJ:function(){return F},ly:function(){return f},oN:function(){return M}});var y=a(36237),C=a(95406);const F=new y.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Y=new y.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),D=new y.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),f=new y.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ue=new y.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),le=new y.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),oe=new y.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Se=new y.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),fe={"slide-up":{inKeyframes:F,outKeyframes:Y},"slide-down":{inKeyframes:D,outKeyframes:f},"slide-left":{inKeyframes:ue,outKeyframes:le},"slide-right":{inKeyframes:oe,outKeyframes:Se}},M=(d,ne)=>{const{antCls:q}=d,U=`${q}-${ne}`,{inKeyframes:Ce,outKeyframes:K}=fe[ne];return[(0,C.R)(U,Ce,K,d.motionDurationMid),{[`
${U}-enter,
${U}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:d.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${U}-leave`]:{animationTimingFunction:d.motionEaseInQuint}}]}},78673:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return xe}});var y=a(58617),C=a(92310),F=a.n(C),Y=a(54476),D=a(20068),f=a(42978),ue=a(75931),le=a(59301),oe=a(18929),Se=a(10228),fe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],M=le.forwardRef(function(x,$){var p,k=x.prefixCls,pe=k===void 0?"rc-switch":k,H=x.className,de=x.checked,X=x.defaultChecked,O=x.disabled,j=x.loadingIcon,J=x.checkedChildren,ae=x.unCheckedChildren,ge=x.onClick,Te=x.onChange,ke=x.onKeyDown,Re=(0,ue.Z)(x,fe),We=(0,oe.Z)(!1,{value:de,defaultValue:X}),Ze=(0,f.Z)(We,2),Ue=Ze[0],Ve=Ze[1];function V(m,o){var b=Ue;return O||(b=m,Ve(b),Te==null||Te(b,o)),b}function Oe(m){m.which===Se.Z.LEFT?V(!1,m):m.which===Se.Z.RIGHT&&V(!0,m),ke==null||ke(m)}function h(m){var o=V(!Ue,m);ge==null||ge(o,m)}var _=F()(pe,H,(p={},(0,D.Z)(p,"".concat(pe,"-checked"),Ue),(0,D.Z)(p,"".concat(pe,"-disabled"),O),p));return le.createElement("button",(0,Y.Z)({},Re,{type:"button",role:"switch","aria-checked":Ue,disabled:O,className:_,ref:$,onKeyDown:Oe,onClick:h}),j,le.createElement("span",{className:"".concat(pe,"-inner")},le.createElement("span",{className:"".concat(pe,"-inner-checked")},J),le.createElement("span",{className:"".concat(pe,"-inner-unchecked")},ae)))});M.displayName="Switch";var d=M,ne=a(14088),q=a(36355),U=a(1684),Ce=a(19716),K=a(64993),A=a(17313),N=a(83116),u=a(37613);const S=x=>{const{componentCls:$,trackHeightSM:p,trackPadding:k,trackMinWidthSM:pe,innerMinMarginSM:H,innerMaxMarginSM:de,handleSizeSM:X}=x,O=`${$}-inner`;return{[$]:{[`&${$}-small`]:{minWidth:pe,height:p,lineHeight:`${p}px`,[`${$}-inner`]:{paddingInlineStart:de,paddingInlineEnd:H,[`${O}-checked`]:{marginInlineStart:`calc(-100% + ${X+k*2}px - ${de*2}px)`,marginInlineEnd:`calc(100% - ${X+k*2}px + ${de*2}px)`},[`${O}-unchecked`]:{marginTop:-p,marginInlineStart:0,marginInlineEnd:0}},[`${$}-handle`]:{width:X,height:X},[`${$}-loading-icon`]:{top:(X-x.switchLoadingIconSize)/2,fontSize:x.switchLoadingIconSize},[`&${$}-checked`]:{[`${$}-inner`]:{paddingInlineStart:H,paddingInlineEnd:de,[`${O}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${O}-unchecked`]:{marginInlineStart:`calc(100% - ${X+k*2}px + ${de*2}px)`,marginInlineEnd:`calc(-100% + ${X+k*2}px - ${de*2}px)`}},[`${$}-handle`]:{insetInlineStart:`calc(100% - ${X+k}px)`}},[`&:not(${$}-disabled):active`]:{[`&:not(${$}-checked) ${O}`]:{[`${O}-unchecked`]:{marginInlineStart:x.marginXXS/2,marginInlineEnd:-x.marginXXS/2}},[`&${$}-checked ${O}`]:{[`${O}-checked`]:{marginInlineStart:-x.marginXXS/2,marginInlineEnd:x.marginXXS/2}}}}}}},T=x=>{const{componentCls:$,handleSize:p}=x;return{[$]:{[`${$}-loading-icon${x.iconCls}`]:{position:"relative",top:(p-x.fontSize)/2,color:x.switchLoadingIconColor,verticalAlign:"top"},[`&${$}-checked ${$}-loading-icon`]:{color:x.switchColor}}}},P=x=>{const{componentCls:$,motion:p,trackPadding:k,handleBg:pe,handleShadow:H,handleSize:de}=x,X=`${$}-handle`;return{[$]:{[X]:{position:"absolute",top:k,insetInlineStart:k,width:de,height:de,transition:`all ${x.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:pe,borderRadius:de/2,boxShadow:H,transition:`all ${x.switchDuration} ease-in-out`,content:'""'}},[`&${$}-checked ${X}`]:{insetInlineStart:`calc(100% - ${de+k}px)`},[`&:not(${$}-disabled):active`]:p?{[`${X}::before`]:{insetInlineEnd:x.switchHandleActiveInset,insetInlineStart:0},[`&${$}-checked ${X}::before`]:{insetInlineEnd:0,insetInlineStart:x.switchHandleActiveInset}}:{}}}},w=x=>{const{componentCls:$,trackHeight:p,trackPadding:k,innerMinMargin:pe,innerMaxMargin:H,handleSize:de}=x,X=`${$}-inner`;return{[$]:{[X]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:H,paddingInlineEnd:pe,transition:`padding-inline-start ${x.switchDuration} ease-in-out, padding-inline-end ${x.switchDuration} ease-in-out`,[`${X}-checked, ${X}-unchecked`]:{display:"block",color:x.colorTextLightSolid,fontSize:x.fontSizeSM,transition:`margin-inline-start ${x.switchDuration} ease-in-out, margin-inline-end ${x.switchDuration} ease-in-out`,pointerEvents:"none"},[`${X}-checked`]:{marginInlineStart:`calc(-100% + ${de+k*2}px - ${H*2}px)`,marginInlineEnd:`calc(100% - ${de+k*2}px + ${H*2}px)`},[`${X}-unchecked`]:{marginTop:-p,marginInlineStart:0,marginInlineEnd:0}},[`&${$}-checked ${X}`]:{paddingInlineStart:pe,paddingInlineEnd:H,[`${X}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${X}-unchecked`]:{marginInlineStart:`calc(100% - ${de+k*2}px + ${H*2}px)`,marginInlineEnd:`calc(-100% + ${de+k*2}px - ${H*2}px)`}},[`&:not(${$}-disabled):active`]:{[`&:not(${$}-checked) ${X}`]:{[`${X}-unchecked`]:{marginInlineStart:k*2,marginInlineEnd:-k*2}},[`&${$}-checked ${X}`]:{[`${X}-checked`]:{marginInlineStart:-k*2,marginInlineEnd:k*2}}}}}},re=x=>{const{componentCls:$,trackHeight:p,trackMinWidth:k}=x;return{[$]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,A.Wf)(x)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:k,height:p,lineHeight:`${p}px`,verticalAlign:"middle",background:x.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${x.motionDurationMid}`,userSelect:"none",[`&:hover:not(${$}-disabled)`]:{background:x.colorTextTertiary}}),(0,A.Qy)(x)),{[`&${$}-checked`]:{background:x.switchColor,[`&:hover:not(${$}-disabled)`]:{background:x.colorPrimaryHover}},[`&${$}-loading, &${$}-disabled`]:{cursor:"not-allowed",opacity:x.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${$}-rtl`]:{direction:"rtl"}})}};var G=(0,N.Z)("Switch",x=>{const $=(0,u.TS)(x,{switchDuration:x.motionDurationMid,switchColor:x.colorPrimary,switchDisabledOpacity:x.opacityLoading,switchLoadingIconSize:x.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${x.opacityLoading})`,switchHandleActiveInset:"-30%"});return[re($),w($),P($),T($),S($)]},x=>{const{fontSize:$,lineHeight:p,controlHeight:k,colorWhite:pe}=x,H=$*p,de=k/2,X=2,O=H-X*2,j=de-X*2;return{trackHeight:H,trackHeightSM:de,trackMinWidth:O*2+X*4,trackMinWidthSM:j*2+X*2,trackPadding:X,handleBg:pe,handleSize:O,handleSizeSM:j,handleShadow:`0 2px 4px 0 ${new K.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:O/2,innerMaxMargin:O+X+X*2,innerMinMarginSM:j/2,innerMaxMarginSM:j+X+X*2}}),me=function(x,$){var p={};for(var k in x)Object.prototype.hasOwnProperty.call(x,k)&&$.indexOf(k)<0&&(p[k]=x[k]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,k=Object.getOwnPropertySymbols(x);pe<k.length;pe++)$.indexOf(k[pe])<0&&Object.prototype.propertyIsEnumerable.call(x,k[pe])&&(p[k[pe]]=x[k[pe]]);return p};const L=le.forwardRef((x,$)=>{const{prefixCls:p,size:k,disabled:pe,loading:H,className:de,rootClassName:X,style:O}=x,j=me(x,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:J,direction:ae,switch:ge}=le.useContext(q.E_),Te=le.useContext(U.Z),ke=(pe!=null?pe:Te)||H,Re=J("switch",p),We=le.createElement("div",{className:`${Re}-handle`},H&&le.createElement(y.Z,{className:`${Re}-loading-icon`})),[Ze,Ue]=G(Re),Ve=(0,Ce.Z)(k),V=F()(ge==null?void 0:ge.className,{[`${Re}-small`]:Ve==="small",[`${Re}-loading`]:H,[`${Re}-rtl`]:ae==="rtl"},de,X,Ue),Oe=Object.assign(Object.assign({},ge==null?void 0:ge.style),O);return Ze(le.createElement(ne.Z,{component:"Switch"},le.createElement(d,Object.assign({},j,{prefixCls:Re,className:V,style:Oe,disabled:ke,ref:$,loadingIcon:We}))))});L.__ANT_SWITCH=!0;var xe=L},17574:function(ft,Ne,a){"use strict";a.d(Ne,{default:function(){return de}});var y=a(60091),C=a(94480),F=a(52671),Y=a(8657),D=a(54476),f=a(59301),ue={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"},le=ue,oe=a(7657),Se=function(O,j){return f.createElement(oe.Z,(0,D.Z)({},O,{ref:j,icon:le}))},fe=f.forwardRef(Se),M=fe,d=a(92310),ne=a.n(d),q=a(35654),U=a(71430),Ce=a(36355),K=a(56082),A=a(62892),N=a(20648);const u=4;function S(X){const{dropPosition:O,dropLevelOffset:j,prefixCls:J,indent:ae,direction:ge="ltr"}=X,Te=ge==="ltr"?"left":"right",ke=ge==="ltr"?"right":"left",Re={[Te]:-j*ae+u,[ke]:0};switch(O){case-1:Re.top=-3;break;case 1:Re.bottom=-3;break;default:Re.bottom=-3,Re[Te]=ae+u;break}return f.createElement("div",{style:Re,className:`${J}-drop-indicator`})}var T=a(71997),w=f.forwardRef((X,O)=>{const{getPrefixCls:j,direction:J,virtual:ae,tree:ge}=f.useContext(Ce.E_),{prefixCls:Te,className:ke,showIcon:Re=!1,showLine:We,switcherIcon:Ze,blockNode:Ue=!1,children:Ve,checkable:V=!1,selectable:Oe=!0,draggable:h,motion:_,style:m}=X,o=j("tree",Te),b=j(),Z=_!=null?_:Object.assign(Object.assign({},(0,A.Z)(b)),{motionAppear:!1}),E=Object.assign(Object.assign({},X),{checkable:V,selectable:Oe,showIcon:Re,motion:Z,blockNode:Ue,showLine:!!We,dropIndicatorRender:S}),[l,g]=(0,N.ZP)(o),r=f.useMemo(()=>{if(!h)return!1;let v={};switch(typeof h){case"function":v.nodeDraggable=h;break;case"object":v=Object.assign({},h);break;default:break}return v.icon!==!1&&(v.icon=v.icon||f.createElement(K.Z,null)),v},[h]),c=v=>f.createElement(T.Z,{prefixCls:o,switcherIcon:Ze,treeNodeProps:v,showLine:We});return l(f.createElement(y.Z,Object.assign({itemHeight:20,ref:O,virtual:ae},E,{style:Object.assign(Object.assign({},ge==null?void 0:ge.style),m),prefixCls:o,className:ne()({[`${o}-icon-hide`]:!Re,[`${o}-block-node`]:Ue,[`${o}-unselectable`]:!Oe,[`${o}-rtl`]:J==="rtl"},ge==null?void 0:ge.className,ke,g),direction:J,checkable:V&&f.createElement("span",{className:`${o}-checkbox-inner`}),selectable:Oe,switcherIcon:c,draggable:r}),Ve))}),re;(function(X){X[X.None=0]="None",X[X.Start=1]="Start",X[X.End=2]="End"})(re||(re={}));function G(X,O){function j(J){const{key:ae,children:ge}=J;O(ae,J)!==!1&&G(ge||[],O)}X.forEach(j)}function me(X){let{treeData:O,expandedKeys:j,startKey:J,endKey:ae}=X;const ge=[];let Te=re.None;if(J&&J===ae)return[J];if(!J||!ae)return[];function ke(Re){return Re===J||Re===ae}return G(O,Re=>{if(Te===re.End)return!1;if(ke(Re)){if(ge.push(Re),Te===re.None)Te=re.Start;else if(Te===re.Start)return Te=re.End,!1}else Te===re.Start&&ge.push(Re);return j.includes(Re)}),ge}function L(X,O){const j=(0,C.Z)(O),J=[];return G(X,(ae,ge)=>{const Te=j.indexOf(ae);return Te!==-1&&(J.push(ge),j.splice(Te,1)),!!j.length}),J}var xe=function(X,O){var j={};for(var J in X)Object.prototype.hasOwnProperty.call(X,J)&&O.indexOf(J)<0&&(j[J]=X[J]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,J=Object.getOwnPropertySymbols(X);ae<J.length;ae++)O.indexOf(J[ae])<0&&Object.prototype.propertyIsEnumerable.call(X,J[ae])&&(j[J[ae]]=X[J[ae]]);return j};function x(X){const{isLeaf:O,expanded:j}=X;return O?f.createElement(F.Z,null):j?f.createElement(Y.Z,null):f.createElement(M,null)}function $(X){let{treeData:O,children:j}=X;return O||(0,U.zn)(j)}const p=(X,O)=>{var{defaultExpandAll:j,defaultExpandParent:J,defaultExpandedKeys:ae}=X,ge=xe(X,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Te=f.useRef(),ke=f.useRef(),Re=()=>{const{keyEntities:r}=(0,U.I8)($(ge));let c;return j?c=Object.keys(r):J?c=(0,q.r7)(ge.expandedKeys||ae||[],r):c=ge.expandedKeys||ae,c},[We,Ze]=f.useState(ge.selectedKeys||ge.defaultSelectedKeys||[]),[Ue,Ve]=f.useState(()=>Re());f.useEffect(()=>{"selectedKeys"in ge&&Ze(ge.selectedKeys)},[ge.selectedKeys]),f.useEffect(()=>{"expandedKeys"in ge&&Ve(ge.expandedKeys)},[ge.expandedKeys]);const V=(r,c)=>{var v;return"expandedKeys"in ge||Ve(r),(v=ge.onExpand)===null||v===void 0?void 0:v.call(ge,r,c)},Oe=(r,c)=>{var v;const{multiple:B}=ge,{node:Q,nativeEvent:he}=c,{key:ce=""}=Q,se=$(ge),z=Object.assign(Object.assign({},c),{selected:!0}),Le=(he==null?void 0:he.ctrlKey)||(he==null?void 0:he.metaKey),Be=he==null?void 0:he.shiftKey;let W;B&&Le?(W=r,Te.current=ce,ke.current=W,z.selectedNodes=L(se,W)):B&&Be?(W=Array.from(new Set([].concat((0,C.Z)(ke.current||[]),(0,C.Z)(me({treeData:se,expandedKeys:Ue,startKey:ce,endKey:Te.current}))))),z.selectedNodes=L(se,W)):(W=[ce],Te.current=ce,ke.current=W,z.selectedNodes=L(se,W)),(v=ge.onSelect)===null||v===void 0||v.call(ge,W,z),"selectedKeys"in ge||Ze(W)},{getPrefixCls:h,direction:_}=f.useContext(Ce.E_),{prefixCls:m,className:o,showIcon:b=!0,expandAction:Z="click"}=ge,E=xe(ge,["prefixCls","className","showIcon","expandAction"]),l=h("tree",m),g=ne()(`${l}-directory`,{[`${l}-directory-rtl`]:_==="rtl"},o);return f.createElement(w,Object.assign({icon:x,ref:O,blockNode:!0},E,{showIcon:b,expandAction:Z,prefixCls:l,className:g,expandedKeys:Ue,selectedKeys:We,onSelect:Oe,onExpand:V}))};var pe=f.forwardRef(p);const H=w;H.DirectoryTree=pe,H.TreeNode=y.O;var de=H},20648:function(ft,Ne,a){"use strict";a.d(Ne,{TM:function(){return d},Yk:function(){return M}});var y=a(36237),C=a(98447),F=a(17313),Y=a(8378),D=a(37613),f=a(83116);const ue=new y.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),le=(ne,q)=>({[`.${ne}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${q.motionDurationSlow}`}}}),oe=(ne,q)=>({[`.${ne}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:q.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${q.lineWidthBold}px solid ${q.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Se=(ne,q)=>{const{treeCls:U,treeNodeCls:Ce,treeNodePadding:K,titleHeight:A,nodeSelectedBg:N,nodeHoverBg:u}=q,S=q.paddingXS;return{[U]:Object.assign(Object.assign({},(0,F.Wf)(q)),{background:q.colorBgContainer,borderRadius:q.borderRadius,transition:`background-color ${q.motionDurationSlow}`,[`&${U}-rtl`]:{[`${U}-switcher`]:{"&_close":{[`${U}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${U}-active-focused)`]:Object.assign({},(0,F.oN)(q)),[`${U}-list-holder-inner`]:{alignItems:"flex-start"},[`&${U}-block-node`]:{[`${U}-list-holder-inner`]:{alignItems:"stretch",[`${U}-node-content-wrapper`]:{flex:"auto"},[`${Ce}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:K,insetInlineStart:0,border:`1px solid ${q.colorPrimary}`,opacity:0,animationName:ue,animationDuration:q.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Ce}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${K}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${U}-node-content-wrapper`]:{color:q.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${U}-node-content-wrapper`]:Object.assign({},(0,F.oN)(q)),[`&:not(${Ce}-disabled).filter-node ${U}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${U}-draggable-icon`]:{flexShrink:0,width:A,lineHeight:`${A}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${q.motionDurationSlow}`,[`${Ce}:hover &`]:{opacity:.45}},[`&${Ce}-disabled`]:{[`${U}-draggable-icon`]:{visibility:"hidden"}}}},[`${U}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:A}},[`${U}-draggable-icon`]:{visibility:"hidden"},[`${U}-switcher`]:Object.assign(Object.assign({},le(ne,q)),{position:"relative",flex:"none",alignSelf:"stretch",width:A,margin:0,lineHeight:`${A}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${U}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:q.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:A/2,bottom:-K,marginInlineStart:-1,borderInlineEnd:`1px solid ${q.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:A/2*.8,height:A/2,borderBottom:`1px solid ${q.colorBorder}`,content:'""'}}}),[`${U}-checkbox`]:{top:"initial",marginInlineEnd:S},[`${U}-node-content-wrapper, ${U}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:A,margin:0,padding:`0 ${q.paddingXS/2}px`,color:"inherit",lineHeight:`${A}px`,background:"transparent",borderRadius:q.borderRadius,cursor:"pointer",transition:`all ${q.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:u},[`&${U}-node-selected`]:{backgroundColor:N},[`${U}-iconEle`]:{display:"inline-block",width:A,height:A,lineHeight:`${A}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${U}-unselectable ${U}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${U}-node-content-wrapper`]:Object.assign({lineHeight:`${A}px`,userSelect:"none"},oe(ne,q)),[`${Ce}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${q.colorPrimary}`}},"&-show-line":{[`${U}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:A/2,bottom:-K,borderInlineEnd:`1px solid ${q.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${U}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Ce}-leaf-last`]:{[`${U}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${A/2}px !important`}}}}})}},fe=ne=>{const{treeCls:q,treeNodeCls:U,treeNodePadding:Ce,directoryNodeSelectedBg:K,directoryNodeSelectedColor:A}=ne;return{[`${q}${q}-directory`]:{[U]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Ce,insetInlineStart:0,transition:`background-color ${ne.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ne.controlItemBgHover}},"> *":{zIndex:1},[`${q}-switcher`]:{transition:`color ${ne.motionDurationMid}`},[`${q}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${q}-node-selected`]:{color:A,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:K},[`${q}-switcher`]:{color:A},[`${q}-node-content-wrapper`]:{color:A,background:"transparent"}}}}}},M=(ne,q)=>{const U=`.${ne}`,Ce=`${U}-treenode`,K=q.paddingXS/2,A=(0,D.TS)(q,{treeCls:U,treeNodeCls:Ce,treeNodePadding:K});return[Se(ne,A),fe(A)]},d=ne=>{const{controlHeightSM:q}=ne;return{titleHeight:q,nodeHoverBg:ne.controlItemBgHover,nodeSelectedBg:ne.controlItemBgActive}};Ne.ZP=(0,f.Z)("Tree",(ne,q)=>{let{prefixCls:U}=q;return[{[ne.componentCls]:(0,C.C2)(`${U}-checkbox`,ne)},M(U,ne),(0,Y.Z)(ne)]},ne=>{const{colorTextLightSolid:q,colorPrimary:U}=ne;return Object.assign(Object.assign({},d(ne)),{directoryNodeSelectedColor:q,directoryNodeSelectedBg:U})})},71997:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return Ce}});var y=a(54476),C=a(59301),F={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"},Y=F,D=a(7657),f=function(A,N){return C.createElement(D.Z,(0,y.Z)({},A,{ref:N,icon:Y}))},ue=C.forwardRef(f),le=ue,oe=a(52671),Se=a(58617),fe=a(15075),M=a(43531),d=a(92310),ne=a.n(d),q=a(92343),Ce=K=>{const{prefixCls:A,switcherIcon:N,treeNodeProps:u,showLine:S}=K,{isLeaf:T,expanded:P,loading:w}=u;if(w)return C.createElement(Se.Z,{className:`${A}-switcher-loading-icon`});let re;if(S&&typeof S=="object"&&(re=S.showLeafIcon),T){if(!S)return null;if(typeof re!="boolean"&&re){const L=typeof re=="function"?re(u):re,xe=`${A}-switcher-line-custom-icon`;return(0,q.l$)(L)?(0,q.Tm)(L,{className:ne()(L.props.className||"",xe)}):L}return re?C.createElement(oe.Z,{className:`${A}-switcher-line-icon`}):C.createElement("span",{className:`${A}-switcher-leaf-line`})}const G=`${A}-switcher-icon`,me=typeof N=="function"?N(u):N;return(0,q.l$)(me)?(0,q.Tm)(me,{className:ne()(me.props.className||"",G)}):me!==void 0?me:S?P?C.createElement(fe.Z,{className:`${A}-switcher-line-icon`}):C.createElement(M.Z,{className:`${A}-switcher-line-icon`}):C.createElement(le,{className:G})}},3867:function(ft,Ne,a){var y=a(97671);(function(C,F){ft.exports=F()})(this,function(){"use strict";function C(E){var l=typeof E;return E!==null&&(l==="object"||l==="function")}function F(E){return typeof E=="function"}var Y=void 0;Array.isArray?Y=Array.isArray:Y=function(E){return Object.prototype.toString.call(E)==="[object Array]"};var D=Y,f=0,ue=void 0,le=void 0,oe=function(l,g){S[f]=l,S[f+1]=g,f+=2,f===2&&(le?le(T):w())};function Se(E){le=E}function fe(E){oe=E}var M=typeof window!="undefined"?window:void 0,d=M||{},ne=d.MutationObserver||d.WebKitMutationObserver,q=typeof self=="undefined"&&typeof y!="undefined"&&{}.toString.call(y)==="[object process]",U=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function Ce(){return function(){return y.nextTick(T)}}function K(){return typeof ue!="undefined"?function(){ue(T)}:u()}function A(){var E=0,l=new ne(T),g=document.createTextNode("");return l.observe(g,{characterData:!0}),function(){g.data=E=++E%2}}function N(){var E=new MessageChannel;return E.port1.onmessage=T,function(){return E.port2.postMessage(0)}}function u(){var E=setTimeout;return function(){return E(T,1)}}var S=new Array(1e3);function T(){for(var E=0;E<f;E+=2){var l=S[E],g=S[E+1];l(g),S[E]=void 0,S[E+1]=void 0}f=0}function P(){try{var E=Function("return this")().require("vertx");return ue=E.runOnLoop||E.runOnContext,K()}catch(l){return u()}}var w=void 0;q?w=Ce():ne?w=A():U?w=N():M===void 0?w=P():w=u();function re(E,l){var g=this,r=new this.constructor(L);r[me]===void 0&&Ue(r);var c=g._state;if(c){var v=arguments[c-1];oe(function(){return ke(c,r,v,g._result)})}else ge(g,r,E,l);return r}function G(E){var l=this;if(E&&typeof E=="object"&&E.constructor===l)return E;var g=new l(L);return O(g,E),g}var me=Math.random().toString(36).substring(2);function L(){}var xe=void 0,x=1,$=2;function p(){return new TypeError("You cannot resolve a promise with itself")}function k(){return new TypeError("A promises callback cannot return that same promise.")}function pe(E,l,g,r){try{E.call(l,g,r)}catch(c){return c}}function H(E,l,g){oe(function(r){var c=!1,v=pe(g,l,function(B){c||(c=!0,l!==B?O(r,B):J(r,B))},function(B){c||(c=!0,ae(r,B))},"Settle: "+(r._label||" unknown promise"));!c&&v&&(c=!0,ae(r,v))},E)}function de(E,l){l._state===x?J(E,l._result):l._state===$?ae(E,l._result):ge(l,void 0,function(g){return O(E,g)},function(g){return ae(E,g)})}function X(E,l,g){l.constructor===E.constructor&&g===re&&l.constructor.resolve===G?de(E,l):g===void 0?J(E,l):F(g)?H(E,l,g):J(E,l)}function O(E,l){if(E===l)ae(E,p());else if(C(l)){var g=void 0;try{g=l.then}catch(r){ae(E,r);return}X(E,l,g)}else J(E,l)}function j(E){E._onerror&&E._onerror(E._result),Te(E)}function J(E,l){E._state===xe&&(E._result=l,E._state=x,E._subscribers.length!==0&&oe(Te,E))}function ae(E,l){E._state===xe&&(E._state=$,E._result=l,oe(j,E))}function ge(E,l,g,r){var c=E._subscribers,v=c.length;E._onerror=null,c[v]=l,c[v+x]=g,c[v+$]=r,v===0&&E._state&&oe(Te,E)}function Te(E){var l=E._subscribers,g=E._state;if(l.length!==0){for(var r=void 0,c=void 0,v=E._result,B=0;B<l.length;B+=3)r=l[B],c=l[B+g],r?ke(g,r,c,v):c(v);E._subscribers.length=0}}function ke(E,l,g,r){var c=F(g),v=void 0,B=void 0,Q=!0;if(c){try{v=g(r)}catch(he){Q=!1,B=he}if(l===v){ae(l,k());return}}else v=r;l._state!==xe||(c&&Q?O(l,v):Q===!1?ae(l,B):E===x?J(l,v):E===$&&ae(l,v))}function Re(E,l){try{l(function(r){O(E,r)},function(r){ae(E,r)})}catch(g){ae(E,g)}}var We=0;function Ze(){return We++}function Ue(E){E[me]=We++,E._state=void 0,E._result=void 0,E._subscribers=[]}function Ve(){return new Error("Array Methods must be provided an Array")}var V=function(){function E(l,g){this._instanceConstructor=l,this.promise=new l(L),this.promise[me]||Ue(this.promise),D(g)?(this.length=g.length,this._remaining=g.length,this._result=new Array(this.length),this.length===0?J(this.promise,this._result):(this.length=this.length||0,this._enumerate(g),this._remaining===0&&J(this.promise,this._result))):ae(this.promise,Ve())}return E.prototype._enumerate=function(g){for(var r=0;this._state===xe&&r<g.length;r++)this._eachEntry(g[r],r)},E.prototype._eachEntry=function(g,r){var c=this._instanceConstructor,v=c.resolve;if(v===G){var B=void 0,Q=void 0,he=!1;try{B=g.then}catch(se){he=!0,Q=se}if(B===re&&g._state!==xe)this._settledAt(g._state,r,g._result);else if(typeof B!="function")this._remaining--,this._result[r]=g;else if(c===b){var ce=new c(L);he?ae(ce,Q):X(ce,g,B),this._willSettleAt(ce,r)}else this._willSettleAt(new c(function(se){return se(g)}),r)}else this._willSettleAt(v(g),r)},E.prototype._settledAt=function(g,r,c){var v=this.promise;v._state===xe&&(this._remaining--,g===$?ae(v,c):this._result[r]=c),this._remaining===0&&J(v,this._result)},E.prototype._willSettleAt=function(g,r){var c=this;ge(g,void 0,function(v){return c._settledAt(x,r,v)},function(v){return c._settledAt($,r,v)})},E}();function Oe(E){return new V(this,E).promise}function h(E){var l=this;return D(E)?new l(function(g,r){for(var c=E.length,v=0;v<c;v++)l.resolve(E[v]).then(g,r)}):new l(function(g,r){return r(new TypeError("You must pass an array to race."))})}function _(E){var l=this,g=new l(L);return ae(g,E),g}function m(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function o(){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 E(l){this[me]=Ze(),this._result=this._state=void 0,this._subscribers=[],L!==l&&(typeof l!="function"&&m(),this instanceof E?Re(this,l):o())}return E.prototype.catch=function(g){return this.then(null,g)},E.prototype.finally=function(g){var r=this,c=r.constructor;return F(g)?r.then(function(v){return c.resolve(g()).then(function(){return v})},function(v){return c.resolve(g()).then(function(){throw v})}):r.then(g,g)},E}();b.prototype.then=re,b.all=Oe,b.race=h,b.resolve=G,b.reject=_,b._setScheduler=Se,b._setAsap=fe,b._asap=oe;function Z(){var E=void 0;if(typeof a.g!="undefined")E=a.g;else if(typeof self!="undefined")E=self;else try{E=Function("return this")()}catch(r){throw new Error("polyfill failed because global object is unavailable in this environment")}var l=E.Promise;if(l){var g=null;try{g=Object.prototype.toString.call(l.resolve())}catch(r){}if(g==="[object Promise]"&&!l.cast)return}E.Promise=b}return b.polyfill=Z,b.Promise=b,b})},86204:function(ft){"use strict";var Ne=typeof Reflect=="object"?Reflect:null,a=Ne&&typeof Ne.apply=="function"?Ne.apply:function(N,u,S){return Function.prototype.apply.call(N,u,S)},y;Ne&&typeof Ne.ownKeys=="function"?y=Ne.ownKeys:Object.getOwnPropertySymbols?y=function(N){return Object.getOwnPropertyNames(N).concat(Object.getOwnPropertySymbols(N))}:y=function(N){return Object.getOwnPropertyNames(N)};function C(A){console&&console.warn&&console.warn(A)}var F=Number.isNaN||function(N){return N!==N};function Y(){Y.init.call(this)}ft.exports=Y,ft.exports.once=U,Y.EventEmitter=Y,Y.prototype._events=void 0,Y.prototype._eventsCount=0,Y.prototype._maxListeners=void 0;var D=10;function f(A){if(typeof A!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}Object.defineProperty(Y,"defaultMaxListeners",{enumerable:!0,get:function(){return D},set:function(A){if(typeof A!="number"||A<0||F(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");D=A}}),Y.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},Y.prototype.setMaxListeners=function(N){if(typeof N!="number"||N<0||F(N))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+N+".");return this._maxListeners=N,this};function ue(A){return A._maxListeners===void 0?Y.defaultMaxListeners:A._maxListeners}Y.prototype.getMaxListeners=function(){return ue(this)},Y.prototype.emit=function(N){for(var u=[],S=1;S<arguments.length;S++)u.push(arguments[S]);var T=N==="error",P=this._events;if(P!==void 0)T=T&&P.error===void 0;else if(!T)return!1;if(T){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 G=P[N];if(G===void 0)return!1;if(typeof G=="function")a(G,this,u);else for(var me=G.length,L=d(G,me),S=0;S<me;++S)a(L[S],this,u);return!0};function le(A,N,u,S){var T,P,w;if(f(u),P=A._events,P===void 0?(P=A._events=Object.create(null),A._eventsCount=0):(P.newListener!==void 0&&(A.emit("newListener",N,u.listener?u.listener:u),P=A._events),w=P[N]),w===void 0)w=P[N]=u,++A._eventsCount;else if(typeof w=="function"?w=P[N]=S?[u,w]:[w,u]:S?w.unshift(u):w.push(u),T=ue(A),T>0&&w.length>T&&!w.warned){w.warned=!0;var re=new Error("Possible EventEmitter memory leak detected. "+w.length+" "+String(N)+" listeners added. Use emitter.setMaxListeners() to increase limit");re.name="MaxListenersExceededWarning",re.emitter=A,re.type=N,re.count=w.length,C(re)}return A}Y.prototype.addListener=function(N,u){return le(this,N,u,!1)},Y.prototype.on=Y.prototype.addListener,Y.prototype.prependListener=function(N,u){return le(this,N,u,!0)};function oe(){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 Se(A,N,u){var S={fired:!1,wrapFn:void 0,target:A,type:N,listener:u},T=oe.bind(S);return T.listener=u,S.wrapFn=T,T}Y.prototype.once=function(N,u){return f(u),this.on(N,Se(this,N,u)),this},Y.prototype.prependOnceListener=function(N,u){return f(u),this.prependListener(N,Se(this,N,u)),this},Y.prototype.removeListener=function(N,u){var S,T,P,w,re;if(f(u),T=this._events,T===void 0)return this;if(S=T[N],S===void 0)return this;if(S===u||S.listener===u)--this._eventsCount===0?this._events=Object.create(null):(delete T[N],T.removeListener&&this.emit("removeListener",N,S.listener||u));else if(typeof S!="function"){for(P=-1,w=S.length-1;w>=0;w--)if(S[w]===u||S[w].listener===u){re=S[w].listener,P=w;break}if(P<0)return this;P===0?S.shift():ne(S,P),S.length===1&&(T[N]=S[0]),T.removeListener!==void 0&&this.emit("removeListener",N,re||u)}return this},Y.prototype.off=Y.prototype.removeListener,Y.prototype.removeAllListeners=function(N){var u,S,T;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[N]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[N]),this;if(arguments.length===0){var P=Object.keys(S),w;for(T=0;T<P.length;++T)w=P[T],w!=="removeListener"&&this.removeAllListeners(w);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(u=S[N],typeof u=="function")this.removeListener(N,u);else if(u!==void 0)for(T=u.length-1;T>=0;T--)this.removeListener(N,u[T]);return this};function fe(A,N,u){var S=A._events;if(S===void 0)return[];var T=S[N];return T===void 0?[]:typeof T=="function"?u?[T.listener||T]:[T]:u?q(T):d(T,T.length)}Y.prototype.listeners=function(N){return fe(this,N,!0)},Y.prototype.rawListeners=function(N){return fe(this,N,!1)},Y.listenerCount=function(A,N){return typeof A.listenerCount=="function"?A.listenerCount(N):M.call(A,N)},Y.prototype.listenerCount=M;function M(A){var N=this._events;if(N!==void 0){var u=N[A];if(typeof u=="function")return 1;if(u!==void 0)return u.length}return 0}Y.prototype.eventNames=function(){return this._eventsCount>0?y(this._events):[]};function d(A,N){for(var u=new Array(N),S=0;S<N;++S)u[S]=A[S];return u}function ne(A,N){for(;N+1<A.length;N++)A[N]=A[N+1];A.pop()}function q(A){for(var N=new Array(A.length),u=0;u<N.length;++u)N[u]=A[u].listener||A[u];return N}function U(A,N){return new Promise(function(u,S){function T(w){A.removeListener(N,P),S(w)}function P(){typeof A.removeListener=="function"&&A.removeListener("error",T),u([].slice.call(arguments))}K(A,N,P,{once:!0}),N!=="error"&&Ce(A,T,{once:!0})})}function Ce(A,N,u){typeof A.on=="function"&&K(A,"error",N,u)}function K(A,N,u,S){if(typeof A.on=="function")S.once?A.once(N,u):A.on(N,u);else if(typeof A.addEventListener=="function")A.addEventListener(N,function T(P){S.once&&A.removeEventListener(N,T),u(P)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A)}},24334:function(ft,Ne,a){var y,C;(function(F,Y){ft.exports=Y(F)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof a.g!="undefined"?a.g:this,function(F){"use strict";F=F||{};var Y=F.Base64,D="2.6.4",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ue=function(x){for(var $={},p=0,k=x.length;p<k;p++)$[x.charAt(p)]=p;return $}(f),le=String.fromCharCode,oe=function(x){if(x.length<2){var $=x.charCodeAt(0);return $<128?x:$<2048?le(192|$>>>6)+le(128|$&63):le(224|$>>>12&15)+le(128|$>>>6&63)+le(128|$&63)}else{var $=65536+(x.charCodeAt(0)-55296)*1024+(x.charCodeAt(1)-56320);return le(240|$>>>18&7)+le(128|$>>>12&63)+le(128|$>>>6&63)+le(128|$&63)}},Se=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,fe=function(x){return x.replace(Se,oe)},M=function(x){var $=[0,2,1][x.length%3],p=x.charCodeAt(0)<<16|(x.length>1?x.charCodeAt(1):0)<<8|(x.length>2?x.charCodeAt(2):0),k=[f.charAt(p>>>18),f.charAt(p>>>12&63),$>=2?"=":f.charAt(p>>>6&63),$>=1?"=":f.charAt(p&63)];return k.join("")},d=F.btoa&&typeof F.btoa=="function"?function(x){return F.btoa(x)}:function(x){if(x.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return x.replace(/[\s\S]{1,3}/g,M)},ne=function(x){return d(fe(String(x)))},q=function(x){return x.replace(/[+\/]/g,function($){return $=="+"?"-":"_"}).replace(/=/g,"")},U=function(x,$){return $?q(ne(x)):ne(x)},Ce=function(x){return U(x,!0)},K;F.Uint8Array&&(K=function(x,$){for(var p="",k=0,pe=x.length;k<pe;k+=3){var H=x[k],de=x[k+1],X=x[k+2],O=H<<16|de<<8|X;p+=f.charAt(O>>>18)+f.charAt(O>>>12&63)+(typeof de!="undefined"?f.charAt(O>>>6&63):"=")+(typeof X!="undefined"?f.charAt(O&63):"=")}return $?q(p):p});var A=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,N=function(x){switch(x.length){case 4:var $=(7&x.charCodeAt(0))<<18|(63&x.charCodeAt(1))<<12|(63&x.charCodeAt(2))<<6|63&x.charCodeAt(3),p=$-65536;return le((p>>>10)+55296)+le((p&1023)+56320);case 3:return le((15&x.charCodeAt(0))<<12|(63&x.charCodeAt(1))<<6|63&x.charCodeAt(2));default:return le((31&x.charCodeAt(0))<<6|63&x.charCodeAt(1))}},u=function(x){return x.replace(A,N)},S=function(x){var $=x.length,p=$%4,k=($>0?ue[x.charAt(0)]<<18:0)|($>1?ue[x.charAt(1)]<<12:0)|($>2?ue[x.charAt(2)]<<6:0)|($>3?ue[x.charAt(3)]:0),pe=[le(k>>>16),le(k>>>8&255),le(k&255)];return pe.length-=[0,0,2,1][p],pe.join("")},T=F.atob&&typeof F.atob=="function"?function(x){return F.atob(x)}:function(x){return x.replace(/\S{1,4}/g,S)},P=function(x){return T(String(x).replace(/[^A-Za-z0-9\+\/]/g,""))},w=function(x){return u(T(x))},re=function(x){return String(x).replace(/[-_]/g,function($){return $=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},G=function(x){return w(re(x))},me;F.Uint8Array&&(me=function(x){return Uint8Array.from(P(re(x)),function($){return $.charCodeAt(0)})});var L=function(){var x=F.Base64;return F.Base64=Y,x};if(F.Base64={VERSION:D,atob:P,btoa:d,fromBase64:G,toBase64:U,utob:fe,encode:U,encodeURI:Ce,btou:u,decode:G,noConflict:L,fromUint8Array:K,toUint8Array:me},typeof Object.defineProperty=="function"){var xe=function(x){return{value:x,enumerable:!1,writable:!0,configurable:!0}};F.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",xe(function(){return G(this)})),Object.defineProperty(String.prototype,"toBase64",xe(function(x){return U(this,x)})),Object.defineProperty(String.prototype,"toBase64URI",xe(function(){return U(this,!0)}))}}return F.Meteor&&(Base64=F.Base64),ft.exports?ft.exports.Base64=F.Base64:(y=[],C=function(){return F.Base64}.apply(Ne,y),C!==void 0&&(ft.exports=C)),{Base64:F.Base64}})},31561:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return P}});var y=a(54476),C=a(20068),F=a(42978),Y=a(75931),D=a(35593),f=a(92310),ue=a.n(f),le=a(8654),oe=a(59301),Se=a(10228),fe=a(16089),M=Se.Z.ESC,d=Se.Z.TAB;function ne(w){var re=w.visible,G=w.triggerRef,me=w.onVisibleChange,L=w.autoFocus,xe=w.overlayRef,x=oe.useRef(!1),$=function(){if(re){var H,de;(H=G.current)===null||H===void 0||(de=H.focus)===null||de===void 0||de.call(H),me==null||me(!1)}},p=function(){var H;return(H=xe.current)!==null&&H!==void 0&&H.focus?(xe.current.focus(),x.current=!0,!0):!1},k=function(H){switch(H.keyCode){case M:$();break;case d:{var de=!1;x.current||(de=p()),de?H.preventDefault():$();break}}};oe.useEffect(function(){return re?(window.addEventListener("keydown",k),L&&(0,fe.Z)(p,3),function(){window.removeEventListener("keydown",k),x.current=!1}):function(){x.current=!1}},[re])}var q=(0,oe.forwardRef)(function(w,re){var G=w.overlay,me=w.arrow,L=w.prefixCls,xe=(0,oe.useMemo)(function(){var $;return typeof G=="function"?$=G():$=G,$},[G]),x=(0,le.sQ)(re,xe==null?void 0:xe.ref);return oe.createElement(oe.Fragment,null,me&&oe.createElement("div",{className:"".concat(L,"-arrow")}),oe.cloneElement(xe,{ref:(0,le.Yr)(xe)?x:void 0}))}),U=q,Ce={adjustX:1,adjustY:1},K=[0,0],A={topLeft:{points:["bl","tl"],overflow:Ce,offset:[0,-4],targetOffset:K},top:{points:["bc","tc"],overflow:Ce,offset:[0,-4],targetOffset:K},topRight:{points:["br","tr"],overflow:Ce,offset:[0,-4],targetOffset:K},bottomLeft:{points:["tl","bl"],overflow:Ce,offset:[0,4],targetOffset:K},bottom:{points:["tc","bc"],overflow:Ce,offset:[0,4],targetOffset:K},bottomRight:{points:["tr","br"],overflow:Ce,offset:[0,4],targetOffset:K}},N=A,u=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function S(w,re){var G,me=w.arrow,L=me===void 0?!1:me,xe=w.prefixCls,x=xe===void 0?"rc-dropdown":xe,$=w.transitionName,p=w.animation,k=w.align,pe=w.placement,H=pe===void 0?"bottomLeft":pe,de=w.placements,X=de===void 0?N:de,O=w.getPopupContainer,j=w.showAction,J=w.hideAction,ae=w.overlayClassName,ge=w.overlayStyle,Te=w.visible,ke=w.trigger,Re=ke===void 0?["hover"]:ke,We=w.autoFocus,Ze=w.overlay,Ue=w.children,Ve=w.onVisibleChange,V=(0,Y.Z)(w,u),Oe=oe.useState(),h=(0,F.Z)(Oe,2),_=h[0],m=h[1],o="visible"in w?Te:_,b=oe.useRef(null),Z=oe.useRef(null),E=oe.useRef(null);oe.useImperativeHandle(re,function(){return b.current});var l=function(se){m(se),Ve==null||Ve(se)};ne({visible:o,triggerRef:E,onVisibleChange:l,autoFocus:We,overlayRef:Z});var g=function(se){var z=w.onOverlayClick;m(!1),z&&z(se)},r=function(){return oe.createElement(U,{ref:Z,overlay:Ze,prefixCls:x,arrow:L})},c=function(){return typeof Ze=="function"?r:r()},v=function(){var se=w.minOverlayWidthMatchTrigger,z=w.alignPoint;return"minOverlayWidthMatchTrigger"in w?se:!z},B=function(){var se=w.openClassName;return se!==void 0?se:"".concat(x,"-open")},Q=oe.cloneElement(Ue,{className:ue()((G=Ue.props)===null||G===void 0?void 0:G.className,o&&B()),ref:(0,le.Yr)(Ue)?(0,le.sQ)(E,Ue.ref):void 0}),he=J;return!he&&Re.indexOf("contextMenu")!==-1&&(he=["click"]),oe.createElement(D.Z,(0,y.Z)({builtinPlacements:X},V,{prefixCls:x,ref:b,popupClassName:ue()(ae,(0,C.Z)({},"".concat(x,"-show-arrow"),L)),popupStyle:ge,action:Re,showAction:j,hideAction:he,popupPlacement:H,popupAlign:k,popupTransitionName:$,popupAnimation:p,popupVisible:o,stretch:v()?"minWidth":"",popup:c(),onPopupVisibleChange:l,onPopupClick:g,getPopupContainer:O}),Q)}var T=oe.forwardRef(S),P=T},15285:function(ft,Ne,a){"use strict";a.d(Ne,{iz:function(){return je},ck:function(){return Fe},BW:function(){return ct},sN:function(){return Fe},Wd:function(){return ye},ZP:function(){return St},Xl:function(){return G}});var y=a(54476),C=a(20068),F=a(33885),Y=a(94480),D=a(42978),f=a(75931),ue=a(92310),le=a.n(ue),oe=a(83836),Se=a(18929),fe=a(13697),M=a(48736),d=a(59301),ne=a(4676),q=d.createContext(null);function U(ie,te){return ie===void 0?null:"".concat(ie,"-").concat(te)}function Ce(ie){var te=d.useContext(q);return U(te,ie)}var K=a(80547),A=["children","locked"],N=d.createContext(null);function u(ie,te){var ve=(0,F.Z)({},ie);return Object.keys(te).forEach(function(De){var _e=te[De];_e!==void 0&&(ve[De]=_e)}),ve}function S(ie){var te=ie.children,ve=ie.locked,De=(0,f.Z)(ie,A),_e=d.useContext(N),be=(0,K.Z)(function(){return u(_e,De)},[_e,De],function(Ee,He){return!ve&&(Ee[0]!==He[0]||!(0,fe.Z)(Ee[1],He[1],!0))});return d.createElement(N.Provider,{value:be},te)}var T=[],P=d.createContext(null);function w(){return d.useContext(P)}var re=d.createContext(T);function G(ie){var te=d.useContext(re);return d.useMemo(function(){return ie!==void 0?[].concat((0,Y.Z)(te),[ie]):te},[te,ie])}var me=d.createContext(null),L=d.createContext({}),xe=L,x=a(29194);function $(ie){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,x.Z)(ie)){var ve=ie.nodeName.toLowerCase(),De=["input","select","textarea","button"].includes(ve)||ie.isContentEditable||ve==="a"&&!!ie.getAttribute("href"),_e=ie.getAttribute("tabindex"),be=Number(_e),Ee=null;return _e&&!Number.isNaN(be)?Ee=be:De&&Ee===null&&(Ee=0),De&&ie.disabled&&(Ee=null),Ee!==null&&(Ee>=0||te&&Ee<0)}return!1}function p(ie){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=(0,Y.Z)(ie.querySelectorAll("*")).filter(function(De){return $(De,te)});return $(ie,te)&&ve.unshift(ie),ve}var k=null;function pe(){k=document.activeElement}function H(){k=null}function de(){if(k)try{k.focus()}catch(ie){}}function X(ie,te){if(te.keyCode===9){var ve=p(ie),De=ve[te.shiftKey?0:ve.length-1],_e=De===document.activeElement||ie===document.activeElement;if(_e){var be=ve[te.shiftKey?ve.length-1:0];be.focus(),te.preventDefault()}}}var O=a(10228),j=a(16089),J=O.Z.LEFT,ae=O.Z.RIGHT,ge=O.Z.UP,Te=O.Z.DOWN,ke=O.Z.ENTER,Re=O.Z.ESC,We=O.Z.HOME,Ze=O.Z.END,Ue=[ge,Te,J,ae];function Ve(ie,te,ve,De){var _e,be,Ee,He,ut="prev",dt="next",Et="children",gt="parent";if(ie==="inline"&&De===ke)return{inlineTrigger:!0};var It=(_e={},(0,C.Z)(_e,ge,ut),(0,C.Z)(_e,Te,dt),_e),Nt=(be={},(0,C.Z)(be,J,ve?dt:ut),(0,C.Z)(be,ae,ve?ut:dt),(0,C.Z)(be,Te,Et),(0,C.Z)(be,ke,Et),be),Dt=(Ee={},(0,C.Z)(Ee,ge,ut),(0,C.Z)(Ee,Te,dt),(0,C.Z)(Ee,ke,Et),(0,C.Z)(Ee,Re,gt),(0,C.Z)(Ee,J,ve?Et:gt),(0,C.Z)(Ee,ae,ve?gt:Et),Ee),zt={inline:It,horizontal:Nt,vertical:Dt,inlineSub:It,horizontalSub:Dt,verticalSub:Dt},Ht=(He=zt["".concat(ie).concat(te?"":"Sub")])===null||He===void 0?void 0:He[De];switch(Ht){case ut:return{offset:-1,sibling:!0};case dt:return{offset:1,sibling:!0};case gt:return{offset:-1,sibling:!1};case Et:return{offset:1,sibling:!1};default:return null}}function V(ie){for(var te=ie;te;){if(te.getAttribute("data-menu-list"))return te;te=te.parentElement}return null}function Oe(ie,te){for(var ve=ie||document.activeElement;ve;){if(te.has(ve))return ve;ve=ve.parentElement}return null}function h(ie,te){var ve=p(ie,!0);return ve.filter(function(De){return te.has(De)})}function _(ie,te,ve){var De=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!ie)return null;var _e=h(ie,te),be=_e.length,Ee=_e.findIndex(function(He){return ve===He});return De<0?Ee===-1?Ee=be-1:Ee-=1:De>0&&(Ee+=1),Ee=(Ee+be)%be,_e[Ee]}var m=function(te,ve){var De=new Set,_e=new Map,be=new Map;return te.forEach(function(Ee){var He=document.querySelector("[data-menu-id='".concat(U(ve,Ee),"']"));He&&(De.add(He),be.set(He,Ee),_e.set(Ee,He))}),{elements:De,key2element:_e,element2key:be}};function o(ie,te,ve,De,_e,be,Ee,He,ut,dt){var Et=d.useRef(),gt=d.useRef();gt.current=te;var It=function(){j.Z.cancel(Et.current)};return d.useEffect(function(){return function(){It()}},[]),function(Nt){var Dt=Nt.which;if([].concat(Ue,[ke,Re,We,Ze]).includes(Dt)){var zt=be(),Ht=m(zt,De),Ut=Ht,Mt=Ut.elements,Ot=Ut.key2element,At=Ut.element2key,Ft=Ot.get(te),Pt=Oe(Ft,Mt),Gt=At.get(Pt),Bt=Ve(ie,Ee(Gt,!0).length===1,ve,Dt);if(!Bt&&Dt!==We&&Dt!==Ze)return;(Ue.includes(Dt)||[We,Ze].includes(Dt))&&Nt.preventDefault();var tn=function(Wt){if(Wt){var an=Wt,st=Wt.querySelector("a");st!=null&&st.getAttribute("href")&&(an=st);var et=At.get(Wt);He(et),It(),Et.current=(0,j.Z)(function(){gt.current===et&&an.focus()})}};if([We,Ze].includes(Dt)||Bt.sibling||!Pt){var Kt;!Pt||ie==="inline"?Kt=_e.current:Kt=V(Pt);var Jt,Xt=h(Kt,Mt);Dt===We?Jt=Xt[0]:Dt===Ze?Jt=Xt[Xt.length-1]:Jt=_(Kt,Mt,Pt,Bt.offset),tn(Jt)}else if(Bt.inlineTrigger)ut(Gt);else if(Bt.offset>0)ut(Gt,!0),It(),Et.current=(0,j.Z)(function(){Ht=m(zt,De);var fn=Pt.getAttribute("aria-controls"),Wt=document.getElementById(fn),an=_(Wt,Ht.elements);tn(an)},5);else if(Bt.offset<0){var Yt=Ee(Gt,!0),nn=Yt[Yt.length-2],rn=Ot.get(nn);ut(nn,!1),tn(rn)}}dt==null||dt(Nt)}}function b(ie){Promise.resolve().then(ie)}var Z="__RC_UTIL_PATH_SPLIT__",E=function(te){return te.join(Z)},l=function(te){return te.split(Z)},g="rc-menu-more";function r(){var ie=d.useState({}),te=(0,D.Z)(ie,2),ve=te[1],De=(0,d.useRef)(new Map),_e=(0,d.useRef)(new Map),be=d.useState([]),Ee=(0,D.Z)(be,2),He=Ee[0],ut=Ee[1],dt=(0,d.useRef)(0),Et=(0,d.useRef)(!1),gt=function(){Et.current||ve({})},It=(0,d.useCallback)(function(Ot,At){var Ft=E(At);_e.current.set(Ft,Ot),De.current.set(Ot,Ft),dt.current+=1;var Pt=dt.current;b(function(){Pt===dt.current&&gt()})},[]),Nt=(0,d.useCallback)(function(Ot,At){var Ft=E(At);_e.current.delete(Ft),De.current.delete(Ot)},[]),Dt=(0,d.useCallback)(function(Ot){ut(Ot)},[]),zt=(0,d.useCallback)(function(Ot,At){var Ft=De.current.get(Ot)||"",Pt=l(Ft);return At&&He.includes(Pt[0])&&Pt.unshift(g),Pt},[He]),Ht=(0,d.useCallback)(function(Ot,At){return Ot.some(function(Ft){var Pt=zt(Ft,!0);return Pt.includes(At)})},[zt]),Ut=function(){var At=(0,Y.Z)(De.current.keys());return He.length&&At.push(g),At},Mt=(0,d.useCallback)(function(Ot){var At="".concat(De.current.get(Ot)).concat(Z),Ft=new Set;return(0,Y.Z)(_e.current.keys()).forEach(function(Pt){Pt.startsWith(At)&&Ft.add(_e.current.get(Pt))}),Ft},[]);return d.useEffect(function(){return function(){Et.current=!0}},[]),{registerPath:It,unregisterPath:Nt,refreshOverflowKeys:Dt,isSubPathKey:Ht,getKeyPath:zt,getKeys:Ut,getSubPathKeys:Mt}}function c(ie){var te=d.useRef(ie);te.current=ie;var ve=d.useCallback(function(){for(var De,_e=arguments.length,be=new Array(_e),Ee=0;Ee<_e;Ee++)be[Ee]=arguments[Ee];return(De=te.current)===null||De===void 0?void 0:De.call.apply(De,[te].concat(be))},[]);return ie?ve:void 0}var v=Math.random().toFixed(5).toString().slice(2),B=0;function Q(ie){var te=(0,Se.Z)(ie,{value:ie}),ve=(0,D.Z)(te,2),De=ve[0],_e=ve[1];return d.useEffect(function(){B+=1;var be="".concat(v,"-").concat(B);_e("rc-menu-uuid-".concat(be))},[]),De}var he=a(67732),ce=a(83652),se=a(42403),z=a(158),Le=a(2738),Be=a(8654);function W(ie,te,ve,De){var _e=d.useContext(N),be=_e.activeKey,Ee=_e.onActive,He=_e.onInactive,ut={active:be===ie};return te||(ut.onMouseEnter=function(dt){ve==null||ve({key:ie,domEvent:dt}),Ee(ie)},ut.onMouseLeave=function(dt){De==null||De({key:ie,domEvent:dt}),He(ie)}),ut}function Ke(ie){var te=d.useContext(N),ve=te.mode,De=te.rtl,_e=te.inlineIndent;if(ve!=="inline")return null;var be=ie;return De?{paddingRight:be*_e}:{paddingLeft:be*_e}}function Me(ie){var te=ie.icon,ve=ie.props,De=ie.children,_e;return te===null||te===!1?null:(typeof te=="function"?_e=d.createElement(te,(0,F.Z)({},ve)):typeof te!="boolean"&&(_e=te),_e||De||null)}var rt=["item"];function ze(ie){var te=ie.item,ve=(0,f.Z)(ie,rt);return Object.defineProperty(ve,"item",{get:function(){return(0,M.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),te}}),ve}var it=["title","attribute","elementRef"],pt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],lt=["active"],nt=function(ie){(0,se.Z)(ve,ie);var te=(0,z.Z)(ve);function ve(){return(0,he.Z)(this,ve),te.apply(this,arguments)}return(0,ce.Z)(ve,[{key:"render",value:function(){var _e=this.props,be=_e.title,Ee=_e.attribute,He=_e.elementRef,ut=(0,f.Z)(_e,it),dt=(0,Le.Z)(ut,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,M.ZP)(!Ee,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),d.createElement(oe.Z.Item,(0,y.Z)({},Ee,{title:typeof be=="string"?be:void 0},dt,{ref:He}))}}]),ve}(d.Component),mt=d.forwardRef(function(ie,te){var ve,De=ie.style,_e=ie.className,be=ie.eventKey,Ee=ie.warnKey,He=ie.disabled,ut=ie.itemIcon,dt=ie.children,Et=ie.role,gt=ie.onMouseEnter,It=ie.onMouseLeave,Nt=ie.onClick,Dt=ie.onKeyDown,zt=ie.onFocus,Ht=(0,f.Z)(ie,pt),Ut=Ce(be),Mt=d.useContext(N),Ot=Mt.prefixCls,At=Mt.onItemClick,Ft=Mt.disabled,Pt=Mt.overflowDisabled,Gt=Mt.itemIcon,Bt=Mt.selectedKeys,tn=Mt.onActive,Kt=d.useContext(xe),Jt=Kt._internalRenderMenuItem,Xt="".concat(Ot,"-item"),Yt=d.useRef(),nn=d.useRef(),rn=Ft||He,fn=(0,Be.x1)(te,nn),Wt=G(be),an=function(en){return{key:be,keyPath:(0,Y.Z)(Wt).reverse(),item:Yt.current,domEvent:en}},st=ut||Gt,et=W(be,rn,gt,It),Ct=et.active,$t=(0,f.Z)(et,lt),Zt=Bt.includes(be),dn=Ke(Wt.length),qt=function(en){if(!rn){var mn=an(en);Nt==null||Nt(ze(mn)),At(mn)}},Qt=function(en){if(Dt==null||Dt(en),en.which===O.Z.ENTER){var mn=an(en);Nt==null||Nt(ze(mn)),At(mn)}},on=function(en){tn(be),zt==null||zt(en)},gn={};ie.role==="option"&&(gn["aria-selected"]=Zt);var hn=d.createElement(nt,(0,y.Z)({ref:Yt,elementRef:fn,role:Et===null?"none":Et||"menuitem",tabIndex:He?null:-1,"data-menu-id":Pt&&Ut?null:Ut},Ht,$t,gn,{component:"li","aria-disabled":He,style:(0,F.Z)((0,F.Z)({},dn),De),className:le()(Xt,(ve={},(0,C.Z)(ve,"".concat(Xt,"-active"),Ct),(0,C.Z)(ve,"".concat(Xt,"-selected"),Zt),(0,C.Z)(ve,"".concat(Xt,"-disabled"),rn),ve),_e),onClick:qt,onKeyDown:Qt,onFocus:on}),dt,d.createElement(Me,{props:(0,F.Z)((0,F.Z)({},ie),{},{isSelected:Zt}),icon:st}));return Jt&&(hn=Jt(hn,ie,{selected:Zt})),hn});function Ge(ie,te){var ve=ie.eventKey,De=w(),_e=G(ve);return d.useEffect(function(){if(De)return De.registerPath(ve,_e),function(){De.unregisterPath(ve,_e)}},[_e]),De?null:d.createElement(mt,(0,y.Z)({},ie,{ref:te}))}var Fe=d.forwardRef(Ge),Je=["className","children"],yt=function(te,ve){var De=te.className,_e=te.children,be=(0,f.Z)(te,Je),Ee=d.useContext(N),He=Ee.prefixCls,ut=Ee.mode,dt=Ee.rtl;return d.createElement("ul",(0,y.Z)({className:le()(He,dt&&"".concat(He,"-rtl"),"".concat(He,"-sub"),"".concat(He,"-").concat(ut==="inline"?"inline":"vertical"),De),role:"menu"},be,{"data-menu-list":!0,ref:ve}),_e)},ht=d.forwardRef(yt);ht.displayName="SubMenuList";var xt=ht,wt=a(11592);function _t(ie,te){return(0,wt.Z)(ie).map(function(ve,De){if(d.isValidElement(ve)){var _e,be,Ee=ve.key,He=(_e=(be=ve.props)===null||be===void 0?void 0:be.eventKey)!==null&&_e!==void 0?_e:Ee,ut=He==null;ut&&(He="tmp_key-".concat([].concat((0,Y.Z)(te),[De]).join("-")));var dt={key:He,eventKey:He};return d.cloneElement(ve,dt)}return ve})}var bt=a(35593),ot={adjustX:1,adjustY:1},at={topLeft:{points:["bl","tl"],overflow:ot},topRight:{points:["br","tr"],overflow:ot},bottomLeft:{points:["tl","bl"],overflow:ot},bottomRight:{points:["tr","br"],overflow:ot},leftTop:{points:["tr","tl"],overflow:ot},leftBottom:{points:["br","bl"],overflow:ot},rightTop:{points:["tl","tr"],overflow:ot},rightBottom:{points:["bl","br"],overflow:ot}},Lt={topLeft:{points:["bl","tl"],overflow:ot},topRight:{points:["br","tr"],overflow:ot},bottomLeft:{points:["tl","bl"],overflow:ot},bottomRight:{points:["tr","br"],overflow:ot},rightTop:{points:["tr","tl"],overflow:ot},rightBottom:{points:["br","bl"],overflow:ot},leftTop:{points:["tl","tr"],overflow:ot},leftBottom:{points:["bl","br"],overflow:ot}},ee=null;function e(ie,te,ve){if(te)return te;if(ve)return ve[ie]||ve.other}var t={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function n(ie){var te=ie.prefixCls,ve=ie.visible,De=ie.children,_e=ie.popup,be=ie.popupStyle,Ee=ie.popupClassName,He=ie.popupOffset,ut=ie.disabled,dt=ie.mode,Et=ie.onVisibleChange,gt=d.useContext(N),It=gt.getPopupContainer,Nt=gt.rtl,Dt=gt.subMenuOpenDelay,zt=gt.subMenuCloseDelay,Ht=gt.builtinPlacements,Ut=gt.triggerSubMenuAction,Mt=gt.forceSubMenuRender,Ot=gt.rootClassName,At=gt.motion,Ft=gt.defaultMotions,Pt=d.useState(!1),Gt=(0,D.Z)(Pt,2),Bt=Gt[0],tn=Gt[1],Kt=Nt?(0,F.Z)((0,F.Z)({},Lt),Ht):(0,F.Z)((0,F.Z)({},at),Ht),Jt=t[dt],Xt=e(dt,At,Ft),Yt=d.useRef(Xt);dt!=="inline"&&(Yt.current=Xt);var nn=(0,F.Z)((0,F.Z)({},Yt.current),{},{leavedClassName:"".concat(te,"-hidden"),removeOnLeave:!1,motionAppear:!0}),rn=d.useRef();return d.useEffect(function(){return rn.current=(0,j.Z)(function(){tn(ve)}),function(){j.Z.cancel(rn.current)}},[ve]),d.createElement(bt.Z,{prefixCls:te,popupClassName:le()("".concat(te,"-popup"),(0,C.Z)({},"".concat(te,"-rtl"),Nt),Ee,Ot),stretch:dt==="horizontal"?"minWidth":null,getPopupContainer:It,builtinPlacements:Kt,popupPlacement:Jt,popupVisible:Bt,popup:_e,popupStyle:be,popupAlign:He&&{offset:He},action:ut?[]:[Ut],mouseEnterDelay:Dt,mouseLeaveDelay:zt,onPopupVisibleChange:Et,forceRender:Mt,popupMotion:nn,fresh:!0},De)}var i=a(77900);function s(ie){var te=ie.id,ve=ie.open,De=ie.keyPath,_e=ie.children,be="inline",Ee=d.useContext(N),He=Ee.prefixCls,ut=Ee.forceSubMenuRender,dt=Ee.motion,Et=Ee.defaultMotions,gt=Ee.mode,It=d.useRef(!1);It.current=gt===be;var Nt=d.useState(!It.current),Dt=(0,D.Z)(Nt,2),zt=Dt[0],Ht=Dt[1],Ut=It.current?ve:!1;d.useEffect(function(){It.current&&Ht(!1)},[gt]);var Mt=(0,F.Z)({},e(be,dt,Et));De.length>1&&(Mt.motionAppear=!1);var Ot=Mt.onVisibleChanged;return Mt.onVisibleChanged=function(At){return!It.current&&!At&&Ht(!0),Ot==null?void 0:Ot(At)},zt?null:d.createElement(S,{mode:be,locked:!It.current},d.createElement(i.default,(0,y.Z)({visible:Ut},Mt,{forceRender:ut,removeOnLeave:!1,leavedClassName:"".concat(He,"-hidden")}),function(At){var Ft=At.className,Pt=At.style;return d.createElement(xt,{id:te,className:Ft,style:Pt},_e)}))}var R=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],I=["active"],we=function(te){var ve,De=te.style,_e=te.className,be=te.title,Ee=te.eventKey,He=te.warnKey,ut=te.disabled,dt=te.internalPopupClose,Et=te.children,gt=te.itemIcon,It=te.expandIcon,Nt=te.popupClassName,Dt=te.popupOffset,zt=te.popupStyle,Ht=te.onClick,Ut=te.onMouseEnter,Mt=te.onMouseLeave,Ot=te.onTitleClick,At=te.onTitleMouseEnter,Ft=te.onTitleMouseLeave,Pt=(0,f.Z)(te,R),Gt=Ce(Ee),Bt=d.useContext(N),tn=Bt.prefixCls,Kt=Bt.mode,Jt=Bt.openKeys,Xt=Bt.disabled,Yt=Bt.overflowDisabled,nn=Bt.activeKey,rn=Bt.selectedKeys,fn=Bt.itemIcon,Wt=Bt.expandIcon,an=Bt.onItemClick,st=Bt.onOpenChange,et=Bt.onActive,Ct=d.useContext(xe),$t=Ct._internalRenderSubMenuItem,Zt=d.useContext(me),dn=Zt.isSubPathKey,qt=G(),Qt="".concat(tn,"-submenu"),on=Xt||ut,gn=d.useRef(),hn=d.useRef(),En=gt!=null?gt:fn,en=It!=null?It:Wt,mn=Jt.includes(Ee),yn=!Yt&&mn,$n=dn(rn,Ee),xn=W(Ee,on,At,Ft),bn=xn.active,zn=(0,f.Z)(xn,I),qn=d.useState(!1),Hn=(0,D.Z)(qn,2),On=Hn[0],Pn=Hn[1],kn=function(un){on||Pn(un)},vn=function(un){kn(!0),Ut==null||Ut({key:Ee,domEvent:un})},jn=function(un){kn(!1),Mt==null||Mt({key:Ee,domEvent:un})},Ln=d.useMemo(function(){return bn||(Kt!=="inline"?On||dn([nn],Ee):!1)},[Kt,bn,nn,On,Ee,dn]),Bn=Ke(qt.length),Vn=function(un){on||(Ot==null||Ot({key:Ee,domEvent:un}),Kt==="inline"&&st(Ee,!mn))},Rn=c(function(pn){Ht==null||Ht(ze(pn)),an(pn)}),Dn=function(un){Kt!=="inline"&&st(Ee,un)},An=function(){et(Ee)},Tn=Gt&&"".concat(Gt,"-popup"),In=d.createElement("div",(0,y.Z)({role:"menuitem",style:Bn,className:"".concat(Qt,"-title"),tabIndex:on?null:-1,ref:gn,title:typeof be=="string"?be:null,"data-menu-id":Yt&&Gt?null:Gt,"aria-expanded":yn,"aria-haspopup":!0,"aria-controls":Tn,"aria-disabled":on,onClick:Vn,onFocus:An},zn),be,d.createElement(Me,{icon:Kt!=="horizontal"?en:void 0,props:(0,F.Z)((0,F.Z)({},te),{},{isOpen:yn,isSubMenu:!0})},d.createElement("i",{className:"".concat(Qt,"-arrow")}))),cn=d.useRef(Kt);if(Kt!=="inline"&&qt.length>1?cn.current="vertical":cn.current=Kt,!Yt){var wn=cn.current;In=d.createElement(n,{mode:wn,prefixCls:Qt,visible:!dt&&yn&&Kt!=="inline",popupClassName:Nt,popupOffset:Dt,popupStyle:zt,popup:d.createElement(S,{mode:wn==="horizontal"?"vertical":wn},d.createElement(xt,{id:Tn,ref:hn},Et)),disabled:on,onVisibleChange:Dn},In)}var Sn=d.createElement(oe.Z.Item,(0,y.Z)({role:"none"},Pt,{component:"li",style:De,className:le()(Qt,"".concat(Qt,"-").concat(Kt),_e,(ve={},(0,C.Z)(ve,"".concat(Qt,"-open"),yn),(0,C.Z)(ve,"".concat(Qt,"-active"),Ln),(0,C.Z)(ve,"".concat(Qt,"-selected"),$n),(0,C.Z)(ve,"".concat(Qt,"-disabled"),on),ve)),onMouseEnter:vn,onMouseLeave:jn}),In,!Yt&&d.createElement(s,{id:Tn,open:yn,keyPath:qt},Et));return $t&&(Sn=$t(Sn,te,{selected:$n,active:Ln,open:yn,disabled:on})),d.createElement(S,{onItemClick:Rn,mode:Kt==="horizontal"?"vertical":Kt,itemIcon:En,expandIcon:en},Sn)};function ye(ie){var te=ie.eventKey,ve=ie.children,De=G(te),_e=_t(ve,De),be=w();d.useEffect(function(){if(be)return be.registerPath(te,De),function(){be.unregisterPath(te,De)}},[De]);var Ee;return be?Ee=_e:Ee=d.createElement(we,ie,_e),d.createElement(re.Provider,{value:De},Ee)}var Ae=a(76190),Xe=["className","title","eventKey","children"],Qe=["children"],$e=function(te){var ve=te.className,De=te.title,_e=te.eventKey,be=te.children,Ee=(0,f.Z)(te,Xe),He=d.useContext(N),ut=He.prefixCls,dt="".concat(ut,"-item-group");return d.createElement("li",(0,y.Z)({role:"presentation"},Ee,{onClick:function(gt){return gt.stopPropagation()},className:le()(dt,ve)}),d.createElement("div",{role:"presentation",className:"".concat(dt,"-title"),title:typeof De=="string"?De:void 0},De),d.createElement("ul",{role:"group",className:"".concat(dt,"-list")},be))};function ct(ie){var te=ie.children,ve=(0,f.Z)(ie,Qe),De=G(ve.eventKey),_e=_t(te,De),be=w();return be?_e:d.createElement($e,(0,Le.Z)(ve,["warnKey"]),_e)}function je(ie){var te=ie.className,ve=ie.style,De=d.useContext(N),_e=De.prefixCls,be=w();return be?null:d.createElement("li",{role:"separator",className:le()("".concat(_e,"-item-divider"),te),style:ve})}var Ie=["label","children","key","type"];function Pe(ie){return(ie||[]).map(function(te,ve){if(te&&(0,Ae.Z)(te)==="object"){var De=te,_e=De.label,be=De.children,Ee=De.key,He=De.type,ut=(0,f.Z)(De,Ie),dt=Ee!=null?Ee:"tmp-".concat(ve);return be||He==="group"?He==="group"?d.createElement(ct,(0,y.Z)({key:dt},ut,{title:_e}),Pe(be)):d.createElement(ye,(0,y.Z)({key:dt},ut,{title:_e}),Pe(be)):He==="divider"?d.createElement(je,(0,y.Z)({key:dt},ut)):d.createElement(Fe,(0,y.Z)({key:dt},ut),_e)}return null}).filter(function(te){return te})}function tt(ie,te,ve){var De=ie;return te&&(De=Pe(te)),_t(De,ve)}var qe=["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"],vt=[],Tt=d.forwardRef(function(ie,te){var ve,De,_e=ie,be=_e.prefixCls,Ee=be===void 0?"rc-menu":be,He=_e.rootClassName,ut=_e.style,dt=_e.className,Et=_e.tabIndex,gt=Et===void 0?0:Et,It=_e.items,Nt=_e.children,Dt=_e.direction,zt=_e.id,Ht=_e.mode,Ut=Ht===void 0?"vertical":Ht,Mt=_e.inlineCollapsed,Ot=_e.disabled,At=_e.disabledOverflow,Ft=_e.subMenuOpenDelay,Pt=Ft===void 0?.1:Ft,Gt=_e.subMenuCloseDelay,Bt=Gt===void 0?.1:Gt,tn=_e.forceSubMenuRender,Kt=_e.defaultOpenKeys,Jt=_e.openKeys,Xt=_e.activeKey,Yt=_e.defaultActiveFirst,nn=_e.selectable,rn=nn===void 0?!0:nn,fn=_e.multiple,Wt=fn===void 0?!1:fn,an=_e.defaultSelectedKeys,st=_e.selectedKeys,et=_e.onSelect,Ct=_e.onDeselect,$t=_e.inlineIndent,Zt=$t===void 0?24:$t,dn=_e.motion,qt=_e.defaultMotions,Qt=_e.triggerSubMenuAction,on=Qt===void 0?"hover":Qt,gn=_e.builtinPlacements,hn=_e.itemIcon,En=_e.expandIcon,en=_e.overflowedIndicator,mn=en===void 0?"...":en,yn=_e.overflowedIndicatorPopupClassName,$n=_e.getPopupContainer,xn=_e.onClick,bn=_e.onOpenChange,zn=_e.onKeyDown,qn=_e.openAnimation,Hn=_e.openTransitionName,On=_e._internalRenderMenuItem,Pn=_e._internalRenderSubMenuItem,kn=(0,f.Z)(_e,qe),vn=d.useMemo(function(){return tt(Nt,It,vt)},[Nt,It]),jn=d.useState(!1),Ln=(0,D.Z)(jn,2),Bn=Ln[0],Vn=Ln[1],Rn=d.useRef(),Dn=Q(zt),An=Dt==="rtl",Tn=(0,Se.Z)(Kt,{value:Jt,postState:function(kt){return kt||vt}}),In=(0,D.Z)(Tn,2),cn=In[0],wn=In[1],Sn=function(kt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function sn(){wn(kt),bn==null||bn(kt)}jt?(0,ne.flushSync)(sn):sn()},pn=d.useState(cn),un=(0,D.Z)(pn,2),mr=un[0],vr=un[1],Wn=d.useRef(!1),pr=d.useMemo(function(){return(Ut==="inline"||Ut==="vertical")&&Mt?["vertical",Mt]:[Ut,!1]},[Ut,Mt]),er=(0,D.Z)(pr,2),Kn=er[0],Gn=er[1],tr=Kn==="inline",gr=d.useState(Kn),nr=(0,D.Z)(gr,2),_n=nr[0],yr=nr[1],_r=d.useState(Gn),rr=(0,D.Z)(_r,2),Er=rr[0],br=rr[1];d.useEffect(function(){yr(Kn),br(Gn),Wn.current&&(tr?wn(mr):Sn(vt))},[Kn,Gn]);var Sr=d.useState(0),ir=(0,D.Z)(Sr,2),Fn=ir[0],Cr=ir[1],Xn=Fn>=vn.length-1||_n!=="horizontal"||At;d.useEffect(function(){tr&&vr(cn)},[cn]),d.useEffect(function(){return Wn.current=!0,function(){Wn.current=!1}},[]);var Cn=r(),ar=Cn.registerPath,or=Cn.unregisterPath,xr=Cn.refreshOverflowKeys,sr=Cn.isSubPathKey,Rr=Cn.getKeyPath,lr=Cn.getKeys,Ir=Cn.getSubPathKeys,wr=d.useMemo(function(){return{registerPath:ar,unregisterPath:or}},[ar,or]),Or=d.useMemo(function(){return{isSubPathKey:sr}},[sr]);d.useEffect(function(){xr(Xn?vt:vn.slice(Fn+1).map(function(Vt){return Vt.key}))},[Fn,Xn]);var Lr=(0,Se.Z)(Xt||Yt&&((ve=vn[0])===null||ve===void 0?void 0:ve.key),{value:Xt}),dr=(0,D.Z)(Lr,2),Nn=dr[0],Yn=dr[1],Dr=c(function(Vt){Yn(Vt)}),Ar=c(function(){Yn(void 0)});(0,d.useImperativeHandle)(te,function(){return{list:Rn.current,focus:function(kt){var jt,sn=lr(),ln=m(sn,Dn),Un=ln.elements,Qn=ln.key2element,Zr=ln.element2key,fr=h(Rn.current,Un),hr=Nn!=null?Nn:fr[0]?Zr.get(fr[0]):(jt=vn.find(function(Ur){return!Ur.props.disabled}))===null||jt===void 0?void 0:jt.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,Se.Z)(an||[],{value:st,postState:function(kt){return Array.isArray(kt)?kt:kt==null?vt:[kt]}}),cr=(0,D.Z)(Tr,2),Zn=cr[0],Nr=cr[1],Mr=function(kt){if(rn){var jt=kt.key,sn=Zn.includes(jt),ln;Wt?sn?ln=Zn.filter(function(Qn){return Qn!==jt}):ln=[].concat((0,Y.Z)(Zn),[jt]):ln=[jt],Nr(ln);var Un=(0,F.Z)((0,F.Z)({},kt),{},{selectedKeys:ln});sn?Ct==null||Ct(Un):et==null||et(Un)}!Wt&&cn.length&&_n!=="inline"&&Sn(vt)},$r=c(function(Vt){xn==null||xn(ze(Vt)),Mr(Vt)}),ur=c(function(Vt,kt){var jt=cn.filter(function(ln){return ln!==Vt});if(kt)jt.push(Vt);else if(_n!=="inline"){var sn=Ir(Vt);jt=jt.filter(function(ln){return!sn.has(ln)})}(0,fe.Z)(cn,jt,!0)||Sn(jt,!0)}),Pr=function(kt,jt){var sn=jt!=null?jt:!cn.includes(kt);ur(kt,sn)},kr=o(_n,Nn,An,Dn,Rn,lr,Rr,Yn,Pr,zn);d.useEffect(function(){Vn(!0)},[]);var Br=d.useMemo(function(){return{_internalRenderMenuItem:On,_internalRenderSubMenuItem:Pn}},[On,Pn]),Kr=_n!=="horizontal"||At?vn:vn.map(function(Vt,kt){return d.createElement(S,{key:Vt.key,overflowDisabled:kt>Fn},Vt)}),Fr=d.createElement(oe.Z,(0,y.Z)({id:zt,ref:Rn,prefixCls:"".concat(Ee,"-overflow"),component:"ul",itemComponent:Fe,className:le()(Ee,"".concat(Ee,"-root"),"".concat(Ee,"-").concat(_n),dt,(De={},(0,C.Z)(De,"".concat(Ee,"-inline-collapsed"),Er),(0,C.Z)(De,"".concat(Ee,"-rtl"),An),De),He),dir:Dt,style:ut,role:"menu",tabIndex:gt,data:Kr,renderRawItem:function(kt){return kt},renderRawRest:function(kt){var jt=kt.length,sn=jt?vn.slice(-jt):null;return d.createElement(ye,{eventKey:g,title:mn,disabled:Xn,internalPopupClose:jt===0,popupClassName:yn},sn)},maxCount:_n!=="horizontal"||At?oe.Z.INVALIDATE:oe.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(kt){Cr(kt)},onKeyDown:kr},kn));return d.createElement(xe.Provider,{value:Br},d.createElement(q.Provider,{value:Dn},d.createElement(S,{prefixCls:Ee,rootClassName:He,mode:_n,openKeys:cn,rtl:An,disabled:Ot,motion:Bn?dn:null,defaultMotions:Bn?qt:null,activeKey:Nn,onActive:Dr,onInactive:Ar,selectedKeys:Zn,inlineIndent:Zt,subMenuOpenDelay:Pt,subMenuCloseDelay:Bt,forceSubMenuRender:tn,builtinPlacements:gn,triggerSubMenuAction:on,getPopupContainer:$n,itemIcon:hn,expandIcon:En,onItemClick:$r,onOpenChange:ur},d.createElement(me.Provider,{value:Or},Fr),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(P.Provider,{value:wr},vn)))))}),Rt=Tt,Ye=Rt;Ye.Item=Fe,Ye.SubMenu=ye,Ye.ItemGroup=ct,Ye.Divider=je;var St=Ye},83836:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return pe}});var y=a(54476),C=a(33885),F=a(42978),Y=a(75931),D=a(59301),f=a(92310),ue=a.n(f),le=a(29301),oe=a(34280),Se=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],fe=void 0;function M(H,de){var X=H.prefixCls,O=H.invalidate,j=H.item,J=H.renderItem,ae=H.responsive,ge=H.responsiveDisabled,Te=H.registerSize,ke=H.itemKey,Re=H.className,We=H.style,Ze=H.children,Ue=H.display,Ve=H.order,V=H.component,Oe=V===void 0?"div":V,h=(0,Y.Z)(H,Se),_=ae&&!Ue;function m(l){Te(ke,l)}D.useEffect(function(){return function(){m(null)}},[]);var o=J&&j!==fe?J(j,{index:Ve}):Ze,b;O||(b={opacity:_?0:1,height:_?0:fe,overflowY:_?"hidden":fe,order:ae?Ve:fe,pointerEvents:_?"none":fe,position:_?"absolute":fe});var Z={};_&&(Z["aria-hidden"]=!0);var E=D.createElement(Oe,(0,y.Z)({className:ue()(!O&&X,Re),style:(0,C.Z)((0,C.Z)({},b),We)},Z,h,{ref:de}),o);return ae&&(E=D.createElement(le.Z,{onResize:function(g){var r=g.offsetWidth;m(r)},disabled:ge},E)),E}var d=D.forwardRef(M);d.displayName="Item";var ne=d,q=a(6089),U=a(4676),Ce=a(16089);function K(H){if(typeof MessageChannel=="undefined")(0,Ce.Z)(H);else{var de=new MessageChannel;de.port1.onmessage=function(){return H()},de.port2.postMessage(void 0)}}function A(){var H=D.useRef(null),de=function(O){H.current||(H.current=[],K(function(){(0,U.unstable_batchedUpdates)(function(){H.current.forEach(function(j){j()}),H.current=null})})),H.current.push(O)};return de}function N(H,de){var X=D.useState(de),O=(0,F.Z)(X,2),j=O[0],J=O[1],ae=(0,q.Z)(function(ge){H(function(){J(ge)})});return[j,ae]}var u=D.createContext(null),S=["component"],T=["className"],P=["className"],w=function(de,X){var O=D.useContext(u);if(!O){var j=de.component,J=j===void 0?"div":j,ae=(0,Y.Z)(de,S);return D.createElement(J,(0,y.Z)({},ae,{ref:X}))}var ge=O.className,Te=(0,Y.Z)(O,T),ke=de.className,Re=(0,Y.Z)(de,P);return D.createElement(u.Provider,{value:null},D.createElement(ne,(0,y.Z)({ref:X,className:ue()(ge,ke)},Te,Re)))},re=D.forwardRef(w);re.displayName="RawItem";var G=re,me=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],L="responsive",xe="invalidate";function x(H){return"+ ".concat(H.length," ...")}function $(H,de){var X=H.prefixCls,O=X===void 0?"rc-overflow":X,j=H.data,J=j===void 0?[]:j,ae=H.renderItem,ge=H.renderRawItem,Te=H.itemKey,ke=H.itemWidth,Re=ke===void 0?10:ke,We=H.ssr,Ze=H.style,Ue=H.className,Ve=H.maxCount,V=H.renderRest,Oe=H.renderRawRest,h=H.prefix,_=H.suffix,m=H.component,o=m===void 0?"div":m,b=H.itemComponent,Z=H.onVisibleChange,E=(0,Y.Z)(H,me),l=We==="full",g=A(),r=N(g,null),c=(0,F.Z)(r,2),v=c[0],B=c[1],Q=v||0,he=N(g,new Map),ce=(0,F.Z)(he,2),se=ce[0],z=ce[1],Le=N(g,0),Be=(0,F.Z)(Le,2),W=Be[0],Ke=Be[1],Me=N(g,0),rt=(0,F.Z)(Me,2),ze=rt[0],it=rt[1],pt=N(g,0),lt=(0,F.Z)(pt,2),nt=lt[0],mt=lt[1],Ge=N(g,0),Fe=(0,F.Z)(Ge,2),Je=Fe[0],yt=Fe[1],ht=(0,D.useState)(null),xt=(0,F.Z)(ht,2),wt=xt[0],_t=xt[1],bt=(0,D.useState)(null),ot=(0,F.Z)(bt,2),at=ot[0],Lt=ot[1],ee=D.useMemo(function(){return at===null&&l?Number.MAX_SAFE_INTEGER:at||0},[at,v]),e=(0,D.useState)(!1),t=(0,F.Z)(e,2),n=t[0],i=t[1],s="".concat(O,"-item"),R=Math.max(W,ze),I=Ve===L,we=J.length&&I,ye=Ve===xe,Ae=we||typeof Ve=="number"&&J.length>Ve,Xe=(0,D.useMemo)(function(){var be=J;return we?v===null&&l?be=J:be=J.slice(0,Math.min(J.length,Q/Re)):typeof Ve=="number"&&(be=J.slice(0,Ve)),be},[J,Re,v,Ve,we]),Qe=(0,D.useMemo)(function(){return we?J.slice(ee+1):J.slice(Xe.length)},[J,Xe,we,ee]),$e=(0,D.useCallback)(function(be,Ee){var He;return typeof Te=="function"?Te(be):(He=Te&&(be==null?void 0:be[Te]))!==null&&He!==void 0?He:Ee},[Te]),ct=(0,D.useCallback)(ae||function(be){return be},[ae]);function je(be,Ee,He){at===be&&(Ee===void 0||Ee===wt)||(Lt(be),He||(i(be<J.length-1),Z==null||Z(be)),Ee!==void 0&&_t(Ee))}function Ie(be,Ee){B(Ee.clientWidth)}function Pe(be,Ee){z(function(He){var ut=new Map(He);return Ee===null?ut.delete(be):ut.set(be,Ee),ut})}function tt(be,Ee){it(Ee),Ke(ze)}function qe(be,Ee){mt(Ee)}function vt(be,Ee){yt(Ee)}function Tt(be){return se.get($e(Xe[be],be))}(0,oe.Z)(function(){if(Q&&typeof R=="number"&&Xe){var be=nt+Je,Ee=Xe.length,He=Ee-1;if(!Ee){je(0,null);return}for(var ut=0;ut<Ee;ut+=1){var dt=Tt(ut);if(l&&(dt=dt||0),dt===void 0){je(ut-1,void 0,!0);break}if(be+=dt,He===0&&be<=Q||ut===He-1&&be+Tt(He)<=Q){je(He,null);break}else if(be+R>Q){je(ut-1,be-dt-Je+ze);break}}_&&Tt(0)+Je>Q&&_t(null)}},[Q,se,ze,nt,Je,$e,Xe]);var Rt=n&&!!Qe.length,Ye={};wt!==null&&we&&(Ye={position:"absolute",left:wt,top:0});var St={prefixCls:s,responsive:we,component:b,invalidate:ye},ie=ge?function(be,Ee){var He=$e(be,Ee);return D.createElement(u.Provider,{key:He,value:(0,C.Z)((0,C.Z)({},St),{},{order:Ee,item:be,itemKey:He,registerSize:Pe,display:Ee<=ee})},ge(be,Ee))}:function(be,Ee){var He=$e(be,Ee);return D.createElement(ne,(0,y.Z)({},St,{order:Ee,key:He,item:be,renderItem:ct,itemKey:He,registerSize:Pe,display:Ee<=ee}))},te={order:Rt?ee:Number.MAX_SAFE_INTEGER,className:"".concat(s,"-rest"),registerSize:tt,display:Rt},ve=V||x,De=Oe?D.createElement(u.Provider,{value:(0,C.Z)((0,C.Z)({},St),te)},Oe(Qe)):D.createElement(ne,(0,y.Z)({},St,te),typeof ve=="function"?ve(Qe):ve),_e=D.createElement(o,(0,y.Z)({className:ue()(!ye&&O,Ue),style:Ze,ref:de},E),h&&D.createElement(ne,(0,y.Z)({},St,{responsive:I,responsiveDisabled:!we,order:-1,className:"".concat(s,"-prefix"),registerSize:qe,display:!0}),h),Xe.map(ie),Ae?De:null,_&&D.createElement(ne,(0,y.Z)({},St,{responsive:I,responsiveDisabled:!we,order:ee,className:"".concat(s,"-suffix"),registerSize:vt,display:!0,style:Ye}),_));return I?D.createElement(le.Z,{onResize:Ie,disabled:!we},_e):_e}var p=D.forwardRef($);p.displayName="Overflow",p.Item=G,p.RESPONSIVE=L,p.INVALIDATE=xe;var k=p,pe=k},39417:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return w}});var y=a(54476),C=a(20068),F=a(75931),Y=a(33885),D=a(67732),f=a(83652),ue=a(31226),le=a(42403),oe=a(158),Se=a(92310),fe=a.n(Se),M=a(26112),d=a(59301),ne=a(39378),q=function(G){for(var me=G.prefixCls,L=G.level,xe=G.isStart,x=G.isEnd,$="".concat(me,"-indent-unit"),p=[],k=0;k<L;k+=1){var pe;p.push(d.createElement("span",{key:k,className:fe()($,(pe={},(0,C.Z)(pe,"".concat($,"-start"),xe[k]),(0,C.Z)(pe,"".concat($,"-end"),x[k]),pe))}))}return d.createElement("span",{"aria-hidden":"true",className:"".concat(me,"-indent")},p)},U=d.memo(q),Ce=a(67841),K=a(71430),A=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],N="open",u="close",S="---",T=function(re){(0,le.Z)(me,re);var G=(0,oe.Z)(me);function me(){var L;(0,D.Z)(this,me);for(var xe=arguments.length,x=new Array(xe),$=0;$<xe;$++)x[$]=arguments[$];return L=G.call.apply(G,[this].concat(x)),L.state={dragNodeHighlight:!1},L.selectHandle=void 0,L.cacheIndent=void 0,L.onSelectorClick=function(p){var k=L.props.context.onNodeClick;k(p,(0,K.F)(L.props)),L.isSelectable()?L.onSelect(p):L.onCheck(p)},L.onSelectorDoubleClick=function(p){var k=L.props.context.onNodeDoubleClick;k(p,(0,K.F)(L.props))},L.onSelect=function(p){if(!L.isDisabled()){var k=L.props.context.onNodeSelect;k(p,(0,K.F)(L.props))}},L.onCheck=function(p){if(!L.isDisabled()){var k=L.props,pe=k.disableCheckbox,H=k.checked,de=L.props.context.onNodeCheck;if(!(!L.isCheckable()||pe)){var X=!H;de(p,(0,K.F)(L.props),X)}}},L.onMouseEnter=function(p){var k=L.props.context.onNodeMouseEnter;k(p,(0,K.F)(L.props))},L.onMouseLeave=function(p){var k=L.props.context.onNodeMouseLeave;k(p,(0,K.F)(L.props))},L.onContextMenu=function(p){var k=L.props.context.onNodeContextMenu;k(p,(0,K.F)(L.props))},L.onDragStart=function(p){var k=L.props.context.onNodeDragStart;p.stopPropagation(),L.setState({dragNodeHighlight:!0}),k(p,(0,ue.Z)(L));try{p.dataTransfer.setData("text/plain","")}catch(pe){}},L.onDragEnter=function(p){var k=L.props.context.onNodeDragEnter;p.preventDefault(),p.stopPropagation(),k(p,(0,ue.Z)(L))},L.onDragOver=function(p){var k=L.props.context.onNodeDragOver;p.preventDefault(),p.stopPropagation(),k(p,(0,ue.Z)(L))},L.onDragLeave=function(p){var k=L.props.context.onNodeDragLeave;p.stopPropagation(),k(p,(0,ue.Z)(L))},L.onDragEnd=function(p){var k=L.props.context.onNodeDragEnd;p.stopPropagation(),L.setState({dragNodeHighlight:!1}),k(p,(0,ue.Z)(L))},L.onDrop=function(p){var k=L.props.context.onNodeDrop;p.preventDefault(),p.stopPropagation(),L.setState({dragNodeHighlight:!1}),k(p,(0,ue.Z)(L))},L.onExpand=function(p){var k=L.props,pe=k.loading,H=k.context.onNodeExpand;pe||H(p,(0,K.F)(L.props))},L.setSelectHandle=function(p){L.selectHandle=p},L.getNodeState=function(){var p=L.props.expanded;return L.isLeaf()?null:p?N:u},L.hasChildren=function(){var p=L.props.eventKey,k=L.props.context.keyEntities,pe=(0,Ce.Z)(k,p)||{},H=pe.children;return!!(H||[]).length},L.isLeaf=function(){var p=L.props,k=p.isLeaf,pe=p.loaded,H=L.props.context.loadData,de=L.hasChildren();return k===!1?!1:k||!H&&!de||H&&pe&&!de},L.isDisabled=function(){var p=L.props.disabled,k=L.props.context.disabled;return!!(k||p)},L.isCheckable=function(){var p=L.props.checkable,k=L.props.context.checkable;return!k||p===!1?!1:k},L.syncLoadData=function(p){var k=p.expanded,pe=p.loading,H=p.loaded,de=L.props.context,X=de.loadData,O=de.onNodeLoad;pe||X&&k&&!L.isLeaf()&&!L.hasChildren()&&!H&&O((0,K.F)(L.props))},L.isDraggable=function(){var p=L.props,k=p.data,pe=p.context.draggable;return!!(pe&&(!pe.nodeDraggable||pe.nodeDraggable(k)))},L.renderDragHandler=function(){var p=L.props.context,k=p.draggable,pe=p.prefixCls;return k!=null&&k.icon?d.createElement("span",{className:"".concat(pe,"-draggable-icon")},k.icon):null},L.renderSwitcherIconDom=function(p){var k=L.props.switcherIcon,pe=L.props.context.switcherIcon,H=k||pe;return typeof H=="function"?H((0,Y.Z)((0,Y.Z)({},L.props),{},{isLeaf:p})):H},L.renderSwitcher=function(){var p=L.props.expanded,k=L.props.context.prefixCls;if(L.isLeaf()){var pe=L.renderSwitcherIconDom(!0);return pe!==!1?d.createElement("span",{className:fe()("".concat(k,"-switcher"),"".concat(k,"-switcher-noop"))},pe):null}var H=fe()("".concat(k,"-switcher"),"".concat(k,"-switcher_").concat(p?N:u)),de=L.renderSwitcherIconDom(!1);return de!==!1?d.createElement("span",{onClick:L.onExpand,className:H},de):null},L.renderCheckbox=function(){var p=L.props,k=p.checked,pe=p.halfChecked,H=p.disableCheckbox,de=L.props.context.prefixCls,X=L.isDisabled(),O=L.isCheckable();if(!O)return null;var j=typeof O!="boolean"?O:null;return d.createElement("span",{className:fe()("".concat(de,"-checkbox"),k&&"".concat(de,"-checkbox-checked"),!k&&pe&&"".concat(de,"-checkbox-indeterminate"),(X||H)&&"".concat(de,"-checkbox-disabled")),onClick:L.onCheck},j)},L.renderIcon=function(){var p=L.props.loading,k=L.props.context.prefixCls;return d.createElement("span",{className:fe()("".concat(k,"-iconEle"),"".concat(k,"-icon__").concat(L.getNodeState()||"docu"),p&&"".concat(k,"-icon_loading"))})},L.renderSelector=function(){var p=L.state.dragNodeHighlight,k=L.props,pe=k.title,H=pe===void 0?S:pe,de=k.selected,X=k.icon,O=k.loading,j=k.data,J=L.props.context,ae=J.prefixCls,ge=J.showIcon,Te=J.icon,ke=J.loadData,Re=J.titleRender,We=L.isDisabled(),Ze="".concat(ae,"-node-content-wrapper"),Ue;if(ge){var Ve=X||Te;Ue=Ve?d.createElement("span",{className:fe()("".concat(ae,"-iconEle"),"".concat(ae,"-icon__customize"))},typeof Ve=="function"?Ve(L.props):Ve):L.renderIcon()}else ke&&O&&(Ue=L.renderIcon());var V;typeof H=="function"?V=H(j):Re?V=Re(j):V=H;var Oe=d.createElement("span",{className:"".concat(ae,"-title")},V);return d.createElement("span",{ref:L.setSelectHandle,title:typeof H=="string"?H:"",className:fe()("".concat(Ze),"".concat(Ze,"-").concat(L.getNodeState()||"normal"),!We&&(de||p)&&"".concat(ae,"-node-selected")),onMouseEnter:L.onMouseEnter,onMouseLeave:L.onMouseLeave,onContextMenu:L.onContextMenu,onClick:L.onSelectorClick,onDoubleClick:L.onSelectorDoubleClick},Ue,Oe,L.renderDropIndicator())},L.renderDropIndicator=function(){var p=L.props,k=p.disabled,pe=p.eventKey,H=L.props.context,de=H.draggable,X=H.dropLevelOffset,O=H.dropPosition,j=H.prefixCls,J=H.indent,ae=H.dropIndicatorRender,ge=H.dragOverNodeKey,Te=H.direction,ke=!!de,Re=!k&&ke&&ge===pe,We=J!=null?J:L.cacheIndent;return L.cacheIndent=J,Re?ae({dropPosition:O,dropLevelOffset:X,indent:We,prefixCls:j,direction:Te}):null},L}return(0,f.Z)(me,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var xe=this.props.selectable,x=this.props.context.selectable;return typeof xe=="boolean"?xe:x}},{key:"render",value:function(){var xe,x=this.props,$=x.eventKey,p=x.className,k=x.style,pe=x.dragOver,H=x.dragOverGapTop,de=x.dragOverGapBottom,X=x.isLeaf,O=x.isStart,j=x.isEnd,J=x.expanded,ae=x.selected,ge=x.checked,Te=x.halfChecked,ke=x.loading,Re=x.domRef,We=x.active,Ze=x.data,Ue=x.onMouseMove,Ve=x.selectable,V=(0,F.Z)(x,A),Oe=this.props.context,h=Oe.prefixCls,_=Oe.filterTreeNode,m=Oe.keyEntities,o=Oe.dropContainerKey,b=Oe.dropTargetKey,Z=Oe.draggingNodeKey,E=this.isDisabled(),l=(0,M.Z)(V,{aria:!0,data:!0}),g=(0,Ce.Z)(m,$)||{},r=g.level,c=j[j.length-1],v=this.isDraggable(),B=!E&&v,Q=Z===$,he=Ve!==void 0?{"aria-selected":!!Ve}:void 0;return d.createElement("div",(0,y.Z)({ref:Re,className:fe()(p,"".concat(h,"-treenode"),(xe={},(0,C.Z)(xe,"".concat(h,"-treenode-disabled"),E),(0,C.Z)(xe,"".concat(h,"-treenode-switcher-").concat(J?"open":"close"),!X),(0,C.Z)(xe,"".concat(h,"-treenode-checkbox-checked"),ge),(0,C.Z)(xe,"".concat(h,"-treenode-checkbox-indeterminate"),Te),(0,C.Z)(xe,"".concat(h,"-treenode-selected"),ae),(0,C.Z)(xe,"".concat(h,"-treenode-loading"),ke),(0,C.Z)(xe,"".concat(h,"-treenode-active"),We),(0,C.Z)(xe,"".concat(h,"-treenode-leaf-last"),c),(0,C.Z)(xe,"".concat(h,"-treenode-draggable"),v),(0,C.Z)(xe,"dragging",Q),(0,C.Z)(xe,"drop-target",b===$),(0,C.Z)(xe,"drop-container",o===$),(0,C.Z)(xe,"drag-over",!E&&pe),(0,C.Z)(xe,"drag-over-gap-top",!E&&H),(0,C.Z)(xe,"drag-over-gap-bottom",!E&&de),(0,C.Z)(xe,"filter-node",_&&_((0,K.F)(this.props))),xe)),style:k,draggable:B,"aria-grabbed":Q,onDragStart:B?this.onDragStart:void 0,onDragEnter:v?this.onDragEnter:void 0,onDragOver:v?this.onDragOver:void 0,onDragLeave:v?this.onDragLeave:void 0,onDrop:v?this.onDrop:void 0,onDragEnd:v?this.onDragEnd:void 0,onMouseMove:Ue},he,l),d.createElement(U,{prefixCls:h,level:r,isStart:O,isEnd:j}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),me}(d.Component),P=function(G){return d.createElement(ne.k.Consumer,null,function(me){return d.createElement(T,(0,y.Z)({},G,{context:me}))})};P.displayName="TreeNode",P.isTreeNode=1;var w=P},39378:function(ft,Ne,a){"use strict";a.d(Ne,{k:function(){return C}});var y=a(59301),C=y.createContext(null)},60091:function(ft,Ne,a){"use strict";a.d(Ne,{O:function(){return w.Z},Z:function(){return Oe}});var y=a(54476),C=a(20068),F=a(76190),Y=a(33885),D=a(94480),f=a(67732),ue=a(83652),le=a(31226),oe=a(42403),Se=a(158),fe=a(92310),M=a.n(fe),d=a(10228),ne=a(26112),q=a(48736),U=a(59301),Ce=a(39378);function K(h){var _=h.dropPosition,m=h.dropLevelOffset,o=h.indent,b={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(_){case-1:b.top=0,b.left=-m*o;break;case 1:b.bottom=0,b.left=-m*o;break;case 0:b.bottom=0,b.left=o;break}return U.createElement("div",{style:b})}function A(h){if(h==null)throw new TypeError("Cannot destructure "+h)}var N=a(42978),u=a(75931),S=a(34280),T=a(48911),P=a(77900),w=a(39417);function re(h,_){var m=U.useState(!1),o=(0,N.Z)(m,2),b=o[0],Z=o[1];U.useLayoutEffect(function(){if(b)return h(),function(){_()}},[b]),U.useLayoutEffect(function(){return Z(!0),function(){Z(!1)}},[])}var G=a(71430),me=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],L=function(_,m){var o=_.className,b=_.style,Z=_.motion,E=_.motionNodes,l=_.motionType,g=_.onMotionStart,r=_.onMotionEnd,c=_.active,v=_.treeNodeRequiredProps,B=(0,u.Z)(_,me),Q=U.useState(!0),he=(0,N.Z)(Q,2),ce=he[0],se=he[1],z=U.useContext(Ce.k),Le=z.prefixCls,Be=E&&l!=="hide";(0,S.Z)(function(){E&&Be!==ce&&se(Be)},[E]);var W=function(){E&&g()},Ke=U.useRef(!1),Me=function(){E&&!Ke.current&&(Ke.current=!0,r())};re(W,Me);var rt=function(it){Be===it&&Me()};return E?U.createElement(P.default,(0,y.Z)({ref:m,visible:ce},Z,{motionAppear:l==="show",onVisibleChanged:rt}),function(ze,it){var pt=ze.className,lt=ze.style;return U.createElement("div",{ref:it,className:M()("".concat(Le,"-treenode-motion"),pt),style:lt},E.map(function(nt){var mt=(0,y.Z)({},(A(nt.data),nt.data)),Ge=nt.title,Fe=nt.key,Je=nt.isStart,yt=nt.isEnd;delete mt.children;var ht=(0,G.H8)(Fe,v);return U.createElement(w.Z,(0,y.Z)({},mt,ht,{title:Ge,active:c,data:nt.data,key:Fe,isStart:Je,isEnd:yt}))}))}):U.createElement(w.Z,(0,y.Z)({domRef:m,className:o,style:b},B,{active:c}))};L.displayName="MotionTreeNode";var xe=U.forwardRef(L),x=xe;function $(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],m=h.length,o=_.length;if(Math.abs(m-o)!==1)return{add:!1,key:null};function b(Z,E){var l=new Map;Z.forEach(function(r){l.set(r,!0)});var g=E.filter(function(r){return!l.has(r)});return g.length===1?g[0]:null}return m<o?{add:!0,key:b(h,_)}:{add:!1,key:b(_,h)}}function p(h,_,m){var o=h.findIndex(function(l){return l.key===m}),b=h[o+1],Z=_.findIndex(function(l){return l.key===m});if(b){var E=_.findIndex(function(l){return l.key===b.key});return _.slice(Z+1,E)}return _.slice(Z+1)}var k=["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"],pe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},H=function(){},de="RC_TREE_MOTION_".concat(Math.random()),X={key:de},O={key:de,level:0,index:0,pos:"0",node:X,nodes:[X]},j={parent:null,children:[],pos:O.pos,data:X,title:null,key:de,isStart:[],isEnd:[]};function J(h,_,m,o){return _===!1||!m?h:h.slice(0,Math.ceil(m/o)+1)}function ae(h){var _=h.key,m=h.pos;return(0,G.km)(_,m)}function ge(h){for(var _=String(h.data.key),m=h;m.parent;)m=m.parent,_="".concat(m.data.key," > ").concat(_);return _}var Te=U.forwardRef(function(h,_){var m=h.prefixCls,o=h.data,b=h.selectable,Z=h.checkable,E=h.expandedKeys,l=h.selectedKeys,g=h.checkedKeys,r=h.loadedKeys,c=h.loadingKeys,v=h.halfCheckedKeys,B=h.keyEntities,Q=h.disabled,he=h.dragging,ce=h.dragOverNodeKey,se=h.dropPosition,z=h.motion,Le=h.height,Be=h.itemHeight,W=h.virtual,Ke=h.focusable,Me=h.activeItem,rt=h.focused,ze=h.tabIndex,it=h.onKeyDown,pt=h.onFocus,lt=h.onBlur,nt=h.onActiveChange,mt=h.onListChangeStart,Ge=h.onListChangeEnd,Fe=(0,u.Z)(h,k),Je=U.useRef(null),yt=U.useRef(null);U.useImperativeHandle(_,function(){return{scrollTo:function(Pe){Je.current.scrollTo(Pe)},getIndentWidth:function(){return yt.current.offsetWidth}}});var ht=U.useState(E),xt=(0,N.Z)(ht,2),wt=xt[0],_t=xt[1],bt=U.useState(o),ot=(0,N.Z)(bt,2),at=ot[0],Lt=ot[1],ee=U.useState(o),e=(0,N.Z)(ee,2),t=e[0],n=e[1],i=U.useState([]),s=(0,N.Z)(i,2),R=s[0],I=s[1],we=U.useState(null),ye=(0,N.Z)(we,2),Ae=ye[0],Xe=ye[1],Qe=U.useRef(o);Qe.current=o;function $e(){var Ie=Qe.current;Lt(Ie),n(Ie),I([]),Xe(null),Ge()}(0,S.Z)(function(){_t(E);var Ie=$(wt,E);if(Ie.key!==null)if(Ie.add){var Pe=at.findIndex(function(Ye){var St=Ye.key;return St===Ie.key}),tt=J(p(at,o,Ie.key),W,Le,Be),qe=at.slice();qe.splice(Pe+1,0,j),n(qe),I(tt),Xe("show")}else{var vt=o.findIndex(function(Ye){var St=Ye.key;return St===Ie.key}),Tt=J(p(o,at,Ie.key),W,Le,Be),Rt=o.slice();Rt.splice(vt+1,0,j),n(Rt),I(Tt),Xe("hide")}else at!==o&&(Lt(o),n(o))},[E,o]),U.useEffect(function(){he||$e()},[he]);var ct=z?t:o,je={expandedKeys:E,selectedKeys:l,loadedKeys:r,loadingKeys:c,checkedKeys:g,halfCheckedKeys:v,dragOverNodeKey:ce,dropPosition:se,keyEntities:B};return U.createElement(U.Fragment,null,rt&&Me&&U.createElement("span",{style:pe,"aria-live":"assertive"},ge(Me)),U.createElement("div",null,U.createElement("input",{style:pe,disabled:Ke===!1||Q,tabIndex:Ke!==!1?ze:null,onKeyDown:it,onFocus:pt,onBlur:lt,value:"",onChange:H,"aria-label":"for screen reader"})),U.createElement("div",{className:"".concat(m,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},U.createElement("div",{className:"".concat(m,"-indent")},U.createElement("div",{ref:yt,className:"".concat(m,"-indent-unit")}))),U.createElement(T.Z,(0,y.Z)({},Fe,{data:ct,itemKey:ae,height:Le,fullHeight:!1,virtual:W,itemHeight:Be,prefixCls:"".concat(m,"-list"),ref:Je,onVisibleChange:function(Pe,tt){var qe=new Set(Pe),vt=tt.filter(function(Tt){return!qe.has(Tt)});vt.some(function(Tt){return ae(Tt)===de})&&$e()}}),function(Ie){var Pe=Ie.pos,tt=(0,y.Z)({},(A(Ie.data),Ie.data)),qe=Ie.title,vt=Ie.key,Tt=Ie.isStart,Rt=Ie.isEnd,Ye=(0,G.km)(vt,Pe);delete tt.key,delete tt.children;var St=(0,G.H8)(Ye,je);return U.createElement(x,(0,y.Z)({},tt,St,{title:qe,active:!!Me&&vt===Me.key,pos:Pe,data:Ie.data,isStart:Tt,isEnd:Rt,motion:z,motionNodes:vt===de?R:null,motionType:Ae,onMotionStart:mt,onMotionEnd:$e,treeNodeRequiredProps:je,onMouseMove:function(){nt(null)}}))}))});Te.displayName="NodeList";var ke=Te,Re=a(35654),We=a(90782),Ze=a(67841),Ue=10,Ve=function(h){(0,oe.Z)(m,h);var _=(0,Se.Z)(m);function m(){var o;(0,f.Z)(this,m);for(var b=arguments.length,Z=new Array(b),E=0;E<b;E++)Z[E]=arguments[E];return o=_.call.apply(_,[this].concat(Z)),o.destroyed=!1,o.delayedDragEnterLogic=void 0,o.loadingRetryTimes={},o.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,G.w$)()},o.dragStartMousePosition=null,o.dragNode=void 0,o.currentMouseOverDroppableNodeKey=null,o.listRef=U.createRef(),o.onNodeDragStart=function(l,g){var r=o.state,c=r.expandedKeys,v=r.keyEntities,B=o.props.onDragStart,Q=g.props.eventKey;o.dragNode=g,o.dragStartMousePosition={x:l.clientX,y:l.clientY};var he=(0,Re._5)(c,Q);o.setState({draggingNodeKey:Q,dragChildrenKeys:(0,Re.wA)(Q,v),indent:o.listRef.current.getIndentWidth()}),o.setExpandedKeys(he),window.addEventListener("dragend",o.onWindowDragEnd),B==null||B({event:l,node:(0,G.F)(g.props)})},o.onNodeDragEnter=function(l,g){var r=o.state,c=r.expandedKeys,v=r.keyEntities,B=r.dragChildrenKeys,Q=r.flattenNodes,he=r.indent,ce=o.props,se=ce.onDragEnter,z=ce.onExpand,Le=ce.allowDrop,Be=ce.direction,W=g.props,Ke=W.pos,Me=W.eventKey,rt=(0,le.Z)(o),ze=rt.dragNode;if(o.currentMouseOverDroppableNodeKey!==Me&&(o.currentMouseOverDroppableNodeKey=Me),!ze){o.resetDragState();return}var it=(0,Re.OM)(l,ze,g,he,o.dragStartMousePosition,Le,Q,v,c,Be),pt=it.dropPosition,lt=it.dropLevelOffset,nt=it.dropTargetKey,mt=it.dropContainerKey,Ge=it.dropTargetPos,Fe=it.dropAllowed,Je=it.dragOverNodeKey;if(B.indexOf(nt)!==-1||!Fe){o.resetDragState();return}if(o.delayedDragEnterLogic||(o.delayedDragEnterLogic={}),Object.keys(o.delayedDragEnterLogic).forEach(function(yt){clearTimeout(o.delayedDragEnterLogic[yt])}),ze.props.eventKey!==g.props.eventKey&&(l.persist(),o.delayedDragEnterLogic[Ke]=window.setTimeout(function(){if(o.state.draggingNodeKey!==null){var yt=(0,D.Z)(c),ht=(0,Ze.Z)(v,g.props.eventKey);ht&&(ht.children||[]).length&&(yt=(0,Re.L0)(c,g.props.eventKey)),"expandedKeys"in o.props||o.setExpandedKeys(yt),z==null||z(yt,{node:(0,G.F)(g.props),expanded:!0,nativeEvent:l.nativeEvent})}},800)),ze.props.eventKey===nt&&lt===0){o.resetDragState();return}o.setState({dragOverNodeKey:Je,dropPosition:pt,dropLevelOffset:lt,dropTargetKey:nt,dropContainerKey:mt,dropTargetPos:Ge,dropAllowed:Fe}),se==null||se({event:l,node:(0,G.F)(g.props),expandedKeys:c})},o.onNodeDragOver=function(l,g){var r=o.state,c=r.dragChildrenKeys,v=r.flattenNodes,B=r.keyEntities,Q=r.expandedKeys,he=r.indent,ce=o.props,se=ce.onDragOver,z=ce.allowDrop,Le=ce.direction,Be=(0,le.Z)(o),W=Be.dragNode;if(W){var Ke=(0,Re.OM)(l,W,g,he,o.dragStartMousePosition,z,v,B,Q,Le),Me=Ke.dropPosition,rt=Ke.dropLevelOffset,ze=Ke.dropTargetKey,it=Ke.dropContainerKey,pt=Ke.dropAllowed,lt=Ke.dropTargetPos,nt=Ke.dragOverNodeKey;c.indexOf(ze)!==-1||!pt||(W.props.eventKey===ze&&rt===0?o.state.dropPosition===null&&o.state.dropLevelOffset===null&&o.state.dropTargetKey===null&&o.state.dropContainerKey===null&&o.state.dropTargetPos===null&&o.state.dropAllowed===!1&&o.state.dragOverNodeKey===null||o.resetDragState():Me===o.state.dropPosition&&rt===o.state.dropLevelOffset&&ze===o.state.dropTargetKey&&it===o.state.dropContainerKey&&lt===o.state.dropTargetPos&&pt===o.state.dropAllowed&&nt===o.state.dragOverNodeKey||o.setState({dropPosition:Me,dropLevelOffset:rt,dropTargetKey:ze,dropContainerKey:it,dropTargetPos:lt,dropAllowed:pt,dragOverNodeKey:nt}),se==null||se({event:l,node:(0,G.F)(g.props)}))}},o.onNodeDragLeave=function(l,g){o.currentMouseOverDroppableNodeKey===g.props.eventKey&&!l.currentTarget.contains(l.relatedTarget)&&(o.resetDragState(),o.currentMouseOverDroppableNodeKey=null);var r=o.props.onDragLeave;r==null||r({event:l,node:(0,G.F)(g.props)})},o.onWindowDragEnd=function(l){o.onNodeDragEnd(l,null,!0),window.removeEventListener("dragend",o.onWindowDragEnd)},o.onNodeDragEnd=function(l,g){var r=o.props.onDragEnd;o.setState({dragOverNodeKey:null}),o.cleanDragState(),r==null||r({event:l,node:(0,G.F)(g.props)}),o.dragNode=null,window.removeEventListener("dragend",o.onWindowDragEnd)},o.onNodeDrop=function(l,g){var r,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,v=o.state,B=v.dragChildrenKeys,Q=v.dropPosition,he=v.dropTargetKey,ce=v.dropTargetPos,se=v.dropAllowed;if(se){var z=o.props.onDrop;if(o.setState({dragOverNodeKey:null}),o.cleanDragState(),he!==null){var Le=(0,Y.Z)((0,Y.Z)({},(0,G.H8)(he,o.getTreeNodeRequiredProps())),{},{active:((r=o.getActiveItem())===null||r===void 0?void 0:r.key)===he,data:(0,Ze.Z)(o.state.keyEntities,he).node}),Be=B.indexOf(he)!==-1;(0,q.ZP)(!Be,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var W=(0,Re.yx)(ce),Ke={event:l,node:(0,G.F)(Le),dragNode:o.dragNode?(0,G.F)(o.dragNode.props):null,dragNodesKeys:[o.dragNode.props.eventKey].concat(B),dropToGap:Q!==0,dropPosition:Q+Number(W[W.length-1])};c||z==null||z(Ke),o.dragNode=null}}},o.cleanDragState=function(){var l=o.state.draggingNodeKey;l!==null&&o.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),o.dragStartMousePosition=null,o.currentMouseOverDroppableNodeKey=null},o.triggerExpandActionExpand=function(l,g){var r=o.state,c=r.expandedKeys,v=r.flattenNodes,B=g.expanded,Q=g.key,he=g.isLeaf;if(!(he||l.shiftKey||l.metaKey||l.ctrlKey)){var ce=v.filter(function(z){return z.key===Q})[0],se=(0,G.F)((0,Y.Z)((0,Y.Z)({},(0,G.H8)(Q,o.getTreeNodeRequiredProps())),{},{data:ce.data}));o.setExpandedKeys(B?(0,Re._5)(c,Q):(0,Re.L0)(c,Q)),o.onNodeExpand(l,se)}},o.onNodeClick=function(l,g){var r=o.props,c=r.onClick,v=r.expandAction;v==="click"&&o.triggerExpandActionExpand(l,g),c==null||c(l,g)},o.onNodeDoubleClick=function(l,g){var r=o.props,c=r.onDoubleClick,v=r.expandAction;v==="doubleClick"&&o.triggerExpandActionExpand(l,g),c==null||c(l,g)},o.onNodeSelect=function(l,g){var r=o.state.selectedKeys,c=o.state,v=c.keyEntities,B=c.fieldNames,Q=o.props,he=Q.onSelect,ce=Q.multiple,se=g.selected,z=g[B.key],Le=!se;Le?ce?r=(0,Re.L0)(r,z):r=[z]:r=(0,Re._5)(r,z);var Be=r.map(function(W){var Ke=(0,Ze.Z)(v,W);return Ke?Ke.node:null}).filter(function(W){return W});o.setUncontrolledState({selectedKeys:r}),he==null||he(r,{event:"select",selected:Le,node:g,selectedNodes:Be,nativeEvent:l.nativeEvent})},o.onNodeCheck=function(l,g,r){var c=o.state,v=c.keyEntities,B=c.checkedKeys,Q=c.halfCheckedKeys,he=o.props,ce=he.checkStrictly,se=he.onCheck,z=g.key,Le,Be={event:"check",node:g,checked:r,nativeEvent:l.nativeEvent};if(ce){var W=r?(0,Re.L0)(B,z):(0,Re._5)(B,z),Ke=(0,Re._5)(Q,z);Le={checked:W,halfChecked:Ke},Be.checkedNodes=W.map(function(lt){return(0,Ze.Z)(v,lt)}).filter(function(lt){return lt}).map(function(lt){return lt.node}),o.setUncontrolledState({checkedKeys:W})}else{var Me=(0,We.S)([].concat((0,D.Z)(B),[z]),!0,v),rt=Me.checkedKeys,ze=Me.halfCheckedKeys;if(!r){var it=new Set(rt);it.delete(z);var pt=(0,We.S)(Array.from(it),{checked:!1,halfCheckedKeys:ze},v);rt=pt.checkedKeys,ze=pt.halfCheckedKeys}Le=rt,Be.checkedNodes=[],Be.checkedNodesPositions=[],Be.halfCheckedKeys=ze,rt.forEach(function(lt){var nt=(0,Ze.Z)(v,lt);if(nt){var mt=nt.node,Ge=nt.pos;Be.checkedNodes.push(mt),Be.checkedNodesPositions.push({node:mt,pos:Ge})}}),o.setUncontrolledState({checkedKeys:rt},!1,{halfCheckedKeys:ze})}se==null||se(Le,Be)},o.onNodeLoad=function(l){var g=l.key,r=new Promise(function(c,v){o.setState(function(B){var Q=B.loadedKeys,he=Q===void 0?[]:Q,ce=B.loadingKeys,se=ce===void 0?[]:ce,z=o.props,Le=z.loadData,Be=z.onLoad;if(!Le||he.indexOf(g)!==-1||se.indexOf(g)!==-1)return null;var W=Le(l);return W.then(function(){var Ke=o.state.loadedKeys,Me=(0,Re.L0)(Ke,g);Be==null||Be(Me,{event:"load",node:l}),o.setUncontrolledState({loadedKeys:Me}),o.setState(function(rt){return{loadingKeys:(0,Re._5)(rt.loadingKeys,g)}}),c()}).catch(function(Ke){if(o.setState(function(rt){return{loadingKeys:(0,Re._5)(rt.loadingKeys,g)}}),o.loadingRetryTimes[g]=(o.loadingRetryTimes[g]||0)+1,o.loadingRetryTimes[g]>=Ue){var Me=o.state.loadedKeys;(0,q.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),o.setUncontrolledState({loadedKeys:(0,Re.L0)(Me,g)}),c()}v(Ke)}),{loadingKeys:(0,Re.L0)(se,g)}})});return r.catch(function(){}),r},o.onNodeMouseEnter=function(l,g){var r=o.props.onMouseEnter;r==null||r({event:l,node:g})},o.onNodeMouseLeave=function(l,g){var r=o.props.onMouseLeave;r==null||r({event:l,node:g})},o.onNodeContextMenu=function(l,g){var r=o.props.onRightClick;r&&(l.preventDefault(),r({event:l,node:g}))},o.onFocus=function(){var l=o.props.onFocus;o.setState({focused:!0});for(var g=arguments.length,r=new Array(g),c=0;c<g;c++)r[c]=arguments[c];l==null||l.apply(void 0,r)},o.onBlur=function(){var l=o.props.onBlur;o.setState({focused:!1}),o.onActiveChange(null);for(var g=arguments.length,r=new Array(g),c=0;c<g;c++)r[c]=arguments[c];l==null||l.apply(void 0,r)},o.getTreeNodeRequiredProps=function(){var l=o.state,g=l.expandedKeys,r=l.selectedKeys,c=l.loadedKeys,v=l.loadingKeys,B=l.checkedKeys,Q=l.halfCheckedKeys,he=l.dragOverNodeKey,ce=l.dropPosition,se=l.keyEntities;return{expandedKeys:g||[],selectedKeys:r||[],loadedKeys:c||[],loadingKeys:v||[],checkedKeys:B||[],halfCheckedKeys:Q||[],dragOverNodeKey:he,dropPosition:ce,keyEntities:se}},o.setExpandedKeys=function(l){var g=o.state,r=g.treeData,c=g.fieldNames,v=(0,G.oH)(r,l,c);o.setUncontrolledState({expandedKeys:l,flattenNodes:v},!0)},o.onNodeExpand=function(l,g){var r=o.state.expandedKeys,c=o.state,v=c.listChanging,B=c.fieldNames,Q=o.props,he=Q.onExpand,ce=Q.loadData,se=g.expanded,z=g[B.key];if(!v){var Le=r.indexOf(z),Be=!se;if((0,q.ZP)(se&&Le!==-1||!se&&Le===-1,"Expand state not sync with index check"),Be?r=(0,Re.L0)(r,z):r=(0,Re._5)(r,z),o.setExpandedKeys(r),he==null||he(r,{node:g,expanded:Be,nativeEvent:l.nativeEvent}),Be&&ce){var W=o.onNodeLoad(g);W&&W.then(function(){var Ke=(0,G.oH)(o.state.treeData,r,B);o.setUncontrolledState({flattenNodes:Ke})}).catch(function(){var Ke=o.state.expandedKeys,Me=(0,Re._5)(Ke,z);o.setExpandedKeys(Me)})}}},o.onListChangeStart=function(){o.setUncontrolledState({listChanging:!0})},o.onListChangeEnd=function(){setTimeout(function(){o.setUncontrolledState({listChanging:!1})})},o.onActiveChange=function(l){var g=o.state.activeKey,r=o.props.onActiveChange;g!==l&&(o.setState({activeKey:l}),l!==null&&o.scrollTo({key:l}),r==null||r(l))},o.getActiveItem=function(){var l=o.state,g=l.activeKey,r=l.flattenNodes;return g===null?null:r.find(function(c){var v=c.key;return v===g})||null},o.offsetActiveKey=function(l){var g=o.state,r=g.flattenNodes,c=g.activeKey,v=r.findIndex(function(he){var ce=he.key;return ce===c});v===-1&&l<0&&(v=r.length),v=(v+l+r.length)%r.length;var B=r[v];if(B){var Q=B.key;o.onActiveChange(Q)}else o.onActiveChange(null)},o.onKeyDown=function(l){var g=o.state,r=g.activeKey,c=g.expandedKeys,v=g.checkedKeys,B=g.fieldNames,Q=o.props,he=Q.onKeyDown,ce=Q.checkable,se=Q.selectable;switch(l.which){case d.Z.UP:{o.offsetActiveKey(-1),l.preventDefault();break}case d.Z.DOWN:{o.offsetActiveKey(1),l.preventDefault();break}}var z=o.getActiveItem();if(z&&z.data){var Le=o.getTreeNodeRequiredProps(),Be=z.data.isLeaf===!1||!!(z.data[B.children]||[]).length,W=(0,G.F)((0,Y.Z)((0,Y.Z)({},(0,G.H8)(r,Le)),{},{data:z.data,active:!0}));switch(l.which){case d.Z.LEFT:{Be&&c.includes(r)?o.onNodeExpand({},W):z.parent&&o.onActiveChange(z.parent.key),l.preventDefault();break}case d.Z.RIGHT:{Be&&!c.includes(r)?o.onNodeExpand({},W):z.children&&z.children.length&&o.onActiveChange(z.children[0].key),l.preventDefault();break}case d.Z.ENTER:case d.Z.SPACE:{ce&&!W.disabled&&W.checkable!==!1&&!W.disableCheckbox?o.onNodeCheck({},W,!v.includes(r)):!ce&&se&&!W.disabled&&W.selectable!==!1&&o.onNodeSelect({},W);break}}}he==null||he(l)},o.setUncontrolledState=function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!o.destroyed){var c=!1,v=!0,B={};Object.keys(l).forEach(function(Q){if(Q in o.props){v=!1;return}c=!0,B[Q]=l[Q]}),c&&(!g||v)&&o.setState((0,Y.Z)((0,Y.Z)({},B),r))}},o.scrollTo=function(l){o.listRef.current.scrollTo(l)},o}return(0,ue.Z)(m,[{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,Z=this.state,E=Z.focused,l=Z.flattenNodes,g=Z.keyEntities,r=Z.draggingNodeKey,c=Z.activeKey,v=Z.dropLevelOffset,B=Z.dropContainerKey,Q=Z.dropTargetKey,he=Z.dropPosition,ce=Z.dragOverNodeKey,se=Z.indent,z=this.props,Le=z.prefixCls,Be=z.className,W=z.style,Ke=z.showLine,Me=z.focusable,rt=z.tabIndex,ze=rt===void 0?0:rt,it=z.selectable,pt=z.showIcon,lt=z.icon,nt=z.switcherIcon,mt=z.draggable,Ge=z.checkable,Fe=z.checkStrictly,Je=z.disabled,yt=z.motion,ht=z.loadData,xt=z.filterTreeNode,wt=z.height,_t=z.itemHeight,bt=z.virtual,ot=z.titleRender,at=z.dropIndicatorRender,Lt=z.onContextMenu,ee=z.onScroll,e=z.direction,t=z.rootClassName,n=z.rootStyle,i=(0,ne.Z)(this.props,{aria:!0,data:!0}),s;return mt&&((0,F.Z)(mt)==="object"?s=mt:typeof mt=="function"?s={nodeDraggable:mt}:s={}),U.createElement(Ce.k.Provider,{value:{prefixCls:Le,selectable:it,showIcon:pt,icon:lt,switcherIcon:nt,draggable:s,draggingNodeKey:r,checkable:Ge,checkStrictly:Fe,disabled:Je,keyEntities:g,dropLevelOffset:v,dropContainerKey:B,dropTargetKey:Q,dropPosition:he,dragOverNodeKey:ce,indent:se,direction:e,dropIndicatorRender:at,loadData:ht,filterTreeNode:xt,titleRender:ot,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:M()(Le,Be,t,(b={},(0,C.Z)(b,"".concat(Le,"-show-line"),Ke),(0,C.Z)(b,"".concat(Le,"-focused"),E),(0,C.Z)(b,"".concat(Le,"-active-focused"),c!==null),b)),style:n},U.createElement(ke,(0,y.Z)({ref:this.listRef,prefixCls:Le,style:W,data:l,disabled:Je,selectable:it,checkable:!!Ge,motion:yt,dragging:r!==null,height:wt,itemHeight:_t,virtual:bt,focusable:Me,focused:E,tabIndex:ze,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Lt,onScroll:ee},this.getTreeNodeRequiredProps(),i))))}}],[{key:"getDerivedStateFromProps",value:function(b,Z){var E=Z.prevProps,l={prevProps:b};function g(Me){return!E&&Me in b||E&&E[Me]!==b[Me]}var r,c=Z.fieldNames;if(g("fieldNames")&&(c=(0,G.w$)(b.fieldNames),l.fieldNames=c),g("treeData")?r=b.treeData:g("children")&&((0,q.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),r=(0,G.zn)(b.children)),r){l.treeData=r;var v=(0,G.I8)(r,{fieldNames:c});l.keyEntities=(0,Y.Z)((0,C.Z)({},de,O),v.keyEntities)}var B=l.keyEntities||Z.keyEntities;if(g("expandedKeys")||E&&g("autoExpandParent"))l.expandedKeys=b.autoExpandParent||!E&&b.defaultExpandParent?(0,Re.r7)(b.expandedKeys,B):b.expandedKeys;else if(!E&&b.defaultExpandAll){var Q=(0,Y.Z)({},B);delete Q[de],l.expandedKeys=Object.keys(Q).map(function(Me){return Q[Me].key})}else!E&&b.defaultExpandedKeys&&(l.expandedKeys=b.autoExpandParent||b.defaultExpandParent?(0,Re.r7)(b.defaultExpandedKeys,B):b.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,r||l.expandedKeys){var he=(0,G.oH)(r||Z.treeData,l.expandedKeys||Z.expandedKeys,c);l.flattenNodes=he}if(b.selectable&&(g("selectedKeys")?l.selectedKeys=(0,Re.BT)(b.selectedKeys,b):!E&&b.defaultSelectedKeys&&(l.selectedKeys=(0,Re.BT)(b.defaultSelectedKeys,b))),b.checkable){var ce;if(g("checkedKeys")?ce=(0,Re.E6)(b.checkedKeys)||{}:!E&&b.defaultCheckedKeys?ce=(0,Re.E6)(b.defaultCheckedKeys)||{}:r&&(ce=(0,Re.E6)(b.checkedKeys)||{checkedKeys:Z.checkedKeys,halfCheckedKeys:Z.halfCheckedKeys}),ce){var se=ce,z=se.checkedKeys,Le=z===void 0?[]:z,Be=se.halfCheckedKeys,W=Be===void 0?[]:Be;if(!b.checkStrictly){var Ke=(0,We.S)(Le,!0,B);Le=Ke.checkedKeys,W=Ke.halfCheckedKeys}l.checkedKeys=Le,l.halfCheckedKeys=W}}return g("loadedKeys")&&(l.loadedKeys=b.loadedKeys),l}}]),m}(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 V=Ve,Oe=V},35654:function(ft,Ne,a){"use strict";a.d(Ne,{BT:function(){return U},E6:function(){return A},L0:function(){return Se},OM:function(){return q},_5:function(){return oe},r7:function(){return N},wA:function(){return M},yx:function(){return fe}});var y=a(94480),C=a(76190),F=a(48736),Y=a(59301),D=a(39417),f=a(67841),ue=a(71430),le=null;function oe(u,S){if(!u)return[];var T=u.slice(),P=T.indexOf(S);return P>=0&&T.splice(P,1),T}function Se(u,S){var T=(u||[]).slice();return T.indexOf(S)===-1&&T.push(S),T}function fe(u){return u.split("-")}function M(u,S){var T=[],P=(0,f.Z)(S,u);function w(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];re.forEach(function(G){var me=G.key,L=G.children;T.push(me),w(L)})}return w(P.children),T}function d(u){if(u.parent){var S=fe(u.pos);return Number(S[S.length-1])===u.parent.children.length-1}return!1}function ne(u){var S=fe(u.pos);return Number(S[S.length-1])===0}function q(u,S,T,P,w,re,G,me,L,xe){var x,$=u.clientX,p=u.clientY,k=u.target.getBoundingClientRect(),pe=k.top,H=k.height,de=(xe==="rtl"?-1:1)*(((w==null?void 0:w.x)||0)-$),X=(de-12)/P,O=(0,f.Z)(me,T.props.eventKey);if(p<pe+H/2){var j=G.findIndex(function(Oe){return Oe.key===O.key}),J=j<=0?0:j-1,ae=G[J].key;O=(0,f.Z)(me,ae)}var ge=O.key,Te=O,ke=O.key,Re=0,We=0;if(!L.includes(ge))for(var Ze=0;Ze<X&&d(O);Ze+=1)O=O.parent,We+=1;var Ue=S.props.data,Ve=O.node,V=!0;return ne(O)&&O.level===0&&p<pe+H/2&&re({dragNode:Ue,dropNode:Ve,dropPosition:-1})&&O.key===T.props.eventKey?Re=-1:(Te.children||[]).length&&L.includes(ke)?re({dragNode:Ue,dropNode:Ve,dropPosition:0})?Re=0:V=!1:We===0?X>-1.5?re({dragNode:Ue,dropNode:Ve,dropPosition:1})?Re=1:V=!1:re({dragNode:Ue,dropNode:Ve,dropPosition:0})?Re=0:re({dragNode:Ue,dropNode:Ve,dropPosition:1})?Re=1:V=!1:re({dragNode:Ue,dropNode:Ve,dropPosition:1})?Re=1:V=!1,{dropPosition:Re,dropLevelOffset:We,dropTargetKey:O.key,dropTargetPos:O.pos,dragOverNodeKey:ke,dropContainerKey:Re===0?null:((x=O.parent)===null||x===void 0?void 0:x.key)||null,dropAllowed:V}}function U(u,S){if(u){var T=S.multiple;return T?u.slice():u.length?[u[0]]:u}}var Ce=function(S){return S};function K(u,S){if(!u)return[];var T=S||{},P=T.processProps,w=P===void 0?Ce:P,re=Array.isArray(u)?u:[u];return re.map(function(G){var me=G.children,L=_objectWithoutProperties(G,le),xe=K(me,S);return React.createElement(TreeNode,_extends({key:L.key},w(L)),xe)})}function A(u){if(!u)return null;var S;if(Array.isArray(u))S={checkedKeys:u,halfCheckedKeys:void 0};else if((0,C.Z)(u)==="object")S={checkedKeys:u.checked||void 0,halfCheckedKeys:u.halfChecked||void 0};else return(0,F.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return S}function N(u,S){var T=new Set;function P(w){if(!T.has(w)){var re=(0,f.Z)(S,w);if(re){T.add(w);var G=re.parent,me=re.node;me.disabled||G&&P(G.key)}}}return(u||[]).forEach(function(w){P(w)}),(0,y.Z)(T)}},90782:function(ft,Ne,a){"use strict";a.d(Ne,{S:function(){return ue}});var y=a(48736),C=a(67841);function F(le,oe){var Se=new Set;return le.forEach(function(fe){oe.has(fe)||Se.add(fe)}),Se}function Y(le){var oe=le||{},Se=oe.disabled,fe=oe.disableCheckbox,M=oe.checkable;return!!(Se||fe)||M===!1}function D(le,oe,Se,fe){for(var M=new Set(le),d=new Set,ne=0;ne<=Se;ne+=1){var q=oe.get(ne)||new Set;q.forEach(function(A){var N=A.key,u=A.node,S=A.children,T=S===void 0?[]:S;M.has(N)&&!fe(u)&&T.filter(function(P){return!fe(P.node)}).forEach(function(P){M.add(P.key)})})}for(var U=new Set,Ce=Se;Ce>=0;Ce-=1){var K=oe.get(Ce)||new Set;K.forEach(function(A){var N=A.parent,u=A.node;if(!(fe(u)||!A.parent||U.has(A.parent.key))){if(fe(A.parent.node)){U.add(N.key);return}var S=!0,T=!1;(N.children||[]).filter(function(P){return!fe(P.node)}).forEach(function(P){var w=P.key,re=M.has(w);S&&!re&&(S=!1),!T&&(re||d.has(w))&&(T=!0)}),S&&M.add(N.key),T&&d.add(N.key),U.add(N.key)}})}return{checkedKeys:Array.from(M),halfCheckedKeys:Array.from(F(d,M))}}function f(le,oe,Se,fe,M){for(var d=new Set(le),ne=new Set(oe),q=0;q<=fe;q+=1){var U=Se.get(q)||new Set;U.forEach(function(N){var u=N.key,S=N.node,T=N.children,P=T===void 0?[]:T;!d.has(u)&&!ne.has(u)&&!M(S)&&P.filter(function(w){return!M(w.node)}).forEach(function(w){d.delete(w.key)})})}ne=new Set;for(var Ce=new Set,K=fe;K>=0;K-=1){var A=Se.get(K)||new Set;A.forEach(function(N){var u=N.parent,S=N.node;if(!(M(S)||!N.parent||Ce.has(N.parent.key))){if(M(N.parent.node)){Ce.add(u.key);return}var T=!0,P=!1;(u.children||[]).filter(function(w){return!M(w.node)}).forEach(function(w){var re=w.key,G=d.has(re);T&&!G&&(T=!1),!P&&(G||ne.has(re))&&(P=!0)}),T||d.delete(u.key),P&&ne.add(u.key),Ce.add(u.key)}})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(F(ne,d))}}function ue(le,oe,Se,fe){var M=[],d;fe?d=fe:d=Y;var ne=new Set(le.filter(function(K){var A=!!(0,C.Z)(Se,K);return A||M.push(K),A})),q=new Map,U=0;Object.keys(Se).forEach(function(K){var A=Se[K],N=A.level,u=q.get(N);u||(u=new Set,q.set(N,u)),u.add(A),U=Math.max(U,N)}),(0,y.ZP)(!M.length,"Tree missing follow keys: ".concat(M.slice(0,100).map(function(K){return"'".concat(K,"'")}).join(", ")));var Ce;return oe===!0?Ce=D(ne,q,U,d):Ce=f(ne,oe.halfCheckedKeys,q,U,d),Ce}},67841:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return y}});function y(C,F){return C[F]}},71430:function(ft,Ne,a){"use strict";a.d(Ne,{F:function(){return N},H8:function(){return A},I8:function(){return K},km:function(){return M},oH:function(){return U},w$:function(){return d},zn:function(){return q}});var y=a(76190),C=a(94480),F=a(33885),Y=a(75931),D=a(11592),f=a(2738),ue=a(48736),le=a(67841),oe=["children"];function Se(u,S){return"".concat(u,"-").concat(S)}function fe(u){return u&&u.type&&u.type.isTreeNode}function M(u,S){return u!=null?u:S}function d(u){var S=u||{},T=S.title,P=S._title,w=S.key,re=S.children,G=T||"title";return{title:G,_title:P||[G],key:w||"key",children:re||"children"}}function ne(u,S){var T=new Map;function P(w){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(w||[]).forEach(function(G){var me=G[S.key],L=G[S.children];warning(me!=null,"Tree node must have a certain key: [".concat(re).concat(me,"]"));var xe=String(me);warning(!T.has(xe)||me===null||me===void 0,"Same 'key' exist in the Tree: ".concat(xe)),T.set(xe,!0),P(L,"".concat(re).concat(xe," > "))})}P(u)}function q(u){function S(T){var P=(0,D.Z)(T);return P.map(function(w){if(!fe(w))return(0,ue.ZP)(!w,"Tree/TreeNode can only accept TreeNode as children."),null;var re=w.key,G=w.props,me=G.children,L=(0,Y.Z)(G,oe),xe=(0,F.Z)({key:re},L),x=S(me);return x.length&&(xe.children=x),xe}).filter(function(w){return w})}return S(u)}function U(u,S,T){var P=d(T),w=P._title,re=P.key,G=P.children,me=new Set(S===!0?[]:S),L=[];function xe(x){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return x.map(function(p,k){for(var pe=Se($?$.pos:"0",k),H=M(p[re],pe),de,X=0;X<w.length;X+=1){var O=w[X];if(p[O]!==void 0){de=p[O];break}}var j=(0,F.Z)((0,F.Z)({},(0,f.Z)(p,[].concat((0,C.Z)(w),[re,G]))),{},{title:de,key:H,parent:$,pos:pe,children:null,data:p,isStart:[].concat((0,C.Z)($?$.isStart:[]),[k===0]),isEnd:[].concat((0,C.Z)($?$.isEnd:[]),[k===x.length-1])});return L.push(j),S===!0||me.has(H)?j.children=xe(p[G]||[],j):j.children=[],j})}return xe(u),L}function Ce(u,S,T){var P={};(0,y.Z)(T)==="object"?P=T:P={externalGetKey:T},P=P||{};var w=P,re=w.childrenPropName,G=w.externalGetKey,me=w.fieldNames,L=d(me),xe=L.key,x=L.children,$=re||x,p;G?typeof G=="string"?p=function(H){return H[G]}:typeof G=="function"&&(p=function(H){return G(H)}):p=function(H,de){return M(H[xe],de)};function k(pe,H,de,X){var O=pe?pe[$]:u,j=pe?Se(de.pos,H):"0",J=pe?[].concat((0,C.Z)(X),[pe]):[];if(pe){var ae=p(pe,j),ge={node:pe,index:H,pos:j,key:ae,parentPos:de.node?de.pos:null,level:de.level+1,nodes:J};S(ge)}O&&O.forEach(function(Te,ke){k(Te,ke,{node:pe,pos:j,level:de?de.level+1:-1},J)})}k(null)}function K(u){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=S.initWrapper,P=S.processEntity,w=S.onProcessFinished,re=S.externalGetKey,G=S.childrenPropName,me=S.fieldNames,L=arguments.length>2?arguments[2]:void 0,xe=re||L,x={},$={},p={posEntities:x,keyEntities:$};return T&&(p=T(p)||p),Ce(u,function(k){var pe=k.node,H=k.index,de=k.pos,X=k.key,O=k.parentPos,j=k.level,J=k.nodes,ae={node:pe,nodes:J,index:H,key:X,pos:de,level:j},ge=M(X,de);x[de]=ae,$[ge]=ae,ae.parent=x[O],ae.parent&&(ae.parent.children=ae.parent.children||[],ae.parent.children.push(ae)),P&&P(ae,p)},{externalGetKey:xe,childrenPropName:G,fieldNames:me}),w&&w(p),p}function A(u,S){var T=S.expandedKeys,P=S.selectedKeys,w=S.loadedKeys,re=S.loadingKeys,G=S.checkedKeys,me=S.halfCheckedKeys,L=S.dragOverNodeKey,xe=S.dropPosition,x=S.keyEntities,$=(0,le.Z)(x,u),p={eventKey:u,expanded:T.indexOf(u)!==-1,selected:P.indexOf(u)!==-1,loaded:w.indexOf(u)!==-1,loading:re.indexOf(u)!==-1,checked:G.indexOf(u)!==-1,halfChecked:me.indexOf(u)!==-1,pos:String($?$.pos:""),dragOver:L===u&&xe===0,dragOverGapTop:L===u&&xe===-1,dragOverGapBottom:L===u&&xe===1};return p}function N(u){var S=u.data,T=u.expanded,P=u.selected,w=u.checked,re=u.loaded,G=u.loading,me=u.halfChecked,L=u.dragOver,xe=u.dragOverGapTop,x=u.dragOverGapBottom,$=u.pos,p=u.active,k=u.eventKey,pe=(0,F.Z)((0,F.Z)({},S),{},{expanded:T,selected:P,checked:w,loaded:re,loading:G,halfChecked:me,dragOver:L,dragOverGapTop:xe,dragOverGapBottom:x,pos:$,active:p,key:k});return"props"in pe||Object.defineProperty(pe,"props",{get:function(){return(0,ue.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),u}}),pe}},48911:function(ft,Ne,a){"use strict";a.d(Ne,{Z:function(){return Ve}});var y=a(54476),C=a(76190),F=a(33885),Y=a(20068),D=a(42978),f=a(75931),ue=a(92310),le=a.n(ue),oe=a(29301),Se=a(70425),fe=a(34280),M=a(59301),d=a(4676),ne=M.forwardRef(function(V,Oe){var h=V.height,_=V.offsetY,m=V.offsetX,o=V.children,b=V.prefixCls,Z=V.onInnerResize,E=V.innerProps,l=V.rtl,g=V.extra,r={},c={display:"flex",flexDirection:"column"};return _!==void 0&&(r={height:h,position:"relative",overflow:"hidden"},c=(0,F.Z)((0,F.Z)({},c),{},(0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)({transform:"translateY(".concat(_,"px)")},l?"marginRight":"marginLeft",-m),"position","absolute"),"left",0),"right",0),"top",0))),M.createElement("div",{style:r},M.createElement(oe.Z,{onResize:function(B){var Q=B.offsetHeight;Q&&Z&&Z()}},M.createElement("div",(0,y.Z)({style:c,className:le()((0,Y.Z)({},"".concat(b,"-holder-inner"),b)),ref:Oe},E),o,g)))});ne.displayName="Filler";var q=ne;function U(V){var Oe=V.children,h=V.setRef,_=M.useCallback(function(m){h(m)},[]);return M.cloneElement(Oe,{ref:_})}function Ce(V,Oe,h,_,m,o,b,Z){var E=Z.getKey;return V.slice(Oe,h+1).map(function(l,g){var r=Oe+g,c=b(l,r,{style:{width:_},offsetX:m}),v=E(l);return M.createElement(U,{key:v,setRef:function(Q){return o(l,Q)}},c)})}function K(V,Oe,h,_){var m=h-V,o=Oe-h,b=Math.min(m,o)*2;if(_<=b){var Z=Math.floor(_/2);return _%2?h+Z+1:h-Z}return m>o?h-(_-o):h+(_-m)}function A(V,Oe,h){var _=V.length,m=Oe.length,o,b;if(_===0&&m===0)return null;_<m?(o=V,b=Oe):(o=Oe,b=V);var Z={__EMPTY_ITEM__:!0};function E(B){return B!==void 0?h(B):Z}for(var l=null,g=Math.abs(_-m)!==1,r=0;r<b.length;r+=1){var c=E(o[r]),v=E(b[r]);if(c!==v){l=r,g=g||c!==E(b[r+1]);break}}return l===null?null:{index:l,multiple:g}}function N(V,Oe,h){var _=M.useState(V),m=(0,D.Z)(_,2),o=m[0],b=m[1],Z=M.useState(null),E=(0,D.Z)(Z,2),l=E[0],g=E[1];return M.useEffect(function(){var r=A(o||[],V||[],Oe);(r==null?void 0:r.index)!==void 0&&(h==null||h(r.index),g(V[r.index])),b(V)},[V]),[l]}var u=a(16089),S=(typeof navigator=="undefined"?"undefined":(0,C.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),T=S,P=function(V,Oe,h,_){var m=(0,M.useRef)(!1),o=(0,M.useRef)(null);function b(){clearTimeout(o.current),m.current=!0,o.current=setTimeout(function(){m.current=!1},50)}var Z=(0,M.useRef)({top:V,bottom:Oe,left:h,right:_});return Z.current.top=V,Z.current.bottom=Oe,Z.current.left=h,Z.current.right=_,function(E,l){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=E?l<0&&Z.current.left||l>0&&Z.current.right:l<0&&Z.current.top||l>0&&Z.current.bottom;return g&&r?(clearTimeout(o.current),m.current=!1):(!r||m.current)&&b(),!m.current&&r}};function w(V,Oe,h,_,m,o,b){var Z=(0,M.useRef)(0),E=(0,M.useRef)(null),l=(0,M.useRef)(null),g=(0,M.useRef)(!1),r=P(Oe,h,_,m);function c(se,z){if(u.Z.cancel(E.current),!r(!1,z)){var Le=se;if(!Le._virtualHandled)Le._virtualHandled=!0;else return;Z.current+=z,l.current=z,T||Le.preventDefault(),E.current=(0,u.Z)(function(){var Be=g.current?10:1;b(Z.current*Be,!1),Z.current=0})}}function v(se,z){b(z,!0),T||se.preventDefault()}var B=(0,M.useRef)(null),Q=(0,M.useRef)(null);function he(se){if(V){u.Z.cancel(Q.current),Q.current=(0,u.Z)(function(){B.current=null},2);var z=se.deltaX,Le=se.deltaY,Be=se.shiftKey,W=z,Ke=Le;(B.current==="sx"||!B.current&&Be&&Le&&!z)&&(W=Le,Ke=0,B.current="sx");var Me=Math.abs(W),rt=Math.abs(Ke);B.current===null&&(B.current=o&&Me>rt?"x":"y"),B.current==="y"?c(se,Ke):v(se,W)}}function ce(se){V&&(g.current=se.detail===l.current)}return[he,ce]}function re(V,Oe,h,_){var m=M.useMemo(function(){return[new Map,[]]},[V,h.id,_]),o=(0,D.Z)(m,2),b=o[0],Z=o[1],E=function(g){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g,c=b.get(g),v=b.get(r);if(c===void 0||v===void 0)for(var B=V.length,Q=Z.length;Q<B;Q+=1){var he,ce=V[Q],se=Oe(ce);b.set(se,Q);var z=(he=h.get(se))!==null&&he!==void 0?he:_;if(Z[Q]=(Z[Q-1]||0)+z,se===g&&(c=Q),se===r&&(v=Q),c!==void 0&&v!==void 0)break}return{top:Z[c-1]||0,bottom:Z[v]}};return E}var G=a(67732),me=a(83652),L=function(){function V(){(0,G.Z)(this,V),(0,Y.Z)(this,"maps",void 0),(0,Y.Z)(this,"id",0),(0,Y.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,me.Z)(V,[{key:"set",value:function(h,_){this.diffRecords.set(h,this.maps[h]),this.maps[h]=_,this.id+=1}},{key:"get",value:function(h){return this.maps[h]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),V}(),xe=L;function x(V){var Oe=parseFloat(V);return isNaN(Oe)?0:Oe}function $(V,Oe,h){var _=M.useState(0),m=(0,D.Z)(_,2),o=m[0],b=m[1],Z=(0,M.useRef)(new Map),E=(0,M.useRef)(new xe),l=(0,M.useRef)(0);function g(){l.current+=1}function r(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;g();var B=function(){var ce=!1;Z.current.forEach(function(se,z){if(se&&se.offsetParent){var Le=se.offsetHeight,Be=getComputedStyle(se),W=Be.marginTop,Ke=Be.marginBottom,Me=x(W),rt=x(Ke),ze=Le+Me+rt;E.current.get(z)!==ze&&(E.current.set(z,ze),ce=!0)}}),ce&&b(function(se){return se+1})};if(v)B();else{l.current+=1;var Q=l.current;Promise.resolve().then(function(){Q===l.current&&B()})}}function c(v,B){var Q=V(v),he=Z.current.get(Q);B?(Z.current.set(Q,B),r()):Z.current.delete(Q),!he!=!B&&(B?Oe==null||Oe(v):h==null||h(v))}return(0,M.useEffect)(function(){return g},[]),[c,r,E.current,o]}var p=14/15;function k(V,Oe,h){var _=(0,M.useRef)(!1),m=(0,M.useRef)(0),o=(0,M.useRef)(0),b=(0,M.useRef)(null),Z=(0,M.useRef)(null),E,l=function(v){if(_.current){var B=Math.ceil(v.touches[0].pageX),Q=Math.ceil(v.touches[0].pageY),he=m.current-B,ce=o.current-Q,se=Math.abs(he)>Math.abs(ce);se?m.current=B:o.current=Q;var z=h(se,se?he:ce,!1,v);z&&v.preventDefault(),clearInterval(Z.current),z&&(Z.current=setInterval(function(){se?he*=p:ce*=p;var Le=Math.floor(se?he:ce);(!h(se,Le,!0)||Math.abs(Le)<=.1)&&clearInterval(Z.current)},16))}},g=function(){_.current=!1,E()},r=function(v){E(),v.touches.length===1&&!_.current&&(_.current=!0,m.current=Math.ceil(v.touches[0].pageX),o.current=Math.ceil(v.touches[0].pageY),b.current=v.target,b.current.addEventListener("touchmove",l,{passive:!1}),b.current.addEventListener("touchend",g,{passive:!0}))};E=function(){b.current&&(b.current.removeEventListener("touchmove",l),b.current.removeEventListener("touchend",g))},(0,fe.Z)(function(){return V&&Oe.current.addEventListener("touchstart",r,{passive:!0}),function(){var c;(c=Oe.current)===null||c===void 0||c.removeEventListener("touchstart",r),E(),clearInterval(Z.current)}},[V])}function pe(V){return Math.floor(Math.pow(V,.5))}function H(V,Oe){var h="touches"in V?V.touches[0]:V;return h[Oe?"pageX":"pageY"]-window[Oe?"scrollX":"scrollY"]}function de(V,Oe,h){M.useEffect(function(){var _=Oe.current;if(V&&_){var m=!1,o,b,Z=function(){u.Z.cancel(o)},E=function c(){Z(),o=(0,u.Z)(function(){h(b),c()})},l=function(){m=!1,Z()},g=function(v){if(!(v.target.draggable||v.button!==0)){var B=v;B._virtualHandled||(B._virtualHandled=!0,m=!0)}},r=function(v){if(m){var B=H(v,!1),Q=_.getBoundingClientRect(),he=Q.top,ce=Q.bottom;if(B<=he){var se=he-B;b=-pe(se),E()}else if(B>=ce){var z=B-ce;b=pe(z),E()}else Z()}};return _.addEventListener("mousedown",g),_.ownerDocument.addEventListener("mouseup",l),_.ownerDocument.addEventListener("mousemove",r),_.ownerDocument.addEventListener("dragend",l),function(){_.removeEventListener("mousedown",g),_.ownerDocument.removeEventListener("mouseup",l),_.ownerDocument.removeEventListener("mousemove",r),_.ownerDocument.removeEventListener("dragend",l),Z()}}},[V])}var X=10;function O(V,Oe,h,_,m,o,b,Z){var E=M.useRef(),l=M.useState(null),g=(0,D.Z)(l,2),r=g[0],c=g[1];return(0,fe.Z)(function(){if(r&&r.times<X){if(!V.current){c(function(yt){return(0,F.Z)({},yt)});return}o();var v=r.targetAlign,B=r.originAlign,Q=r.index,he=r.offset,ce=V.current.clientHeight,se=!1,z=v,Le=null;if(ce){for(var Be=v||B,W=0,Ke=0,Me=0,rt=Math.min(Oe.length-1,Q),ze=0;ze<=rt;ze+=1){var it=m(Oe[ze]);Ke=W;var pt=h.get(it);Me=Ke+(pt===void 0?_:pt),W=Me}for(var lt=Be==="top"?he:ce-he,nt=rt;nt>=0;nt-=1){var mt=m(Oe[nt]),Ge=h.get(mt);if(Ge===void 0){se=!0;break}if(lt-=Ge,lt<=0)break}switch(Be){case"top":Le=Ke-he;break;case"bottom":Le=Me-ce+he;break;default:{var Fe=V.current.scrollTop,Je=Fe+ce;Ke<Fe?z="top":Me>Je&&(z="bottom")}}Le!==null&&b(Le),Le!==r.lastTop&&(se=!0)}se&&c((0,F.Z)((0,F.Z)({},r),{},{times:r.times+1,targetAlign:z,lastTop:Le}))}},[r,V.current]),function(v){if(v==null){Z();return}if(u.Z.cancel(E.current),typeof v=="number")b(v);else if(v&&(0,C.Z)(v)==="object"){var B,Q=v.align;"index"in v?B=v.index:B=Oe.findIndex(function(se){return m(se)===v.key});var he=v.offset,ce=he===void 0?0:he;c({times:0,index:B,offset:ce,originAlign:Q})}}}var j=M.forwardRef(function(V,Oe){var h=V.prefixCls,_=V.rtl,m=V.scrollOffset,o=V.scrollRange,b=V.onStartMove,Z=V.onStopMove,E=V.onScroll,l=V.horizontal,g=V.spinSize,r=V.containerSize,c=V.style,v=V.thumbStyle,B=V.showScrollBar,Q=M.useState(!1),he=(0,D.Z)(Q,2),ce=he[0],se=he[1],z=M.useState(null),Le=(0,D.Z)(z,2),Be=Le[0],W=Le[1],Ke=M.useState(null),Me=(0,D.Z)(Ke,2),rt=Me[0],ze=Me[1],it=!_,pt=M.useRef(),lt=M.useRef(),nt=M.useState(B),mt=(0,D.Z)(nt,2),Ge=mt[0],Fe=mt[1],Je=M.useRef(),yt=function(){B===!0||B===!1||(clearTimeout(Je.current),Fe(!0),Je.current=setTimeout(function(){Fe(!1)},3e3))},ht=o-r||0,xt=r-g||0,wt=M.useMemo(function(){if(m===0||ht===0)return 0;var n=m/ht;return n*xt},[m,ht,xt]),_t=function(i){i.stopPropagation(),i.preventDefault()},bt=M.useRef({top:wt,dragging:ce,pageY:Be,startTop:rt});bt.current={top:wt,dragging:ce,pageY:Be,startTop:rt};var ot=function(i){se(!0),W(H(i,l)),ze(bt.current.top),b(),i.stopPropagation(),i.preventDefault()};M.useEffect(function(){var n=function(I){I.preventDefault()},i=pt.current,s=lt.current;return i.addEventListener("touchstart",n,{passive:!1}),s.addEventListener("touchstart",ot,{passive:!1}),function(){i.removeEventListener("touchstart",n),s.removeEventListener("touchstart",ot)}},[]);var at=M.useRef();at.current=ht;var Lt=M.useRef();Lt.current=xt,M.useEffect(function(){if(ce){var n,i=function(I){var we=bt.current,ye=we.dragging,Ae=we.pageY,Xe=we.startTop;u.Z.cancel(n);var Qe=pt.current.getBoundingClientRect(),$e=r/(l?Qe.width:Qe.height);if(ye){var ct=(H(I,l)-Ae)*$e,je=Xe;!it&&l?je-=ct:je+=ct;var Ie=at.current,Pe=Lt.current,tt=Pe?je/Pe:0,qe=Math.ceil(tt*Ie);qe=Math.max(qe,0),qe=Math.min(qe,Ie),n=(0,u.Z)(function(){E(qe,l)})}},s=function(){se(!1),Z()};return window.addEventListener("mousemove",i,{passive:!0}),window.addEventListener("touchmove",i,{passive:!0}),window.addEventListener("mouseup",s,{passive:!0}),window.addEventListener("touchend",s,{passive:!0}),function(){window.removeEventListener("mousemove",i),window.removeEventListener("touchmove",i),window.removeEventListener("mouseup",s),window.removeEventListener("touchend",s),u.Z.cancel(n)}}},[ce]),M.useEffect(function(){return yt(),function(){clearTimeout(Je.current)}},[m]),M.useImperativeHandle(Oe,function(){return{delayHidden:yt}});var ee="".concat(h,"-scrollbar"),e={position:"absolute",visibility:Ge?null:"hidden"},t={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return l?(Object.assign(e,{height:8,left:0,right:0,bottom:0}),Object.assign(t,(0,Y.Z)({height:"100%",width:g},it?"left":"right",wt))):(Object.assign(e,(0,Y.Z)({width:8,top:0,bottom:0},it?"right":"left",0)),Object.assign(t,{width:"100%",height:g,top:wt})),M.createElement("div",{ref:pt,className:le()(ee,(0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat(ee,"-horizontal"),l),"".concat(ee,"-vertical"),!l),"".concat(ee,"-visible"),Ge)),style:(0,F.Z)((0,F.Z)({},e),c),onMouseDown:_t,onMouseMove:yt},M.createElement("div",{ref:lt,className:le()("".concat(ee,"-thumb"),(0,Y.Z)({},"".concat(ee,"-thumb-moving"),ce)),style:(0,F.Z)((0,F.Z)({},t),v),onMouseDown:ot}))}),J=j,ae=20;function ge(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,h=V/Oe*V;return isNaN(h)&&(h=0),h=Math.max(h,ae),Math.floor(h)}var Te=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],ke=[],Re={overflowY:"auto",overflowAnchor:"none"};function We(V,Oe){var h=V.prefixCls,_=h===void 0?"rc-virtual-list":h,m=V.className,o=V.height,b=V.itemHeight,Z=V.fullHeight,E=Z===void 0?!0:Z,l=V.style,g=V.data,r=V.children,c=V.itemKey,v=V.virtual,B=V.direction,Q=V.scrollWidth,he=V.component,ce=he===void 0?"div":he,se=V.onScroll,z=V.onVirtualScroll,Le=V.onVisibleChange,Be=V.innerProps,W=V.extraRender,Ke=V.styles,Me=V.showScrollBar,rt=Me===void 0?"optional":Me,ze=(0,f.Z)(V,Te),it=M.useCallback(function(st){return typeof c=="function"?c(st):st==null?void 0:st[c]},[c]),pt=$(it,null,null),lt=(0,D.Z)(pt,4),nt=lt[0],mt=lt[1],Ge=lt[2],Fe=lt[3],Je=!!(v!==!1&&o&&b),yt=M.useMemo(function(){return Object.values(Ge.maps).reduce(function(st,et){return st+et},0)},[Ge.id,Ge.maps]),ht=Je&&g&&(Math.max(b*g.length,yt)>o||!!Q),xt=B==="rtl",wt=le()(_,(0,Y.Z)({},"".concat(_,"-rtl"),xt),m),_t=g||ke,bt=(0,M.useRef)(),ot=(0,M.useRef)(),at=(0,M.useRef)(),Lt=(0,M.useState)(0),ee=(0,D.Z)(Lt,2),e=ee[0],t=ee[1],n=(0,M.useState)(0),i=(0,D.Z)(n,2),s=i[0],R=i[1],I=(0,M.useState)(!1),we=(0,D.Z)(I,2),ye=we[0],Ae=we[1],Xe=function(){Ae(!0)},Qe=function(){Ae(!1)},$e={getKey:it};function ct(st){t(function(et){var Ct;typeof st=="function"?Ct=st(et):Ct=st;var $t=gt(Ct);return bt.current.scrollTop=$t,$t})}var je=(0,M.useRef)({start:0,end:_t.length}),Ie=(0,M.useRef)(),Pe=N(_t,it),tt=(0,D.Z)(Pe,1),qe=tt[0];Ie.current=qe;var vt=M.useMemo(function(){if(!Je)return{scrollHeight:void 0,start:0,end:_t.length-1,offset:void 0};if(!ht){var st;return{scrollHeight:((st=ot.current)===null||st===void 0?void 0:st.offsetHeight)||0,start:0,end:_t.length-1,offset:void 0}}for(var et=0,Ct,$t,Zt,dn=_t.length,qt=0;qt<dn;qt+=1){var Qt=_t[qt],on=it(Qt),gn=Ge.get(on),hn=et+(gn===void 0?b:gn);hn>=e&&Ct===void 0&&(Ct=qt,$t=et),hn>e+o&&Zt===void 0&&(Zt=qt),et=hn}return Ct===void 0&&(Ct=0,$t=0,Zt=Math.ceil(o/b)),Zt===void 0&&(Zt=_t.length-1),Zt=Math.min(Zt+1,_t.length-1),{scrollHeight:et,start:Ct,end:Zt,offset:$t}},[ht,Je,e,_t,Fe,o]),Tt=vt.scrollHeight,Rt=vt.start,Ye=vt.end,St=vt.offset;je.current.start=Rt,je.current.end=Ye,M.useLayoutEffect(function(){var st=Ge.getRecord();if(st.size===1){var et=Array.from(st.keys())[0],Ct=st.get(et),$t=_t[Rt];if($t&&Ct===void 0){var Zt=it($t);if(Zt===et){var dn=Ge.get(et),qt=dn-b;ct(function(Qt){return Qt+qt})}}}Ge.resetRecord()},[Tt]);var ie=M.useState({width:0,height:o}),te=(0,D.Z)(ie,2),ve=te[0],De=te[1],_e=function(et){De({width:et.offsetWidth,height:et.offsetHeight})},be=(0,M.useRef)(),Ee=(0,M.useRef)(),He=M.useMemo(function(){return ge(ve.width,Q)},[ve.width,Q]),ut=M.useMemo(function(){return ge(ve.height,Tt)},[ve.height,Tt]),dt=Tt-o,Et=(0,M.useRef)(dt);Et.current=dt;function gt(st){var et=st;return Number.isNaN(Et.current)||(et=Math.min(et,Et.current)),et=Math.max(et,0),et}var It=e<=0,Nt=e>=dt,Dt=s<=0,zt=s>=Q,Ht=P(It,Nt,Dt,zt),Ut=function(){return{x:xt?-s:s,y:e}},Mt=(0,M.useRef)(Ut()),Ot=(0,Se.useEvent)(function(st){if(z){var et=(0,F.Z)((0,F.Z)({},Ut()),st);(Mt.current.x!==et.x||Mt.current.y!==et.y)&&(z(et),Mt.current=et)}});function At(st,et){var Ct=st;et?((0,d.flushSync)(function(){R(Ct)}),Ot()):ct(Ct)}function Ft(st){var et=st.currentTarget.scrollTop;et!==e&&ct(et),se==null||se(st),Ot()}var Pt=function(et){var Ct=et,$t=Q?Q-ve.width:0;return Ct=Math.max(Ct,0),Ct=Math.min(Ct,$t),Ct},Gt=(0,Se.useEvent)(function(st,et){et?((0,d.flushSync)(function(){R(function(Ct){var $t=Ct+(xt?-st:st);return Pt($t)})}),Ot()):ct(function(Ct){var $t=Ct+st;return $t})}),Bt=w(Je,It,Nt,Dt,zt,!!Q,Gt),tn=(0,D.Z)(Bt,2),Kt=tn[0],Jt=tn[1];k(Je,bt,function(st,et,Ct,$t){var Zt=$t;return Ht(st,et,Ct)?!1:!Zt||!Zt._virtualHandled?(Zt&&(Zt._virtualHandled=!0),Kt({preventDefault:function(){},deltaX:st?et:0,deltaY:st?0:et}),!0):!1}),de(ht,bt,function(st){ct(function(et){return et+st})}),(0,fe.Z)(function(){function st(Ct){var $t=It&&Ct.detail<0,Zt=Nt&&Ct.detail>0;Je&&!$t&&!Zt&&Ct.preventDefault()}var et=bt.current;return et.addEventListener("wheel",Kt,{passive:!1}),et.addEventListener("DOMMouseScroll",Jt,{passive:!0}),et.addEventListener("MozMousePixelScroll",st,{passive:!1}),function(){et.removeEventListener("wheel",Kt),et.removeEventListener("DOMMouseScroll",Jt),et.removeEventListener("MozMousePixelScroll",st)}},[Je,It,Nt]),(0,fe.Z)(function(){if(Q){var st=Pt(s);R(st),Ot({x:st})}},[ve.width,Q]);var Xt=function(){var et,Ct;(et=be.current)===null||et===void 0||et.delayHidden(),(Ct=Ee.current)===null||Ct===void 0||Ct.delayHidden()},Yt=O(bt,_t,Ge,b,it,function(){return mt(!0)},ct,Xt);M.useImperativeHandle(Oe,function(){return{nativeElement:at.current,getScrollInfo:Ut,scrollTo:function(et){function Ct($t){return $t&&(0,C.Z)($t)==="object"&&("left"in $t||"top"in $t)}Ct(et)?(et.left!==void 0&&R(Pt(et.left)),Yt(et.top)):Yt(et)}}}),(0,fe.Z)(function(){if(Le){var st=_t.slice(Rt,Ye+1);Le(st,_t)}},[Rt,Ye,_t]);var nn=re(_t,it,Ge,b),rn=W==null?void 0:W({start:Rt,end:Ye,virtual:ht,offsetX:s,offsetY:St,rtl:xt,getSize:nn}),fn=Ce(_t,Rt,Ye,Q,s,nt,r,$e),Wt=null;o&&(Wt=(0,F.Z)((0,Y.Z)({},E?"height":"maxHeight",o),Re),Je&&(Wt.overflowY="hidden",Q&&(Wt.overflowX="hidden"),ye&&(Wt.pointerEvents="none")));var an={};return xt&&(an.dir="rtl"),M.createElement("div",(0,y.Z)({ref:at,style:(0,F.Z)((0,F.Z)({},l),{},{position:"relative"}),className:wt},an,ze),M.createElement(oe.Z,{onResize:_e},M.createElement(ce,{className:"".concat(_,"-holder"),style:Wt,ref:bt,onScroll:Ft,onMouseEnter:Xt},M.createElement(q,{prefixCls:_,height:Tt,offsetX:s,offsetY:St,scrollWidth:Q,onInnerResize:mt,ref:ot,innerProps:Be,rtl:xt,extra:rn},fn))),ht&&Tt>o&&M.createElement(J,{ref:be,prefixCls:_,scrollOffset:e,scrollRange:Tt,rtl:xt,onScroll:At,onStartMove:Xe,onStopMove:Qe,spinSize:ut,containerSize:ve.height,style:Ke==null?void 0:Ke.verticalScrollBar,thumbStyle:Ke==null?void 0:Ke.verticalScrollBarThumb,showScrollBar:rt}),ht&&Q>ve.width&&M.createElement(J,{ref:Ee,prefixCls:_,scrollOffset:s,scrollRange:Q,rtl:xt,onScroll:At,onStartMove:Xe,onStopMove:Qe,spinSize:He,containerSize:ve.width,horizontal:!0,style:Ke==null?void 0:Ke.horizontalScrollBar,thumbStyle:Ke==null?void 0:Ke.horizontalScrollBarThumb,showScrollBar:rt}))}var Ze=M.forwardRef(We);Ze.displayName="List";var Ue=Ze,Ve=Ue},82059:function(ft){var Ne=arguments[3],a=arguments[4],y=arguments[5],C=JSON.stringify;ft.exports=function(F,Y){for(var D,f=Object.keys(y),ue=0,le=f.length;ue<le;ue++){var oe=f[ue],Se=y[oe].exports;if(Se===F||Se&&Se.default===F){D=oe;break}}if(!D){D=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var fe={},ue=0,le=f.length;ue<le;ue++){var oe=f[ue];fe[oe]=oe}a[D]=["function(require,module,exports){"+F+"(self); }",fe]}var M=Math.floor(Math.pow(16,8)*Math.random()).toString(16),d={};d[D]=D,a[M]=["function(require,module,exports){var f = require("+C(D)+");(f.default ? f.default : f)(self);}",d];var ne={};q(M);function q(u){ne[u]=!0;for(var S in a[u][1]){var T=a[u][1][S];ne[T]||q(T)}}var U="("+Ne+")({"+Object.keys(ne).map(function(u){return C(u)+":["+a[u][0]+","+C(a[u][1])+"]"}).join(",")+"},{},["+C(M)+"])",Ce=window.URL||window.webkitURL||window.mozURL||window.msURL,K=new Blob([U],{type:"text/javascript"});if(Y&&Y.bare)return K;var A=Ce.createObjectURL(K),N=new Worker(A);return N.objectURL=A,N}}}]);