UNPKG

ken-burns-slideshow

Version:
1 lines 23.6 kB
!function t(r,e,n){function i(s,a){if(!e[s]){if(!r[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var h=new Error("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h}var f=e[s]={exports:{}};r[s][0].call(f.exports,function(t){var e=r[s][1][t];return i(e?e:t)},f,f.exports,t,r,e,n)}return e[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,r,e){function n(t){return this instanceof n?(this.length=0,this.parent=void 0,"number"==typeof t?i(this,t):"string"==typeof t?o(this,t,arguments.length>1?arguments[1]:"utf8"):s(this,t)):arguments.length>1?new n(t,arguments[1]):new n(t)}function i(t,r){if(t=c(t,0>r?0:0|p(r)),!n.TYPED_ARRAY_SUPPORT)for(var e=0;r>e;e++)t[e]=0;return t}function o(t,r,e){("string"!=typeof e||""===e)&&(e="utf8");var n=0|d(r,e);return t=c(t,n),t.write(r,e),t}function s(t,r){if(n.isBuffer(r))return a(t,r);if(W(r))return u(t,r);if(null==r)throw new TypeError("must start with number, buffer, array or string");return"undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer?h(t,r):r.length?f(t,r):l(t,r)}function a(t,r){var e=0|p(r.length);return t=c(t,e),r.copy(t,0,0,e),t}function u(t,r){var e=0|p(r.length);t=c(t,e);for(var n=0;e>n;n+=1)t[n]=255&r[n];return t}function h(t,r){var e=0|p(r.length);t=c(t,e);for(var n=0;e>n;n+=1)t[n]=255&r[n];return t}function f(t,r){var e=0|p(r.length);t=c(t,e);for(var n=0;e>n;n+=1)t[n]=255&r[n];return t}function l(t,r){var e,n=0;"Buffer"===r.type&&W(r.data)&&(e=r.data,n=0|p(e.length)),t=c(t,n);for(var i=0;n>i;i+=1)t[i]=255&e[i];return t}function c(t,r){n.TYPED_ARRAY_SUPPORT?t=n._augment(new Uint8Array(r)):(t.length=r,t._isBuffer=!0);var e=0!==r&&r<=n.poolSize>>>1;return e&&(t.parent=V),t}function p(t){if(t>=k)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+k.toString(16)+" bytes");return 0|t}function g(t,r){if(!(this instanceof g))return new g(t,r);var e=new n(t,r);return delete e.parent,e}function d(t,r){if("string"!=typeof t&&(t=String(t)),0===t.length)return 0;switch(r||"utf8"){case"ascii":case"binary":case"raw":return t.length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t.length;case"hex":return t.length>>>1;case"utf8":case"utf-8":return N(t).length;case"base64":return J(t).length;default:return t.length}}function w(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;if(o%2!==0)throw new Error("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;n>s;s++){var a=parseInt(r.substr(2*s,2),16);if(isNaN(a))throw new Error("Invalid hex string");t[e+s]=a}return s}function y(t,r,e,n){return G(N(r,t.length-e),t,e,n)}function E(t,r,e,n){return G(Z(r),t,e,n)}function I(t,r,e,n){return E(t,r,e,n)}function v(t,r,e,n){return G(J(r),t,e,n)}function A(t,r,e,n){return G(F(r,t.length-e),t,e,n)}function b(t,r,e){return K.fromByteArray(0===r&&e===t.length?t:t.slice(r,e))}function B(t,r,e){var n="",i="";e=Math.min(t.length,e);for(var o=r;e>o;o++)t[o]<=127?(n+=H(i)+String.fromCharCode(t[o]),i=""):i+="%"+t[o].toString(16);return n+H(i)}function m(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;e>i;i++)n+=String.fromCharCode(127&t[i]);return n}function R(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;e>i;i++)n+=String.fromCharCode(t[i]);return n}function U(t,r,e){var n=t.length;(!r||0>r)&&(r=0),(!e||0>e||e>n)&&(e=n);for(var i="",o=r;e>o;o++)i+=O(t[o]);return i}function L(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function T(t,r,e){if(t%1!==0||0>t)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function C(t,r,e,i,o,s){if(!n.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(r>o||s>r)throw new RangeError("value is out of bounds");if(e+i>t.length)throw new RangeError("index out of range")}function S(t,r,e,n){0>r&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);o>i;i++)t[e+i]=(r&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function P(t,r,e,n){0>r&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);o>i;i++)t[e+i]=r>>>8*(n?i:3-i)&255}function _(t,r,e,n,i,o){if(r>i||o>r)throw new RangeError("value is out of bounds");if(e+n>t.length)throw new RangeError("index out of range");if(0>e)throw new RangeError("index out of range")}function x(t,r,e,n,i){return i||_(t,r,e,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(t,r,e,n,23,4),e+4}function D(t,r,e,n,i){return i||_(t,r,e,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(t,r,e,n,52,8),e+8}function Y(t){if(t=M(t).replace(q,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function M(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function O(t){return 16>t?"0"+t.toString(16):t.toString(16)}function N(t,r){r=r||1/0;for(var e,n=t.length,i=null,o=[],s=0;n>s;s++){if(e=t.charCodeAt(s),e>55295&&57344>e){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(56320>e){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=i-55296<<10|e-56320|65536,i=null}else i&&((r-=3)>-1&&o.push(239,191,189),i=null);if(128>e){if((r-=1)<0)break;o.push(e)}else if(2048>e){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(65536>e){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(2097152>e))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function Z(t){for(var r=[],e=0;e<t.length;e++)r.push(255&t.charCodeAt(e));return r}function F(t,r){for(var e,n,i,o=[],s=0;s<t.length&&!((r-=2)<0);s++)e=t.charCodeAt(s),n=e>>8,i=e%256,o.push(i),o.push(n);return o}function J(t){return K.toByteArray(Y(t))}function G(t,r,e,n){for(var i=0;n>i&&!(i+e>=r.length||i>=t.length);i++)r[i+e]=t[i];return i}function H(t){try{return decodeURIComponent(t)}catch(r){return String.fromCharCode(65533)}}var K=t("base64-js"),X=t("ieee754"),W=t("is-array");e.Buffer=n,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,n.poolSize=8192;var k=1073741823,V={};n.TYPED_ARRAY_SUPPORT=function(){try{var t=new ArrayBuffer(0),r=new Uint8Array(t);return r.foo=function(){return 42},42===r.foo()&&"function"==typeof r.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(e){return!1}}(),n.isBuffer=function(t){return!(null==t||!t._isBuffer)},n.compare=function(t,r){if(!n.isBuffer(t)||!n.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,i=r.length,o=0,s=Math.min(e,i);s>o&&t[o]===r[o];)++o;return o!==s&&(e=t[o],i=r[o]),i>e?-1:e>i?1:0},n.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(t,r){if(!W(t))throw new TypeError("list argument must be an Array of Buffers.");if(0===t.length)return new n(0);if(1===t.length)return t[0];var e;if(void 0===r)for(r=0,e=0;e<t.length;e++)r+=t[e].length;var i=new n(r),o=0;for(e=0;e<t.length;e++){var s=t[e];s.copy(i,o),o+=s.length}return i},n.byteLength=d,n.prototype.length=void 0,n.prototype.parent=void 0,n.prototype.toString=function(t,r,e){var n=!1;if(r=0|r,e=void 0===e||e===1/0?this.length:0|e,t||(t="utf8"),0>r&&(r=0),e>this.length&&(e=this.length),r>=e)return"";for(;;)switch(t){case"hex":return U(this,r,e);case"utf8":case"utf-8":return B(this,r,e);case"ascii":return m(this,r,e);case"binary":return R(this,r,e);case"base64":return b(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}},n.prototype.equals=function(t){if(!n.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:0===n.compare(this,t)},n.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},n.prototype.compare=function(t){if(!n.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?0:n.compare(this,t)},n.prototype.indexOf=function(t,r){function e(t,r,e){for(var n=-1,i=0;e+i<t.length;i++)if(t[e+i]===r[-1===n?0:i-n]){if(-1===n&&(n=i),i-n+1===r.length)return e+n}else n=-1;return-1}if(r>2147483647?r=2147483647:-2147483648>r&&(r=-2147483648),r>>=0,0===this.length)return-1;if(r>=this.length)return-1;if(0>r&&(r=Math.max(this.length+r,0)),"string"==typeof t)return 0===t.length?-1:String.prototype.indexOf.call(this,t,r);if(n.isBuffer(t))return e(this,t,r);if("number"==typeof t)return n.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,t,r):e(this,[t],r);throw new TypeError("val must be string, number or Buffer")},n.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},n.prototype.set=function(t,r){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,r)},n.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else if(isFinite(r))r=0|r,isFinite(e)?(e=0|e,void 0===n&&(n="utf8")):(n=e,e=void 0);else{var i=n;n=r,r=0|e,e=i}var o=this.length-r;if((void 0===e||e>o)&&(e=o),t.length>0&&(0>e||0>r)||r>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return w(this,t,r,e);case"utf8":case"utf-8":return y(this,t,r,e);case"ascii":return E(this,t,r,e);case"binary":return I(this,t,r,e);case"base64":return v(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,r,e);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},n.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,0>t?(t+=e,0>t&&(t=0)):t>e&&(t=e),0>r?(r+=e,0>r&&(r=0)):r>e&&(r=e),t>r&&(r=t);var i;if(n.TYPED_ARRAY_SUPPORT)i=n._augment(this.subarray(t,r));else{var o=r-t;i=new n(o,void 0);for(var s=0;o>s;s++)i[s]=this[s+t]}return i.length&&(i.parent=this.parent||this),i},n.prototype.readUIntLE=function(t,r,e){t=0|t,r=0|r,e||T(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n},n.prototype.readUIntBE=function(t,r,e){t=0|t,r=0|r,e||T(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},n.prototype.readUInt8=function(t,r){return r||T(t,1,this.length),this[t]},n.prototype.readUInt16LE=function(t,r){return r||T(t,2,this.length),this[t]|this[t+1]<<8},n.prototype.readUInt16BE=function(t,r){return r||T(t,2,this.length),this[t]<<8|this[t+1]},n.prototype.readUInt32LE=function(t,r){return r||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},n.prototype.readUInt32BE=function(t,r){return r||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},n.prototype.readIntLE=function(t,r,e){t=0|t,r=0|r,e||T(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*r)),n},n.prototype.readIntBE=function(t,r,e){t=0|t,r=0|r,e||T(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o},n.prototype.readInt8=function(t,r){return r||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},n.prototype.readInt16LE=function(t,r){r||T(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},n.prototype.readInt16BE=function(t,r){r||T(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},n.prototype.readInt32LE=function(t,r){return r||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},n.prototype.readInt32BE=function(t,r){return r||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},n.prototype.readFloatLE=function(t,r){return r||T(t,4,this.length),X.read(this,t,!0,23,4)},n.prototype.readFloatBE=function(t,r){return r||T(t,4,this.length),X.read(this,t,!1,23,4)},n.prototype.readDoubleLE=function(t,r){return r||T(t,8,this.length),X.read(this,t,!0,52,8)},n.prototype.readDoubleBE=function(t,r){return r||T(t,8,this.length),X.read(this,t,!1,52,8)},n.prototype.writeUIntLE=function(t,r,e,n){t=+t,r=0|r,e=0|e,n||C(this,t,r,e,Math.pow(2,8*e),0);var i=1,o=0;for(this[r]=255&t;++o<e&&(i*=256);)this[r+o]=t/i&255;return r+e},n.prototype.writeUIntBE=function(t,r,e,n){t=+t,r=0|r,e=0|e,n||C(this,t,r,e,Math.pow(2,8*e),0);var i=e-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+e},n.prototype.writeUInt8=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,1,255,0),n.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t,r+1},n.prototype.writeUInt16LE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[r]=t,this[r+1]=t>>>8):S(this,t,r,!0),r+2},n.prototype.writeUInt16BE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t):S(this,t,r,!1),r+2},n.prototype.writeUInt32LE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t):P(this,t,r,!0),r+4},n.prototype.writeUInt32BE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t):P(this,t,r,!1),r+4},n.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r=0|r,!n){var i=Math.pow(2,8*e-1);C(this,t,r,e,i-1,-i)}var o=0,s=1,a=0>t?1:0;for(this[r]=255&t;++o<e&&(s*=256);)this[r+o]=(t/s>>0)-a&255;return r+e},n.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r=0|r,!n){var i=Math.pow(2,8*e-1);C(this,t,r,e,i-1,-i)}var o=e-1,s=1,a=0>t?1:0;for(this[r+o]=255&t;--o>=0&&(s*=256);)this[r+o]=(t/s>>0)-a&255;return r+e},n.prototype.writeInt8=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,1,127,-128),n.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),0>t&&(t=255+t+1),this[r]=t,r+1},n.prototype.writeInt16LE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[r]=t,this[r+1]=t>>>8):S(this,t,r,!0),r+2},n.prototype.writeInt16BE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t):S(this,t,r,!1),r+2},n.prototype.writeInt32LE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,4,2147483647,-2147483648),n.TYPED_ARRAY_SUPPORT?(this[r]=t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):P(this,t,r,!0),r+4},n.prototype.writeInt32BE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,4,2147483647,-2147483648),0>t&&(t=4294967295+t+1),n.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t):P(this,t,r,!1),r+4},n.prototype.writeFloatLE=function(t,r,e){return x(this,t,r,!0,e)},n.prototype.writeFloatBE=function(t,r,e){return x(this,t,r,!1,e)},n.prototype.writeDoubleLE=function(t,r,e){return D(this,t,r,!0,e)},n.prototype.writeDoubleBE=function(t,r,e){return D(this,t,r,!1,e)},n.prototype.copy=function(t,r,e,i){if(e||(e=0),i||0===i||(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&e>i&&(i=e),i===e)return 0;if(0===t.length||0===this.length)return 0;if(0>r)throw new RangeError("targetStart out of bounds");if(0>e||e>=this.length)throw new RangeError("sourceStart out of bounds");if(0>i)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-e&&(i=t.length-r+e);var o=i-e;if(1e3>o||!n.TYPED_ARRAY_SUPPORT)for(var s=0;o>s;s++)t[s+r]=this[s+e];else t._set(this.subarray(e,e+o),r);return o},n.prototype.fill=function(t,r,e){if(t||(t=0),r||(r=0),e||(e=this.length),r>e)throw new RangeError("end < start");if(e!==r&&0!==this.length){if(0>r||r>=this.length)throw new RangeError("start out of bounds");if(0>e||e>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof t)for(n=r;e>n;n++)this[n]=t;else{var i=N(t.toString()),o=i.length;for(n=r;e>n;n++)this[n]=i[n%o]}return this}},n.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(n.TYPED_ARRAY_SUPPORT)return new n(this).buffer;for(var t=new Uint8Array(this.length),r=0,e=t.length;e>r;r+=1)t[r]=this[r];return t.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var z=n.prototype;n._augment=function(t){return t.constructor=n,t._isBuffer=!0,t._set=t.set,t.get=z.get,t.set=z.set,t.write=z.write,t.toString=z.toString,t.toLocaleString=z.toString,t.toJSON=z.toJSON,t.equals=z.equals,t.compare=z.compare,t.indexOf=z.indexOf,t.copy=z.copy,t.slice=z.slice,t.readUIntLE=z.readUIntLE,t.readUIntBE=z.readUIntBE,t.readUInt8=z.readUInt8,t.readUInt16LE=z.readUInt16LE,t.readUInt16BE=z.readUInt16BE,t.readUInt32LE=z.readUInt32LE,t.readUInt32BE=z.readUInt32BE,t.readIntLE=z.readIntLE,t.readIntBE=z.readIntBE,t.readInt8=z.readInt8,t.readInt16LE=z.readInt16LE,t.readInt16BE=z.readInt16BE,t.readInt32LE=z.readInt32LE,t.readInt32BE=z.readInt32BE,t.readFloatLE=z.readFloatLE,t.readFloatBE=z.readFloatBE,t.readDoubleLE=z.readDoubleLE,t.readDoubleBE=z.readDoubleBE,t.writeUInt8=z.writeUInt8,t.writeUIntLE=z.writeUIntLE,t.writeUIntBE=z.writeUIntBE,t.writeUInt16LE=z.writeUInt16LE,t.writeUInt16BE=z.writeUInt16BE,t.writeUInt32LE=z.writeUInt32LE,t.writeUInt32BE=z.writeUInt32BE,t.writeIntLE=z.writeIntLE,t.writeIntBE=z.writeIntBE,t.writeInt8=z.writeInt8,t.writeInt16LE=z.writeInt16LE,t.writeInt16BE=z.writeInt16BE,t.writeInt32LE=z.writeInt32LE,t.writeInt32BE=z.writeInt32BE,t.writeFloatLE=z.writeFloatLE,t.writeFloatBE=z.writeFloatBE,t.writeDoubleLE=z.writeDoubleLE,t.writeDoubleBE=z.writeDoubleBE,t.fill=z.fill,t.inspect=z.inspect,t.toArrayBuffer=z.toArrayBuffer,t};var q=/[^+\/0-9A-z\-]/g},{"base64-js":2,ieee754:3,"is-array":4}],2:[function(t,r,e){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function r(t){var r=t.charCodeAt(0);return r===s||r===l?62:r===a||r===c?63:u>r?-1:u+10>r?r-u+26+26:f+26>r?r-f:h+26>r?r-h+26:void 0}function e(t){function e(t){h[l++]=t}var n,i,s,a,u,h;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=t.length;u="="===t.charAt(f-2)?2:"="===t.charAt(f-1)?1:0,h=new o(3*t.length/4-u),s=u>0?t.length-4:t.length;var l=0;for(n=0,i=0;s>n;n+=4,i+=3)a=r(t.charAt(n))<<18|r(t.charAt(n+1))<<12|r(t.charAt(n+2))<<6|r(t.charAt(n+3)),e((16711680&a)>>16),e((65280&a)>>8),e(255&a);return 2===u?(a=r(t.charAt(n))<<2|r(t.charAt(n+1))>>4,e(255&a)):1===u&&(a=r(t.charAt(n))<<10|r(t.charAt(n+1))<<4|r(t.charAt(n+2))>>2,e(a>>8&255),e(255&a)),h}function i(t){function r(t){return n.charAt(t)}function e(t){return r(t>>18&63)+r(t>>12&63)+r(t>>6&63)+r(63&t)}var i,o,s,a=t.length%3,u="";for(i=0,s=t.length-a;s>i;i+=3)o=(t[i]<<16)+(t[i+1]<<8)+t[i+2],u+=e(o);switch(a){case 1:o=t[t.length-1],u+=r(o>>2),u+=r(o<<4&63),u+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],u+=r(o>>10),u+=r(o>>4&63),u+=r(o<<2&63),u+="="}return u}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="+".charCodeAt(0),a="/".charCodeAt(0),u="0".charCodeAt(0),h="a".charCodeAt(0),f="A".charCodeAt(0),l="-".charCodeAt(0),c="_".charCodeAt(0);t.toByteArray=e,t.fromByteArray=i}("undefined"==typeof e?this.base64js={}:e)},{}],3:[function(t,r,e){e.read=function(t,r,e,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,h=u>>1,f=-7,l=e?i-1:0,c=e?-1:1,p=t[r+l];for(l+=c,o=p&(1<<-f)-1,p>>=-f,f+=a;f>0;o=256*o+t[r+l],l+=c,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=n;f>0;s=256*s+t[r+l],l+=c,f-=8);if(0===o)o=1-h;else{if(o===u)return s?0/0:(p?-1:1)*(1/0);s+=Math.pow(2,n),o-=h}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,r,e,n,i,o){var s,a,u,h=8*o-i-1,f=(1<<h)-1,l=f>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,g=n?1:-1,d=0>r||0===r&&0>1/r?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(a=isNaN(r)?1:0,s=f):(s=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-s))<1&&(s--,u*=2),r+=s+l>=1?c/u:c*Math.pow(2,1-l),r*u>=2&&(s++,u/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(r*u-1)*Math.pow(2,i),s+=l):(a=r*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;t[e+p]=255&a,p+=g,a/=256,i-=8);for(s=s<<i|a,h+=i;h>0;t[e+p]=255&s,p+=g,s/=256,h-=8);t[e+p-g]|=128*d}},{}],4:[function(t,r,e){var n=Array.isArray,i=Object.prototype.toString;r.exports=n||function(t){return!!t&&"[object Array]"==i.call(t)}},{}],5:[function(t,r,e){var n={};r.exports=function(t,r){if(!n[t]){n[t]=!0;var e=document.createElement("style");e.setAttribute("type","text/css"),"textContent"in e?e.textContent=t:e.styleSheet.cssText=t;var i=document.getElementsByTagName("head")[0];r&&r.prepend?i.insertBefore(e,i.childNodes[0]):i.appendChild(e)}}},{}],6:[function(t,r,e){window.KenBurnsSlideshow=t("./index.js")},{"./index.js":7}],7:[function(t,r,e){(function(e){"use strict";function n(t){this.props=i(t),this.state={isRunning:!1,slideVisibleEl:null,slideVisibleNum:null,interval:null}}function i(t){var r={};if(!t.el)throw new Error("Property `el` must be declared");return r.el=t.el,r.cssPrefix=t.cssPrefix||"ken-burns-slideshow",r.transitionDelay=t.transitionDelay||5e3,r}function o(t,r){t.classList.add(r),[].forEach.call(t.querySelectorAll("li"),function(t){t.classList.add(r+"__slide")}),[].forEach.call(t.querySelectorAll("img"),function(t,e){0===e&&t.classList.add(r+"--has-kenBurnsFx"),t.classList.add(r+"__slide-img")})}function s(t,r){var n=e("aHRtbCB7CiAgcGFkZGluZzogMDsKICBoZWlnaHQ6IDEwMCU7Cn0KCmJvZHkgewogIHBhZGRpbmc6IDA7CiAgbWFyZ2luOiAwOwogIGhlaWdodDogMTAwJTsKfQoKLnt7cHJlZml4fX0gewogIHBhZGRpbmc6IDA7CiAgbWFyZ2luOiAwOwogIGhlaWdodDogMTAwJTsKICB3aWR0aDogMTAwJTsKICBvdmVyZmxvdzogaGlkZGVuOwogIHBvc2l0aW9uOiByZWxhdGl2ZTsKfQoKLnt7cHJlZml4fX1fX3NsaWRlIHsKICBoZWlnaHQ6IDEwMCU7CiAgcG9zaXRpb246IGFic29sdXRlOwogIGxlZnQ6IDUwJTsKICB0b3A6IDUwJTsKICAtd2Via2l0LXRyYW5zZm9ybTogdHJhbnNsYXRlKC01MCUsIC01MCUpOwogICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgLTUwJSk7CiAgb3ZlcmZsb3c6IGhpZGRlbjsKfQoKLnt7cHJlZml4fX1fX3NsaWRlLWltZyB7CiAgaGVpZ2h0OiAxMDAlOwogIG9wYWNpdHk6IDA7CiAgdHJhbnNpdGlvbi1wcm9wZXJ0eTogb3BhY2l0eSwgLXdlYmtpdC10cmFuc2Zvcm07CiAgdHJhbnNpdGlvbi1wcm9wZXJ0eTogb3BhY2l0eSwgdHJhbnNmb3JtOwogIHRyYW5zaXRpb24tZHVyYXRpb246IDNzLCB7e3RyYW5zaXRpb25EZWxheX19bXM7Cn0KCi57e3ByZWZpeH19LS1oYXMta2VuQnVybnNGeCB7CiAgb3BhY2l0eTogMTsKICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUoMS4xKTsKICAgICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMS4xKTsKfQo=","base64");n=n.toString().replace(/{{prefix}}/g,t).replace(/{{transitionDelay}}/g,r),l(n)}function a(t,r){var e=["bottom","center","top"],n=["left","center","right"],i=t.querySelectorAll("."+r+"__slide-img");[].forEach.call(i,function(t){var r=u(n),i=u(e);void 0!==t.style.webkitTransformOrigin?t.style.webkitTransformOrigin=""+r+" "+i:t.style.transformOrigin=""+r+" "+i})}function u(t){return t[Math.floor(Math.random()*t.length)]}function h(t,r){return setInterval(f.bind(null,t,r),t.transitionDelay)}function f(t,r){var e=t.el.querySelectorAll("."+t.cssPrefix+"__slide-img");r.slideVisibleNum+1===e.length?r.slideVisibleNum=0:r.slideVisibleNum+=1,r.slideVisibleEl.classList.remove(t.cssPrefix+"--has-kenBurnsFx"),r.slideVisibleEl=e[r.slideVisibleNum],r.slideVisibleEl.classList.add(t.cssPrefix+"--has-kenBurnsFx")}var l=t("insert-css");n.prototype.init=function(){s(this.props.cssPrefix,this.props.transitionDelay),o(this.props.el,this.props.cssPrefix),a(this.props.el,this.props.cssPrefix),this.state.interval=h(this.props,this.state),this.state.isRunning=!0,this.state.slideVisibleEl=this.props.el.querySelector("."+this.props.cssPrefix+"--has-kenBurnsFx"),this.state.slideVisibleNum=0},n.prototype.stop=function(){clearInterval(this.state.interval),this.state.isRunning=!1},r.exports=n}).call(this,t("buffer").Buffer)},{buffer:1,"insert-css":5}]},{},[6]);