8 lines
25 KiB
JavaScript
8 lines
25 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d364e3a0"],{"0262":function(t,r,e){"use strict";e.r(r);var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{staticClass:"content g2-content"},[e("div",{staticClass:"video-content"},[e("iframe",{attrs:{width:"100%",height:"100%",src:t.apiurl,frameborder:"0",border:"0",marginwidth:"0",marginheight:"0",scrolling:"no",allowtransparency:"true",allowfullscreen:"true"}})]),e("div",{staticClass:"card"},[e("header",{staticClass:"card-header"},[e("p",{staticClass:"card-header-title"},[t._m(0),t._v(" "+t._s(t.$t("page.video.play"))+" / "),t._m(1),t._v(" "+t._s(t.$t("page.video.download"))+" ")])]),e("div",{staticClass:"card-content"},[e("div",{staticClass:"content"},[e("div",{staticClass:"field"},[e("label",{staticClass:"label"},[t._v(t._s(t.$t("page.video.link")))]),e("div",{staticClass:"control"},[e("input",{staticClass:"input",attrs:{type:"text"},domProps:{value:t.videourl}})])]),e("div",{staticClass:"columns is-mobile is-multiline has-text-centered"},t._l(t.players,(function(r,n){return e("div",{key:n,staticClass:"column"},[e("p",{staticClass:"heading"},[e("a",{attrs:{href:r.scheme}},[e("figure",{staticClass:"image is-48x48",staticStyle:{margin:"0 auto"}},[e("img",{staticClass:"icon",attrs:{src:r.icon}})])])]),e("p",{},[t._v(t._s(r.name))])])})),0)])])])])},i=[function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("span",{staticClass:"icon"},[e("i",{staticClass:"fa fa-play-circle",attrs:{"aria-hidden":"true"}})])},function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("span",{staticClass:"icon"},[e("i",{staticClass:"fa fa-download",attrs:{"aria-hidden":"true"}})])}],o=e("6a54"),s=o["a"],a=e("2877"),u=Object(a["a"])(s,n,i,!1,null,null,null);r["default"]=u.exports},"1fb5":function(t,r,e){"use strict";r.byteLength=h,r.toByteArray=l,r.fromByteArray=d;for(var n=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function f(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");-1===e&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function h(t){var r=f(t),e=r[0],n=r[1];return 3*(e+n)/4-n}function c(t,r,e){return 3*(r+e)/4-e}function l(t){var r,e,n=f(t),s=n[0],a=n[1],u=new o(c(t,s,a)),h=0,l=a>0?s-4:s;for(e=0;e<l;e+=4)r=i[t.charCodeAt(e)]<<18|i[t.charCodeAt(e+1)]<<12|i[t.charCodeAt(e+2)]<<6|i[t.charCodeAt(e+3)],u[h++]=r>>16&255,u[h++]=r>>8&255,u[h++]=255&r;return 2===a&&(r=i[t.charCodeAt(e)]<<2|i[t.charCodeAt(e+1)]>>4,u[h++]=255&r),1===a&&(r=i[t.charCodeAt(e)]<<10|i[t.charCodeAt(e+1)]<<4|i[t.charCodeAt(e+2)]>>2,u[h++]=r>>8&255,u[h++]=255&r),u}function p(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function g(t,r,e){for(var n,i=[],o=r;o<e;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(p(n));return i.join("")}function d(t){for(var r,e=t.length,i=e%3,o=[],s=16383,a=0,u=e-i;a<u;a+=s)o.push(g(t,a,a+s>u?u:a+s));return 1===i?(r=t[e-1],o.push(n[r>>2]+n[r<<4&63]+"==")):2===i&&(r=(t[e-2]<<8)+t[e-1],o.push(n[r>>10]+n[r>>4&63]+n[r<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"6a54":function(t,r,e){"use strict";(function(t){e("d3b7"),e("25f0");var n=e("45d8");r["a"]={data:function(){return{apiurl:"",videourl:""}},methods:{render:function(){this.videourl=window.location.origin+encodeURI(this.url),this.apiurl="https://api.jsonpop.cn/demo/blplyaer/?url="+this.videourl}},activated:function(){this.render()},computed:{url:function(){return this.$route.params.path?Object(n["d"])(this.$route.params.path):""},players:function(){return[{name:"IINA",icon:"https://www.iina.io/images/iina-icon-60.png",scheme:"iina://weblink?url="+this.videourl},{name:"PotPlayer",icon:"https://cloud.jsonpop.cn/go2index/player/potplayer.png",scheme:"potplayer://"+this.videourl},{name:"VLC",icon:"https://cloud.jsonpop.cn/go2index/player/vlc.png",scheme:"vlc://"+this.videourl},{name:"Thunder",icon:"https://cloud.jsonpop.cn/go2index/player
|
||
|
/*!
|
||
|
* The buffer module from node.js, for the browser.
|
||
|
*
|
||
|
* @author Feross Aboukhadijeh <http://feross.org>
|
||
|
* @license MIT
|
||
|
*/
|
||
|
var n=e("1fb5"),i=e("9152"),o=e("e3db");function s(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(r){return!1}}function a(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,r){if(a()<r)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=f.prototype):(null===t&&(t=new f(r)),t.length=r),t}function f(t,r,e){if(!f.TYPED_ARRAY_SUPPORT&&!(this instanceof f))return new f(t,r,e);if("number"===typeof t){if("string"===typeof r)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}return h(this,t,r,e)}function h(t,r,e,n){if("number"===typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&r instanceof ArrayBuffer?y(t,r,e,n):"string"===typeof r?g(t,r,e):w(t,r)}function c(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,r,e,n){return c(r),r<=0?u(t,r):void 0!==e?"string"===typeof n?u(t,r).fill(e,n):u(t,r).fill(e):u(t,r)}function p(t,r){if(c(r),t=u(t,r<0?0:0|v(r)),!f.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function g(t,r,e){if("string"===typeof e&&""!==e||(e="utf8"),!f.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|b(r,e);t=u(t,n);var i=t.write(r,e);return i!==n&&(t=t.slice(0,i)),t}function d(t,r){var e=r.length<0?0:0|v(r.length);t=u(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function y(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n),f.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=f.prototype):t=d(t,r),t}function w(t,r){if(f.isBuffer(r)){var e=0|v(r.length);return t=u(t,e),0===t.length?t:(r.copy(t,0,0,e),t)}if(r){if("undefined"!==typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!==typeof r.length||rt(r.length)?u(t,0):d(t,r);if("Buffer"===r.type&&o(r.data))return d(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function m(t){return+t!=t&&(t=0),f.alloc(+t)}function b(t,r){if(f.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return W(t).length;default:if(n)return H(t).length;r=(""+r).toLowerCase(),n=!0}}function A(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if(e>>>=0,r>>>=0,e<=r)return"";t||(t="utf8");while(1)switch(t){case"hex":return D(this,r,e);case"utf8":case"utf-8":return Y(this,r,e);case"ascii":return M(this,r,e);case"latin1":case"binary":return L(this,r,e);case"base64":return I(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function E(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function _(t,r,e,n,i){if(0===t.length)return-1;if("string"===typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"===typeof r&&(r=f.from(r,n)),f.isBuffer(r))retu
|