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__virtualSpaces__Lists__Vi...

424 lines
398 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[276,6,8,10],{"+Ee2":
/*!*******************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Video/index.tsx + 1 modules ***!
\*******************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/UploadOutlined.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/defineProperty.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/extends.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/virtualSpaces/Lists/Video/components/index.less?modules (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/virtualSpaces/Lists/Video/index.less?modules (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/.umi-production/core/umiExports.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/NoData/index.tsx */
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Video/Modal/index.tsx */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/authority.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/fetch.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/assets/images/video/default.png (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/card/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/card/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/pagination/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/pagination/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tree-select/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tree-select/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/upload/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/upload/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/js-base64/base64.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router/esm/react-router.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.r(t);var r=n("0Owb"),i=(n("DjyN"),n("NUBc")),a=(n("14J3"),n("BMrR")),o=(n("jCWc"),n("kPKH")),s=(n("IzEo"),n("bx4M")),c=(n("2qtc"),n("kLXV")),l=(n("5Dmo"),n("3S7+")),u=(n("+L6B"),n("2/Rp")),d=(n("5NDa"),n("5rEg")),h=n("9og8"),f=n("tJVT"),p=n("PpiC"),v=n("WmNS"),m=n.n(v),g=n("q1tI"),b=n.n(g),y=n("Ty5D"),_=n("9kvl"),k=n("BdwD"),E=n("zpA9"),O=n.n(E),S=n("xKgJ"),w=n("DqmF"),C=n.n(w),x=n("ErOA"),A=n("m3rI"),j=(n("DZo9"),n("8z0m")),R=n("jrin"),T=n("k1fw"),D=(n("y8nQ"),n("Vl3Y")),L=(n("nRaC"),n("5RzL")),M=n("z7Xi"),I=n("jN4g"),N=n("f+r0"),P=n.n(N),B=(L.a.TreeNode,Object(_.a)((function(e){return{classroomList:e.classroomList,user:e.user,loading:e.loading,virtualSpaces:e.virtualSpaces}}))((function(e){var t,n,r,i=e.classroomList,a=(e.loading,e.user,e.dispatch),o=e.virtualSpaces,s=Object(y.i)();s.id=s.coursesId;i.detailAttendancesDetail,i.actionTabs;var l=D.a.useForm(),p=Object(f.a)(l,1)[0],v=Object(g.useState)(""),_=Object(f.a)(v,2),k=_[0],E=_[1],O=Object(g.useState)(!1),S=Object(f.a)(O,2),w=S[0],C=S[1];Object(g.useEffect)((function(){var e,t,n,r,a,o,s,c;"增加外链"===(null===(e=i.actionTabs)||void 0===e?void 0:e.key)&&null!==(t=i.actionTabs)&&void 0!==t&&t.data&&(p.setFieldsValue({name:null===(n=i.actionTabs)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.title,link:null===(a=i.actionTabs)||void 0===a||null===(o=a.data)||void 0===o?void 0:o.link}),E(null===(s=i.actionTabs)||void 0===s||null===(c=s.data)||void 0===c?void 0:c.attachment_id))}),[null===(t=i.actionTabs)||void 0===t?void 0:t.key]);var L=b.a.createElement(u.a,{loading:w,icon:b.a.createElement(M.a,null)},"选择上传文件");return b.a.createElement(c.a,{centered:!0,title:null!==(n=i.actionTabs)&&void 0!==n&&n.data?"编辑外链视频":"增加外链",visible:"增加外链"===i.actionTabs.key,okText:"确定",cancelText:"取消",width:640,okButtonProps:{loading:w},bodyStyle:{minHeight:200},onOk:Object(h.a)(m.a.mark((function e(){var t,n;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=T.a,e.t1={},e.next=4,p.validateFields();case 4:return e.t2=e.sent,t=(0,e.t0)(e.t1,e.t2),C(!0),e.next=9,Object(x.a)("/api/virtual_classrooms/".concat(i.actionTabs.params.virtual_classroom_id,"/videos"),{method:"POST",body:Object(T.a)(Object(T.a)({},t),{},{attachment_id:k,module_id:o.actionTabs.module_id})});case 9:n=e.sent,C(!1),0===n.status&&(a({type:"classroomList/setActionTabs",payload:{key:"刷新数据"}}),p.resetFields(),E(""));case 12:case"end":return e.stop()}}),e)}))),onCancel:function(){p.resetFields(),a({type:"classroomList/setActionTabs",payload:{}}),E(""),C(!1)}},b.a.createElement(D.a,{form:p,initialValues:(r={},Object(R.a)(r,"name",""),Object(R.a)(r,"external_link",""),r)},b.a.createElement(D.a.Item,{label:"视频标题",name:"name",rules:[{required:!0,message:"请输入!"}]},b.a.createElement(d.a,{maxLength:30})),b.a.createElement(D.a.Item,{label:"视频链接",name:"external_link",rules:[{required:!0,message:"请输入!"}]},b.a.createElement(d.a,null)),b.a.createElement(D.a.Item,{label:"上传封面图:"},k?b.a.createElement("div",{className:P.a.img},b.a.createElement("img",{src:A.a.API_SERVER+"/api/attachments/"+k,alt:"avatar",style:{width:288}}),b.a.createElement("div",null,b.a.createElement(I.a,{onClick:function(){return E("")},style:{fontSize:"16px",color:"red"}}))):b.a.createElement("div",null,b.a.createElement(j.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(A.a.API_SERVER,"/api/attachments.json"),onChange:function(e){var t,n;"uploading"!==e.file.status?"done"===e.file.status&&(C(!1),E(null==e||null===(t=e.file)||void 0===t||null===(n=t.response)||void 0===n?void 0:n.id)):C(!0)},accept:"image/*"},L),b.a.createElement("div",{className:"mt20 c-light-black"},"说明支持上传jpg/png等格式文件文件大小不能超过2M,建议使用288*158像素"),b.a.createElement("div",{className:"c-light-black"},"如不上传,默认使用系统图片。")))))}))),K=n("QOUV"),U=n("J66h");t.default=Object(_.a)((function(e){var t=e.classroomList,n=e.loading,r=e.globalSetting,i=e.virtualSpaces,a=e.user;return{classroomList:t,globalSetting:r,loading:n.effects,virtualSpaces:i,user:a}}))((function(e){var t,n=e.classroomList,v=(e.globalSetting,e.virtualSpaces),E=(e.loading,e.dispatch),w=e.user,j=(Object(p.a)(e,["classroomList","globalSetting","virtualSpaces","loading","dispatch","user"]),Object(g.useState)([])),R=Object(f.a)(j,2),T=R[0],D=R[1],L=v.virtualSpacesDetails,M=Object(g.useState)(),I=Object(f.a)(M,2),N=I[0],P=I[1],F=Object(g.useState)({}),z=Object(f.a)(F,2),V=z[0],H=z[1],G=Object(y.i)(),W=Object(g.useState)({page:1,limit:6,search:"",virtual_classroom_id:G.virtual_spacesId,module_id:v.actionTabs.module_id}),q=Object(f.a)(W,2),X=q[0];q[1];function Y(){return Z.apply(this,arguments)}function Z(){return(Z=Object(h.a)(m.a.mark((function e(){var t;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(x.a)("/api/virtual_classrooms/".concat(G.virtual_spacesId,"/videos.json"),{method:"get",params:X});case 2:t=e.sent,D(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(g.useEffect)((function(){Y()}),[]);var Q=function(e){return E({type:"userDetail/logWatchHistory",payload:e})};Object(g.useEffect)((function(){"刷新数据"===n.actionTabs.key&&(Y(),E({type:"virtualSpaces/getVirtualSpacesDetails",payload:{id:G.virtual_spacesId}}))}),[n.actionTabs.key]);var J=function(e,t){var n=U.Base64.decode(e);if(e)return'<video src="'.concat(n,'" controls="true" controlslist="nodownload" width="').concat("90%",'" height="').concat("55%",'" poster="').concat(t,'">您的浏览器不支持 video 标签。</video>')};return b.a.createElement("div",{className:C.a.warp},b.a.createElement("div",{className:C.a.title},b.a.createElement(d.a.Search,{onSearch:function(e){X.search=e,Y()},placeholder:"请输入视频名称搜索",className:C.a.Inputstyle}),b.a.createElement("div",null,(L.is_member||Object(S.v)())&&b.a.createElement(u.a,{type:"primary",ghost:!0,onClick:function(){_.d.push("/vspaces/".concat(G.virtual_spacesId,"/videos/").concat(w.userInfo.login,"/upload"))}},b.a.createElement("i",{style:{fontSize:"14px",marginRight:"8px"},className:"iconfont icon-shangchuan3 "})," 上传视频"),(L.is_member||Object(S.v)())&&b.a.createElement(u.a,{className:"ml10",type:"primary",ghost:!0,onClick:function(){E({type:"classroomList/setActionTabs",payload:{key:"增加外链",params:X}})}},b.a.createElement("i",{style:{fontSize:"14px",marginRight:"8px"},className:"iconfont icon-tianjia1 "})," 添加外链"))),b.a.createElement("div",{className:C.a.Content},(null==T?void 0:T.total_count)<=0&&b.a.createElement(k.a,{buttonProps:{ghost:!0,type:"primary"},ButtonClick:function(){_.d.push("/vspaces/".concat(G.virtual_spacesId,"/videos/").concat(w.userInfo.login,"/upload"))},ButtonTwo:(L.is_member||Object(S.v)())&&b.a.createElement(u.a,{className:"ml20",type:"primary",ghost:!0,onClick:function(){E({type:"classroomList/setActionTabs",payload:{key:"增加外链",params:X}})}},b.a.createElement("i",{style:{fontSize:"14px",marginRight:"8px"},className:"iconfont icon-tianjia1 "})," 添加外链"),ButtonText:L.is_member||Object(S.v)()?b.a.createElement("span",null," ",b.a.createElement("i",{style:{fontSize:"14px",marginRight:"8px"},className:"iconfont icon-shangchuan3 "})," 上传视频"):"",customText:L.is_member?"视频资源还没有内容,可点击上传视频按钮添加":"当前暂无视频资源,敬请期待,谢谢"}),b.a.createElement(a.a,{gutter:[16,16]},null==T||null===(t=T.videos)||void 0===t?void 0:t.map((function(e,t){var n,r=null!=e&&e.cover_url?null!=e&&null!==(n=e.cover_url)&&void 0!==n&&n.includes("https")?e.cover_url:A.a.API_SERVER+e.cover_url:O.a;return b.a.createElement(o.a,{span:8},b.a.createElement(s.a,{hoverable:!0,className:C.a.cardstyle,onClick:function(){e.external_link?window.open(e.external_link):(P(!0),H({videoId:e.id,course_id:X.coursesId,file_url:e.play_url||e.file_url,copyUrl:J(e.play_url||e.file_url,e.cover_url),logWatchHistory:Q}))},cover:b.a.createElement("div",{className:C.a.imgstyle},e.external_link&&b.a.createElement("div",{className:C.a.linkstyle},"外链"),b.a.createElement("img",{alt:"example",src:r}))},b.a.createElement("div",{className:C.a.paddingcard},b.a.createElement("div",{className:C.a.titlefont},b.a.createElement(l.a,{title:e.name||e.title},e.name||e.title)),b.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"12px",height:"17px",alignItems:"center"}},b.a.createElement("div",{className:C.a.flexEnd}),(null==e?void 0:e.can_remove)&&b.a.createElement(l.a,{placement:"bottom",title:"删除视频"},b.a.createElement("span",{style:{cursor:"pointer",color:"#7D8592"},onClick:function(t){var n;t.stopPropagation(),t.preventDefault(),c.a.confirm({title:"删除视频",content:"确认将视频《".concat(e.name||e.title,"》删除吗?"),okText:"确认",cancelText:"取消",onOk:(n=Object(h.a)(m.a.mark((function t(){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(x.a)("/api/virtual_classrooms/".concat(G.virtual_spacesId,"/videos/").concat(e.id,".json"),{method:"Delete"});case 2:0===t.sent.status&&(Y(),E({type:"virtualSpaces/getVirtualSpacesDetails",payload:{id:G.virtual_spacesId}}));case 4:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})})}},b.a.createElement("i",{style:{fontSize:"10px"},className:"iconfont icon-piliangshanchubeifen mr3 "})))))))})))),b.a.createElement(i.a,{current:X.page,total:null==T?void 0:T.total_count,style:{textAlign:"end",marginTop:"20px"},pageSize:X.limit,hideOnSinglePage:!0,onChange:function(e){X.page=e,Y()}}),b.a.createElement(B,null),b.a.createElement(K.a,Object(r.a)({},V,{visible:N,width:800,onClose:function(){P(!1),H({})}})))}))},"+QRC":
/*!*************************************************!*\
!*** ./node_modules/copy-to-clipboard/index.js ***!
\*************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";var r=n(/*! toggle-selection */"E9nw"),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,o,s,c,l,u=!1;t||(t={}),n=t.debug||!1;try{if(o=r(),s=document.createRange(),c=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=i[t.format]||i.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),s.selectNodeContents(l),c.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(s):c.removeAllRanges()),l&&document.body.removeChild(l),o()}return u}},"0r65":
/*!******************************************!*\
!*** ./node_modules/webworkify/index.js ***!
\******************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){var n=arguments[3],r=arguments[4],i=arguments[5],a=JSON.stringify;e.exports=function(e,t){for(var o,s=Object.keys(i),c=0,l=s.length;c<l;c++){var u=s[c],d=i[u].exports;if(d===e||d&&d.default===e){o=u;break}}if(!o){o=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var h={};for(c=0,l=s.length;c<l;c++){h[u=s[c]]=u}r[o]=["function(require,module,exports){"+e+"(self); }",h]}var f=Math.floor(Math.pow(16,8)*Math.random()).toString(16),p={};p[o]=o,r[f]=["function(require,module,exports){var f = require("+a(o)+");(f.default ? f.default : f)(self);}",p];var v={};!function e(t){for(var n in v[t]=!0,r[t][1]){var i=r[t][1][n];v[i]||e(i)}}(f);var m="("+n+")({"+Object.keys(v).map((function(e){return a(e)+":["+r[e][0]+","+a(r[e][1])+"]"})).join(",")+"},{},["+a(f)+"])",g=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([m],{type:"text/javascript"});if(t&&t.bare)return b;var y=g.createObjectURL(b),_=new Worker(y);return _.objectURL=y,_}},"4xil":
/*!******************************************************!*\
!*** ./src/components/Video/Play/index.less?modules ***!
\******************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={watermark:"watermark___2DVjg",videovideo:"videovideo___3jScv",animate__loop:"animate__loop___36IZ1",upDown:"upDown___3FGkz",container:"container___GV_Ds","video-container":"video-container___35tqx","video-controls":"video-controls___u99fM",hide:"hide___2GDit","video-progress":"video-progress___2LKQJ",seek:"seek___3b-US","seek-tooltip":"seek-tooltip___bZ9sZ","bottom-controls":"bottom-controls___74sQw","left-controls":"left-controls___2kBb3","volume-controls":"volume-controls___QLaWH","fullscreen-button":"fullscreen-button___2nHzc","pip-button":"pip-button___18qQG","playback-animation":"playback-animation___gCL6X",volume:"volume___10eUe",hidden:"hidden___2JBJW"}},"6+eU":
/*!************************************************************!*\
!*** ./node_modules/rc-pagination/es/index.js + 4 modules ***!
\************************************************************/
/*! exports provided: default */
/*! exports used: default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-pagination/es/locale/zh_CN.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var r=n("wx14"),i=n("rePB"),a=n("VTBJ"),o=n("1OyB"),s=n("vuIU"),c=n("Ji7U"),l=n("LK+K"),u=n("q1tI"),d=n.n(u),h=n("TSYQ"),f=n.n(h),p=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),r=f()(n,"".concat(n,"-").concat(e.page),(t={},Object(i.a)(t,"".concat(n,"-active"),e.active),Object(i.a)(t,e.className,!!e.className),Object(i.a)(t,"".concat(n,"-disabled"),!e.page),t));return d.a.createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",d.a.createElement("a",{rel:"nofollow"},e.page)))},v=13,m=38,g=40,b=function(e){Object(c.a)(n,e);var t=Object(l.a)(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={goInputText:""},e.buildOptionText=function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)},e.changeSize=function(t){e.props.changeSize(Number(t))},e.handleChange=function(t){e.setState({goInputText:t.target.value})},e.handleBlur=function(t){var n=e.props,r=n.goButton,i=n.quickGo,a=n.rootPrefixCls,o=e.state.goInputText;r||""===o||t.relatedTarget&&(t.relatedTarget.className.indexOf("".concat(a,"-prev"))>=0||t.relatedTarget.className.indexOf("".concat(a,"-next"))>=0)||(e.setState({goInputText:""}),i(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==v&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return Object(s.a)(n,[{key:"getValidValue",value:function(){var e=this.state,t=e.goInputText,n=e.current;return!t||isNaN(t)?n:Number(t)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,i=t.rootPrefixCls,a=t.changeSize,o=t.quickGo,s=t.goButton,c=t.selectComponentClass,l=t.buildOptionText,u=t.selectPrefixCls,h=t.disabled,f=this.state.goInputText,p="".concat(i,"-options"),v=c,m=null,g=null,b=null;if(!a&&!o)return null;var y=this.getPageSizeOptions();if(a&&v){var _=y.map((function(t,n){return d.a.createElement(v.Option,{key:n,value:t.toString()},(l||e.buildOptionText)(t))}));m=d.a.createElement(v,{disabled:h,prefixCls:u,showSearch:!1,className:"".concat(p,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||y[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode}},_)}return o&&(s&&(b="boolean"==typeof s?d.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:h,className:"".concat(p,"-quick-jumper-button")},r.jump_to_confirm):d.a.createElement("span",{onClick:this.go,onKeyUp:this.go},s)),g=d.a.createElement("div",{className:"".concat(p,"-quick-jumper")},r.jump_to,d.a.createElement("input",{disabled:h,type:"text",value:f,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),r.page,b)),d.a.createElement("li",{className:"".concat(p)},m,g)}}]),n}(d.a.Component);b.defaultProps={pageSizeOptions:["10","20","50","100"]};var y=b,_=n("N2Kk");function k(){}function E(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var O=function(e){Object(c.a)(n,e);var t=Object(l.a)(n);function n(e){var r;Object(o.a)(this,n),(r=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(E(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,i=e||d.a.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(i=d.a.createElement(e,Object(a.a)({},r.props))),i},r.savePaginationNode=function(e){r.paginationNode=e},r.isValid=function(e){return"number"==typeof(t=e)&&isFinite(t)&&Math.floor(t)===t&&e!==r.state.current;var t},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper,n=e.pageSize;return!(e.total<=n)&&t},r.handleKeyDown=function(e){e.keyCode!==m&&e.keyCode!==g||e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===v?r.handleChange(t):e.keyCode===m?r.handleChange(t-1):e.keyCode===g&&r.handleChange(t+1)},r.changePageSize=function(e){var t=r.state.current,n=E(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"==typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)},r.handleChange=function(e){var t=r.props.disabled,n=e;if(r.isValid(n)&&!t){var i=E(void 0,r.state,r.props);n>i?n=i:n<1&&(n=1),"current"in r.props||r.setState({current:n,currentInputValue:n});var a=r.state.pageSize;return r.props.onChange(n,a),n}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current<E(void 0,r.state,r.props)},r.runIfEnter=function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];t.apply(void 0,r)}},r.runIfEnterPrev=function(e){r.runIfEnter(e,r.prev)},r.runIfEnterNext=function(e){r.runIfEnter(e,r.next)},r.runIfEnterJumpPrev=function(e){r.runIfEnter(e,r.jumpPrev)},r.runIfEnterJumpNext=function(e){r.runIfEnter(e,r.jumpNext)},r.handleGoTO=function(e){e.keyCode!==v&&"click"!==e.type||r.handleChange(r.state.currentInputValue)};var i=e.onChange!==k;"current"in e&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var s=e.defaultCurrent;"current"in e&&(s=e.current);var c=e.defaultPageSize;return"pageSize"in e&&(c=e.pageSize),s=Math.min(s,E(c,void 0,e)),r.state={current:s,currentInputValue:s,pageSize:c},r}return Object(s.a)(n,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var r=this.paginationNode.querySelector(".".concat(n,"-item-").concat(t.current));r&&document.activeElement===r&&r.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=E(void 0,this.state,this.props),r=this.state.currentInputValue;return""===t?t:isNaN(Number(t))?r:t>=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,r=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),i=!this.hasPrev();return Object(u.isValidElement)(r)?Object(u.cloneElement)(r,{disabled:i}):r}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,r=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),i=!this.hasNext();return Object(u.isValidElement)(r)?Object(u.cloneElement)(r,{disabled:i}):r}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,a=t.className,o=t.style,s=t.disabled,c=t.hideOnSinglePage,l=t.total,h=t.locale,v=t.showQuickJumper,m=t.showLessItems,g=t.showTitle,b=t.showTotal,_=t.simple,k=t.itemRender,O=t.showPrevNextJumpers,S=t.jumpPrevIcon,w=t.jumpNextIcon,C=t.selectComponentClass,x=t.selectPrefixCls,A=t.pageSizeOptions,j=this.state,R=j.current,T=j.pageSize,D=j.currentInputValue;if(!0===c&&l<=T)return null;var L=E(void 0,this.state,this.props),M=[],I=null,N=null,P=null,B=null,K=null,U=v&&v.goButton,F=m?1:2,z=R-1>0?R-1:0,V=R+1<L?R+1:L,H=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{});if(_)return U&&(K="boolean"==typeof U?d.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},h.jump_to_confirm):d.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},U),K=d.a.createElement("li",{title:g?"".concat(h.jump_to).concat(R,"/").concat(L):null,className:"".concat(n,"-simple-pager")},K)),d.a.createElement("ul",Object(r.a)({className:f()(n,"".concat(n,"-simple"),Object(i.a)({},"".concat(n,"-disabled"),s),a),style:o,ref:this.savePaginationNode},H),d.a.createElement("li",{title:g?h.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:f()("".concat(n,"-prev"),Object(i.a)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(z)),d.a.createElement("li",{title:g?"".concat(R,"/").concat(L):null,className:"".concat(n,"-simple-pager")},d.a.createElement("input",{type:"text",value:D,disabled:s,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),d.a.createElement("span",{className:"".concat(n,"-slash")},"/"),L),d.a.createElement("li",{title:g?h.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:f()("".concat(n,"-next"),Object(i.a)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(V)),K);if(L<=3+2*F){var G={locale:h,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:k};L||M.push(d.a.createElement(p,Object(r.a)({},G,{key:"noPager",page:L,className:"".concat(n,"-disabled")})));for(var W=1;W<=L;W+=1){var q=R===W;M.push(d.a.createElement(p,Object(r.a)({},G,{key:W,page:W,active:q})))}}else{var X=m?h.prev_3:h.prev_5,Y=m?h.next_3:h.next_5;O&&(I=d.a.createElement("li",{title:g?X:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:f()("".concat(n,"-jump-prev"),Object(i.a)({},"".concat(n,"-jump-prev-custom-icon"),!!S))},k(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(S,"prev page"))),N=d.a.createElement("li",{title:g?Y:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:f()("".concat(n,"-jump-next"),Object(i.a)({},"".concat(n,"-jump-next-custom-icon"),!!w))},k(this.getJumpNextPage(),"jump-next",this.getItemIcon(w,"next page")))),B=d.a.createElement(p,{locale:h,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:L,page:L,active:!1,showTitle:g,itemRender:k}),P=d.a.createElement(p,{locale:h,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:k});var Z=Math.max(1,R-F),Q=Math.min(R+F,L);R-1<=F&&(Q=1+2*F),L-R<=F&&(Z=L-2*F);for(var J=Z;J<=Q;J+=1){var $=R===J;M.push(d.a.createElement(p,{locale:h,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:J,page:J,active:$,showTitle:g,itemRender:k}))}R-1>=2*F&&3!==R&&(M[0]=Object(u.cloneElement)(M[0],{className:"".concat(n,"-item-after-jump-prev")}),M.unshift(I)),L-R>=2*F&&R!==L-2&&(M[M.length-1]=Object(u.cloneElement)(M[M.length-1],{className:"".concat(n,"-item-before-jump-next")}),M.push(N)),1!==Z&&M.unshift(P),Q!==L&&M.push(B)}var ee=null;b&&(ee=d.a.createElement("li",{className:"".concat(n,"-total-text")},b(l,[0===l?0:(R-1)*T+1,R*T>l?l:R*T])));var te=!this.hasPrev()||!L,ne=!this.hasNext()||!L;return d.a.createElement("ul",Object(r.a)({className:f()(n,a,Object(i.a)({},"".concat(n,"-disabled"),s)),style:o,unselectable:"unselectable",ref:this.savePaginationNode},H),ee,d.a.createElement("li",{title:g?h.prev_page:null,onClick:this.prev,tabIndex:te?null:0,onKeyPress:this.runIfEnterPrev,className:f()("".concat(n,"-prev"),Object(i.a)({},"".concat(n,"-disabled"),te)),"aria-disabled":te},this.renderPrev(z)),M,d.a.createElement("li",{title:g?h.next_page:null,onClick:this.next,tabIndex:ne?null:0,onKeyPress:this.runIfEnterNext,className:f()("".concat(n,"-next"),Object(i.a)({},"".concat(n,"-disabled"),ne)),"aria-disabled":ne},this.renderNext(V)),d.a.createElement(y,{disabled:s,locale:h,rootPrefixCls:n,selectComponentClass:C,selectPrefixCls:x,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:R,pageSize:T,pageSizeOptions:A,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:U}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,i=E(e.pageSize,t,e);r=r>i?i:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(d.a.Component);O.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:k,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:k,locale:_.a,style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var S=O},"7ixt":
/*!**************************************************!*\
!*** ./node_modules/rc-tooltip/es/placements.js ***!
\**************************************************/
/*! exports provided: placements, default */
/*! exports used: placements */function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r={adjustX:1,adjustY:1},i=[0,0],a={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:i},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:i},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:i},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:i},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:i},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:i},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:i},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:i},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:i},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:i},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:i},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:i}}},"815F":
/*!***************************************************!*\
!*** ./node_modules/rc-tree/es/utils/treeUtil.js ***!
\***************************************************/
/*! exports provided: getKey, warningWithoutKey, convertTreeToData, flattenTreeData, traverseDataNodes, convertDataToEntities, getTreeNodeProps, convertNodePropsToEventData */
/*! exports used: convertDataToEntities, convertNodePropsToEventData, convertTreeToData, flattenTreeData, getKey, getTreeNodeProps */function(e,t,n){"use strict";n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"b",(function(){return v}));var r=n(/*! @babel/runtime/helpers/esm/toConsumableArray */"KQm4"),i=n(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ"),a=n(/*! @babel/runtime/helpers/esm/objectWithoutProperties */"Ff2n"),o=n(/*! rc-util/es/Children/toArray */"Zm9Q"),s=n(/*! rc-util/es/warning */"Kwbf"),c=n(/*! ../util */"OZM5");function l(e,t){return null!=e?e:t}function u(e){return function e(t){return Object(o.a)(t).map((function(t){if(!Object(c.i)(t))return Object(s.a)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,l=Object(a.a)(r,["children"]),u=Object(i.a)({key:n},l),d=e(o);return d.length&&(u.children=d),u})).filter((function(e){return e}))}(e)}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new Set(!0===t?[]:t),a=[];function o(e){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.map((function(u,d){var h=Object(c.h)(s?s.pos:"0",d),f=l(u.key,h),p=Object(i.a)(Object(i.a)({},u),{},{parent:s,pos:h,children:null,data:u,isStart:[].concat(Object(r.a)(s?s.isStart:[]),[0===d]),isEnd:[].concat(Object(r.a)(s?s.isEnd:[]),[d===e.length-1])});return a.push(p),!0===t||n.has(f)?p.children=o(u.children||[],p):p.children=[],p}))}return o(e),a}function h(e,t,n){var r;n?"string"==typeof n?r=function(e){return e[n]}:"function"==typeof n&&(r=function(e){return n(e)}):r=function(e,t){return l(e.key,t)},function n(i,a,o){var s=i?i.children:e,l=i?Object(c.h)(o.pos,a):"0";if(i){var u=r(i,l),d={node:i,index:a,pos:l,key:u,parentPos:o.node?o.pos:null,level:o.level+1};t(d)}s&&s.forEach((function(e,t){n(e,t,{node:i,pos:l,level:o?o.level+1:-1})}))}(null)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,a=arguments.length>2?arguments[2]:void 0,o={},s={},c={posEntities:o,keyEntities:s};return n&&(c=n(c)||c),h(e,(function(e){var t=e.node,n=e.index,i=e.pos,a=e.key,u=e.parentPos,d={node:t,index:n,key:a,pos:i,level:e.level},h=l(a,i);o[i]=d,s[h]=d,d.parent=o[u],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d)),r&&r(d,c)}),a),i&&i(c),c}function p(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,a=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,l=t.dropPosition,u=t.keyEntities[e];return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==i.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==o.indexOf(e),halfChecked:-1!==s.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===l,dragOverGapTop:c===e&&-1===l,dragOverGapBottom:c===e&&1===l}}function v(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,c=e.loading,l=e.halfChecked,u=e.dragOver,d=e.dragOverGapTop,h=e.dragOverGapBottom,f=e.pos,p=e.active,v=Object(i.a)(Object(i.a)({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:c,halfChecked:l,dragOver:u,dragOverGapTop:d,dragOverGapBottom:h,pos:f,active:p});return"props"in v||Object.defineProperty(v,"props",{get:function(){return Object(s.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),v}},"8Jsi":
/*!**************************************************************!*\
!*** ./node_modules/rc-tree-select/es/index.js + 12 modules ***!
\**************************************************************/
/*! exports provided: TreeNode, SHOW_ALL, SHOW_CHILD, SHOW_PARENT, default */
/*! exports used: SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeNode, default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/generate.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/interface/generator.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/valueUtil.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/utils/conductUtil.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/utils/treeUtil.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMemo.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMergedState.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"d",(function(){return R})),n.d(t,"a",(function(){return z})),n.d(t,"b",(function(){return H})),n.d(t,"c",(function(){return V}));var r=n("1OyB"),i=n("vuIU"),a=n("Ji7U"),o=n("LK+K"),s=n("KQm4"),c=n("U8pU"),l=n("ODXe"),u=n("VTBJ"),d=n("q1tI"),h=n("qNPg"),f=n("2Qr1"),p=n("815F"),v=n("NvD2"),m=n("wPlo"),g=n("6cGi"),b=n("Kwbf"),y=n("4IlW"),_=n("YrtM"),k=n("fAei"),E=d.createContext(null);function O(e,t){if(!e)return!0;var n=e.data,r=n.disabled,i=n.disableCheckbox;switch(t){case"select":return r;case"checkbox":return r||i}return!1}function S(e,t){return[d.useCallback((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"select",r=arguments.length>2?arguments[2]:void 0,i=e.get(t);return!r&&O(i,n)?null:i}),[e]),d.useCallback((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"select",r=arguments.length>2?arguments[2]:void 0,i=t.get(e);return!r&&O(i,n)?null:i}),[t])]}function w(e){return d.useMemo((function(){var t=new Map,n=new Map;return e.forEach((function(e){t.set(e.key,e),n.set(e.data.value,e)})),[t,n]}),[e])}var C={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},x=function(e,t){var n=e.prefixCls,r=e.height,i=e.itemHeight,a=e.virtual,o=e.options,c=e.flattenOptions,u=e.multiple,h=e.searchValue,f=e.onSelect,p=e.onToggleOpen,v=e.open,m=e.notFoundContent,g=e.onMouseEnter,b=d.useContext(E),O=b.checkable,x=b.checkedKeys,A=b.halfCheckedKeys,j=b.treeExpandedKeys,R=b.treeDefaultExpandAll,T=b.treeDefaultExpandedKeys,D=b.onTreeExpand,L=b.treeIcon,M=b.showTreeIcon,I=b.switcherIcon,N=b.treeLine,P=b.treeNodeFilterProp,B=b.loadData,K=b.treeLoadedKeys,U=b.treeMotion,F=b.onTreeLoad,z=d.useRef(),V=Object(_.a)((function(){return o}),[v,o],(function(e,t){return t[0]&&e[1]!==t[1]})),H=w(c),G=Object(l.a)(H,2),W=S(G[0],G[1]),q=Object(l.a)(W,2),X=q[0],Y=q[1],Z=d.useMemo((function(){return x.map((function(e){var t=Y(e);return t?t.key:null}))}),[x]),Q=d.useMemo((function(){return O?{checked:Z,halfChecked:A}:null}),[Z,A,O]);d.useEffect((function(){var e;v&&!u&&Z.length&&(null===(e=z.current)||void 0===e||e.scrollTo({key:Z[0]}))}),[v]);var J=String(h).toLowerCase(),$=d.useState(T),ee=Object(l.a)($,2),te=ee[0],ne=ee[1],re=d.useState(null),ie=Object(l.a)(re,2),ae=ie[0],oe=ie[1],se=d.useMemo((function(){return j?Object(s.a)(j):h?ae:te}),[te,ae,J,j]);d.useEffect((function(){h&&oe(c.map((function(e){return e.key})))}),[h]);var ce=function(e){e.preventDefault()},le=function(e,t){var n=t.node.key,r=X(n,O?"checkbox":"select");null!==r&&f(r.data.value,{selected:!x.includes(r.data.value)}),u||p(!1)},ue=d.useState(null),de=Object(l.a)(ue,2),he=de[0],fe=de[1],pe=X(he);if(d.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t;switch(e.which){case y.a.UP:case y.a.DOWN:case y.a.LEFT:case y.a.RIGHT:null===(t=z.current)||void 0===t||t.onKeyDown(e);break;case y.a.ENTER:null!==pe&&le(0,{node:{key:he},selected:!x.includes(pe.data.value)});break;case y.a.ESC:p(!1)}},onKeyUp:function(){}}})),0===V.length)return d.createElement("div",{role:"listbox",className:"".concat(n,"-empty"),onMouseDown:ce},m);var ve={};return K&&(ve.loadedKeys=K),se&&(ve.expandedKeys=se),d.createElement("div",{onMouseDown:ce,onMouseEnter:g},pe&&v&&d.createElement("span",{style:C,"aria-live":"assertive"},pe.data.value),d.createElement(k.b,Object.assign({ref:z,focusable:!1,prefixCls:"".concat(n,"-tree"),treeData:V,height:r,itemHeight:i,virtual:a,multiple:u,icon:L,showIcon:M,switcherIcon:I,showLine:N,loadData:h?null:B,motion:U,checkable:O,checkStrictly:!0,checkedKeys:Q,selectedKeys:O?[]:Z,defaultExpandAll:R},ve,{onActiveChange:fe,onSelect:le,onCheck:le,onExpand:function(e){ne(e),oe(e),D&&D(e)},onLoad:F,filterTreeNode:function(e){return!!J&&String(e[P]).toLowerCase().includes(J)}})))},A=d.forwardRef(x);A.displayName="OptionList";var j=A,R=function(){return null},T=n("Ff2n"),D=n("Zm9Q");function L(e){if(!e)return e;var t=Object(u.a)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(b.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function M(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function I(e,t){var n=new Map;return t.forEach((function(e){var t=e.data;n.set(t.value,t)})),e.map((function(e){return L(n.get(e))}))}function N(e){return e.disabled||e.disableCheckbox||!1===e.checkable}function P(e){for(var t=0,n=e.parent;n;)n=n.parent,t+=1;return t}function B(e){return Object(p.d)(function e(t){return(t||[]).map((function(t){var n=t.value,r=t.key,i=t.children,a=Object(u.a)(Object(u.a)({},t),{},{key:"key"in t?r:n});return i&&(a.children=e(i)),a}))}(e),!0).map((function(e){return{key:e.data.key,data:e.data,level:P(e)}}))}function K(e,t,n,r){var i=new Map;return M(t).forEach((function(e){e&&"object"===Object(c.a)(e)&&"value"in e&&i.set(e.value,e)})),e.map((function(e){var t={value:e},a=n(e,"select",!0),o=a?r(a.data):e;if(i.has(e)){var s=i.get(e);t.label="label"in s?s.label:o,"halfChecked"in s&&(t.halfChecked=s.halfChecked)}else t.label=o;return t}))}function U(e,t){new Set;return function e(n){return(n||[]).map((function(n){var r=n.key,i=n.value,a=n.children,o=Object(T.a)(n,["key","value","children"]),s="value"in n?i:r,c=Object(u.a)(Object(u.a)({},o),{},{key:null!=r?r:s,value:s,title:t(n)});return"children"in n&&(c.children=e(a)),c}))}(e)}function F(e,t,n){var r=n.getLabelProp,i=n.simpleMode,a=d.useRef({});return e?(a.current.formatTreeData=a.current.treeData===e?a.current.formatTreeData:U(i?function(e,t){var n=t.id,r=t.pId,i=t.rootPId,a={},o=[];return e.map((function(e){var t=Object(u.a)({},e),r=t[n];return a[r]=t,t.key=t.key||r,t})).forEach((function(e){var t=e[r],n=a[t];n&&(n.children=n.children||[],n.children.push(e)),(t===i||!n&&null===i)&&o.push(e)})),o}(e,Object(u.a)({id:"id",pId:"pId",rootPId:null},!0!==i?i:{})):e,r),a.current.treeData=e):a.current.formatTreeData=a.current.children===t?a.current.formatTreeData:U(function e(t){return Object(D.a)(t).map((function(t){if(!d.isValidElement(t)||!t.type)return null;var n=t.key,r=t.props,i=r.children,a=r.value,o=Object(T.a)(r,["children","value"]),s=Object(u.a)({key:n,value:a},o),c=e(i);return c.length&&(s.children=c),s})).filter((function(e){return e}))}(t),r),a.current.formatTreeData}var z="SHOW_ALL",V="SHOW_PARENT",H="SHOW_CHILD";function G(e,t,n){var r=new Set(e);return t===H?e.filter((function(e){var t=n[e];return!(t&&t.children&&t.children.every((function(e){var t=e.node;return N(t)||r.has(t.key)})))})):t===V?e.filter((function(e){var t=n[e],i=t?t.parent:null;return!(i&&!N(i.node)&&r.has(i.node.key))})):e}var W=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],q=Object(h.a)({prefixCls:"rc-tree-select",components:{optionList:j},convertChildrenToData:function(){return null},flattenOptions:B,getLabeledValue:f.e,filterOptions:function(e,t,n){var r,i=n.optionFilterProp,a=n.filterOption;return!1===a?t:(r="function"==typeof a?a:function(e){return function(t,n){var r=n[e];return String(r).toLowerCase().includes(String(t).toLowerCase())}}(i),function t(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.map((function(n){var a=n.children,o=i||r(e,L(n)),s=t(a||[],o);return o||s.length?Object(u.a)(Object(u.a)({},n),{},{children:s}):null})).filter((function(e){return e}))}(t))},isValueDisabled:function(e,t){var n=I([e],t)[0];return!!n&&n.disabled},findValueOption:I,omitDOMProps:function(e){var t=Object(u.a)({},e);return W.forEach((function(e){delete t[e]})),t}});q.displayName="Select";var X=d.forwardRef((function(e,t){var n=e.multiple,r=e.treeCheckable,i=e.treeCheckStrictly,a=e.showCheckedStrategy,o=void 0===a?"SHOW_CHILD":a,u=e.labelInValue,h=e.loadData,f=e.treeLoadedKeys,y=e.treeNodeFilterProp,_=void 0===y?"value":y,k=e.treeNodeLabelProp,O=e.treeDataSimpleMode,C=e.treeData,x=e.treeExpandedKeys,A=e.treeDefaultExpandedKeys,j=e.treeDefaultExpandAll,T=e.children,D=e.treeIcon,L=e.showTreeIcon,I=e.switcherIcon,N=e.treeLine,P=e.treeMotion,U=e.filterTreeNode,z=e.dropdownPopupAlign,V=e.onChange,H=e.onTreeExpand,W=e.onTreeLoad,X=e.onDropdownVisibleChange,Y=e.onSelect,Z=e.onDeselect,Q=r||i,J=n||Q,$=r&&!i,ee=i||u,te=d.useRef(null);d.useImperativeHandle(t,(function(){return{focus:te.current.focus,blur:te.current.blur}}));var ne=function(e){return C&&e.label||e.title},re=function(e){return k?e[k]:ne(e)},ie=F(C,T,{getLabelProp:ne,simpleMode:O}),ae=w(Object(d.useMemo)((function(){return B(ie)}),[ie])),oe=Object(l.a)(ae,2),se=S(oe[0],oe[1]),ce=Object(l.a)(se,2),le=ce[0],ue=ce[1],de=Object(d.useMemo)((function(){return $?Object(p.a)(ie):{keyEntities:null}}),[ie,r,i]).keyEntities,he=Object(g.a)(e.defaultValue,{value:e.value}),fe=Object(l.a)(he,2),pe=fe[0],ve=fe[1],me=function(e){var t=[],n=[];return e.forEach((function(e){ue(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}},ge=Object(d.useMemo)((function(){var e=[],t=[];if(M(pe).forEach((function(n){if(n&&"object"===Object(c.a)(n)&&"value"in n)if(n.halfChecked&&i){var r=ue(n.value);e.push(r?r.key:n.value)}else t.push(n.value);else t.push(n)})),$){var n=me(t),r=n.missingRawValues,a=n.existRawValues.map((function(e){return ue(e).key})),o=Object(v.a)(a,!0,de),l=o.checkedKeys,u=o.halfCheckedKeys;return[[].concat(Object(s.a)(r),Object(s.a)(l.map((function(e){return le(e).data.value})))),u]}return[t,e]}),[pe,J,ee,r,i]),be=Object(l.a)(ge,2),ye=be[0],_e=be[1],ke=function(e,t){var n=t.value,r=t.getEntityByValue,i=t.getEntityByKey,a=t.treeConduction,o=t.showCheckedStrategy,s=t.conductKeyEntities,c=t.getLabelProp;return d.useMemo((function(){var t=e;a&&(t=G(e.map((function(e){var t=r(e);return t?t.key:e})),o,s).map((function(e){var t=i(e);return t?t.data.value:e})));return K(t,n,r,c)}),[e,n,a,o,r])}(ye,{treeConduction:$,value:pe,showCheckedStrategy:o,conductKeyEntities:de,getEntityByValue:ue,getEntityByKey:le,getLabelProp:re}),Ee=function(e,t,n){if(ve(J?e:e[0]),V){var r=e;if($&&"SHOW_ALL"!==o){var a=G(e.map((function(e){var t=ue(e);return t?t.key:e})),o,de);r=a.map((function(e){var t=le(e);return t?t.data.value:e}))}var c=t||{triggerValue:void 0,selected:void 0},l=c.triggerValue,u=c.selected,h=ee?K(r,pe,ue,re):r;if(i){var f=_e.map((function(e){var t=le(e);return t?t.data.value:e})).filter((function(e){return!r.includes(e)}));h=[].concat(Object(s.a)(h),Object(s.a)(K(f,pe,ue,re)))}var p={preValue:ke,triggerValue:l},v=!0;(i||"selection"===n&&!u)&&(v=!1),function(e,t,n,r,i){var a=null,o=null;function s(){o||(o=[],function e(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r.map((function(r,c){var l="".concat(i,"-").concat(c),u=n.includes(r.value),h=e(r.children||[],l,u),f=d.createElement(R,Object.assign({},r),h.map((function(e){return e.node})));if(t===r.value&&(a=f),u){var p={pos:l,node:f,children:h};return s||o.push(p),p}return null})).filter((function(e){return e}))}(r),o.sort((function(e,t){var r=e.node.props.value,i=t.node.props.value;return n.indexOf(r)-n.indexOf(i)})))}Object.defineProperty(e,"triggerNode",{get:function(){return Object(b.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),s(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Object(b.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),s(),i?o:o.map((function(e){return e.node}))}})}(p,l,e,ie,v),Q?p.checked=u:p.selected=u,V(J?h:h[0],ee?null:r.map((function(e){var t=ue(e);return t?re(t.data):null})),p)}},Oe=d.useCallback((function(e){if(X){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return Object(b.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),X(e,t)}}),[X]);var Se={optionLabelProp:null,optionFilterProp:_,dropdownAlign:z,internalProps:{mark:m.a,onClear:function(){Ee([],null,"clear")},skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:function(e,t,n){var r=e;if(J){var i=function(e,t){var n=new Set(e);return n.add(t),Array.from(n)}(ye,e);if($){var a=me(i),o=a.missingRawValues,c=a.existRawValues.map((function(e){return ue(e).key})),l=Object(v.a)(c,!0,de).checkedKeys;i=[].concat(Object(s.a)(o),Object(s.a)(l.map((function(e){return le(e).data.value}))))}Ee(i,{selected:!0,triggerValue:e},n)}else Ee([e],{selected:!0,triggerValue:e},n);Y&&Y(r,t)},onRawDeselect:function(e,t,n){var r=e,i=function(e,t){var n=new Set(e);return n.delete(t),Array.from(n)}(ye,e);if($){var a=me(i),o=a.missingRawValues,c=a.existRawValues.map((function(e){return ue(e).key})),l=Object(v.a)(c,{checked:!1,halfCheckedKeys:_e},de).checkedKeys;i=[].concat(Object(s.a)(o),Object(s.a)(l.map((function(e){return le(e).data.value}))))}Ee(i,{selected:!1,triggerValue:e},n),Z&&Z(r,t)}}};return"filterTreeNode"in e&&(Se.filterOption=U),d.createElement(E.Provider,{value:{checkable:Q,loadData:h,treeLoadedKeys:f,onTreeLoad:W,checkedKeys:ye,halfCheckedKeys:_e,treeDefaultExpandAll:j,treeExpandedKeys:x,treeDefaultExpandedKeys:A,onTreeExpand:H,treeIcon:D,treeMotion:P,showTreeIcon:L,switcherIcon:I,treeLine:N,treeNodeFilterProp:_}},d.createElement(q,Object.assign({ref:te,mode:J?"multiple":null},e,Se,{value:ke,labelInValue:!0,options:ie,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Oe})))})),Y=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).selectRef=d.createRef(),e.focus=function(){e.selectRef.current.focus()},e.blur=function(){e.selectRef.current.blur()},e}return Object(i.a)(n,[{key:"render",value:function(){return d.createElement(X,Object.assign({ref:this.selectRef},this.props))}}]),n}(d.Component);Y.TreeNode=R,Y.SHOW_ALL=z,Y.SHOW_PARENT=V,Y.SHOW_CHILD=H;var Z=Y;t.e=Z},BdwD:
/*!*****************************************!*\
!*** ./src/components/NoData/index.tsx ***!
\*****************************************/
/*! exports provided: default */
/*! exports used: default */function(e,t,n){"use strict";var r=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2 */"k1fw"),i=n(/*! react */"q1tI"),a=n.n(i),o=n(/*! @/assets/images/icons/nodata2.png */"MXfU"),s=n.n(o),c=n(/*! ./index.less?modules */"Nmsl"),l=n.n(c);t.a=function(e){e.buttonProps;var t=e.styles,n=void 0===t?{}:t,i=e.customText;e.ButtonText,e.ButtonClick,e.Buttonclass,e.ButtonTwo;return a.a.createElement("div",{className:l.a.none_panels,style:Object(r.a)({},n)},a.a.createElement("div",null,a.a.createElement("img",{src:s.a,alt:""}),a.a.createElement("p",{className:l.a.none_p_title},i||"暂时还没有相关数据哦!")))}},DqmF:
/*!****************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Video/index.less?modules ***!
\****************************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={flex_box_center:"flex_box_center___2R7WL",flex_space_between:"flex_space_between___2aI2K",flex_box_vertical_center:"flex_box_vertical_center___R5yDL",flex_box_center_end:"flex_box_center_end___-4G6B",flex_box_column:"flex_box_column___3juTw",warp:"warp___U4PIB",title:"title___2Qaek",Inputstyle:"Inputstyle___3zmzo",buttonstyle:"buttonstyle___KHbH3",Content:"Content___3DBIs",imgstyle:"imgstyle___2NG15",cardstyle:"cardstyle___3ylNd",linkstyle:"linkstyle___1cYtz",paddingcard:"paddingcard___1XeX3",titlefont:"titlefont___2PO7o",flexEnd:"flexEnd___GxfZq"}},E2g8:
/*!******************************************************!*\
!*** ./node_modules/es6-promise/dist/es6-promise.js ***!
\******************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){(function(t,n){
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/var r;r=function(){"use strict";function e(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,a=void 0,o=void 0,s=function(e,t){p[i]=e,p[i+1]=t,2===(i+=2)&&(o?o(v):_())},c="undefined"!=typeof window?window:void 0,l=c||{},u=l.MutationObserver||l.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var e=setTimeout;return function(){return e(v,1)}}var p=new Array(1e3);function v(){for(var e=0;e<i;e+=2)(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0;i=0}var m,g,b,y,_=void 0;function k(e,t){var n=this,r=new this.constructor(S);void 0===r[O]&&M(r);var i=n._state;if(i){var a=arguments[i-1];s((function(){return D(i,r,a,n._result)}))}else R(n,r,e,t);return r}function E(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(S);return C(t,e),t}d?_=function(){return t.nextTick(v)}:u?(g=0,b=new u(v),y=document.createTextNode(""),b.observe(y,{characterData:!0}),_=function(){y.data=g=++g%2}):h?((m=new MessageChannel).port1.onmessage=v,_=function(){return m.port2.postMessage(0)}):_=void 0===c?function(){try{var e=Function("return this")().require("vertx");return void 0!==(a=e.runOnLoop||e.runOnContext)?function(){a(v)}:f()}catch(e){return f()}}():f();var O=Math.random().toString(36).substring(2);function S(){}function w(t,n,r){n.constructor===t.constructor&&r===k&&n.constructor.resolve===E?function(e,t){1===t._state?A(e,t._result):2===t._state?j(e,t._result):R(t,void 0,(function(t){return C(e,t)}),(function(t){return j(e,t)}))}(t,n):void 0===r?A(t,n):e(r)?function(e,t,n){s((function(e){var r=!1,i=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,(function(n){r||(r=!0,t!==n?C(e,n):A(e,n))}),(function(t){r||(r=!0,j(e,t))}),e._label);!r&&i&&(r=!0,j(e,i))}),e)}(t,n,r):A(t,n)}function C(e,t){if(e===t)j(e,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=t),null===r||"object"!==i&&"function"!==i)A(e,t);else{var n=void 0;try{n=t.then}catch(t){return void j(e,t)}w(e,t,n)}var r,i}function x(e){e._onerror&&e._onerror(e._result),T(e)}function A(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&s(T,e))}function j(e,t){void 0===e._state&&(e._state=2,e._result=t,s(x,e))}function R(e,t,n,r){var i=e._subscribers,a=i.length;e._onerror=null,i[a]=t,i[a+1]=n,i[a+2]=r,0===a&&e._state&&s(T,e)}function T(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,a=e._result,o=0;o<t.length;o+=3)r=t[o],i=t[o+n],r?D(n,r,i,a):i(a);e._subscribers.length=0}}function D(t,n,r,i){var a=e(r),o=void 0,s=void 0,c=!0;if(a){try{o=r(i)}catch(e){c=!1,s=e}if(n===o)return void j(n,new TypeError("A promises callback cannot return that same promise."))}else o=i;void 0!==n._state||(a&&c?C(n,o):!1===c?j(n,s):1===t?A(n,o):2===t&&j(n,o))}var L=0;function M(e){e[O]=L++,e._state=void 0,e._result=void 0,e._subscribers=[]}var I=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(S),this.promise[O]||M(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?A(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&A(this.promise,this._result))):j(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===E){var i=void 0,a=void 0,o=!1;try{i=e.then}catch(e){o=!0,a=e}if(i===k&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===N){var s=new n(S);o?j(s,a):w(s,e,i),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;void 0===r._state&&(this._remaining--,2===e?j(r,n):this._result[t]=n),0===this._remaining&&A(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;R(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),N=function(){function t(e){this[O]=L++,this._result=this._state=void 0,this._subscribers=[],S!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){C(e,t)}),(function(t){j(e,t)}))}catch(t){j(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then((function(e){return n.resolve(t()).then((function(){return e}))}),(function(e){return n.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return N.prototype.then=k,N.all=function(e){return new I(this,e).promise},N.race=function(e){var t=this;return r(e)?new t((function(n,r){for(var i=e.length,a=0;a<i;a++)t.resolve(e[a]).then(n,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))},N.resolve=E,N.reject=function(e){var t=new this(S);return j(t,e),t},N._setScheduler=function(e){o=e},N._setAsap=function(e){s=e},N._asap=s,N.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=N},N.Promise=N,N},e.exports=r()}).call(this,n(/*! ./../../node-libs-browser/mock/process.js */"Q2Ig"),n(/*! ./../../@umijs/deps/compiled/webpack/4/global.js */"IyRk"))},E9nw:
/*!************************************************!*\
!*** ./node_modules/toggle-selection/index.js ***!
\************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},GUcZ:
/*!*****************************************************!*\
!*** ./node_modules/flv.js/src/flv.js + 40 modules ***!
\*****************************************************/
/*! exports provided: default */
/*! exports used: default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/createClass.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/createSuper.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/inherits.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/events/events.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";var r=n("fWQN"),i=n("mtLc"),a=function(){function e(){Object(r.a)(this,e)}return Object(i.a)(e,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t},"function"!=typeof self.Promise&&n(/*! es6-promise */"E2g8").polyfill()}}]),e}();a.install();var o=a,s=n("+qE3"),c=n.n(s),l=function(){function e(){Object(r.a)(this,e)}return Object(i.a)(e,null,[{key:"e",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="[".concat(t,"] > ").concat(n);e.ENABLE_CALLBACK&&e.emitter.emit("log","error",r),e.ENABLE_ERROR&&(console.error?console.error(r):console.warn?console.warn(r):console.log(r))}},{key:"i",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="[".concat(t,"] > ").concat(n);e.ENABLE_CALLBACK&&e.emitter.emit("log","info",r),e.ENABLE_INFO&&(console.info?console.info(r):console.log(r))}},{key:"w",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="[".concat(t,"] > ").concat(n);e.ENABLE_CALLBACK&&e.emitter.emit("log","warn",r),e.ENABLE_WARN&&(console.warn?console.warn(r):console.log(r))}},{key:"d",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="[".concat(t,"] > ").concat(n);e.ENABLE_CALLBACK&&e.emitter.emit("log","debug",r),e.ENABLE_DEBUG&&(console.debug?console.debug(r):console.log(r))}},{key:"v",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="[".concat(t,"] > ").concat(n);e.ENABLE_CALLBACK&&e.emitter.emit("log","verbose",r),e.ENABLE_VERBOSE&&console.log(r)}}]),e}();l.GLOBAL_TAG="flv.js",l.FORCE_GLOBAL_TAG=!1,l.ENABLE_ERROR=!0,l.ENABLE_INFO=!0,l.ENABLE_WARN=!0,l.ENABLE_DEBUG=!0,l.ENABLE_VERBOSE=!0,l.ENABLE_CALLBACK=!1,l.emitter=new c.a;var u=l,d=function(){function e(){Object(r.a)(this,e),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}return Object(i.a)(e,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(e){0===this._firstCheckpoint?(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())}},{key:"currentKBps",get:function(){this.addBytes(0);var e=(this._now()-this._lastCheckpoint)/1e3;return 0==e&&(e=1),this._intervalBytes/e/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}]),e}(),h=n("yKVA"),f=n("879j"),p=function(){function e(t){Object(r.a)(this,e),this._message=t}return Object(i.a)(e,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),e}(),v=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"name",get:function(){return"IllegalStateException"}}]),n}(p),m=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"name",get:function(){return"InvalidArgumentException"}}]),n}(p),g=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,e)}return Object(i.a)(n,[{key:"name",get:function(){return"NotImplementedException"}}]),n}(p),b={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},y={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},_=function(){function e(t){Object(r.a)(this,e),this._type=t||"undefined",this._status=b.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(i.a)(e,[{key:"destroy",value:function(){this._status=b.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===b.kConnecting||this._status===b.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(e){this._onContentLengthKnown=e}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(e){this._onURLRedirect=e}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e}},{key:"onError",get:function(){return this._onError},set:function(e){this._onError=e}},{key:"onComplete",get:function(){return this._onComplete},set:function(e){this._onComplete=e}},{key:"open",value:function(e,t){throw new g("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new g("Unimplemented abstract function!")}}]),e}(),k=n("oZsa");function E(e,t,n){return(E="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(k.a)(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}var O={};!function(){var e=self.navigator.userAgent.toLowerCase(),t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(e)||[],n=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(android)/.exec(e)||/(windows)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||[],r={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",majorVersion:t[4]||t[2]||"0",platform:n[0]||""},i={};if(r.browser){i[r.browser]=!0;var a=r.majorVersion.split(".");i.version={major:parseInt(r.majorVersion,10),string:r.version},a.length>1&&(i.version.minor=parseInt(a[1],10)),a.length>2&&(i.version.build=parseInt(a[2],10))}if(r.platform&&(i[r.platform]=!0),(i.chrome||i.opr||i.safari)&&(i.webkit=!0),i.rv||i.iemobile){i.rv&&delete i.rv;r.browser="msie",i.msie=!0}if(i.edge){delete i.edge;r.browser="msedge",i.msedge=!0}if(i.opr){r.browser="opera",i.opera=!0}if(i.safari&&i.android){r.browser="android",i.android=!0}for(var o in i.name=r.browser,i.platform=r.platform,O)O.hasOwnProperty(o)&&delete O[o];Object.assign(O,i)}();var S=O,w=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(e,i){var a;return Object(r.a)(this,n),(a=t.call(this,"fetch-stream-loader")).TAG="FetchStreamLoader",a._seekHandler=e,a._config=i,a._needStash=!0,a._requestAbort=!1,a._contentLength=null,a._receivedLength=0,a}return Object(i.a)(n,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),E(Object(k.a)(n.prototype),"destroy",this).call(this)}},{key:"open",value:function(e,t){var n=this;this._dataSource=e,this._range=t;var r=e.url;this._config.reuseRedirectedURL&&null!=e.redirectedURL&&(r=e.redirectedURL);var i=this._seekHandler.getConfig(r,t),a=new self.Headers;if("object"==typeof i.headers){var o=i.headers;for(var s in o)o.hasOwnProperty(s)&&a.append(s,o[s])}var c={method:"GET",headers:a,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"==typeof this._config.headers)for(var l in this._config.headers)a.append(l,this._config.headers[l]);!1===e.cors&&(c.mode="same-origin"),e.withCredentials&&(c.credentials="include"),e.referrerPolicy&&(c.referrerPolicy=e.referrerPolicy),this._status=b.kConnecting,self.fetch(i.url,c).then((function(e){if(n._requestAbort)return n._requestAbort=!1,void(n._status=b.kIdle);if(e.ok&&e.status>=200&&e.status<=299){if(e.url!==i.url&&n._onURLRedirect){var t=n._seekHandler.removeURLParameters(e.url);n._onURLRedirect(t)}var r=e.headers.get("Content-Length");return null!=r&&(n._contentLength=parseInt(r),0!==n._contentLength&&n._onContentLengthKnown&&n._onContentLengthKnown(n._contentLength)),n._pump.call(n,e.body.getReader())}if(n._status=b.kError,!n._onError)throw new p("FetchStreamLoader: Http code invalid, "+e.status+" "+e.statusText);n._onError(y.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})})).catch((function(e){if(n._status=b.kError,!n._onError)throw e;n._onError(y.EXCEPTION,{code:-1,msg:e.message})}))}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(e){var t=this;return e.read().then((function(n){if(n.done)if(null!==t._contentLength&&t._receivedLength<t._contentLength){t._status=b.kError;var r=y.EARLY_EOF,i={code:-1,msg:"Fetch stream meet Early-EOF"};if(!t._onError)throw new p(i.msg);t._onError(r,i)}else t._status=b.kComplete,t._onComplete&&t._onComplete(t._range.from,t._range.from+t._receivedLength-1);else{if(!0===t._requestAbort)return t._requestAbort=!1,t._status=b.kComplete,e.cancel();t._status=b.kBuffering;var a=n.value.buffer,o=t._range.from+t._receivedLength;t._receivedLength+=a.byteLength,t._onDataArrival&&t._onDataArrival(a,o,t._receivedLength),t._pump(e)}})).catch((function(e){if(11!==e.code||!S.msedge){t._status=b.kError;var n=0,r=null;if(19!==e.code&&"network error"!==e.message||!(null===t._contentLength||null!==t._contentLength&&t._receivedLength<t._contentLength)?(n=y.EXCEPTION,r={code:e.code,msg:e.message}):(n=y.EARLY_EOF,r={code:e.code,msg:"Fetch stream meet Early-EOF"}),!t._onError)throw new p(r.msg);t._onError(n,r)}}))}}],[{key:"isSupported",value:function(){try{var e=S.msedge&&S.version.minor>=15048,t=!S.msedge||e;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}}}]),n}(_),C=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(e,i){var a;return Object(r.a)(this,n),(a=t.call(this,"xhr-moz-chunked-loader")).TAG="MozChunkedLoader",a._seekHandler=e,a._config=i,a._needStash=!0,a._xhr=null,a._requestAbort=!1,a._contentLength=null,a._receivedLength=0,a}return Object(i.a)(n,[{key:"destroy",value:function(){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),E(Object(k.a)(n.prototype),"destroy",this).call(this)}},{key:"open",value:function(e,t){this._dataSource=e,this._range=t;var n=e.url;this._config.reuseRedirectedURL&&null!=e.redirectedURL&&(n=e.redirectedURL);var r=this._seekHandler.getConfig(n,t);this._requestURL=r.url;var i=this._xhr=new XMLHttpRequest;if(i.open("GET",r.url,!0),i.responseType="moz-chunked-arraybuffer",i.onreadystatechange=this._onReadyStateChange.bind(this),i.onprogress=this._onProgress.bind(this),i.onloadend=this._onLoadEnd.bind(this),i.onerror=this._onXhrError.bind(this),e.withCredentials&&(i.withCredentials=!0),"object"==typeof r.headers){var a=r.headers;for(var o in a)a.hasOwnProperty(o)&&i.setRequestHeader(o,a[o])}if("object"==typeof this._config.headers){var s=this._config.headers;for(var c in s)s.hasOwnProperty(c)&&i.setRequestHeader(c,s[c])}this._status=b.kConnecting,i.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=b.kComplete}},{key:"_onReadyStateChange",value:function(e){var t=e.target;if(2===t.readyState){if(null!=t.responseURL&&t.responseURL!==this._requestURL&&this._onURLRedirect){var n=this._seekHandler.removeURLParameters(t.responseURL);this._onURLRedirect(n)}if(0!==t.status&&(t.status<200||t.status>299)){if(this._status=b.kError,!this._onError)throw new p("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(y.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}else this._status=b.kBuffering}}},{key:"_onProgress",value:function(e){if(this._status!==b.kError){null===this._contentLength&&null!==e.total&&0!==e.total&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var t=e.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}}},{key:"_onLoadEnd",value:function(e){!0!==this._requestAbort?this._status!==b.kError&&(this._status=b.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1}},{key:"_onXhrError",value:function(e){this._status=b.kError;var t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=y.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=y.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),!this._onError)throw new p(n.msg);this._onError(t,n)}}],[{key:"isSupported",value:function(){try{var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="moz-chunked-arraybuffer","moz-chunked-arraybuffer"===e.responseType}catch(e){return u.w("MozChunkedLoader",e.message),!1}}}]),n}(_),x=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(e,i){var a;return Object(r.a)(this,n),(a=t.call(this,"xhr-range-loader")).TAG="RangeLoader",a._seekHandler=e,a._config=i,a._needStash=!1,a._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],a._currentChunkSizeKB=384,a._currentSpeedNormalized=0,a._zeroSpeedChunkCount=0,a._xhr=null,a._speedSampler=new d,a._requestAbort=!1,a._waitForTotalLength=!1,a._totalLengthReceived=!1,a._currentRequestURL=null,a._currentRedirectedURL=null,a._currentRequestRange=null,a._totalLength=null,a._contentLength=null,a._receivedLength=0,a._lastTimeLoaded=0,a}return Object(i.a)(n,[{key:"destroy",value:function(){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),E(Object(k.a)(n.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(e,t){this._dataSource=e,this._range=t,this._status=b.kConnecting;var n=!1;null!=this._dataSource.filesize&&0!==this._dataSource.filesize&&(n=!0,this._totalLength=this._dataSource.filesize),this._totalLengthReceived||n?this._openSubRange():(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1}))}},{key:"_openSubRange",value:function(){var e=1024*this._currentChunkSizeKB,t=this._range.from+this._receivedLength,n=t+e;null!=this._contentLength&&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)}},{key:"_internalOpen",value:function(e,t){this._lastTimeLoaded=0;var n=e.url;this._config.reuseRedirectedURL&&(null!=this._currentRedirectedURL?n=this._currentRedirectedURL:null!=e.redirectedURL&&(n=e.redirectedURL));var r=this._seekHandler.getConfig(n,t);this._currentRequestURL=r.url;var i=this._xhr=new XMLHttpRequest;if(i.open("GET",r.url,!0),i.responseType="arraybuffer",i.onreadystatechange=this._onReadyStateChange.bind(this),i.onprogress=this._onProgress.bind(this),i.onload=this._onLoad.bind(this),i.onerror=this._onXhrError.bind(this),e.withCredentials&&(i.withCredentials=!0),"object"==typeof r.headers){var a=r.headers;for(var o in a)a.hasOwnProperty(o)&&i.setRequestHeader(o,a[o])}if("object"==typeof this._config.headers){var s=this._config.headers;for(var c in s)s.hasOwnProperty(c)&&i.setRequestHeader(c,s[c])}i.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=b.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(e){var t=e.target;if(2===t.readyState){if(null!=t.responseURL){var 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=b.kBuffering}else{if(this._status=b.kError,!this._onError)throw new p("RangeLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(y.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}}}},{key:"_onProgress",value:function(e){if(this._status!==b.kError){if(null===this._contentLength){var t=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,t=!0;var n=e.total;this._internalAbort(),null!=n&0!==n&&(this._totalLength=n)}if(-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,t)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var r=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(r)}}},{key:"_normalizeSpeed",value:function(e){var t=this._chunkSizeKBList,n=t.length-1,r=0,i=0,a=n;if(e<t[0])return t[0];for(;i<=a;){if((r=i+Math.floor((a-i)/2))===n||e>=t[r]&&e<t[r+1])return t[r];t[r]<e?i=r+1:a=r-1}}},{key:"_onLoad",value:function(e){if(this._status!==b.kError)if(this._waitForTotalLength)this._waitForTotalLength=!1;else{this._lastTimeLoaded=0;var t=this._speedSampler.lastSecondKBps;if(0===t&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(t=this._speedSampler.currentKBps)),0!==t){var n=this._normalizeSpeed(t);this._currentSpeedNormalized!==n&&(this._currentSpeedNormalized=n,this._currentChunkSizeKB=n)}var r=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=r.byteLength;var a=!1;null!=this._contentLength&&this._receivedLength<this._contentLength?this._openSubRange():a=!0,this._onDataArrival&&this._onDataArrival(r,i,this._receivedLength),a&&(this._status=b.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}}},{key:"_onXhrError",value:function(e){this._status=b.kError;var t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=y.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=y.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),!this._onError)throw new p(n.msg);this._onError(t,n)}}],[{key:"isSupported",value:function(){try{var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer","arraybuffer"===e.responseType}catch(e){return u.w("RangeLoader",e.message),!1}}}]),n}(_),A=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(){var e;return Object(r.a)(this,n),(e=t.call(this,"websocket-loader")).TAG="WebSocketLoader",e._needStash=!0,e._ws=null,e._requestAbort=!1,e._receivedLength=0,e}return Object(i.a)(n,[{key:"destroy",value:function(){this._ws&&this.abort(),E(Object(k.a)(n.prototype),"destroy",this).call(this)}},{key:"open",value:function(e){try{var 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=b.kConnecting}catch(e){this._status=b.kError;var n={code:e.code,msg:e.message};if(!this._onError)throw new p(n.msg);this._onError(y.EXCEPTION,n)}}},{key:"abort",value:function(){var e=this._ws;!e||0!==e.readyState&&1!==e.readyState||(this._requestAbort=!0,e.close()),this._ws=null,this._status=b.kComplete}},{key:"_onWebSocketOpen",value:function(e){this._status=b.kBuffering}},{key:"_onWebSocketClose",value:function(e){!0!==this._requestAbort?(this._status=b.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)):this._requestAbort=!1}},{key:"_onWebSocketMessage",value:function(e){var t=this;if(e.data instanceof ArrayBuffer)this._dispatchArrayBuffer(e.data);else if(e.data instanceof Blob){var n=new FileReader;n.onload=function(){t._dispatchArrayBuffer(n.result)},n.readAsArrayBuffer(e.data)}else{this._status=b.kError;var r={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(!this._onError)throw new p(r.msg);this._onError(y.EXCEPTION,r)}}},{key:"_dispatchArrayBuffer",value:function(e){var t=e,n=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}},{key:"_onWebSocketError",value:function(e){this._status=b.kError;var t={code:e.code,msg:e.message};if(!this._onError)throw new p(t.msg);this._onError(y.EXCEPTION,t)}}],[{key:"isSupported",value:function(){try{return void 0!==self.WebSocket}catch(e){return!1}}}]),n}(_),j=function(){function e(t){Object(r.a)(this,e),this._zeroStart=t||!1}return Object(i.a)(e,[{key:"getConfig",value:function(e,t){var n,r={};0!==t.from||-1!==t.to?(n=-1!==t.to?"bytes=".concat(t.from.toString(),"-").concat(t.to.toString()):"bytes=".concat(t.from.toString(),"-"),r.Range=n):this._zeroStart&&(r.Range="bytes=0-");return{url:e,headers:r}}},{key:"removeURLParameters",value:function(e){return e}}]),e}(),R=function(){function e(t,n){Object(r.a)(this,e),this._startName=t,this._endName=n}return Object(i.a)(e,[{key:"getConfig",value:function(e,t){var n=e;if(0!==t.from||-1!==t.to){var r=!0;-1===n.indexOf("?")&&(n+="?",r=!1),r&&(n+="&"),n+="".concat(this._startName,"=").concat(t.from.toString()),-1!==t.to&&(n+="&".concat(this._endName,"=").concat(t.to.toString()))}return{url:n,headers:{}}}},{key:"removeURLParameters",value:function(e){var t=e.split("?")[0],n=void 0,r=e.indexOf("?");-1!==r&&(n=e.substring(r+1));var i="";if(null!=n&&n.length>0)for(var a=n.split("&"),o=0;o<a.length;o++){var s=a[o].split("="),c=o>0;s[0]!==this._startName&&s[0]!==this._endName&&(c&&(i+="&"),i+=a[o])}return 0===i.length?t:t+"?"+i}}]),e}(),T=function(){function e(t,n,i){Object(r.a)(this,e),this.TAG="IOController",this._config=n,this._extraData=i,this._stashInitialSize=393216,null!=n.stashInitialSize&&n.stashInitialSize>0&&(this._stashInitialSize=n.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,!1===n.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=t,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(t.url),this._refTotalLength=t.filesize?t.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new d,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()}return Object(i.a)(e,[{key:"destroy",value:function(){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}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(e){this._extraData=e}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(e){this._onSeeked=e}},{key:"onError",get:function(){return this._onError},set:function(e){this._onError=e}},{key:"onComplete",get:function(){return this._onComplete},set:function(e){this._onComplete=e}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(e){this._onRedirect=e}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(e){this._onRecoveredEarlyEof=e}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return null!=this._redirectedURL||null!=this._dataSource.redirectedURL}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===x?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var e=this._config;if("range"===e.seekType)this._seekHandler=new j(this._config.rangeLoadZeroStart);else if("param"===e.seekType){var t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new R(t,n)}else{if("custom"!==e.seekType)throw new m("Invalid seekType in config: ".concat(e.seekType));if("function"!=typeof e.customSeekHandler)throw new m("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}}},{key:"_selectLoader",value:function(){if(null!=this._config.customLoader)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=A;else if(w.isSupported())this._loaderClass=w;else if(C.isSupported())this._loaderClass=C;else{if(!x.isSupported())throw new p("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=x}}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),!1===this._loader.needStashBuffer&&(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)}},{key:"open",value:function(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))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(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)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}}},{key:"seek",value:function(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)}},{key:"_internalSeek",value:function(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;var 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()}},{key:"updateUrl",value:function(e){if(!e||"string"!=typeof e||0===e.length)throw new m("Url must be a non-empty string!");this._dataSource.url=e}},{key:"_expandBuffer",value:function(e){for(var t=this._stashSize;t+1048576<e;)t*=2;if((t+=1048576)!==this._bufferSize){var n=new ArrayBuffer(t);if(this._stashUsed>0){var r=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,t).set(r,0)}this._stashBuffer=n,this._bufferSize=t}}},{key:"_normalizeSpeed",value:function(e){var t=this._speedNormalizeList,n=t.length-1,r=0,i=0,a=n;if(e<t[0])return t[0];for(;i<=a;){if((r=i+Math.floor((a-i)/2))===n||e>=t[r]&&e<t[r+1])return t[r];t[r]<e?i=r+1:a=r-1}}},{key:"_adjustStashSize",value:function(e){var t=0;(t=this._config.isLive||e<512?e:e>=512&&e<=1024?Math.floor(1.5*e):2*e)>8192&&(t=8192);var n=1024*t+1048576;this._bufferSize<n&&this._expandBuffer(n),this._stashSize=1024*t}},{key:"_dispatchChunks",value:function(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)}},{key:"_onURLRedirect",value:function(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)}},{key:"_onContentLengthKnown",value:function(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(e,t,n){if(!this._onDataArrival)throw new v("IOController: No existing consumer (onDataArrival) callback!");if(!this._paused){this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(e.byteLength);var r=this._speedSampler.lastSecondKBps;if(0!==r){var i=this._normalizeSpeed(r);this._speedNormalized!==i&&(this._speedNormalized=i,this._adjustStashSize(i))}if(this._enableStash)if(0===this._stashUsed&&0===this._stashByteStart&&(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{var a=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var o=this._stashBuffer.slice(0,this._stashUsed),s=this._dispatchChunks(o,this._stashByteStart);if(s<o.byteLength){if(s>0){var c=new Uint8Array(o,s);a.set(c,0),this._stashUsed=c.byteLength,this._stashByteStart+=s}}else this._stashUsed=0,this._stashByteStart+=s;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{var l=this._dispatchChunks(e,t);if(l<e.byteLength){var u=e.byteLength-l;u>this._bufferSize&&(this._expandBuffer(u),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e,l),0),this._stashUsed+=u,this._stashByteStart=t+l}}}else if(0===this._stashUsed){var d=this._dispatchChunks(e,t);if(d<e.byteLength){var h=e.byteLength-d;h>this._bufferSize&&this._expandBuffer(h),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,d),0),this._stashUsed+=h,this._stashByteStart=t+d}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);var f=new Uint8Array(this._stashBuffer,0,this._bufferSize);f.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;var p=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(p<this._stashUsed&&p>0){var m=new Uint8Array(this._stashBuffer,p);f.set(m,0)}this._stashUsed-=p,this._stashByteStart+=p}}}},{key:"_flushStashBuffer",value:function(e){if(this._stashUsed>0){var t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),r=t.byteLength-n;if(n<t.byteLength){if(!e){if(n>0){var i=new Uint8Array(this._stashBuffer,0,this._bufferSize),a=new Uint8Array(t,n);i.set(a,0),this._stashUsed=a.byteLength,this._stashByteStart+=n}return 0}u.w(this.TAG,"".concat(r," bytes unconsumed data remain when flush buffer, dropped"))}return this._stashUsed=0,this._stashByteStart=0,r}return 0}},{key:"_onLoaderComplete",value:function(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(e,t){switch(u.e(this.TAG,"Loader error, code = ".concat(t.code,", msg = ").concat(t.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=y.UNRECOVERABLE_EARLY_EOF),e){case y.EARLY_EOF:if(!this._config.isLive&&this._totalLength){var n=this._currentRange.to+1;return void(n<this._totalLength&&(u.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1)))}e=y.UNRECOVERABLE_EARLY_EOF}if(!this._onError)throw new p("IOException: "+t.msg);this._onError(e,t)}}]),e}(),D={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:180,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:180,autoCleanupMinBackwardDuration:120,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 L(){return Object.assign({},D)}var M=function(){function e(){Object(r.a)(this,e)}return Object(i.a)(e,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var e=new T({},L()),t=e.loaderType;return e.destroy(),"fetch-stream-loader"==t||"xhr-moz-chunked-loader"==t}},{key:"getNetworkLoaderTypeName",value:function(){var e=new T({},L()),t=e.loaderType;return e.destroy(),t}},{key:"supportNativeMediaPlayback",value:function(t){null==e.videoElement&&(e.videoElement=window.document.createElement("video"));var n=e.videoElement.canPlayType(t);return"probably"===n||"maybe"==n}},{key:"getFeatureList",value:function(){var t={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return t.mseFlvPlayback=e.supportMSEH264Playback(),t.networkStreamIO=e.supportNetworkStreamIO(),t.networkLoaderName=e.getNetworkLoaderTypeName(),t.mseLiveFlvPlayback=t.mseFlvPlayback&&t.networkStreamIO,t.nativeMP4H264Playback=e.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),t.nativeWebmVP8Playback=e.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),t.nativeWebmVP9Playback=e.supportNativeMediaPlayback('video/webm; codecs="vp9"'),t}}]),e}(),I={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"},N=function(){function e(){Object(r.a)(this,e)}return Object(i.a)(e,null,[{key:"forceGlobalTag",get:function(){return u.FORCE_GLOBAL_TAG},set:function(t){u.FORCE_GLOBAL_TAG=t,e._notifyChange()}},{key:"globalTag",get:function(){return u.GLOBAL_TAG},set:function(t){u.GLOBAL_TAG=t,e._notifyChange()}},{key:"enableAll",get:function(){return u.ENABLE_VERBOSE&&u.ENABLE_DEBUG&&u.ENABLE_INFO&&u.ENABLE_WARN&&u.ENABLE_ERROR},set:function(t){u.ENABLE_VERBOSE=t,u.ENABLE_DEBUG=t,u.ENABLE_INFO=t,u.ENABLE_WARN=t,u.ENABLE_ERROR=t,e._notifyChange()}},{key:"enableDebug",get:function(){return u.ENABLE_DEBUG},set:function(t){u.ENABLE_DEBUG=t,e._notifyChange()}},{key:"enableVerbose",get:function(){return u.ENABLE_VERBOSE},set:function(t){u.ENABLE_VERBOSE=t,e._notifyChange()}},{key:"enableInfo",get:function(){return u.ENABLE_INFO},set:function(t){u.ENABLE_INFO=t,e._notifyChange()}},{key:"enableWarn",get:function(){return u.ENABLE_WARN},set:function(t){u.ENABLE_WARN=t,e._notifyChange()}},{key:"enableError",get:function(){return u.ENABLE_ERROR},set:function(t){u.ENABLE_ERROR=t,e._notifyChange()}},{key:"getConfig",value:function(){return{globalTag:u.GLOBAL_TAG,forceGlobalTag:u.FORCE_GLOBAL_TAG,enableVerbose:u.ENABLE_VERBOSE,enableDebug:u.ENABLE_DEBUG,enableInfo:u.ENABLE_INFO,enableWarn:u.ENABLE_WARN,enableError:u.ENABLE_ERROR,enableCallback:u.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(e){u.GLOBAL_TAG=e.globalTag,u.FORCE_GLOBAL_TAG=e.forceGlobalTag,u.ENABLE_VERBOSE=e.enableVerbose,u.ENABLE_DEBUG=e.enableDebug,u.ENABLE_INFO=e.enableInfo,u.ENABLE_WARN=e.enableWarn,u.ENABLE_ERROR=e.enableError,u.ENABLE_CALLBACK=e.enableCallback}},{key:"_notifyChange",value:function(){var t=e.emitter;if(t.listenerCount("change")>0){var n=e.getConfig();t.emit("change",n)}}},{key:"registerListener",value:function(t){e.emitter.addListener("change",t)}},{key:"removeListener",value:function(t){e.emitter.removeListener("change",t)}},{key:"addLogListener",value:function(t){u.emitter.addListener("log",t),u.emitter.listenerCount("log")>0&&(u.ENABLE_CALLBACK=!0,e._notifyChange())}},{key:"removeLogListener",value:function(t){u.emitter.removeListener("log",t),0===u.emitter.listenerCount("log")&&(u.ENABLE_CALLBACK=!1,e._notifyChange())}}]),e}();N.emitter=new c.a;var P=N,B=function(){function e(){Object(r.a)(this,e),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}return Object(i.a)(e,[{key:"isComplete",value:function(){var e=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,t=!1===this.hasVideo||!0===this.hasVideo&&null!=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;return null!=this.mimeType&&null!=this.duration&&null!=this.metadata&&null!=this.hasKeyframesIndex&&e&&t}},{key:"isSeekable",value:function(){return!0===this.hasKeyframesIndex}},{key:"getNearestKeyframe",value:function(e){if(null==this.keyframesIndex)return null;var t=this.keyframesIndex,n=this._search(t.times,e);return{index:n,milliseconds:t.times[n],fileposition:t.filepositions[n]}}},{key:"_search",value:function(e,t){var n=0,r=e.length-1,i=0,a=0,o=r;for(t<e[0]&&(n=0,a=o+1);a<=o;){if((i=a+Math.floor((o-a)/2))===r||t>=e[i]&&t<e[i+1]){n=i;break}e[i]<t?a=i+1:o=i-1}return n}}]),e}();function K(e,t,n){var r=e;if(t+n<r.length){for(;n--;)if(128!=(192&r[++t]))return!1;return!0}return!1}var U,F=function(e){for(var t=[],n=e,r=0,i=e.length;r<i;)if(n[r]<128)t.push(String.fromCharCode(n[r])),++r;else{if(n[r]<192);else if(n[r]<224){if(K(n,r,1)){var a=(31&n[r])<<6|63&n[r+1];if(a>=128){t.push(String.fromCharCode(65535&a)),r+=2;continue}}}else if(n[r]<240){if(K(n,r,2)){var o=(15&n[r])<<12|(63&n[r+1])<<6|63&n[r+2];if(o>=2048&&55296!=(63488&o)){t.push(String.fromCharCode(65535&o)),r+=3;continue}}}else if(n[r]<248&&K(n,r,3)){var s=(7&n[r])<<18|(63&n[r+1])<<12|(63&n[r+2])<<6|63&n[r+3];if(s>65536&&s<1114112){s-=65536,t.push(String.fromCharCode(s>>>10|55296)),t.push(String.fromCharCode(1023&s|56320)),r+=4;continue}}t.push(String.fromCharCode(65533)),++r}return t.join("")},z=(U=new ArrayBuffer(2),new DataView(U).setInt16(0,256,!0),256===new Int16Array(U)[0]),V=function(){function e(){Object(r.a)(this,e)}return Object(i.a)(e,null,[{key:"parseScriptData",value:function(t,n,r){var i={};try{var a=e.parseValue(t,n,r),o=e.parseValue(t,n+a.size,r-a.size);i[a.data]=o.data}catch(e){u.e("AMF",e.toString())}return i}},{key:"parseObject",value:function(t,n,r){if(r<3)throw new v("Data not enough when parse ScriptDataObject");var i=e.parseString(t,n,r),a=e.parseValue(t,n+i.size,r-i.size),o=a.objectEnd;return{data:{name:i.data,value:a.data},size:i.size+a.size,objectEnd:o}}},{key:"parseVariable",value:function(t,n,r){return e.parseObject(t,n,r)}},{key:"parseString",value:function(e,t,n){if(n<2)throw new v("Data not enough when parse String");var r=new DataView(e,t,n).getUint16(0,!z);return{data:r>0?F(new Uint8Array(e,t+2,r)):"",size:2+r}}},{key:"parseLongString",value:function(e,t,n){if(n<4)throw new v("Data not enough when parse LongString");var r=new DataView(e,t,n).getUint32(0,!z);return{data:r>0?F(new Uint8Array(e,t+4,r)):"",size:4+r}}},{key:"parseDate",value:function(e,t,n){if(n<10)throw new v("Data size invalid when parse Date");var r=new DataView(e,t,n),i=r.getFloat64(0,!z),a=r.getInt16(8,!z);return{data:new Date(i+=60*a*1e3),size:10}}},{key:"parseValue",value:function(t,n,r){if(r<1)throw new v("Data not enough when parse Value");var i,a=new DataView(t,n,r),o=1,s=a.getUint8(0),c=!1;try{switch(s){case 0:i=a.getFloat64(1,!z),o+=8;break;case 1:i=!!a.getUint8(1),o+=1;break;case 2:var l=e.parseString(t,n+1,r-1);i=l.data,o+=l.size;break;case 3:i={};var d=0;for(9==(16777215&a.getUint32(r-4,!z))&&(d=3);o<r-4;){var h=e.parseObject(t,n+o,r-o-d);if(h.objectEnd)break;i[h.data.name]=h.data.value,o+=h.size}if(o<=r-3)9===(16777215&a.getUint32(o-1,!z))&&(o+=3);break;case 8:i={},o+=4;var f=0;for(9==(16777215&a.getUint32(r-4,!z))&&(f=3);o<r-8;){var p=e.parseVariable(t,n+o,r-o-f);if(p.objectEnd)break;i[p.data.name]=p.data.value,o+=p.size}if(o<=r-3)9===(16777215&a.getUint32(o-1,!z))&&(o+=3);break;case 9:i=void 0,o=1,c=!0;break;case 10:i=[];var m=a.getUint32(1,!z);o+=4;for(var g=0;g<m;g++){var b=e.parseValue(t,n+o,r-o);i.push(b.data),o+=b.size}break;case 11:var y=e.parseDate(t,n+1,r-1);i=y.data,o+=y.size;break;case 12:var _=e.parseString(t,n+1,r-1);i=_.data,o+=_.size;break;default:o=r,u.w("AMF","Unsupported AMF value type "+s)}}catch(e){u.e("AMF",e.toString())}return{data:i,size:o,objectEnd:c}}}]),e}(),H=function(){function e(t){Object(r.a)(this,e),this.TAG="ExpGolomb",this._buffer=t,this._buffer_index=0,this._total_bytes=t.byteLength,this._total_bits=8*t.byteLength,this._current_word=0,this._current_word_bits_left=0}return Object(i.a)(e,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var e=this._total_bytes-this._buffer_index;if(e<=0)throw new v("ExpGolomb: _fillCurrentWord() but no bytes available");var 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=8*t}},{key:"readBits",value:function(e){if(e>32)throw new m("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){var t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,t}var n=this._current_word_bits_left?this._current_word:0;n>>>=32-this._current_word_bits_left;var r=e-this._current_word_bits_left;this._fillCurrentWord();var i=Math.min(r,this._current_word_bits_left),a=this._current_word>>>32-i;return this._current_word<<=i,this._current_word_bits_left-=i,n=n<<i|a}},{key:"readBool",value:function(){return 1===this.readBits(1)}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var e;for(e=0;e<this._current_word_bits_left;e++)if(0!=(this._current_word&2147483648>>>e))return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}},{key:"readUEG",value:function(){var e=this._skipLeadingZero();return this.readBits(e+1)-1}},{key:"readSEG",value:function(){var e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)}}]),e}(),G=function(){function e(){Object(r.a)(this,e)}return Object(i.a)(e,null,[{key:"_ebsp2rbsp",value:function(e){for(var t=e,n=t.byteLength,r=new Uint8Array(n),i=0,a=0;a<n;a++)a>=2&&3===t[a]&&0===t[a-1]&&0===t[a-2]||(r[i]=t[a],i++);return new Uint8Array(r.buffer,0,i)}},{key:"parseSPS",value:function(t){var n=e._ebsp2rbsp(t),r=new H(n);r.readByte();var i=r.readByte();r.readByte();var a=r.readByte();r.readUEG();var o=e.getProfileString(i),s=e.getLevelString(a),c=1,l=420,u=8;if((100===i||110===i||122===i||244===i||44===i||83===i||86===i||118===i||128===i||138===i||144===i)&&(3===(c=r.readUEG())&&r.readBits(1),c<=3&&(l=[0,420,422,444][c]),u=r.readUEG()+8,r.readUEG(),r.readBits(1),r.readBool()))for(var d=3!==c?8:12,h=0;h<d;h++)r.readBool()&&(h<6?e._skipScalingList(r,16):e._skipScalingList(r,64));r.readUEG();var f=r.readUEG();if(0===f)r.readUEG();else if(1===f){r.readBits(1),r.readSEG(),r.readSEG();for(var p=r.readUEG(),v=0;v<p;v++)r.readSEG()}var m=r.readUEG();r.readBits(1);var g=r.readUEG(),b=r.readUEG(),y=r.readBits(1);0===y&&r.readBits(1),r.readBits(1);var _=0,k=0,E=0,O=0;r.readBool()&&(_=r.readUEG(),k=r.readUEG(),E=r.readUEG(),O=r.readUEG());var S=1,w=1,C=0,x=!0,A=0,j=0;if(r.readBool()){if(r.readBool()){var R=r.readByte();R>0&&R<16?(S=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][R-1],w=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][R-1]):255===R&&(S=r.readByte()<<8|r.readByte(),w=r.readByte()<<8|r.readByte())}if(r.readBool()&&r.readBool(),r.readBool()&&(r.readBits(4),r.readBool()&&r.readBits(24)),r.readBool()&&(r.readUEG(),r.readUEG()),r.readBool()){var T=r.readBits(32),D=r.readBits(32);x=r.readBool(),C=(A=D)/(j=2*T)}}var L=1;1===S&&1===w||(L=S/w);var M=0,I=0;0===c?(M=1,I=2-y):(M=3===c?1:2,I=(1===c?2:1)*(2-y));var N=16*(g+1),P=16*(b+1)*(2-y);N-=(_+k)*M,P-=(E+O)*I;var B=Math.ceil(N*L);return r.destroy(),r=null,{profile_string:o,level_string:s,bit_depth:u,ref_frames:m,chroma_format:l,chroma_format_string:e.getChromaFormatString(l),frame_rate:{fixed:x,fps:C,fps_den:j,fps_num:A},sar_ratio:{width:S,height:w},codec_size:{width:N,height:P},present_size:{width:B,height:P}}}},{key:"_skipScalingList",value:function(e,t){for(var n=8,r=8,i=0;i<t;i++)0!==r&&(r=(n+e.readSEG()+256)%256),n=0===r?n:r}},{key:"getProfileString",value:function(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"}}},{key:"getLevelString",value:function(e){return(e/10).toFixed(1)}},{key:"getChromaFormatString",value:function(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),e}(),W={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};var q=function(){function e(t,n){Object(r.a)(this,e),this.TAG="FLVDemuxer",this._config=n,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=t.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=t.hasAudioTrack,this._hasVideo=t.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new B,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(){var e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}()}return Object(i.a)(e,[{key:"destroy",value:function(){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}},{key:"bindDataSource",value:function(e){return e.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(e){this._onTrackMetadata=e}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(e){this._onMediaInfo=e}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(e){this._onMetaDataArrived=e}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(e){this._onScriptDataArrived=e}},{key:"onError",get:function(){return this._onError},set:function(e){this._onError=e}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(e){this._onDataAvailable=e}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(e){this._timestampBase=e}},{key:"overridedDuration",get:function(){return this._duration},set:function(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e}},{key:"overridedHasAudio",set:function(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e}},{key:"overridedHasVideo",set:function(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new B}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched}},{key:"parseChunks",value:function(t,n){if(!(this._onError&&this._onMediaInfo&&this._onTrackMetadata&&this._onDataAvailable))throw new v("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var r=0,i=this._littleEndian;if(0===n){if(!(t.byteLength>13))return 0;r=e.probe(t).dataOffset}this._firstParse&&(this._firstParse=!1,n+r!==this._dataOffset&&u.w(this.TAG,"First time parsing but chunk byteStart invalid!"),0!==new DataView(t,r).getUint32(0,!i)&&u.w(this.TAG,"PrevTagSize0 !== 0 !!!"),r+=4);for(;r<t.byteLength;){this._dispatch=!0;var a=new DataView(t,r);if(r+11+4>t.byteLength)break;var o=a.getUint8(0),s=16777215&a.getUint32(0,!i);if(r+11+s+4>t.byteLength)break;if(8===o||9===o||18===o){var c=a.getUint8(4),l=a.getUint8(5),d=a.getUint8(6)|l<<8|c<<16|a.getUint8(7)<<24;0!==(16777215&a.getUint32(7,!i))&&u.w(this.TAG,"Meet tag which has StreamID != 0!");var h=r+11;switch(o){case 8:this._parseAudioData(t,h,s,d);break;case 9:this._parseVideoData(t,h,s,d,n+r);break;case 18:this._parseScriptData(t,h,s)}var f=a.getUint32(11+s,!i);f!==11+s&&u.w(this.TAG,"Invalid PrevTagSize ".concat(f)),r+=11+s+4}else u.w(this.TAG,"Unsupported tag type ".concat(o,", skipped")),r+=11+s+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),r}},{key:"_parseScriptData",value:function(e,t,n){var r=V.parseScriptData(e,t,n);if(r.hasOwnProperty("onMetaData")){if(null==r.onMetaData||"object"!=typeof r.onMetaData)return void u.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&u.w(this.TAG,"Found another onMetaData tag!"),this._metadata=r;var i=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},i)),"boolean"==typeof i.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=i.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"==typeof i.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=i.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"==typeof i.audiodatarate&&(this._mediaInfo.audioDataRate=i.audiodatarate),"number"==typeof i.videodatarate&&(this._mediaInfo.videoDataRate=i.videodatarate),"number"==typeof i.width&&(this._mediaInfo.width=i.width),"number"==typeof i.height&&(this._mediaInfo.height=i.height),"number"==typeof i.duration){if(!this._durationOverrided){var a=Math.floor(i.duration*this._timescale);this._duration=a,this._mediaInfo.duration=a}}else this._mediaInfo.duration=0;if("number"==typeof i.framerate){var o=Math.floor(1e3*i.framerate);if(o>0){var s=o/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=s,this._referenceFrameRate.fps_num=o,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=s}}if("object"==typeof i.keyframes){this._mediaInfo.hasKeyframesIndex=!0;var c=i.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(c),i.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=i,u.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(r).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},r))}},{key:"_parseKeyframesIndex",value:function(e){for(var t=[],n=[],r=1;r<e.times.length;r++){var i=this._timestampBase+Math.floor(1e3*e.times[r]);t.push(i),n.push(e.filepositions[r])}return{times:t,filepositions:n}}},{key:"_parseAudioData",value:function(e,t,n,r){if(n<=1)u.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");else if(!0!==this._hasAudioFlagOverrided||!1!==this._hasAudio){this._littleEndian;var i=new DataView(e,t,n).getUint8(0),a=i>>>4;if(2===a||10===a){var o=0,s=(12&i)>>>2;if(s>=0&&s<=4){o=this._flvSoundRateTable[s];var c=1&i,l=this._audioMetadata,d=this._audioTrack;if(l||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),(l=this._audioMetadata={}).type="audio",l.id=d.id,l.timescale=this._timescale,l.duration=this._duration,l.audioSampleRate=o,l.channelCount=0===c?1:2),10===a){var h=this._parseAACAudioData(e,t+1,n-1);if(null==h)return;if(0===h.packetType){l.config&&u.w(this.TAG,"Found another AudioSpecificConfig!");var f=h.data;l.audioSampleRate=f.samplingRate,l.channelCount=f.channelCount,l.codec=f.codec,l.originalCodec=f.originalCodec,l.config=f.config,l.refSampleDuration=1024/l.audioSampleRate*l.timescale,u.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",l);var p=this._mediaInfo;p.audioCodec=l.originalCodec,p.audioSampleRate=l.audioSampleRate,p.audioChannelCount=l.channelCount,p.hasVideo?null!=p.videoCodec&&(p.mimeType='video/x-flv; codecs="'+p.videoCodec+","+p.audioCodec+'"'):p.mimeType='video/x-flv; codecs="'+p.audioCodec+'"',p.isComplete()&&this._onMediaInfo(p)}else if(1===h.packetType){var v=this._timestampBase+r,m={unit:h.data,length:h.data.byteLength,dts:v,pts:v};d.samples.push(m),d.length+=h.data.length}else u.e(this.TAG,"Flv: Unsupported AAC data type ".concat(h.packetType))}else if(2===a){if(!l.codec){var g=this._parseMP3AudioData(e,t+1,n-1,!0);if(null==g)return;l.audioSampleRate=g.samplingRate,l.channelCount=g.channelCount,l.codec=g.codec,l.originalCodec=g.originalCodec,l.refSampleDuration=1152/l.audioSampleRate*l.timescale,u.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",l);var b=this._mediaInfo;b.audioCodec=l.codec,b.audioSampleRate=l.audioSampleRate,b.audioChannelCount=l.channelCount,b.audioDataRate=g.bitRate,b.hasVideo?null!=b.videoCodec&&(b.mimeType='video/x-flv; codecs="'+b.videoCodec+","+b.audioCodec+'"'):b.mimeType='video/x-flv; codecs="'+b.audioCodec+'"',b.isComplete()&&this._onMediaInfo(b)}var y=this._parseMP3AudioData(e,t+1,n-1,!1);if(null==y)return;var _=this._timestampBase+r,k={unit:y,length:y.byteLength,dts:_,pts:_};d.samples.push(k),d.length+=y.length}}else this._onError(W.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+s)}else this._onError(W.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+a)}}},{key:"_parseAACAudioData",value:function(e,t,n){if(!(n<=1)){var r={},i=new Uint8Array(e,t,n);return r.packetType=i[0],0===i[0]?r.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):r.data=i.subarray(1),r}u.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")}},{key:"_parseAACAudioSpecificConfig",value:function(e,t,n){var r,i,a=new Uint8Array(e,t,n),o=null,s=0,c=null;if(s=r=a[0]>>>3,(i=(7&a[0])<<1|a[1]>>>7)<0||i>=this._mpegSamplingRates.length)this._onError(W.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var l=this._mpegSamplingRates[i],u=(120&a[1])>>>3;if(!(u<0||u>=8)){5===s&&(c=(7&a[1])<<1|a[2]>>>7,(124&a[2])>>>2);var d=self.navigator.userAgent.toLowerCase();return-1!==d.indexOf("firefox")?i>=6?(s=5,o=new Array(4),c=i-3):(s=2,o=new Array(2),c=i):-1!==d.indexOf("android")?(s=2,o=new Array(2),c=i):(s=5,c=i,o=new Array(4),i>=6?c=i-3:1===u&&(s=2,o=new Array(2),c=i)),o[0]=s<<3,o[0]|=(15&i)>>>1,o[1]=(15&i)<<7,o[1]|=(15&u)<<3,5===s&&(o[1]|=(15&c)>>>1,o[2]=(1&c)<<7,o[2]|=8,o[3]=0),{config:o,samplingRate:l,channelCount:u,codec:"mp4a.40."+s,originalCodec:"mp4a.40."+r}}this._onError(W.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}}},{key:"_parseMP3AudioData",value:function(e,t,n,r){if(!(n<4)){this._littleEndian;var i=new Uint8Array(e,t,n),a=null;if(r){if(255!==i[0])return;var o=i[1]>>>3&3,s=(6&i[1])>>1,c=(240&i[2])>>>4,l=(12&i[2])>>>2,d=3!==(i[3]>>>6&3)?2:1,h=0,f=0;switch(o){case 0:h=this._mpegAudioV25SampleRateTable[l];break;case 2:h=this._mpegAudioV20SampleRateTable[l];break;case 3:h=this._mpegAudioV10SampleRateTable[l]}switch(s){case 1:34,c<this._mpegAudioL3BitRateTable.length&&(f=this._mpegAudioL3BitRateTable[c]);break;case 2:33,c<this._mpegAudioL2BitRateTable.length&&(f=this._mpegAudioL2BitRateTable[c]);break;case 3:32,c<this._mpegAudioL1BitRateTable.length&&(f=this._mpegAudioL1BitRateTable[c])}a={bitRate:f,samplingRate:h,channelCount:d,codec:"mp3",originalCodec:"mp3"}}else a=i;return a}u.w(this.TAG,"Flv: Invalid MP3 packet, header missing!")}},{key:"_parseVideoData",value:function(e,t,n,r,i){if(n<=1)u.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");else if(!0!==this._hasVideoFlagOverrided||!1!==this._hasVideo){var a=new Uint8Array(e,t,n)[0],o=(240&a)>>>4,s=15&a;7===s?this._parseAVCVideoPacket(e,t+1,n-1,r,i,o):this._onError(W.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(s))}}},{key:"_parseAVCVideoPacket",value:function(e,t,n,r,i,a){if(n<4)u.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");else{var o=this._littleEndian,s=new DataView(e,t,n),c=s.getUint8(0),l=(16777215&s.getUint32(0,!o))<<8>>8;if(0===c)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(1===c)this._parseAVCVideoData(e,t+4,n-4,r,i,a,l);else if(2!==c)return void this._onError(W.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(c))}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(e,t,n){if(n<7)u.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var r=this._videoMetadata,i=this._videoTrack,a=this._littleEndian,o=new DataView(e,t,n);r?void 0!==r.avcc&&u.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),(r=this._videoMetadata={}).type="video",r.id=i.id,r.timescale=this._timescale,r.duration=this._duration);var s=o.getUint8(0),c=o.getUint8(1);o.getUint8(2),o.getUint8(3);if(1===s&&0!==c)if(this._naluLengthSize=1+(3&o.getUint8(4)),3===this._naluLengthSize||4===this._naluLengthSize){var l=31&o.getUint8(5);if(0!==l){l>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(l));for(var d=6,h=0;h<l;h++){var f=o.getUint16(d,!a);if(d+=2,0!==f){var p=new Uint8Array(e,t+d,f);d+=f;var v=G.parseSPS(p);if(0===h){r.codecWidth=v.codec_size.width,r.codecHeight=v.codec_size.height,r.presentWidth=v.present_size.width,r.presentHeight=v.present_size.height,r.profile=v.profile_string,r.level=v.level_string,r.bitDepth=v.bit_depth,r.chromaFormat=v.chroma_format,r.sarRatio=v.sar_ratio,r.frameRate=v.frame_rate,!1!==v.frame_rate.fixed&&0!==v.frame_rate.fps_num&&0!==v.frame_rate.fps_den||(r.frameRate=this._referenceFrameRate);var m=r.frameRate.fps_den,g=r.frameRate.fps_num;r.refSampleDuration=r.timescale*(m/g);for(var b=p.subarray(1,4),y="avc1.",_=0;_<3;_++){var k=b[_].toString(16);k.length<2&&(k="0"+k),y+=k}r.codec=y;var E=this._mediaInfo;E.width=r.codecWidth,E.height=r.codecHeight,E.fps=r.frameRate.fps,E.profile=r.profile,E.level=r.level,E.refFrames=v.ref_frames,E.chromaFormat=v.chroma_format_string,E.sarNum=r.sarRatio.width,E.sarDen=r.sarRatio.height,E.videoCodec=y,E.hasAudio?null!=E.audioCodec&&(E.mimeType='video/x-flv; codecs="'+E.videoCodec+","+E.audioCodec+'"'):E.mimeType='video/x-flv; codecs="'+E.videoCodec+'"',E.isComplete()&&this._onMediaInfo(E)}}}var O=o.getUint8(d);if(0!==O){O>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(O)),d++;for(var S=0;S<O;S++){var w=o.getUint16(d,!a);d+=2,0!==w&&(d+=w)}r.avcc=new Uint8Array(n),r.avcc.set(new Uint8Array(e,t,n),0),u.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",r)}else this._onError(W.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS")}else this._onError(W.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS")}else this._onError(W.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));else this._onError(W.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord")}}},{key:"_parseAVCVideoData",value:function(e,t,n,r,i,a,o){for(var s=this._littleEndian,c=new DataView(e,t,n),l=[],d=0,h=0,f=this._naluLengthSize,p=this._timestampBase+r,v=1===a;h<n;){if(h+4>=n){u.w(this.TAG,"Malformed Nalu near timestamp ".concat(p,", offset = ").concat(h,", dataSize = ").concat(n));break}var m=c.getUint32(h,!s);if(3===f&&(m>>>=8),m>n-f)return void u.w(this.TAG,"Malformed Nalus near timestamp ".concat(p,", NaluSize > DataSize!"));var g=31&c.getUint8(h+f);5===g&&(v=!0);var b=new Uint8Array(e,t+h,f+m),y={type:g,data:b};l.push(y),d+=b.byteLength,h+=f+m}if(l.length){var _=this._videoTrack,k={units:l,length:d,isKeyframe:v,dts:p,cts:o,pts:p+o};v&&(k.fileposition=i),_.samples.push(k),_.length+=d}}}],[{key:"probe",value:function(e){var t=new Uint8Array(e),n={match:!1};if(70!==t[0]||76!==t[1]||86!==t[2]||1!==t[3])return n;var r,i,a=(4&t[4])>>>2!=0,o=0!=(1&t[4]),s=(r=t)[i=5]<<24|r[i+1]<<16|r[i+2]<<8|r[i+3];return s<9?n:{match:!0,consumed:s,dataOffset:s,hasAudioTrack:a,hasVideoTrack:o}}}]),e}(),X=function(){function e(){Object(r.a)(this,e)}return Object(i.a)(e,null,[{key:"init",value:function(){for(var t in e.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":[]},e.types)e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var n=e.constants={};n.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),n.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),n.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),n.STSC=n.STCO=n.STTS,n.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),n.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]),n.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]),n.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),n.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),n.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(e){for(var t=8,n=null,r=Array.prototype.slice.call(arguments,1),i=r.length,a=0;a<i;a++)t+=r[a].byteLength;(n=new Uint8Array(t))[0]=t>>>24&255,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n.set(e,4);for(var o=8,s=0;s<i;s++)n.set(r[s],o),o+=r[s].byteLength;return n}},{key:"generateInitSegment",value:function(t){var n=e.box(e.types.ftyp,e.constants.FTYP),r=e.moov(t),i=new Uint8Array(n.byteLength+r.byteLength);return i.set(n,0),i.set(r,n.byteLength),i}},{key:"moov",value:function(t){var n=e.mvhd(t.timescale,t.duration),r=e.trak(t),i=e.mvex(t);return e.box(e.types.moov,n,r,i)}},{key:"mvhd",value:function(t,n){return e.box(e.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,n>>>24&255,n>>>16&255,n>>>8&255,255&n,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]))}},{key:"trak",value:function(t){return e.box(e.types.trak,e.tkhd(t),e.mdia(t))}},{key:"tkhd",value:function(t){var n=t.id,r=t.duration,i=t.presentWidth,a=t.presentHeight;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r,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,255&i,0,0,a>>>8&255,255&a,0,0]))}},{key:"mdia",value:function(t){return e.box(e.types.mdia,e.mdhd(t),e.hdlr(t),e.minf(t))}},{key:"mdhd",value:function(t){var n=t.timescale,r=t.duration;return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,85,196,0,0]))}},{key:"hdlr",value:function(t){var n=null;return n="audio"===t.type?e.constants.HDLR_AUDIO:e.constants.HDLR_VIDEO,e.box(e.types.hdlr,n)}},{key:"minf",value:function(t){var n=null;return n="audio"===t.type?e.box(e.types.smhd,e.constants.SMHD):e.box(e.types.vmhd,e.constants.VMHD),e.box(e.types.minf,n,e.dinf(),e.stbl(t))}},{key:"dinf",value:function(){return e.box(e.types.dinf,e.box(e.types.dref,e.constants.DREF))}},{key:"stbl",value:function(t){return e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.constants.STTS),e.box(e.types.stsc,e.constants.STSC),e.box(e.types.stsz,e.constants.STSZ),e.box(e.types.stco,e.constants.STCO))}},{key:"stsd",value:function(t){return"audio"===t.type?"mp3"===t.codec?e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp3(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp4a(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.avc1(t))}},{key:"mp3",value:function(t){var n=t.channelCount,r=t.audioSampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,r>>>8&255,255&r,0,0]);return e.box(e.types[".mp3"],i)}},{key:"mp4a",value:function(t){var n=t.channelCount,r=t.audioSampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,r>>>8&255,255&r,0,0]);return e.box(e.types.mp4a,i,e.esds(t))}},{key:"esds",value:function(t){var n=t.config||[],r=n.length,i=new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([r]).concat(n).concat([6,1,2]));return e.box(e.types.esds,i)}},{key:"avc1",value:function(t){var n=t.avcc,r=t.codecWidth,i=t.codecHeight,a=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,r>>>8&255,255&r,i>>>8&255,255&i,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 e.box(e.types.avc1,a,e.box(e.types.avcC,n))}},{key:"mvex",value:function(t){return e.box(e.types.mvex,e.trex(t))}},{key:"trex",value:function(t){var n=t.id,r=new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return e.box(e.types.trex,r)}},{key:"moof",value:function(t,n){return e.box(e.types.moof,e.mfhd(t.sequenceNumber),e.traf(t,n))}},{key:"mfhd",value:function(t){var n=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t]);return e.box(e.types.mfhd,n)}},{key:"traf",value:function(t,n){var r=t.id,i=e.box(e.types.tfhd,new Uint8Array([0,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r])),a=e.box(e.types.tfdt,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n])),o=e.sdtp(t),s=e.trun(t,o.byteLength+16+16+8+16+8+8);return e.box(e.types.traf,i,a,s,o)}},{key:"sdtp",value:function(t){for(var n=t.samples||[],r=n.length,i=new Uint8Array(4+r),a=0;a<r;a++){var o=n[a].flags;i[a+4]=o.isLeading<<6|o.dependsOn<<4|o.isDependedOn<<2|o.hasRedundancy}return e.box(e.types.sdtp,i)}},{key:"trun",value:function(t,n){var r=t.samples||[],i=r.length,a=12+16*i,o=new Uint8Array(a);n+=8+a,o.set([0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,255&i,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0);for(var s=0;s<i;s++){var c=r[s].duration,l=r[s].size,u=r[s].flags,d=r[s].cts;o.set([c>>>24&255,c>>>16&255,c>>>8&255,255&c,l>>>24&255,l>>>16&255,l>>>8&255,255&l,u.isLeading<<2|u.dependsOn,u.isDependedOn<<6|u.hasRedundancy<<4|u.isNonSync,0,0,d>>>24&255,d>>>16&255,d>>>8&255,255&d],12+16*s)}return e.box(e.types.trun,o)}},{key:"mdat",value:function(t){return e.box(e.types.mdat,t)}}]),e}();X.init();var Y=X,Z=function(){function e(){Object(r.a)(this,e)}return Object(i.a)(e,null,[{key:"getSilentFrame",value:function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)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(6===t)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(1===t)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(2===t)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(3===t)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}}]),e}(),Q=function e(t,n,i,a,o){Object(r.a)(this,e),this.dts=t,this.pts=n,this.duration=i,this.originalDts=a,this.isSyncPoint=o,this.fileposition=null},J=function(){function e(){Object(r.a)(this,e),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}return Object(i.a)(e,[{key:"appendSyncPoint",value:function(e){e.isSyncPoint=!0,this.syncPoints.push(e)}}]),e}(),$=function(){function e(){Object(r.a)(this,e),this._list=[]}return Object(i.a)(e,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(e){var t=this._list;0!==e.length&&(t.length>0&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))}},{key:"getLastSyncPointBeforeDts",value:function(e){if(0==this._list.length)return null;var t=this._list,n=0,r=t.length-1,i=0,a=0,o=r;for(e<t[0].dts&&(n=0,a=o+1);a<=o;){if((i=a+Math.floor((o-a)/2))===r||e>=t[i].dts&&e<t[i+1].dts){n=i;break}t[i].dts<e?a=i+1:o=i-1}return this._list[n]}}]),e}(),ee=function(){function e(t){Object(r.a)(this,e),this._type=t,this._list=[],this._lastAppendLocation=-1}return Object(i.a)(e,[{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._list.length}},{key:"isEmpty",value:function(){return 0===this._list.length}},{key:"clear",value:function(){this._list=[],this._lastAppendLocation=-1}},{key:"_searchNearestSegmentBefore",value:function(e){var t=this._list;if(0===t.length)return-2;var n=t.length-1,r=0,i=0,a=n,o=0;if(e<t[0].originalBeginDts)return o=-1;for(;i<=a;){if((r=i+Math.floor((a-i)/2))===n||e>t[r].lastSample.originalDts&&e<t[r+1].originalBeginDts){o=r;break}t[r].originalBeginDts<e?i=r+1:a=r-1}return o}},{key:"_searchNearestSegmentAfter",value:function(e){return this._searchNearestSegmentBefore(e)+1}},{key:"append",value:function(e){var t=this._list,n=e,r=this._lastAppendLocation,i=0;-1!==r&&r<t.length&&n.originalBeginDts>=t[r].lastSample.originalDts&&(r===t.length-1||r<t.length-1&&n.originalBeginDts<t[r+1].originalBeginDts)?i=r+1:t.length>0&&(i=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=i,this._list.splice(i,0,n)}},{key:"getLastSegmentBefore",value:function(e){var t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null}},{key:"getLastSampleBefore",value:function(e){var t=this.getLastSegmentBefore(e);return null!=t?t.lastSample:null}},{key:"getLastSyncPointBefore",value:function(e){for(var t=this._searchNearestSegmentBefore(e),n=this._list[t].syncPoints;0===n.length&&t>0;)t--,n=this._list[t].syncPoints;return n.length>0?n[n.length-1]:null}}]),e}(),te=function(){function e(t){Object(r.a)(this,e),this.TAG="MP4Remuxer",this._config=t,this._isLive=!0===t.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new ee("audio"),this._videoSegmentInfoList=new ee("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!S.chrome||!(S.version.major<50||50===S.version.major&&S.version.build<2661)),this._fillSilentAfterSeek=S.msedge||S.msie,this._mp3UseMpegAudio=!S.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(i.a)(e,[{key:"destroy",value:function(){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}},{key:"bindDataSource",value:function(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(e){this._onInitSegment=e}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(e){this._onMediaSegment=e}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(e,t){if(!this._onMediaSegment)throw new v("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}},{key:"_onTrackMetadataReceived",value:function(e,t){var n=null,r="mp4",i=t.codec;if("audio"===e)this._audioMeta=t,"mp3"===t.codec&&this._mp3UseMpegAudio?(r="mpeg",i="",n=new Uint8Array):n=Y.generateInitSegment(t);else{if("video"!==e)return;this._videoMeta=t,n=Y.generateInitSegment(t)}if(!this._onInitSegment)throw new v("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:i,container:"".concat(e,"/").concat(r),mediaDuration:t.duration})}},{key:"_calculateDtsBase",value:function(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)}},{key:"flushStashedSamples",value:function(){var e=this._videoStashedLastSample,t=this._audioStashedLastSample,n={type:"video",id:1,sequenceNumber:0,samples:[],length:0};null!=e&&(n.samples.push(e),n.length=e.length);var r={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};null!=t&&(r.samples.push(t),r.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(r,!0)}},{key:"_remuxAudio",value:function(e,t){if(null!=this._audioMeta){var n,r=e,i=r.samples,a=void 0,o=-1,s=this._audioMeta.refSampleDuration,c="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,l=this._dtsBaseInited&&void 0===this._audioNextDts,d=!1;if(i&&0!==i.length&&(1!==i.length||t)){var h=0,f=null,p=0;c?(h=0,p=r.length):(h=8,p=8+r.length);var v=null;if(i.length>1&&(p-=(v=i.pop()).length),null!=this._audioStashedLastSample){var m=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(m),p+=m.length}null!=v&&(this._audioStashedLastSample=v);var g=i[0].dts-this._dtsBase;if(this._audioNextDts)a=g-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())a=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(d=!0);else{var b=this._audioSegmentInfoList.getLastSampleBefore(g);if(null!=b){var y=g-(b.originalDts+b.duration);y<=3&&(y=0),a=g-(b.dts+b.duration+y)}else a=0}if(d){var _=g-a,k=this._videoSegmentInfoList.getLastSegmentBefore(g);if(null!=k&&k.beginDts<_){var E=Z.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(E){var O=k.beginDts,w=_-k.beginDts;u.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(O,", duration: ").concat(w)),i.unshift({unit:E,dts:O,pts:O}),p+=E.byteLength}}else d=!1}for(var C=[],x=0;x<i.length;x++){var A=i[x],j=A.unit,R=A.dts-this._dtsBase,T=R-a;-1===o&&(o=T);var D=0;if(x!==i.length-1)D=i[x+1].dts-this._dtsBase-a-T;else if(null!=v)D=v.dts-this._dtsBase-a-T;else D=C.length>=1?C[C.length-1].duration:Math.floor(s);var L=!1,M=null;if(D>1.5*s&&"mp3"!==this._audioMeta.codec&&this._fillAudioTimestampGap&&!S.safari){L=!0;var I=Math.abs(D-s),N=Math.ceil(I/s),P=T+s;u.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\n"+"dts: ".concat(T+D," ms, expected: ").concat(T+Math.round(s)," ms, ")+"delta: ".concat(Math.round(I)," ms, generate: ").concat(N," frames"));var B=Z.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);null==B&&(u.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),B=j),M=[];for(var K=0;K<N;K++){var U=Math.round(P);if(M.length>0){var F=M[M.length-1];F.duration=U-F.dts}var z={dts:U,pts:U,cts:0,unit:B,size:B.byteLength,duration:0,originalDts:R,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};M.push(z),p+=z.size,P+=s}var V=M[M.length-1];V.duration=T+D-V.dts,D=Math.round(s)}C.push({dts:T,pts:T,cts:0,unit:A.unit,size:A.unit.byteLength,duration:D,originalDts:R,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),L&&C.push.apply(C,M)}c?f=new Uint8Array(p):((f=new Uint8Array(p))[0]=p>>>24&255,f[1]=p>>>16&255,f[2]=p>>>8&255,f[3]=255&p,f.set(Y.types.mdat,4));for(var H=0;H<C.length;H++){var G=C[H].unit;f.set(G,h),h+=G.byteLength}var W=C[C.length-1];n=W.dts+W.duration,this._audioNextDts=n;var q=new J;q.beginDts=o,q.endDts=n,q.beginPts=o,q.endPts=n,q.originalBeginDts=C[0].originalDts,q.originalEndDts=W.originalDts+W.duration,q.firstSample=new Q(C[0].dts,C[0].pts,C[0].duration,C[0].originalDts,!1),q.lastSample=new Q(W.dts,W.pts,W.duration,W.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(q),r.samples=C,r.sequenceNumber++;var X=null;X=c?new Uint8Array:Y.moof(r,o),r.samples=[],r.length=0;var $={type:"audio",data:this._mergeBoxes(X,f).buffer,sampleCount:C.length,info:q};c&&l&&($.timestampOffset=o),this._onMediaSegment("audio",$)}}}},{key:"_remuxVideo",value:function(e,t){if(null!=this._videoMeta){var n,r,i=e,a=i.samples,o=void 0,s=-1,c=-1;if(a&&0!==a.length&&(1!==a.length||t)){var l=8,u=null,d=8+e.length,h=null;if(a.length>1&&(d-=(h=a.pop()).length),null!=this._videoStashedLastSample){var f=this._videoStashedLastSample;this._videoStashedLastSample=null,a.unshift(f),d+=f.length}null!=h&&(this._videoStashedLastSample=h);var p=a[0].dts-this._dtsBase;if(this._videoNextDts)o=p-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())o=0;else{var v=this._videoSegmentInfoList.getLastSampleBefore(p);if(null!=v){var m=p-(v.originalDts+v.duration);m<=3&&(m=0),o=p-(v.dts+v.duration+m)}else o=0}for(var g=new J,b=[],y=0;y<a.length;y++){var _=a[y],k=_.dts-this._dtsBase,E=_.isKeyframe,O=k-o,S=_.cts,w=O+S;-1===s&&(s=O,c=w);var C=0;if(y!==a.length-1)C=a[y+1].dts-this._dtsBase-o-O;else if(null!=h)C=h.dts-this._dtsBase-o-O;else C=b.length>=1?b[b.length-1].duration:Math.floor(this._videoMeta.refSampleDuration);if(E){var x=new Q(O,w,C,_.dts,!0);x.fileposition=_.fileposition,g.appendSyncPoint(x)}b.push({dts:O,pts:w,cts:S,units:_.units,size:_.length,isKeyframe:E,duration:C,originalDts:k,flags:{isLeading:0,dependsOn:E?2:1,isDependedOn:E?1:0,hasRedundancy:0,isNonSync:E?0:1}})}(u=new Uint8Array(d))[0]=d>>>24&255,u[1]=d>>>16&255,u[2]=d>>>8&255,u[3]=255&d,u.set(Y.types.mdat,4);for(var A=0;A<b.length;A++)for(var j=b[A].units;j.length;){var R=j.shift().data;u.set(R,l),l+=R.byteLength}var T=b[b.length-1];if(n=T.dts+T.duration,r=T.pts+T.duration,this._videoNextDts=n,g.beginDts=s,g.endDts=n,g.beginPts=c,g.endPts=r,g.originalBeginDts=b[0].originalDts,g.originalEndDts=T.originalDts+T.duration,g.firstSample=new Q(b[0].dts,b[0].pts,b[0].duration,b[0].originalDts,b[0].isKeyframe),g.lastSample=new Q(T.dts,T.pts,T.duration,T.originalDts,T.isKeyframe),this._isLive||this._videoSegmentInfoList.append(g),i.samples=b,i.sequenceNumber++,this._forceFirstIDR){var D=b[0].flags;D.dependsOn=2,D.isNonSync=0}var L=Y.moof(i,s);i.samples=[],i.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(L,u).buffer,sampleCount:b.length,info:g})}}}},{key:"_mergeBoxes",value:function(e,t){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}]),e}(),ne={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"},re=function(){function e(t,n){Object(r.a)(this,e),this.TAG="TransmuxingController",this._emitter=new c.a,this._config=n,t.segments||(t.segments=[{duration:t.duration,filesize:t.filesize,url:t.url}]),"boolean"!=typeof t.cors&&(t.cors=!0),"boolean"!=typeof t.withCredentials&&(t.withCredentials=!1),this._mediaDataSource=t,this._currentSegmentIndex=0;var i=0;this._mediaDataSource.segments.forEach((function(e){e.timestampBase=i,i+=e.duration,e.cors=t.cors,e.withCredentials=t.withCredentials,n.referrerPolicy&&(e.referrerPolicy=n.referrerPolicy)})),isNaN(i)||this._mediaDataSource.duration===i||(this._mediaDataSource.duration=i),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(i.a)(e,[{key:"destroy",value:function(){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}},{key:"on",value:function(e,t){this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(e,t){this._currentSegmentIndex=e;var n=this._mediaDataSource.segments[e],r=this._ioctl=new T(n,this._config,e);r.onError=this._onIOException.bind(this),r.onSeeked=this._onIOSeeked.bind(this),r.onComplete=this._onIOComplete.bind(this),r.onRedirect=this._onIORedirect.bind(this),r.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):r.onDataArrival=this._onInitChunkArrival.bind(this),r.open(t)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(e){if(null!=this._mediaInfo&&this._mediaInfo.isSeekable()){var t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){var n=this._mediaInfo.segments[t];if(null==n)this._pendingSeekTime=e;else{var r=n.getNearestKeyframe(e);this._remuxer.seek(r.milliseconds),this._ioctl.seek(r.fileposition),this._pendingResolveSeekPoint=r.milliseconds}}else{var i=this._mediaInfo.segments[t];if(null==i)this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t);else{var a=i.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,a.fileposition),this._pendingResolveSeekPoint=a.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}}},{key:"_searchSegmentIndexContains",value:function(e){for(var t=this._mediaDataSource.segments,n=t.length-1,r=0;r<t.length;r++)if(e<t[r].timestampBase){n=r-1;break}return n}},{key:"_onInitChunkArrival",value:function(e,t){var n=this,r=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((r=q.probe(e)).match){this._demuxer=new q(r,this._config),this._remuxer||(this._remuxer=new te(this._config));var a=this._mediaDataSource;null==a.duration||isNaN(a.duration)||(this._demuxer.overridedDuration=a.duration),"boolean"==typeof a.hasAudio&&(this._demuxer.overridedHasAudio=a.hasAudio),"boolean"==typeof a.hasVideo&&(this._demuxer.overridedHasVideo=a.hasVideo),this._demuxer.timestampBase=a.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 r=null,u.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then((function(){n._internalAbort()})),this._emitter.emit(ne.DEMUX_ERROR,W.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),i=0;return i}},{key:"_onMediaInfo",value:function(e){var t=this;null==this._mediaInfo&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,B.prototype));var n=Object.assign({},e);Object.setPrototypeOf(n,B.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=n,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then((function(){var e=t._pendingSeekTime;t._pendingSeekTime=null,t.seek(e)}))}},{key:"_onMetaDataArrived",value:function(e){this._emitter.emit(ne.METADATA_ARRIVED,e)}},{key:"_onScriptDataArrived",value:function(e){this._emitter.emit(ne.SCRIPTDATA_ARRIVED,e)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(e){var t=e+1;t<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(t)):(this._remuxer.flushStashedSamples(),this._emitter.emit(ne.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(e){var t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(ne.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(e,t){u.e(this.TAG,"IOException: type = ".concat(e,", code = ").concat(t.code,", msg = ").concat(t.msg)),this._emitter.emit(ne.IO_ERROR,e,t),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(e,t){u.e(this.TAG,"DemuxException: type = ".concat(e,", info = ").concat(t)),this._emitter.emit(ne.DEMUX_ERROR,e,t)}},{key:"_onRemuxerInitSegmentArrival",value:function(e,t){this._emitter.emit(ne.INIT_SEGMENT,e,t)}},{key:"_onRemuxerMediaSegmentArrival",value:function(e,t){if(null==this._pendingSeekTime&&(this._emitter.emit(ne.MEDIA_SEGMENT,e,t),null!=this._pendingResolveSeekPoint&&"video"===e)){var n=t.info.syncPoints,r=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,S.safari&&n.length>0&&n[0].originalDts===r&&(r=n[0].pts),this._emitter.emit(ne.RECOMMEND_SEEKPOINT,r)}}},{key:"_enableStatisticsReporter",value:function(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(e){var 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(ne.MEDIA_INFO,n)}},{key:"_reportStatisticsInfo",value:function(){var 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(ne.STATISTICS_INFO,e)}}]),e}(),ie=function(e){var t=null,n=function(t,n){e.postMessage({msg:"logcat_callback",data:{type:t,logcat:n}})}.bind(this);function r(t,n){var r={msg:ne.INIT_SEGMENT,data:{type:t,data:n}};e.postMessage(r,[n.data])}function i(t,n){var r={msg:ne.MEDIA_SEGMENT,data:{type:t,data:n}};e.postMessage(r,[n.data])}function a(){var t={msg:ne.LOADING_COMPLETE};e.postMessage(t)}function s(){var t={msg:ne.RECOVERED_EARLY_EOF};e.postMessage(t)}function c(t){var n={msg:ne.MEDIA_INFO,data:t};e.postMessage(n)}function l(t){var n={msg:ne.METADATA_ARRIVED,data:t};e.postMessage(n)}function u(t){var n={msg:ne.SCRIPTDATA_ARRIVED,data:t};e.postMessage(n)}function d(t){var n={msg:ne.STATISTICS_INFO,data:t};e.postMessage(n)}function h(t,n){e.postMessage({msg:ne.IO_ERROR,data:{type:t,info:n}})}function f(t,n){e.postMessage({msg:ne.DEMUX_ERROR,data:{type:t,info:n}})}function p(t){e.postMessage({msg:ne.RECOMMEND_SEEKPOINT,data:t})}o.install(),e.addEventListener("message",(function(o){switch(o.data.cmd){case"init":(t=new re(o.data.param[0],o.data.param[1])).on(ne.IO_ERROR,h.bind(this)),t.on(ne.DEMUX_ERROR,f.bind(this)),t.on(ne.INIT_SEGMENT,r.bind(this)),t.on(ne.MEDIA_SEGMENT,i.bind(this)),t.on(ne.LOADING_COMPLETE,a.bind(this)),t.on(ne.RECOVERED_EARLY_EOF,s.bind(this)),t.on(ne.MEDIA_INFO,c.bind(this)),t.on(ne.METADATA_ARRIVED,l.bind(this)),t.on(ne.SCRIPTDATA_ARRIVED,u.bind(this)),t.on(ne.STATISTICS_INFO,d.bind(this)),t.on(ne.RECOMMEND_SEEKPOINT,p.bind(this));break;case"destroy":t&&(t.destroy(),t=null),e.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(o.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":var v=o.data.param;P.applyConfig(v),!0===v.enableCallback?P.addLogListener(n):P.removeLogListener(n)}}))},ae=function(){function e(t,i){if(Object(r.a)(this,e),this.TAG="Transmuxer",this._emitter=new c.a,i.enableWorker&&"undefined"!=typeof Worker)try{var a=n(/*! webworkify */"0r65");this._worker=a(ie),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[t,i]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},P.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:P.getConfig()})}catch(e){u.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new re(t,i)}else this._controller=new re(t,i);if(this._controller){var o=this._controller;o.on(ne.IO_ERROR,this._onIOError.bind(this)),o.on(ne.DEMUX_ERROR,this._onDemuxError.bind(this)),o.on(ne.INIT_SEGMENT,this._onInitSegment.bind(this)),o.on(ne.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),o.on(ne.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),o.on(ne.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),o.on(ne.MEDIA_INFO,this._onMediaInfo.bind(this)),o.on(ne.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),o.on(ne.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),o.on(ne.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),o.on(ne.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(i.a)(e,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),P.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"hasWorker",value:function(){return null!=this._worker}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(ne.INIT_SEGMENT,e,t)}))}},{key:"_onMediaSegment",value:function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(ne.MEDIA_SEGMENT,e,t)}))}},{key:"_onLoadingComplete",value:function(){var e=this;Promise.resolve().then((function(){e._emitter.emit(ne.LOADING_COMPLETE)}))}},{key:"_onRecoveredEarlyEof",value:function(){var e=this;Promise.resolve().then((function(){e._emitter.emit(ne.RECOVERED_EARLY_EOF)}))}},{key:"_onMediaInfo",value:function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(ne.MEDIA_INFO,e)}))}},{key:"_onMetaDataArrived",value:function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(ne.METADATA_ARRIVED,e)}))}},{key:"_onScriptDataArrived",value:function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(ne.SCRIPTDATA_ARRIVED,e)}))}},{key:"_onStatisticsInfo",value:function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(ne.STATISTICS_INFO,e)}))}},{key:"_onIOError",value:function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(ne.IO_ERROR,e,t)}))}},{key:"_onDemuxError",value:function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(ne.DEMUX_ERROR,e,t)}))}},{key:"_onRecommendSeekpoint",value:function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(ne.RECOMMEND_SEEKPOINT,e)}))}},{key:"_onLoggingConfigChanged",value:function(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})}},{key:"_onWorkerMessage",value:function(e){var t=e.data,n=t.data;if("destroyed"===t.msg||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(t.msg){case ne.INIT_SEGMENT:case ne.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case ne.LOADING_COMPLETE:case ne.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case ne.MEDIA_INFO:Object.setPrototypeOf(n,B.prototype),this._emitter.emit(t.msg,n);break;case ne.METADATA_ARRIVED:case ne.SCRIPTDATA_ARRIVED:case ne.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case ne.IO_ERROR:case ne.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case ne.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":u.emitter.emit("log",n.type,n.logcat)}}}]),e}(),oe={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},se=function(){function e(t){Object(r.a)(this,e),this.TAG="MSEController",this._config=t,this._emitter=new c.a,this._config.isLive&&null==this._config.autoCleanupSourceBuffer&&(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 $}return Object(i.a)(e,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"attachMediaElement",value:function(e){if(this._mediaSource)throw new v("MediaSource has been attached to an HTMLMediaElement!");var 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}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var e=this._mediaSource;for(var t in this._sourceBuffers){var n=this._pendingSegments[t];n.splice(0,n.length),this._pendingSegments[t]=null,this._pendingRemoveRanges[t]=null,this._lastInitSegments[t]=null;var r=this._sourceBuffers[t];if(r){if("closed"!==e.readyState){try{e.removeSourceBuffer(r)}catch(e){u.e(this.TAG,e.message)}r.removeEventListener("error",this.e.onSourceBufferError),r.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if("open"===e.readyState)try{e.endOfStream()}catch(e){u.e(this.TAG,e.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)}},{key:"appendInitSegment",value:function(e,t){if(!this._mediaSource||"open"!==this._mediaSource.readyState)return this._pendingSourceBufferInit.push(e),void this._pendingSegments[e.type].push(e);var n=e,r="".concat(n.container);n.codec&&n.codec.length>0&&(r+=";codecs=".concat(n.codec));var i=!1;if(u.v(this.TAG,"Received Initialization Segment, mimeType: "+r),this._lastInitSegments[n.type]=n,r!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])u.v(this.TAG,"Notice: ".concat(n.type," mimeType changed, origin: ").concat(this._mimeTypes[n.type],", target: ").concat(r));else{i=!0;try{var a=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(r);a.addEventListener("error",this.e.onSourceBufferError),a.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(e){return u.e(this.TAG,e.message),void this._emitter.emit(oe.ERROR,{code:e.code,msg:e.message})}}this._mimeTypes[n.type]=r}t||this._pendingSegments[n.type].push(n),i||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),S.safari&&"audio/mpeg"===n.container&&n.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(e){var t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var n=this._sourceBuffers[t.type];!n||n.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()}},{key:"seek",value:function(e){for(var t in this._sourceBuffers)if(this._sourceBuffers[t]){var n=this._sourceBuffers[t];if("open"===this._mediaSource.readyState)try{n.abort()}catch(e){u.e(this.TAG,e.message)}this._idrList.clear();var r=this._pendingSegments[t];if(r.splice(0,r.length),"closed"!==this._mediaSource.readyState){for(var i=0;i<n.buffered.length;i++){var a=n.buffered.start(i),o=n.buffered.end(i);this._pendingRemoveRanges[t].push({start:a,end:o})}if(n.updating||this._doRemoveRanges(),S.safari){var s=this._lastInitSegments[t];s&&(this._pendingSegments[t].push(s),n.updating||this._doAppendSegments())}}}}},{key:"endOfStream",value:function(){var e=this._mediaSource,t=this._sourceBuffers;e&&"open"===e.readyState?t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream()):e&&"closed"===e.readyState&&this._hasPendingSegments()&&(this._hasPendingEos=!0)}},{key:"getNearestKeyframe",value:function(e){return this._idrList.getLastSyncPointBeforeDts(e)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var e=this._mediaElement.currentTime;for(var t in this._sourceBuffers){var n=this._sourceBuffers[t];if(n){var r=n.buffered;if(r.length>=1&&e-r.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var e=this._mediaElement.currentTime;for(var t in this._sourceBuffers){var n=this._sourceBuffers[t];if(n){for(var r=n.buffered,i=!1,a=0;a<r.length;a++){var o=r.start(a),s=r.end(a);if(o<=e&&e<s+3){if(e-o>=this._config.autoCleanupMaxBackwardDuration){i=!0;var c=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:o,end:c})}}else s<e&&(i=!0,this._pendingRemoveRanges[t].push({start:o,end:s}))}i&&!n.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var e=this._sourceBuffers;if(0!==this._mediaElement.readyState&&"open"===this._mediaSource.readyState&&!(e.video&&e.video.updating||e.audio&&e.audio.updating)){var t=this._mediaSource.duration,n=this._pendingMediaDuration;n>0&&(isNaN(t)||n>t)&&(u.v(this.TAG,"Update MediaSource duration from ".concat(t," to ").concat(n)),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}}},{key:"_doRemoveRanges",value:function(){for(var e in this._pendingRemoveRanges)if(this._sourceBuffers[e]&&!this._sourceBuffers[e].updating)for(var t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];n.length&&!t.updating;){var r=n.shift();t.remove(r.start,r.end)}}},{key:"_doAppendSegments",value:function(){var e=this._pendingSegments;for(var t in e)if(this._sourceBuffers[t]&&!this._sourceBuffers[t].updating&&e[t].length>0){var n=e[t].shift();if(n.timestampOffset){var r=this._sourceBuffers[t].timestampOffset,i=n.timestampOffset/1e3;Math.abs(r-i)>.1&&(u.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(r," to ").concat(i)),this._sourceBuffers[t].timestampOffset=i),delete n.timestampOffset}if(!n.data||0===n.data.byteLength)continue;try{this._sourceBuffers[t].appendBuffer(n.data),this._isBufferFull=!1,"video"===t&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(e){this._pendingSegments[t].unshift(n),22===e.code?(this._isBufferFull||this._emitter.emit(oe.BUFFER_FULL),this._isBufferFull=!0):(u.e(this.TAG,e.message),this._emitter.emit(oe.ERROR,{code:e.code,msg:e.message}))}}}},{key:"_onSourceOpen",value:function(){if(u.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var e=this._pendingSourceBufferInit;e.length;){var t=e.shift();this.appendInitSegment(t,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(oe.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){u.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){u.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var e=this._pendingSegments;return e.video.length>0||e.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(oe.UPDATE_END)}},{key:"_onSourceBufferError",value:function(e){u.e(this.TAG,"SourceBuffer Error: ".concat(e))}}]),e}(),ce={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},le={NETWORK_EXCEPTION:y.EXCEPTION,NETWORK_STATUS_CODE_INVALID:y.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:y.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:y.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:W.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:W.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:W.CODEC_UNSUPPORTED},ue=function(){function e(t,n){if(Object(r.a)(this,e),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new c.a,this._config=L(),"object"==typeof n&&Object.assign(this._config,n),"flv"!==t.type.toLowerCase())throw new m("FlvPlayer requires an flv MediaDataSource input!");!0===t.isLive&&(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=t,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var i=S.chrome&&(S.version.major<50||50===S.version.major&&S.version.build<2661);this._alwaysSeekKeyframe=!!(i||S.msedge||S.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(i.a)(e,[{key:"destroy",value:function(){null!=this._progressChecker&&(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}},{key:"on",value:function(e,t){var n=this;e===I.MEDIA_INFO?null!=this._mediaInfo&&Promise.resolve().then((function(){n._emitter.emit(I.MEDIA_INFO,n.mediaInfo)})):e===I.STATISTICS_INFO&&null!=this._statisticsInfo&&Promise.resolve().then((function(){n._emitter.emit(I.STATISTICS_INFO,n.statisticsInfo)})),this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"attachMediaElement",value:function(e){var t=this;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 se(this._config),this._msectl.on(oe.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(oe.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(oe.SOURCE_OPEN,(function(){t._mseSourceOpened=!0,t._hasPendingLoad&&(t._hasPendingLoad=!1,t.load())})),this._msectl.on(oe.ERROR,(function(e){t._emitter.emit(I.ERROR,ce.MEDIA_ERROR,le.MEDIA_MSE_ERROR,e)})),this._msectl.attachMediaElement(e),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(e){}}},{key:"detachMediaElement",value:function(){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)}},{key:"load",value:function(){var e=this;if(!this._mediaElement)throw new v("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new v("FlvPlayer.load() has been called, please call unload() first!");this._hasPendingLoad||(this._config.deferLoadAfterSourceOpen&&!1===this._mseSourceOpened?this._hasPendingLoad=!0:(this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new ae(this._mediaDataSource,this._config),this._transmuxer.on(ne.INIT_SEGMENT,(function(t,n){e._msectl.appendInitSegment(n)})),this._transmuxer.on(ne.MEDIA_SEGMENT,(function(t,n){if(e._msectl.appendMediaSegment(n),e._config.lazyLoad&&!e._config.isLive){var r=e._mediaElement.currentTime;n.info.endDts>=1e3*(r+e._config.lazyLoadMaxDuration)&&null==e._progressChecker&&(u.v(e.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),e._suspendTransmuxer())}})),this._transmuxer.on(ne.LOADING_COMPLETE,(function(){e._msectl.endOfStream(),e._emitter.emit(I.LOADING_COMPLETE)})),this._transmuxer.on(ne.RECOVERED_EARLY_EOF,(function(){e._emitter.emit(I.RECOVERED_EARLY_EOF)})),this._transmuxer.on(ne.IO_ERROR,(function(t,n){e._emitter.emit(I.ERROR,ce.NETWORK_ERROR,t,n)})),this._transmuxer.on(ne.DEMUX_ERROR,(function(t,n){e._emitter.emit(I.ERROR,ce.MEDIA_ERROR,t,{code:-1,msg:n})})),this._transmuxer.on(ne.MEDIA_INFO,(function(t){e._mediaInfo=t,e._emitter.emit(I.MEDIA_INFO,Object.assign({},t))})),this._transmuxer.on(ne.METADATA_ARRIVED,(function(t){e._emitter.emit(I.METADATA_ARRIVED,t)})),this._transmuxer.on(ne.SCRIPTDATA_ARRIVED,(function(t){e._emitter.emit(I.SCRIPTDATA_ARRIVED,t)})),this._transmuxer.on(ne.STATISTICS_INFO,(function(t){e._statisticsInfo=e._fillStatisticsInfo(t),e._emitter.emit(I.STATISTICS_INFO,Object.assign({},e._statisticsInfo))})),this._transmuxer.on(ne.RECOMMEND_SEEKPOINT,(function(t){e._mediaElement&&!e._config.accurateSeek&&(e._requestSetTime=!0,e._mediaElement.currentTime=t/1e3)})),this._transmuxer.open()))}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,n=0,r=0;if(this._mediaElement.getVideoPlaybackQuality){var i=this._mediaElement.getVideoPlaybackQuality();n=i.totalVideoFrames,r=i.droppedVideoFrames}else null!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=r),e}},{key:"_onmseUpdateEnd",value:function(){if(this._config.lazyLoad&&!this._config.isLive){for(var e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,r=0;r<e.length;r++){var i=e.start(r),a=e.end(r);if(i<=t&&t<a){i,n=a;break}}n>=t+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(u.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}},{key:"_onmseBufferFull",value:function(){u.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1,r=0;r<t.length;r++){var i=t.start(r),a=t.end(r);if(e>=i&&e<a){e>=a-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(u.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(e){for(var t=this._mediaElement.buffered,n=0;n<t.length;n++){var r=t.start(n),i=t.end(n);if(e>=r&&e<i)return!0}return!1}},{key:"_internalSeek",value:function(e){var t=this._isTimepointBuffered(e),n=!1,r=0;if(e<1&&this._mediaElement.buffered.length>0){var i=this._mediaElement.buffered.start(0);(i<1&&e<i||S.safari)&&(n=!0,r=S.safari?.1:i)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=r;else if(t){if(this._alwaysSeekKeyframe){var a=this._msectl.getNearestKeyframe(Math.floor(1e3*e));this._requestSetTime=!0,this._mediaElement.currentTime=null!=a?a.dts/1e3:e}else this._requestSetTime=!0,this._mediaElement.currentTime=e;null!=this._progressChecker&&this._checkProgressAndResume()}else null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(1e3*e)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var e=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(e)||(null!=this._progressChecker&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(1e3*e)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(e){var t=this._mediaElement;if(e||!this._receivedCanPlay||t.readyState<2){var n=t.buffered;n.length>0&&t.currentTime<n.start(0)&&(u.w(this.TAG,"Playback seems stuck at ".concat(t.currentTime,", seek to ").concat(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)}},{key:"_onvLoadedMetadata",value:function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(e){var t=this._mediaElement.currentTime,n=this._mediaElement.buffered;if(this._requestSetTime)this._requestSetTime=!1;else{if(t<1&&n.length>0){var r=n.start(0);if(r<1&&t<r||S.safari)return this._requestSetTime=!0,void(this._mediaElement.currentTime=S.safari?.1:r)}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){var i=this._msectl.getNearestKeyframe(Math.floor(1e3*t));null!=i&&(this._requestSetTime=!0,this._mediaElement.currentTime=i.dts/1e3)}null!=this._progressChecker&&this._checkProgressAndResume()}else this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}}},{key:"_onvCanPlay",value:function(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(e){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(e){this._checkAndResumeStuckPlayback()}}]),e}(),de=function(){function e(t,n){if(Object(r.a)(this,e),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new c.a,this._config=L(),"object"==typeof n&&Object.assign(this._config,n),"flv"===t.type.toLowerCase())throw new m("NativePlayer does't support flv MediaDataSource input!");if(t.hasOwnProperty("segments"))throw new m("NativePlayer(".concat(t.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=t,this._mediaElement=null}return Object(i.a)(e,[{key:"destroy",value:function(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){var n=this;e===I.MEDIA_INFO?null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then((function(){n._emitter.emit(I.MEDIA_INFO,n.mediaInfo)})):e===I.STATISTICS_INFO&&null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then((function(){n._emitter.emit(I.STATISTICS_INFO,n.statisticsInfo)})),this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"attachMediaElement",value:function(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(e){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new v("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)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e}},{key:"mediaInfo",get:function(){var e={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(e.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(e.width=this._mediaElement.videoWidth,e.height=this._mediaElement.videoHeight)),e}},{key:"statisticsInfo",get:function(){var e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,n=0,r=0;if(this._mediaElement.getVideoPlaybackQuality){var i=this._mediaElement.getVideoPlaybackQuality();n=i.totalVideoFrames,r=i.droppedVideoFrames}else null!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=r),e}},{key:"_onvLoadedMetadata",value:function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(I.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(I.STATISTICS_INFO,this.statisticsInfo)}}]),e}();o.install();var he={createPlayer:function(e,t){var n=e;if(null==n||"object"!=typeof n)throw new m("MediaDataSource must be an javascript object!");if(!n.hasOwnProperty("type"))throw new m("MediaDataSource must has type field to indicate video file type!");switch(n.type){case"flv":return new ue(n,t);default:return new de(n,t)}},isSupported:function(){return M.supportMSEH264Playback()},getFeatureList:function(){return M.getFeatureList()}};he.BaseLoader=_,he.LoaderStatus=b,he.LoaderErrors=y,he.Events=I,he.ErrorTypes=ce,he.ErrorDetails=le,he.FlvPlayer=ue,he.NativePlayer=de,he.LoggingControl=P,Object.defineProperty(he,"version",{enumerable:!0,get:function(){return"__VERSION__"}});t.a=he},GfqC:
/*!********************************************************!*\
!*** ./node_modules/rc-upload/es/index.js + 6 modules ***!
\********************************************************/
/*! exports provided: default */
/*! exports used: default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";var r=n("q1tI"),i=n.n(r),a=n("TSYQ"),o=n.n(a);function s(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function c(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append(t+"[]",e)})):n.append(t,e.data[t])})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot "+e.method+" "+e.action+" "+t.status+"'",r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),s(t)):e.onSuccess(s(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var l=+new Date,u=0;function d(){return"rc-upload-"+l+"-"+ ++u}var h=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",a=i.replace(/\/.*$/,"");return n.some((function(e){var t,n,o=e.trim();return"."===o.charAt(0)?(t=r.toLowerCase(),n=o.toLowerCase(),-1!==t.indexOf(n,t.length-n.length)):/\/\*$/.test(o)?a===o.replace(/\/.*$/,""):i===o}))}return!0};var f=function(e,t,n){var r=function e(r,i){i=i||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries((function(n){var i=Array.prototype.slice.apply(n);r=r.concat(i),!i.length?t(r):e()}))}()}(r,(function(t){t.forEach((function(t){e(t,""+i+r.name+"/")}))}))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var _=function(e){function t(){var e,n,r;b(this,t);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={uid:d()},r.reqs={},r.onChange=function(e){var t=e.target.files;r.uploadFiles(t),r.reset()},r.onClick=function(e){var t=r.fileInput;if(t){var n=r.props,i=n.children,a=n.onClick;i&&"button"===i.type&&(t.parentNode.focus(),t.parentNode.querySelector("button").blur()),t.click(),a&&a(e)}},r.onKeyDown=function(e){"Enter"===e.key&&r.onClick()},r.onFileDrop=function(e){var t=r.props.multiple;if(e.preventDefault(),"dragover"!==e.type)if(r.props.directory)f(Array.prototype.slice.call(e.dataTransfer.items),r.uploadFiles,(function(e){return h(e,r.props.accept)}));else{var n=Array.prototype.slice.call(e.dataTransfer.files).filter((function(e){return h(e,r.props.accept)}));!1===t&&(n=n.slice(0,1)),r.uploadFiles(n)}},r.uploadFiles=function(e){var t=Array.prototype.slice.call(e);t.map((function(e){return e.uid=d(),e})).forEach((function(e){r.upload(e,t)}))},r.saveFileInput=function(e){r.fileInput=e},y(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),m(t,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(e,t){var n=this,r=this.props;if(!r.beforeUpload)return setTimeout((function(){return n.post(e)}),0);var i=r.beforeUpload(e,t);i&&i.then?i.then((function(t){var r=Object.prototype.toString.call(t);return"[object File]"===r||"[object Blob]"===r?n.post(t):n.post(e)})).catch((function(e){console.log(e)})):!1!==i&&setTimeout((function(){return n.post(e)}),0)}},{key:"post",value:function(e){var t=this;if(this._isMounted){var n=this.props,r=n.onStart,i=n.onProgress,a=n.transformFile,o=void 0===a?function(e){return e}:a;new Promise((function(t){var r=n.action;return"function"==typeof r&&(r=r(e)),t(r)})).then((function(a){var s=e.uid,l=n.customRequest||c;Promise.resolve(o(e)).then((function(e){var t=n.data;return"function"==typeof t&&(t=t(e)),Promise.all([e,t])})).catch((function(e){console.error(e)})).then((function(o){var c=v(o,2),u=c[0],d=c[1],h={action:a,filename:n.name,data:d,file:u,headers:n.headers,withCredentials:n.withCredentials,method:n.method||"post",onProgress:i?function(t){i(t,e)}:null,onSuccess:function(r,i){delete t.reqs[s],n.onSuccess(r,e,i)},onError:function(r,i){delete t.reqs[s],n.onError(r,i,e)}};r(e),t.reqs[s]=l(h)}))}))}}},{key:"reset",value:function(){this.setState({uid:d()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e;e&&e.uid&&(n=e.uid),t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e,t,n=this.props,r=n.component,a=n.prefixCls,s=n.className,c=n.disabled,l=n.id,u=n.style,d=n.multiple,h=n.accept,f=n.children,v=n.directory,m=n.openFileDialogOnClick,b=n.onMouseEnter,y=n.onMouseLeave,_=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),k=o()((g(e={},a,!0),g(e,a+"-disabled",c),g(e,s,s),e)),E=c?{}:{onClick:m?this.onClick:function(){},onKeyDown:m?this.onKeyDown:function(){},onMouseEnter:b,onMouseLeave:y,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return i.a.createElement(r,p({},E,{className:k,role:"button",style:u}),i.a.createElement("input",p({},(t=_,Object.keys(t).reduce((function(e,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(e[n]=t[n]),e}),{})),{id:l,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:h,directory:v?"directory":null,webkitdirectory:v?"webkitdirectory":null,multiple:d,onChange:this.onChange})),f)}}]),t}(r.Component),k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function w(){}var C=function(e){function t(){var e,n,r;O(this,t);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=r=S(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.saveUploader=function(e){r.uploader=e},S(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),E(t,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return i.a.createElement(_,k({},this.props,{ref:this.saveUploader}))}}]),t}(r.Component);C.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:w,onError:w,onSuccess:w,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var x=C;t.a=x},Gytx:
/*!********************************************!*\
!*** ./node_modules/shallowequal/index.js ***!
\********************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var l=a[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(i=n?n.call(r,u,d,l):void 0)||void 0===i&&u!==d)return!1}return!0}},I8Z2:
/*!**********************************************************!*\
!*** ./node_modules/mini-store/esm/index.js + 3 modules ***!
\**********************************************************/
/*! exports provided: Provider, connect, create */
/*! exports used: Provider, connect, create */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return g}));var r,i=n("q1tI"),a=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=i.createContext(null),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){return i.createElement(o.Provider,{value:this.props.store},this.props.children)},t}(i.Component),c=n("Gytx"),l=n.n(c),u=n("2mql"),d=n.n(u),h=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};var p=function(){return{}};function v(e,t){void 0===t&&(t={});var n=!!e,r=e||p;return function(a){var s=function(t){function s(e,n){var i=t.call(this,e,n)||this;return i.unsubscribe=null,i.handleChange=function(){if(i.unsubscribe){var e=r(i.store.getState(),i.props);i.setState({subscribed:e})}},i.store=i.context,i.state={subscribed:r(i.store.getState(),e),store:i.store,props:e},i}return h(s,t),s.getDerivedStateFromProps=function(t,n){return e&&2===e.length&&t!==n.props?{subscribed:r(n.store.getState(),t),props:t}:{props:t}},s.prototype.componentDidMount=function(){this.trySubscribe()},s.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},s.prototype.shouldComponentUpdate=function(e,t){return!l()(this.props,e)||!l()(this.state.subscribed,t.subscribed)},s.prototype.trySubscribe=function(){n&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},s.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},s.prototype.render=function(){var e=f(f(f({},this.props),this.state.subscribed),{store:this.store});return i.createElement(a,f({},e,{ref:this.props.miniStoreForwardedRef}))},s.displayName="Connect("+function(e){return e.displayName||e.name||"Component"}(a)+")",s.contextType=o,s}(i.Component);if(t.forwardRef){var c=i.forwardRef((function(e,t){return i.createElement(s,f({},e,{miniStoreForwardedRef:t}))}));return d()(c,a)}return d()(s,a)}}var m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function g(e){var t=e,n=[];return{setState:function(e){t=m(m({},t),e);for(var r=0;r<n.length;r++)n[r]()},getState:function(){return t},subscribe:function(e){return n.push(e),function(){var t=n.indexOf(e);n.splice(t,1)}}}}},J66h:
/*!******************************************!*\
!*** ./node_modules/js-base64/base64.js ***!
\******************************************/
/*! no static exports found */
/*! exports used: Base64 */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){(function(n){var r;!function(n,i){e.exports=function(n){"use strict";var i,a=(n=n||{}).Base64,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(o),c=String.fromCharCode,l=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?c(192|t>>>6)+c(128|63&t):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|63&t)},u=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,d=function(e){return e.replace(u,l)},h=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[o.charAt(n>>>18),o.charAt(n>>>12&63),t>=2?"=":o.charAt(n>>>6&63),t>=1?"=":o.charAt(63&n)].join("")},f=n.btoa&&"function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,h)},p=function(e){return f(d(String(e)))},v=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},m=function(e,t){return t?v(p(e)):p(e)};n.Uint8Array&&(i=function(e,t){for(var n="",r=0,i=e.length;r<i;r+=3){var a=e[r],s=e[r+1],c=e[r+2],l=a<<16|s<<8|c;n+=o.charAt(l>>>18)+o.charAt(l>>>12&63)+(void 0!==s?o.charAt(l>>>6&63):"=")+(void 0!==c?o.charAt(63&l):"=")}return t?v(n):n});var g,b=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,y=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return c(55296+(t>>>10))+c(56320+(1023&t));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},_=function(e){return e.replace(b,y)},k=function(e){var t=e.length,n=t%4,r=(t>0?s[e.charAt(0)]<<18:0)|(t>1?s[e.charAt(1)]<<12:0)|(t>2?s[e.charAt(2)]<<6:0)|(t>3?s[e.charAt(3)]:0),i=[c(r>>>16),c(r>>>8&255),c(255&r)];return i.length-=[0,0,2,1][n],i.join("")},E=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,k)},O=function(e){return E(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},S=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},w=function(e){return function(e){return _(E(e))}(S(e))};n.Uint8Array&&(g=function(e){return Uint8Array.from(O(S(e)),(function(e){return e.charCodeAt(0)}))});var C=function(){var e=n.Base64;return n.Base64=a,e};if(n.Base64={VERSION:"2.6.4",atob:O,btoa:f,fromBase64:w,toBase64:m,utob:d,encode:m,encodeURI:function(e){return m(e,!0)},btou:_,decode:w,noConflict:C,fromUint8Array:i,toUint8Array:g},"function"==typeof Object.defineProperty){var x=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",x((function(){return w(this)}))),Object.defineProperty(String.prototype,"toBase64",x((function(e){return m(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",x((function(){return m(this,!0)})))}}n.Meteor&&(Base64=n.Base64);e.exports?e.exports.Base64=n.Base64:void 0===(r=function(){return n.Base64}.apply(t,[]))||(e.exports=r);return{Base64:n.Base64}}(n)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:this)}).call(this,n(/*! ./../@umijs/deps/compiled/webpack/4/global.js */"IyRk"))},LdHM:
/*!********************************************************!*\
!*** ./node_modules/rc-select/es/index.js + 6 modules ***!
\********************************************************/
/*! exports provided: Option, OptGroup, default */
/*! exports used: OptGroup, Option, default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/TransBtn.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/generate.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/commonUtil.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/valueUtil.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMemo.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/pickAttrs.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-virtual-list/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return O}));var r=n("1OyB"),i=n("vuIU"),a=n("Ji7U"),o=n("LK+K"),s=n("q1tI"),c=n("rePB"),l=n("Ff2n"),u=n("ODXe"),d=n("4IlW"),h=n("bX4T"),f=n("YrtM"),p=n("TSYQ"),v=n.n(p),m=n("+nKL"),g=n("8OUc"),b=s.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,i=e.flattenOptions,a=e.childrenAsData,o=e.values,p=e.searchValue,b=e.multiple,y=e.defaultActiveFirstOption,_=e.height,k=e.itemHeight,E=e.notFoundContent,O=e.open,S=e.menuItemSelectedIcon,w=e.virtual,C=e.onSelect,x=e.onToggleOpen,A=e.onActiveValue,j=e.onScroll,R=e.onMouseEnter,T="".concat(n,"-item"),D=Object(f.a)((function(){return i}),[O,i],(function(e,t){return t[0]&&e[1]!==t[1]})),L=s.useRef(null),M=function(e){e.preventDefault()},I=function(e){L.current&&L.current.scrollTo({index:e})},N=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=D.length,r=0;r<n;r+=1){var i=(e+r*t+n)%n,a=D[i],o=a.group,s=a.data;if(!o&&!s.disabled)return i}return-1},P=s.useState((function(){return N(0)})),B=Object(u.a)(P,2),K=B[0],U=B[1],F=function(e){U(e);var t=D[e];t?A(t.data.value,e):A(null,-1)};s.useEffect((function(){F(!1!==y?N(0):-1)}),[D.length,p]),s.useEffect((function(){var e=setTimeout((function(){if(!b&&O&&1===o.size){var e=Array.from(o)[0],t=D.findIndex((function(t){return t.data.value===e}));F(t),I(t)}}));return function(){return clearTimeout(e)}}),[O]);var z=function(e){void 0!==e&&C(e,{selected:!o.has(e)}),b||x(!1)};if(s.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case d.a.UP:case d.a.DOWN:var n=0;if(t===d.a.UP?n=-1:t===d.a.DOWN&&(n=1),0!==n){var r=N(K+n,n);I(r),F(r)}break;case d.a.ENTER:var i=D[K];i&&!i.data.disabled?z(i.data.value):z(void 0),O&&e.preventDefault();break;case d.a.ESC:x(!1)}},onKeyUp:function(){},scrollTo:function(e){I(e)}}})),0===D.length)return s.createElement("div",{role:"listbox",id:"".concat(r,"_list"),className:"".concat(T,"-empty"),onMouseDown:M},E);function V(e){var t=D[e];if(!t)return null;var n=t.data||{},i=n.value,c=n.label,l=n.children,u=Object(h.a)(n,!0),d=a?l:c;return t?s.createElement("div",Object.assign({"aria-label":"string"==typeof d?d:null},u,{key:e,role:"option",id:"".concat(r,"_list_").concat(e),"aria-selected":o.has(i)}),i):null}return s.createElement(s.Fragment,null,s.createElement("div",{role:"listbox",id:"".concat(r,"_list"),style:{height:0,width:0,overflow:"hidden"}},V(K-1),V(K),V(K+1)),s.createElement(m.a,{itemKey:"key",ref:L,data:D,height:_,itemHeight:k,fullHeight:!1,onMouseDown:M,onScroll:j,virtual:w,onMouseEnter:R},(function(e,t){var n,r=e.group,i=e.groupOption,u=e.data,d=u.label,h=u.key;if(r)return s.createElement("div",{className:v()(T,"".concat(T,"-group"))},void 0!==d?d:h);var f=u.disabled,p=u.value,m=u.title,b=u.children,y=u.style,_=u.className,k=Object(l.a)(u,["disabled","value","title","children","style","className"]),E=o.has(p),O="".concat(T,"-option"),w=v()(T,O,_,(n={},Object(c.a)(n,"".concat(O,"-grouped"),i),Object(c.a)(n,"".concat(O,"-active"),K===t&&!f),Object(c.a)(n,"".concat(O,"-disabled"),f),Object(c.a)(n,"".concat(O,"-selected"),E),n)),C=a?b:d,x=!S||"function"==typeof S||E;return s.createElement("div",Object.assign({},k,{"aria-selected":E,className:w,title:m,onMouseMove:function(){K===t||f||F(t)},onClick:function(){f||z(p)},style:y}),s.createElement("div",{className:"".concat(O,"-content")},C||p),s.isValidElement(S)||E,x&&s.createElement(g.a,{className:"".concat(T,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:E}},E?"✓":null))})))}));b.displayName="OptionList";var y=b,_=function(){return null};_.isSelectOption=!0;var k=_,E=function(){return null};E.isSelectOptGroup=!0;var O=E,S=n("VTBJ"),w=n("Zm9Q");function C(e){var t=e.key,n=e.props,r=n.children,i=n.value,a=Object(l.a)(n,["children","value"]);return Object(S.a)({key:t,value:void 0!==i?i:t,children:r},a)}function x(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(w.a)(e).map((function(e,n){if(!s.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,i=e.key,a=e.props,o=a.children,c=Object(l.a)(a,["children"]);return t||!r?C(e):Object(S.a)(Object(S.a)({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},c),{},{options:x(o)})})).filter((function(e){return e}))}var A=n("2Qr1"),j=n("qNPg"),R=n("U8pU"),T=n("Kwbf"),D=n("WKfj");var L=function(e){var t=e.mode,n=e.options,r=e.children,i=e.backfill,a=e.allowClear,o=e.placeholder,c=e.getInputElement,l=e.showSearch,u=e.onSearch,d=e.defaultOpen,h=e.autoFocus,f=e.labelInValue,p=e.value,v=e.inputValue,m=e.optionLabelProp,g="multiple"===t||"tags"===t,b=void 0!==l?l:g||"combobox"===t,y=n||x(r);if(Object(T.a)("tags"!==t||y.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),"tags"===t||"combobox"===t){var _=y.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)}));Object(T.a)(!_,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(T.a)("combobox"!==t||!m,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(T.a)("combobox"===t||!i,"`backfill` only works with `combobox` mode."),Object(T.a)("combobox"===t||!c,"`getInputElement` only work with `combobox` mode."),Object(T.b)("combobox"!==t||!c||!a||!o,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!b&&"combobox"!==t&&"tags"!==t&&Object(T.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(T.b)(!d||h,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=p){var k=Object(D.d)(p);Object(T.a)(!f||k.every((function(e){return"object"===Object(R.a)(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(T.a)(!g||Array.isArray(p),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var E=null;Object(w.a)(r).some((function(e){if(!s.isValidElement(e)||!e.type)return!1;var t=e.type;return!t.isSelectOption&&(t.isSelectOptGroup?!Object(w.a)(e.props.children).every((function(t){return!(s.isValidElement(t)&&e.type&&!t.type.isSelectOption)||(E=t.type,!1)})):(E=t,!0))})),E&&Object(T.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(E.displayName||E.name||E,"`.")),Object(T.a)(void 0===v,"`inputValue` is deprecated, please use `searchValue` instead.")}},M=Object(j.a)({prefixCls:"rc-select",components:{optionList:y},convertChildrenToData:x,flattenOptions:A.d,getLabeledValue:A.e,filterOptions:A.b,isValueDisabled:A.g,findValueOption:A.c,warningProps:L,fillOptionsWithMissingValue:A.a}),I=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).selectRef=s.createRef(),e.focus=function(){e.selectRef.current.focus()},e.blur=function(){e.selectRef.current.blur()},e}return Object(i.a)(n,[{key:"render",value:function(){return s.createElement(M,Object.assign({ref:this.selectRef},this.props))}}]),n}(s.Component);I.Option=k,I.OptGroup=O;var N=I;t.c=N},MXfU:
/*!*********************************************!*\
!*** ./src/assets/images/icons/nodata2.png ***!
\*********************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAABKCAYAAADUvCinAAAAAXNSR0IArs4c6QAAFq9JREFUeAHdnAl4VFWWx6sqlYWEkIRsJCRkJQECCXsIS0gAWWwQl1YQxQ2nRx0/u9We8etvpmf87LFt7XHs7mmXbhVEFESQdWRfwiKGXRYhkI0sQAIBAmQnqZrfKfMyZVGVqldLjL7vu9997757zz33/84995xzb5VG8xO/Fi1aNPTDDz/M7w7D1HcHJjzFAyCPNxgMi/V6/YOe6kMNXZ2ayj+mugsXLhSAFxqNxtmPPvroge7A+09Osj///HOvmzdvvoZET/D19Z04f/78i90BaOHhJwU20hx748aNZVqt9kR0dHTOnXfe2dxdgBY+tN2JGVd4QT8/gsp4GRovPfnkkytcoeWptj96ycbaiEdl/BWgEWjt+AULFlzwFFiu0v3RSvaGDRt8L168+CIALNDpdL99/PHHl7oKhqfbe3m6A3fTR4J1/fr1m88iuBxJPs8iOBdr45C7+/EEvR+NZIuVUVdX9wBg/wYgTnp7e//rI488UuoqKCyqv4FmK+rnj67Sste+2+vsjz/+OODWrVsiyb9iMIcAZh4L4El7A3PkPUA/Db2ZERERdzhS39U63RbsDz74YDBq4qmWlpZZ5GtIdz7xxBMlrg5YaY/18iuAnhsYGDht1qxZDUq5J/NuBTZSnIAUzwGEOYB7i/R3pO5f3AkGtHVI9BuAmkG644EHHrjpSYDNaf+gOvvQoUPe33zzTRYMTSVNB1xf0mfo4+V4fkXmjMr9p59+GtLU1CSSPpzHvcQ8NqK36y3r2Xpub7+M92UZGRnPjhw58patup4o71KwkahwgBqFXTyawUgS6RI9vBngNj/22GPFloNkukfTZjZ17iXl8L5jNlLexPMW8lU9e/Zcj5RetWyvPKOWsrl/HzPxTdTR35XyrszdBjZAaD/66KMgBh4KmGGkKAaSzHN/yXkv96IbD5If8PLyOpCWlnbUmnQtWbIkGV19jwBM3Uyh7efnp+nfv3/lmTNnYnx8fE7OnDkzrKioSFdYWBhx/fp1wayVurvIV/Ph1mAOnpfC9evX+1+6dOkVaEzmcb67FlehrfZyC9hI3wEG04/B1sLAFVINqYrnYsoLJfXq1asYyWu0xaDEndva2u6hjYA8ROohrW0pKSmlgCz3iRTpli1bpgHMvPvvvz9H6siFaqkuKSlp40NEX716VQMNI8US6dsCrQd5/gS18XtrH1bad9XlFrCdYRYQdIsXL84CYFEP90AjQegEBQU1p6amliYnJ/v06NFDyr7HozWwpZ1yNTc31+zZs6e1rKysj1IG2CfpYxWzaTWe5jdKeVfn3xuIpzuXBfH48eOTUDEC7t2kSOkzJCSkftCgQaXx8fGBqIs4KbN1dQK2ob6+fu+uXbt8/f39/bKysvwANxzQa8+ePdv3woULvkIT4M+RrSKtRnfv49nAfZdcHge73SmZzmhEPcwkD5KRhYeHXwPgsri4uFCsj1gpc+SyAnbNlStXjiDN0aGhoY1jxowJhN4AS1rMoNrz58/XnD59Ooo8AF6kSjVgr2XRXB0QELADNddi2c6dzw6DjbvcE3f5CZiMcZQB6qYwmKnkPaRNnz59qgcPHnw+JiYmCqmTBVT1JWADzm5sb92xY8dakdhE9HFlQkJCDDT7OUKQmXWTINbFgoKCyPLy8iCepZmssl8K8GpNSkf6lDoOgd2++5EPaCMdJWwirtVq+vbtW4bVcZlgfj8GEqGmvVndNgApQIIvbdy4MRcpbQLgIwMHDgxAr6dTz6FxmNHruIVuw+XLl8sBPrS0tDQc2qJqHDYpOwg5cOMQk1gKQ2DiuAP0hFFNfHz8WQCuxfsTc6+3I+3M6rTwUauwMCqR2pvo3J7V1dVxYWFhtUT7bh44cCAL0y9vzpw5OWZt3HXbxAc9h6rpiXUTgzcrdMWk3E2+ytykdKZDh8BeunRpWENDQyUdmBYZy45goo1pfAqAG9Gbqbw36WXLepbPqKV8pnH9tWvXfGtrawNZ4EKpo8dMvI5OvwS4BhbPSOgnS7m0b1cjngJbulCuFvgqYXH1wZ5P4OODucmkFOBnESVU7eZ3eGNKD9byefPm1SDdTzDl3kTqOkwqpS7T+Tg2bChqwmQfK+X2cnSsP/pbg5kni1oogxE1Izv+0od8tB/y8uFDJ2LjF7KveQ2h6M3YRTgnwufL5LJxoepySLLNKQL6HUjdFlb9OhhYcuTIEYlrJEkdQD82YsQIPwL6HgOqKyQbW73s1KlTLaRkkWjWhSYW9pPY/z2J5YSfPHkyCEEZjs1+whwbe/cOSbZCZOfOnfri4uK3ANqIuuhJenrYsGHHmGpvfvXVV+PQdWNIGqZ/0dixY+sxpyT28aO4mLXXEZ4LgBmP3o4DTJlxZ4YMGdKEozWIQZiMg9GjR9eBgZ6P8A6Snt2uWhwaoyqwWTR+ifucBsjmxDMok3QWa+rVzZs3D4bpWSQd9arHjx9/nsVNLAZVfZl34MH7Ntz7khMnTgQztnAAD8J6quIIRAFmqizut81QynpOnDjxwqZNm8Yzyx+Bt8WO8uewGpHoGwtVATEJMbdEr9q6ylnsFhEAimY1f5iv34MAfR0e3Rn080CY9bfV0JFyd6gRpPIicZTmb7/9Nr6xsVE82Ib09PRiFvkIJNrk1drjBaFqxjm6gceb+tBDD12zV1/eq5G2/4KhQIC2R7dfcHDwfxCPrmZQb6xdu1aP1fGLLVu2jICxVnT6MWZBLIupWpPQXr+dvkdq6wHnIo5QLKZkFOMw4sEWooe9uY+nsarFPTc3tx4rLZyP9Sptn+m08/aXDkk20yUHoHYi1Qa+fGdSba3Pawz07TVr1lxB4p9C0lNFH/LhCnBMenEfba2RrTKVkm0k/FpGPCYIPRsiNJOSkqro+wZ6WBZ1l04XMDOu5ufnBzNbMzEF7e7w6wnoxwLAW6ShdG4VSMAKY2EwOgG0jC8EKf63e++9t47799B1ryFhC44ePTqBJDHqCmi38jETpLI7Lon8EecWNdGXWRWP+qqbOnXqWfRwDLyIWXmb+epMv8yMXqgjHUL0LvhlAnqnQS09lZaQJnbWGQucJjEx0RS56ayenXc9ef/r6dOnN5Mv3Ldv35u4yPNwGO4DGC8AuYKVcwWJS7FDx+prxtCEx1mNFEeTh/Xu3bsNS6kUvoNYa0RlOUXXamfthYCrnzRpUs0XX3wxEqH9BcXvdVqfhe8GjAZ2Vmn27NmtAK5Gv3dGTnnXys1SzMaP9+7dexf3C+AjAAumAdDLxRqg7LY+LdUIDscF7N5APpo4Rhp0cBX2vgE9rEo9KUw5kyM4TZi8jcyaVMK2l23R8AJIUR9ptiogGRrccKvqxVYbB8uFZgbgPowEViLZv0TCCwkLZJAlAJ4RwIpYbP2RIG+FJsBqiNMgrPqmvLy8AMy2QKyJlnHjxl1CHQVGRUUJ6J0Kj0LLXTlBtlvM0sDW1tbwdevWrbVFV9seb36BCsOQLHNQk9HRaRLjJRjvY4uAm8s3wvDr7EEmsk6IO5xG0EmDBSNbY8FE5xq3bt0aLZE57OE2hOAiuWwi+7qZD9Xk8Ctqt23bJnuw/wSOVQoB7o0IxgnZzLZqjbR7it8MHTp0EAO1Wkch5qF8N3RfRQ+KtfAi/E5W+snMzKwaMGCAPwPopZR1lxzb21hZWWkNLwMf4SlzSe7gGW/qOaZwGmCLXv0hrmw63Yz+ex6TagqMfqEwwWzb1h2BFv4Ixl1Q+LTIdQjM726zM1ErEUzhVXh8OhbFDl1p0birHlcTnziJ2niXDk28Ijn9MbkE8P5dxYSdflrh70vi7Kzze+OpG2yjfu1tqz0No/kKAcQMdLjbrSw2t9WxQczdxWKzvs35kefgR1kzqrmPxNTqQ9i3gvcO7126mznolYHRpu3bt4diEc3iubN1o5nZ+aI1/aJBVw5Hul9lcZqOpaBBkgyYNVZVjgcGoZBcs2LFCjm9WgHAYqPLR1+ekBAfVVp6Lhu9vRgLZD5lXcmXCMAmXP4iQsvZYCSWnOxOFZDEsTkiz+YXak9+ElHAoaErVsFWKmODj+f+VQ7IZKOPxLFRXnVFPpmPns4A3sLm3l5VVSWL5PIZM6ZP3rFjZzMS3wev9BNMw0e7gJkqTNLVWBv6mpqa++FJVIVsl60lvcPassMRHjoFWyEA6FO5/090+CisAWNkZKRD7ZT2TuQnkeqhSHUxbaMmT550eNu27XIAU8CeQ/CH4yG7s5lsRUjMDQY8wok+7DURj3kHNv8hdPFQAJZTAsq436DPP7N421oQrdK+bYG0VgtDvZj0/pQpU2SjIANdFY4zYiSeoXRurZkrZb8lwJMMgQXh4aH/GxsbOwUnR+h9279/8mDWkXiOfXxJkD+LOMsuvEaZcopel3quXDXEVhYhxbu5JrDh/DNAltj2HlIthCWu8hBnBivVdqJq8aODNZwG7Q0DH1ZUVMgxMb/hw4e7G3SJDX9C2s3gjBkZw6wuPCkp/TPh4QyHJh+En7c47PO82sFb1N+NpbODKxXH6h8A2If+b6Jz/zZq1KjS3r2D79uwYdO3tHF690kV2ObMTZyYXVleXrGW6T6HraMYkkQF3SHpH6CrM+lrBLvseT4+3jJ9zbs23VMWzi7QUayBRKRQfsS0HnNQrAI1l4R/l6KTqjkzch80X5bGgHyKgNjirKzMQFQVMRtNVDsLhe3Et6Na5USunHVQ0lXuP0a1dPgE7XU7MqfBRoUkI10vpqam7C0oOGMCHSkPY2NAkHEW9Dbavs2g3xEOhw3LqOfeprUhH4LZtZQw57yVK1ca586de55mfaWtnSsfFbSGAz8xqAyxaIJI4sCtGDAgZUtiYvJ4o9HwCs++Vr4zxZok+JLc8roLQclhwdxl+UKenQZbIUan4wFc0leAvoYd6QewXHoRWFKqqMnXsVERgGTNwIM93qOH/x32GiclJU5BjRzkzMldhw8ffo3wwku0sfaBbogUf/3113ybMzPh+w9Cm74uIL1/YpZUBgT4y6+E3wdoe93afE/7XF56BmyzXscNGJA6jud9p08XlAD6fQy8BwupWRW7t3+hhsRCtEOHZojTkm6vBXUjJkyYcBBVUs/O+DMEp/7GrHvarN1hPsQytueCsGIep/yp9nd5RAsXEyns4+Wlk1+N9SOZNXP6dp+tli5LthXCYwcOHDAWxvMx/CsZ+GzUizfHGqxU/V7RCX65UEC7hzl3Uo79nOPo4PV6r58Rw36PD/wU8e5BnOfYDeWzgH8AaRf7/DWSN1Issfu/8kG2xMXFcqJWKyrL39F+FG6hs5N7UXneZqkBOqKztyj1LHNPgG3qA4bGpKUN0sDAfqbuFaRoGouoF16pJQ/K8/8QKniOBx/AOEW76coLR/L4+Lh7WeS2IL1T0Zuf0mYMNJ6UtvBygvTu5Mk5l/V633/UaIzPfifEzkkypudj/HCq3BG+zOt4DGylEwaZOWjQQA368iA7GvU4RBNZ1LToSaWK5FcJ5KwiL2Qg1yIjI0abv3TkHmAjsrOzGwhz1nD/EG3ESljODFnEgaEBGo0B9SQnt5wD2BEe7NXxONgKA4A7CutFdlkOA7qRBXQkp11Nr9kw3cDmrAAUggraTi5TX/Wl02nvRge/dPDgwRbCw/lRUX0ehMgKFrxA1cQ80KDLwFZ4xxYfkZiYoMFxOLp//34/AB/IZoUc5vk5H6S5b99om1t0Co3O8tDQ3q/MmDHtGMrjv6Gp7axuV7/73lzuys5xQIbFxsYMbGlpOobzchxg/DAf+YWX1tVjBmIbj+5uQAu2qiUb6WtB/2pY6c9zsrMV0OJc+UheXvoMzDxNRkZ6GbSzAMkVcp5uK56tzEqnmFQt2RwXXsWi915VVXWfrVu3xeEgFAD+RVdHCc04gFb98V3t15H2HKNrOn78hFg1idRfimkpnqrqS/XgMjOHpfDrh6zr12v/ed++/CklJaV3lpWVG7EwDsbF9WO113TpGT7VI1bRAFe+pbCwyIcAlQ+xkg0cyGnipMHrgO6Ui6lqAeEoQSBBeyJfxth2nvOLi0s+Jeb7JFKZgdkmh8YPYQVI/Fd2V9x2bdy4SWiZ4tluI2qDECDf4mygd0VFpSE4uNcGPGGDt7ePhFq9ALpcr/dO4/dCcpxO1aVKsgH612ZAS0djkpISSUnL8dQ+4WM8z/m98adP+9WwnXY4JCQIT9LkZali6oeqjC5uRZL1SLKORXvt5Mm5unaQZXfcxBZ5P/ZmwUHzslo+VYEN8bnWOzDOGTFi+N1arebtHTvyEIzm5/AaJ7KdVjxy5IgKpt5EmFQ1i6z345nS1ta2Vvk1AQdtNIC8Oicnx5uI4ix47gDZomex31+2KLP7qBJsY79OKIrJ9cKkSbmXm5ubfpeXtzuFE6SP5eXtSurdO+Qg8ZFbqJmxnbTv8lc4WG2ckfE6d67MCMgrOXPtx2EC+bsNWyC389gpDjbHoQpsJPcCgMqKbPOC0XAfH98/TJs29fTlyzXP8nv1u69evTZ1+/YdRs7hbR4yJC1Cp/MaZpNAF7zAejIQR9EBchsgr8rNzfFHEGTzQEuyy4HgYLeSlQqqwIYX4hdG0Vd2L5geGBYW+g4btFsJuT5z7ty5ZzjKO43f3TSyS78S130IRFLtEnJjBXgC5HM6gL6FdbGa3SY5hPlzyh0CWWHlOxyUJ8dzVXqUn0dEtrW1yt9JhDnehSnqZmCci/bvP1jADzklXt0HB+YS0b3NMTF9c6Fld6fBFWsEQTayX6ktKSnll1+9VuFEBeNMzRCQ1YxD6mKN1NB2MAG1atVt1Taorj4/BQdqPe381LaF0TqDoe0t9Lk3foKEU/2JlRSwiO7j8PrdPNu00Z0BGzBNBx0xTxsx4Vamp2eE85FVhW4txtik12tnRUb23WZR7tCj6i8rVDk+wHaVcTm3IQ71cnulyvr6hj9yVGA4r2QPUMeGwa6xY8cUsRX2IBjd9osylWAD8nkkuaRBFj5+Q8M6oXUFZBkBu/7aORxR3ioPzlxOgS0doXs5u2FYDDDZznQsbZD0QzgO73HAfR50JlFkYEdn5dixWc3oUgG9Y01xBGzoGREEURd1QocfSEUB8jRn+VPaQZdjFbpHWeDPKWXO5E6DrXTGoodkGl8BmHilTG3OYFYTe9gIUC9AZwDPjZy+Woi5yP+S6ORPYbSdgS0g8/G1RUXFN/nN5Yr09MGxgMPsc+2C7jlE4t/5ZcES1yh919plsIUMYHhXV1+Y39ZmFD3s1CEWzCnZWXl7z56vKrHPX4JmOM/VnIb6gEOUOfziYBzPt7nr1dWXNDgkN3CgPsesjAfkKdRz9TrGEZi/REZGLwFw4cstl1vANueEA5BjDIbWOUiEOAcJ5u8cvL+K8fC6HMXF55DjwrIQl5PEodqEKWnSvRxw1OBaXw8MDFg+ePAQCYA5tbtDO9MFqKWIzTqdTv8ZBznzlXJ35m4H25w5gB8M8LMpuwvwhwNchw42r2fjvrCurv4N/vspFyBEf5t4HT16lAZ1UYskf8aGcgptRdervqDJoRzTEV8BeB0An1BNRGUDj4Jtzgtg9cBOz0BaRzLQkayFnDzVDqTcy7ye5T3qZVdJSfH7BQWFv+edN2plDfY5el2Ta1nX1jP9tQHsaYyew/R3CHPzEHbyMcobbbXxRHmXgW2NeQbuS6Qwlg9AyLaNQzLySwKtqAt+dSxHwsQE1PYAWAM5Z+hM/1F1B+344ar8+6URsP4/p9512lZQXs49uVc5wFaw4VEBsLT5Ya//AzDfafkdei4SAAAAAElFTkSuQmCC"},Nmsl:
/*!**************************************************!*\
!*** ./src/components/NoData/index.less?modules ***!
\**************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={none_panels:"none_panels___1g-mA",none_p_title:"none_p_title___1lCVD"}},NvD2:
/*!******************************************************!*\
!*** ./node_modules/rc-tree/es/utils/conductUtil.js ***!
\******************************************************/
/*! exports provided: isCheckDisabled, conductCheck */
/*! exports used: conductCheck */function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(/*! rc-util/es/warning */"Kwbf");function i(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function a(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!(!n&&!r)||!1===i}function o(e,t,n,o){var s,c=[];s=o||a;var l=new Set(e.filter((function(e){var t=!!n[e];return t||c.push(e),t}))),u=new Map,d=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,i=u.get(r);i||(i=new Set,u.set(r,i)),i.add(t),d=Math.max(d,r)})),Object(r.a)(!c.length,"Tree missing follow keys: ".concat(c.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),!0===t?function(e,t,n,r){for(var a=new Set(e),o=new Set,s=0;s<=n;s+=1){(t.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,o=void 0===i?[]:i;a.has(t)&&!r(n)&&o.filter((function(e){return!r(e.node)})).forEach((function(e){a.add(e.key)}))}))}for(var c=new Set,l=n;l>=0;l-=1){(t.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!c.has(e.parent.key))if(r(e.parent.node))c.add(t.key);else{var i=!0,s=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);i&&!n&&(i=!1),s||!n&&!o.has(t)||(s=!0)})),i&&a.add(t.key),s&&o.add(t.key),c.add(t.key)}}))}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(i(o,a))}}(l,u,d,s):function(e,t,n,r,a){for(var o=new Set(e),s=new Set(t),c=0;c<=r;c+=1){(n.get(c)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,i=void 0===r?[]:r;o.has(t)||s.has(t)||a(n)||i.filter((function(e){return!a(e.node)})).forEach((function(e){o.delete(e.key)}))}))}s=new Set;for(var l=new Set,u=r;u>=0;u-=1){(n.get(u)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!a(n)&&e.parent&&!l.has(e.parent.key))if(a(e.parent.node))l.add(t.key);else{var r=!0,i=!1;(t.children||[]).filter((function(e){return!a(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);r&&!n&&(r=!1),i||!n&&!s.has(t)||(i=!0)})),r||o.delete(t.key),i&&s.add(t.key),l.add(t.key)}}))}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(i(s,o))}}(l,t.halfCheckedKeys,u,d,s)}},OLES:
/*!*********************************************************!*\
!*** ./node_modules/rc-tooltip/es/index.js + 2 modules ***!
\*********************************************************/
/*! exports provided: default */
/*! exports used: default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tooltip/es/placements.js because of ./node_modules/antd/es/tooltip/placements.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-trigger/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";var r=n("U8pU"),i=n("VTBJ"),a=n("Ff2n"),o=n("q1tI"),s=n("uciX"),c=n("7ixt"),l=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle;return o.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof t?t():t)},u=Object(o.forwardRef)((function(e,t){var n=e.overlayClassName,u=e.trigger,d=void 0===u?["hover"]:u,h=e.mouseEnterDelay,f=void 0===h?0:h,p=e.mouseLeaveDelay,v=void 0===p?.1:p,m=e.overlayStyle,g=e.prefixCls,b=void 0===g?"rc-tooltip":g,y=e.children,_=e.onVisibleChange,k=e.afterVisibleChange,E=e.transitionName,O=e.animation,S=e.placement,w=void 0===S?"right":S,C=e.align,x=void 0===C?{}:C,A=e.destroyTooltipOnHide,j=void 0!==A&&A,R=e.defaultVisible,T=e.getTooltipContainer,D=e.overlayInnerStyle,L=Object(a.a)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),M=Object(o.useRef)(null);Object(o.useImperativeHandle)(t,(function(){return M.current}));var I=Object(i.a)({},L);"visible"in e&&(I.popupVisible=e.visible);var N=!1,P=!1;if("boolean"==typeof j)N=j;else if(j&&"object"===Object(r.a)(j)){var B=j.keepParent;N=!0===B,P=!1===B}return o.createElement(s.a,Object.assign({popupClassName:n,prefixCls:b,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,i=e.id;return[o.createElement("div",{className:"".concat(b,"-arrow"),key:"arrow"},n),o.createElement(l,{key:"content",prefixCls:b,id:i,overlay:r,overlayInnerStyle:D})]},action:d,builtinPlacements:c.a,popupPlacement:w,ref:M,popupAlign:x,getPopupContainer:T,onPopupVisibleChange:_,afterPopupVisibleChange:k,popupTransitionName:E,popupAnimation:O,defaultPopupVisible:R,destroyPopupOnHide:N,autoDestroy:P,mouseLeaveDelay:v,popupStyle:m,mouseEnterDelay:f},I),y)}));t.a=u},OZM5:
/*!*****************************************!*\
!*** ./node_modules/rc-tree/es/util.js ***!
\*****************************************/
/*! exports provided: arrDel, arrAdd, posToArr, getPosition, isTreeNode, getDragNodesKeys, calcDropPosition, calcSelectedKeys, convertDataToTree, parseCheckedKeys, conductExpandParent, getDataAndAria */
/*! exports used: arrAdd, arrDel, calcDropPosition, calcSelectedKeys, conductExpandParent, getDataAndAria, getDragNodesKeys, getPosition, isTreeNode, parseCheckedKeys, posToArr */function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"k",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return f})),n.d(t,"j",(function(){return p})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return m}));var r=n(/*! @babel/runtime/helpers/esm/toConsumableArray */"KQm4"),i=n(/*! @babel/runtime/helpers/esm/typeof */"U8pU"),a=(n(/*! @babel/runtime/helpers/esm/objectWithoutProperties */"Ff2n"),n(/*! react */"q1tI"),n(/*! rc-util/es/warning */"Kwbf"));n(/*! ./TreeNode */"WaYH");function o(e,t){var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function s(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}function c(e){return e.split("-")}function l(e,t){return"".concat(e,"-").concat(t)}function u(e){return e&&e.type&&e.type.isTreeNode}function d(e,t){var n=[e];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var r=t.key,i=t.children;n.push(r),e(i)}))}(t[e].children),n}function h(e,t){var n=e.clientY,r=t.selectHandle.getBoundingClientRect(),i=r.top,a=r.bottom,o=r.height,s=Math.max(.25*o,2);return n<=i+s?-1:n>=a-s?1:0}function f(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function p(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==Object(i.a)(e))return Object(a.a)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function v(e,t){var n=new Set;return(e||[]).forEach((function(e){!function e(r){if(!n.has(r)){var i=t[r];if(i){n.add(r);var a=i.parent;i.node.disabled||a&&e(a.key)}}}(e)})),Object(r.a)(n)}function m(e){var t={};return Object.keys(e).forEach((function(n){(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n])})),t}},P5Jw:
/*!***********************************************************!*\
!*** ./node_modules/react-copy-to-clipboard/lib/index.js ***!
\***********************************************************/
/*! no static exports found */
/*! exports used: CopyToClipboard */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";var r=n(/*! ./Component */"rHrb").CopyToClipboard;r.CopyToClipboard=r,e.exports=r},QOUV:
/*!**********************************************!*\
!*** ./src/components/Video/Modal/index.tsx ***!
\**********************************************/
/*! exports provided: VideoModal */
/*! exports used: VideoModal */function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));n(/*! antd/es/modal/style */"2qtc");var r=n(/*! antd/es/modal */"kLXV"),i=(n(/*! antd/es/button/style */"+L6B"),n(/*! antd/es/button */"2/Rp")),a=(n(/*! antd/es/message/style */"miYZ"),n(/*! antd/es/message */"tsqr")),o=(n(/*! antd/es/input/style */"5NDa"),n(/*! antd/es/input */"5rEg")),s=n(/*! react */"q1tI"),c=n.n(s),l=n(/*! ../Play */"hgre"),u=n(/*! react-copy-to-clipboard */"P5Jw"),d=n(/*! ./index.less?modules */"po3F"),h=n.n(d),f=n(/*! js-base64 */"J66h"),p=function(e){var t=e.visible,n=e.width,s=e.videoId,d=e.file_url,p=e.course_id,v=e.copyUrl,m=e.toLog,g=void 0===m||m,b=e.logWatchHistory,y=void 0===b?function(){}:b,_=e.onClose,k=void 0===_?function(){}:_;return c.a.createElement(r.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:t,title:null,footer:null,width:n,className:h.a.modal},c.a.createElement("i",{className:"".concat(h.a.closeIcon," iconfont icon-htmal5icon19"),onClick:k}),t&&c.a.createElement(l.a,{courseId:p,src:null!=d&&d.startsWith("http")?d:f.Base64.decode(d),videoId:s,toLog:g,logWatchHistory:y}),c.a.createElement("div",{className:h.a.wrap},c.a.createElement(o.a,{className:h.a.input,value:v}),c.a.createElement(u.CopyToClipboard,{text:v,onCopy:function(){return a.b.success("复制成功")}},c.a.createElement(i.a,{type:"primary"},"复制视频地址"))))}},WaYH:
/*!*********************************************************!*\
!*** ./node_modules/rc-tree/es/TreeNode.js + 1 modules ***!
\*********************************************************/
/*! exports provided: InternalTreeNode, default */
/*! exports used: default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/contextTypes.js because of ./node_modules/rc-tree/es/Tree.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/util.js because of ./node_modules/antd/es/table/hooks/useSelection.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/utils/treeUtil.js because of ./node_modules/antd/es/table/hooks/useSelection.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";var r=n("rePB"),i=n("Ff2n"),a=n("VTBJ"),o=n("1OyB"),s=n("vuIU"),c=n("JX7q"),l=n("Ji7U"),u=n("LK+K"),d=n("q1tI"),h=n("TSYQ"),f=n.n(h),p=n("sboe"),v=n("OZM5"),m=function(e){var t=e.prefixCls,n=e.level,i=e.isStart,a=e.isEnd;if(!n)return null;for(var o="".concat(t,"-indent-unit"),s=[],c=0;c<n;c+=1){var l;s.push(d.createElement("span",{key:c,className:f()(o,(l={},Object(r.a)(l,"".concat(o,"-start"),i[c+1]),Object(r.a)(l,"".concat(o,"-end"),a[c+1]),Object(r.a)(l,"".concat(o,"-end-first-level"),!c&&a[0]),l))}))}return d.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},s)},g=n("815F"),b=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).state={dragNodeHighlight:!1},e.onSelectorClick=function(t){(0,e.props.context.onNodeClick)(t,Object(g.b)(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)},e.onSelectorDoubleClick=function(t){(0,e.props.context.onNodeDoubleClick)(t,Object(g.b)(e.props))},e.onSelect=function(t){if(!e.isDisabled()){var n=e.props.context.onNodeSelect;t.preventDefault(),n(t,Object(g.b)(e.props))}},e.onCheck=function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,i=n.checked,a=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){t.preventDefault();var o=!i;a(t,Object(g.b)(e.props),o)}}},e.onMouseEnter=function(t){(0,e.props.context.onNodeMouseEnter)(t,Object(g.b)(e.props))},e.onMouseLeave=function(t){(0,e.props.context.onNodeMouseLeave)(t,Object(g.b)(e.props))},e.onContextMenu=function(t){(0,e.props.context.onNodeContextMenu)(t,Object(g.b)(e.props))},e.onDragStart=function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,Object(c.a)(e));try{t.dataTransfer.setData("text/plain","")}catch(e){}},e.onDragEnter=function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,Object(c.a)(e))},e.onDragOver=function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,Object(c.a)(e))},e.onDragLeave=function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,Object(c.a)(e))},e.onDragEnd=function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Object(c.a)(e))},e.onDrop=function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Object(c.a)(e))},e.onExpand=function(t){(0,e.props.context.onNodeExpand)(t,Object(g.b)(e.props))},e.setSelectHandle=function(t){e.selectHandle=t},e.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?"open":"close"},e.hasChildren=function(){var t=e.props.eventKey;return!!((e.props.context.keyEntities[t]||{}).children||[]).length},e.isLeaf=function(){var t=e.props,n=t.isLeaf,r=t.loaded,i=e.props.context.loadData,a=e.hasChildren();return!1!==n&&(n||!i&&!a||i&&r&&!a)},e.isDisabled=function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)},e.isCheckable=function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n},e.syncLoadData=function(t){var n=t.expanded,r=t.loading,i=t.loaded,a=e.props.context,o=a.loadData,s=a.onNodeLoad;r||o&&n&&!e.isLeaf()&&(e.hasChildren()||i||s(Object(g.b)(e.props)))},e.renderSwitcher=function(){var t=e.props,n=t.expanded,r=t.switcherIcon,i=e.props.context,o=i.prefixCls,s=i.switcherIcon,c=r||s;if(e.isLeaf())return d.createElement("span",{className:f()("".concat(o,"-switcher"),"".concat(o,"-switcher-noop"))},"function"==typeof c?c(Object(a.a)(Object(a.a)({},e.props),{},{isLeaf:!0})):c);var l=f()("".concat(o,"-switcher"),"".concat(o,"-switcher_").concat(n?"open":"close"));return d.createElement("span",{onClick:e.onExpand,className:l},"function"==typeof c?c(Object(a.a)(Object(a.a)({},e.props),{},{isLeaf:!1})):c)},e.renderCheckbox=function(){var t=e.props,n=t.checked,r=t.halfChecked,i=t.disableCheckbox,a=e.props.context.prefixCls,o=e.isDisabled(),s=e.isCheckable();if(!s)return null;var c="boolean"!=typeof s?s:null;return d.createElement("span",{className:f()("".concat(a,"-checkbox"),n&&"".concat(a,"-checkbox-checked"),!n&&r&&"".concat(a,"-checkbox-indeterminate"),(o||i)&&"".concat(a,"-checkbox-disabled")),onClick:e.onCheck},c)},e.renderIcon=function(){var t=e.props.loading,n=e.props.context.prefixCls;return d.createElement("span",{className:f()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})},e.renderSelector=function(){var t,n,r=e.state.dragNodeHighlight,i=e.props,a=i.title,o=i.selected,s=i.icon,c=i.loading,l=i.data,u=e.props.context,h=u.prefixCls,p=u.showIcon,v=u.icon,m=u.draggable,g=u.loadData,b=u.titleRender,y=e.isDisabled(),_="".concat(h,"-node-content-wrapper");if(p){var k=s||v;t=k?d.createElement("span",{className:f()("".concat(h,"-iconEle"),"".concat(h,"-icon__customize"))},"function"==typeof k?k(e.props):k):e.renderIcon()}else g&&c&&(t=e.renderIcon());n="function"==typeof a?a(l):b?b(l):a;var E=d.createElement("span",{className:"".concat(h,"-title")},n);return d.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof a?a:"",className:f()("".concat(_),"".concat(_,"-").concat(e.getNodeState()||"normal"),!y&&(o||r)&&"".concat(h,"-node-selected"),!y&&m&&"draggable"),draggable:!y&&m||void 0,"aria-grabbed":!y&&m||void 0,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick,onDragStart:m?e.onDragStart:void 0},t,E)},e}return Object(s.a)(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,a=t.className,o=t.style,s=t.dragOver,c=t.dragOverGapTop,l=t.dragOverGapBottom,u=t.isLeaf,h=t.isStart,p=t.isEnd,b=t.expanded,y=t.selected,_=t.checked,k=t.halfChecked,E=t.loading,O=t.domRef,S=t.active,w=t.onMouseMove,C=Object(i.a)(t,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),x=this.props.context,A=x.prefixCls,j=x.filterTreeNode,R=x.draggable,T=x.keyEntities,D=this.isDisabled(),L=Object(v.f)(C),M=(T[n]||{}).level,I=p[p.length-1];return d.createElement("div",Object.assign({ref:O,className:f()(a,"".concat(A,"-treenode"),(e={},Object(r.a)(e,"".concat(A,"-treenode-disabled"),D),Object(r.a)(e,"".concat(A,"-treenode-switcher-").concat(b?"open":"close"),!u),Object(r.a)(e,"".concat(A,"-treenode-checkbox-checked"),_),Object(r.a)(e,"".concat(A,"-treenode-checkbox-indeterminate"),k),Object(r.a)(e,"".concat(A,"-treenode-selected"),y),Object(r.a)(e,"".concat(A,"-treenode-loading"),E),Object(r.a)(e,"".concat(A,"-treenode-active"),S),Object(r.a)(e,"".concat(A,"-treenode-leaf-last"),I),Object(r.a)(e,"drag-over",!D&&s),Object(r.a)(e,"drag-over-gap-top",!D&&c),Object(r.a)(e,"drag-over-gap-bottom",!D&&l),Object(r.a)(e,"filter-node",j&&j(Object(g.b)(this.props))),e)),style:o,onDragEnter:R?this.onDragEnter:void 0,onDragOver:R?this.onDragOver:void 0,onDragLeave:R?this.onDragLeave:void 0,onDrop:R?this.onDrop:void 0,onDragEnd:R?this.onDragEnd:void 0,onMouseMove:w},L),d.createElement(m,{prefixCls:A,level:M,isStart:h,isEnd:p}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(d.Component),y=function(e){return d.createElement(p.a.Consumer,null,(function(t){return d.createElement(b,Object.assign({},e,{context:t}))}))};y.displayName="TreeNode",y.defaultProps={title:"---"},y.isTreeNode=1;t.a=y},Y1PL:
/*!**********************************************************!*\
!*** ./node_modules/rc-textarea/es/index.js + 7 modules ***!
\**********************************************************/
/*! exports provided: ResizableTextArea, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.r(t),n.d(t,"ResizableTextArea",(function(){return L}));var r=n("wx14"),i=n("1OyB"),a=n("vuIU"),o=n("Ji7U"),s=n("LK+K"),c=n("q1tI"),l=n("VTBJ"),u=n("rePB"),d=n("Zm9Q"),h=(n("Kwbf"),n("c+Xe")),f=n("m+aA"),p=n("bdgK"),v=new Map;var m=new p.default((function(e){e.forEach((function(e){var t,n=e.target;null===(t=v.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var g=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component),b=c.createContext(null);function y(e){var t=e.children,n=e.disabled,r=c.useRef(null),i=c.useRef(null),a=c.useContext(b),o=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),s=c.isValidElement(t)&&Object(h.c)(t),u=s?t.ref:null,d=c.useMemo((function(){return Object(h.a)(u,r)}),[u,r]),p=c.useRef(e);p.current=e;var y=c.useCallback((function(e){var t=p.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),s=i.width,c=i.height,u=e.offsetWidth,d=e.offsetHeight,h=Math.floor(s),f=Math.floor(c);if(o.current.width!==h||o.current.height!==f||o.current.offsetWidth!==u||o.current.offsetHeight!==d){var v={width:h,height:f,offsetWidth:u,offsetHeight:d};o.current=v;var m=u===Math.round(s)?s:u,g=d===Math.round(c)?c:d,b=Object(l.a)(Object(l.a)({},v),{},{offsetWidth:m,offsetHeight:g});null==a||a(b,e,r),n&&Promise.resolve().then((function(){n(b,e)}))}}),[]);return c.useEffect((function(){var e,t,a=Object(f.a)(r.current)||Object(f.a)(i.current);return a&&!n&&(e=a,t=y,v.has(e)||(v.set(e,new Set),m.observe(e)),v.get(e).add(t)),function(){return function(e,t){v.has(e)&&(v.get(e).delete(t),v.get(e).size||(m.unobserve(e),v.delete(e)))}(a,y)}}),[r.current,n]),c.createElement(g,{ref:i},s?c.cloneElement(t,{ref:d}):t)}function _(e){var t=e.children;return Object(d.a)(t).map((function(t,n){var i=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return c.createElement(y,Object(r.a)({},e,{key:i}),t)}))}_.Collection=function(e){var t=e.children,n=e.onBatchResize,r=c.useRef(0),i=c.useRef([]),a=c.useContext(b),o=c.useCallback((function(e,t,o){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){s===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return c.createElement(b.Provider,{value:o},t)};var k,E=_,O=n("bT9E"),S=n("TSYQ"),w=n.n(S),C="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",x=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],A={};function j(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&A[n])return A[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=x.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),c={sizingStyle:s,paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(A[n]=c),c}var R,T=n("Gytx"),D=n.n(T);!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(R||(R={}));var L=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var a;return Object(i.a)(this,n),(a=t.call(this,e)).nextFrameActionId=void 0,a.resizeFrameId=void 0,a.textArea=void 0,a.saveTextArea=function(e){a.textArea=e},a.handleResize=function(e){var t=a.state.resizeStatus,n=a.props,r=n.autoSize,i=n.onResize;t===R.NONE&&("function"==typeof i&&i(e),r&&a.resizeOnNextFrame())},a.resizeOnNextFrame=function(){cancelAnimationFrame(a.nextFrameActionId),a.nextFrameActionId=requestAnimationFrame(a.resizeTextarea)},a.resizeTextarea=function(){var e=a.props.autoSize;if(e&&a.textArea){var t=e.minRows,n=e.maxRows,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;k||((k=document.createElement("textarea")).setAttribute("tab-index","-1"),k.setAttribute("aria-hidden","true"),document.body.appendChild(k)),e.getAttribute("wrap")?k.setAttribute("wrap",e.getAttribute("wrap")):k.removeAttribute("wrap");var i=j(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,c=i.sizingStyle;k.setAttribute("style","".concat(c,";").concat(C)),k.value=e.value||e.placeholder||"";var l,u=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,h=k.scrollHeight;if("border-box"===s?h+=o:"content-box"===s&&(h-=a),null!==n||null!==r){k.value=" ";var f=k.scrollHeight-a;null!==n&&(u=f*n,"border-box"===s&&(u=u+a+o),h=Math.max(u,h)),null!==r&&(d=f*r,"border-box"===s&&(d=d+a+o),l=h>d?"":"hidden",h=Math.min(d,h))}return{height:h,minHeight:u,maxHeight:d,overflowY:l,resize:"none"}}(a.textArea,!1,t,n);a.setState({textareaStyles:r,resizeStatus:R.RESIZING},(function(){cancelAnimationFrame(a.resizeFrameId),a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:R.RESIZED},(function(){a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:R.NONE}),a.fixFirefoxAutoScroll()}))}))}))}))}},a.renderTextArea=function(){var e=a.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,i=e.autoSize,o=e.onResize,s=e.className,d=e.disabled,h=a.state,f=h.textareaStyles,p=h.resizeStatus,v=Object(O.a)(a.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),m=w()(n,s,Object(u.a)({},"".concat(n,"-disabled"),d));"value"in v&&(v.value=v.value||"");var g=Object(l.a)(Object(l.a)(Object(l.a)({},a.props.style),f),p===R.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return c.createElement(E,{onResize:a.handleResize,disabled:!(i||o)},c.createElement("textarea",Object(r.a)({},v,{className:m,style:g,ref:a.saveTextArea})))},a.state={textareaStyles:{},resizeStatus:R.NONE},a}return Object(a.a)(n,[{key:"componentDidUpdate",value:function(e){e.value===this.props.value&&D()(e.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(c.Component),M=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var r;Object(i.a)(this,n),(r=t.call(this,e)).resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,i=t.onKeyDown;13===e.keyCode&&n&&n(e),i&&i(e)};var a=void 0===e.value||null===e.value?e.defaultValue:e.value;return r.state={value:a},r}return Object(a.a)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return c.createElement(L,Object(r.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(c.Component);t.default=M},ZpRC:
/*!*************************************************************************!*\
!*** ./node_modules/scroll-into-view-if-needed/es/index.js + 1 modules ***!
\*************************************************************************/
/*! exports provided: default */
/*! exports used: default */function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function i(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function a(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return i(n.overflowY,t)||i(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function o(e,t,n,r,i,a,o,s){return a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0}var s=function(e,t){var n=window,i=t.scrollMode,s=t.block,c=t.inline,l=t.boundary,u=t.skipOverflowHiddenElements,d="function"==typeof l?l:function(e){return e!==l};if(!r(e))throw new TypeError("Invalid target");for(var h=document.scrollingElement||document.documentElement,f=[],p=e;r(p)&&d(p);){if((p=p.parentElement)===h){f.push(p);break}null!=p&&p===document.body&&a(p)&&!a(document.documentElement)||null!=p&&a(p,u)&&f.push(p)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),_=y.height,k=y.width,E=y.top,O=y.right,S=y.bottom,w=y.left,C="start"===s||"nearest"===s?E:"end"===s?S:E+_/2,x="center"===c?w+k/2:"end"===c?O:w,A=[],j=0;j<f.length;j++){var R=f[j],T=R.getBoundingClientRect(),D=T.height,L=T.width,M=T.top,I=T.right,N=T.bottom,P=T.left;if("if-needed"===i&&E>=0&&w>=0&&S<=m&&O<=v&&E>=M&&S<=N&&w>=P&&O<=I)return A;var B=getComputedStyle(R),K=parseInt(B.borderLeftWidth,10),U=parseInt(B.borderTopWidth,10),F=parseInt(B.borderRightWidth,10),z=parseInt(B.borderBottomWidth,10),V=0,H=0,G="offsetWidth"in R?R.offsetWidth-R.clientWidth-K-F:0,W="offsetHeight"in R?R.offsetHeight-R.clientHeight-U-z:0;if(h===R)V="start"===s?C:"end"===s?C-m:"nearest"===s?o(b,b+m,m,U,z,b+C,b+C+_,_):C-m/2,H="start"===c?x:"center"===c?x-v/2:"end"===c?x-v:o(g,g+v,v,K,F,g+x,g+x+k,k),V=Math.max(0,V+b),H=Math.max(0,H+g);else{V="start"===s?C-M-U:"end"===s?C-N+z+W:"nearest"===s?o(M,N,D,U,z+W,C,C+_,_):C-(M+D/2)+W/2,H="start"===c?x-P-K:"center"===c?x-(P+L/2)+G/2:"end"===c?x-I+F+G:o(P,I,L,K,F+G,x,x+k,k);var q=R.scrollLeft,X=R.scrollTop;C+=X-(V=Math.max(0,Math.min(X+V,R.scrollHeight-D+W))),x+=q-(H=Math.max(0,Math.min(q+H,R.scrollWidth-L+G)))}A.push({el:R,top:V,left:H})}return A};function c(e){return e===Object(e)&&0!==Object.keys(e).length}t.a=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(c(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:s(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:c(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,i=e.top,a=e.left;r.scroll&&n?r.scroll({top:i,left:a,behavior:t}):(r.scrollTop=i,r.scrollLeft=a)}))}(s(e,r),r.behavior)}}},Zss7:
/*!**********************************************!*\
!*** ./node_modules/tinycolor2/tinycolor.js ***!
\**********************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r;!function(i){var a=/^\s+/,o=/\s+$/,s=0,c=i.round,l=i.min,u=i.max,d=i.random;function h(e,t){if(t=t||{},(e=e||"")instanceof h)return e;if(!(this instanceof h))return new h(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,c=null,d=!1,h=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(o,"").toLowerCase();var t,n=!1;if(R[e])e=R[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=V.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=V.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=V.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=V.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=V.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=V.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=V.hex8.exec(e))return{r:I(t[1]),g:I(t[2]),b:I(t[3]),a:K(t[4]),format:n?"name":"hex8"};if(t=V.hex6.exec(e))return{r:I(t[1]),g:I(t[2]),b:I(t[3]),format:n?"name":"hex"};if(t=V.hex4.exec(e))return{r:I(t[1]+""+t[1]),g:I(t[2]+""+t[2]),b:I(t[3]+""+t[3]),a:K(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=V.hex3.exec(e))return{r:I(t[1]+""+t[1]),g:I(t[2]+""+t[2]),b:I(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(H(e.r)&&H(e.g)&&H(e.b)?(f=e.r,p=e.g,v=e.b,t={r:255*L(f,255),g:255*L(p,255),b:255*L(v,255)},d=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):H(e.h)&&H(e.s)&&H(e.v)?(r=P(e.s),s=P(e.v),t=function(e,t,n){e=6*L(e,360),t=L(t,100),n=L(n,100);var r=i.floor(e),a=e-r,o=n*(1-t),s=n*(1-a*t),c=n*(1-(1-a)*t),l=r%6;return{r:255*[n,s,o,o,c,n][l],g:255*[c,n,n,s,o,o][l],b:255*[o,o,c,n,n,s][l]}}(e.h,r,s),d=!0,h="hsv"):H(e.h)&&H(e.s)&&H(e.l)&&(r=P(e.s),c=P(e.l),t=function(e,t,n){var r,i,a;function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=L(e,360),t=L(t,100),n=L(n,100),0===t)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:255*r,g:255*i,b:255*a}}(e.h,r,c),d=!0,h="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,v;return n=D(n),{ok:d,format:e.format||h,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=s++}function f(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var r,i,a=u(e,t,n),o=l(e,t,n),s=(a+o)/2;if(a==o)r=i=0;else{var c=a-o;switch(i=s>.5?c/(2-a-o):c/(a+o),a){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,l:s}}function p(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var r,i,a=u(e,t,n),o=l(e,t,n),s=a,c=a-o;if(i=0===a?0:c/a,a==o)r=0;else{switch(a){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,v:s}}function v(e,t,n,r){var i=[N(c(e).toString(16)),N(c(t).toString(16)),N(c(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function m(e,t,n,r){return[N(B(r)),N(c(e).toString(16)),N(c(t).toString(16)),N(c(n).toString(16))].join("")}function g(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.s-=t/100,n.s=M(n.s),h(n)}function b(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.s+=t/100,n.s=M(n.s),h(n)}function y(e){return h(e).desaturate(100)}function _(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.l+=t/100,n.l=M(n.l),h(n)}function k(e,t){t=0===t?0:t||10;var n=h(e).toRgb();return n.r=u(0,l(255,n.r-c(-t/100*255))),n.g=u(0,l(255,n.g-c(-t/100*255))),n.b=u(0,l(255,n.b-c(-t/100*255))),h(n)}function E(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.l-=t/100,n.l=M(n.l),h(n)}function O(e,t){var n=h(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,h(n)}function S(e){var t=h(e).toHsl();return t.h=(t.h+180)%360,h(t)}function w(e){var t=h(e).toHsl(),n=t.h;return[h(e),h({h:(n+120)%360,s:t.s,l:t.l}),h({h:(n+240)%360,s:t.s,l:t.l})]}function C(e){var t=h(e).toHsl(),n=t.h;return[h(e),h({h:(n+90)%360,s:t.s,l:t.l}),h({h:(n+180)%360,s:t.s,l:t.l}),h({h:(n+270)%360,s:t.s,l:t.l})]}function x(e){var t=h(e).toHsl(),n=t.h;return[h(e),h({h:(n+72)%360,s:t.s,l:t.l}),h({h:(n+216)%360,s:t.s,l:t.l})]}function A(e,t,n){t=t||6,n=n||30;var r=h(e).toHsl(),i=360/n,a=[h(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(h(r));return a}function j(e,t){t=t||6;for(var n=h(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(h({h:r,s:i,v:a})),a=(a+s)%1;return o}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=D(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var a=[N(c(e).toString(16)),N(c(t).toString(16)),N(c(n).toString(16)),N(B(r))];if(i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*L(this._r,255))+"%",g:c(100*L(this._g,255))+"%",b:c(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*L(this._r,255))+"%, "+c(100*L(this._g,255))+"%, "+c(100*L(this._b,255))+"%)":"rgba("+c(100*L(this._r,255))+"%, "+c(100*L(this._g,255))+"%, "+c(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=h(e);n="#"+m(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:P(e[r]));e=n}return h(e,t)},h.equals=function(e,t){return!(!e||!t)&&h(e).toRgbString()==h(t).toRgbString()},h.random=function(){return h.fromRatio({r:d(),g:d(),b:d()})},h.mix=function(e,t,n){n=0===n?0:n||50;var r=h(e).toRgb(),i=h(t).toRgb(),a=n/100;return h({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},h.readability=function(e,t){var n=h(e),r=h(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},h.isReadable=function(e,t,n){var r,i,a=h.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},h.mostReadable=function(e,t,n){var r,i,a,o,s=null,c=0;i=(n=n||{}).includeFallbackColors,a=n.level,o=n.size;for(var l=0;l<t.length;l++)(r=h.readability(e,t[l]))>c&&(c=r,s=h(t[l]));return h.isReadable(e,s,{level:a,size:o})||!i?s:(n.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],n))};var R=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=h.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(R);function D(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return l(1,u(0,e))}function I(e){return parseInt(e,16)}function N(e){return 1==e.length?"0"+e:""+e}function P(e){return e<=1&&(e=100*e+"%"),e}function B(e){return i.round(255*parseFloat(e)).toString(16)}function K(e){return I(e)/255}var U,F,z,V=(F="[\\s|\\(]+("+(U="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",z="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",{CSS_UNIT:new RegExp(U),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(e){return!!V.CSS_UNIT.exec(e)}e.exports?e.exports=h:void 0===(r=function(){return h}.call(t,n,t,e))||(e.exports=r)}(Math)},bT9E:
/*!*****************************************!*\
!*** ./node_modules/rc-util/es/omit.js ***!
\*****************************************/
/*! exports provided: default */
/*! exports used: default */function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ");function i(e,t){var n=Object(r.a)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},"f+r0":
/*!***************************************************************************!*\
!*** ./src/pages/virtualSpaces/Lists/Video/components/index.less?modules ***!
\***************************************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={flex_box_center:"flex_box_center___183d0",flex_space_between:"flex_space_between___1QirA",flex_box_vertical_center:"flex_box_vertical_center___1apgX",flex_box_center_end:"flex_box_center_end___1-mpu",flex_box_column:"flex_box_column___1YqSW",bg:"bg___2Da25",menu:"menu___iAocs",desc:"desc___3wGLC",otherLink:"otherLink___3Pj-0",card:"card___3i3I-",img:"img___1CiY5"}},fAei:
/*!******************************************************!*\
!*** ./node_modules/rc-tree/es/index.js + 4 modules ***!
\******************************************************/
/*! exports provided: TreeNode, default */
/*! exports used: TreeNode, default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-motion/es/index.js (<- Module is referenced from these modules with unsupported syntax: ./node_modules/antd/lib/button/LoadingIcon.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/TreeNode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/contextTypes.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/util.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/utils/conductUtil.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/utils/treeUtil.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-virtual-list/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return E.a}));var r=n("rePB"),i=n("VTBJ"),a=n("KQm4"),o=n("1OyB"),s=n("vuIU"),c=n("Ji7U"),l=n("LK+K"),u=n("q1tI"),d=n("4IlW"),h=n("Kwbf"),f=n("TSYQ"),p=n.n(f),v=n("sboe"),m=n("OZM5"),g=n("815F"),b=n("ODXe"),y=n("Ff2n"),_=n("+nKL"),k=n("8XRh"),E=n("WaYH"),O=function(e,t){var n=e.className,r=e.style,i=e.motion,a=e.motionNodes,o=e.motionType,s=e.onMotionStart,c=e.onMotionEnd,l=e.active,d=e.treeNodeRequiredProps,h=Object(y.a)(e,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),f=u.useState(!0),m=Object(b.a)(f,2),_=m[0],O=m[1],S=u.useContext(v.a).prefixCls,w=u.useRef(!1),C=function(){w.current||c(),w.current=!0};return Object(u.useEffect)((function(){a&&"hide"===o&&_&&O(!1)}),[a]),Object(u.useEffect)((function(){return a&&s(),function(){a&&C()}}),[]),a?u.createElement(k.default,Object.assign({ref:t,visible:_},i,{motionAppear:"show"===o,onAppearEnd:C,onLeaveEnd:C}),(function(e,t){var n=e.className,r=e.style;return u.createElement("div",{ref:t,className:p()("".concat(S,"-treenode-motion"),n),style:r},a.map((function(e){var t=e.data,n=t.key,r=Object(y.a)(t,["key"]),i=e.isStart,a=e.isEnd;delete r.children;var o=Object(g.f)(n,d);return u.createElement(E.a,Object.assign({},r,o,{active:l,data:e.data,key:n,isStart:i,isEnd:a}))})))})):u.createElement(E.a,Object.assign({domRef:t,className:n,style:r},h,{active:l}))};O.displayName="MotionTreeNode";var S=u.forwardRef(O);function w(e,t,n){var r=e.findIndex((function(e){return e.data.key===n})),i=e[r+1],a=t.findIndex((function(e){return e.data.key===n}));if(i){var o=t.findIndex((function(e){return e.data.key===i.data.key}));return t.slice(a+1,o)}return t.slice(a+1)}var C={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},x=function(){},A="RC_TREE_MOTION_".concat(Math.random()),j={key:A},R={key:A,level:0,index:0,pos:"0",node:j},T={parent:null,children:[],pos:R.pos,data:j,isStart:[],isEnd:[]};function D(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function L(e){var t=e.data.key,n=e.pos;return Object(g.e)(t,n)}var M=u.forwardRef((function(e,t){var n=e.prefixCls,r=e.data,i=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,l=e.halfCheckedKeys,d=e.keyEntities,h=e.disabled,f=e.dragging,p=e.dragOverNodeKey,v=e.dropPosition,m=e.motion,k=e.height,E=e.itemHeight,O=e.virtual,j=e.focusable,R=e.activeItem,M=e.focused,I=e.tabIndex,N=e.onKeyDown,P=e.onFocus,B=e.onBlur,K=e.onActiveChange,U=e.onListChangeStart,F=e.onListChangeEnd,z=Object(y.a)(e,["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"]),V=u.useRef(null);u.useImperativeHandle(t,(function(){return{scrollTo:function(e){V.current.scrollTo(e)}}}));var H=u.useState(i),G=Object(b.a)(H,2),W=G[0],q=G[1],X=u.useState(r),Y=Object(b.a)(X,2),Z=Y[0],Q=Y[1],J=u.useState(r),$=Object(b.a)(J,2),ee=$[0],te=$[1],ne=u.useState([]),re=Object(b.a)(ne,2),ie=re[0],ae=re[1],oe=u.useState(null),se=Object(b.a)(oe,2),ce=se[0],le=se[1];function ue(){Q(r),te(r),ae([]),le(null),F()}u.useEffect((function(){q(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function i(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}(W,i);if(null!==e.key)if(e.add){var t=Z.findIndex((function(t){return t.data.key===e.key})),n=D(w(Z,r,e.key),O,k,E),a=Z.slice();a.splice(t+1,0,T),te(a),ae(n),le("show")}else{var o=r.findIndex((function(t){return t.data.key===e.key})),s=D(w(r,Z,e.key),O,k,E),c=r.slice();c.splice(o+1,0,T),te(c),ae(s),le("hide")}else Z!==r&&(Q(r),te(r))}),[i,r]),u.useEffect((function(){f||ue()}),[f]);var de=m?ee:r,he={expandedKeys:i,selectedKeys:a,loadedKeys:s,loadingKeys:c,checkedKeys:o,halfCheckedKeys:l,dragOverNodeKey:p,dropPosition:v,keyEntities:d};return u.createElement(u.Fragment,null,M&&R&&u.createElement("span",{style:C,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(R)),u.createElement("div",{role:"tree"},u.createElement("input",{style:C,disabled:!1===j||h,tabIndex:!1!==j?I:null,onKeyDown:N,onFocus:P,onBlur:B,value:"",onChange:x})),u.createElement(_.a,Object.assign({},z,{data:de,itemKey:L,height:k,fullHeight:!1,virtual:O,itemHeight:E,prefixCls:"".concat(n,"-list"),ref:V}),(function(e){var t=e.pos,n=e.data,r=n.key,i=Object(y.a)(n,["key"]),a=e.isStart,o=e.isEnd,s=Object(g.e)(r,t);delete i.children;var c=Object(g.f)(s,he);return u.createElement(S,Object.assign({},i,c,{active:R&&r===R.data.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:m,motionNodes:r===A?ie:null,motionType:ce,onMotionStart:U,onMotionEnd:ue,treeNodeRequiredProps:he,onMouseMove:function(){K(null)}}))})))}));M.displayName="NodeList";var I=M,N=n("NvD2"),P=function(e){Object(c.a)(n,e);var t=Object(l.a)(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).destroyed=!1,e.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},e.listRef=u.createRef(),e.onNodeDragStart=function(t,n){var r=e.state,i=r.expandedKeys,a=r.keyEntities,o=e.props.onDragStart,s=n.props.eventKey;e.dragNode=n;var c=Object(m.b)(i,s);e.setState({dragging:!0,dragNodesKeys:Object(m.g)(s,a)}),e.setExpandedKeys(c),o&&o({event:t,node:Object(g.b)(n.props)})},e.onNodeDragEnter=function(t,n){var r=e.state,i=r.expandedKeys,o=r.keyEntities,s=r.dragNodesKeys,c=e.props.onDragEnter,l=n.props,u=l.pos,d=l.eventKey;if(e.dragNode&&-1===s.indexOf(d)){var h=Object(m.c)(t,n);e.dragNode.props.eventKey!==d||0!==h?setTimeout((function(){e.setState({dragOverNodeKey:d,dropPosition:h}),e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),e.delayedDragEnterLogic[u]=window.setTimeout((function(){if(e.state.dragging){var r=Object(a.a)(i),s=o[d];s&&(s.children||[]).length&&(r=Object(m.a)(i,d)),"expandedKeys"in e.props||e.setExpandedKeys(r),c&&c({event:t,node:Object(g.b)(n.props),expandedKeys:r})}}),400)}),0):e.setState({dragOverNodeKey:"",dropPosition:null})}},e.onNodeDragOver=function(t,n){var r=e.state.dragNodesKeys,i=e.props.onDragOver,a=n.props.eventKey;if(-1===r.indexOf(a)){if(e.dragNode&&a===e.state.dragOverNodeKey){var o=Object(m.c)(t,n);if(o===e.state.dropPosition)return;e.setState({dropPosition:o})}i&&i({event:t,node:Object(g.b)(n.props)})}},e.onNodeDragLeave=function(t,n){var r=e.props.onDragLeave;e.setState({dragOverNodeKey:""}),r&&r({event:t,node:Object(g.b)(n.props)})},e.onNodeDragEnd=function(t,n){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:""}),e.cleanDragState(),r&&r({event:t,node:Object(g.b)(n.props)}),e.dragNode=null},e.onNodeDrop=function(t,n){var r=e.state,i=r.dragNodesKeys,a=void 0===i?[]:i,o=r.dropPosition,s=e.props.onDrop,c=n.props,l=c.eventKey,u=c.pos;if(e.setState({dragOverNodeKey:""}),e.cleanDragState(),-1===a.indexOf(l)){var d=Object(m.k)(u),f={event:t,node:Object(g.b)(n.props),dragNode:e.dragNode?Object(g.b)(e.dragNode.props):null,dragNodesKeys:a.slice(),dropPosition:o+Number(d[d.length-1]),dropToGap:!1};0!==o&&(f.dropToGap=!0),s&&s(f),e.dragNode=null}else Object(h.a)(!1,"Can not drop to dragNode(include it's children node)")},e.cleanDragState=function(){e.state.dragging&&e.setState({dragging:!1})},e.onNodeClick=function(t,n){var r=e.props.onClick;r&&r(t,n)},e.onNodeDoubleClick=function(t,n){var r=e.props.onDoubleClick;r&&r(t,n)},e.onNodeSelect=function(t,n){var r=e.state.selectedKeys,i=e.state.keyEntities,a=e.props,o=a.onSelect,s=a.multiple,c=n.selected,l=n.key,u=!c,d=(r=u?s?Object(m.a)(r,l):[l]:Object(m.b)(r,l)).map((function(e){var t=i[e];return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),o&&o(r,{event:"select",selected:u,node:n,selectedNodes:d,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,r){var i,o=e.state,s=o.keyEntities,c=o.checkedKeys,l=o.halfCheckedKeys,u=e.props,d=u.checkStrictly,h=u.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(d){var v=r?Object(m.a)(c,f):Object(m.b)(c,f);i={checked:v,halfChecked:Object(m.b)(l,f)},p.checkedNodes=v.map((function(e){return s[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:v})}else{var g=Object(N.a)([].concat(Object(a.a)(c),[f]),!0,s),b=g.checkedKeys,y=g.halfCheckedKeys;if(!r){var _=new Set(b);_.delete(f);var k=Object(N.a)(Array.from(_),{checked:!1,halfCheckedKeys:y},s);b=k.checkedKeys,y=k.halfCheckedKeys}i=b,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=y,b.forEach((function(e){var t=s[e];if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:b},!1,{halfCheckedKeys:y})}h&&h(i,p)},e.onNodeLoad=function(t){return new Promise((function(n){e.setState((function(r){var i=r.loadedKeys,a=void 0===i?[]:i,o=r.loadingKeys,s=void 0===o?[]:o,c=e.props,l=c.loadData,u=c.onLoad,d=t.key;return l&&-1===a.indexOf(d)&&-1===s.indexOf(d)?(l(t).then((function(){var r=e.state,i=r.loadedKeys,a=r.loadingKeys,o=Object(m.a)(i,d),s=Object(m.b)(a,d);u&&u(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState({loadingKeys:s}),n()})),{loadingKeys:Object(m.a)(s,d)}):{}}))}))},e.onNodeMouseEnter=function(t,n){var r=e.props.onMouseEnter;r&&r({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var r=e.props.onMouseLeave;r&&r({event:t,node:n})},e.onNodeContextMenu=function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0}),t&&t.apply(void 0,arguments)},e.onBlur=function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null),t&&t.apply(void 0,arguments)},e.getTreeNodeRequiredProps=function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}},e.setExpandedKeys=function(t){var n=e.state.treeData,r=Object(g.d)(n,t);e.setUncontrolledState({expandedKeys:t,flattenNodes:r},!0)},e.onNodeExpand=function(t,n){var r=e.state.expandedKeys,i=e.state.listChanging,a=e.props,o=a.onExpand,s=a.loadData,c=n.key,l=n.expanded;if(!i){var u=r.indexOf(c),d=!l;if(Object(h.a)(l&&-1!==u||!l&&-1===u,"Expand state not sync with index check"),r=d?Object(m.a)(r,c):Object(m.b)(r,c),e.setExpandedKeys(r),o&&o(r,{node:n,expanded:d,nativeEvent:t.nativeEvent}),d&&s){var f=e.onNodeLoad(n);f&&f.then((function(){var t=Object(g.d)(e.state.treeData,r);e.setUncontrolledState({flattenNodes:t})}))}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))},e.onActiveChange=function(t){var n=e.state.activeKey,r=e.props.onActiveChange;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t}),r&&r(t))},e.getActiveItem=function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){return e.data.key===n}))||null},e.offsetActiveKey=function(t){var n=e.state,r=n.flattenNodes,i=n.activeKey,a=r.findIndex((function(e){return e.data.key===i}));-1===a&&t<0&&(a=r.length);var o=r[a=(a+t+r.length)%r.length];if(o){var s=o.data.key;e.onActiveChange(s)}else e.onActiveChange(null)},e.onKeyDown=function(t){var n=e.state,r=n.activeKey,a=n.expandedKeys,o=n.checkedKeys,s=e.props,c=s.onKeyDown,l=s.checkable,u=s.selectable;switch(t.which){case d.a.UP:e.offsetActiveKey(-1),t.preventDefault();break;case d.a.DOWN:e.offsetActiveKey(1),t.preventDefault()}var h=e.getActiveItem();if(h&&h.data){var f=e.getTreeNodeRequiredProps(),p=!1===h.data.isLeaf||!!(h.data.children||[]).length,v=Object(g.b)(Object(i.a)(Object(i.a)({},Object(g.f)(r,f)),{},{data:h.data,active:!0}));switch(t.which){case d.a.LEFT:p&&a.includes(r)?e.onNodeExpand({},v):h.parent&&e.onActiveChange(h.parent.data.key),t.preventDefault();break;case d.a.RIGHT:p&&!a.includes(r)?e.onNodeExpand({},v):h.children&&h.children.length&&e.onActiveChange(h.children[0].data.key),t.preventDefault();break;case d.a.ENTER:case d.a.SPACE:!l||v.disabled||!1===v.checkable||v.disableCheckbox?l||!u||v.disabled||!1===v.selectable||e.onNodeSelect({},v):e.onNodeCheck({},v,!o.includes(r))}}c&&c(t)},e.setUncontrolledState=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var a=!1,o=!0,s={};Object.keys(t).forEach((function(n){n in e.props?o=!1:(a=!0,s[n]=t[n])})),!a||n&&!o||e.setState(Object(i.a)(Object(i.a)({},s),r))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return Object(s.a)(n,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var e,t=this.state,n=t.focused,i=t.flattenNodes,a=t.keyEntities,o=t.dragging,s=t.activeKey,c=this.props,l=c.prefixCls,d=c.className,h=c.style,f=c.showLine,g=c.focusable,b=c.tabIndex,y=void 0===b?0:b,_=c.selectable,k=c.showIcon,E=c.icon,O=c.switcherIcon,S=c.draggable,w=c.checkable,C=c.checkStrictly,x=c.disabled,A=c.motion,j=c.loadData,R=c.filterTreeNode,T=c.height,D=c.itemHeight,L=c.virtual,M=c.titleRender,N=c.onContextMenu,P=Object(m.f)(this.props);return u.createElement(v.a.Provider,{value:{prefixCls:l,selectable:_,showIcon:k,icon:E,switcherIcon:O,draggable:S,checkable:w,checkStrictly:C,disabled:x,keyEntities:a,loadData:j,filterTreeNode:R,titleRender:M,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",{className:p()(l,d,(e={},Object(r.a)(e,"".concat(l,"-show-line"),f),Object(r.a)(e,"".concat(l,"-focused"),n),Object(r.a)(e,"".concat(l,"-active-focused"),null!==s),e))},u.createElement(I,Object.assign({ref:this.listRef,prefixCls:l,style:h,data:i,disabled:x,selectable:_,checkable:!!w,motion:A,dragging:o,height:T,itemHeight:D,virtual:L,focusable:g,focused:n,tabIndex:y,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:N},this.getTreeNodeRequiredProps(),P))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,a=t.prevProps,o={prevProps:e};function s(t){return!a&&t in e||a&&a[t]!==e[t]}if(s("treeData")?n=e.treeData:s("children")&&(Object(h.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=Object(g.c)(e.children)),n){o.treeData=n;var c=Object(g.a)(n);o.keyEntities=Object(i.a)(Object(r.a)({},A,R),c.keyEntities)}var l,u=o.keyEntities||t.keyEntities;if(s("expandedKeys")||a&&s("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!a&&e.defaultExpandParent?Object(m.e)(e.expandedKeys,u):e.expandedKeys;else if(!a&&e.defaultExpandAll){var d=Object(i.a)({},u);delete d[A],o.expandedKeys=Object.keys(d).map((function(e){return d[e].key}))}else!a&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Object(m.e)(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var f=Object(g.d)(n||t.treeData,o.expandedKeys||t.expandedKeys);o.flattenNodes=f}if((e.selectable&&(s("selectedKeys")?o.selectedKeys=Object(m.d)(e.selectedKeys,e):!a&&e.defaultSelectedKeys&&(o.selectedKeys=Object(m.d)(e.defaultSelectedKeys,e))),e.checkable)&&(s("checkedKeys")?l=Object(m.j)(e.checkedKeys)||{}:!a&&e.defaultCheckedKeys?l=Object(m.j)(e.defaultCheckedKeys)||{}:n&&(l=Object(m.j)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),l)){var p=l,v=p.checkedKeys,b=void 0===v?[]:v,y=p.halfCheckedKeys,_=void 0===y?[]:y;if(!e.checkStrictly){var k=Object(N.a)(b,!0,u);b=k.checkedKeys,_=k.halfCheckedKeys}o.checkedKeys=b,o.halfCheckedKeys=_}return s("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),n}(u.Component);P.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:[]},P.TreeNode=E.a;var B=P;t.b=B},h78n:
/*!**********************************************************!*\
!*** ./node_modules/rc-progress/es/index.js + 3 modules ***!
\**********************************************************/
/*! exports provided: Line, Circle, default */
/*! exports used: Circle */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n("q1tI"),i=n.n(r),a=n("TSYQ"),o=n.n(a),s={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},c=function(e){var t=e.map((function(){return Object(r.useRef)()})),n=Object(r.useRef)();return Object(r.useEffect)((function(){var e=Date.now(),r=!1;Object.keys(t).forEach((function(i){var a=t[i].current;if(a){r=!0;var o=a.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&e-n.current<100&&(o.transitionDuration="0s, 0s")}})),r&&(n.current=Date.now())})),[t]};function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var f=function(e){var t=e.className,n=e.percent,r=e.prefixCls,a=e.strokeColor,s=e.strokeLinecap,d=e.strokeWidth,f=e.style,p=e.trailColor,v=e.trailWidth,m=e.transition,g=h(e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete g.gapPosition;var b=Array.isArray(n)?n:[n],y=Array.isArray(a)?a:[a],_=u(c(b),1)[0],k=d/2,E=100-d/2,O="M ".concat("round"===s?k:0,",").concat(k,"\n L ").concat("round"===s?E:100,",").concat(k),S="0 0 100 ".concat(d),w=0;return i.a.createElement("svg",l({className:o()("".concat(r,"-line"),t),viewBox:S,preserveAspectRatio:"none",style:f},g),i.a.createElement("path",{className:"".concat(r,"-line-trail"),d:O,strokeLinecap:s,stroke:p,strokeWidth:v||d,fillOpacity:"0"}),b.map((function(e,t){var n={strokeDasharray:"".concat(e,"px, 100px"),strokeDashoffset:"-".concat(w,"px"),transition:m||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},a=y[t]||y[y.length-1];return w+=e,i.a.createElement("path",{key:t,className:"".concat(r,"-line-path"),d:O,strokeLinecap:s,stroke:a,strokeWidth:d,fillOpacity:"0",ref:_[t],style:n})})))};f.defaultProps=s;function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var b=0;function y(e){return+e.replace("%","")}function _(e){return Array.isArray(e)?e:[e]}function k(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0,o=50-r/2,s=0,c=-o,l=0,u=-2*o;switch(a){case"left":s=-o,c=0,l=2*o,u=0;break;case"right":s=o,c=0,l=-2*o,u=0;break;case"bottom":c=o,u=2*o}var d="M 50,50 m ".concat(s,",").concat(c,"\n a ").concat(o,",").concat(o," 0 1 1 ").concat(l,",").concat(-u,"\n a ").concat(o,",").concat(o," 0 1 1 ").concat(-l,",").concat(u),h=2*Math.PI*o,f={stroke:n,strokeDasharray:"".concat(t/100*(h-i),"px ").concat(h,"px"),strokeDashoffset:"-".concat(i/2+e/100*(h-i),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:d,pathStyle:f}}var E=function(e){var t,n=e.prefixCls,a=e.strokeWidth,s=e.trailWidth,l=e.gapDegree,u=e.gapPosition,d=e.trailColor,h=e.strokeLinecap,f=e.style,m=e.className,E=e.strokeColor,O=e.percent,S=g(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),w=Object(r.useMemo)((function(){return b+=1}),[]),C=k(0,100,d,a,l,u),x=C.pathString,A=C.pathStyle,j=_(O),R=_(E),T=R.find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),D=v(c(j),1)[0];return i.a.createElement("svg",p({className:o()("".concat(n,"-circle"),m),viewBox:"0 0 100 100",style:f},S),T&&i.a.createElement("defs",null,i.a.createElement("linearGradient",{id:"".concat(n,"-gradient-").concat(w),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(T).sort((function(e,t){return y(e)-y(t)})).map((function(e,t){return i.a.createElement("stop",{key:t,offset:e,stopColor:T[e]})})))),i.a.createElement("path",{className:"".concat(n,"-circle-trail"),d:x,stroke:d,strokeLinecap:h,strokeWidth:s||a,fillOpacity:"0",style:A}),(t=0,j.map((function(e,r){var o=R[r]||R[R.length-1],s="[object Object]"===Object.prototype.toString.call(o)?"url(#".concat(n,"-gradient-").concat(w,")"):"",c=k(t,e,o,a,l,u);return t+=e,i.a.createElement("path",{key:r,className:"".concat(n,"-circle-path"),d:c.pathString,stroke:s,strokeLinecap:h,strokeWidth:a,opacity:0===e?0:1,fillOpacity:"0",style:c.pathStyle,ref:D[r]})}))).reverse())};E.defaultProps=s;var O=E},hgre:
/*!*********************************************!*\
!*** ./src/components/Video/Play/index.jsx ***!
\*********************************************/
/*! exports provided: default */
/*! exports used: default */function(e,t,n){"use strict";n(/*! antd/es/message/style */"miYZ");var r=n(/*! antd/es/message */"tsqr"),i=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */"9og8"),a=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator */"WmNS"),o=n.n(a),s=n(/*! react */"q1tI"),c=n.n(s),l=n(/*! flv.js */"GUcZ"),u=n(/*! hls.js */"ulZh"),d=n.n(u),h=n(/*! @/utils/authority */"xKgJ"),f=n(/*! @/utils/fullscreen.ts */"bntm"),p=n(/*! ./index.less?modules */"4xil"),v=n.n(p);function m(e){if(isNaN(e))return{minutes:"00",seconds:"00"};var t=new Date(1e3*e).toISOString().substr(11,8);return{minutes:t.substr(3,2),seconds:t.substr(6,2)}}function g(e,t){return e-t}function b(e){e.sort(g);for(var t=0,n=0;n<e.length-1;n++){var r=Math.abs(e[n+1]-e[n]);r<21&&(t+=r)}return t}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return!!(this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2)}});var y=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;t.a=Object(s.forwardRef)((function(e,t){var n,a,u,p=e.src,g=e.toLog,_=e.videoId,k=e.logWatchHistory,E=e.courseId,O=void 0===E?null:E,S=e.startTime,w=e.handlePause,C=void 0===w?function(){}:w,x=e.handlePlay,A=void 0===x?function(){}:x,j=e.handlePlayEnded,R=void 0===j?function(){}:j,T=e.videoSpeed,D=void 0===T?1:T,L="flv"===(null===(a=p=null===(n=p)||void 0===n?void 0:n.replace("http://","https://"))||void 0===a||null===(u=a.split("."))||void 0===u?void 0:u.pop()),M=Object(s.useRef)(),I=Object(s.useRef)(),N=Object(s.useRef)(),P=Object(s.useRef)(),B=Object(s.useRef)(),K=Object(s.useRef)(),U=Object(s.useRef)(),F=Object(s.useRef)(),z=Object(s.useRef)(),V=Object(s.useRef)(),H=Object(s.useRef)(),G=Object(s.useRef)(),W=Object(s.useRef)(),q=Object(s.useRef)(),X=navigator.userAgent.toLowerCase().match(y),Y=X?X[0]:"pc",Z=Object(s.useRef)(!1),Q=Object(h.x)(),J=0,$=0,ee=0,te=null,ne=!1,re=20,ie=1,ae=!1,oe=!1,se=[];Object(s.useImperativeHandle)(t,(function(){return{getLastUpdatedTime:function(){return M.current.currentTime},getDuration:function(){return M.current.duration}}}));var ce=Object(s.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={point:M.current.currentTime};function r(){return a.apply(this,arguments)}function a(){return(a=Object(i.a)(o.a.mark((function t(){var r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return ae=!0,t.next=3,k(n);case 3:r=t.sent,te=r,ae=!1,e&&e();case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}te?(n.log_id=te,n.watch_duration=b(se),n.total_duration=$):(O?(n.video_id=parseInt(_,10),n.course_id=O):n.video_id=_,n.duration=J,n.device=Y),t&&(n.ed="1"),r()}),[_,O]);function le(){M.current.paused?(P.current.style.display="none",B.current.style.display="block"):(P.current.style.display="block",B.current.style.display="none")}function ue(){H.current.style.display="none",W.current.style.display="none",G.current.style.display="none",M.current.muted||0===M.current.volume?H.current.style.display="block":M.current.volume>0&&M.current.volume<=.5?W.current.style.display="block":G.current.style.display="block"}Object(s.useEffect)((function(){var e;r.b.destroy();var t=null;return l.a.isSupported&&L&&p&&(null===(e=p)||void 0===e?void 0:e.indexOf(".m3u8"))<0?(t=l.a.createPlayer({type:"flv",volume:.8,cors:!0,url:p,muted:!1}),M.current&&(t.attachMediaElement(M.current),t.load())):M.current.setAttribute("src",p),ue(),function(){t&&(t.unload(),t.pause(),t.destroy(),t=null)}}),[M,L,p]),Object(s.useEffect)((function(){document.getElementById("play"),document.querySelectorAll(".playback-icons use");function e(){A(),S&&!Z.current&&(M.current.currentTime=S),Z.current=!0,se.push(M.current.currentTime),ne||(ne=!0,g&&ce())}function t(){return n.apply(this,arguments)}function n(){return(n=Object(i.a)(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:le(),se.push(M.current.currentTime),g&&ce((function(){te=null,ee=0,ne=!1,ae=!1,oe=!1,se=[],$=0,ie=1}),!0);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function r(){var e=Math.round(M.current.duration);K.current.setAttribute("max",e),U.current.setAttribute("max",e);var t=m(e);F.current.innerText="".concat(t.minutes,":").concat(t.seconds),F.current.setAttribute("datetime","".concat(t.minutes,"m ").concat(t.seconds,"s"))}function a(){var e=Math.round(M.current.duration);K.current.setAttribute("max",e),U.current.setAttribute("max",e);var t=m(e);F.current.innerText="".concat(t.minutes,":").concat(t.seconds),F.current.setAttribute("datetime","".concat(t.minutes,"m ").concat(t.seconds,"s")),K.current.value=Math.floor(M.current.currentTime),U.current.value=Math.floor(M.current.currentTime),function(){var e=m(Math.round(M.current.currentTime));z.current.innerText="".concat(e.minutes,":").concat(e.seconds),z.current.setAttribute("datetime","".concat(e.minutes,"m ").concat(e.seconds,"s"))}();var n=I.current.getBoundingClientRect(),r=n.width,i=(n.height,n.x),a=n.y;if(!(i<0||a<0)&&r&&!oe){var o=M.current.currentTime,s=o-ee;Math.abs(s)<10?($+=Math.abs(s),ee=o,ae||$-ie*re>=0&&(ie++,se.push(ee),g&&ce())):(ee=o,g&&ce())}}function s(){oe=!0}function c(){M.current.playing&&se.push(M.current.currentTime,ee),ee=M.current.currentTime,oe=!1}function l(){(J=M.current.duration)<=20&&(re=J/3),M.current.addEventListener("play",e)}function u(){C()}function d(e){var t=e.target.dataset.seek?e.target.dataset.seek:e.target.value;M.current.currentTime=t,U.current.value=t,K.current.value=t}function h(e){var t=Math.round(e.offsetX/e.target.clientWidth*parseInt(e.target.getAttribute("max"),10));K.current.setAttribute("data-seek",t);var n=m(t);V.current.textContent="".concat(n.minutes,":").concat(n.seconds);var r=M.current.getBoundingClientRect();V.current.style.left="".concat(e.pageX-r.left,"px")}return N.current.addEventListener(Object(f.c)(),(function(e){e.preventDefault(),Object(f.a)()?(M.current.style.width="100%",M.current.style.height="100%"):M.current.style.cssText=""})),M.current.addEventListener("canplay",l),M.current.addEventListener("ended",t),M.current.addEventListener("seeking",s),M.current.addEventListener("seeked",c),M.current.addEventListener("loadedmetadata",r),K.current.addEventListener("mousemove",h),K.current.addEventListener("input",d),M.current.addEventListener("timeupdate",a),M.current.addEventListener("pause",u),M.current.addEventListener("volumechange",ue),function(){M.current.removeEventListener("canplay",l),M.current.removeEventListener("play",e),M.current.removeEventListener("ended",t),M.current.removeEventListener("seeking",s),M.current.removeEventListener("seeked",c),K.current.removeEventListener("mousemove",h),K.current.removeEventListener("input",d),M.current.removeEventListener("timeupdate",a),M.current.removeEventListener("pause",u),M.current.removeEventListener("loadedmetadata",r),M.current.removeEventListener("volumechange",ue),M.current.playing&&(se.push(ee,M.current.currentTime),g&&ce())}}),[M,p]),Object(s.useEffect)((function(){var e;if(M.current.onended=function(){R(M)},M.current.oncontextmenu=function(){return!1},(null===(e=p)||void 0===e?void 0:e.indexOf(".m3u8"))>-1)if(M.current.canPlayType("application/vnd.apple.mpegurl"))M.current.src=p;else if(d.a.isSupported()){var t=new d.a;t.loadSource(p),t.attachMedia(M.current)}}),[p]),Object(s.useEffect)((function(){M.current.playbackRate=D}),[D]);return c.a.createElement("div",{style:{position:"relative"},ref:N},c.a.createElement("div",{ref:I,className:"".concat(v.a.watermark," animated_alternate animate__animated_10s animate__infinite animate__stepstart ").concat(v.a.animate__loop)},Q?Q.login:" "),c.a.createElement("div",{className:v.a.container},c.a.createElement("div",{className:v.a["video-container"],id:"video-container"},c.a.createElement("div",{className:v.a["playback-animation"],id:"playback-animation"},c.a.createElement("svg",{className:v.a["playback-icons"]},c.a.createElement("use",{className:"hidden",href:"#play-icon"}),c.a.createElement("use",{href:"#pause"}))),c.a.createElement("video",{className:v.a.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:M,autoPlay:!1}),c.a.createElement("div",{className:"".concat(v.a["video-controls"]," "),id:"video-controls"},c.a.createElement("div",{className:v.a["bottom-controls"]},c.a.createElement("div",{className:v.a["left-controls"]},c.a.createElement("button",{"data-title":"播放/暂停",id:"play",onClick:function(){M.current.paused||M.current.ended?M.current.play():M.current.pause(),le()}},c.a.createElement("svg",{className:v.a["playback-icons"]},c.a.createElement("use",{ref:B,href:"#play-icon"}),c.a.createElement("use",{ref:P,style:{display:"none"},href:"#pause"}))),c.a.createElement("div",{className:v.a.time},c.a.createElement("time",{id:"time-elapsed",ref:z},"00:00"),c.a.createElement("span",null," / "),c.a.createElement("time",{id:"duration",ref:F},"00:00"))),c.a.createElement("div",{className:v.a["right-controls"]},c.a.createElement("div",{className:v.a["volume-controls"]},c.a.createElement("button",{"data-title":"开启/关闭声音",className:v.a["volume-button"],id:"volume-button",onClick:function(){M.current.muted=!M.current.muted,M.current.muted?(q.current.setAttribute("data-volume",volume.value),q.current.value=0):q.current.value=q.current.dataset.volume}},c.a.createElement("svg",null,c.a.createElement("use",{ref:H,href:"#volume-mute"}),c.a.createElement("use",{ref:W,href:"#volume-low"}),c.a.createElement("use",{ref:G,href:"#volume-high"}))),c.a.createElement("input",{className:v.a.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:q,style:{display:"none"},onClick:ue})),c.a.createElement("button",{"data-title":"全屏/退出全屏",className:v.a["fullscreen-button"],onClick:function(){Object(f.a)()?Object(f.b)():Object(f.d)(N.current)}},c.a.createElement("svg",null,c.a.createElement("use",{href:"#fullscreen"}),c.a.createElement("use",{href:"#fullscreen-exit",className:"hidden"}))))),c.a.createElement("div",{className:v.a["video-progress"]},c.a.createElement("progress",{ref:U,value:"0",min:"0"}),c.a.createElement("input",{className:v.a.seek,ref:K,value:"0",min:"0",type:"range",step:"1"}),c.a.createElement("div",{className:v.a["seek-tooltip"],ref:V,id:"seek-tooltip"},"00:00"))))),c.a.createElement("svg",{style:{display:"none"}},c.a.createElement("defs",null,c.a.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),c.a.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),c.a.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),c.a.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),c.a.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),c.a.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),c.a.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),c.a.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},c.a.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))}))},k3GJ:
/*!*******************************************************!*\
!*** ./node_modules/rc-tabs/es/index.js + 50 modules ***!
\*******************************************************/
/*! exports provided: TabPane, default */
/*! exports used: TabPane, default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/mini-store/esm/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/raf/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-align/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-dropdown/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-resize-observer/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/addEventListener.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/canUseDom.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/contains.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Portal.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/createChainedFunction.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMergedState.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/raf.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-dom/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return Gt}));var r=n("rePB"),i=n("ODXe"),a=n("Ff2n"),o=n("VTBJ"),s=n("q1tI"),c=n("TSYQ"),l=n.n(c),u=n("Zm9Q"),d=n("6cGi"),h=n("KQm4"),f=n("xEkU"),p=n.n(f),v=n("t23M");function m(e){var t=Object(s.useRef)(),n=Object(s.useRef)(!1);return Object(s.useEffect)((function(){return function(){n.current=!0,p.a.cancel(t.current)}}),[]),function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];n.current||(p.a.cancel(t.current),t.current=p()((function(){e.apply(void 0,i)})))}}var g=n("4IlW");var b=s.forwardRef((function(e,t){var n,i=e.prefixCls,a=e.id,o=e.active,c=e.rtl,u=e.tab,d=u.key,h=u.tab,f=u.disabled,p=u.closeIcon,v=e.tabBarGutter,m=e.tabPosition,b=e.closable,y=e.renderWrapper,_=e.removeAriaLabel,k=e.editable,E=e.onClick,O=e.onRemove,S=e.onFocus,w="".concat(i,"-tab");s.useEffect((function(){return O}),[]);var C={};"top"===m||"bottom"===m?C[c?"marginLeft":"marginRight"]=v:C.marginBottom=v;var x=k&&!1!==b&&!f;function A(e){f||E(e)}var j=s.createElement("div",{key:d,ref:t,className:l()(w,(n={},Object(r.a)(n,"".concat(w,"-with-remove"),x),Object(r.a)(n,"".concat(w,"-active"),o),Object(r.a)(n,"".concat(w,"-disabled"),f),n)),style:C,onClick:A},s.createElement("div",{role:"tab","aria-selected":o,id:a&&"".concat(a,"-tab-").concat(d),className:"".concat(w,"-btn"),"aria-controls":a&&"".concat(a,"-panel-").concat(d),"aria-disabled":f,tabIndex:f?null:0,onClick:function(e){e.stopPropagation(),A(e)},onKeyDown:function(e){[g.a.SPACE,g.a.ENTER].includes(e.which)&&(e.preventDefault(),A(e))},onFocus:S},h),x&&s.createElement("button",{type:"button","aria-label":_||"remove",tabIndex:0,className:"".concat(w,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),k.onEdit("remove",{key:d,event:t})}},p||k.removeIcon||"×"));return y&&(j=y(j)),j})),y={width:0,height:0,left:0,top:0};var _={width:0,height:0,left:0,top:0,right:0};var k=n("wx14"),E=n("1OyB"),O=n("vuIU"),S=n("JX7q"),w=n("Ji7U"),C=n("LK+K"),x=n("I8Z2"),A=n("bT9E"),j=n("2GS6"),R=n("Gytx"),T=n.n(R),D=n("U8pU"),L=/iPhone/i,M=/iPod/i,I=/iPad/i,N=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,B=/\bAndroid(?:.+)SD4930UR\b/i,K=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,U=/Windows Phone/i,F=/\bWindows(?:.+)ARM\b/i,z=/BlackBerry/i,V=/BB10/i,H=/Opera Mini/i,G=/\b(CriOS|Chrome)(?:.+)Mobile/i,W=/Mobile(?:.+)Firefox\b/i;function q(e,t){return e.test(t)}function X(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),n=(t||"").split("[FBAN");if(void 0!==n[1]){var r=n;t=Object(i.a)(r,1)[0]}if(void 0!==(n=t.split("Twitter"))[1]){var a=n;t=Object(i.a)(a,1)[0]}var o={apple:{phone:q(L,t)&&!q(U,t),ipod:q(M,t),tablet:!q(L,t)&&q(I,t)&&!q(U,t),device:(q(L,t)||q(M,t)||q(I,t))&&!q(U,t)},amazon:{phone:q(B,t),tablet:!q(B,t)&&q(K,t),device:q(B,t)||q(K,t)},android:{phone:!q(U,t)&&q(B,t)||!q(U,t)&&q(N,t),tablet:!q(U,t)&&!q(B,t)&&!q(N,t)&&(q(K,t)||q(P,t)),device:!q(U,t)&&(q(B,t)||q(K,t)||q(N,t)||q(P,t))||q(/\bokhttp\b/i,t)},windows:{phone:q(U,t),tablet:q(F,t),device:q(U,t)||q(F,t)},other:{blackberry:q(z,t),blackberry10:q(V,t),opera:q(H,t),firefox:q(W,t),chrome:q(G,t),device:q(z,t)||q(V,t)||q(H,t)||q(W,t)||q(G,t)},any:null,phone:null,tablet:null};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}var Y=Object(o.a)(Object(o.a)({},X()),{},{isMobile:X});function Z(){}function Q(e,t,n){var r=t||"";return e.key||"".concat(r,"item_").concat(n)}function J(e){return"".concat(e,"-menu-")}function $(e,t){var n=-1;s.Children.forEach(e,(function(e){n+=1,e&&e.type&&e.type.isMenuItemGroup?s.Children.forEach(e.props.children,(function(e){t(e,n+=1)})):t(e,n)}))}var ee=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],te=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;if(n){if(t){var r=getComputedStyle(e),i=r.marginLeft,a=r.marginRight;n+=+i.replace("px","")+ +a.replace("px","")}n=+n.toFixed(6)}return n||0},ne=function(e,t,n){e&&"object"===Object(D.a)(e.style)&&(e.style[t]=n)},re=n("bdgK"),ie=n("i8i4"),ae=n.n(ie),oe=n("wgJM"),se=n("l4aY"),ce=n("m+aA"),le=n("c+Xe"),ue=n("zT1h"),de=n("QC+M");function he(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var fe=n("MNnm");function pe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var ve,me,ge,be=(ve=Object(fe.a)(),me="undefined"!=typeof window?window:{},ge={animationend:pe("Animation","AnimationEnd"),transitionend:pe("Transition","TransitionEnd")},ve&&("AnimationEvent"in me||delete ge.animationend.animation,"TransitionEvent"in me||delete ge.transitionend.transition),ge),ye={};if(Object(fe.a)()){var _e=document.createElement("div");ye=_e.style}var ke={};function Ee(e){if(ke[e])return ke[e];var t=be[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in ye)return ke[e]=t[a],ke[e]}return""}var Oe=Ee("animationend"),Se=Ee("transitionend"),we=!(!Oe||!Se),Ce=Oe||"animationend",xe=Se||"transitionend";function Ae(e,t){return e?"object"===Object(D.a)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}function je(e){var t=Object(s.useRef)(!1),n=Object(s.useState)(e),r=Object(i.a)(n,2),a=r[0],o=r[1];return Object(s.useEffect)((function(){return function(){t.current=!0}}),[]),[a,function(e){t.current||o(e)}]}var Re=Object(fe.a)()?s.useLayoutEffect:s.useEffect,Te=["prepare","start","active","end"];function De(e){return"active"===e||"end"===e}var Le=function(e,t){var n=s.useState("none"),r=Object(i.a)(n,2),a=r[0],o=r[1],c=function(){var e=s.useRef(null);function t(){oe.a.cancel(e.current)}return s.useEffect((function(){return function(){t()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=Object(oe.a)((function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)}));e.current=a},t]}(),l=Object(i.a)(c,2),u=l[0],d=l[1];return Re((function(){if("none"!==a&&"end"!==a){var e=Te.indexOf(a),n=Te[e+1],r=t(a);!1===r?o(n):u((function(e){function t(){e.isCanceled()||o(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,a]),s.useEffect((function(){return function(){d()}}),[]),[function(){o("prepare")},a]};function Me(e,t,n,a){var c=a.motionEnter,l=void 0===c||c,u=a.motionAppear,d=void 0===u||u,h=a.motionLeave,f=void 0===h||h,p=a.motionDeadline,v=a.motionLeaveImmediately,m=a.onAppearPrepare,g=a.onEnterPrepare,b=a.onLeavePrepare,y=a.onAppearStart,_=a.onEnterStart,k=a.onLeaveStart,E=a.onAppearActive,O=a.onEnterActive,S=a.onLeaveActive,w=a.onAppearEnd,C=a.onEnterEnd,x=a.onLeaveEnd,A=a.onVisibleChanged,j=je(),R=Object(i.a)(j,2),T=R[0],D=R[1],L=je("none"),M=Object(i.a)(L,2),I=M[0],N=M[1],P=je(null),B=Object(i.a)(P,2),K=B[0],U=B[1],F=Object(s.useRef)(!1),z=Object(s.useRef)(null),V=Object(s.useRef)(!1),H=Object(s.useRef)(null);function G(){return n()||H.current}var W=Object(s.useRef)(!1);function q(e){var t,n=G();e&&!e.deadline&&e.target!==n||("appear"===I&&W.current?t=null==w?void 0:w(n,e):"enter"===I&&W.current?t=null==C?void 0:C(n,e):"leave"===I&&W.current&&(t=null==x?void 0:x(n,e)),!1===t||V.current||(N("none"),U(null)))}var X=function(e){var t=Object(s.useRef)(),n=Object(s.useRef)(e);n.current=e;var r=s.useCallback((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(xe,r),e.removeEventListener(Ce,r))}return s.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(xe,r),e.addEventListener(Ce,r),t.current=e)},i]}(q),Y=Object(i.a)(X,1)[0],Z=s.useMemo((function(){var e,t,n;switch(I){case"appear":return e={},Object(r.a)(e,"prepare",m),Object(r.a)(e,"start",y),Object(r.a)(e,"active",E),e;case"enter":return t={},Object(r.a)(t,"prepare",g),Object(r.a)(t,"start",_),Object(r.a)(t,"active",O),t;case"leave":return n={},Object(r.a)(n,"prepare",b),Object(r.a)(n,"start",k),Object(r.a)(n,"active",S),n;default:return{}}}),[I]),Q=Le(I,(function(e){if("prepare"===e){var t=Z.prepare;return!!t&&t(G())}var n;ee in Z&&U((null===(n=Z[ee])||void 0===n?void 0:n.call(Z,G(),null))||null);return"active"===ee&&(Y(G()),p>0&&(clearTimeout(z.current),z.current=setTimeout((function(){q({deadline:!0})}),p))),!0})),J=Object(i.a)(Q,2),$=J[0],ee=J[1],te=De(ee);W.current=te,Re((function(){D(t);var n,r=F.current;(F.current=!0,e)&&(!r&&t&&d&&(n="appear"),r&&t&&l&&(n="enter"),(r&&!t&&f||!r&&v&&!t&&f)&&(n="leave"),n&&(N(n),$()))}),[t]),Object(s.useEffect)((function(){("appear"===I&&!d||"enter"===I&&!l||"leave"===I&&!f)&&N("none")}),[d,l,f]),Object(s.useEffect)((function(){return function(){clearTimeout(z.current),V.current=!0}}),[]),Object(s.useEffect)((function(){void 0!==T&&"none"===I&&(null==A||A(T))}),[T,I]);var ne=K;return Z.prepare&&"start"===ee&&(ne=Object(o.a)({transition:"none"},ne)),[I,ee,ne,null!=T?T:t]}var Ie=function(e){Object(w.a)(n,e);var t=Object(C.a)(n);function n(){return Object(E.a)(this,n),t.apply(this,arguments)}return Object(O.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component);var Ne=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===Object(D.a)(e)&&(t=e.transitionSupport);var a=s.forwardRef((function(e,t){var a=e.visible,c=void 0===a||a,u=e.removeOnLeave,d=void 0===u||u,h=e.forceRender,f=e.children,p=e.motionName,v=e.leavedClassName,m=e.eventProps,g=n(e),b=Object(s.useRef)(),y=Object(s.useRef)();var _=Me(g,c,(function(){try{return Object(ce.a)(b.current||y.current)}catch(e){return null}}),e),k=Object(i.a)(_,4),E=k[0],O=k[1],S=k[2],w=k[3],C=s.useRef(w);w&&(C.current=!0);var x=Object(s.useRef)(t);x.current=t;var A,j=s.useCallback((function(e){b.current=e,Object(le.b)(x.current,e)}),[]),R=Object(o.a)(Object(o.a)({},m),{},{visible:c});if(f)if("none"!==E&&n(e)){var T,D;"prepare"===O?D="prepare":De(O)?D="active":"start"===O&&(D="start"),A=f(Object(o.a)(Object(o.a)({},R),{},{className:l()(Ae(p,E),(T={},Object(r.a)(T,Ae(p,"".concat(E,"-").concat(D)),D),Object(r.a)(T,p,"string"==typeof p),T)),style:S}),j)}else A=w?f(Object(o.a)({},R),j):!d&&C.current?f(Object(o.a)(Object(o.a)({},R),{},{className:v}),j):h?f(Object(o.a)(Object(o.a)({},R),{},{style:{display:"none"}}),j):null;else A=null;return s.createElement(Ie,{ref:y},A)}));return a.displayName="CSSMotion",a}(we);function Pe(e){var t;return t=e&&"object"===Object(D.a)(e)&&"key"in e?e:{key:e},Object(o.a)(Object(o.a)({},t),{},{key:String(t.key)})}function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(Pe)}function Ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,a=Be(e),s=Be(t);a.forEach((function(e){for(var t=!1,a=r;a<i;a+=1){var c=s[a];if(c.key===e.key){r<a&&(n=n.concat(s.slice(r,a).map((function(e){return Object(o.a)(Object(o.a)({},e),{},{status:"add"})}))),r=a),n.push(Object(o.a)(Object(o.a)({},c),{},{status:"keep"})),r+=1,t=!0;break}}t||n.push(Object(o.a)(Object(o.a)({},e),{},{status:"remove"}))})),r<i&&(n=n.concat(s.slice(r).map((function(e){return Object(o.a)(Object(o.a)({},e),{},{status:"add"})}))));var c={};n.forEach((function(e){var t=e.key;c[t]=(c[t]||0)+1}));var l=Object.keys(c).filter((function(e){return c[e]>1}));return l.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||"remove"!==r}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var Ue=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ne,n=function(e){Object(w.a)(r,e);var n=Object(C.a)(r);function r(){var e;return Object(E.a)(this,r),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:Object(o.a)(Object(o.a)({},e),{},{status:"removed"})}))}}))},e}return Object(O.a)(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,i=r.component,o=r.children,c=r.onVisibleChanged,l=Object(a.a)(r,["component","children","onVisibleChanged"]),u=i||s.Fragment,d={};return Ue.forEach((function(e){d[e]=l[e],delete l[e]})),delete l.keys,s.createElement(u,l,n.map((function(n){var r=n.status,i=Object(a.a)(n,["status"]),l="add"===r||"keep"===r;return s.createElement(t,Object(k.a)({},d,{key:i.key,visible:l,eventProps:i,onVisibleChanged:function(t){null==c||c(t,{key:i.key}),t||e.removeKey(i.key)}}),o)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,i=Be(n);return{keyEntities:Ke(r,i).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||"removed"!==t.status||"remove"!==e.status}))}}}]),r}(s.Component);n.defaultProps={component:"div"}}(we);var Fe=Ne;function ze(e){var t=e.prefixCls,n=e.motion,r=e.animation,i=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:i?{motionName:i}:null)}function Ve(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,i=e.mask,a=e.maskMotion,c=e.maskAnimation,u=e.maskTransitionName;if(!i)return null;var d={};return(a||u||c)&&(d=Object(o.a)({motionAppear:!0},ze({motion:a,prefixCls:t,transitionName:u,animation:c}))),s.createElement(Fe,Object(k.a)({},d,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return s.createElement("div",{style:{zIndex:r},className:l()("".concat(t,"-mask"),n)})}))}var He=n("9mu1"),Ge=n("o0o1"),We=n.n(Ge),qe=n("HaE+"),Xe=["measure","align",null,"motion"],Ye=s.forwardRef((function(e,t){var n=e.visible,r=e.prefixCls,a=e.className,c=e.style,u=e.children,d=e.zIndex,h=e.stretch,f=e.destroyPopupOnHide,p=e.forceRender,v=e.align,m=e.point,g=e.getRootDomNode,b=e.getClassNameFromAlign,y=e.onAlign,_=e.onMouseEnter,E=e.onMouseLeave,O=e.onMouseDown,S=e.onTouchStart,w=Object(s.useRef)(),C=Object(s.useRef)(),x=Object(s.useState)(),A=Object(i.a)(x,2),j=A[0],R=A[1],T=function(e){var t=s.useState({width:0,height:0}),n=Object(i.a)(t,2),r=n[0],a=n[1];return[s.useMemo((function(){var t={};if(e){var n=r.width,i=r.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){a({width:e.offsetWidth,height:e.offsetHeight})}]}(h),D=Object(i.a)(T,2),L=D[0],M=D[1];var I=function(e,t){var n=Object(s.useState)(null),r=Object(i.a)(n,2),a=r[0],o=r[1],c=Object(s.useRef)(),l=Object(s.useRef)(!1);function u(e){l.current||o(e)}function d(){oe.a.cancel(c.current)}return Object(s.useEffect)((function(){u("measure")}),[e]),Object(s.useEffect)((function(){switch(a){case"measure":t()}a&&(c.current=Object(oe.a)(Object(qe.a)(We.a.mark((function e(){var t,n;return We.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Xe.indexOf(a),(n=Xe[t+1])&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[a]),Object(s.useEffect)((function(){return function(){l.current=!0,d()}}),[]),[a,function(e){d(),c.current=Object(oe.a)((function(){u((function(e){switch(a){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){h&&M(g())})),N=Object(i.a)(I,2),P=N[0],B=N[1],K=Object(s.useRef)();function U(){var e;null===(e=w.current)||void 0===e||e.forceAlign()}function F(e,t){var n=b(t);j!==n&&R(n),"align"===P&&(j!==n?Promise.resolve().then((function(){U()})):B((function(){var e;null===(e=K.current)||void 0===e||e.call(K)})),null==y||y(e,t))}var z=Object(o.a)({},ze(e));function V(){return new Promise((function(e){K.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=z[e];z[e]=function(e,n){return B(),null==t?void 0:t(e,n)}})),s.useEffect((function(){z.motionName||"motion"!==P||B()}),[z.motionName,P]),s.useImperativeHandle(t,(function(){return{forceAlign:U,getElement:function(){return C.current}}}));var H=Object(o.a)(Object(o.a)({},L),{},{zIndex:d,opacity:"motion"!==P&&"stable"!==P&&n?0:void 0,pointerEvents:"stable"===P?void 0:"none"},c),G=!0;!(null==v?void 0:v.points)||"align"!==P&&"stable"!==P||(G=!1);var W=u;return s.Children.count(u)>1&&(W=s.createElement("div",{className:"".concat(r,"-content")},u)),s.createElement(Fe,Object(k.a)({visible:n,ref:C,leavedClassName:"".concat(r,"-hidden")},z,{onAppearPrepare:V,onEnterPrepare:V,removeOnLeave:f,forceRender:p}),(function(e,t){var n=e.className,i=e.style,c=l()(r,a,j,n);return s.createElement(He.a,{target:m||g,key:"popup",ref:w,monitorWindowResize:!0,disabled:G,align:v,onAlign:F},s.createElement("div",{ref:t,className:c,onMouseEnter:_,onMouseLeave:E,onMouseDownCapture:O,onTouchStartCapture:S,style:Object(o.a)(Object(o.a)({},i),H)},W))}))}));Ye.displayName="PopupInner";var Ze=Ye,Qe=s.forwardRef((function(e,t){var n=e.prefixCls,r=e.visible,i=e.zIndex,a=e.children,c=e.mobile,u=(c=void 0===c?{}:c).popupClassName,d=c.popupStyle,h=c.popupMotion,f=void 0===h?{}:h,p=c.popupRender,v=s.useRef();s.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return v.current}}}));var m=Object(o.a)({zIndex:i},d),g=a;return s.Children.count(a)>1&&(g=s.createElement("div",{className:"".concat(n,"-content")},a)),p&&(g=p(g)),s.createElement(Fe,Object(k.a)({visible:r,ref:v,removeOnLeave:!0},f),(function(e,t){var r=e.className,i=e.style,a=l()(n,u,r);return s.createElement("div",{ref:t,className:a,style:Object(o.a)(Object(o.a)({},i),m)},g)}))}));Qe.displayName="MobilePopupInner";var Je=Qe,$e=["visible","mobile"],et=s.forwardRef((function(e,t){var n=e.visible,r=e.mobile,c=Object(a.a)(e,$e),l=Object(s.useState)(n),u=Object(i.a)(l,2),d=u[0],h=u[1],f=Object(s.useState)(!1),p=Object(i.a)(f,2),v=p[0],m=p[1],g=Object(o.a)(Object(o.a)({},c),{},{visible:d});Object(s.useEffect)((function(){h(n),n&&r&&m(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4)))}())}),[n,r]);var b=v?s.createElement(Je,Object(k.a)({},g,{mobile:r,ref:t})):s.createElement(Ze,Object(k.a)({},g,{ref:t}));return s.createElement("div",null,s.createElement(Ve,g),b)}));et.displayName="Popup";var tt=et,nt=s.createContext(null);function rt(){}function it(){return""}function at(e){return e?e.ownerDocument:window.document}var ot=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var st,ct,lt=(st=de.a,(ct=function(e){Object(w.a)(n,e);var t=Object(C.a)(n);function n(e){var r,i;return Object(E.a)(this,n),(r=t.call(this,e)).popupRef=s.createRef(),r.triggerRef=s.createRef(),r.attachId=void 0,r.clickOutsideHandler=void 0,r.touchOutsideHandler=void 0,r.contextMenuOutsideHandler1=void 0,r.contextMenuOutsideHandler2=void 0,r.mouseDownTimeout=void 0,r.focusTime=void 0,r.preClickTime=void 0,r.preTouchTime=void 0,r.delayTimer=void 0,r.hasPopupMouseDown=void 0,r.onMouseEnter=function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)},r.onMouseMove=function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)},r.onMouseLeave=function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onPopupMouseEnter=function(){r.clearDelayTimer()},r.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&Object(se.a)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onFocus=function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))},r.onMouseDown=function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()},r.onTouchStart=function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()},r.onBlur=function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)},r.onContextMenu=function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)},r.onContextMenuClose=function(){r.isContextMenuToShow()&&r.close()},r.onClick=function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)},r.onPopupMouseDown=function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)},r.onDocumentClick=function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),i=r.getPopupDomNode();Object(se.a)(n,t)&&!r.isContextMenuOnly()||Object(se.a)(i,t)||r.hasPopupMouseDown||r.close()}},r.getRootDomNode=function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=Object(ce.a)(r.triggerRef.current);if(t)return t}catch(e){}return ae.a.findDOMNode(Object(S.a)(r))},r.getPopupClassNameFromAlign=function(e){var t=[],n=r.props,i=n.popupPlacement,a=n.builtinPlacements,o=n.prefixCls,s=n.alignPoint,c=n.getPopupClassNameFromAlign;return i&&a&&t.push(function(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o<a.length;o+=1){var s=a[o];if(he(e[s].points,i,r))return"".concat(t,"-placement-").concat(s)}return""}(a,o,e,s)),c&&t.push(c(e)),t.join(" ")},r.getComponent=function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,o=e.popupMotion,c=e.popupAnimation,l=e.popupTransitionName,u=e.popupStyle,d=e.mask,h=e.maskAnimation,f=e.maskTransitionName,p=e.maskMotion,v=e.zIndex,m=e.popup,g=e.stretch,b=e.alignPoint,y=e.mobile,_=e.forceRender,E=r.state,O=E.popupVisible,S=E.point,w=r.getPopupAlign(),C={};return r.isMouseEnterToShow()&&(C.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(C.onMouseLeave=r.onPopupMouseLeave),C.onMouseDown=r.onPopupMouseDown,C.onTouchStart=r.onPopupMouseDown,s.createElement(tt,Object(k.a)({prefixCls:t,destroyPopupOnHide:n,visible:O,point:b&&S,className:i,align:w,onAlign:a,animation:c,getClassNameFromAlign:r.getPopupClassNameFromAlign},C,{stretch:g,getRootDomNode:r.getRootDomNode,style:u,mask:d,zIndex:v,transitionName:l,maskAnimation:h,maskTransitionName:f,maskMotion:p,ref:r.popupRef,motion:o,mobile:y,forceRender:_}),"function"==typeof m?m():m)},r.attachParent=function(e){oe.a.cancel(r.attachId);var t,n=r.props,i=n.getPopupContainer,a=n.getDocument,o=r.getRootDomNode();i?(o||0===i.length)&&(t=i(o)):t=a(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=Object(oe.a)((function(){r.attachParent(e)}))},r.getContainer=function(){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.attachParent(e),e},r.setPoint=function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})},r.handlePortalUpdate=function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)},r.triggerContextValue={onPopupMouseDown:r.onPopupMouseDown},i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:i,popupVisible:i},ot.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return Object(O.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ue.a)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ue.a)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ue.a)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ue.a)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),oe.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){var r=e[t]||{};return Object(o.a)(Object(o.a)({},r),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,i=1e3*t;if(this.clearDelayTimer(),i){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,a),r.clearDelayTimer()}),i)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,r=t.forceRender,i=t.alignPoint,a=t.className,c=t.autoDestroy,u=s.Children.only(n),d={key:"trigger"};this.isContextMenuToShow()?d.onContextMenu=this.onContextMenu:d.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(d.onClick=this.onClick,d.onMouseDown=this.onMouseDown,d.onTouchStart=this.onTouchStart):(d.onClick=this.createTwoChains("onClick"),d.onMouseDown=this.createTwoChains("onMouseDown"),d.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(d.onMouseEnter=this.onMouseEnter,i&&(d.onMouseMove=this.onMouseMove)):d.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?d.onMouseLeave=this.onMouseLeave:d.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(d.onFocus=this.onFocus,d.onBlur=this.onBlur):(d.onFocus=this.createTwoChains("onFocus"),d.onBlur=this.createTwoChains("onBlur"));var h=l()(u&&u.props&&u.props.className,a);h&&(d.className=h);var f=Object(o.a)({},d);Object(le.c)(u)&&(f.ref=Object(le.a)(this.triggerRef,u.ref));var p,v=s.cloneElement(u,f);return(e||this.popupRef.current||r)&&(p=s.createElement(st,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(p=null),s.createElement(nt.Provider,{value:this.triggerContextValue},v,p)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(s.Component)).contextType=nt,ct.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:it,getDocument:at,onPopupVisibleChange:rt,afterPopupVisibleChange:rt,onPopupAlign:rt,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},ct),ut={adjustX:1,adjustY:1},dt={topLeft:{points:["bl","tl"],overflow:ut,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ut,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ut,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ut,offset:[4,0]}},ht={topLeft:{points:["bl","tl"],overflow:ut,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ut,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ut,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ut,offset:[4,0]}},ft=0,pt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},vt=function(e,t,n){var i=J(t),a=e.getState();e.setState({defaultActiveFirst:Object(o.a)(Object(o.a)({},a.defaultActiveFirst),{},Object(r.a)({},i,n))})},mt=function(e){Object(w.a)(n,e);var t=Object(C.a)(n);function n(e){var r;Object(E.a)(this,n),(r=t.call(this,e)).onDestroy=function(e){r.props.onDestroy(e)},r.onKeyDown=function(e){var t=e.keyCode,n=r.menuInstance,i=r.props.store,a=r.getVisible();if(t===g.a.ENTER)return r.onTitleClick(e),vt(i,r.props.eventKey,!0),!0;if(t===g.a.RIGHT)return a?n.onKeyDown(e):(r.triggerOpenChange(!0),vt(i,r.props.eventKey,!0)),!0;if(t===g.a.LEFT){var o;if(!a)return;return(o=n.onKeyDown(e))||(r.triggerOpenChange(!1),o=!0),o}return!a||t!==g.a.UP&&t!==g.a.DOWN?void 0:n.onKeyDown(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onPopupVisibleChange=function(e){r.triggerOpenChange(e,e?"mouseenter":"mouseleave")},r.onMouseEnter=function(e){var t=r.props,n=t.eventKey,i=t.onMouseEnter,a=t.store;vt(a,r.props.eventKey,!1),i({key:n,domEvent:e})},r.onMouseLeave=function(e){var t=r.props,n=t.parentMenu,i=t.eventKey,a=t.onMouseLeave;n.subMenuInstance=Object(S.a)(r),a({key:i,domEvent:e})},r.onTitleMouseEnter=function(e){var t=r.props,n=t.eventKey,i=t.onItemHover,a=t.onTitleMouseEnter;i({key:n,hover:!0}),a({key:n,domEvent:e})},r.onTitleMouseLeave=function(e){var t=r.props,n=t.parentMenu,i=t.eventKey,a=t.onItemHover,o=t.onTitleMouseLeave;n.subMenuInstance=Object(S.a)(r),a({key:i,hover:!1}),o({key:i,domEvent:e})},r.onTitleClick=function(e){var t=Object(S.a)(r).props;t.onTitleClick({key:t.eventKey,domEvent:e}),"hover"!==t.triggerSubMenuAction&&(r.triggerOpenChange(!r.getVisible(),"click"),vt(t.store,r.props.eventKey,!1))},r.onSubMenuClick=function(e){"function"==typeof r.props.onClick&&r.props.onClick(r.addKeyPath(e))},r.onSelect=function(e){r.props.onSelect(e)},r.onDeselect=function(e){r.props.onDeselect(e)},r.getPrefixCls=function(){return"".concat(r.props.rootPrefixCls,"-submenu")},r.getActiveClassName=function(){return"".concat(r.getPrefixCls(),"-active")},r.getDisabledClassName=function(){return"".concat(r.getPrefixCls(),"-disabled")},r.getSelectedClassName=function(){return"".concat(r.getPrefixCls(),"-selected")},r.getOpenClassName=function(){return"".concat(r.props.rootPrefixCls,"-submenu-open")},r.getVisible=function(){return r.state.isOpen},r.getMode=function(){return r.state.mode},r.saveMenuInstance=function(e){r.menuInstance=e},r.addKeyPath=function(e){return Object(o.a)(Object(o.a)({},e),{},{keyPath:(e.keyPath||[]).concat(r.props.eventKey)})},r.triggerOpenChange=function(e,t){var n=r.props.eventKey,i=function(){r.onOpenChange({key:n,item:Object(S.a)(r),trigger:t,open:e})};"mouseenter"===t?r.mouseenterTimeout=setTimeout((function(){i()}),0):i()},r.isChildrenSelected=function(){var e={find:!1};return function e(t,n,r){t&&!r.find&&s.Children.forEach(t,(function(t){if(t){var i=t.type;if(!i||!(i.isSubMenu||i.isMenuItem||i.isMenuItemGroup))return;-1!==n.indexOf(t.key)?r.find=!0:t.props.children&&e(t.props.children,n,r)}}))}(r.props.children,r.props.selectedKeys,e),e.find},r.isInlineMode=function(){return"inline"===r.getMode()},r.adjustWidth=function(){if(r.subMenuTitle&&r.menuInstance){var e=ie.findDOMNode(r.menuInstance);e.offsetWidth>=r.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(r.subMenuTitle.offsetWidth,"px"))}},r.saveSubMenuTitle=function(e){r.subMenuTitle=e},r.getBaseProps=function(){var e=Object(S.a)(r).props,t=r.getMode();return{mode:"horizontal"===t?"vertical":t,visible:r.getVisible(),level:e.level+1,inlineIndent:e.inlineIndent,focusable:!1,onClick:r.onSubMenuClick,onSelect:r.onSelect,onDeselect:r.onDeselect,onDestroy:r.onDestroy,selectedKeys:e.selectedKeys,eventKey:"".concat(e.eventKey,"-menu-"),openKeys:e.openKeys,motion:e.motion,onOpenChange:r.onOpenChange,subMenuOpenDelay:e.subMenuOpenDelay,parentMenu:Object(S.a)(r),subMenuCloseDelay:e.subMenuCloseDelay,forceSubMenuRender:e.forceSubMenuRender,triggerSubMenuAction:e.triggerSubMenuAction,builtinPlacements:e.builtinPlacements,defaultActiveFirst:e.store.getState().defaultActiveFirst[J(e.eventKey)],multiple:e.multiple,prefixCls:e.rootPrefixCls,id:r.internalMenuId,manualRef:r.saveMenuInstance,itemIcon:e.itemIcon,expandIcon:e.expandIcon,direction:e.direction}},r.getMotion=function(e,t){var n=Object(S.a)(r).haveRendered,i=r.props,a=i.motion,s=i.rootPrefixCls;return Object(o.a)(Object(o.a)({},a),{},{leavedClassName:"".concat(s,"-hidden"),removeOnLeave:!1,motionAppear:n||!t||"inline"!==e})};var i=e.store,a=e.eventKey,c=i.getState().defaultActiveFirst;r.isRootMenu=!1;var l=!1;return c&&(l=c[a]),vt(i,a,l),r.state={mode:e.mode,isOpen:e.isOpen},r}return Object(O.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,r=t.parentMenu,i=t.manualRef,a=t.isOpen,o=function(){e.setState({mode:n,isOpen:a})},s=a!==this.state.isOpen,c=n!==this.state.mode;(c||s)&&(oe.a.cancel(this.updateStateRaf),c?this.updateStateRaf=Object(oe.a)(o):o()),i&&i(this),"horizontal"===n&&(null==r?void 0:r.isRootMenu)&&a&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),oe.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,t){var n=this.getBaseProps();return s.createElement(Ct,Object(k.a)({},n,{id:this.internalMenuId,className:e,style:t}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,t=this.getBaseProps(),n=t.mode,i=t.visible,a=t.forceSubMenuRender,o=t.direction,c=this.getMotion(n,i);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i||a,!this.haveOpened)return s.createElement("div",null);var u=l()("".concat(t.prefixCls,"-sub"),Object(r.a)({},"".concat(t.prefixCls,"-rtl"),"rtl"===o));return this.isInlineMode()?s.createElement(Fe,Object(k.a)({visible:t.visible,forceRender:a},c),(function(t){var n=t.className,r=t.style,i=l()(u,n);return e.renderPopupMenu(i,r)})):this.renderPopupMenu(u)}},{key:"render",value:function(){var e,t,n,i=Object(o.a)({},this.props),a=this.getVisible(),c=this.getPrefixCls(),u=this.isInlineMode(),d=this.getMode(),h=l()(c,"".concat(c,"-").concat(d),(e={},Object(r.a)(e,i.className,!!i.className),Object(r.a)(e,this.getOpenClassName(),a),Object(r.a)(e,this.getActiveClassName(),i.active||a&&!u),Object(r.a)(e,this.getDisabledClassName(),i.disabled),Object(r.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(i.eventKey?this.internalMenuId="".concat(i.eventKey,"$Menu"):(ft+=1,this.internalMenuId="$__$".concat(ft,"$Menu")));var f={},p={},v={};i.disabled||(f={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},p={onClick:this.onTitleClick},v={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var m={},g="rtl"===i.direction;u&&(g?m.paddingRight=i.inlineIndent*i.level:m.paddingLeft=i.inlineIndent*i.level);var b={};this.getVisible()&&(b={"aria-owns":this.internalMenuId});var y=null;"horizontal"!==d&&(y=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(y=s.createElement(this.props.expandIcon,Object(o.a)({},this.props))));var _=s.createElement("div",Object(k.a)({ref:this.saveSubMenuTitle,style:m,className:"".concat(c,"-title"),role:"button"},v,p,{"aria-expanded":a},b,{"aria-haspopup":"true",title:"string"==typeof i.title?i.title:void 0}),i.title,y||s.createElement("i",{className:"".concat(c,"-arrow")})),E=this.renderChildren(),O=(null===(t=i.parentMenu)||void 0===t?void 0:t.isRootMenu)?i.parentMenu.props.getPopupContainer:function(e){return e.parentNode},S=pt[d],w=i.popupOffset?{offset:i.popupOffset}:{},C=l()((n={},Object(r.a)(n,i.popupClassName,i.popupClassName&&!u),Object(r.a)(n,"".concat(c,"-rtl"),g),n)),x=i.disabled,A=i.triggerSubMenuAction,j=i.subMenuOpenDelay,R=i.forceSubMenuRender,T=i.subMenuCloseDelay,D=i.builtinPlacements;ee.forEach((function(e){return delete i[e]})),delete i.onClick;var L=g?Object(o.a)(Object(o.a)({},ht),D):Object(o.a)(Object(o.a)({},dt),D);delete i.direction;var M=this.getBaseProps(),I=u?null:this.getMotion(M.mode,M.visible);return s.createElement("li",Object(k.a)({},i,f,{className:h,role:"menuitem"}),s.createElement(lt,{prefixCls:c,popupClassName:l()("".concat(c,"-popup"),C),getPopupContainer:O,builtinPlacements:L,popupPlacement:S,popupVisible:!u&&a,popupAlign:w,popup:u?null:E,action:x||u?[]:[A],mouseEnterDelay:j,mouseLeaveDelay:T,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:R,popupMotion:I},_),u?E:null)}}]),n}(s.Component);mt.defaultProps={onMouseEnter:Z,onMouseLeave:Z,onTitleMouseEnter:Z,onTitleMouseLeave:Z,onTitleClick:Z,manualRef:Z,mode:"vertical",title:""};var gt=Object(x.b)((function(e,t){var n=e.openKeys,r=e.activeKey,i=e.selectedKeys,a=t.eventKey,o=t.subMenuKey;return{isOpen:n.indexOf(a)>-1,active:r[o]===a,selectedKeys:i}}))(mt);gt.isSubMenu=!0;var bt=gt,yt=function(e){Object(w.a)(n,e);var t=Object(C.a)(n);function n(){var e;return Object(E.a)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.childRef=s.createRef(),e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=e.childRef.current;return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,r){var i=e.props,c=i.overflowedIndicator,l=i.level,u=i.mode,d=i.prefixCls,h=i.theme;if(1!==l||"horizontal"!==u)return null;var f=e.props.children[0].props,p=(f.children,f.title,f.style),v=Object(a.a)(f,["children","title","style"]),m=Object(o.a)({},p),g="".concat(t,"-overflowed-indicator"),b="".concat(t,"-overflowed-indicator");0===n.length&&!0!==r?m=Object(o.a)(Object(o.a)({},m),{},{display:"none"}):r&&(m=Object(o.a)(Object(o.a)({},m),{},{visibility:"hidden",position:"absolute"}),g="".concat(g,"-placeholder"),b="".concat(b,"-placeholder"));var y=h?"".concat(d,"-").concat(h):"",_={};return ee.forEach((function(e){void 0!==v[e]&&(_[e]=v[e])})),s.createElement(bt,Object(k.a)({title:c,className:"".concat(d,"-overflowed-submenu"),popupClassName:y},_,{key:g,eventKey:b,disabled:!1,style:m}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=e.childRef.current;if(t){var n=t.children;if(n&&0!==n.length){var r=t.children[n.length-1];ne(r,"display","inline-block");var i=e.getMenuItemNodes(),a=i.filter((function(e){return e.className.split(" ").indexOf("menuitem-overflowed")>=0}));a.forEach((function(e){ne(e,"display","inline-block")})),e.menuItemSizes=i.map((function(e){return te(e,!0)})),a.forEach((function(e){ne(e,"display","none")})),e.overflowedIndicatorWidth=te(t.children[t.children.length-1],!0),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),ne(r,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=e.childRef.current;if(t){var n=te(t);e.overflowedItems=[];var r,i=0;e.originalTotalWidth>n+.5&&(r=-1,e.menuItemSizes.forEach((function(t){(i+=t)+e.overflowedIndicatorWidth<=n&&(r+=1)}))),e.setState({lastVisibleIndex:r})}}},e}return Object(O.a)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=this.childRef.current;if(!t)return;this.resizeObserver=new re.default((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(r,i,a){var o=i;if("horizontal"===t.props.mode){var c=t.getOverflowedSubMenuItem(i.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(a>n&&(o=s.cloneElement(i,{style:{display:"none"},eventKey:"".concat(i.props.eventKey,"-hidden"),className:"".concat("menuitem-overflowed")})),a===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return s.cloneElement(e,{key:e.props.eventKey,mode:"vertical-left"})})),c=t.getOverflowedSubMenuItem(i.props.eventKey,t.overflowedItems)));var l=[].concat(Object(h.a)(r),[c,o]);return a===e.length-1&&l.push(t.getOverflowedSubMenuItem(i.props.eventKey,[],!0)),l}return[].concat(Object(h.a)(r),[o])}),[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,r=(e.theme,Object(a.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),i=t;return s.createElement(i,Object(k.a)({ref:this.childRef},r),this.renderChildren(n))}}]),n}(s.Component);yt.defaultProps={tag:"div",className:""};var _t=yt;function kt(e,t,n){var i=e.getState();e.setState({activeKey:Object(o.a)(Object(o.a)({},i.activeKey),{},Object(r.a)({},t,n))})}function Et(e){return e.eventKey||"0-menu-"}function Ot(e,t){var n,r=t,i=e.children,a=e.eventKey;if(r&&($(i,(function(e,t){e&&e.props&&!e.props.disabled&&r===Q(e,a,t)&&(n=!0)})),n))return r;return r=null,e.defaultActiveFirst?($(i,(function(e,t){r||!e||e.props.disabled||(r=Q(e,a,t))})),r):r}function St(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}var wt=function(e){Object(w.a)(n,e);var t=Object(C.a)(n);function n(e){var i;return Object(E.a)(this,n),(i=t.call(this,e)).onKeyDown=function(e,t){var n,r=e.keyCode;if(i.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var a=null;return r!==g.a.UP&&r!==g.a.DOWN||(a=i.step(r===g.a.UP?-1:1)),a?(e.preventDefault(),kt(i.props.store,Et(i.props),a.props.eventKey),"function"==typeof t&&t(a),1):void 0},i.onItemHover=function(e){var t=e.key,n=e.hover;kt(i.props.store,Et(i.props),n?t:null)},i.onDeselect=function(e){i.props.onDeselect(e)},i.onSelect=function(e){i.props.onSelect(e)},i.onClick=function(e){i.props.onClick(e)},i.onOpenChange=function(e){i.props.onOpenChange(e)},i.onDestroy=function(e){i.props.onDestroy(e)},i.getFlatInstanceArray=function(){return i.instanceArray},i.step=function(e){var t=i.getFlatInstanceArray(),n=i.props.store.getState().activeKey[Et(i.props)],r=t.length;if(!r)return null;e<0&&(t=t.concat().reverse());var a=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(a=t,!1)})),i.props.defaultActiveFirst||-1===a||(o=t.slice(a,r-1)).length&&!o.every((function(e){return!!e.props.disabled}))){var o,s=(a+1)%r,c=s;do{var l=t[c];if(l&&!l.props.disabled)return l;c=(c+1)%r}while(c!==s);return null}},i.renderCommonMenuItem=function(e,t,n){var r=i.props.store.getState(),a=Object(S.a)(i).props,c=Q(e,a.eventKey,t),l=e.props;if(!l||"string"==typeof e.type)return e;var u=c===r.activeKey,d=Object(o.a)(Object(o.a)({mode:l.mode||a.mode,level:a.level,inlineIndent:a.inlineIndent,renderMenuItem:i.renderMenuItem,rootPrefixCls:a.prefixCls,index:t,parentMenu:a.parentMenu,manualRef:l.disabled?void 0:Object(j.a)(e.ref,St.bind(Object(S.a)(i))),eventKey:c,active:!l.disabled&&u,multiple:a.multiple,onClick:function(e){(l.onClick||Z)(e),i.onClick(e)},onItemHover:i.onItemHover,motion:a.motion,subMenuOpenDelay:a.subMenuOpenDelay,subMenuCloseDelay:a.subMenuCloseDelay,forceSubMenuRender:a.forceSubMenuRender,onOpenChange:i.onOpenChange,onDeselect:i.onDeselect,onSelect:i.onSelect,builtinPlacements:a.builtinPlacements,itemIcon:l.itemIcon||i.props.itemIcon,expandIcon:l.expandIcon||i.props.expandIcon},n),{},{direction:a.direction});return("inline"===a.mode||Y.any)&&(d.triggerSubMenuAction="click"),s.cloneElement(e,Object(o.a)(Object(o.a)({},d),{},{key:c||t}))},i.renderMenuItem=function(e,t,n){if(!e)return null;var r=i.props.store.getState(),a={openKeys:r.openKeys,selectedKeys:r.selectedKeys,triggerSubMenuAction:i.props.triggerSubMenuAction,subMenuKey:n};return i.renderCommonMenuItem(e,t,a)},e.store.setState({activeKey:Object(o.a)(Object(o.a)({},e.store.getState().activeKey),{},Object(r.a)({},e.eventKey,Ot(e,e.activeKey)))}),i.instanceArray=[],i}return Object(O.a)(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!T()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[Et(t)],r=Ot(t,n);if(r!==n)kt(t.store,Et(t),r);else if("activeKey"in e){r!==Ot(e,e.activeKey)&&kt(t.store,Et(t),r)}}},{key:"render",value:function(){var e=this,t=Object(k.a)({},this.props);this.instanceArray=[];var n={className:l()(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),role:t.role||"menu"};t.id&&(n.id=t.id),t.focusable&&(n.tabIndex=0,n.onKeyDown=this.onKeyDown);var r=t.prefixCls,i=t.eventKey,a=t.visible,o=t.level,c=t.mode,d=t.overflowedIndicator,h=t.theme;return ee.forEach((function(e){return delete t[e]})),delete t.onClick,s.createElement(_t,Object(k.a)({},t,{prefixCls:r,mode:c,tag:"ul",level:o,theme:h,visible:a,overflowedIndicator:d},n),Object(u.a)(t.children).map((function(t,n){return e.renderMenuItem(t,n,i||"0-menu-")})))}}]),n}(s.Component);wt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Z};var Ct=Object(x.b)()(wt),xt=n("Kwbf");function At(e,t,n){var r=e.prefixCls,i=e.motion,a=e.defaultMotions,o=void 0===a?{}:a,s=e.openAnimation,c=e.openTransitionName,l=t.switchingModeFromInline;if(i)return i;if("object"===Object(D.a)(s)&&s)Object(xt.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof s)return{motionName:"".concat(r,"-open-").concat(s)};if(c)return{motionName:c};var u=o[n];return u||(l?null:o.other)}var jt=function(e){Object(w.a)(n,e);var t=Object(C.a)(n);function n(e){var r;Object(E.a)(this,n),(r=t.call(this,e)).onSelect=function(e){var t=Object(S.a)(r).props;if(t.selectable){var n=r.store.getState().selectedKeys,i=e.key;n=t.multiple?n.concat([i]):[i],"selectedKeys"in t||r.store.setState({selectedKeys:n}),t.onSelect(Object(o.a)(Object(o.a)({},e),{},{selectedKeys:n}))}},r.onClick=function(e){var t=r.getRealMenuMode(),n=Object(S.a)(r),i=n.store,a=n.props.onOpenChange;"inline"===t||"openKeys"in r.props||(i.setState({openKeys:[]}),a([])),r.props.onClick(e)},r.onKeyDown=function(e,t){r.innerMenu.getWrappedInstance().onKeyDown(e,t)},r.onOpenChange=function(e){var t=Object(S.a)(r).props,n=r.store.getState().openKeys.concat(),i=!1,a=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var r=n.indexOf(e.key);(t=-1!==r)&&n.splice(r,1)}i=i||t};Array.isArray(e)?e.forEach(a):a(e),i&&("openKeys"in r.props||r.store.setState({openKeys:n}),t.onOpenChange(n))},r.onDeselect=function(e){var t=Object(S.a)(r).props;if(t.selectable){var n=r.store.getState().selectedKeys.concat(),i=e.key,a=n.indexOf(i);-1!==a&&n.splice(a,1),"selectedKeys"in t||r.store.setState({selectedKeys:n}),t.onDeselect(Object(o.a)(Object(o.a)({},e),{},{selectedKeys:n}))}},r.onMouseEnter=function(e){r.restoreModeVerticalFromInline();var t=r.props.onMouseEnter;t&&t(e)},r.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,i="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,a="font-size"===e.propertyName&&i.indexOf("anticon")>=0;(t||a)&&r.restoreModeVerticalFromInline()},r.setInnerMenu=function(e){r.innerMenu=e},r.isRootMenu=!0;var i=e.defaultSelectedKeys,a=e.defaultOpenKeys;return"selectedKeys"in e&&(i=e.selectedKeys||[]),"openKeys"in e&&(a=e.openKeys||[]),r.store=Object(x.c)({selectedKeys:i,openKeys:a,activeKey:{"0-menu-":Ot(e,e.activeKey)}}),r.state={switchingModeFromInline:!1,prevProps:e,inlineOpenKeys:[],store:r.store},r}return Object(O.a)(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.siderCollapsed,r=t.inlineCollapsed,i=t.onOpenChange;(!e.inlineCollapsed&&r||!e.siderCollapsed&&n)&&i([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys;this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e)?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(o.a)({},Object(A.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),delete(e=Object(o.a)(Object(o.a)({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:At(this.props,this.state,t)})).openAnimation,delete e.openTransitionName,s.createElement(x.a,{store:this.store},s.createElement(Ct,Object(k.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.store,i=r.getState(),a={},o={prevProps:e};return"inline"===n.mode&&"inline"!==e.mode&&(o.switchingModeFromInline=!0),"openKeys"in e?a.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!n.inlineCollapsed||e.siderCollapsed&&!n.siderCollapsed)&&(o.switchingModeFromInline=!0,o.inlineOpenKeys=i.openKeys,a.openKeys=[]),(!e.inlineCollapsed&&n.inlineCollapsed||!e.siderCollapsed&&n.siderCollapsed)&&(a.openKeys=t.inlineOpenKeys,o.inlineOpenKeys=[])),Object.keys(a).length&&r.setState(a),o}}]),n}(s.Component);jt.defaultProps={selectable:!0,onClick:Z,onSelect:Z,onOpenChange:Z,onDeselect:Z,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:s.createElement("span",null,"···")};var Rt=jt,Tt=function(e){Object(w.a)(n,e);var t=Object(C.a)(n);function n(){var e;return Object(E.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=function(t){if(t.keyCode===g.a.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,r=n.eventKey,i=n.onItemHover,a=n.onMouseLeave;i({key:r,hover:!1}),a({key:r,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,r=n.eventKey,i=n.onItemHover,a=n.onMouseEnter;i({key:r,hover:!0}),a({key:r,domEvent:t})},e.onClick=function(t){var n=e.props,r=n.eventKey,i=n.multiple,a=n.onClick,o=n.onSelect,s=n.onDeselect,c=n.isSelected,l={key:r,keyPath:[r],item:Object(S.a)(e),domEvent:t};a(l),i?c?s(l):o(l):c||o(l)},e.saveNode=function(t){e.node=t},e}return Object(O.a)(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=Object(o.a)({},this.props),n=l()(this.getPrefixCls(),t.className,(e={},Object(r.a)(e,this.getActiveClassName(),!t.disabled&&t.active),Object(r.a)(e,this.getSelectedClassName(),t.isSelected),Object(r.a)(e,this.getDisabledClassName(),t.disabled),e)),i=Object(o.a)(Object(o.a)({},t.attribute),{},{title:"string"==typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?i=Object(o.a)(Object(o.a)({},i),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(i.role="none");var a={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},c=Object(o.a)({},t.style);"inline"===t.mode&&("rtl"===t.direction?c.paddingRight=t.inlineIndent*t.level:c.paddingLeft=t.inlineIndent*t.level),ee.forEach((function(e){return delete t[e]})),delete t.direction;var u=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(u=s.createElement(this.props.itemIcon,this.props)),s.createElement("li",Object(k.a)({},Object(A.a)(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),i,a,{style:c,ref:this.saveNode}),t.children,u)}}]),n}(s.Component);Tt.isMenuItem=!0,Tt.defaultProps={onSelect:Z,onMouseEnter:Z,onMouseLeave:Z,manualRef:Z};var Dt=Object(x.b)((function(e,t){var n=e.activeKey,r=e.selectedKeys,i=t.eventKey;return{active:n[t.subMenuKey]===i,isSelected:Array.isArray(r)?-1!==r.indexOf(i):r===i}}))(Tt),Lt=function(e){Object(w.a)(n,e);var t=Object(C.a)(n);function n(){var e;return Object(E.a)(this,n),(e=t.apply(this,arguments)).renderInnerMenuItem=function(t){var n=e.props;return(0,n.renderMenuItem)(t,n.index,e.props.subMenuKey)},e}return Object(O.a)(n,[{key:"render",value:function(){var e=Object(k.a)({},this.props),t=e.className,n=void 0===t?"":t,r=e.rootPrefixCls,i="".concat(r,"-item-group-title"),a="".concat(r,"-item-group-list"),o=e.title,c=e.children;return ee.forEach((function(t){return delete e[t]})),delete e.direction,s.createElement("li",Object(k.a)({},e,{onClick:function(e){return e.stopPropagation()},className:"".concat(n," ").concat(r,"-item-group")}),s.createElement("div",{className:i,title:"string"==typeof o?o:void 0},o),s.createElement("ul",{className:a},s.Children.map(c,this.renderInnerMenuItem)))}}]),n}(s.Component);Lt.isMenuItemGroup=!0,Lt.defaultProps={disabled:!0};var Mt=function(e){var t=e.className,n=e.rootPrefixCls,r=e.style;return s.createElement("li",{className:"".concat(t," ").concat(n,"-item-divider"),style:r})};Mt.defaultProps={disabled:!0,className:"",style:{}};var It=Rt,Nt=n("eDIo");var Pt=s.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return r&&!1!==r.showAdd?s.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}));var Bt=s.forwardRef((function(e,t){var n=e.prefixCls,a=e.id,o=e.tabs,c=e.locale,u=e.mobile,d=e.moreIcon,h=void 0===d?"More":d,f=e.moreTransitionName,p=e.style,v=e.className,m=e.editable,b=e.tabBarGutter,y=e.rtl,_=e.onTabClick,k=Object(s.useState)(!1),E=Object(i.a)(k,2),O=E[0],S=E[1],w=Object(s.useState)(null),C=Object(i.a)(w,2),x=C[0],A=C[1],j="".concat(a,"-more-popup"),R="".concat(n,"-dropdown"),T=null!==x?"".concat(j,"-").concat(x):null,D=null==c?void 0:c.dropdownAriaLabel,L=s.createElement(It,{onClick:function(e){var t=e.key,n=e.domEvent;_(t,n),S(!1)},id:j,tabIndex:-1,role:"listbox","aria-activedescendant":T,selectedKeys:[x],"aria-label":void 0!==D?D:"expanded dropdown"},o.map((function(e){return s.createElement(Dt,{key:e.key,id:"".concat(j,"-").concat(e.key),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(e.key),disabled:e.disabled},e.tab)})));function M(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===x}))||0,r=t.length,i=0;i<r;i+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void A(a.key)}}Object(s.useEffect)((function(){var e=document.getElementById(T);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[x]),Object(s.useEffect)((function(){O||A(null)}),[O]);var I=Object(r.a)({},y?"marginLeft":"marginRight",b);o.length||(I.visibility="hidden",I.order=1);var N=l()(Object(r.a)({},"".concat(R,"-rtl"),y)),P=u?null:s.createElement(Nt.a,{prefixCls:R,overlay:L,trigger:["hover"],visible:O,transitionName:f,onVisibleChange:S,overlayClassName:N,mouseEnterDelay:.1,mouseLeaveDelay:.1},s.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:I,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":j,id:"".concat(a,"-more"),"aria-expanded":O,onKeyDown:function(e){var t=e.which;if(O)switch(t){case g.a.UP:M(-1),e.preventDefault();break;case g.a.DOWN:M(1),e.preventDefault();break;case g.a.ESC:S(!1);break;case g.a.SPACE:case g.a.ENTER:null!==x&&_(x,e)}else[g.a.DOWN,g.a.SPACE,g.a.ENTER].includes(t)&&(S(!0),e.preventDefault())}},h));return s.createElement("div",{className:l()("".concat(n,"-nav-operations"),v),style:p,ref:t},P,s.createElement(Pt,{prefixCls:n,locale:c,editable:m}))})),Kt=Object(s.createContext)(null),Ut=Math.pow(.995,20);function Ft(e,t){var n=s.useRef(e),r=s.useState({}),a=Object(i.a)(r,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,a({})}]}var zt=function(e){var t,n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a=i;return"right"===n&&(t=a.right||!a.left&&a||null),"left"===n&&(t=a.left||null),t?s.createElement("div",{className:"".concat(r,"-extra-content")},t):null};var Vt=s.forwardRef((function(e,t){var n,a,c=s.useContext(Kt),u=c.prefixCls,d=c.tabs,f=e.className,g=e.style,k=e.id,E=e.animated,O=e.activeKey,S=e.rtl,w=e.extra,C=e.editable,x=e.locale,A=e.tabPosition,j=e.tabBarGutter,R=e.children,T=e.onTabClick,D=e.onTabScroll,L=Object(s.useRef)(),M=Object(s.useRef)(),I=Object(s.useRef)(),N=Object(s.useRef)(),P=(a=Object(s.useRef)(new Map),[function(e){return a.current.has(e)||a.current.set(e,s.createRef()),a.current.get(e)},function(e){a.current.delete(e)}]),B=Object(i.a)(P,2),K=B[0],U=B[1],F="top"===A||"bottom"===A,z=Ft(0,(function(e,t){F&&D&&D({direction:e>t?"left":"right"})})),V=Object(i.a)(z,2),H=V[0],G=V[1],W=Ft(0,(function(e,t){!F&&D&&D({direction:e>t?"top":"bottom"})})),q=Object(i.a)(W,2),X=q[0],Y=q[1],Z=Object(s.useState)(0),Q=Object(i.a)(Z,2),J=Q[0],$=Q[1],ee=Object(s.useState)(0),te=Object(i.a)(ee,2),ne=te[0],re=te[1],ie=Object(s.useState)(0),ae=Object(i.a)(ie,2),oe=ae[0],se=ae[1],ce=Object(s.useState)(0),le=Object(i.a)(ce,2),ue=le[0],de=le[1],he=Object(s.useState)(null),fe=Object(i.a)(he,2),pe=fe[0],ve=fe[1],me=Object(s.useState)(null),ge=Object(i.a)(me,2),be=ge[0],ye=ge[1],_e=Object(s.useState)(0),ke=Object(i.a)(_e,2),Ee=ke[0],Oe=ke[1],Se=Object(s.useState)(0),we=Object(i.a)(Se,2),Ce=we[0],xe=we[1],Ae=function(e){var t=Object(s.useRef)([]),n=Object(s.useState)({}),r=Object(i.a)(n,2)[1],a=Object(s.useRef)("function"==typeof e?e():e),o=m((function(){var e=a.current;t.current.forEach((function(t){e=t(e)})),t.current=[],a.current=e,r({})}));return[a.current,function(e){t.current.push(e),o()}]}(new Map),je=Object(i.a)(Ae,2),Re=je[0],Te=je[1],De=function(e,t,n){return Object(s.useMemo)((function(){for(var n,r=new Map,i=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||y,a=i.left+i.width,s=0;s<e.length;s+=1){var c,l=e[s].key,u=t.get(l);if(!u)u=t.get(null===(c=e[s-1])||void 0===c?void 0:c.key)||y;var d=r.get(l)||Object(o.a)({},u);d.right=a-d.left-d.width,r.set(l,d)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(d,Re,J),Le="".concat(u,"-nav-operations-hidden"),Me=0,Ie=0;function Ne(e){return e<Me?[Me,!1]:e>Ie?[Ie,!1]:[e,!0]}F?S?(Me=0,Ie=Math.max(0,J-pe)):(Me=Math.min(0,pe-J),Ie=0):(Me=Math.min(0,be-ne),Ie=0);var Pe=Object(s.useRef)(),Be=Object(s.useState)(),Ke=Object(i.a)(Be,2),Ue=Ke[0],Fe=Ke[1];function ze(){Fe(Date.now())}function Ve(){window.clearTimeout(Pe.current)}function He(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,t=De.get(e);if(t)if(F){var n=H;S?t.right<H?n=t.right:t.right+t.width>H+pe&&(n=t.right+t.width-pe):t.left<-H?n=-t.left:t.left+t.width>-H+pe&&(n=-(t.left+t.width-pe)),Y(0),G(Ne(n)[0])}else{var r=X;t.top<-X?r=-t.top:t.top+t.height>-X+be&&(r=-(t.top+t.height-be)),G(0),Y(Ne(r)[0])}}!function(e,t){var n=Object(s.useState)(),r=Object(i.a)(n,2),a=r[0],o=r[1],c=Object(s.useState)(0),l=Object(i.a)(c,2),u=l[0],d=l[1],h=Object(s.useState)(0),f=Object(i.a)(h,2),p=f[0],v=f[1],m=Object(s.useState)(),g=Object(i.a)(m,2),b=g[0],y=g[1],_=Object(s.useRef)(),k=Object(s.useRef)(0),E=Object(s.useRef)(!1),O=Object(s.useRef)(),S=Object(s.useRef)(null);S.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(_.current)},onTouchMove:function(e){if(a){e.preventDefault();var n=e.touches[0],r=n.screenX,i=n.screenY;o({x:r,y:i});var s=r-a.x,c=i-a.y;t(s,c);var l=Date.now();d(l),v(l-u),y({x:s,y:c})}},onTouchEnd:function(){if(a&&(o(null),y(null),b)){var e=b.x/p,n=b.y/p,r=Math.abs(e),i=Math.abs(n);if(Math.max(r,i)<.1)return;var s=e,c=n;_.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(c)<.01?window.clearInterval(_.current):t(20*(s*=Ut),20*(c*=Ut))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i="x"===O.current?n:r:a>o?(i=n,O.current="x"):(i=r,O.current="y");var s=Date.now();s-k.current>100&&(E.current=!1),(t(-i,-i)||E.current)&&(e.preventDefault(),E.current=!0),k.current=s}},s.useEffect((function(){function t(e){S.current.onTouchMove(e)}function n(e){S.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){S.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){S.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(L,(function(e,t){var n=!1;function r(e,t){e((function(e){var r=Ne(e+t),a=Object(i.a)(r,2),o=a[0],s=a[1];return n=s,o}))}if(F){if(pe>=J)return n;r(G,e)}else{if(be>=ne)return n;r(Y,t)}return Ve(),ze(),n})),Object(s.useEffect)((function(){return Ve(),Ue&&(Pe.current=window.setTimeout((function(){Fe(0)}),100)),Ve}),[Ue]);var Ge=function(e,t,n,r,i){var a,o,c,l=i.tabs,u=i.tabPosition,d=i.rtl;["top","bottom"].includes(u)?(a="width",o=d?"right":"left",c=Math.abs(t.left)):(a="height",o="top",c=-t.top);var h=t[a],f=n[a],p=r[a],v=h;return f+p>h&&(v=h-p),Object(s.useMemo)((function(){if(!l.length)return[0,0];for(var t=l.length,n=t,r=0;r<t;r+=1){var i=e.get(l[r].key)||_;if(i[o]+i[a]>c+v){n=r-1;break}}for(var s=0,u=t-1;u>=0;u-=1){if((e.get(l[u].key)||_)[o]<c){s=u+1;break}}return[s,n]}),[e,c,v,u,l.map((function(e){return e.key})).join("_"),d])}(De,{width:pe,height:be,left:H,top:X},{width:oe,height:ue},{width:Ee,height:Ce},Object(o.a)(Object(o.a)({},e),{},{tabs:d})),We=Object(i.a)(Ge,2),qe=We[0],Xe=We[1],Ye=d.map((function(e){var t=e.key;return s.createElement(b,{id:k,prefixCls:u,key:t,rtl:S,tab:e,closable:e.closable,editable:C,active:t===O,tabPosition:A,tabBarGutter:j,renderWrapper:R,removeAriaLabel:null==x?void 0:x.removeAriaLabel,ref:K(t),onClick:function(e){T(t,e)},onRemove:function(){U(t)},onFocus:function(){He(t),ze(),S||(L.current.scrollLeft=0),L.current.scrollTop=0}})})),Ze=m((function(){var e,t,n,r,i,a,o,s,c,l=(null===(e=L.current)||void 0===e?void 0:e.offsetWidth)||0,u=(null===(t=L.current)||void 0===t?void 0:t.offsetHeight)||0,h=(null===(n=N.current)||void 0===n?void 0:n.offsetWidth)||0,f=(null===(r=N.current)||void 0===r?void 0:r.offsetHeight)||0,p=(null===(i=I.current)||void 0===i?void 0:i.offsetWidth)||0,v=(null===(a=I.current)||void 0===a?void 0:a.offsetHeight)||0;ve(l),ye(u),Oe(h),xe(f);var m=((null===(o=M.current)||void 0===o?void 0:o.offsetWidth)||0)-h,g=((null===(s=M.current)||void 0===s?void 0:s.offsetHeight)||0)-f;$(m),re(g);var b=null===(c=I.current)||void 0===c?void 0:c.className.includes(Le);se(m-(b?0:p)),de(g-(b?0:v)),Te((function(){var e=new Map;return d.forEach((function(t){var n=t.key,r=K(n).current;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))})),Qe=d.slice(0,qe),Je=d.slice(Xe+1),$e=[].concat(Object(h.a)(Qe),Object(h.a)(Je)),et=Object(s.useState)(),tt=Object(i.a)(et,2),nt=tt[0],rt=tt[1],it=De.get(O),at=Object(s.useRef)();function ot(){p.a.cancel(at.current)}Object(s.useEffect)((function(){var e={};return it&&(F?(S?e.right=it.right:e.left=it.left,e.width=it.width):(e.top=it.top,e.height=it.height)),ot(),at.current=p()((function(){rt(e)})),ot}),[it,F,S]),Object(s.useEffect)((function(){He()}),[O,it,De,F]),Object(s.useEffect)((function(){Ze()}),[S,j,O,d.map((function(e){return e.key})).join("_")]);var st,ct,lt,ut,dt=!!$e.length,ht="".concat(u,"-nav-wrap");return F?S?(ct=H>0,st=H+pe<J):(st=H<0,ct=-H+pe<J):(lt=X<0,ut=-X+be<ne),s.createElement("div",{ref:t,role:"tablist",className:l()("".concat(u,"-nav"),f),style:g,onKeyDown:function(){ze()}},s.createElement(zt,{position:"left",extra:w,prefixCls:u}),s.createElement(v.a,{onResize:Ze},s.createElement("div",{className:l()(ht,(n={},Object(r.a)(n,"".concat(ht,"-ping-left"),st),Object(r.a)(n,"".concat(ht,"-ping-right"),ct),Object(r.a)(n,"".concat(ht,"-ping-top"),lt),Object(r.a)(n,"".concat(ht,"-ping-bottom"),ut),n)),ref:L},s.createElement(v.a,{onResize:Ze},s.createElement("div",{ref:M,className:"".concat(u,"-nav-list"),style:{transform:"translate(".concat(H,"px, ").concat(X,"px)"),transition:Ue?"none":void 0}},Ye,s.createElement(Pt,{ref:N,prefixCls:u,locale:x,editable:C,style:{visibility:dt?"hidden":null}}),s.createElement("div",{className:l()("".concat(u,"-ink-bar"),Object(r.a)({},"".concat(u,"-ink-bar-animated"),E.inkBar)),style:nt}))))),s.createElement(Bt,Object.assign({},e,{ref:I,prefixCls:u,tabs:$e,className:!dt&&Le})),s.createElement(zt,{position:"right",extra:w,prefixCls:u}))}));function Ht(e){var t=e.id,n=e.activeKey,i=e.animated,a=e.tabPosition,o=e.rtl,c=e.destroyInactiveTabPane,u=s.useContext(Kt),d=u.prefixCls,h=u.tabs,f=i.tabPane,p=h.findIndex((function(e){return e.key===n}));return s.createElement("div",{className:l()("".concat(d,"-content-holder"))},s.createElement("div",{className:l()("".concat(d,"-content"),"".concat(d,"-content-").concat(a),Object(r.a)({},"".concat(d,"-content-animated"),f)),style:p&&f?Object(r.a)({},o?"marginRight":"marginLeft","-".concat(p,"00%")):null},h.map((function(e){return s.cloneElement(e.node,{key:e.key,prefixCls:d,tabKey:e.key,id:t,animated:f,active:e.key===n,destroyInactiveTabPane:c})}))))}function Gt(e){var t=e.prefixCls,n=e.forceRender,r=e.className,a=e.style,c=e.id,u=e.active,d=e.animated,h=e.destroyInactiveTabPane,f=e.tabKey,p=e.children,v=s.useState(n),m=Object(i.a)(v,2),g=m[0],b=m[1];s.useEffect((function(){u?b(!0):h&&b(!1)}),[u,h]);var y={};return u||(d?(y.visibility="hidden",y.height=0,y.overflowY="hidden"):y.display="none"),s.createElement("div",{id:c&&"".concat(c,"-panel-").concat(f),role:"tabpanel",tabIndex:u?0:-1,"aria-labelledby":c&&"".concat(c,"-tab-").concat(f),"aria-hidden":!u,style:Object(o.a)(Object(o.a)({},y),a),className:l()("".concat(t,"-tabpane"),u&&"".concat(t,"-tabpane-active"),r)},(u||g||n)&&p)}var Wt=0;var qt=s.forwardRef((function(e,t){var n,c,h=e.id,f=e.prefixCls,p=void 0===f?"rc-tabs":f,v=e.className,m=e.children,g=e.direction,b=e.activeKey,y=e.defaultActiveKey,_=e.editable,k=e.animated,E=e.tabPosition,O=void 0===E?"top":E,S=e.tabBarGutter,w=e.tabBarStyle,C=e.tabBarExtraContent,x=e.locale,A=e.moreIcon,j=e.moreTransitionName,R=e.destroyInactiveTabPane,T=e.renderTabBar,D=e.onChange,L=e.onTabClick,M=e.onTabScroll,I=Object(a.a)(e,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),N=function(e){return Object(u.a)(e).map((function(e){if(s.isValidElement(e)){var t=void 0!==e.key?String(e.key):void 0;return Object(o.a)(Object(o.a)({key:t},e.props),{},{node:e})}return null})).filter((function(e){return e}))}(m),P="rtl"===g;c=!1===k?{inkBar:!1,tabPane:!1}:Object(o.a)({inkBar:!0,tabPane:!1},!0!==k?k:null);var B=Object(s.useState)(!1),K=Object(i.a)(B,2),U=K[0],F=K[1];Object(s.useEffect)((function(){var e;F((e=navigator.userAgent||navigator.vendor||window.opera,!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))))}),[]);var z=Object(d.a)((function(){var e;return null===(e=N[0])||void 0===e?void 0:e.key}),{value:b,defaultValue:y}),V=Object(i.a)(z,2),H=V[0],G=V[1],W=Object(s.useState)((function(){return N.findIndex((function(e){return e.key===H}))})),q=Object(i.a)(W,2),X=q[0],Y=q[1];Object(s.useEffect)((function(){var e,t=N.findIndex((function(e){return e.key===H}));-1===t&&(t=Math.max(0,Math.min(X,N.length-1)),G(null===(e=N[t])||void 0===e?void 0:e.key));Y(t)}),[N.map((function(e){return e.key})).join("_"),H,X]);var Z=Object(d.a)(null,{value:h}),Q=Object(i.a)(Z,2),J=Q[0],$=Q[1],ee=O;U&&!["left","right"].includes(O)&&(ee="top"),Object(s.useEffect)((function(){h||($("rc-tabs-".concat(Wt)),Wt+=1)}),[]);var te,ne={id:J,activeKey:H,animated:c,tabPosition:ee,rtl:P,mobile:U},re=Object(o.a)(Object(o.a)({},ne),{},{editable:_,locale:x,moreIcon:A,moreTransitionName:j,tabBarGutter:S,onTabClick:function(e,t){null==L||L(e,t),G(e),null==D||D(e)},onTabScroll:M,extra:C,style:w,panes:m});return te=T?T(re,Vt):s.createElement(Vt,Object.assign({},re)),s.createElement(Kt.Provider,{value:{tabs:N,prefixCls:p}},s.createElement("div",Object.assign({ref:t,id:h,className:l()(p,"".concat(p,"-").concat(ee),(n={},Object(r.a)(n,"".concat(p,"-mobile"),U),Object(r.a)(n,"".concat(p,"-editable"),_),Object(r.a)(n,"".concat(p,"-rtl"),P),n),v)},I),te,s.createElement(Ht,Object.assign({destroyInactiveTabPane:R},ne,{animated:c}))))}));qt.TabPane=Gt;var Xt=qt;t.b=Xt},po3F:
/*!*******************************************************!*\
!*** ./src/components/Video/Modal/index.less?modules ***!
\*******************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={modal:"modal___3Y0Wf",closeIcon:"closeIcon___2U9hd",wrap:"wrap___3bgrF",input:"input___e0HRQ"}},rHrb:
/*!***************************************************************!*\
!*** ./node_modules/react-copy-to-clipboard/lib/Component.js ***!
\***************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=a(n(/*! react */"q1tI")),i=a(n(/*! copy-to-clipboard */"+QRC"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?f(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){function t(){var e,n;l(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return v(f(n=d(this,(e=h(t)).call.apply(e,[this].concat(o)))),"onClick",(function(e){var t=n.props,a=t.text,o=t.onCopy,s=t.children,c=t.options,l=r.default.Children.only(s),u=(0,i.default)(a,c);o&&o(a,u),l&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(e)})),n}var n,a,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(a=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=c(e,["text","onCopy","options","children"]),i=r.default.Children.only(t);return r.default.cloneElement(i,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{onClick:this.onClick}))}}])&&u(n.prototype,a),o&&u(n,o),t}(r.default.PureComponent);t.CopyToClipboard=m,v(m,"defaultProps",{onCopy:void 0,options:void 0})},sboe:
/*!*************************************************!*\
!*** ./node_modules/rc-tree/es/contextTypes.js ***!
\*************************************************/
/*! exports provided: TreeContext */
/*! exports used: TreeContext */function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(/*! react */"q1tI"),i=r.createContext(null)},t23M:
/*!*****************************************************!*\
!*** ./node_modules/rc-resize-observer/es/index.js ***!
\*****************************************************/
/*! exports provided: default */
/*! exports used: default */function(e,t,n){"use strict";var r=n(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ"),i=n(/*! @babel/runtime/helpers/esm/classCallCheck */"1OyB"),a=n(/*! @babel/runtime/helpers/esm/createClass */"vuIU"),o=n(/*! @babel/runtime/helpers/esm/inherits */"Ji7U"),s=n(/*! @babel/runtime/helpers/esm/createSuper */"LK+K"),c=n(/*! react */"q1tI"),l=n(/*! rc-util/es/Dom/findDOMNode */"m+aA"),u=n(/*! rc-util/es/Children/toArray */"Zm9Q"),d=n(/*! rc-util/es/warning */"Kwbf"),h=n(/*! rc-util/es/ref */"c+Xe"),f=n(/*! resize-observer-polyfill */"bdgK"),p=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var n=e.props.onResize,i=t[0].target,a=i.getBoundingClientRect(),o=a.width,s=a.height,c=i.offsetWidth,l=i.offsetHeight,u=Math.floor(o),d=Math.floor(s);if(e.state.width!==u||e.state.height!==d||e.state.offsetWidth!==c||e.state.offsetHeight!==l){var h={width:u,height:d,offsetWidth:c,offsetHeight:l};e.setState(h),n&&Promise.resolve().then((function(){n(Object(r.a)(Object(r.a)({},h),{},{offsetWidth:c,offsetHeight:l}))}))}},e.setChildNode=function(t){e.childNode=t},e}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var e=Object(l.a)(this.childNode||this);e!==this.currentElement&&(this.destroyObserver(),this.currentElement=e),!this.resizeObserver&&e&&(this.resizeObserver=new f.default(this.onResize),this.resizeObserver.observe(e))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=this.props.children,t=Object(u.a)(e);if(t.length>1)Object(d.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return Object(d.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(c.isValidElement(n)&&Object(h.c)(n)){var r=n.ref;t[0]=c.cloneElement(n,{ref:Object(h.a)(r,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(e,t){return!c.isValidElement(e)||"key"in e&&null!==e.key?e:c.cloneElement(e,{key:"".concat("rc-observer-key","-").concat(t)})}))}}]),n}(c.Component);p.displayName="ResizeObserver",t.a=p},zpA9:
/*!*********************************************!*\
!*** ./src/assets/images/video/default.png ***!
\*********************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/default.4759ba28.png"}}]);