@iomariani/vue-player
Version:
Vue.js HTML5 Audio/Video Player
2 lines • 33.2 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-player"]=e():t["vue-player"]=e()})("undefined"!==typeof self?self:this,(function(){return 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}return 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="fb15")}({"0366":function(t,e,r){var n=r("1c0b");t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},"06cf":function(t,e,r){var n=r("83ab"),o=r("d1e7"),a=r("5c6c"),i=r("fc6a"),c=r("c04e"),s=r("5135"),u=r("0cfb"),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=i(t),e=c(e,!0),u)try{return l(t,e)}catch(r){}if(s(t,e))return a(!o.f.call(t,e),t[e])}},"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}))},"159b":function(t,e,r){var n=r("da84"),o=r("fdbc"),a=r("17c2"),i=r("9112");for(var c in o){var s=n[c],u=s&&s.prototype;if(u&&u.forEach!==a)try{i(u,"forEach",a)}catch(l){u.forEach=a}}},"17c2":function(t,e,r){"use strict";var n=r("b727").forEach,o=r("a640"),a=r("ae40"),i=o("forEach"),c=a("forEach");t.exports=i&&c?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,r){var n=r("d039"),o=r("b622"),a=r("2d00"),i=o("species");t.exports=function(t){return a>=51||!n((function(){var e=[],r=e.constructor={};return r[i]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"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"),c=r("ce4e"),s=r("e893"),u=r("94ca");t.exports=function(t,e){var r,l,f,d,p,v,h=t.target,y=t.global,g=t.stat;if(l=y?n:g?n[h]||c(h,{}):(n[h]||{}).prototype,l)for(f in e){if(p=e[f],t.noTargetGet?(v=o(l,f),d=v&&v.value):d=l[f],r=u(y?f:h+(g?".":"#")+f,t.forced),!r&&void 0!==d){if(typeof p===typeof d)continue;s(p,d)}(t.sham||d&&d.sham)&&a(p,"sham",!0),i(l,f,p,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)}},"2d00":function(t,e,r){var n,o,a=r("da84"),i=r("342f"),c=a.process,s=c&&c.versions,u=s&&s.v8;u?(n=u.split("."),o=n[0]+n[1]):i&&(n=i.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/),n&&(o=n[1]))),t.exports=o&&+o},"342f":function(t,e,r){var n=r("d066");t.exports=n("navigator","userAgent")||""},"3a0a":function(t,e,r){r("99af"),r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render:function(t,e){var r=e._c,a=(e._v,e.data),i=e.children,c=void 0===i?[]:i,s=a.class,u=a.staticClass,l=a.style,f=a.staticStyle,d=a.attrs,p=void 0===d?{}:d,v=o(a,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[s,u],style:[l,f],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"},p)},v),c.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},4160:function(t,e,r){"use strict";var n=r("23e7"),o=r("17c2");n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach: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},4930:function(t,e,r){var n=r("d039");t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},"4d64":function(t,e,r){var n=r("fc6a"),o=r("50c4"),a=r("23cb"),i=function(t){return function(e,r,i){var c,s=n(e),u=o(s.length),l=a(i,u);if(t&&r!=r){while(u>l)if(c=s[l++],c!=c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===r)return t||l||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}},"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"),c=r("d1e7"),s=r("7b0b"),u=r("44ad"),l=Object.assign,f=Object.defineProperty;t.exports=!l||o((function(){if(n&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(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!=l({},t)[r]||a(l({},e)).join("")!=o}))?function(t,e){var r=s(t),o=arguments.length,l=1,f=i.f,d=c.f;while(o>l){var p,v=u(arguments[l++]),h=f?a(v).concat(f(v)):a(v),y=h.length,g=0;while(y>g)p=h[g++],n&&!d.call(v,p)||(r[p]=v[p])}return r}:l},"65f0":function(t,e,r){var n=r("861d"),o=r("e8b5"),a=r("b622"),i=a("species");t.exports=function(t,e){var r;return o(t)&&(r=t.constructor,"function"!=typeof r||r!==Array&&!o(r.prototype)?n(r)&&(r=r[i],null===r&&(r=void 0)):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},"69f3":function(t,e,r){var n,o,a,i=r("7f9a"),c=r("da84"),s=r("861d"),u=r("9112"),l=r("5135"),f=r("f772"),d=r("d012"),p=c.WeakMap,v=function(t){return a(t)?o(t):n(t,{})},h=function(t){return function(e){var r;if(!s(e)||(r=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}};if(i){var y=new p,g=y.get,b=y.has,w=y.set;n=function(t,e){return w.call(y,t,e),e},o=function(t){return g.call(y,t)||{}},a=function(t){return b.call(y,t)}}else{var m=f("state");d[m]=!0,n=function(t,e){return u(t,m,e),e},o=function(t){return l(t,m)?t[m]:{}},a=function(t){return l(t,m)}}t.exports={set:n,get:o,has:a,enforce:v,getterFor:h}},"6eeb":function(t,e,r){var n=r("da84"),o=r("9112"),a=r("5135"),i=r("ce4e"),c=r("8925"),s=r("69f3"),u=s.get,l=s.enforce,f=String(String).split("String");(t.exports=function(t,e,r,c){var s=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,d=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof e||a(r,"name")||o(r,"name",e),l(r).source=f.join("string"==typeof e?e:"")),t!==n?(s?!d&&t[e]&&(u=!0):delete t[e],u?t[e]=r:o(t,e,r)):u?t[e]=r:i(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||c(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))}},"7c6a":function(t,e,r){},"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]}))},8418:function(t,e,r){"use strict";var n=r("c04e"),o=r("9bf2"),a=r("5c6c");t.exports=function(t,e,r){var i=n(e);i in t?o.f(t,i,a(0,r)):t[i]=r}},"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(p){var r,n,o,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,c=a.exec(p.stack)||i.exec(p.stack),s=c&&c[1]||!1,u=c&&c[2]||!1,l=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");s===l&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=r.replace(n,"$1").trim());for(var d=0;d<f.length;d++){if("interactive"===f[d].readyState)return f[d];if(f[d].src===s)return f[d];if(s===l&&f[d].innerHTML&&f[d].innerHTML.trim()===o)return f[d]}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},"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=c[i(t)];return r==u||r!=s&&("function"==typeof e?n(e):!!e)},i=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",u=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},"99af":function(t,e,r){"use strict";var n=r("23e7"),o=r("d039"),a=r("e8b5"),i=r("861d"),c=r("7b0b"),s=r("50c4"),u=r("8418"),l=r("65f0"),f=r("1dde"),d=r("b622"),p=r("2d00"),v=d("isConcatSpreadable"),h=9007199254740991,y="Maximum allowed index exceeded",g=p>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),b=f("concat"),w=function(t){if(!i(t))return!1;var e=t[v];return void 0!==e?!!e:a(t)},m=!g||!b;n({target:"Array",proto:!0,forced:m},{concat:function(t){var e,r,n,o,a,i=c(this),f=l(i,0),d=0;for(e=-1,n=arguments.length;e<n;e++)if(a=-1===e?i:arguments[e],w(a)){if(o=s(a.length),d+o>h)throw TypeError(y);for(r=0;r<o;r++,d++)r in a&&u(f,d,a[r])}else{if(d>=h)throw TypeError(y);u(f,d++,a)}return f.length=d,f}})},"9a65":function(t,e,r){r("99af"),r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render:function(t,e){var r=e._c,a=(e._v,e.data),i=e.children,c=void 0===i?[]:i,s=a.class,u=a.staticClass,l=a.style,f=a.staticStyle,d=a.attrs,p=void 0===d?{}:d,v=o(a,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[s,u],style:[l,f],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"},p)},v),c.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"),c=Object.defineProperty;e.f=n?c:function(t,e,r){if(a(t),e=i(e,!0),a(r),o)try{return c(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}},a640:function(t,e,r){"use strict";var n=r("d039");t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},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("99af"),r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render:function(t,e){var r=e._c,a=(e._v,e.data),i=e.children,c=void 0===i?[]:i,s=a.class,u=a.staticClass,l=a.style,f=a.staticStyle,d=a.attrs,p=void 0===d?{}:d,v=o(a,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[s,u],style:[l,f],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"},p)},v),c.concat([r("path",{attrs:{d:"M5 3l14 9-14 9V3z"}})]))}}},ae40:function(t,e,r){var n=r("83ab"),o=r("d039"),a=r("5135"),i=Object.defineProperty,c={},s=function(t){throw t};t.exports=function(t,e){if(a(c,t))return c[t];e||(e={});var r=[][t],u=!!a(e,"ACCESSORS")&&e.ACCESSORS,l=a(e,0)?e[0]:s,f=a(e,1)?e[1]:void 0;return c[t]=!!r&&!o((function(){if(u&&!n)return!0;var t={length:-1};u?i(t,1,{enumerable:!0,get:s}):t[1]=1,r.call(t,l,f)}))}},b622:function(t,e,r){var n=r("da84"),o=r("5692"),a=r("5135"),i=r("90e3"),c=r("4930"),s=r("fdbf"),u=o("wks"),l=n.Symbol,f=s?l:l&&l.withoutSetter||i;t.exports=function(t){return a(u,t)||(c&&a(l,t)?u[t]=l[t]:u[t]=f("Symbol."+t)),u[t]}},b727:function(t,e,r){var n=r("0366"),o=r("44ad"),a=r("7b0b"),i=r("50c4"),c=r("65f0"),s=[].push,u=function(t){var e=1==t,r=2==t,u=3==t,l=4==t,f=6==t,d=5==t||f;return function(p,v,h,y){for(var g,b,w=a(p),m=o(w),x=n(v,h,3),S=i(m.length),O=0,k=y||c,C=e?k(p,S):r?k(p,0):void 0;S>O;O++)if((d||O in m)&&(g=m[O],b=x(g,O,w),t))if(e)C[O]=b;else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return O;case 2:s.call(C,g)}else if(l)return!1;return f?-1:u||l?l:C}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},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("99af"),r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render:function(t,e){var r=e._c,a=(e._v,e.data),i=e.children,c=void 0===i?[]:i,s=a.class,u=a.staticClass,l=a.style,f=a.staticStyle,d=a.attrs,p=void 0===d?{}:d,v=o(a,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[s,u],style:[l,f],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"},p)},v),c.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,c=o(t),s=0,u=[];for(r in c)!n(i,r)&&n(c,r)&&u.push(r);while(e.length>s)n(c,r=e[s++])&&(~a(u,r)||u.push(r));return u}},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("99af"),r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render:function(t,e){var r=e._c,a=(e._v,e.data),i=e.children,c=void 0===i?[]:i,s=a.class,u=a.staticClass,l=a.style,f=a.staticStyle,d=a.attrs,p=void 0===d?{}:d,v=o(a,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[s,u],style:[l,f],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"},p)},v),c.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("99af"),r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render:function(t,e){var r=e._c,a=(e._v,e.data),i=e.children,c=void 0===i?[]:i,s=a.class,u=a.staticClass,l=a.style,f=a.staticStyle,d=a.attrs,p=void 0===d?{}:d,v=o(a,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[s,u],style:[l,f],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"},p)},v),c.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("99af"),r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render:function(t,e){var r=e._c,a=(e._v,e.data),i=e.children,c=void 0===i?[]:i,s=a.class,u=a.staticClass,l=a.style,f=a.staticStyle,d=a.attrs,p=void 0===d?{}:d,v=o(a,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[s,u],style:[l,f],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"},p)},v),c.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("99af"),r("cca6");var n=r("ded3"),o=r("4082");t.exports={functional:!0,render:function(t,e){var r=e._c,a=(e._v,e.data),i=e.children,c=void 0===i?[]:i,s=a.class,u=a.staticClass,l=a.style,f=a.staticStyle,d=a.attrs,p=void 0===d?{}:d,v=o(a,["class","staticClass","style","staticStyle","attrs"]);return r("svg",n({class:[s,u],style:[l,f],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"},p)},v),c.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),c=i.f,s=a.f,u=0;u<r.length;u++){var l=r[u];n(t,l)||c(t,l,s(e,l))}}},e8b5:function(t,e,r){var n=r("c6b6");t.exports=Array.isArray||function(t){return"Array"==n(t)}},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))}},f8ba:function(t,e,r){"use strict";var n=r("7c6a"),o=r.n(n);o.a},fb15:function(t,e,r){"use strict";if(r.r(e),"undefined"!==typeof window){var n=window.document.currentScript,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=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)},c=[],s=(r("99af"),r("4160"),r("fb6a"),r("159b"),r("a9c4")),u=r.n(s),l=r("e702"),f=r.n(l),d=r("e39a"),p=r.n(d),v=r("c1e3"),h=r.n(v),y=r("db39"),g=r.n(y),b=r("ce32"),w=r.n(b),m=r("9a65"),x=r.n(m),S=r("3a0a"),O=r.n(S),k={name:"vue-player",components:{PlayIcon:u.a,PauseIcon:f.a,ReplayIcon:p.a,FullscreenIcon:h.a,MaximizeIcon:g.a,MinimizeIcon:w.a,BackwardsIcon:x.a,ForwardsIcon:O.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:function(){return window}}},data:function(){return{status:"loading",currentTime:0,duration:0,buffered:0,progress:0,fullscreenActive:!1}},computed:{fullscreenOption:function(){var t=navigator.userAgent,e=/Android|webOS|iPhone|iPad|iPod/i.test(t);return e?"native":this.fullscreen},overlayVisible:function(){return!("fullscreen"!==this.theater||!this.fullscreenActive)||!(!0!==this.theater||"playing"!==status&&!this.fullscreenActive)}},methods:{progressListener:function(t){var e=t.target,r=e.duration;if(r>0)for(var 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:function(t){var 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:function(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:function(t){var e=t.target;this.currentTime=parseInt(e.currentTime),this.progress=this.currentTime/this.duration*100,e.playing&&(this.status="playing")},play:function(){this.$refs.player.play()},pause:function(){this.$refs.player.pause()},playPause:function(t){if("pause"===t.type)this.status="paused";else if("play"===t.type){if(this.exclusive){var e=document.getElementsByClassName("player status-playing");e.forEach((function(t){return t.getElementsByClassName("media")[0].pause()}))}this.status="playing"}this.autoFullscreen&&("native"===this.fullscreenOption?this.requestFullscreen():this.toggleFullscreen())},replay:function(){this.$refs.player.pause(),this.$refs.player.currentTime=0,this.$refs.player.play()},seek:function(t){var 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:function(){var t=this.$refs.player;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},toggleFullscreen:function(){var t=this.$refs.wrapper,e=this.$refs.player;if(this.fullscreenActive)t.style.transform="";else{var r,n=this.viewport.call();r=n instanceof Window?{width:window.innerWidth,height:window.innerHeight}:n.getBoundingClientRect();var o=e.getBoundingClientRect(),a=.85*Math.min(r.width/e.offsetWidth,r.height/e.offsetHeight),i=r.width/2-o.width*a/2-o.left,c=r.height/2-o.height*a/2-o.top;n instanceof HTMLElement&&(i+=r.left,c+=r.top),t.style.transform="translate(".concat(i,"px, ").concat(c,"px) scale(").concat(a,")")}this.fullscreenActive=!this.fullscreenActive},backwards:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.$refs.player.currentTime-=e},forwards:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.$refs.player.currentTime+=e}},filters:{time:function(t){if(!t)return"0:00";var e=new Date(1e3*t),r=e.toISOString().substring(11,19);return 0==e.getUTCHours()&&(r=r.slice(3),e.getUTCMinutes()<10&&(r=r.slice(1))),r}}},C=k;r("f8ba");function j(t,e,r,n,o,a,i,c){var s,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),i?(s=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)},u._ssrRegister=s):o&&(s=c?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(u.functional){u._injectStyles=s;var l=u.render;u.render=function(t,e){return s.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:u}}var _=j(C,i,c,!1,null,null,null),M=_.exports;e["default"]=M},fb6a:function(t,e,r){"use strict";var n=r("23e7"),o=r("861d"),a=r("e8b5"),i=r("23cb"),c=r("50c4"),s=r("fc6a"),u=r("8418"),l=r("b622"),f=r("1dde"),d=r("ae40"),p=f("slice"),v=d("slice",{ACCESSORS:!0,0:0,1:2}),h=l("species"),y=[].slice,g=Math.max;n({target:"Array",proto:!0,forced:!p||!v},{slice:function(t,e){var r,n,l,f=s(this),d=c(f.length),p=i(t,d),v=i(void 0===e?d:e,d);if(a(f)&&(r=f.constructor,"function"!=typeof r||r!==Array&&!a(r.prototype)?o(r)&&(r=r[h],null===r&&(r=void 0)):r=void 0,r===Array||void 0===r))return y.call(f,p,v);for(n=new(void 0===r?Array:r)(g(v-p,0)),l=0;p<v;p++,l++)p in f&&u(n,l,f[p]);return n.length=l,n}})},fc6a:function(t,e,r){var n=r("44ad"),o=r("1d80");t.exports=function(t){return n(o(t))}},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,r){var n=r("4930");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}));
//# sourceMappingURL=vue-player.umd.min.js.map