1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[483],{6186:function(t,e,n){"use strict";n.r(e);var r=n(8216),i=n(5997),a=n(4695),o=n(3444),s=n(268),u=n(2953),c=n(2809),l=n(5988),f=n(7294),h=(n(1163),n(9008)),p=n(4407),y=n(2711),d=n(1673),m=n(5893);function v(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,u.Z)(t);if(e){var i=(0,u.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,s.Z)(this,n)}}var g=function(t){(0,o.Z)(n,t);var e=v(n);function n(t){var i;return(0,r.Z)(this,n),i=e.call(this,t),(0,c.Z)((0,a.Z)(i),"getParamsByQueryString",(function(t){var e=location.search.substr(1),n={};if(e)return e.split("&").forEach((function(t,e){var r=t.split("=");return n[r[0]]=r[1]})),t?n[t]:n})),(0,c.Z)((0,a.Z)(i),"createPlayer",(function(t){var e=i.state,n=e.mtsHlsUriToken,r=e.width,a=e.height,o=e.autoplay,s={},u=[];t.PlayInfoList.PlayInfo.forEach((function(t){s[t.Definition]="".concat(t.PlayURL,"?MtsHlsUriToken=").concat(n),u.includes(t.Format)||u.push(t.Format)}));new Aliplayer({id:"player-con",source:JSON.stringify(s),qualitySort:"asc",format:u.toString(),mediaType:"video",width:r,height:a,autoplay:o,isLive:!1,rePlay:!1,playsinline:!0,preload:!0,controlBarVisibility:"hover",useH5Prism:!0,cover:t.VideoBase.CoverURL},(function(t){console.log("The player is created"),o&&(t.mute(),t.play())}))})),(0,c.Z)((0,a.Z)(i),"getPlayAuth",(function(t){return p.Z.get("api/vodServer/getVideoPlayAuth?vid="+t).then((function(t){return t})).then((function(t){return t}))})),(0,c.Z)((0,a.Z)(i),"getPlayInfo",(function(t,e){return p.Z.get("api/vodServer/getPlayInfo?vid="+t+"&Formats="+e).then((function(t){return t})).then((function(t){return t}))})),i.state={mtsHlsUriToken:"",vid:"",height:"360px",width:"100%",requestFormat:"mp4",autoplay:!1},i}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var t=this,e=document.documentElement.clientWidth,n=this.state,r=n.height,i=n.width,a=n.requestFormat,o=n.autoplay,s={query:(0,d.getParamsByQueryString)()},u=s.query.vid;e<=750?(r="100%",i="100%"):(s.query.height&&(r=s.query.height),s.query.width&&(i=s.query.width)),s.query.Formats&&(a=s.query.Formats),s.query.autoplay&&(o=!!s.query.autoplay);var c=y.getCookie("mtsHlsUriToken");this.setState({mtsHlsUriToken:c,vid:u,height:r,width:i,requestFormat:a,autoplay:o},(function(){t.getPlayInfo(u,a).then(t.createPlayer)}))}},{key:"render",value:function(){return(0,m.jsxs)("div",{className:"jsx-3146276615 playerContainer",children:[(0,m.jsxs)(h.default,{children:[(0,m.jsx)("meta",{charSet:"utf-8",className:"jsx-3146276615"}),(0,m.jsx)("meta",{httpEquiv:"x-ua-compatible",content:"IE=edge",className:"jsx-3146276615"}),(0,m.jsx)("meta",{name:"viewport",content:"width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no",className:"jsx-3146276615"}),(0,m.jsx)("title",{className:"jsx-3146276615",children:"AME VideoPlayer"}),(0,m.jsx)("link",{rel:"stylesheet",href:"https://g.alicdn.com/de/prismplayer/2.8.2/skins/default/aliplayer-min.css",className:"jsx-3146276615"}),(0,m.jsx)("script",{type:"text/javascript",charSet:"utf-8",src:"https://g.alicdn.com/de/prismplayer/2.8.2/aliplayer-min.js",className:"jsx-3146276615"})]}),(0,m.jsx)(l.default,{id:"3146276615",children:["body{margin:0;overflow:hidden;}","#player-con{max-width:100%;}","@media screen and (max-width:900px){#player-con{width:100%;max-width:100%;}#player-con video{width:100%;}html,body,div#__next,.playerContainer{width:100%;height:100%;margin:0;padding:0;}.prism-player .prism-cover{background-size:contain;}.prism-player .prism-info-display{padding:0;}}"]}),(0,m.jsx)("div",{id:"player-con",className:"jsx-3146276615 prism-player"})]})}}]),n}(f.Component);e.default=g},4407:function(t,e,n){"use strict";var r=n(8216),i=n(5997),a=function(t,e,n,r){return new Promise((function(i,a){var o=new XMLHttpRequest;if(n&&n.Authorization&&(o.withCredentials=!0),o.open(e,t,!0),o.onerror=function(t){try{var e=o.responseText;
1a({type:"XHR_ERROR",message:e})}catch(t){a({type:"XHR_ERROR",message:t.message})}},o.onreadystatechange=function(t){try{if(4==o.readyState&&o.status>=200&&o.status<400){var e=o.responseText;i(JSON.parse(e))}else if(4==o.readyState&&401==o.status);else if(4==o.readyState){var n=o.responseText;a(n)}}catch(t){a({type:"FINISH_ERROR",message:t.message})}},n)for(var s in n)o.setRequestHeader(s,n[s]);o.send(r)}))},o=function(){function t(){(0,r.Z)(this,t)}return(0,i.Z)(t,null,[{key:"get",value:function(t,e){return a(t,"GET",e)}},{key:"post",value:function(t,e,n){return a(t,"POST",n,e)}},{key:"put",value:function(t,e,n){return a(t,"PUT",n,e)}},{key:"delete",value:function(t,e){return a(t,"DELETE",e)}}]),t}();e.Z=o},1673:function(t,e,n){var r=n(9704);t.exports={getUserInfo:function(t){return r.verify(t.split(" ")[1],"unrealyan")},getParamsByHashString:function(t){var e=location.hash.substr(1),n={};return e?(e.split("&").forEach((function(t,e){var r=t.split("=");return n[r[0]]=r[1]})),t?n[t]:n):""},getParamsByQueryString:function(t){var e=location.search.substr(1),n={};if(e)return e.split("&").forEach((function(t,e){var r=t.split("=");return n[r[0]]=r[1]})),t?n[t]:n},paramsToQueryString:function(t){if(null==t)return"";var e=[];for(var n in t)null!=t[n]&&e.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(t[n])));return e.join("&")},getCookie:function(t,e){for(var n=e+"=",r=t.split(";"),i=0;i<r.length;i++){for(var a=r[i];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(n))return a.substring(n.length,a.length)}return null}}},2711:function(t){t.exports.getParamsByQueryString=function(t){var e=location.search.substr(1),n={};if(e)return e.split("&").forEach((function(t,e){var r=t.split("=");return n[r[0]]=r[1]})),t?n[t]:n},t.exports.paramsToQueryString=function(t){if(null==t)return"";var e=[];for(var n in t)null!=t[n]&&e.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(t[n])));return e.join("&")},t.exports.setCookie=function(t,e,n){var r="";if(n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3),r="; expires="+i.toUTCString()}document.cookie=t+"="+(e||"")+r+"; path=/"},t.exports.getCookie=function(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1,i.length);if(0==i.indexOf(e))return i.substring(e.length,i.length)}return null},t.exports.eraseCookie=function(t){document.cookie=t+"=; Max-Age=-99999999;"}},5646:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/aliPlayer",function(){return n(6186)}])},950:function(){},6601:function(){},9214:function(){},6419:function(){},6353:function(){},8623:function(){},7748:function(){},5568:function(){},9386:function(){},1616:function(){},6619:function(){},7108:function(){},9862:function(){},964:function(){}},function(t){t.O(0,[988,919,774,888,179],(function(){return e=5646,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.