@iomariani/vue-player
Version:
Vue.js HTML5 Audio/Video Player
2 lines • 36.7 kB
JavaScript
(function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="5a74")})({"06cf":function(t,e,r){var n=r("83ab"),o=r("d1e7"),a=r("5c6c"),i=r("fc6a"),s=r("c04e"),c=r("5135"),l=r("0cfb"),u=Object.getOwnPropertyDescriptor;e.f=n?u:function(t,e){if(t=i(t),e=s(e,!0),l)try{return u(t,e)}catch(r){}if(c(t,e))return a(!o.f.call(t,e),t[e])}},"07a2":function(t,e,r){var n=r("a107");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=r("35d6").default;t.exports.__inject__=function(t){o("56e3827e",n,t)}},"0cfb":function(t,e,r){var n=r("83ab"),o=r("d039"),a=r("cc12");t.exports=!n&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"23cb":function(t,e,r){var n=r("a691"),o=Math.max,a=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):a(r,e)}},"23e7":function(t,e,r){var n=r("da84"),o=r("06cf").f,a=r("9112"),i=r("6eeb"),s=r("ce4e"),c=r("e893"),l=r("94ca");t.exports=function(t,e){var r,u,p,f,d,y,h=t.target,v=t.global,g=t.stat;if(u=v?n:g?n[h]||s(h,{}):(n[h]||{}).prototype,u)for(p in e){if(d=e[p],t.noTargetGet?(y=o(u,p),f=y&&y.value):f=u[p],r=l(v?p:h+(g?".":"#")+p,t.forced),!r&&void 0!==f){if(typeof d===typeof f)continue;c(d,f)}(t.sham||f&&f.sham)&&a(d,"sham",!0),i(u,p,d,t)}}},"241c":function(t,e,r){var n=r("ca84"),o=r("7839"),a=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,a)}},"24fb":function(t,e,r){"use strict";function n(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"===typeof btoa){var a=o(n),i=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[r].concat(i).concat([a]).join("\n")}return[r].join("\n")}function o(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(r," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=n(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"===typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);n&&o[c[0]]||(r&&(c[2]?c[2]="".concat(r," and ").concat(c[2]):c[2]=r),e.push(c))}},e}},"35d6":function(t,e,r){"use strict";function n(t,e){for(var r=[],n={},o=0;o<e.length;o++){var a=e[o],i=a[0],s=a[1],c=a[2],l=a[3],u={id:t+":"+o,css:s,media:c,sourceMap:l};n[i]?n[i].parts.push(u):r.push(n[i]={id:i,parts:[u]})}return r}function o(t,e,r){var o=n(t,e);a(o,r)}function a(t,e){const r=e._injectedStyles||(e._injectedStyles={});for(var n=0;n<t.length;n++){var o=t[n],a=r[o.id];if(!a){for(var i=0;i<o.parts.length;i++)s(o.parts[i],e);r[o.id]=!0}}}function i(t){var e=document.createElement("style");return e.type="text/css",t.appendChild(e),e}function s(t,e){var r=i(e),n=t.css,o=t.media,a=t.sourceMap;if(o&&r.setAttribute("media",o),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),r.styleSheet)r.styleSheet.cssText=n;else{while(r.firstChild)r.removeChild(r.firstChild);r.appendChild(document.createTextNode(n))}}r.r(e),r.d(e,"default",(function(){return o}))},"3a0a":function(t,e,r){r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render(t,e){const{_c:r,_v:a,data:i,children:s=[]}=e,{class:c,staticClass:l,style:u,staticStyle:p,attrs:f={}}=i,d=o(i,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[c,l],style:[u,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},f)},d),s.concat([r("path",{attrs:{"stroke-width":"1","stroke-miterlimit":"10",d:"M5.91 8.61v5.19"}}),r("rect",{attrs:{x:"8.56",y:"8.61",width:"2.6",height:"5.19",rx:"1.3","stroke-width":"1"}}),r("path",{attrs:{"stroke-width":"1.8",d:"M9.1 6.58l4.36-1.32L12.13.9"}}),r("path",{attrs:{d:"M12.99 5.17a7.08 7.08 0 00-4.87-1.93 7.16 7.16 0 00-7 8.4"}}),r("path",{attrs:{d:"M2.33 14.59a7.11 7.11 0 003.32 2.54","stroke-width":"1.8"}}),r("path",{attrs:{d:"M8.16 17.5a5.15 5.15 0 002.55-.48","stroke-width":"1.6"}}),r("path",{attrs:{d:"M12.74 15.8a6.93 6.93 0 001.43-1.71","stroke-width":"1.3"}}),r("path",{attrs:{d:"M14.99 11.91a6.55 6.55 0 00.14-1.41","stroke-width":"1"}})]))}}},4082:function(t,e,r){var n=r("f0e4");function o(t,e){if(null==t)return{};var r,o,a=n(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}t.exports=o},"428f":function(t,e,r){var n=r("da84");t.exports=n},"44ad":function(t,e,r){var n=r("d039"),o=r("c6b6"),a="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?a.call(t,""):Object(t)}:Object},"4d64":function(t,e,r){var n=r("fc6a"),o=r("50c4"),a=r("23cb"),i=function(t){return function(e,r,i){var s,c=n(e),l=o(c.length),u=a(i,l);if(t&&r!=r){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===r)return t||u||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},"50c4":function(t,e,r){var n=r("a691"),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},5135:function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},5692:function(t,e,r){var n=r("c430"),o=r("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,r){var n=r("d066"),o=r("241c"),a=r("7418"),i=r("825a");t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(i(t)),r=a.f;return r?e.concat(r(t)):e}},"5a74":function(t,e,r){"use strict";if(r.r(e),"undefined"!==typeof window){var n=window.document.currentScript;if(Object({NODE_ENV:"production",BASE_URL:"/"}).NEED_CURRENTSCRIPT_POLYFILL){var o=r("8875");n=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o})}var a=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(r.p=a[1])}var i=r("8bbf"),s=r.n(i);const c=/-(\w)/g,l=t=>t.replace(c,(t,e)=>e?e.toUpperCase():""),u=/\B([A-Z])/g,p=t=>t.replace(u,"-$1").toLowerCase();function f(t){const e={};return t.forEach(t=>{e[t]=void 0}),e}function d(t,e,r){t[e]=[].concat(t[e]||[]),t[e].unshift(r)}function y(t,e){if(t){const r=t.$options[e]||[];r.forEach(e=>{e.call(t)})}}function h(t,e){return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:e})}const v=t=>/function Boolean/.test(String(t)),g=t=>/function Number/.test(String(t));function b(t,e,{type:r}={}){if(v(r))return"true"===t||"false"===t?"true"===t:""===t||t===e||null!=t;if(g(r)){const e=parseFloat(t,10);return isNaN(e)?t:e}return t}function w(t,e){const r=[];for(let n=0,o=e.length;n<o;n++)r.push(m(t,e[n]));return r}function m(t,e){if(3===e.nodeType)return e.data.trim()?e.data:null;if(1===e.nodeType){const r={attrs:x(e),domProps:{innerHTML:e.innerHTML}};return r.attrs.slot&&(r.slot=r.attrs.slot,delete r.attrs.slot),t(e.tagName,r)}return null}function x(t){const e={};for(let r=0,n=t.attributes.length;r<n;r++){const n=t.attributes[r];e[n.nodeName]=n.nodeValue}return e}function k(t,e){const r="function"===typeof e&&!e.cid;let n,o,a,i=!1;function s(t){if(i)return;const e="function"===typeof t?t.options:t,r=Array.isArray(e.props)?e.props:Object.keys(e.props||{});n=r.map(p),o=r.map(l);const s=Array.isArray(e.props)?{}:e.props||{};a=o.reduce((t,e,n)=>(t[e]=s[r[n]],t),{}),d(e,"beforeCreate",(function(){const t=this.$emit;this.$emit=(e,...r)=>(this.$root.$options.customElement.dispatchEvent(h(e,r)),t.call(this,e,...r))})),d(e,"created",(function(){o.forEach(t=>{this.$root.props[t]=this[t]})})),o.forEach(t=>{Object.defineProperty(u.prototype,t,{get(){return this._wrapper.props[t]},set(e){this._wrapper.props[t]=e},enumerable:!1,configurable:!0})}),i=!0}function c(t,e){const r=l(e),n=t.hasAttribute(e)?t.getAttribute(e):void 0;t._wrapper.props[r]=b(n,e,a[r])}class u extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const r=this._wrapper=new t({name:"shadow-root",customElement:this,shadowRoot:this.shadowRoot,data(){return{props:{},slotChildren:[]}},render(t){return t(e,{ref:"inner",props:this.props},this.slotChildren)}}),n=new MutationObserver(t=>{let e=!1;for(let r=0;r<t.length;r++){const n=t[r];i&&"attributes"===n.type&&n.target===this?c(this,n.attributeName):e=!0}e&&(r.slotChildren=Object.freeze(w(r.$createElement,this.childNodes)))});n.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}get vueComponent(){return this._wrapper.$refs.inner}connectedCallback(){const t=this._wrapper;if(t._isMounted)y(this.vueComponent,"activated");else{const r=()=>{t.props=f(o),n.forEach(t=>{c(this,t)})};i?r():e().then(t=>{(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),s(t),r()}),t.slotChildren=Object.freeze(w(t.$createElement,this.childNodes)),t.$mount(),this.shadowRoot.appendChild(t.$el)}}disconnectedCallback(){y(this.vueComponent,"deactivated")}}return r||s(e),u}var _=k;r("24fb"),r("35d6");function O(t,e,r,n,o,a,i,s){var c,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),i?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=c):o&&(c=s?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,c):[c]}return{exports:t,options:l}}var C=function(){var t,e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"player",class:(t={"audio-player":e.audio,"video-player":e.video},t["status-"+e.status]=!0,t["fullscreen-active"]=e.fullscreenActive,t.theater=e.theater,t)},[n("transition",{attrs:{name:"fade"}},[e.overlayVisible?n("div",{staticClass:"player-overlay",class:{blurred:e.overlayBlur},style:"background-color: "+e.overlayColor}):e._e()]),n("div",{ref:"wrapper",staticClass:"player-wrapper"},[e.audio?n("audio",{ref:"player",staticClass:"media",attrs:{preload:"auto",autoplay:e.autoplay,loop:e.loop},on:{progress:e.progressListener,loadeddata:e.loaded,timeupdate:e.timeUpdate,play:e.playPause,pause:e.playPause,error:e.error}},[e._l(e.sources,(function(t,e){return n("source",{key:e,attrs:{src:t,type:e}})})),e._v(" Your browser does not support HTML5 audio. ")],2):e._e(),e.video?n("video",{ref:"player",staticClass:"media",attrs:{width:e.videoWidth,height:e.videoHeight,preload:"auto",autoplay:e.autoplay,loop:e.loop,poster:e.poster},on:{progress:e.progressListener,loadeddata:e.loaded,timeupdate:e.timeUpdate,play:e.playPause,pause:e.playPause,error:e.error}},[e._l(e.sources,(function(t,e){return n("source",{key:e,attrs:{src:t,type:e}})})),e._v(" Your browser does not support HTML5 video. ")],2):e._e(),n("div",{staticClass:"player-controls"},[e.currentTime==e.duration&&e.duration>0?n("replay-icon",{staticClass:"action action-replay",attrs:{"aria-label":"replay"},on:{click:e.replay}}):"playing"===e.status?n("pause-icon",{staticClass:"action action-pause",attrs:{"aria-label":"pause",viewBox:"2 0 20 25"},on:{click:e.pause}}):n("play-icon",{staticClass:"action action-play",attrs:{"aria-label":"play",viewBox:"0 0 20 25"},on:{click:e.play}}),e.video?["playing"===e.status?n("backwards-icon",{staticClass:"action action-backwards",attrs:{"aria-label":"back ten seconds",viewBox:"0 0 20 25"},on:{click:e.backwards}}):e._e(),"playing"===e.status?n("forwards-icon",{staticClass:"action action-forwards",attrs:{"aria-label":"forward ten seconds",viewBox:"0 0 20 25"},on:{click:e.forwards}}):e._e()]:e._e(),n("div",{staticClass:"player-tracker"},[n("span",{staticClass:"player-time-current",attrs:{"aria-label":"current time"}},[e._v(e._s(e._f("time")(e.currentTime)))]),n("div",{staticClass:"player-progress",on:{click:e.seek}},[n("div",{staticClass:"player-progress-wrapper"},[n("div",{staticClass:"player-buffer",style:"width: "+e.buffered+"%"}),n("div",{staticClass:"player-seeker",style:"background-color: "+e.color+"; width: "+e.progress+"%"})]),n("div",{staticClass:"player-seeker-thumb",style:"background-color: "+e.color+"; left: "+e.progress+"%"})]),n("span",{staticClass:"player-time-total",attrs:{"aria-label":"duration"}},[e._v(e._s(e._f("time")(e.duration)))]),e.video?[e.fullscreenActive||e.autoFullscreen||"native"===e.fullscreenOption?e.fullscreenActive&&!e.autoFullscreen&&"native"!==e.fullscreenOption?n("minimize-icon",{staticClass:"action action-fullscreen",attrs:{"aria-label":"toggle fullscreen",viewBox:"0 0 20 25"},on:{click:e.toggleFullscreen}}):e._e():n("maximize-icon",{staticClass:"action action-fullscreen",attrs:{"aria-label":"toggle fullscreen",viewBox:"0 0 20 25"},on:{click:e.toggleFullscreen}}),e.autoFullscreen||"scale"===e.fullscreenOption?e._e():n("fullscreen-icon",{staticClass:"action action-fullscreen",attrs:{"aria-label":"toggle fullscreen",viewBox:"0 0 20 25"},on:{click:e.requestFullscreen}})]:e._e()],2)],2)])],1)},S=[],j=r("a9c4"),M=r.n(j),E=r("e702"),T=r.n(E),P=r("e39a"),R=r.n(P),$=r("c1e3"),B=r.n($),L=r("db39"),F=r.n(L),A=r("ce32"),I=r.n(A),N=r("9a65"),D=r.n(N),z=r("3a0a"),H=r.n(z),U={name:"vue-player",components:{PlayIcon:M.a,PauseIcon:T.a,ReplayIcon:R.a,FullscreenIcon:B.a,MaximizeIcon:F.a,MinimizeIcon:I.a,BackwardsIcon:D.a,ForwardsIcon:H.a},props:{audio:{type:Boolean,default:!1},video:{type:Boolean,default:!1},sources:{type:Object},videoWidth:{type:String,default:"100%"},videoHeight:{type:String,default:"auto"},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},poster:{type:String},color:{type:String,default:"#2f96fd"},exclusive:{type:Boolean,default:!0},theater:{type:[Boolean,String],default:!1},overlayBlur:{type:Boolean,default:!1},overlayColor:{type:String,default:"#000000e6"},fullscreen:{type:String,default:"both"},autoFullscreen:{type:Boolean,default:!1},viewport:{type:Function,default:()=>window}},data(){return{status:"loading",currentTime:0,duration:0,buffered:0,progress:0,fullscreenActive:!1}},computed:{fullscreenOption(){const t=navigator.userAgent,e=/Android|webOS|iPhone|iPad|iPod/i.test(t);return e?"native":this.fullscreen},overlayVisible(){return!("fullscreen"!==this.theater||!this.fullscreenActive)||!(!0!==this.theater||"playing"!==status&&!this.fullscreenActive)}},methods:{progressListener(t){const e=t.target,r=e.duration;if(r>0)for(let n=0;n<e.buffered.length;n++)if(e.buffered.start(e.buffered.length-1-n)<e.currentTime){this.buffered=e.buffered.end(e.buffered.length-1-n)/r*100;break}},loaded(t){const e=t.target;if(e.readyState>=2)return this.status="loaded",this.duration=parseInt(e.duration),this.autoplay&&this.play(),this.autoplay;this.error(t)},error(t){switch(t.target.error.code){case t.target.error.MEDIA_ERR_ABORTED:throw new Error("You aborted the video playback.");case t.target.error.MEDIA_ERR_NETWORK:throw new Error("A network error caused the audio download to fail.");case t.target.error.MEDIA_ERR_DECODE:throw new Error("The audio playback was aborted due to a corruption problem or because the video used features your browser did not support.");case t.target.error.MEDIA_ERR_SRC_NOT_SUPPORTED:throw new Error("The video audio not be loaded, either because the server or network failed or because the format is not supported.");default:throw new Error("An unknown error occurred.")}},timeUpdate(t){const e=t.target;this.currentTime=parseInt(e.currentTime),this.progress=this.currentTime/this.duration*100,e.playing&&(this.status="playing")},play(){this.$refs.player.play()},pause(){this.$refs.player.pause()},playPause(t){if("pause"===t.type)this.status="paused";else if("play"===t.type){if(this.exclusive){const t=document.getElementsByClassName("player status-playing");t.forEach(t=>t.getElementsByClassName("media")[0].pause())}this.status="playing"}this.autoFullscreen&&("native"===this.fullscreenOption?this.requestFullscreen():this.toggleFullscreen())},replay(){this.$refs.player.pause(),this.$refs.player.currentTime=0,this.$refs.player.play()},seek(t){const e=t.target.classList.contains("player-progress")?t.target:t.target.parentNode,r=e.getBoundingClientRect(),n=(t.clientX-r.left)/r.width;this.$refs.player.currentTime=parseInt(this.duration*n)},requestFullscreen(){const t=this.$refs.player;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},toggleFullscreen(){const t=this.$refs.wrapper,e=this.$refs.player;if(this.fullscreenActive)t.style.transform="";else{const r=this.viewport.call();let n;n=r instanceof Window?{width:window.innerWidth,height:window.innerHeight}:r.getBoundingClientRect();const o=e.getBoundingClientRect(),a=.85*Math.min(n.width/e.offsetWidth,n.height/e.offsetHeight);let i=n.width/2-o.width*a/2-o.left,s=n.height/2-o.height*a/2-o.top;r instanceof HTMLElement&&(i+=n.left,s+=n.top),t.style.transform=`translate(${i}px, ${s}px) scale(${a})`}this.fullscreenActive=!this.fullscreenActive},backwards(t,e=10){this.$refs.player.currentTime-=e},forwards(t,e=10){this.$refs.player.currentTime+=e}},filters:{time:function(t){if(!t)return"0:00";const e=new Date(1e3*t);let r=e.toISOString().substring(11,19);return 0==e.getUTCHours()&&(r=r.slice(3),e.getUTCMinutes()<10&&(r=r.slice(1))),r}}},q=U;function V(t){var e=r("6a25");e.__inject__&&e.__inject__(t)}var W=O(q,C,S,!1,V,null,null,!0),Y=W.exports;window.customElements.define("vue-player",_(s.a,Y))},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"60da":function(t,e,r){"use strict";var n=r("83ab"),o=r("d039"),a=r("df75"),i=r("7418"),s=r("d1e7"),c=r("7b0b"),l=r("44ad"),u=Object.assign,p=Object.defineProperty;t.exports=!u||o((function(){if(n&&1!==u({b:1},u(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach((function(t){e[t]=t})),7!=u({},t)[r]||a(u({},e)).join("")!=o}))?function(t,e){var r=c(t),o=arguments.length,u=1,p=i.f,f=s.f;while(o>u){var d,y=l(arguments[u++]),h=p?a(y).concat(p(y)):a(y),v=h.length,g=0;while(v>g)d=h[g++],n&&!f.call(y,d)||(r[d]=y[d])}return r}:u},"69f3":function(t,e,r){var n,o,a,i=r("7f9a"),s=r("da84"),c=r("861d"),l=r("9112"),u=r("5135"),p=r("f772"),f=r("d012"),d=s.WeakMap,y=function(t){return a(t)?o(t):n(t,{})},h=function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}};if(i){var v=new d,g=v.get,b=v.has,w=v.set;n=function(t,e){return w.call(v,t,e),e},o=function(t){return g.call(v,t)||{}},a=function(t){return b.call(v,t)}}else{var m=p("state");f[m]=!0,n=function(t,e){return l(t,m,e),e},o=function(t){return u(t,m)?t[m]:{}},a=function(t){return u(t,m)}}t.exports={set:n,get:o,has:a,enforce:y,getterFor:h}},"6a25":function(t,e,r){"use strict";r.r(e);var n=r("07a2"),o=r.n(n);for(var a in n)"default"!==a&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"6eeb":function(t,e,r){var n=r("da84"),o=r("9112"),a=r("5135"),i=r("ce4e"),s=r("8925"),c=r("69f3"),l=c.get,u=c.enforce,p=String(String).split("String");(t.exports=function(t,e,r,s){var c=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof e||a(r,"name")||o(r,"name",e),u(r).source=p.join("string"==typeof e?e:"")),t!==n?(c?!f&&t[e]&&(l=!0):delete t[e],l?t[e]=r:o(t,e,r)):l?t[e]=r:i(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,r){var n=r("1d80");t.exports=function(t){return Object(n(t))}},"7f9a":function(t,e,r){var n=r("da84"),o=r("8925"),a=n.WeakMap;t.exports="function"===typeof a&&/native code/.test(o(a))},"825a":function(t,e,r){var n=r("861d");t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,r){var n=r("d039");t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,r){var n,o,a;(function(r,i){o=[],n=i,a="function"===typeof n?n.apply(e,o):n,void 0===a||(t.exports=a)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var r,n,o,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,s=a.exec(d.stack)||i.exec(d.stack),c=s&&s[1]||!1,l=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");c===u&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=r.replace(n,"$1").trim());for(var f=0;f<p.length;f++){if("interactive"===p[f].readyState)return p[f];if(p[f].src===c)return p[f];if(c===u&&p[f].innerHTML&&p[f].innerHTML.trim()===o)return p[f]}return null}}return t}))},8925:function(t,e,r){var n=r("c6cd"),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},"8bbf":function(t,e){t.exports=Vue},"90e3":function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},9112:function(t,e,r){var n=r("83ab"),o=r("9bf2"),a=r("5c6c");t.exports=n?function(t,e,r){return o.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},"94ca":function(t,e,r){var n=r("d039"),o=/#|\.prototype\./,a=function(t,e){var r=s[i(t)];return r==l||r!=c&&("function"==typeof e?n(e):!!e)},i=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},9523:function(t,e){function r(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t.exports=r},"9a65":function(t,e,r){r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render(t,e){const{_c:r,_v:a,data:i,children:s=[]}=e,{class:c,staticClass:l,style:u,staticStyle:p,attrs:f={}}=i,d=o(i,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[c,l],style:[u,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},f)},d),s.concat([r("path",{attrs:{"stroke-width":"1","stroke-miterlimit":"10",d:"M5.41 8.61v5.19"}}),r("rect",{attrs:{x:"8.06",y:"8.61",width:"2.6",height:"5.19",rx:"1.3","stroke-width":"1"}}),r("path",{attrs:{"stroke-width":"1.8",d:"M3.54.9L2.21 5.26l4.36 1.32"}}),r("path",{attrs:{d:"M2.72 5.17a7 7 0 014.83-1.93 7.16 7.16 0 017 8.4"}}),r("path",{attrs:{d:"M13.34 14.59a7.13 7.13 0 01-3.33 2.54","stroke-width":"1.8"}}),r("path",{attrs:{d:"M4.96 17.02a5.09 5.09 0 002.53.48","stroke-width":"1.6"}}),r("path",{attrs:{d:"M1.49 14.09a7 7 0 001.44 1.71","stroke-width":"1.3"}}),r("path",{attrs:{d:"M.49 10.5a7.25 7.25 0 00.14 1.41","stroke-width":"1"}})]))}}},"9bf2":function(t,e,r){var n=r("83ab"),o=r("0cfb"),a=r("825a"),i=r("c04e"),s=Object.defineProperty;e.f=n?s:function(t,e,r){if(a(t),e=i(e,!0),a(r),o)try{return s(t,e,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},a107:function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,'.player{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.player .player-overlay{position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100vh;z-index:100000}.player .player-overlay.blurred{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.player .player-overlay+.player-wrapper{z-index:100001}.player .player-wrapper{-webkit-mask-image:-webkit-radial-gradient(#fff,#000);mask-image:linear-gradient(#fff,#000);background-color:#f0f0f0;border-radius:20px;position:relative;transition:background-color .3s,transform .5s;transform-origin:left top}.player .player-controls,.player .player-controls .player-tracker{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center}.player .player-controls .player-tracker{width:100%}.player .player-controls .player-tracker .player-progress{flex-grow:2;margin:0 9px}.player .player-controls .player-tracker .player-time-current,.player .player-controls .player-tracker .player-time-total{font-size:.8em;font-variant:tabular-nums;font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}.player .action{color:inherit;cursor:pointer}.player .player-tracker{box-sizing:border-box}.player .player-progress{width:100%;height:5px;cursor:pointer;position:relative;background-color:#d7d7d7;border-radius:5px}.player .player-progress .player-progress-wrapper{overflow:hidden}.player .player-progress .player-buffer{height:100%;position:absolute;top:0;left:0;border-radius:5px;background-color:hsla(0,0%,100%,.2)}.player .player-progress .player-seeker{height:100%;position:absolute;border-radius:5px;top:0;left:0;transition:width .1s ease-in}.player .player-progress:hover .player-seeker-thumb{opacity:1}.player .player-seeker-thumb{display:inline-block;width:10px;height:10px;border-radius:100%;position:absolute;transition:opacity .2s;opacity:0;top:-2.5px;margin-left:-2.5px;box-shadow:0 0 5px rgba(0,0,0,.1)}.audio-player{width:100%}.audio-player.theater.status-playing .player-wrapper{background-color:#f0f0f0}.audio-player .player-controls{min-height:20px;padding:5px 15px 5px 5px}.audio-player .player-controls .action{width:13px;height:13px;padding:5px;box-sizing:content-box;transition:transform .2s}.audio-player .player-controls .action:hover{transform:scale(1.2)}.audio-player .player-controls .action:active{transform:scale(.9)}.audio-player .player-controls .player-progress .player-buffer{background-color:rgba(0,0,0,.1)}.video-player video{display:block;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}.video-player .player-controls{position:absolute;top:0;right:0;bottom:0;left:0;transition:box-shadow .5s,background-color .3s;background-color:rgba(0,0,0,.75);color:#efefef}.video-player .player-controls .action{transition:transform .3s,opacity .3s;transform-origin:center}.video-player .player-controls .action:hover{transform:scale(1.2)}.video-player .player-controls .action:active{transform:scale(.8)}.video-player .player-controls:hover{background-color:rgba(0,0,0,.8)}.video-player .player-controls:hover .action{opacity:1}.video-player .player-controls:hover .player-tracker{bottom:10px;opacity:1}.video-player .player-controls .action-pause{opacity:0;fill:#efefef;stroke:transparent}.video-player .player-controls .action-pause,.video-player .player-controls .action-play,.video-player .player-controls .action-replay{position:absolute;top:calc(50% - 35px);left:calc(50% - 35px);width:70px;height:70px}.video-player .player-controls .action-backwards,.video-player .player-controls .action-forwards{position:absolute;top:calc(50% - 20px);width:40px;height:40px}.video-player .player-controls .action-backwards{left:25%}.video-player .player-controls .action-forwards{right:25%}.video-player .player-controls .action-fullscreen{width:20px;height:13px;margin-left:10px;transition:transform .3s}.video-player .player-controls .action-fullscreen:hover{transform:scale(1.3)}.video-player .player-controls .player-progress{background-color:hsla(0,0%,100%,.2)}.video-player .player-controls .player-buffer{background-color:hsla(0,0%,100%,.3)}.video-player .player-controls .player-tracker{position:absolute;left:0;right:0;bottom:-15px;padding:0 15px;opacity:0;transition:opacity .5s,bottom .2s}.video-player.status-playing .player-wrapper:hover .action{opacity:1}.video-player.status-playing .player-controls:not(:hover){background-color:transparent}.video-player.status-playing .player-controls .action{opacity:0}.video-player.fullscreen-active .player-wrapper{z-index:100001}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}',""]),t.exports=e},a691:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},a9c4:function(t,e,r){r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render(t,e){const{_c:r,_v:a,data:i,children:s=[]}=e,{class:c,staticClass:l,style:u,staticStyle:p,attrs:f={}}=i,d=o(i,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[c,l],style:[u,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},f)},d),s.concat([r("path",{attrs:{d:"M5 3l14 9-14 9V3z"}})]))}}},c04e:function(t,e,r){var n=r("861d");t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},c1e3:function(t,e,r){r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render(t,e){const{_c:r,_v:a,data:i,children:s=[]}=e,{class:c,staticClass:l,style:u,staticStyle:p,attrs:f={}}=i,d=o(i,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[c,l],style:[u,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},f)},d),s.concat([r("path",{attrs:{d:"M8 3H5a2 2 0 00-2 2v3m18 0V5a2 2 0 00-2-2h-3m0 18h3a2 2 0 002-2v-3M3 16v3a2 2 0 002 2h3"}})]))}}},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},c6cd:function(t,e,r){var n=r("da84"),o=r("ce4e"),a="__core-js_shared__",i=n[a]||o(a,{});t.exports=i},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},ca84:function(t,e,r){var n=r("5135"),o=r("fc6a"),a=r("4d64").indexOf,i=r("d012");t.exports=function(t,e){var r,s=o(t),c=0,l=[];for(r in s)!n(i,r)&&n(s,r)&&l.push(r);while(e.length>c)n(s,r=e[c++])&&(~a(l,r)||l.push(r));return l}},cc12:function(t,e,r){var n=r("da84"),o=r("861d"),a=n.document,i=o(a)&&o(a.createElement);t.exports=function(t){return i?a.createElement(t):{}}},cca6:function(t,e,r){var n=r("23e7"),o=r("60da");n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},ce32:function(t,e,r){r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render(t,e){const{_c:r,_v:a,data:i,children:s=[]}=e,{class:c,staticClass:l,style:u,staticStyle:p,attrs:f={}}=i,d=o(i,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[c,l],style:[u,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},f)},d),s.concat([r("path",{attrs:{d:"M4 14h6v6M20 10h-6V4M14 10l7-7M3 21l7-7"}})]))}}},ce4e:function(t,e,r){var n=r("da84"),o=r("9112");t.exports=function(t,e){try{o(n,t,e)}catch(r){n[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,r){var n=r("428f"),o=r("da84"),a=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?a(n[t])||a(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},d1e7:function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!n.call({1:2},1);e.f=a?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},da84:function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")()}).call(this,r("c8ba"))},db39:function(t,e,r){r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render(t,e){const{_c:r,_v:a,data:i,children:s=[]}=e,{class:c,staticClass:l,style:u,staticStyle:p,attrs:f={}}=i,d=o(i,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[c,l],style:[u,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},f)},d),s.concat([r("path",{attrs:{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"}})]))}}},ded3:function(t,e,r){var n=r("9523");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}t.exports=a},df75:function(t,e,r){var n=r("ca84"),o=r("7839");t.exports=Object.keys||function(t){return n(t,o)}},e39a:function(t,e,r){r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render(t,e){const{_c:r,_v:a,data:i,children:s=[]}=e,{class:c,staticClass:l,style:u,staticStyle:p,attrs:f={}}=i,d=o(i,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[c,l],style:[u,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16.03 20.27",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},f)},d),s.concat([r("path",{attrs:{d:"M8.52 1L4.28 5.24l4.24 4.24"}}),r("path",{attrs:{d:"M1.01 12.26a7 7 0 107-7H5.55"}})]))}}},e702:function(t,e,r){r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render(t,e){const{_c:r,_v:a,data:i,children:s=[]}=e,{class:c,staticClass:l,style:u,staticStyle:p,attrs:f={}}=i,d=o(i,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[c,l],style:[u,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},f)},d),s.concat([r("path",{attrs:{d:"M6 4h4v16H6zM14 4h4v16h-4z"}})]))}}},e893:function(t,e,r){var n=r("5135"),o=r("56ef"),a=r("06cf"),i=r("9bf2");t.exports=function(t,e){for(var r=o(e),s=i.f,c=a.f,l=0;l<r.length;l++){var u=r[l];n(t,u)||s(t,u,c(e,u))}}},f0e4:function(t,e){function r(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}t.exports=r},f772:function(t,e,r){var n=r("5692"),o=r("90e3"),a=n("keys");t.exports=function(t){return a[t]||(a[t]=o(t))}},fc6a:function(t,e,r){var n=r("44ad"),o=r("1d80");t.exports=function(t){return n(o(t))}}});
//# sourceMappingURL=vue-player.min.js.map