goindex-theme-r/dist/js/chunk-d364e3a0.7582266a.js

8 lines
25 KiB
JavaScript
Raw Normal View History

2020-05-31 01:11:00 +08:00
(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"},[t.player&&t.player.api?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("video",{staticStyle:{width:"100%"},attrs:{preload:"",controls:""}},[e("source",{attrs:{src:t.videoUrl,type:"video/mp4"}})]),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"),a=o["a"],s=e("2877"),u=Object(s["a"])(a,n,i,!1,null,null,null);r["default"]=u.exports},"1fb5":function(t,r,e){"use strict";r.byteLength=f,r.toByteArray=l,r.fromByteArray=y;for(var n=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function h(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 f(t){var r=h(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=h(t),a=n[0],s=n[1],u=new o(c(t,a,s)),f=0,l=s>0?a-4:a;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[f++]=r>>16&255,u[f++]=r>>8&255,u[f++]=255&r;return 2===s&&(r=i[t.charCodeAt(e)]<<2|i[t.charCodeAt(e+1)]>>4,u[f++]=255&r),1===s&&(r=i[t.charCodeAt(e)]<<10|i[t.charCodeAt(e+1)]<<4|i[t.charCodeAt(e+2)]>>2,u[f++]=r>>8&255,u[f++]=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 y(t){for(var r,e=t.length,i=e%3,o=[],a=16383,s=0,u=e-i;s<u;s+=a)o.push(g(t,s,s+a>u?u:s+a));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:"",player:window.themeOptions.player,videoUrl:""}},methods:{render:function(){this.videoUrl=window.location.origin+encodeURI(this.url),this.apiUrl=this.player.api+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:this.$cdnpath("images/player/iina.png"),scheme:"iina://weblink?url="+this.videoUrl},{name:"PotPlayer",icon:this.$cdnpath("images/player/potplayer.png"),scheme:"potplayer://"+this.videoUrl},{name:"VLC",icon:this.$c
/*!
* 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 a(){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 s(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,r){if(s()<r)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=h.prototype):(null===t&&(t=new h(r)),t.length=r),t}function h(t,r,e){if(!h.TYPED_ARRAY_SUPPORT&&!(this instanceof h))return new h(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 f(this,t,r,e)}function f(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?d(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)),!h.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"),!h.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 y(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 d(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),h.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=h.prototype):t=y(t,r),t}function w(t,r){if(h.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):y(t,r);if("Buffer"===r.type&&o(r.data))return y(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function m(t){return+t!=t&&(t=0),h.alloc(+t)}function b(t,r){if(h.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 L(this,r,e);case"latin1":case"binary":return x(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=h.from(r,n)),h.isBuffer(r))retu