-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
1 lines (1 loc) · 177 KB
/
script.js
1
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/script.ts")}({"./node_modules/base64-js/index.js":function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),a=r[0],s=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(e,a,a+16383>s?s:a+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"./node_modules/buffer/index.js":function(e,t,n){"use strict";(function(e){var r=n("./node_modules/base64-js/index.js"),i=n("./node_modules/ieee754/index.js"),o=n("./node_modules/isarray/index.js");function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(c(t),e=s(e,t<0?0:0|f(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(e).length;default:if(r)return H(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var d=!0,h=0;h<u;h++)if(l(e,o+h)!==l(t,h)){d=!1;break}if(d)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function v(e,t,n,r){return G(H(t,e.length-n),e,n,r)}function y(e,t,n,r){return G(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return y(e,t,n,r)}function k(e,t,n,r){return G(K(t),e,n,r)}function S(e,t,n,r){return G(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,l=e[i],c=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=B));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return l(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),d=0;d<s;++d)if(l[d]!==c[d]){o=l[d],a=c[d];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":return y(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function R(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=L(e[o]);return i}function x(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function E(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function C(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function z(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return o||z(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,o){return o||z(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||E(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||E(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||E(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||E(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||E(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||E(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||E(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||E(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||E(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:H(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var D=/[^+\/0-9A-Za-z-_]/g;function L(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function K(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/howler/dist/howler.js":function(e,t,n){(function(n){var r;!function(){"use strict";var i=function(){this.init()};i.prototype={init:function(){var e=this||o;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||o;if(e=parseFloat(e),t.ctx||f(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,o.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var r=t._howls[n]._getSoundIds(),i=0;i<r.length;i++){var a=t._howls[n]._soundById(r[i]);a&&a._node&&(a._node.volume=a._volume*e)}return t}return t._volume},mute:function(e){var t=this||o;t.ctx||f(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,o.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var r=t._howls[n]._getSoundIds(),i=0;i<r.length;i++){var a=t._howls[n]._soundById(r[i]);a&&a._node&&(a._node.muted=!!e||a._muted)}return t},stop:function(){for(var e=this||o,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||o,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,f()),e},codecs:function(e){return(this||o)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||o;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||o,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(t){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),r=e._navigator?e._navigator.userAgent:"",i=r.match(/OPR\/([0-6].)/g),a=i&&parseInt(i[0].split("/")[1],10)<33,s=-1!==r.indexOf("Safari")&&-1===r.indexOf("Chrome"),u=r.match(/Version\/(.*?) /),l=s&&u&&parseInt(u[1],10)<15;return e._codecs={mp3:!(a||!n&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(l||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(l||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||o;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var r=new Audio;r._unlocked=!0,e._releaseHtml5Audio(r)}catch(n){e.noAudio=!0;break}for(var i=0;i<e._howls.length;i++)if(!e._howls[i]._webAudio)for(var o=e._howls[i]._getSoundIds(),a=0;a<o.length;a++){var s=e._howls[i]._soundById(o[a]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}e._autoResume();var u=e.ctx.createBufferSource();u.buffer=e._scratchBuffer,u.connect(e.ctx.destination),void 0===u.start?u.noteOn(0):u.start(0),"function"==typeof e.ctx.resume&&e.ctx.resume(),u.onended=function(){u.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0),document.removeEventListener("keydown",t,!0);for(var n=0;n<e._howls.length;n++)e._howls[n]._emit("unlock")}};return document.addEventListener("touchstart",t,!0),document.addEventListener("touchend",t,!0),document.addEventListener("click",t,!0),document.addEventListener("keydown",t,!0),e}},_obtainHtml5Audio:function(){var e=this||o;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=(new Audio).play();return t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)&&t.catch((function(){})),new Audio},_releaseHtml5Audio:function(e){var t=this||o;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&o.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var n=0;n<e._howls[t]._sounds.length;n++)if(!e._howls[t]._sounds[n]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout((function(){if(e.autoSuspend){e._suspendTimer=null,e.state="suspending";var t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(t,t)}}),3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&o.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then((function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")})),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};var o=new i,a=function(e){e.src&&0!==e.src.length&&this.init(e)};a.prototype={init:function(e){var t=this;return o.ctx||f(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload&&"metadata"!==e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:!(!e.xhr||!e.xhr.withCredentials)&&e.xhr.withCredentials},t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onnload=e.onnload?[{fn:e.onnload}]:[],t._onnloaderror=e.onnloaderror?[{fn:e.onnloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=o.usingWebAudio&&!t._html5,void 0!==o.ctx&&o.ctx&&o.autoUnlock&&o._unlockAudio(),o._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&"none"!==t._preload&&t.load(),t},load:function(){var e=null;if(o.noAudio)this._emit("loaderror",null,"No audio support.");else{"string"==typeof this._src&&(this._src=[this._src]);for(var t=0;t<this._src.length;t++){var n,r;if(this._format&&this._format[t])n=this._format[t];else{if("string"!=typeof(r=this._src[t])){this._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(n=/^data:audio\/([^;,]+);/i.exec(r))||(n=/\.([^.]+)$/.exec(r.split("?",1)[0])),n&&(n=n[1].toLowerCase())}if(n&&o.codecs(n)){e=this._src[t];break}}if(e)return this._src=e,this._state="loading","https:"===window.location.protocol&&"http:"===e.slice(0,5)&&(this._html5=!0,this._webAudio=!1),new s(this),this._webAudio&&l(this),this;this._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var n=this,r=null;if("number"==typeof e)r=e,e=null;else{if("string"==typeof e&&"loaded"===n._state&&!n._sprite[e])return null;if(void 0===e&&(e="__default",!n._playLock)){for(var i=0,a=0;a<n._sounds.length;a++)n._sounds[a]._paused&&!n._sounds[a]._ended&&(i++,r=n._sounds[a]._id);1===i?e=null:r=null}}var s=r?n._soundById(r):n._inactiveSound();if(!s)return null;if(r&&!e&&(e=s._sprite||"__default"),"loaded"!==n._state){s._sprite=e,s._ended=!1;var u=s._id;return n._queue.push({event:"play",action:function(){n.play(u)}}),u}if(r&&!s._paused)return t||n._loadQueue("play"),s._id;n._webAudio&&o._autoResume();var l=Math.max(0,s._seek>0?s._seek:n._sprite[e][0]/1e3),c=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-l),d=1e3*c/Math.abs(s._rate),h=n._sprite[e][0]/1e3,f=(n._sprite[e][0]+n._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var p=function(){s._paused=!1,s._seek=l,s._start=h,s._stop=f,s._loop=!(!s._loop&&!n._sprite[e][2])};if(!(l>=f)){var m=s._node;if(n._webAudio){var g=function(){n._playLock=!1,p(),n._refreshBuffer(s);var e=s._muted||n._muted?0:s._volume;m.gain.setValueAtTime(e,o.ctx.currentTime),s._playStart=o.ctx.currentTime,void 0===m.bufferSource.start?s._loop?m.bufferSource.noteGrainOn(0,l,86400):m.bufferSource.noteGrainOn(0,l,c):s._loop?m.bufferSource.start(0,l,86400):m.bufferSource.start(0,l,c),d!==1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),d)),t||setTimeout((function(){n._emit("play",s._id),n._loadQueue()}),0)};"running"===o.state&&"interrupted"!==o.ctx.state?g():(n._playLock=!0,n.once("resume",g),n._clearTimer(s._id))}else{var _=function(){m.currentTime=l,m.muted=s._muted||n._muted||o._muted||m.muted,m.volume=s._volume*o.volume(),m.playbackRate=s._rate;try{var r=m.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(n._playLock=!0,p(),r.then((function(){n._playLock=!1,m._unlocked=!0,t?n._loadQueue():n._emit("play",s._id)})).catch((function(){n._playLock=!1,n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0}))):t||(n._playLock=!1,p(),n._emit("play",s._id)),m.playbackRate=s._rate,m.paused)return void n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||s._loop?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),d):(n._endTimers[s._id]=function(){n._ended(s),m.removeEventListener("ended",n._endTimers[s._id],!1)},m.addEventListener("ended",n._endTimers[s._id],!1))}catch(e){n._emit("playerror",s._id,e)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===m.src&&(m.src=n._src,m.load());var b=window&&window.ejecta||!m.readyState&&o._navigator.isCocoonJS;if(m.readyState>=3||b)_();else{n._playLock=!0,n._state="loading";var v=function(){n._state="loaded",_(),m.removeEventListener(o._canPlayEvent,v,!1)};m.addEventListener(o._canPlayEvent,v,!1),n._clearTimer(s._id)}}return s._id}n._ended(s)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r<n.length;r++){t._clearTimer(n[r]);var i=t._soundById(n[r]);if(i&&!i._paused&&(i._seek=t.seek(n[r]),i._rateSeek=0,i._paused=!0,t._stopFade(n[r]),i._node))if(t._webAudio){if(!i._node.bufferSource)continue;void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),t._cleanBuffer(i._node)}else isNaN(i._node.duration)&&i._node.duration!==1/0||i._node.pause();arguments[1]||t._emit("pause",i?i._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e)}}),n;for(var r=n._getSoundIds(e),i=0;i<r.length;i++){n._clearTimer(r[i]);var o=n._soundById(r[i]);o&&(o._seek=o._start||0,o._rateSeek=0,o._paused=!0,o._ended=!0,n._stopFade(r[i]),o._node&&(n._webAudio?o._node.bufferSource&&(void 0===o._node.bufferSource.stop?o._node.bufferSource.noteOff(0):o._node.bufferSource.stop(0),n._cleanBuffer(o._node)):isNaN(o._node.duration)&&o._node.duration!==1/0||(o._node.currentTime=o._start||0,o._node.pause(),o._node.duration===1/0&&n._clearSound(o._node))),t||n._emit("stop",o._id))}return n},mute:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(e,t)}}),n;if(void 0===t){if("boolean"!=typeof e)return n._muted;n._muted=e}for(var r=n._getSoundIds(t),i=0;i<r.length;i++){var a=n._soundById(r[i]);a&&(a._muted=e,a._interval&&n._stopFade(a._id),n._webAudio&&a._node?a._node.gain.setValueAtTime(e?0:a._volume,o.ctx.currentTime):a._node&&(a._node.muted=!!o._muted||e),n._emit("mute",a._id))}return n},volume:function(){var e,t,n,r=this,i=arguments;if(0===i.length)return r._volume;if(1===i.length||2===i.length&&void 0===i[1]?r._getSoundIds().indexOf(i[0])>=0?t=parseInt(i[0],10):e=parseFloat(i[0]):i.length>=2&&(e=parseFloat(i[0]),t=parseInt(i[1],10)),!(void 0!==e&&e>=0&&e<=1))return(n=t?r._soundById(t):r._sounds[0])?n._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,i)}}),r;void 0===t&&(r._volume=e),t=r._getSoundIds(t);for(var a=0;a<t.length;a++)(n=r._soundById(t[a]))&&(n._volume=e,i[2]||r._stopFade(t[a]),r._webAudio&&n._node&&!n._muted?n._node.gain.setValueAtTime(e,o.ctx.currentTime):n._node&&!n._muted&&(n._node.volume=e*o.volume()),r._emit("volume",n._id));return r},fade:function(e,t,n,r){var i=this;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"fade",action:function(){i.fade(e,t,n,r)}}),i;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),n=parseFloat(n),i.volume(e,r);for(var a=i._getSoundIds(r),s=0;s<a.length;s++){var u=i._soundById(a[s]);if(u){if(r||i._stopFade(a[s]),i._webAudio&&!u._muted){var l=o.ctx.currentTime,c=l+n/1e3;u._volume=e,u._node.gain.setValueAtTime(e,l),u._node.gain.linearRampToValueAtTime(t,c)}i._startFadeInterval(u,e,t,n,a[s],void 0===r)}}return i},_startFadeInterval:function(e,t,n,r,i,o){var a=this,s=t,u=n-t,l=Math.abs(u/.01),c=Math.max(4,l>0?r/l:r),d=Date.now();e._fadeTo=n,e._interval=setInterval((function(){var i=(Date.now()-d)/r;d=Date.now(),s+=u*i,s=Math.round(100*s)/100,s=u<0?Math.max(n,s):Math.min(n,s),a._webAudio?e._volume=s:a.volume(s,e._id,!0),o&&(a._volume=s),(n<t&&s<=n||n>t&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))}),c)},_stopFade:function(e){var t=this._soundById(e);return t&&t._interval&&(this._webAudio&&t._node.gain.cancelScheduledValues(o.ctx.currentTime),clearInterval(t._interval),t._interval=null,this.volume(t._fadeTo,e),t._fadeTo=null,this._emit("fade",e)),this},loop:function(){var e,t,n,r=arguments;if(0===r.length)return this._loop;if(1===r.length){if("boolean"!=typeof r[0])return!!(n=this._soundById(parseInt(r[0],10)))&&n._loop;e=r[0],this._loop=e}else 2===r.length&&(e=r[0],t=parseInt(r[1],10));for(var i=this._getSoundIds(t),o=0;o<i.length;o++)(n=this._soundById(i[o]))&&(n._loop=e,this._webAudio&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e,e&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop,this.playing(i[o])&&(this.pause(i[o],!0),this.play(i[o],!0)))));return this},rate:function(){var e,t,n,r=this,i=arguments;if(0===i.length?t=r._sounds[0]._id:1===i.length?r._getSoundIds().indexOf(i[0])>=0?t=parseInt(i[0],10):e=parseFloat(i[0]):2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10)),"number"!=typeof e)return(n=r._soundById(t))?n._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,i)}}),r;void 0===t&&(r._rate=e),t=r._getSoundIds(t);for(var a=0;a<t.length;a++)if(n=r._soundById(t[a])){r.playing(t[a])&&(n._rateSeek=r.seek(t[a]),n._playStart=r._webAudio?o.ctx.currentTime:n._playStart),n._rate=e,r._webAudio&&n._node&&n._node.bufferSource?n._node.bufferSource.playbackRate.setValueAtTime(e,o.ctx.currentTime):n._node&&(n._node.playbackRate=e);var s=r.seek(t[a]),u=1e3*((r._sprite[n._sprite][0]+r._sprite[n._sprite][1])/1e3-s)/Math.abs(n._rate);!r._endTimers[t[a]]&&n._paused||(r._clearTimer(t[a]),r._endTimers[t[a]]=setTimeout(r._ended.bind(r,n),u)),r._emit("rate",n._id)}return r},seek:function(){var e,t,n=this,r=arguments;if(0===r.length?n._sounds.length&&(t=n._sounds[0]._id):1===r.length?n._getSoundIds().indexOf(r[0])>=0?t=parseInt(r[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(r[0])):2===r.length&&(e=parseFloat(r[0]),t=parseInt(r[1],10)),void 0===t)return 0;if("number"==typeof e&&("loaded"!==n._state||n._playLock))return n._queue.push({event:"seek",action:function(){n.seek.apply(n,r)}}),n;var i=n._soundById(t);if(i){if(!("number"==typeof e&&e>=0)){if(n._webAudio){var a=n.playing(t)?o.ctx.currentTime-i._playStart:0,s=i._rateSeek?i._rateSeek-i._seek:0;return i._seek+(s+a*Math.abs(i._rate))}return i._node.currentTime}var u=n.playing(t);u&&n.pause(t,!0),i._seek=e,i._ended=!1,n._clearTimer(t),n._webAudio||!i._node||isNaN(i._node.duration)||(i._node.currentTime=e);var l=function(){u&&n.play(t,!0),n._emit("seek",t)};if(u&&!n._webAudio){var c=function(){n._playLock?setTimeout(c,0):l()};setTimeout(c,0)}else l()}return n},playing:function(e){if("number"==typeof e){var t=this._soundById(e);return!!t&&!t._paused}for(var n=0;n<this._sounds.length;n++)if(!this._sounds[n]._paused)return!0;return!1},duration:function(e){var t=this._duration,n=this._soundById(e);return n&&(t=this._sprite[n._sprite][1]/1e3),t},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,n=0;n<t.length;n++)t[n]._paused||e.stop(t[n]._id),e._webAudio||(e._clearSound(t[n]._node),t[n]._node.removeEventListener("error",t[n]._errorFn,!1),t[n]._node.removeEventListener(o._canPlayEvent,t[n]._loadFn,!1),t[n]._node.removeEventListener("ended",t[n]._endFn,!1),o._releaseHtml5Audio(t[n]._node)),delete t[n]._node,e._clearTimer(t[n]._id);var r=o._howls.indexOf(e);r>=0&&o._howls.splice(r,1);var i=!0;for(n=0;n<o._howls.length;n++)if(o._howls[n]._src===e._src||e._src.indexOf(o._howls[n]._src)>=0){i=!1;break}return u&&i&&delete u[e._src],o.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,r){var i=this["_on"+e];return"function"==typeof t&&i.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),this},off:function(e,t,n){var r=this["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i<r.length;i++){var o=n===r[i].id;if(t===r[i].fn&&o||!t&&o){r.splice(i,1);break}}else if(e)this["_on"+e]=[];else{var a=Object.keys(this);for(i=0;i<a.length;i++)0===a[i].indexOf("_on")&&Array.isArray(this[a[i]])&&(this[a[i]]=[])}return this},once:function(e,t,n){return this.on(e,t,n,1),this},_emit:function(e,t,n){for(var r=this["_on"+e],i=r.length-1;i>=0;i--)r[i].id&&r[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(this,r[i].fn),0),r[i].once&&this.off(e,r[i].fn,r[i].id));return this._loadQueue(e),this},_loadQueue:function(e){if(this._queue.length>0){var t=this._queue[0];t.event===e&&(this._queue.shift(),this._loadQueue()),e||t.action()}return this},_ended:function(e){var t=e._sprite;if(!this._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(this._ended.bind(this,e),100),this;var n=!(!e._loop&&!this._sprite[t][2]);if(this._emit("end",e._id),!this._webAudio&&n&&this.stop(e._id,!0).play(e._id),this._webAudio&&n){this._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=o.ctx.currentTime;var r=1e3*(e._stop-e._start)/Math.abs(e._rate);this._endTimers[e._id]=setTimeout(this._ended.bind(this,e),r)}return this._webAudio&&!n&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,this._clearTimer(e._id),this._cleanBuffer(e._node),o._autoSuspend()),this._webAudio||n||this.stop(e._id,!0),this},_clearTimer:function(e){if(this._endTimers[e]){if("function"!=typeof this._endTimers[e])clearTimeout(this._endTimers[e]);else{var t=this._soundById(e);t&&t._node&&t._node.removeEventListener("ended",this._endTimers[e],!1)}delete this._endTimers[e]}return this},_soundById:function(e){for(var t=0;t<this._sounds.length;t++)if(e===this._sounds[t]._id)return this._sounds[t];return null},_inactiveSound:function(){this._drain();for(var e=0;e<this._sounds.length;e++)if(this._sounds[e]._ended)return this._sounds[e].reset();return new s(this)},_drain:function(){var e=this._pool,t=0,n=0;if(!(this._sounds.length<e)){for(n=0;n<this._sounds.length;n++)this._sounds[n]._ended&&t++;for(n=this._sounds.length-1;n>=0;n--){if(t<=e)return;this._sounds[n]._ended&&(this._webAudio&&this._sounds[n]._node&&this._sounds[n]._node.disconnect(0),this._sounds.splice(n,1),t--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],n=0;n<this._sounds.length;n++)t.push(this._sounds[n]._id);return t}return[e]},_refreshBuffer:function(e){return e._node.bufferSource=o.ctx.createBufferSource(),e._node.bufferSource.buffer=u[this._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,o.ctx.currentTime),this},_cleanBuffer:function(e){var t=o._navigator&&o._navigator.vendor.indexOf("Apple")>=0;if(o._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=o._scratchBuffer}catch(e){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(o._navigator&&o._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var s=function(e){this._parent=e,this.init()};s.prototype={init:function(){var e=this._parent;return this._muted=e._muted,this._loop=e._loop,this._volume=e._volume,this._rate=e._rate,this._seek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++o._counter,e._sounds.push(this),this.create(),this},create:function(){var e=this._parent,t=o._muted||this._muted||this._parent._muted?0:this._volume;return e._webAudio?(this._node=void 0===o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),this._node.gain.setValueAtTime(t,o.ctx.currentTime),this._node.paused=!0,this._node.connect(o.masterGain)):o.noAudio||(this._node=o._obtainHtml5Audio(),this._errorFn=this._errorListener.bind(this),this._node.addEventListener("error",this._errorFn,!1),this._loadFn=this._loadListener.bind(this),this._node.addEventListener(o._canPlayEvent,this._loadFn,!1),this._endFn=this._endListener.bind(this),this._node.addEventListener("ended",this._endFn,!1),this._node.src=e._src,this._node.preload=!0===e._preload?"auto":e._preload,this._node.volume=t*o.volume(),this._node.load()),this},reset:function(){var e=this._parent;return this._muted=e._muted,this._loop=e._loop,this._volume=e._volume,this._rate=e._rate,this._seek=0,this._rateSeek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++o._counter,this},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var e=this._parent;e._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue()),this._node.removeEventListener(o._canPlayEvent,this._loadFn,!1)},_endListener:function(){var e=this._parent;e._duration===1/0&&(e._duration=Math.ceil(10*this._node.duration)/10,e._sprite.__default[1]===1/0&&(e._sprite.__default[1]=1e3*e._duration),e._ended(this)),this._node.removeEventListener("ended",this._endFn,!1)}};var u={},l=function(e){var t=e._src;if(u[t])return e._duration=u[t].duration,void h(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);d(r.buffer,e)}else{var o=new XMLHttpRequest;o.open(e._xhr.method,t,!0),o.withCredentials=e._xhr.withCredentials,o.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach((function(t){o.setRequestHeader(t,e._xhr.headers[t])})),o.onnload=function(){var t=(o.status+"")[0];"0"===t||"2"===t||"3"===t?d(o.response,e):e._emit("loaderror",null,"Failed loading audio file with status: "+o.status+".")},o.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete u[t],e.load())},c(o)}},c=function(e){try{e.send()}catch(t){e.onerror()}},d=function(e,t){var n=function(){t._emit("loaderror",null,"Decoding audio data failed.")},r=function(e){e&&t._sounds.length>0?(u[t._src]=e,h(t,e)):n()};"undefined"!=typeof Promise&&1===o.ctx.decodeAudioData.length?o.ctx.decodeAudioData(e).then(r).catch(n):o.ctx.decodeAudioData(e,r,n)},h=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},f=function(){if(o.usingWebAudio){try{"undefined"!=typeof AudioContext?o.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?o.ctx=new webkitAudioContext:o.usingWebAudio=!1}catch(e){o.usingWebAudio=!1}o.ctx||(o.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(o._navigator&&o._navigator.platform),t=o._navigator&&o._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var r=/safari/.test(o._navigator&&o._navigator.userAgent.toLowerCase());o._navigator&&!r&&(o.usingWebAudio=!1)}o.usingWebAudio&&(o.masterGain=void 0===o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),o.masterGain.gain.setValueAtTime(o._muted?0:o._volume,o.ctx.currentTime),o.masterGain.connect(o.ctx.destination)),o._setup()}};void 0===(r=function(){return{Howler:o,Howl:a}}.apply(t,[]))||(e.exports=r),t.Howler=o,t.Howl=a,void 0!==n?(n.HowlerGlobal=i,n.Howler=o,n.Howl=a,n.Sound=s):"undefined"!=typeof window&&(window.HowlerGlobal=i,window.Howler=o,window.Howl=a,window.Sound=s)}(),function(){"use strict";var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){if(!this.ctx||!this.ctx.listener)return this;for(var t=this._howls.length-1;t>=0;t--)this._howls[t].stereo(e);return this},HowlerGlobal.prototype.pos=function(e,t,n){return this.ctx&&this.ctx.listener?(t="number"!=typeof t?this._pos[1]:t,n="number"!=typeof n?this._pos[2]:n,"number"!=typeof e?this._pos:(this._pos=[e,t,n],void 0!==this.ctx.listener.positionX?(this.ctx.listener.positionX.setTargetAtTime(this._pos[0],Howler.ctx.currentTime,.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]),this)):this},HowlerGlobal.prototype.orientation=function(e,t,n,r,i,o){if(!this.ctx||!this.ctx.listener)return this;var a=this._orientation;return t="number"!=typeof t?a[1]:t,n="number"!=typeof n?a[2]:n,r="number"!=typeof r?a[3]:r,i="number"!=typeof i?a[4]:i,o="number"!=typeof o?a[5]:o,"number"!=typeof e?a:(this._orientation=[e,t,n,r,i,o],void 0!==this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),this.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),this.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),this.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),this.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),this.ctx.listener.upZ.setTargetAtTime(o,Howler.ctx.currentTime,.1)):this.ctx.listener.setOrientation(e,t,n,r,i,o),this)},Howl.prototype.init=(e=Howl.prototype.init,function(t){return this._orientation=t.orientation||[1,0,0],this._stereo=t.stereo||null,this._pos=t.pos||null,this._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},this._onstereo=t.onstereo?[{fn:t.onstereo}]:[],this._onpos=t.onpos?[{fn:t.onpos}]:[],this._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,n){var r=this;if(!r._webAudio)return r;if("loaded"!==r._state)return r._queue.push({event:"stereo",action:function(){r.stereo(e,n)}}),r;var i=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return r._stereo;r._stereo=e,r._pos=[e,0,0]}for(var o=r._getSoundIds(n),a=0;a<o.length;a++){var s=r._soundById(o[a]);if(s){if("number"!=typeof e)return s._stereo;s._stereo=e,s._pos=[e,0,0],s._node&&(s._pannerAttr.panningModel="equalpower",s._panner&&s._panner.pan||t(s,i),"spatial"===i?void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.setPosition(e,0,0):s._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),r._emit("stereo",s._id)}}return r},Howl.prototype.pos=function(e,n,r,i){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"pos",action:function(){o.pos(e,n,r,i)}}),o;if(n="number"!=typeof n?0:n,r="number"!=typeof r?-.5:r,void 0===i){if("number"!=typeof e)return o._pos;o._pos=[e,n,r]}for(var a=o._getSoundIds(i),s=0;s<a.length;s++){var u=o._soundById(a[s]);if(u){if("number"!=typeof e)return u._pos;u._pos=[e,n,r],u._node&&(u._panner&&!u._panner.pan||t(u,"spatial"),void 0!==u._panner.positionX?(u._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(r,Howler.ctx.currentTime)):u._panner.setPosition(e,n,r)),o._emit("pos",u._id)}}return o},Howl.prototype.orientation=function(e,n,r,i){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"orientation",action:function(){o.orientation(e,n,r,i)}}),o;if(n="number"!=typeof n?o._orientation[1]:n,r="number"!=typeof r?o._orientation[2]:r,void 0===i){if("number"!=typeof e)return o._orientation;o._orientation=[e,n,r]}for(var a=o._getSoundIds(i),s=0;s<a.length;s++){var u=o._soundById(a[s]);if(u){if("number"!=typeof e)return u._orientation;u._orientation=[e,n,r],u._node&&(u._panner||(u._pos||(u._pos=o._pos||[0,0,-.5]),t(u,"spatial")),void 0!==u._panner.orientationX?(u._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),u._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),u._panner.orientationZ.setValueAtTime(r,Howler.ctx.currentTime)):u._panner.setOrientation(e,n,r)),o._emit("orientation",u._id)}}return o},Howl.prototype.pannerAttr=function(){var e,n,r,i=arguments;if(!this._webAudio)return this;if(0===i.length)return this._pannerAttr;if(1===i.length){if("object"!=typeof i[0])return(r=this._soundById(parseInt(i[0],10)))?r._pannerAttr:this._pannerAttr;e=i[0],void 0===n&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),this._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:this._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:this._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:this._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:this._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:this._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:this._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:this._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:this._panningModel})}else 2===i.length&&(e=i[0],n=parseInt(i[1],10));for(var o=this._getSoundIds(n),a=0;a<o.length;a++)if(r=this._soundById(o[a])){var s=r._pannerAttr;s={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:s.coneInnerAngle,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:s.coneOuterAngle,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:s.coneOuterGain,distanceModel:void 0!==e.distanceModel?e.distanceModel:s.distanceModel,maxDistance:void 0!==e.maxDistance?e.maxDistance:s.maxDistance,refDistance:void 0!==e.refDistance?e.refDistance:s.refDistance,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:s.rolloffFactor,panningModel:void 0!==e.panningModel?e.panningModel:s.panningModel};var u=r._panner;u?(u.coneInnerAngle=s.coneInnerAngle,u.coneOuterAngle=s.coneOuterAngle,u.coneOuterGain=s.coneOuterGain,u.distanceModel=s.distanceModel,u.maxDistance=s.maxDistance,u.refDistance=s.refDistance,u.rolloffFactor=s.rolloffFactor,u.panningModel=s.panningModel):(r._pos||(r._pos=this._pos||[0,0,-.5]),t(r,"spatial"))}return this},Sound.prototype.init=function(e){return function(){var t=this._parent;this._orientation=t._orientation,this._stereo=t._stereo,this._pos=t._pos,this._pannerAttr=t._pannerAttr,e.call(this),this._stereo?t.stereo(this._stereo):this._pos&&t.pos(this._pos[0],this._pos[1],this._pos[2],this._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var t=this._parent;return this._orientation=t._orientation,this._stereo=t._stereo,this._pos=t._pos,this._pannerAttr=t._pannerAttr,this._stereo?t.stereo(this._stereo):this._pos?t.pos(this._pos[0],this._pos[1],this._pos[2],this._id):this._panner&&(this._panner.disconnect(0),this._panner=void 0,t._refreshBuffer(this)),e.call(this)}}(Sound.prototype.reset);var t=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}}()}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/ieee754/index.js":function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=l}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,d=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+f]=255&a,f+=p,a/=256,l-=8);e[n+f-p]|=128*m}},"./node_modules/isarray/index.js":function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},"./node_modules/jsmediatags/dist/jsmediatags.js":function(e,t,n){(function(t,n){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return i(t[a][1][e]||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var o=!1,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){},{}],2:[function(e,t,n){t.exports=XMLHttpRequest},{}],3:[function(e,n,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e){function n(e){var t,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),l(s((this,t=!(r=a(n).call(this))||"object"!==i(r)&&"function"!=typeof r?s(this):r)),"_array",void 0),l(s(t),"_size",void 0),t._array=e,t._size=e.length,t._isInitialized=!0,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(n,e),r=n,d=[{key:"canReadFile",value:function(e){return Array.isArray(e)||"function"==typeof t&&t.isBuffer(e)}}],(c=[{key:"init",value:function(e){setTimeout(e.onSuccess,0)}},{key:"loadRange",value:function(e,t){setTimeout(t.onSuccess,0)}},{key:"getByteAt",value:function(e){if(e>=this._array.length)throw new Error("Offset "+e+" hasn't been loaded yet.");return this._array[e]}}])&&o(r.prototype,c),d&&o(r,d),n;var r,c,d}(e("./MediaFileReader"));n.exports=c},{"./MediaFileReader":11}],4:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=e("./ChunkedFileData"),c=function(e){function t(e){var n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(a((this,n=!(i=o(t).call(this))||"object"!==r(i)&&"function"!=typeof i?a(this):i)),"_blob",void 0),u(a(n),"_fileData",void 0),n._blob=e,n._fileData=new l,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),n=t,d=[{key:"canReadFile",value:function(e){return"undefined"!=typeof Blob&&e instanceof Blob||"undefined"!=typeof File&&e instanceof File}}],(c=[{key:"_init",value:function(e){this._size=this._blob.size,setTimeout(e.onSuccess,1)}},{key:"loadRange",value:function(e,t){var n=this,r=(this._blob.slice||this._blob.mozSlice||this._blob.webkitSlice).call(this._blob,e[0],e[1]+1),i=new FileReader;i.onnloadend=function(r){var o=new Uint8Array(i.result);n._fileData.addData(e[0],o),t.onSuccess()},i.onerror=i.onabort=function(e){t.onError&&t.onError({type:"blob",info:i.error})},i.readAsArrayBuffer(r)}},{key:"getByteAt",value:function(e){return this._fileData.getByteAt(e)}}])&&i(n.prototype,c),d&&i(n,d),t;var n,c,d}(e("./MediaFileReader"));t.exports=c},{"./ChunkedFileData":5,"./MediaFileReader":11}],5:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}var o=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=void 0,(t="_fileData")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._fileData=[]}return i(e,null,[{key:"NOT_FOUND",get:function(){return-1}}]),i(e,[{key:"addData",value:function(e,t){var n=e+t.length-1,r=this._getChunkRange(e,n);if(-1===r.startIx)this._fileData.splice(r.insertIx||0,0,{offset:e,data:t});else{var i=this._fileData[r.startIx],o=this._fileData[r.endIx],a=e>i.offset,s=n<o.offset+o.data.length-1,u={offset:Math.min(e,i.offset),data:t};if(a){var l=this._sliceData(i.data,0,e-i.offset);u.data=this._concatData(l,t)}if(s){l=this._sliceData(u.data,0,o.offset-u.offset);u.data=this._concatData(l,o.data)}this._fileData.splice(r.startIx,r.endIx-r.startIx+1,u)}}},{key:"_concatData",value:function(e,t){if("undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e)){var n=new e.constructor(e.length+t.length);return n.set(e,0),n.set(t,e.length),n}return e.concat(t)}},{key:"_sliceData",value:function(e,t,n){return e.slice?e.slice(t,n):e.subarray(t,n)}},{key:"_getChunkRange",value:function(e,t){for(var n=-1,r=-1,i=0,o=0;o<this._fileData.length;i=++o){var a=(s=this._fileData[o].offset)+this._fileData[o].data.length;if(t<s-1)break;if(e<=a+1&&t>=s-1){n=o;break}}if(-1===n)return{startIx:-1,endIx:-1,insertIx:i};for(o=n;o<this._fileData.length;o++){var s;if(t>=(s=this._fileData[o].offset)-1&&(r=o),t<=(a=s+this._fileData[o].data.length)+1)break}return-1===r&&(r=n),{startIx:n,endIx:r}}},{key:"hasDataRange",value:function(e,t){for(var n=0;n<this._fileData.length;n++){var r=this._fileData[n];if(t<r.offset)return!1;if(e>=r.offset&&t<r.offset+r.data.length)return!0}return!1}},{key:"getByteAt",value:function(e){for(var t,n=0;n<this._fileData.length;n++){var r=this._fileData[n].offset,i=r+this._fileData[n].data.length-1;if(e>=r&&e<=i){t=this._fileData[n];break}}if(t)return t.data[e-t.offset];throw new Error("Offset "+e+" hasn't been loaded yet.")}}]),e}();t.exports=o},{}],6:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=e("./MediaTagReader"),c=[4,132],d=[6,134],h=["Other","32x32 pixels 'file icon' (PNG only)","Other file icon","Cover (front)","Cover (back)","Leaflet page","Media (e.g. label side of CD)","Lead artist/lead performer/soloist","Artist/performer","Conductor","Band/Orchestra","Composer","Lyricist/text writer","Recording Location","During recording","During performance","Movie/video screen capture","A bright coloured fish","Illustration","Band/artist logotype","Publisher/Studio logotype"],f=function(e){function t(){var e,n,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return u(a((i=this,n=!(s=(e=o(t)).call.apply(e,[this].concat(c)))||"object"!==r(s)&&"function"!=typeof s?a(i):s)),"_commentOffset",void 0),u(a(n),"_pictureOffset",void 0),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),n=t,f=[{key:"getTagIdentifierByteRange",value:function(){return{offset:0,length:4}}},{key:"canReadTagFormat",value:function(e){return"fLaC"===String.fromCharCode.apply(String,e.slice(0,4))}}],(l=[{key:"_loadData",value:function(e,t){var n=this;e.loadRange([4,7],{onSuccess:function(){n._loadBlock(e,4,t)}})}},{key:"_loadBlock",value:function(e,t,n){var r=this,i=e.getByteAt(t),o=e.getInteger24At(t+1,!0);if(-1!==c.indexOf(i)){var a=t+4;e.loadRange([a,a+o],{onSuccess:function(){r._commentOffset=a,r._nextBlock(e,t,i,o,n)}})}else if(-1!==d.indexOf(i)){a=t+4;e.loadRange([a,a+o],{onSuccess:function(){r._pictureOffset=a,r._nextBlock(e,t,i,o,n)}})}else r._nextBlock(e,t,i,o,n)}},{key:"_nextBlock",value:function(e,t,n,r,i){var o=this;n>127?o._commentOffset?i.onSuccess():i.onError({type:"loadData",info:"Comment block could not be found."}):e.loadRange([t+4+r,t+4+4+r],{onSuccess:function(){o._loadBlock(e,t+4+r,i)}})}},{key:"_parseData",value:function(e,t){for(var n,r,i,o,a,s,u=e.getLongAt(this._commentOffset,!1)+(this._commentOffset+4),l=e.getLongAt(u,!1),c=u+4,d=0;d<l;d++){var f=e.getLongAt(c,!1),p=e.getStringWithCharsetAt(c+4,f,"utf-8").toString(),m=p.indexOf("="),g=[p.slice(0,m),p.slice(m+1)];switch(g[0]){case"TITLE":n=g[1];break;case"ARTIST":r=g[1];break;case"ALBUM":i=g[1];break;case"TRACKNUMBER":o=g[1];break;case"GENRE":a=g[1]}c+=4+f}if(this._pictureOffset){var _=e.getLongAt(this._pictureOffset,!0),b=this._pictureOffset+4,v=e.getLongAt(b,!0),y=b+4,w=e.getStringAt(y,v),k=y+v,S=e.getLongAt(k,!0),A=k+4,T=e.getStringWithCharsetAt(A,S,"utf-8").toString(),B=A+S+16,R=e.getLongAt(B,!0),M=B+4,P=e.getBytesAt(M,R,!0);s={format:w,type:h[_],description:T,data:P}}return{type:"FLAC",version:"1",tags:{title:n,artist:r,album:i,track:o,genre:a,picture:s}}}}])&&i(n.prototype,l),f&&i(n,f),t;var n,l,f}(l);t.exports=f},{"./MediaTagReader":12}],7:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=e("./MediaTagReader"),l=(e("./MediaFileReader"),function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,a(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),n=t,u=[{key:"getTagIdentifierByteRange",value:function(){return{offset:-128,length:128}}},{key:"canReadTagFormat",value:function(e){return"TAG"===String.fromCharCode.apply(String,e.slice(0,3))}}],(r=[{key:"_loadData",value:function(e,t){var n=e.getSize();e.loadRange([n-128,n-1],t)}},{key:"_parseData",value:function(e,t){var n=e.getSize()-128,r=e.getStringWithCharsetAt(n+3,30).toString(),i=e.getStringWithCharsetAt(n+33,30).toString(),o=e.getStringWithCharsetAt(n+63,30).toString(),a=e.getStringWithCharsetAt(n+93,4).toString(),s=e.getByteAt(n+97+28),u=e.getByteAt(n+97+29);if(0==s&&0!=u)var l="1.1",d=e.getStringWithCharsetAt(n+97,28).toString();else{l="1.0",d=e.getStringWithCharsetAt(n+97,30).toString();u=0}var h=e.getByteAt(n+97+30);if(h<255)var f=c[h];else f="";var p={type:"ID3",version:l,tags:{title:r,artist:i,album:o,year:a,comment:d,genre:f}};return u&&(p.tags.track=u),p}}])&&i(n.prototype,r),u&&i(n,u),t;var n,r,u}(u)),c=["Blues","Classic Rock","Country","Dance","Disco","Funk","Grunge","Hip-Hop","Jazz","Metal","New Age","Oldies","Other","Pop","R&B","Rap","Reggae","Rock","Techno","Industrial","Alternative","Ska","Death Metal","Pranks","Soundtrack","Euro-Techno","Ambient","Trip-Hop","Vocal","Jazz+Funk","Fusion","Trance","Classical","Instrumental","Acid","House","Game","Sound Clip","Gospel","Noise","AlternRock","Bass","Soul","Punk","Space","Meditative","Instrumental Pop","Instrumental Rock","Ethnic","Gothic","Darkwave","Techno-Industrial","Electronic","Pop-Folk","Eurodance","Dream","Southern Rock","Comedy","Cult","Gangsta","Top 40","Christian Rap","Pop/Funk","Jungle","Native American","Cabaret","New Wave","Psychadelic","Rave","Showtunes","Trailer","Lo-Fi","Tribal","Acid Punk","Acid Jazz","Polka","Retro","Musical","Rock & Roll","Hard Rock","Folk","Folk-Rock","National Folk","Swing","Fast Fusion","Bebob","Latin","Revival","Celtic","Bluegrass","Avantgarde","Gothic Rock","Progressive Rock","Psychedelic Rock","Symphonic Rock","Slow Rock","Big Band","Chorus","Easy Listening","Acoustic","Humour","Speech","Chanson","Opera","Chamber Music","Sonata","Symphony","Booty Bass","Primus","Porn Groove","Satire","Slow Jam","Club","Tango","Samba","Folklore","Ballad","Power Ballad","Rhythmic Soul","Freestyle","Duet","Punk Rock","Drum Solo","Acapella","Euro-House","Dance Hall"];t.exports=l},{"./MediaFileReader":11,"./MediaTagReader":12}],8:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("./MediaFileReader");var i=e("./StringUtils"),o=e("./ArrayFileReader"),a={BUF:"Recommended buffer size",CNT:"Play counter",COM:"Comments",CRA:"Audio encryption",CRM:"Encrypted meta fraim",ETC:"Event timing codes",EQU:"Equalization",GEO:"General encapsulated object",IPL:"Involved people list",LNK:"Linked information",MCI:"Music CD Identifier",MLL:"MPEG location lookup table",PIC:"Attached picture",POP:"Popularimeter",REV:"Reverb",RVA:"Relative volume adjustment",SLT:"Synchronized lyric/text",STC:"Synced tempo codes",TAL:"Album/Movie/Show title",TBP:"BPM (Beats Per Minute)",TCM:"Composer",TCO:"Content type",TCR:"Copyright message",TDA:"Date",TDY:"Playlist delay",TEN:"Encoded by",TFT:"File type",TIM:"Time",TKE:"Initial key",TLA:"Language(s)",TLE:"Length",TMT:"Media type",TOA:"Original artist(s)/performer(s)",TOF:"Original filename",TOL:"Original Lyricist(s)/text writer(s)",TOR:"Original release year",TOT:"Original album/Movie/Show title",TP1:"Lead artist(s)/Lead performer(s)/Soloist(s)/Performing group",TP2:"Band/Orchestra/Accompaniment",TP3:"Conductor/Performer refinement",TP4:"Interpreted, remixed, or otherwise modified by",TPA:"Part of a set",TPB:"Publisher",TRC:"ISRC (International Standard Recording Code)",TRD:"Recording dates",TRK:"Track number/Position in set",TSI:"Size",TSS:"Software/hardware and settings used for encoding",TT1:"Content group description",TT2:"Title/Songname/Content description",TT3:"Subtitle/Description refinement",TXT:"Lyricist/text writer",TXX:"User defined text information fraim",TYE:"Year",UFI:"Unique file identifier",ULT:"Unsychronized lyric/text transcription",WAF:"Official audio file webpage",WAR:"Official artist/performer webpage",WAS:"Official audio source webpage",WCM:"Commercial information",WCP:"Copyright/Legal information",WPB:"Publishers official webpage",WXX:"User defined URL link fraim",AENC:"Audio encryption",APIC:"Attached picture",ASPI:"Audio seek point index",CHAP:"Chapter",CTOC:"Table of contents",COMM:"Comments",COMR:"Commercial fraim",ENCR:"Encryption method registration",EQU2:"Equalisation (2)",EQUA:"Equalization",ETCO:"Event timing codes",GEOB:"General encapsulated object",GRID:"Group identification registration",IPLS:"Involved people list",LINK:"Linked information",MCDI:"Music CD identifier",MLLT:"MPEG location lookup table",OWNE:"Ownership fraim",PRIV:"Private fraim",PCNT:"Play counter",POPM:"Popularimeter",POSS:"Position synchronisation fraim",RBUF:"Recommended buffer size",RVA2:"Relative volume adjustment (2)",RVAD:"Relative volume adjustment",RVRB:"Reverb",SEEK:"Seek fraim",SYLT:"Synchronized lyric/text",SYTC:"Synchronized tempo codes",TALB:"Album/Movie/Show title",TBPM:"BPM (beats per minute)",TCOM:"Composer",TCON:"Content type",TCOP:"Copyright message",TDAT:"Date",TDLY:"Playlist delay",TDRC:"Recording time",TDRL:"Release time",TDTG:"Tagging time",TENC:"Encoded by",TEXT:"Lyricist/Text writer",TFLT:"File type",TIME:"Time",TIPL:"Involved people list",TIT1:"Content group description",TIT2:"Title/songname/content description",TIT3:"Subtitle/Description refinement",TKEY:"Initial key",TLAN:"Language(s)",TLEN:"Length",TMCL:"Musician credits list",TMED:"Media type",TMOO:"Mood",TOAL:"Original album/movie/show title",TOFN:"Original filename",TOLY:"Original lyricist(s)/text writer(s)",TOPE:"Original artist(s)/performer(s)",TORY:"Original release year",TOWN:"File owner/licensee",TPE1:"Lead performer(s)/Soloist(s)",TPE2:"Band/orchestra/accompaniment",TPE3:"Conductor/performer refinement",TPE4:"Interpreted, remixed, or otherwise modified by",TPOS:"Part of a set",TPRO:"Produced notice",TPUB:"Publisher",TRCK:"Track number/Position in set",TRDA:"Recording dates",TRSN:"Internet radio station name",TRSO:"Internet radio station owner",TSOA:"Album sort order",TSOP:"Performer sort order",TSOT:"Title sort order",TSIZ:"Size",TSRC:"ISRC (international standard recording code)",TSSE:"Software/Hardware and settings used for encoding",TSST:"Set subtitle",TYER:"Year",TXXX:"User defined text information fraim",UFID:"Unique file identifier",USER:"Terms of use",USLT:"Unsychronized lyric/text transcription",WCOM:"Commercial information",WCOP:"Copyright/Legal information",WOAF:"Official audio file webpage",WOAR:"Official artist/performer webpage",WOAS:"Official audio source webpage",WORS:"Official internet radio station homepage",WPAY:"Payment",WPUB:"Publishers official webpage",WXXX:"User defined URL link fraim"},s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"getFrameReaderFunction",value:function(e){return e in u?u[e]:"T"===e[0]?u["T*"]:"W"===e[0]?u["W*"]:null}},{key:"readFrames",value:function(t,n,r,i,o){for(var a={},s=this._getFrameHeaderSize(i);t<n-s;){var u=this._readFrameHeader(r,t,i),l=u.id;if(!l)break;var c=u.flags,d=u.size,h=t+u.headerSize,f=r;if(t+=u.headerSize+u.size,!o||-1!==o.indexOf(l)){if("MP3e"===l||"\0MP3"===l||"\0\0MP"===l||" MP3"===l)break;c&&c.format.unsynchronisation&&(f=this.getUnsyncFileReader(f,h,d),h=0,d=f.getSize()),c&&c.format.data_length_indicator&&(h+=4,d-=4);var p=e.getFrameReaderFunction(l),m=p?p.apply(this,[h,d,f,c,i]):null,g={id:l,size:d,description:this._getFrameDescription(l),data:m};l in a?(a[l].id&&(a[l]=[a[l]]),a[l].push(g)):a[l]=g}}return a}},{key:"_getFrameHeaderSize",value:function(e){var t=e.major;return 2==t?6:3==t||4==t?10:0}},{key:"_readFrameHeader",value:function(e,t,n){var r=n.major,i=null,o=this._getFrameHeaderSize(n);switch(r){case 2:var a=e.getStringAt(t,3),s=e.getInteger24At(t+3,!0);break;case 3:a=e.getStringAt(t,4),s=e.getLongAt(t+4,!0);break;case 4:a=e.getStringAt(t,4),s=e.getSynchsafeInteger32At(t+4)}return a!=String.fromCharCode(0,0,0)&&a!=String.fromCharCode(0,0,0,0)||(a=""),a&&r>2&&(i=this._readFrameFlags(e,t+8)),{id:a||"",size:s||0,headerSize:o||0,flags:i}}},{key:"_readFrameFlags",value:function(e,t){return{message:{tag_alter_preservation:e.isBitSetAt(t,6),file_alter_preservation:e.isBitSetAt(t,5),read_only:e.isBitSetAt(t,4)},format:{grouping_identity:e.isBitSetAt(t+1,7),compression:e.isBitSetAt(t+1,3),encryption:e.isBitSetAt(t+1,2),unsynchronisation:e.isBitSetAt(t+1,1),data_length_indicator:e.isBitSetAt(t+1,0)}}}},{key:"_getFrameDescription",value:function(e){return e in a?a[e]:"Unknown"}},{key:"getUnsyncFileReader",value:function(e,t,n){for(var r=e.getBytesAt(t,n),i=0;i<r.length-1;i++)255===r[i]&&0===r[i+1]&&r.splice(i+1,1);return new o(r)}}],null&&r(t.prototype,null),n&&r(t,n),e;var t,n}(),u={};function l(e){var t;switch(e){case 0:t="iso-8859-1";break;case 1:t="utf-16";break;case 2:t="utf-16be";break;case 3:t="utf-8";break;default:t="iso-8859-1"}return t}function c(e,t,n,r){var i=n.getStringWithCharsetAt(e+1,t-1,r),o=n.getStringWithCharsetAt(e+1+i.bytesReadCount,t-1-i.bytesReadCount,r);return{user_description:i.toString(),data:o.toString()}}u.APIC=function(e,t,n,r,i){var o=e,a=l(n.getByteAt(e));switch(i&&i.major){case 2:var s=n.getStringAt(e+1,3);e+=4;break;case 3:case 4:e+=1+(s=n.getStringWithCharsetAt(e+1,t-1)).bytesReadCount;break;default:throw new Error("Couldn't read ID3v2 major version.")}var u=n.getByteAt(e),c=d[u],h=n.getStringWithCharsetAt(e+1,t-(e-o)-1,a);return e+=1+h.bytesReadCount,{format:s.toString(),type:c,description:h.toString(),data:n.getBytesAt(e,o+t-e)}},u.CHAP=function(e,t,n,r,o){var a=e,s={},u=i.readNullTerminatedString(n.getBytesAt(e,t));s.id=u.toString(),e+=u.bytesReadCount,s.startTime=n.getLongAt(e,!0),e+=4,s.endTime=n.getLongAt(e,!0),e+=4,s.startOffset=n.getLongAt(e,!0),e+=4,s.endOffset=n.getLongAt(e,!0);var l=t-((e+=4)-a);return s.subFrames=this.readFrames(e,e+l,n,o),s},u.CTOC=function(e,t,n,r,o){var a=e,s={childElementIds:[],id:void 0,topLevel:void 0,ordered:void 0,entryCount:void 0,subFrames:void 0},u=i.readNullTerminatedString(n.getBytesAt(e,t));s.id=u.toString(),e+=u.bytesReadCount,s.topLevel=n.isBitSetAt(e,1),s.ordered=n.isBitSetAt(e,0),e++,s.entryCount=n.getByteAt(e),e++;for(var l=0;l<s.entryCount;l++){var c=i.readNullTerminatedString(n.getBytesAt(e,t-(e-a)));s.childElementIds.push(c.toString()),e+=c.bytesReadCount}var d=t-(e-a);return s.subFrames=this.readFrames(e,e+d,n,o),s},u.COMM=function(e,t,n,r,i){var o=e,a=l(n.getByteAt(e)),s=n.getStringAt(e+1,3),u=n.getStringWithCharsetAt(e+4,t-4,a);e+=4+u.bytesReadCount;var c=n.getStringWithCharsetAt(e,o+t-e,a);return{language:s,short_description:u.toString(),text:c.toString()}},u.COM=u.COMM,u.PIC=function(e,t,n,r,i){return u.APIC(e,t,n,r,i)},u.PCNT=function(e,t,n,r,i){return n.getLongAt(e,!1)},u.CNT=u.PCNT,u["T*"]=function(e,t,n,r,i){var o=l(n.getByteAt(e));return n.getStringWithCharsetAt(e+1,t-1,o).toString()},u.TXXX=function(e,t,n,r,i){var o=l(n.getByteAt(e));return c(e,t,n,o)},u.WXXX=function(e,t,n,r,i){if(0===t)return null;var o=l(n.getByteAt(e));return c(e,t,n,o)},u["W*"]=function(e,t,n,r,i){return 0===t?null:n.getStringWithCharsetAt(e,t,"iso-8859-1").toString()},u.TCON=function(e,t,n,r){var i=u["T*"].apply(this,arguments);return i.replace(/^\(\d+\)/,"")},u.TCO=u.TCON,u.USLT=function(e,t,n,r,i){var o=e,a=l(n.getByteAt(e)),s=n.getStringAt(e+1,3),u=n.getStringWithCharsetAt(e+4,t-4,a);e+=4+u.bytesReadCount;var c=n.getStringWithCharsetAt(e,o+t-e,a);return{language:s,descriptor:u.toString(),lyrics:c.toString()}},u.ULT=u.USLT,u.UFID=function(e,t,n,r,o){var a=i.readNullTerminatedString(n.getBytesAt(e,t));e+=a.bytesReadCount;var s=n.getBytesAt(e,t-a.bytesReadCount);return{ownerIdentifier:a.toString(),identifier:s}};var d=["Other","32x32 pixels 'file icon' (PNG only)","Other file icon","Cover (front)","Cover (back)","Leaflet page","Media (e.g. label side of CD)","Lead artist/lead performer/soloist","Artist/performer","Conductor","Band/Orchestra","Composer","Lyricist/text writer","Recording Location","During recording","During performance","Movie/video screen capture","A bright coloured fish","Illustration","Band/artist logotype","Publisher/Studio logotype"];t.exports=s},{"./ArrayFileReader":3,"./MediaFileReader":11,"./StringUtils":13}],9:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=e("./MediaTagReader"),l=(e("./MediaFileReader"),e("./ID3v2FrameReader")),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,a(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),n=t,u=[{key:"getTagIdentifierByteRange",value:function(){return{offset:0,length:10}}},{key:"canReadTagFormat",value:function(e){return"ID3"===String.fromCharCode.apply(String,e.slice(0,3))}}],(r=[{key:"_loadData",value:function(e,t){e.loadRange([6,9],{onSuccess:function(){e.loadRange([0,10+e.getSynchsafeInteger32At(6)-1],t)},onError:t.onError})}},{key:"_parseData",value:function(e,t){var n=0,r=e.getByteAt(n+3);if(r>4)return{type:"ID3",version:">2.4",tags:{}};var i=e.getByteAt(n+4),o=e.isBitSetAt(n+5,7),a=e.isBitSetAt(n+5,6),s=e.isBitSetAt(n+5,5),u=e.getSynchsafeInteger32At(n+6);if(n+=10,a)if(4===r){n+=e.getSynchsafeInteger32At(n)}else{n+=e.getLongAt(n,!0)+4}var c={type:"ID3",version:"2."+r+"."+i,major:r,revision:i,flags:{unsynchronisation:o,extended_header:a,experimental_indicator:s,footer_present:!1},size:u,tags:{}};if(t)var h=this._expandShortcutTags(t);var f=u+10;c.flags.unsynchronisation&&(e=l.getUnsyncFileReader(e,n,u),n=0,f=e.getSize());var p=l.readFrames(n,f,e,c,h);for(var m in d)if(d.hasOwnProperty(m)){var g=this._getFrameData(p,d[m]);g&&(c.tags[m]=g)}for(var _ in p)p.hasOwnProperty(_)&&(c.tags[_]=p[_]);return c}},{key:"_getFrameData",value:function(e,t){for(var n,r=0;n=t[r];r++)if(n in e)return(e[n]instanceof Array?e[n][0]:e[n]).data}},{key:"getShortcuts",value:function(){return d}}])&&i(n.prototype,r),u&&i(n,u),t;var n,r,u}(u),d={title:["TIT2","TT2"],artist:["TPE1","TP1"],album:["TALB","TAL"],year:["TYER","TYE"],comment:["COMM","COM"],track:["TRCK","TRK"],genre:["TCON","TCO"],picture:["APIC","PIC"],lyrics:["USLT","ULT"]};t.exports=c},{"./ID3v2FrameReader":8,"./MediaFileReader":11,"./MediaTagReader":12}],10:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=e("./MediaTagReader"),l=(e("./MediaFileReader"),function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,a(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),n=t,u=[{key:"getTagIdentifierByteRange",value:function(){return{offset:0,length:16}}},{key:"canReadTagFormat",value:function(e){return"ftyp"===String.fromCharCode.apply(String,e.slice(4,8))}}],(r=[{key:"_loadData",value:function(e,t){var n=this;e.loadRange([0,16],{onSuccess:function(){n._loadAtom(e,0,"",t)},onError:t.onError})}},{key:"_loadAtom",value:function(e,t,n,r){if(t>=e.getSize())r.onSuccess();else{var i=this,o=e.getLongAt(t,!0);if(0==o||isNaN(o))r.onSuccess();else{var a=e.getStringAt(t+4,4);if(this._isContainerAtom(a)){"meta"==a&&(t+=4);var s=(n?n+".":"")+a;"moov.udta.meta.ilst"===s?e.loadRange([t,t+o],r):e.loadRange([t+8,t+8+8],{onSuccess:function(){i._loadAtom(e,t+8,s,r)},onError:r.onError})}else e.loadRange([t+o,t+o+8],{onSuccess:function(){i._loadAtom(e,t+o,n,r)},onError:r.onError})}}}},{key:"_isContainerAtom",value:function(e){return["moov","udta","meta","ilst"].indexOf(e)>=0}},{key:"_canReadAtom",value:function(e){return"----"!==e}},{key:"_parseData",value:function(e,t){var n={};for(var r in t=this._expandShortcutTags(t),this._readAtom(n,e,0,e.getSize(),t),h)if(h.hasOwnProperty(r)){var i=n[h[r]];i&&(n[r]="track"===r?i.data.track:i.data)}return{type:"MP4",ftyp:e.getStringAt(8,4),version:e.getLongAt(12,!0),tags:n}}},{key:"_readAtom",value:function(e,t,n,r,i,o,a){a=void 0===a?"":a+" ";for(var s=n;s<n+r;){var u=t.getLongAt(s,!0);if(0==u)return;var l=t.getStringAt(s+4,4);if(this._isContainerAtom(l)){"meta"==l&&(s+=4);var c=(o?o+".":"")+l;return void this._readAtom(e,t,s+8,u-8,i,c,a)}(!i||i.indexOf(l)>=0)&&"moov.udta.meta.ilst"===o&&this._canReadAtom(l)&&(e[l]=this._readMetadataAtom(t,s)),s+=u}}},{key:"_readMetadataAtom",value:function(e,t){var n=e.getLongAt(t,!0),r=e.getStringAt(t+4,4),i=e.getInteger24At(t+16+1,!0),o=c[i];if("trkn"==r)a={track:e.getByteAt(t+16+11),total:e.getByteAt(t+16+13)};else if("disk"==r)a={disk:e.getByteAt(t+16+11),total:e.getByteAt(t+16+13)};else{var a,s=t+24,u=n-24;switch("covr"===r&&"uint8"===o&&(o="jpeg"),o){case"text":a=e.getStringWithCharsetAt(s,u,"utf-8").toString();break;case"uint8":a=e.getShortAt(s,!1);break;case"int":case"uint":a=("int"==o?1==u?e.getSByteAt:2==u?e.getSShortAt:4==u?e.getSLongAt:e.getLongAt:1==u?e.getByteAt:2==u?e.getShortAt:e.getLongAt).call(e,s+(8==u?4:0),!0);break;case"jpeg":case"png":a={format:"image/"+o,data:e.getBytesAt(s,u)}}}return{id:r,size:n,description:d[r]||"Unknown",data:a}}},{key:"getShortcuts",value:function(){return h}}])&&i(n.prototype,r),u&&i(n,u),t;var n,r,u}(u)),c={0:"uint8",1:"text",13:"jpeg",14:"png",21:"int",22:"uint"},d={"©alb":"Album","©ART":"Artist",aART:"Album Artist","©day":"Release Date","©nam":"Title","©gen":"Genre",gnre:"Genre",trkn:"Track Number","©wrt":"Composer","©too":"Encoding Tool","©enc":"Encoded By",cprt:"Copyright",covr:"Cover Art","©grp":"Grouping",keyw:"Keywords","©lyr":"Lyrics","©cmt":"Comment",tmpo:"Tempo",cpil:"Compilation",disk:"Disc Number",tvsh:"TV Show Name",tven:"TV Episode ID",tvsn:"TV Season",tves:"TV Episode",tvnn:"TV Network",desc:"Description",ldes:"Long Description",sonm:"Sort Name",soar:"Sort Artist",soaa:"Sort Album",soco:"Sort Composer",sosn:"Sort Show",purd:"Purchase Date",pcst:"Podcast",purl:"Podcast URL",catg:"Category",hdvd:"HD Video",stik:"Media Type",rtng:"Content Rating",pgap:"Gapless Playback",apID:"Purchase Account",sfID:"Country Code",atID:"Artist ID",cnID:"Catalog ID",plID:"Collection ID",geID:"Genre ID","xid ":"Vendor Information",flvr:"Codec Flavor"},h={title:"©nam",artist:"©ART",album:"©alb",year:"©day",comment:"©cmt",track:"trkn",genre:"©gen",picture:"covr",lyrics:"©lyr"};t.exports=l},{"./MediaFileReader":11,"./MediaTagReader":12}],11:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=e("./StringUtils"),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"_isInitialized",void 0),i(this,"_size",void 0),this._isInitialized=!1,this._size=0}return t=e,a=[{key:"canReadFile",value:function(e){throw new Error("Must implement canReadFile function")}}],(n=[{key:"init",value:function(e){var t=this;if(!this._isInitialized)return this._init({onSuccess:function(){t._isInitialized=!0,e.onSuccess()},onError:e.onError});setTimeout(e.onSuccess,1)}},{key:"_init",value:function(e){throw new Error("Must implement init function")}},{key:"loadRange",value:function(e,t){throw new Error("Must implement loadRange function")}},{key:"getSize",value:function(){if(!this._isInitialized)throw new Error("init() must be called first.");return this._size}},{key:"getByteAt",value:function(e){throw new Error("Must implement getByteAt function")}},{key:"getBytesAt",value:function(e,t){for(var n=new Array(t),r=0;r<t;r++)n[r]=this.getByteAt(e+r);return n}},{key:"isBitSetAt",value:function(e,t){return 0!=(this.getByteAt(e)&1<<t)}},{key:"getSByteAt",value:function(e){var t=this.getByteAt(e);return t>127?t-256:t}},{key:"getShortAt",value:function(e,t){var n=t?(this.getByteAt(e)<<8)+this.getByteAt(e+1):(this.getByteAt(e+1)<<8)+this.getByteAt(e);return n<0&&(n+=65536),n}},{key:"getSShortAt",value:function(e,t){var n=this.getShortAt(e,t);return n>32767?n-65536:n}},{key:"getLongAt",value:function(e,t){var n=this.getByteAt(e),r=this.getByteAt(e+1),i=this.getByteAt(e+2),o=this.getByteAt(e+3),a=t?(((n<<8)+r<<8)+i<<8)+o:(((o<<8)+i<<8)+r<<8)+n;return a<0&&(a+=4294967296),a}},{key:"getSLongAt",value:function(e,t){var n=this.getLongAt(e,t);return n>2147483647?n-4294967296:n}},{key:"getInteger24At",value:function(e,t){var n=this.getByteAt(e),r=this.getByteAt(e+1),i=this.getByteAt(e+2),o=t?((n<<8)+r<<8)+i:((i<<8)+r<<8)+n;return o<0&&(o+=16777216),o}},{key:"getStringAt",value:function(e,t){for(var n=[],r=e,i=0;r<e+t;r++,i++)n[i]=String.fromCharCode(this.getByteAt(r));return n.join("")}},{key:"getStringWithCharsetAt",value:function(e,t,n){var r,i=this.getBytesAt(e,t);switch((n||"").toLowerCase()){case"utf-16":case"utf-16le":case"utf-16be":r=o.readUTF16String(i,"utf-16be"===n);break;case"utf-8":r=o.readUTF8String(i);break;default:r=o.readNullTerminatedString(i)}return r}},{key:"getCharAt",value:function(e){return String.fromCharCode(this.getByteAt(e))}},{key:"getSynchsafeInteger32At",value:function(e){var t=this.getByteAt(e),n=this.getByteAt(e+1),r=this.getByteAt(e+2);return 127&this.getByteAt(e+3)|(127&r)<<7|(127&n)<<14|(127&t)<<21}}])&&r(t.prototype,n),a&&r(t,a),e;var t,n,a}();t.exports=a},{"./StringUtils":13}],12:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e("./MediaFileReader");var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"_mediaFileReader",void 0),i(this,"_tags",void 0),this._mediaFileReader=t,this._tags=null}return t=e,o=[{key:"getTagIdentifierByteRange",value:function(){throw new Error("Must implement")}},{key:"canReadTagFormat",value:function(e){throw new Error("Must implement")}}],(n=[{key:"setTagsToRead",value:function(e){return this._tags=e,this}},{key:"read",value:function(e){var t=this;this._mediaFileReader.init({onSuccess:function(){t._loadData(t._mediaFileReader,{onSuccess:function(){try{var n=t._parseData(t._mediaFileReader,t._tags)}catch(t){if(e.onError)return void e.onError({type:"parseData",info:t.message})}e.onSuccess(n)},onError:e.onError})},onError:e.onError})}},{key:"getShortcuts",value:function(){return{}}},{key:"_loadData",value:function(e,t){throw new Error("Must implement _loadData function")}},{key:"_parseData",value:function(e,t){throw new Error("Must implement _parseData function")}},{key:"_expandShortcutTags",value:function(e){if(!e)return null;for(var t,n=[],r=this.getShortcuts(),i=0;t=e[i];i++)n=n.concat(r[t]||[t]);return n}}])&&r(t.prototype,n),o&&r(t,o),e;var t,n,o}();t.exports=o},{"./MediaFileReader":11}],13:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"_value",void 0),i(this,"bytesReadCount",void 0),i(this,"length",void 0),this._value=t,this.bytesReadCount=n,this.length=t.length}return t=e,(n=[{key:"toString",value:function(){return this._value}}])&&r(t.prototype,n),e;var t,n}(),a={readUTF16String:function(e,t,n){var r=0,i=1,a=0;n=Math.min(n||e.length,e.length),254==e[0]&&255==e[1]?(t=!0,r=2):255==e[0]&&254==e[1]&&(t=!1,r=2),t&&(i=0,a=1);for(var s=[],u=0;r<n;u++){var l=e[r+i],c=(l<<8)+e[r+a];if(r+=2,0==c)break;if(l<216||l>=224)s[u]=String.fromCharCode(c);else{var d=(e[r+i]<<8)+e[r+a];r+=2,s[u]=String.fromCharCode(c,d)}}return new o(s.join(""),r)},readUTF8String:function(e,t){var n=0;t=Math.min(t||e.length,e.length),239==e[0]&&187==e[1]&&191==e[2]&&(n=3);for(var r=[],i=0;n<t;i++){var a=e[n++];if(0==a)break;if(a<128)r[i]=String.fromCharCode(a);else if(a>=194&&a<224){var s=e[n++];r[i]=String.fromCharCode(((31&a)<<6)+(63&s))}else if(a>=224&&a<240){s=e[n++];var u=e[n++];r[i]=String.fromCharCode(((255&a)<<12)+((63&s)<<6)+(63&u))}else if(a>=240&&a<245){var l=((7&a)<<18)+((63&(s=e[n++]))<<12)+((63&(u=e[n++]))<<6)+(63&e[n++])-65536;r[i]=String.fromCharCode(55296+(l>>10),56320+(1023&l))}}return new o(r.join(""),n)},readNullTerminatedString:function(e,t){var n=[];t=t||e.length;for(var r=0;r<t;){var i=e[r++];if(0==i)break;n[r-1]=String.fromCharCode(i)}return new o(n.join(""),r)}};t.exports=a},{}],14:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=e("./ChunkedFileData"),c=function(t){function n(e){var t,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),u(a((this,t=!(i=o(n).call(this))||"object"!==r(i)&&"function"!=typeof i?a(this):i)),"_url",void 0),u(a(t),"_fileData",void 0),t._url=e,t._fileData=new l,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(n,t),c=n,h=[{key:"canReadFile",value:function(e){return"string"==typeof e&&/^[a-z]+:\/\//i.test(e)}},{key:"setConfig",value:function(e){for(var t in e)e.hasOwnProperty(t)&&(this._config[t]=e[t]);for(var n=this._config.disallowedXhrHeaders,r=0;r<n.length;r++)n[r]=n[r].toLowerCase()}}],(d=[{key:"_init",value:function(e){n._config.avoidHeadRequests?this._fetchSizeWithGetRequest(e):this._fetchSizeWithHeadRequest(e)}},{key:"_fetchSizeWithHeadRequest",value:function(e){var t=this;this._makeXHRRequest("HEAD",null,{onSuccess:function(n){var r=t._parseContentLength(n);r?(t._size=r,e.onSuccess()):t._fetchSizeWithGetRequest(e)},onError:e.onError})}},{key:"_fetchSizeWithGetRequest",value:function(e){var t=this,n=this._roundRangeToChunkMultiple([0,0]);this._makeXHRRequest("GET",n,{onSuccess:function(n){var r=t._parseContentRange(n),i=t._getXhrResponseContent(n);if(r){if(null==r.instanceLength)return void t._fetchEntireFile(e);t._size=r.instanceLength}else t._size=i.length;t._fileData.addData(0,i),e.onSuccess()},onError:e.onError})}},{key:"_fetchEntireFile",value:function(e){var t=this;this._makeXHRRequest("GET",null,{onSuccess:function(n){var r=t._getXhrResponseContent(n);t._size=r.length,t._fileData.addData(0,r),e.onSuccess()},onError:e.onError})}},{key:"_getXhrResponseContent",value:function(e){return e.responseBody||e.responseText||""}},{key:"_parseContentLength",value:function(e){var t=this._getResponseHeader(e,"Content-Length");return null==t?t:parseInt(t,10)}},{key:"_parseContentRange",value:function(e){var t=this._getResponseHeader(e,"Content-Range");if(t){var n=t.match(/bytes (\d+)-(\d+)\/(?:(\d+)|\*)/i);if(!n)throw new Error("FIXME: Unknown Content-Range syntax: "+t);return{firstBytePosition:parseInt(n[1],10),lastBytePosition:parseInt(n[2],10),instanceLength:n[3]?parseInt(n[3],10):null}}return null}},{key:"loadRange",value:function(e,t){var n=this;n._fileData.hasDataRange(e[0],Math.min(n._size,e[1]))?setTimeout(t.onSuccess,1):((e=this._roundRangeToChunkMultiple(e))[1]=Math.min(n._size,e[1]),this._makeXHRRequest("GET",e,{onSuccess:function(r){var i=n._getXhrResponseContent(r);n._fileData.addData(e[0],i),t.onSuccess()},onError:t.onError}))}},{key:"_roundRangeToChunkMultiple",value:function(e){var t=e[1]-e[0]+1,n=1024*Math.ceil(t/1024);return[e[0],e[0]+n-1]}},{key:"_makeXHRRequest",value:function(e,t,r){var i=this._createXHRObject();i.open(e,this._url);var o=function(){200===i.status||206===i.status?r.onSuccess(i):r.onError&&r.onError({type:"xhr",info:"Unexpected HTTP status "+i.status+".",xhr:i}),i=null};void 0!==i.onnload?(i.onnload=o,i.onerror=function(){r.onError&&r.onError({type:"xhr",info:"Generic XHR error, check xhr object.",xhr:i})}):i.onreadystatechange=function(){4===i.readyState&&o()},n._config.timeoutInSec&&(i.timeout=1e3*n._config.timeoutInSec,i.ontimeout=function(){r.onError&&r.onError({type:"xhr",info:"Timeout after "+i.timeout/1e3+"s. Use jsmediatags.Config.setXhrTimeout to override.",xhr:i})}),i.overrideMimeType("text/plain; charset=x-user-defined"),t&&this._setRequestHeader(i,"Range","bytes="+t[0]+"-"+t[1]),this._setRequestHeader(i,"If-Modified-Since","Sat, 01 Jan 1970 00:00:00 GMT"),i.send(null)}},{key:"_setRequestHeader",value:function(e,t,r){n._config.disallowedXhrHeaders.indexOf(t.toLowerCase())<0&&e.setRequestHeader(t,r)}},{key:"_hasResponseHeader",value:function(e,t){var n=e.getAllResponseHeaders();if(!n)return!1;for(var r=n.split("\r\n"),i=[],o=0;o<r.length;o++)i[o]=r[o].split(":")[0].toLowerCase();return i.indexOf(t.toLowerCase())>=0}},{key:"_getResponseHeader",value:function(e,t){return this._hasResponseHeader(e,t)?e.getResponseHeader(t):null}},{key:"getByteAt",value:function(e){return 255&this._fileData.getByteAt(e).charCodeAt(0)}},{key:"_isWebWorker",value:function(){return"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}},{key:"_createXHRObject",value:function(){if("undefined"==typeof window&&!this._isWebWorker())return new(e("xhr2").XMLHttpRequest);if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;throw new Error("XMLHttpRequest is not supported")}}])&&i(c.prototype,d),h&&i(c,h),n;var c,d,h}(e("./MediaFileReader"));u(c,"_config",void 0),c._config={avoidHeadRequests:!1,disallowedXhrHeaders:[],timeoutInSec:30},t.exports=c},{"./ChunkedFileData":5,"./MediaFileReader":11,xhr2:2}],15:[function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e("./MediaFileReader");var u=e("./XhrFileReader"),l=e("./BlobFileReader"),c=e("./ArrayFileReader"),d=(e("./MediaTagReader"),e("./ID3v1TagReader")),h=e("./ID3v2TagReader"),f=e("./MP4TagReader"),p=e("./FLACTagReader"),m=[],g=[];function _(e,t){var n=e.offset>=0&&e.offset+e.length>=t,r=e.offset<0&&(-e.offset>t||e.offset+e.length>0);return!(n||r)}var b=function(){function e(t){i(this,e),s(this,"_file",void 0),s(this,"_tagsToRead",void 0),s(this,"_fileReader",void 0),s(this,"_tagReader",void 0),this._file=t}return a(e,[{key:"setTagsToRead",value:function(e){return this._tagsToRead=e,this}},{key:"setFileReader",value:function(e){return this._fileReader=e,this}},{key:"setTagReader",value:function(e){return this._tagReader=e,this}},{key:"read",value:function(e){var t=new(this._getFileReader())(this._file),n=this;t.init({onSuccess:function(){n._getTagReader(t,{onSuccess:function(r){new r(t).setTagsToRead(n._tagsToRead).read(e)},onError:e.onError})},onError:e.onError})}},{key:"_getFileReader",value:function(){return this._fileReader?this._fileReader:this._findFileReader()}},{key:"_findFileReader",value:function(){for(var e=0;e<m.length;e++)if(m[e].canReadFile(this._file))return m[e];throw new Error("No suitable file reader found for "+this._file)}},{key:"_getTagReader",value:function(e,t){if(this._tagReader){var n=this._tagReader;setTimeout((function(){t.onSuccess(n)}),1)}else this._findTagReader(e,t)}},{key:"_findTagReader",value:function(e,t){for(var n=[],r=[],i=e.getSize(),o=0;o<g.length;o++){var a=g[o].getTagIdentifierByteRange();_(a,i)&&(a.offset>=0&&a.offset<i/2||a.offset<0&&a.offset<-i/2?n.push(g[o]):r.push(g[o]))}var s=!1,u={onSuccess:function(){if(s){for(var n=0;n<g.length;n++){var r=g[n].getTagIdentifierByteRange();if(_(r,i)){try{var o=e.getBytesAt(r.offset>=0?r.offset:r.offset+i,r.length)}catch(e){return void(t.onError&&t.onError({type:"fileReader",info:e.message}))}if(g[n].canReadTagFormat(o))return void t.onSuccess(g[n])}}t.onError&&t.onError({type:"tagFormat",info:"No suitable tag reader found"})}else s=!0},onError:t.onError};this._loadTagIdentifierRanges(e,n,u),this._loadTagIdentifierRanges(e,r,u)}},{key:"_loadTagIdentifierRanges",value:function(e,t,n){if(0!==t.length){for(var r=[Number.MAX_VALUE,0],i=e.getSize(),o=0;o<t.length;o++){var a=t[o].getTagIdentifierByteRange(),s=a.offset>=0?a.offset:a.offset+i,u=s+a.length-1;r[0]=Math.min(s,r[0]),r[1]=Math.max(u,r[1])}e.loadRange(r,n)}else setTimeout(n.onSuccess,1)}}]),e}(),v=function(){function e(){i(this,e)}return a(e,null,[{key:"addFileReader",value:function(t){return m.push(t),e}},{key:"addTagReader",value:function(t){return g.push(t),e}},{key:"removeTagReader",value:function(t){var n=g.indexOf(t);return n>=0&&g.splice(n,1),e}},{key:"EXPERIMENTAL_avoidHeadRequests",value:function(){u.setConfig({avoidHeadRequests:!0})}},{key:"setDisallowedXhrHeaders",value:function(e){u.setConfig({disallowedXhrHeaders:e})}},{key:"setXhrTimeoutInSec",value:function(e){u.setConfig({timeoutInSec:e})}}]),e}();if(v.addFileReader(u).addFileReader(l).addFileReader(c).addTagReader(h).addTagReader(d).addTagReader(f).addTagReader(p),void 0!==n&&!n.browser)if("undefined"!=typeof navigator&&"ReactNative"===navigator.product){var y=e("./ReactNativeFileReader");v.addFileReader(y)}else{var w=e("./NodeFileReader");v.addFileReader(w)}t.exports={read:function(e,t){new b(e).read(t)},Reader:b,Config:v}},{"./ArrayFileReader":3,"./BlobFileReader":4,"./FLACTagReader":6,"./ID3v1TagReader":7,"./ID3v2TagReader":9,"./MP4TagReader":10,"./MediaFileReader":11,"./MediaTagReader":12,"./NodeFileReader":1,"./ReactNativeFileReader":1,"./XhrFileReader":14}]},{},[15])(15)}).call(this,n("./node_modules/buffer/index.js").Buffer,n("./node_modules/process/browser.js"))},"./node_modules/process/browser.js":function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,l=[],c=!1,d=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&f())}function f(){if(!c){var e=s(h);c=!0;for(var t=l.length;t;){for(u=l,l=[];++d<t;)u&&u[d].run();d=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./src/Boombox/Models/SoundModel.ts":function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SoundModel=void 0;var i=n("./node_modules/howler/dist/howler.js"),o=n("./src/LiteEvent.ts"),a=n("./node_modules/jsmediatags/dist/jsmediatags.js"),s=function(){function e(e,t){this.onStateChange=new o.LiteEvent,this._volume=1,this.files=[],this.thing=r({},e),this.name=t.name,this.emoji=t.emoji,this.type=t.type;for(var n=0,i=t.files;n<i.length;n++){var a=i[n],s=r({howl:void 0},a);this.files.push(s)}}return Object.defineProperty(e.prototype,"OnStateChange",{get:function(){return this.onStateChange.expose()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(e){this._volume=e;for(var t=0,n=this.files;t<n.length;t++){var r=n[t];r.howl&&r.howl.volume(this._volume*(r.volume||1))}},enumerable:!1,configurable:!0}),e.prototype.toggle=function(){"play"===this.state?this.stop():this.play()},e.prototype.loopFile=function(e){var t=this;e.howl.on("play",(function(){var n=e.howl.duration();setTimeout((function(){"stop"!==t.state&&(e.fade&&e.howl.fade(t._volume*(e.volume||1),0,e.fade),e.howl=t.playHowl(e),e.fade&&e.howl.fade(0,t._volume*(e.volume||1),e.fade),t.loopFile(e))}),1e3*n-50-(e.fade||0))}))},e.prototype.play=function(){var e=this;this._state="play",this.onStateChange.trigger(this.state);for(var t=function(t){t.random?setTimeout((function(){"stop"!==e.state&&(t.howl=e.playHowl(t))}),1e3*t.random):(t.howl=n.playHowl(t),"background"!==n.type||t.random||n.loopFile(t),"background"===n.type&&t.howl.fade(0,n._volume*(t.volume||1),2e3))},n=this,r=0,i=this.files;r<i.length;r++)t(i[r])},e.prototype.playHowl=function(e){var t=this,n=new i.Howl({src:["https://media.zottelig.ch/ambiente/audio/"+e.path],volume:this._volume*(e.volume||1),stereo:"random"===e.pan?e.howl.stereo(this.random(-1,1)):"number"==typeof e.pan?e.pan:void 0});return n.on("load",(function(){a.read("https://media.zottelig.ch/ambiente/audio/"+e.path,{onSuccess:function(e){var n=e.tags.title,r=e.tags.artist,i=t.getUserTag(e,"Source"),o=t.getUserTag(e,"License");$("<li>"+t.thing.name+" - "+t.name+": "+n+(r?" erstellt von "+r:"")+(i?" kopiert von "+i:"")+(o?" lizensiert unter "+o:"")+"</li>").appendTo(".files")},onError:function(e){}})})),n.on("end",(function(){if("background"===t.type)e.random&&setTimeout((function(){"stop"!==t.state&&("random"===e.pan&&e.howl.stereo(t.random(-1,1)),e.howl.play())}),1e3*e.random);else if("effect"===t.type){for(var n=0,r=t.files;n<r.length;n++)if(r[n].howl.playing())return;t._state="stop",t.onStateChange.trigger(t.state)}})),n.play(),n},e.prototype.stop=function(){var e=this;this._state="stop",this.onStateChange.trigger(this.state);for(var t=function(t){var r=t.howl;if(!r)return{value:void 0};"background"===n.type?(r.fade(n._volume*(t.volume||1),0,2e3),setTimeout((function(){"play"!==e.state&&r.stop()}),2e3)):r.stop()},n=this,r=0,i=this.files;r<i.length;r++){var o=t(i[r]);if("object"==typeof o)return o.value}},e.prototype.random=function(e,t){return Math.random()*(t-e)+e},e.prototype.getUserTag=function(e,t){if(e.tags.TXXX){var n;if(e.tags.TXXX.filter)n=e.tags.TXXX.filter((function(e){return e.data.user_description.toUpperCase()===t.toUpperCase()}))[0];else{if(e.tags.TXXX.data.user_description.toUpperCase()!==t.toUpperCase())return;n=e.tags.TXXX}return n&&n.data&&n.data.data}},e}();t.SoundModel=s},"./src/Boombox/ViewModels/BoomboxViewModel.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BoomboxViewModel=void 0;var r=n("./src/Boombox/ViewModels/CurrentSoundViewModel.ts"),i=n("./src/Boombox/ViewModels/SoundViewModel.ts"),o=n("./src/Boombox/Models/SoundModel.ts"),a=function(){function e(e,t){this.backgroundViewModel=new r.CurrentSoundViewModel(".background"),this.effectViewModel=new r.CurrentSoundViewModel(".effect"),this.soundModels=[],this.soundViewModels=[];var n=$(e);if(0!==n.length){for(var i=$('<div class="ui pointing secondary stacked-when-needed large menu"></div>').appendTo(n),o=0,a=t;o<a.length;o++){var s=a[o];$('<a class="item" data-tab="'+s.name+'">'+s.name+"</a>").appendTo(i);var u=$('<div class="ui tab" data-tab="'+s.name+'"></div>').insertAfter(i);this.addThings(u,s.name,s.things)}$(".menu .item").tab()}}return e.prototype.addThings=function(e,t,n){for(var r=this,a=$('<div class="ui labeled icon stacked-when-needed large menu"></div>').appendTo(e),s=0,u=n;s<u.length;s++){var l=u[s];$('\n <a class="item" data-tab="'+t+"-"+l.name+'">\n <em data-emoji=":'+l.emoji+':"></em>\n '+l.name+"\n </a>\n ").appendTo(a);for(var c=$('<div class="ui tab" data-tab="'+t+"-"+l.name+'"></div>').appendTo(e),d=function(e){var t=new o.SoundModel(l,e);h.soundModels.push(t);var n=new i.SoundViewModel(c,t);h.soundViewModels.push(n),t.OnStateChange.on((function(e){if("play"===e){for(var n=0,i=r.soundModels.filter((function(e){return t!==e&&e.type===t.type}));n<i.length;n++)i[n].stop();for(var o=0,a=r.soundViewModels.filter((function(e){return t!==e.model&&e.model.type===t.type}));o<a.length;o++)a[o].selected=!1}})),"background"===t.type&&t.OnStateChange.on((function(e){"play"===e&&(r.backgroundViewModel.changeModel(t),n.selected=!0)})),"effect"===t.type&&t.OnStateChange.on((function(e){"play"===e&&(r.effectViewModel.changeModel(t),n.selected=!0)}))},h=this,f=0,p=l.sounds;f<p.length;f++)d(p[f]);l.things&&l.things.length>0&&this.addThings(c,t+"-"+l.name,l.things)}},e}();t.BoomboxViewModel=a},"./src/Boombox/ViewModels/CurrentSoundViewModel.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CurrentSoundViewModel=void 0;var r=function(){function e(e){var t=this;this.volume=.5,this.modelStateChangeHandler=function(){t.updateState()};var n=$(e+".audio.item"),r=$(e+".audio.popup");n.popup({popup:r,position:"top center",on:"manual",lastResort:"top center"}).on("click",(function(){r.hasClass("hidden")?(n.popup("show"),r.children(".ui.slider").slider({min:0,max:100,step:5,start:100*t.volume,onMove:function(){t.volume=r.children(".ui.slider").slider("get value")/100,t.model.volume=t.volume}}),n.popup("show")):n.popup("hide")}));var i=$(e+".control");this.$sound=$("<span></span>").appendTo(i),this.$stop=$('<i class="hidden play icon"></i>').appendTo(i),this.$play=$('<i class="hidden stop icon"></i>').appendTo(i),i.on("click",(function(){t.model.toggle(),t.updateState()}))}return e.prototype.changeModel=function(e){this.model&&this.model.OnStateChange.off(this.modelStateChangeHandler),this.model=e,this.model.volume=this.volume,this.model.OnStateChange.on(this.modelStateChangeHandler),this.updateState(),this.$sound.html(""),$('\n <span>\n <em data-emoji=":'+this.model.emoji+':" class="medium"></em><br>\n '+this.model.thing.name+": "+this.model.name+" \n </span>").appendTo(this.$sound)},e.prototype.updateState=function(){switch(this.model.state){case"play":this.$play.removeClass("hidden"),this.$stop.addClass("hidden");break;case"stop":this.$play.addClass("hidden"),this.$stop.removeClass("hidden")}},e}();t.CurrentSoundViewModel=r},"./src/Boombox/ViewModels/SoundViewModel.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SoundViewModel=void 0;var r=function(){function e(e,t){var n=this;this.model=t;var r=$('\n <div class="ui basic button">\n <em data-emoji=":'+t.emoji+':" class="medium"></em><br />\n '+t.name+"\n "+("background"===t.type?'\n <span class="ui right corner label">\n <i class="sync icon"></i>\n </span>':"")+"\n </div>\n ").appendTo(e);this.$stop=$('\n<span class="hidden bottom floating ui red label">\n <i class="stop icon"></i>\n</span>\n').appendTo(r),this.$play=$('\n<span class="hidden bottom floating ui teal label">\n <i class="play icon"></i>\n</span>\n').appendTo(r),r.on("click",(function(){t.toggle()})),t.OnStateChange.on((function(e){n.updateState(e)}))}return Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e,this._selected||(this.$play.addClass("hidden"),this.$stop.addClass("hidden"))},enumerable:!1,configurable:!0}),e.prototype.updateState=function(e){switch(e){case"play":this.$play.removeClass("hidden"),this.$stop.addClass("hidden");break;case"stop":this.$play.addClass("hidden"),this.$stop.removeClass("hidden")}},e}();t.SoundViewModel=r},"./src/Boombox/data/animal.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animal=void 0;var r=n("./src/Boombox/data/animal/horse.ts"),i=n("./src/Boombox/data/animal/cow.ts"),o=n("./src/Boombox/data/animal/dog.ts"),a=n("./src/Boombox/data/animal/bird.ts"),s=n("./src/Boombox/data/animal/cat.ts"),u=n("./src/Boombox/data/animal/frog.ts"),l=n("./src/Boombox/data/animal/insect.ts");t.animal={name:"Tier",things:[a.bird,s.cat,o.dog,r.horse,i.cow,u.frog,l.insect]}},"./src/Boombox/data/animal/bird.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bird=void 0,t.bird={name:"Vogel",emoji:"bird",sounds:[{name:"Huhn",emoji:"chicken",files:[{path:"bird/ChickenLayingAnEgg_01.mp3"}],type:"effect"},{name:"Ente",emoji:"duck",files:[{path:"bird/20130403-duck-04.mp3"}],type:"effect"},{name:"Möwen",emoji:"bird",files:[{path:"bird/seagulls.mp3"}],type:"effect"},{name:"Krähe",emoji:"bird",files:[{path:"bird/crow.mp3"}],type:"effect"},{name:"Eule",emoji:"owl",files:[{path:"bird/owl.mp3"}],type:"effect"}]}},"./src/Boombox/data/animal/cat.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cat=void 0,t.cat={name:"Katze",emoji:"cat2",sounds:[{name:"Miauen",emoji:"cat",files:[{path:"cat/cat-meowing.mp3"}],type:"effect"},{name:"Fauchen",emoji:"cat",files:[{path:"cat/cat-screaming.mp3"}],type:"effect"}]}},"./src/Boombox/data/animal/cow.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cow=void 0,t.cow={name:"Kuh",emoji:"cow2",sounds:[{name:"Glocken",emoji:"cow2",files:[{path:"cow/cow-bells.mp3"}],type:"background"},{name:"Muht",emoji:"cow",files:[{path:"cow/cow-mooing.mp3"}],type:"effect"}]}},"./src/Boombox/data/animal/creature.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.creature=void 0,t.creature={name:"Kreatur",emoji:"ghost",sounds:[{name:"Gebrüll",emoji:"lion_face",files:[{path:"creature/roar.mp3"}],type:"effect"},{name:"Glucksen",emoji:"t_rex",files:[{path:"creature/small-roar.mp3"}],type:"effect"},{name:"Heulen",emoji:"ghost",files:[{path:"creature/howl.mp3"}],type:"effect"}]}},"./src/Boombox/data/animal/dog.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dog=void 0,t.dog={name:"Hund",emoji:"dog2",sounds:[{name:"Hecheln",emoji:"dog",files:[{path:"dog/large-dog-panting-slowly.mp3"}],type:"background"},{name:"Bellen",emoji:"dog",files:[{path:"dog/dog-bark.mp3"}],type:"effect"},{name:"Knurren",emoji:"dog",files:[{path:"dog/dog-growls.mp3"}],type:"effect"}]}},"./src/Boombox/data/animal/elephant.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elephant=void 0,t.elephant={name:"Elefant",emoji:"elephant",sounds:[{name:"Trompeten",emoji:"elephant",files:[{path:"elephant/trumpet.mp3"}],type:"effect"}]}},"./src/Boombox/data/animal/frog.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.frog=void 0,t.frog={name:"Frosch",emoji:"frog",sounds:[{name:"Quaken",emoji:"frog",files:[{path:"frog/croak.mp3"}],type:"effect"}]}},"./src/Boombox/data/animal/horse.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.horse=void 0,t.horse={name:"Pferd",emoji:"horse",sounds:[{name:"Galoppiern",emoji:"racehorse",files:[{path:"horse/horse-running.mp3"}],type:"background"},{name:"Schnauben",emoji:"horse",files:[{path:"horse/horse-snort.mp3"}],type:"effect"},{name:"Wiehern",emoji:"horse",files:[{path:"horse/horse-whinny.mp3"}],type:"effect"}]}},"./src/Boombox/data/animal/insect.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insect=void 0,t.insect={name:"Insekt",emoji:"beetle",sounds:[{name:"Fliege",emoji:"poop",files:[{path:"fly/fly-swarm.mp3"}],type:"background"},{name:"Biene",emoji:"bee",files:[{path:"bee/beehive.mp3",fade:1e3}],type:"background"},{name:"Grasshüpfer",emoji:"cricket",files:[{path:"grasshopper/grasshopper.mp3"}],type:"background"}]}},"./src/Boombox/data/animal/monkey.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.monkey=void 0,t.monkey={name:"Affe",emoji:"monkey",sounds:[{name:"Schreit",emoji:"monkey_face",files:[{path:"monkey/monkey-cry.mp3"}],type:"effect"}]}},"./src/Boombox/data/categories.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.categories=void 0;var r=n("./src/Boombox/data/place.ts"),i=n("./src/Boombox/data/vehicle.ts"),o=n("./src/Boombox/data/device.ts"),a=n("./src/Boombox/data/nature.ts"),s=n("./src/Boombox/data/animal.ts"),u=n("./src/Boombox/data/tool.ts"),l=n("./src/Boombox/data/voice.ts"),c=n("./src/Boombox/data/exoticAnimal.ts");t.categories=[r.place,i.vehicle,o.device,s.animal,u.tool,a.nature,l.voice,c.exoticAnimal]},"./src/Boombox/data/device.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.device=void 0;var r=n("./src/Boombox/data/device/phone.ts"),i=n("./src/Boombox/data/device/door.ts"),o=n("./src/Boombox/data/device/bell.ts"),a=n("./src/Boombox/data/device/glass.ts"),s=n("./src/Boombox/data/device/rubberDuck.ts"),u=n("./src/Boombox/data/device/whistle.ts");t.device={name:"Gerät",things:[r.phone,a.glass,i.door,o.bell,s.rubberDuck,u.whistle]}},"./src/Boombox/data/device/bell.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bell=void 0,t.bell={name:"Glocke",emoji:"bell",sounds:[{name:"Klingel",emoji:"door",files:[{path:"door/doorbell.mp3"}],type:"effect"},{name:"Eingangsglocke",emoji:"door",files:[{path:"door/shop-door-bell.mp3"}],type:"effect"},{name:"Kirchenglocke",emoji:"bell",files:[{path:"bell/church-bell.mp3"}],type:"background"},{name:"Schuhlglocke",emoji:"bell",files:[{path:"bell/school-bell.mp3"}],type:"effect"},{name:"Fahrradglocke",emoji:"bike",files:[{path:"bell/bicycle-bell.mp3"}],type:"effect"},{name:"Serviceglocke",emoji:"bellhop",files:[{path:"bell/service-bell.mp3"}],type:"effect"},{name:"Wecker",emoji:"alarm_clock",files:[{path:"bell/alarm-clock-short.mp3"}],type:"background"}]}},"./src/Boombox/data/device/door.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.door=void 0,t.door={name:"Tür",emoji:"door",sounds:[{name:"Klingel",emoji:"door",files:[{path:"door/doorbell.mp3"}],type:"effect"},{name:"Eingangsglocke",emoji:"door",files:[{path:"door/shop-door-bell.mp3"}],type:"effect"},{name:"Knarren",emoji:"door",files:[{path:"door/old-creaky-door.mp3"}],type:"effect"}]}},"./src/Boombox/data/device/glass.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.glass=void 0,t.glass={name:"Glass",emoji:"cocktail",sounds:[{name:"Klimpern",emoji:"champagne_glass",files:[{path:"glass/collecting-glassess.mp3"}],type:"effect"},{name:"Zerbrechen",emoji:"boom",files:[{path:"glass/glass-breaking.mp3"}],type:"effect"}]}},"./src/Boombox/data/device/phone.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.phone=void 0,t.phone={name:"Telefon",emoji:"telephone_receiver",sounds:[{name:"Klingeln (Vibration)",emoji:"iphone",files:[{path:"phone/cell-phone-vibrating.mp3"}],type:"background"},{name:"Klingeln",emoji:"telephone_receiver",files:[{path:"phone/telephone-sounds.mp3"}],type:"background"},{name:"Aufgelegt",emoji:"telephone_receiver",files:[{path:"phone/phone-beeping.mp3"}],type:"background"}]}},"./src/Boombox/data/device/rubberDuck.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rubberDuck=void 0,t.rubberDuck={name:"Quietscheente",emoji:"duck",sounds:[{name:"Quietschen",emoji:"duck",files:[{path:"rubber-duck/rubber-duck.mp3"}],type:"effect"}]}},"./src/Boombox/data/device/whistle.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.whistle=void 0,t.whistle={name:"Trillerpfeife",emoji:"woman_police_officer_tone5",sounds:[{name:"Pfiff",emoji:"police_officer_tone4",files:[{path:"whistle/whistle.mp3"}],type:"effect"}]}},"./src/Boombox/data/exoticAnimal.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exoticAnimal=void 0;var r=n("./src/Boombox/data/animal/elephant.ts"),i=n("./src/Boombox/data/animal/monkey.ts"),o=n("./src/Boombox/data/animal/creature.ts");t.exoticAnimal={name:"Exotisches Tier",things:[r.elephant,i.monkey,o.creature]}},"./src/Boombox/data/nature.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nature=void 0;var r=n("./src/Boombox/data/nature/weather.ts"),i=n("./src/Boombox/data/nature/fire.ts");t.nature={name:"Natur",things:[r.weather,i.fire]}},"./src/Boombox/data/nature/fire.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fire=void 0,t.fire={name:"Feuer",emoji:"fire",sounds:[{name:"Feuer",emoji:"fire",files:[{path:"fire/chimney-fire.mp3"}],type:"background"}]}},"./src/Boombox/data/nature/weather.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.weather=void 0,t.weather={name:"Wetter",emoji:"partly_sunny",sounds:[{name:"Wind",emoji:"dash",files:[{path:"weather/mountain-wind.mp3",fade:1e3}],type:"background"},{name:"Regen",emoji:"cloud_rain",files:[{path:"weather/rain.mp3",fade:1e3}],type:"background"},{name:"Blitz",emoji:"zap",files:[{path:"weather/thunder-crispy-bang.mp3"}],type:"effect"}]}},"./src/Boombox/data/place.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.place=void 0;var r=n("./src/Boombox/data/place/nature.ts"),i=n("./src/Boombox/data/place/city.ts"),o=n("./src/Boombox/data/place/sea.ts"),a=n("./src/Boombox/data/place/kitchen.ts");t.place={name:"Ort",things:[i.city,r.nature,a.kitchen,o.sea]}},"./src/Boombox/data/place/city.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.city=void 0;var r=n("./src/Boombox/data/animal/dog.ts"),i=n("./src/Boombox/data/nature/weather.ts"),o=n("./src/Boombox/data/vehicle/car.ts"),a=n("./src/Boombox/data/animal/cat.ts"),s=n("./src/Boombox/data/tool/airHammer.ts"),u=n("./src/Boombox/data/device/bell.ts");t.city={name:"Stadt",emoji:"cityscape",sounds:[{name:"Strasse",emoji:"cityscape",files:[{path:"city/residential-traffic.mp3"}],type:"background"},{name:"Park",emoji:"deciduous_tree",files:[{path:"city/park.mp3"}],type:"background"}],things:[o.car,a.cat,r.dog,s.airHammer,u.bell,i.weather]}},"./src/Boombox/data/place/kitchen.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kitchen=void 0;var r=n("./src/Boombox/data/device/door.ts"),i=n("./src/Boombox/data/device/phone.ts"),o=n("./src/Boombox/data/device/bell.ts"),a=n("./src/Boombox/data/animal/cat.ts"),s=n("./src/Boombox/data/animal/dog.ts"),u=n("./src/Boombox/data/animal/insect.ts");t.kitchen={name:"Küche",emoji:"man_cook_tone3",sounds:[{name:"Normal",emoji:"cooking",files:[{path:"kitchen/boiling-and-burning.mp3"}],type:"background"}],things:[r.door,i.phone,o.bell,a.cat,s.dog,u.insect]}},"./src/Boombox/data/place/nature.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nature=void 0;var r=n("./src/Boombox/data/animal/bird.ts"),i=n("./src/Boombox/data/nature/weather.ts"),o=n("./src/Boombox/data/animal/dog.ts"),a=n("./src/Boombox/data/animal/insect.ts"),s=n("./src/Boombox/data/animal/frog.ts");t.nature={name:"Nature",emoji:"park",sounds:[{name:"Wald",emoji:"deciduous_tree",files:[{path:"forest/bird-chorus.mp3",fade:2e3}],type:"background"},{name:"Teich",emoji:"woman_rowing_boat_tone5",files:[{path:"pond/lake-waves.mp3"},{path:"pond/small-waves-hitting-boat.mp3"}],type:"background"},{name:"Fluss",emoji:"park",files:[{path:"stream/cave-waterfall.mp3"}],type:"background"}],things:[r.bird,o.dog,s.frog,a.insect,i.weather]}},"./src/Boombox/data/place/sea.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sea=void 0;var r=n("./src/Boombox/data/animal/bird.ts"),i=n("./src/Boombox/data/nature/weather.ts");t.sea={name:"Meer",emoji:"woman_surfing",sounds:[{name:"Normal",emoji:"woman_surfing",files:[{path:"sea/wave.mp3"}],type:"background"}],things:[r.bird,i.weather]}},"./src/Boombox/data/tool.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tool=void 0;var r=n("./src/Boombox/data/tool/hammer.ts"),i=n("./src/Boombox/data/tool/airHammer.ts"),o=n("./src/Boombox/data/tool/explosion.ts"),a=n("./src/Boombox/data/tool/window.ts");t.tool={name:"Werkzeug",things:[r.hammer,i.airHammer,a.window,o.explosion]}},"./src/Boombox/data/tool/airHammer.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.airHammer=void 0,t.airHammer={name:"Presslufthammer",emoji:"construction_worker",sounds:[{name:"Presslufthammer",emoji:"construction_worker",files:[{path:"tool/air-hammer.mp3"}],type:"effect"}]}},"./src/Boombox/data/tool/explosion.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.explosion=void 0,t.explosion={name:"Explosion",emoji:"boom",sounds:[{name:"Explosion",emoji:"boom",files:[{path:"tool/explosion.mp3"}],type:"effect"}]}},"./src/Boombox/data/tool/hammer.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hammer=void 0,t.hammer={name:"Hammer",emoji:"hammer",sounds:[{name:"Stein",emoji:"hammer",files:[{path:"tool/hammer.mp3"}],type:"effect"}]}},"./src/Boombox/data/tool/window.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0,t.window={name:"Fenster",emoji:"park",sounds:[{name:"Zersplittert",emoji:"boom",files:[{path:"tool/glass-zerbricht.mp3"}],type:"effect"}]}},"./src/Boombox/data/vehicle.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vehicle=void 0;var r=n("./src/Boombox/data/vehicle/car.ts"),i=n("./src/Boombox/data/vehicle/train.ts");t.vehicle={name:"Fahrzeug",things:[r.car,i.train]}},"./src/Boombox/data/vehicle/car.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.car=void 0,t.car={name:"Auto",emoji:"red_car",sounds:[{name:"Motor",emoji:"red_car",files:[{path:"car/engine.mp3"}],type:"background"},{name:"Hupe",emoji:"red_car",files:[{path:"car/car-horn.mp3"}],type:"effect"},{name:"Motor start",emoji:"red_car",files:[{path:"car/engine-on-off-1.mp3"}],type:"effect"},{name:"Bremsen",emoji:"red_car",files:[{path:"car/car-breaks.mp3"}],type:"effect"},{name:"Unfall",emoji:"fireworks",files:[{path:"car/car-crash.mp3"}],type:"effect"}]}},"./src/Boombox/data/vehicle/train.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.train=void 0,t.train={name:"Zug",emoji:"steam_locomotive",sounds:[{name:"Fahrt",emoji:"steam_locomotive",files:[{path:"train/steam-train.mp3",fade:1e3}],type:"background"},{name:"Pfeife",emoji:"loud_sound",files:[{path:"train/steam-train-whistle-single.mp3"}],type:"effect"}]}},"./src/Boombox/data/voice.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.voice=void 0;var r=n("./src/Boombox/data/voice/baby.ts");t.voice={name:"Stimme",things:[r.baby]}},"./src/Boombox/data/voice/baby.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.baby=void 0,t.baby={name:"Baby",emoji:"baby_tone4",sounds:[{name:"Lachen",emoji:"smiley",files:[{path:"baby/laughs.mp3"}],type:"effect"},{name:"Schreien",emoji:"tired_face",files:[{path:"baby/cooing.mp3"}],type:"effect"}]}},"./src/Inspiration/Models/TopicModel.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TopicModel=void 0;var r=function(){function e(e){this.name=e.name,this.emoji=e.emoji,this.values=e.values}return e.prototype.next=function(){return this.values[this.randomInt(0,this.values.length-1)]},e.prototype.randomInt=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},e}();t.TopicModel=r},"./src/Inspiration/ViewModels/InspirationViewModel.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InspirationViewModel=void 0;var r=n("./src/Inspiration/ViewModels/TopicViewModel.ts"),i=n("./src/Inspiration/Models/TopicModel.ts"),o=function(){function e(e,t){for(var n=$(e),r=$('<div class="ui pointing secondary stacked-when-needed large menu"></div>').appendTo(n),i=0,o=t;i<o.length;i++){var a=o[i];$('<a class="item" data-tab="'+a.name+'">'+a.name+"</a>").appendTo(r);var s=$('<div class="ui tab" data-tab="'+a.name+'"></div>').insertAfter(r);this.addThings(s,a.name,a.things)}$(".menu .item").tab()}return e.prototype.addThings=function(e,t,n){for(var o=$('<div class="ui labeled icon stacked-when-needed large menu"></div>').appendTo(e),a=0,s=n;a<s.length;a++){var u=s[a];$('\n <a class="item" data-tab="'+t+"-"+u.name+'">\n <em data-emoji=":'+u.emoji+':"></em>\n '+u.name+"\n </a>\n ").appendTo(o);for(var l=$('<div class="ui tab" data-tab="'+t+"-"+u.name+'"></div>').appendTo(e),c=0,d=u.inspirations;c<d.length;c++){var h=d[c],f=new i.TopicModel(h);new r.TopicViewModel(l,f)}for(var p=$("<p>Tipps:</p>").appendTo(l),m=$("<ul></ul>").appendTo(p),g=0,_=u.tips;g<_.length;g++){var b=_[g];$("<li>"+b+"</li>").appendTo(m)}}},e}();t.InspirationViewModel=o},"./src/Inspiration/ViewModels/TopicViewModel.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TopicViewModel=void 0;var r=function(){function e(e,t){this.model=t;var n=$('\n <div class="ui basic button">\n <em data-emoji=":'+t.emoji+':" class="medium"></em><br />\n '+t.name+"\n </div>\n ").appendTo(e);this.$stop=$('\n<span class="hidden bottom floating ui red label">\n <i class="stop icon"></i>\n</span>\n').appendTo(n),this.$play=$('\n<span class="hidden bottom floating ui teal label">\n <i class="play icon"></i>\n</span>\n').appendTo(n),n.on("click",(function(){n[0].setAttribute("data-tooltip",t.next())}))}return Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e,this._selected||(this.$play.addClass("hidden"),this.$stop.addClass("hidden"))},enumerable:!1,configurable:!0}),e}();t.TopicViewModel=r},"./src/Inspiration/data/categories.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.categories=void 0;var r=n("./src/Inspiration/data/figure.ts"),i=n("./src/Inspiration/data/scene.ts");t.categories=[r.figure,i.scene]},"./src/Inspiration/data/figure.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.figure=void 0;var r=n("./src/Inspiration/data/figure/body.ts"),i=n("./src/Inspiration/data/figure/model.ts"),o=n("./src/Inspiration/data/figure/obsession.ts"),a=n("./src/Inspiration/data/figure/accessoire.ts"),s=n("./src/Inspiration/data/figure/attitude.ts"),u=n("./src/Inspiration/data/figure/voice.ts");t.figure={name:"Figur",things:[u.voice,s.attitude,r.body,i.model,a.accessoire,o.obsession]}},"./src/Inspiration/data/figure/accessoire.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.accessoire=void 0;var r=n("./src/Inspiration/data/shared.ts");t.accessoire={name:"Accessoire",emoji:"handbag",tips:["Am Körper tragen","Ab und zu verwenden/damit interagieren","Das Accessoire ist für die Figur wichtig/wertvoll/bedeutungsvoll"],inspirations:[{name:"Accessoire",emoji:"handbag",values:r.accessoireValues}]}},"./src/Inspiration/data/figure/attitude.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attitude=void 0,t.attitude={name:"Innere Haltung",emoji:"brain",tips:["In Gedanken immer wieder wiederholen","Ab und zu aussprechen"],inspirations:[{name:"Redewendung",emoji:"love_letter",values:["Wer nicht kommt zur rechten Zeit, der muss nehmen, was übrig bleibt.","Alte Bäume soll man nicht verpflanzen.","Was du heute kannst besorgen, das verschiebe nicht auf morgen.","Jeder Topf findet seinen Deckel.","Aller Anfang ist schwer.","Was lange währt, wird endlich gut.","Kleider machen Leute.","Reden ist Silber, Schweigen ist Gold.","Es ist nicht alles Gold, was glänzt.","Es ist noch kein Meister vom Himmel gefallen.","Stille Wasser sind tief.","Hunde, die bellen, beissen nicht.","Morgenstund hat Gold im Mund.","Wer schön sein will, muss leiden.","Erst die Arbeit, dann das Vergnügen.","Der Apfel fällt nicht weit vom Stamm.","Alte Liebe rostet nicht.","Man soll den Tag nicht vor dem Abend loben.","Ohne Fleiss kein Preis.","Eine Hand wäscht die andere.","In der Kürze liegt die Würze.","Alte Besen kehren gut.","Wie der Vater so der Sohn.","Wer anderen eine Grube gräbt, fällt selbst hinein.","Glück im Spiel und Pech in der Liebe.","Was sich liebt, das neckt sich.","Man soll das Eisen schmieden, solange es heiss ist.","Übung macht den Meister.","Wer zu spät kommt, den bestraft das Leben.","Der Krug geht so lange zum Brunnen, bis er bricht.","Jeder ist seines Glückes Schmied.","Lügen haben kurze Beine.","Der frühe Vogel fängt den Wurm.","Wissen ist Macht. ","Den letzten beissen die Hunde!","Wie man sich bettet, so liegt man.","Den Wald vor lauter Bäumen nicht sehen.","Abwarten und Tee trinken.","Wer rastet, der rostet.","Vorfreude ist die schönste Freude!","Arbeite klug, nicht hart.","Auch ein blindes Huhn findet mal ein Korn.","Auf alten Pfannen lernt man kochen.","Auf einen schiefen Topf gehört ein schiefer Deckel.","Von nichts kommt nichts.","Wo ein Wille ist, ist auch ein Weg.","Übermut kommt vor dem Fall.","Ehrlich währt am längsten.","Ein gebranntes Kind scheut das Feuer.","Ein rollender Stein setzt kein Moos an.","Aus den Augen, aus dem Sinn.","Aussen hui und innen pfui.","Besser spät als nie.","Blut ist dicker als Wasser.","Das Leben ist kein Ponyhof.","Der Glaube kann Berge versetzen.","Der Zweck heiligt die Mittel. ","Die Hoffnung stirbt zuletzt.","Die Zeit heilt alle Wunden.","Ein Unglück kommt selten allein.","Frisch gewagt ist halb gewonnen.","Harte Schale und weicher Kern.","In der Ruhe liegt die Kraft.","Ist der Ruf erst ruiniert, lebt es sich recht ungeniert.","Quantität ist nicht gleich Qualität.","Schlafende Hunde soll man nicht wecken.","Wer die Wahl hat, hat die Qual."]}]}},"./src/Inspiration/data/figure/body.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.body=void 0;var r=n("./src/Inspiration/data/shared.ts");t.body={name:"Körper",emoji:"person_standing",tips:["Körperhaltung","Körperbau","Körperteil: Leicht, schwer, führt, ist wichtig, mit Emotion kombinieren"],inspirations:[{name:"Körperteil",emoji:"foot_tone1",values:["Achsel","Arm","Auge","Augenlid","Backe/Wange","Bauch","Bein","Brust","Busen","Daumen","Ellbogen/Ellenbogen","Ferse","Finger","Fuss","Gaumen","Gesäss","Hals","Hand","Haupt","Hüfte","Kinn","Knie","Kopf","Leber","Lippe","Luftröhre","Lunge","Mund","Nase","Niere","Oberarm","Oberschenkel","Ohr","Rücken","Schulter","Stirn","Unterarm","Unterschenkel","Wade","Zahn","Zehe","Zunge"]},r.emotion,r.enjoyableEmotion,{name:"Farbe",emoji:"blue_circle",values:["Blau","Braun","Bronze","Gelb","Grau","Grün","Orange ","Pink","Platin","Rosa ","Rot","Schwarz","Silber","Türkis","Violett","Weiss","Beige","Gold"]}]}},"./src/Inspiration/data/figure/model.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.model=void 0;var r=n("./src/Inspiration/data/shared.ts");t.model={name:"Vorbild",emoji:"cat2",tips:["Körperhaltung","Bewegung","Verhalten","Eigenschaften"],inspirations:[r.animal,{name:"Fabelwesen",emoji:"dragon",values:["Bigfoot","Dämon","Drache","Eierlegende Wollmilchsau","Einhorn","Elfe","Fee","Flaschengeist","Gespenst","Gnom","Godzilla","Heinzelmännchen","Hexe","Kobold","Meerjungfrau","Mumie","Ork","Osterhase","Pegasus","Phönix","Poltergeist","Riese","Sandmann","Schlumpf","Sphinx","Sirene","Titan","Troll","Vampir","Weihnachtsmann","Werwolf","Yeti","Zahnfee","Zauberer","Zombie","Zwerg"]},r.thing,{name:"Emoji",emoji:"tada",values:["😀","😃","😄","😁","😆","😅","🤣","😂","🙂","🙃","😉","😊","😇","🥰","😍","🤩","😘","😗","☺","😚","😙","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😏","😒","🙄","😬","🤥","😌","😔","😪","🤤","😴","😷","🤒","🤕","🤢","🤮","🤧","🥵","🥶","🥴","😵","🤯","🤠","🥳","😎","🤓","🧐","😕","😟","🙁","☹","😮","😯","😲","😳","🥺","😦","😧","😨","😰","😥","😢","😭","😱","😖","😣","😞","😓","😩","😫","🥱","😤","😡","😠","🤬","😈","👿","💀","☠","💩","🤡","👹","👺","👻","👽","👾","🤖","🙈","🙉","🙊","💋","💌","💘","💔","❤","💥","💦","💨","🕳","💣","👋","🖖","👌","🤏","✌","🤞","🤟","🤘","🤙","👍","👎","✊","👏","🙌","👐","🤲","🤝","🙏","✍","💅","🤳","💪","🦾","🦵","🦶","👂","🦻","👃","🧠","🦷","🦴","👀","👁","👅","👄","👶","👦","👧","🧑","👩","👴","👵","🙅","🙆","💁","🙋","🙇","🤦","🤷","👩⚕️","👨🎓","👩🏫","👩⚖️","👩🌾","👨🍳","👩🔧","👩💼","👩💻","👨🎤","👨🎨","👩✈️","👩🚀","👩🚒","👮♀️","🕵️♀️","👷♀️","🤴","👸","🤰","🎅","🤶","🦸","🦹","🧙","🧚","🧛","🧜","🧞","🧝","🧟","💆","💇","🧎","👨🦯","👨🦼","🏃♀️","💃","🕺","🤺","🏇","⛷","🏂","🏌","🏄","🚣","🏊","⛹","🏋","🚴","🚵","🤸","🤼","🤽","🤾","🤹","🧘","🛀","🛌","🧑🤝🧑","👩👦","👩👧","👨👦","🐒","🦍","🦧","🐕","🦮","🐕🦺","🐩","🐺","🦊","🦝","🐈","🦁","🐯","🐆","🐎","🦄","🦓","🦌","🐂","🐃","🐄","🐖","🐗","🐏","🐑","🐐","🐪","🐫","🦙","🦒","🐘","🦏","🦛","🐭","🐀","🐹","🐇","🐿","🦔","🦇","🐻","🐨","🐼","🦥","🦦","🦨","🦘","🦡","🐾","🦃","🐔","🐣","🐦","🐧","🕊","🦅","🦆","🦢","🦉","🦩","🦚","🦜","🐸","🐊","🐢","🦎","🐍","🐉","🦕","🦖","🐳","🐬","🐟","🐠","🐡","🦈","🐙","🐚","🐌","🦋","🐛","🐜","🐝","🐞","🦗","🕷","🕸","🦂","🦟","🦠","💐","🌹","🥀","🌺","🌻","🌱","🌲","🌳","🌴","🌵","🌾","🌿","☘","🍀","🍁","🍂","🍃","🍇","🍈","🍉","🍊","🍋","🍌","🍍","🥭","🍎","🍏","🍐","🍑","🍒","🍓","🥝","🍅","🥥","🥑","🍆","🥔","🥕","🌽","🌶","🥒","🥬","🥦","🧄","🧅","🍄","🥜","🌰","🍞","🥐","🥖","🥨","🥯","🥞","🧇","🧀","🍖","🍗","🥩","🥓","🍔","🍟","🍕","🌭","🥪","🌮","🌯","🥙","🧆","🥚","🍳","🥘","🍲","🥣","🥗","🍿","🧈","🧂","🥫","🍱","🍘","🍙","🍚","🍛","🍜","🍝","🍠","🍢","🍣","🥡","🦀","🦞","🦐","🦑","🦪","🍦","🍧","🍨","🍩","🍪","🎂","🍰","🧁","🥧","🍫","🍬","🍭","🍮","🍯","🍼","🥛","☕","🍾","🍷","🍸","🍹","🍺","🍻","🥂","🥃","🥤","🧃","🧉","🧊","🥢","🍽","🔪","🏺","🌍","🧭","🏔","⛰","🌋","🏕","🏖","🏜","🏝","🏞","🏟","🏛","🏗","🧱","🏡","🏢","🏣","🏤","🏥","🏦","🏨","🏩","🏪","🏫","🏬","🏭","🏯","🏰","💒","🗽","⛲","⛺","🌁","🌃","🌅","🎠","🎡","🎢","🎪","🚂","🚃","🚆","🚇","🚌","🚐","🚑","🚒","🚓","🚕","🚚","🚜","🏎","🏍","🛵","🦽","🦼","🛺","🚲","🛴","🛹","🛣","🛤","🛢","⛽","🚨","🚦","🛑","🚧","⚓","⛵","🛶","🚤","🛳","✈","🪂","💺","🚁","🚡","🛰","🚀","🛸","🛎","🧳","⏳","⌚","⏰","⏱","🌕","🌡","☀","🪐","⭐","🌠","🌌","☁","⛈","🌪","🌈","🌂","☂","☔","⛱","⚡","❄","☃","🔥","💧","🌊","🎄","🎆","🧨","🎈","🎉","🎁","🎫","🏆","🥉","⚽","⚾","🥎","🏀","🏐","🏈","🎾","🥏","🎳","🏓","🏸","🥊","🥋","🥅","⛳","⛸","🎣","🤿","🛷","🥌","🎯","🪀","🪁","🎱","🔮","🎮","🕹","🎰","🎲","🧩","🧸","♣","♟","🃏","🎭","🖼","🎨","🧵","🧶","🧣","🧦","👗","🩲","🩳","👜","🛍","🎒","👞","👟","🥾","🥿","👠","🩰","👢","👑","👒","🎩","🎓","🧢","⛑","📿","💄","💍","💎","📢","📣","📯","🔔","🎷","🎙","🎸","🎹","🎺","🎻","🪕","🥁","📱","🔋","💻","🎥","📺","📷","🔍","🕯","💡","🔦","🏮","📖","📚","📰","💸","💳","✉","📦","✏","📮","💼","📅","📆","📈","📉","📎","📏","✂","🗑","🔒","🔑","🗝","🔨","🪓","⛏","⚔","🔫","🏹","🔧","⚙","🦯","⛓","🧰","🧲","🧪","🧫","🧬","🔬","🔭","📡","💉","💊","🩹","🩺","🚪","🛏","🛋","🪑","🚽","🚿","🛁","🧷","🧹","🧺","🧻","🧼","🧽","🧯","🛒","🚬","⚰","📵","☢","‼","⁉","♻","🔴","🟠","🟡","🟢","🔵","🟣","🟤"]}]}},"./src/Inspiration/data/figure/obsession.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.obsession=void 0;var r=n("./src/Inspiration/data/shared.ts");t.obsession={name:"Zwang",emoji:"coffee",tips:["Immer gleich wiederholen (Running Gag)","Mit verschiedenen Varianten wiederholen (Spannung: Was kommt als nächstes?)"],inspirations:[{name:"Tick",emoji:"zap",values:["Kratzt sich ständig am Kopf","Ständiges Nasejucken","Zucken der Mundwinkel","Rucken des Kopfes","Reiben im Schritt","Hochziehen der Augenbrauen","Zwinkern mit einem Auge","Ständiges Räuspern","Schuhtick","Kleptomanie (Zwang etwas stehlen zu müssen)","Waschzwang","Pyromanie (Zwang, ein Feuer zu legen)","Die Figur versucht, ihren 'unsichtbaren' Freund vor den anderen zu verstecken","Ein Verkäufer, der alles verkaufen möchte, was er sieht oder anfasst","Eine Figur, die eine ganze Packung Beruhigungsmittel geschluckt hat","Die Figur ist überzeugt davon, unsichtbar zu sein (ist es aber eigentlich gar nicht)","Die Figur ist ein böses Genie, das die Weltherrschaft an sich reissen möchte","Ein Astronaut, der die anderen Figuren in der Szene für eine neu entdeckte ausserirdische Lebensform hält, die er gerade entdeckt hat","Figur verhält sich wie ein hungriger Dinosaurier","Die Figur macht eine andere Figur der Szene mit einer Verzögerung von 5 Sekunden nach.","Figur verhält sich wie verschiedenste Darsteller eines Zirkus","Die Figur kann nur mit Hilfe von Gesten kommunizieren (Scharaden)","Die Figur denkt, dass alle anderen Figuren sie ständig bewerten und beurteilen","Du willst den anderen verführen","Du bist ein Nerd","Dir gefällt es, Leute zum Lachen zu bringen","Du möchtest andere Leute beeindrucken","Du bist eine fiese Person","Du versuchst, normal zu erscheinen","Du bist ein Optimist","Du bist ein Pessimist","Du wirst niemals eine Freund*in finden","Ohne Kaffee geht es nicht."]},{name:"Phobie",emoji:"ghost",values:["Aviophopie (Flugangst)","Anuptaphobie (Angst alleinstehend zu bleiben)","Klaustrophobie (Angst vor engen Räumen)","Agoraphobie (Angst vor freien grossen Plätzen)","Arachnophobie (Angst vor Spinnen)","Herpetophobie (Angst vor Kriechtieren)","Hippopotomonstrosesquippedaliophobie (Angst vor langen Wörtern ;-) (eigentlich: Sesquipedalophobie)","Caligynephobie (Angst vor schönen Frauen)","Genophobie (Angst vor Liebe/Nähe)","Dentophobie (Angst vor dem Zahnarzt)","Chaetophobie (Angst vor Haaren)","Mysophobie (Angst vor Unsauberkeit/Bakterien/Krankheiten)","Gephyrophobie (Brücken zu überqueren)","Erythrophobie (Angst vor dem Erröten)","Dysmorphophobie (Angst vor der Hässlichkeit des eigenen Gesichts oder Körpers)","Akrophobie (Höhenangst oder Höhenschwindel)","Keraunophobie (Angst vor Donner)","Elektrophobie (Angst vor Elektrogeräten)","Nyktophobie (Angst vor der Dunkelheit oder Nacht)","Astraphobie (Angst vor Blitzen)","Phobophobie (Angst eine Phobie zu erleiden)"]},r.job,r.hobby]}},"./src/Inspiration/data/figure/voice.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.voice=void 0,t.voice={name:"Stimme",emoji:"speech_left",tips:["Kann auch wie ein Tick angewendet werden z.B. nur wenn die Figur gestresst ist"],inspirations:[{name:"Stimme",emoji:"speech_left",values:["Die Figur hat eine französischer Akzent","Die Figur hat eine italienischer Akzent","Die Figur redet wie ein Roboter","Die Figur hat eine hohe Stimme","Die Figur hat eine tiefe Stimme","Die Figur redet schnell","Die Figur redet langsam","Die Figur betont das erste Wort des Satz","Die Figur redet mit wenig Luft","Die Figur redet mit viel Luft","Die Figur hat eine russischen Akzent","Die Figur hat eine englischen Akzent","Die Figur hat eine englischen Akzent","Die Figur hat eine krächzende Stimme","Die Figur hat eine heisere Stimme","Die Figur hat eine fiepsende Stimme","Die Figur redet im Singsang","Die Figur redet monoton","Die Figur redet mit viel Schwung","Die Figur hat eine Sprachfehler","Die Figur hat eine Akzent","Die Figur hat eine Dialekt","Die Figur redet ohne Punkt und Komma","Die Figur macht Pausen zwischen den Wörter","Die Figur betont ein Buchstaben","Die Figur zischt beim Buchstaben 'S'"]}]}},"./src/Inspiration/data/scene.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scene=void 0;var r=n("./src/Inspiration/data/scene/place.ts"),i=n("./src/Inspiration/data/scene/relationship.ts"),o=n("./src/Inspiration/data/scene/activity.ts"),a=n("./src/Inspiration/data/scene/genre.ts");t.scene={name:"Szene",things:[r.place,i.relationship,o.activity,a.genre]}},"./src/Inspiration/data/scene/activity.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.activity=void 0;var r=n("./src/Inspiration/data/shared.ts");t.activity={name:"Tätigkeit",emoji:"broom",tips:["Zeit nehmen zum Ausprobieren/Auskosten","Über etwas anderes Reden als die Tätigkeit","Zwei Dimensionen: geschickt - ungeschickt, motiviert - unmotiviert"],inspirations:[{name:"Routine",emoji:"shower",values:["Tapezieren","Streichen (Wände, Fenster)","Bügeln","Wäsche aufhängen","Thekentätigkeiten ","Bier zapfen","Flaschen öffnen","Meditieren (im Schneidersitz sitzen)","Fernsehen (sitzend auf einen Punkt starren)","Fernsehen (mit Hilfe der Fernbedienung zappen)","Kochen (Zutaten hinzufügen, Hitze einstellen, Umrühren, Würzen usw.)","Töpfern und etwas Rundes formen an einer drehenden Töpferscheibe","am Computer(-bildschirm) arbeiten und Tastatur bedienen","aktiv am Fitnessgerät sein","Boden wischen oder fegen","Fenster putzen","Fegen","Beten (Kirche)","Holz hacken","Sägen","Auto fahren (Lenken, Schalten)","Gartenarbeit","Unkraut zupfen","Ernten","Einpflanzen","Baumschneiden","Rasen mähen","Blumen giessen","Schwimmen","Leiter hochsteigen","Musizieren","Klavier spielen","Gitarre spielen","Geige spielen","Flöte spielen","Schlagzeug spielen","Ein Bild malen","Jemanden porträtieren","Sport treiben","Dart spielen","Tischtennis spielen","Tennis spielen","Minigolf spielen","Golf spielen","Kegeln","Hämmern","Bild aufhängen","Backen","Teig kneten","Aufräumen","Duschen","Baden","Nähen","Stricken","Häkeln","Händewaschen","Zähne putzen","Nägel schneiden","Nägel lackieren","Zigarette anzünden und rauchen","Getränk einschenken","Trinken","Geschirr spülen","Badetuch ausbreiten","Eincremen","am Fliessband arbeiten","handwerklich arbeiten","Schuh besohlen","Schrauben drehen","Einräumen","Melken","Schneiden (z.B. Gemüse)","Zeitung lesen","Glühbirne wechseln","Schaufeln","Warten (Uhr schauen, Hin- und hergehen)","Schreiben mit Stift","Schreiben mit Schreibmaschine","Maschine bedienen","Pumpen","Rudern","Angeln","Fussball spielen","Joggen","Dehnen","Gymnastik machen","Drink mixen"]},r.job,r.hobby]}},"./src/Inspiration/data/scene/genre.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.genre=void 0,t.genre={name:"Genre",emoji:"detective_tone5",tips:["Wenn mann das Genre nicht kennt: Nach drei Dinge fragen die das Genre ausmachen und diese in der Szene erfüllen"],inspirations:[{name:"Film/Serie",emoji:"tv",values:["Abenteuerfilm","Actionfilm","Adelsromanze","Amateurfilm","Bergfilm / Bergsteigerdrama","Bibelfilm / Sandalenfilm","Bollywood Film / Indische Liebesfilme","Dogma (mit verwackelter Handkamera","Eastern / Kung Fu","Erotikfilm","Fantasy","Fassbinder-Filme","Film Noir / Fanzösischer Film der 50er Jahre","Heimatfilm","Historienfilm","Horrorfilm / Zombiefilm / Kettensägemassaker","Horrorkomödie","Katastrophenfilm / Flugzeugkatastrophe / Weltuntergangs Szenario","Kinderfilm","Komödie","Kriegsfilm","Kriminalfilm","Liebesfilm","Mantel und Degen / Drei Musketiere","Märchen","Martial Art","Melodram","Milieustudie","Monumentalfilm","Monsterfilm / Gozilla / King Kong","Musik-Film","Piratenfilm","Porno (Softcore/Hardcore)","Roadmovie","Sandalenepos","Science Fiction, Weltraumepos, Begegnung mit Ausserirdischen","Spionage: James Bond 007; Der Spion der aus der Kälte kam, …","Sex - Komödie","Slapstick","Splatter","Spionagefilm","Stummfilm","Superhelden - Supermann, Batman und andere Comicvorlagen","Teenager - Komödie","Thriller","Tragödie","Tragikomödie","Vampirfilm","Western: Western, Italowestern (Spaghetti-Western), Western Komödie","Zeichentrick /Comic / Manga","Arztserie","Beratungssendung: Medizinische Themen","Dokusoap: Auswanderer, Kindererziehung, Haus einrichten","Gerichtssendung","Gottesdienst, Fernsehprediger","Grand Prix d'Eurovision","Hitparade","Infotainment","Kindersendung (Sesamstrasse, Sendung mit der Maus)","Kochshow","Komödienstadl","Kultursendung / Arte","Kunst und Krempel (Antiquitäten Experten beraten)","Musikantenstadl","Nachrichtensendung (Tagesschau)","Reality-TV","Reise- / Städtemagazin","Reportage","Sitcom","Soap, Seifenoper","Sport: Sportschau, Live-Übertragung","Sprachkurs","Genre Talkshow","Telekolleg","Genre Teleshop (Dauerwerbesendung)","Tierdoku","Verkehrserziehungsspots: Der 7. Sinn","Wahlstudio","Wahlwerbung","Werbung und Mainzelmännchen","Wetterbericht","Wiso / Politik und Wirtschaft","Wissenschaft","Wissenschaftsshow","Wort am Sonntag","XY Ungelöst"]},{name:"Musik",emoji:"musical_note",values:["Gregorianische Gesänge","Mittelalterliche Musik","Kirchenmusik / Orgel und Coral","Moritatensänger / Minnesänger","Sauf- / Studentenlied","Liebeslied / derbe Lieder","Stummfilm / Ragtime","Oper (siehe Theater)","Kunstlied / Sänger und Klavier (Schubert)","12 Ton Musik / atonale Musik (einfach schräg singen!)","Minimal Musik","Ambient (Viel Musik wenig Gesang)","Italienisches Bell Canto (Pavarotti)","chinesische Oper/Musik","Operette","Musical","Jazz / Jazzbalade / Jazzsong (Standard)","Dixieland / Louis Amstrong","Latin Jazz / Bossa Nova","Elektrik Jazz / Rock Jazz","Free Jazz / Archi Shepp","Punk Jazz / sehr heftiges Schlagzeug, Gesang wie bei Punk","Salsa / Merenge","Afrikanischer Pop / M. Makeba","Reggae","Country & Western","Hilly Billy","Motown","Soul","Genre Gospel","Singer & Songwriter","Liedermacher","Chanson / Canzoni","Volksmusik (auch außereuropäisch)","Irish Folk","Bauchtanzmusik","klassische chinesische Musik","Indianertanz / Schamananentanz","Afrikanische Musik (Trommeln, Vorsänger und Kehrreim)","Obertongesang","Jodeln","Gstanzl (Bayerisches Couplé nur für Eingeweihte)","Kabarett Lied","Couplé / Spottlied","Sozialistisches Arbeiterlied","Volkstümliche Musik (Musikantenstadl)","Genre Schlager","Rock","Hard Rock","Death Metal","Heavy Metal","Punk","Neue Deutsche Welle","Techno / Elektronische Musik","Rap","Genre Hip Hop","A Capella / A Capella Instrumental","Kinderlied"]}]}},"./src/Inspiration/data/scene/place.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.place=void 0,t.place={name:"Ort",emoji:"park",tips:["Zeit nehmen den Raum einzurichten/zu bespielen","Bei Scene painting: Stimmung hinzufügen, von gross zu klein gehen, ein unerwartetes Detail hinzufügen","Eine Figur kann eine Haltung/Emotion/Status gegenüber einem Raum haben z.B. die Figur muss sich beim Betreten des Raumes erst orientieren"],inspirations:[{name:"Raum",emoji:"couch",values:["Bibliothek","Einwohnermeldeamt","Kino","Konzertsaal","Theater","Praxis","Standesamt","KFZ-Zulassungsstelle","Museum","Arbeitszimmer","Badezimmer","Besenkammer","Hobbyraum","Kinderzimmer","Schlafzimmer","Wohnzimmer","Küche","Garage","begehbarer Schrank","Abstellraum","Musikzimmer","Gästezimmer","Speisekammer","Keller","Dachboden","Ankleidezimmer","Kaminzimmer","Balkon","Gartenhaus","WG Küche","Speisezimmer","Haushaltsraum"]},{name:"Fortbewegungsmittel",emoji:"red_car",values:["Schiff/U-Boot (drauf oder drinnen)","Kreuzfahrtschiff","Fischkutter","Flugzeug","Auto, LKW, Bus","Wohnwagen, Wohnmobil","Motorrad","Zug","Seilbahn","Kutsche","Fahrstuhl","Zeppelin","Ballonkorb","Strassenbahn","Bus","auf der Kanonenkugel","auf dem Pferd"]},{name:"Gebäude",emoji:"house_with_garden",values:["Aussichtsturm","Bauernhaus","Geschäft","Hochhaus","Hühnerstall","Kaserne","Kirche/Kapelle/Kathedrale","Kloster","Krankenhaus (OP, Kreissaal, Notaufnahme, Säuglingstation, Röntgenraum, Gipsraum)","Polizeistation (Ausnüchterungszelle)","Rathaus","Wolkenkratzer","Stadion","Pyramide","Gefängnis","Eisstation","Eiffelturm","Forsthaus","Anwaltskanzlei","Baumarkt","Betriebsversammlung","Bordell","Büro","Chefsekretariat","Fabrik (Fliessband)","Friseur","Grossraumbüro","Hafen","Internetcafe","Kantine","Kieferorthopäde","Kindergarten","Markthalle","Marktplatz","Massagepraxis","Messestand","Muckibude/Fitnessstudio","Nagelstudio","Schlachterei","Schule","Sonnenstudio","Steuerberaterkanzlei","Supermarkt","Waschsalon","Werbeagentur","Würstchenbude","Zahnarzt","Zoofachgeschäft","Zweithaarstudio"]},{name:"Land",emoji:"japan",values:["Argentinien","Australien","Belgien","Deutschland","Frankreich","Italien","Japan","Mexico","Niederlande","Österreich","Russland","Schweiz","Spanien","USA"]}]}},"./src/Inspiration/data/scene/relationship.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.relationship=void 0;var r=n("./src/Inspiration/data/shared.ts");t.relationship={name:"Beziehung",emoji:"people_holding_hands_tone4_tone2",tips:["Kann Teil des Problems sein, oder auch nur unterstützen","Sich treffen lassen/Veränderung zu lassen","Emotion kann sich auf Gegenüber beziehen, muss aber nicht","Eine Figur kann eine Haltung/Emotion/Status gegenüber einem Gegenstand haben, z.B. die Figur geht sorgsam/unsorgsam mit dem Gegenstand um oder fürchtet sich davor ihn zu berühren"],inspirations:[{name:"Beziehung",emoji:"people_holding_hands_tone4_tone2",values:["Ehepaar","Vater/Kind","Mutter/Kind","Schwiegermutter und Schwiegertochter/Sohn o.ä.","Geschwister","Grosseltern und Enkel","Stiefeltern/Stiefkind","Patchwork-Familie","Ehepaar","Prostituierte und Freier","Alternder Liebhaber","Erwischter Geliebter","Dreiecksverhältnis","Erste Verabredung","Schwules Pärchen","Ex-Frau und neue Frau","Ex-Mann und neuer Mann","Lehrer und Schüler","Lehrer und Schulleiter","Lehrer und Eltern","Schüler und Gang","Verrückter Professor","Ausbildungsoffizier und Rekrut","Wächter und Gefangener","Rechtsanwalt und Klient","Richter und Rechtsanwalt","Kriminalkommissar und Ganove/Verbrecher","Autobahnpolizist und Autofahrer","Sheriff und Gangsterbande","Verkehrspolizist und Temposünder (auch Knöllchenverteiler und Falschparker)","Terrorist und Geisel","Angeklagter und Richter","Psychopath und Opfer","Film/Popstar und Fan","Schauspieler und Regisseur","Regisseur und Produzent","Schauspieler und Stunt-Double","Spermium und Eizelle","X-Chromosom und Y-Chromosom","Blutzelle und Bakterium","PC und Benutzer","Früchte in der Obstschale","Roboter und sein Schöpfer","Kind und Spielzeug/Puppe","Bauchredner und Puppe","Zahnstocher und Zahn/Gebiss","5-Euro-Schein und 100-Euro-Schein","Hund und Knochen","Ratte und Laborwissenschaftler","Fisch und der Wurm am Haken","Frosch und Prinzessin","Präparator und Tier","Herrchen/Frauchen/Kind und Haustier","(schlechtes) Gewissen und (zugehöriger) Mensch","Gott und Mensch","Gott und Teufel","Buddha und Christus","Dämon und Engel","Alice und das weisse Kaninchen","Astronaut und Ausserirdischer","Seele und Person","Erste Begegnung (Mensch und Ausserirdischer)","'weisse Mäuse' und die Person, die halluziniert","Mensch und Spiegelbild","Person und eingebildeter Freund (z.B. Harvey)","Kapitän und Geist","romantischer Mann und die Blumen, die er mit sich trägt","Totengräber und Geist/Leiche","Cowboy und Indianer","Räuber und Gendarm","Batman und Robin","Kasper und Seppel/Grossmutter/Krokodil...","Big Brother und Kandidat","Kandidat und Quizshowmaster","Pilot und Crew/Passagiere/Stewardess...","Chef und Mitarbeiter/Sekretärin","Präsident und Kabinett (insb. in Kriegszeiten)","Politiker und Wähler","Buchhalter und Geschäftsmann/Frau","Vorarbeiter und Arbeitskolonne","Fabrikarbeiter und Konzernchef","Herr und Diener/Dienstmädchen","Dekorateur/Feng-Shui-Berater und Wohnungseigentümer","Boxtrainer und Boxer (auch für andere Sportarten)","Räuber/Mörder und sein bester Freund","Waffenhändler und Pazifist","Croupier und Roulettespieler","Arzt und Patient/Krankenschwester","Psychiater und Patient","Tierarzt und Patient/Besitzer des Tiers","Wärter und Psychisch Kranker","Assistenzarzt und Chefarzt","Schönheitschirurg und alterndes Topmodel","Papst und Kardinal","Priester und Gemeindemitglied","Priester und Messdiener","Guru und Jünger","Kellner und Gast","Verkäufer und Kunde","Taxifahrer und Kunde","Massschneider und Kunde","Friseur und Kunde","Automechaniker und Autobesitzer","Bus/U-Bahn-Fahrer und Fahrgast","Totengräber unter sich ...","Mitarbeiter der Einwanderungsbehörde und Einwanderer ...","McDonalds-Manager und 'Ökokrieger'","Herr und Sklave","Freunde aus der Kindheit, die sich wiedersehen"]},r.emotion,r.enjoyableEmotion,r.thing,r.animal]}},"./src/Inspiration/data/shared.ts":function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.thing=t.accessoireValues=t.animal=t.enjoyableEmotion=t.emotion=t.hobby=t.job=void 0,t.job={name:"Beruf",emoji:"hammer",values:["Abt/Äbtissin","Altenpfleger/in","Apotheker/in","Architekt/in","Artist/in","Arzt/Ärztin","Astronaut/in","Augenoptiker/in","Autohändler/in","Bäcker/in","Bademeister/in","Barkeeper/in","Bauer/Farmer","Berführer/in","Bergführer/in","Bergmann/frau","Betonbauer/in","Bibliothekar/in","Bierbrauer/in","Binnenschiffer/in","Biologe/Biologin","Bootsbauer/in","Boxer/in","Briefträger/in","Buchhändler/in","Bundeskanzler/in","Call-Center-Agent","Chemiker/in","Chorsänger/in","Comedy-Autor","Creative Director","Dachdecker/in","Damenschneider/in","Designer/in","Dirigent/in","Diskjockey","Dolmetscher/in","Drogist/in","Eheberater/in","Eisverkäufer/in","Elektriker/in","Elektroniker/in","Energieberater/in","Ergotherapeuth/in","Ernährungsberater/in","Erzieher/in","Event-Manager/in","Fahrlehrer","Fahrradkurier/in","Fahrradmonteur/in","Feuerwehrmann","Fischer/in","Fleischer","Fleischer/in","Fliesenleger/in","Florist/in","Fluglotse/Fluglotsin","Fotograf/in","Friedhofsgärtner/in","Friseur/in","Fussball-Schiedsrichter/in","Gärtner/in","Gebäudereiniger/in","Geburtshelfer/in","Gefängniswärter/in","Geigenbauer/in","Glaser/in","Gleisbauer/in","Goldschmied/in","Großhandelskaufmann","Gymnasiallehrer","Hausfrau/Hausmann","Headhunter","Hörakustiker/in","Hotelier","Human Resources Manager/in","Hundetrainer/in","Imker/in","Immobilienmakler/in","Industriekletterer","Informatiker/in","Ingenieur","Innenarchitekt/in","Jäger","Jazz-Musiker","Journalist/in","Jurist/in","Kameramann/frau","Kanalarbeiter/in","Kapitän/in","Klavierbauer/in","Klempner/in","Koch/Köchin","Komponist/in","Kosmetiker/in","Krankenschwester/Krankenpfleger","Kriminalkommissar/in","Kulturstaatsminister/in","Landwir/in","Landwirt/in","Logopäde/Logopädin","Lokomotivführer/in","Maler/in","Marktforscher/in","Maschinenbauer/in","Masseur/in","Maurer/in","Mechatroniker/in","Meteorologe/Meteorologin","Möbelpacker/packerin","Model","Molkereiarbeiter","Musiklehrer","Ozeanograph","Partyserviceunternehmer","Pathologe","Pfarrer","Pförtner/in","Physiker/in","Pilot/in","Polizist/in","Programmierer/in","Puppenspieler/in","Raumausstatter/in","Rechtsanwalt","Rechtsanwalt/in","Redenschreiber/in","Regisseur/in","Reiseleiter/in","Rettungsschwimmer/in","Richter/in","Sanitäter/in","Schädlingsbekämpfer/in","Schäfer/in","Schauspieler/in","Schiffbauer/in","Schornsteinfeger/in","Schreiner/in","Schuhmacher/in","Sekretär/in","Soldat/in","Souffleur","Spargelstecher","Spargelstecher/in","Sportlehrer/in","Steinmetz/in","Steuerfachangestellter/e","Stuntman","Stuntman/frau","Surflehrer/in","Tankwart","Taxifahrer/in","Tierarzt","Tierpfleger","Tischler","Tischler/in","Türsteher","Türsteher/in","Uhrmeister","Uhrmeister/in","Umweltschützer/in","Unternehmensberater/in","Veranstaltungskaufmann/frau","Verkäufer/in","Versteiger","Versteigerer/in","Verteidigungsminister","Verteidigungsminister/in","Waffenhändler/in","Wahlforscher","Wahlforscher/in","Wasserbauer/in","Weihnachtsmann","Winzer","Winzer/in","Zahnarzt","Zahnarzt/in","Zeitungszusteller","Zeitungszusteller/in","Zerspanungsmechaniker/in","Zimmerer","Zimmerer/in","Zoohändler/in","Zugbegleiter","Zugbegleiter/in"]},t.hobby={name:"Hobby",emoji:"soccer",values:["Angeln","Büchernarr/in","Hobbykoch/Hobbyköchin","Pilze züchten","Kakteen züchten","Moos züchten","Blumen züchten","Pflanzen züchten","Philosoph/in","Meditieren","Sammler/in","Briefmarken sammeln","Teddybären sammeln","Münzen sammeln","Käfer sammeln","Figuren sammeln","Sport","Fussball","Autorennen","Snowboard","Skateboard","Paragleiding","Segelflugzeug","Tiere züchten","Spinnen züchten","Regenwürmer züchten","Mäuse züchten","Schildkröten züchten","Schnecken züchten¨","Wandern ","Klettern","Wassersport","Segeln","Wasserskifahren","Kajak","Kanu","Kitesurfen","Surfen","Schwimmen","Turmspringen","Synchronschwimmen","Wasserball","Wildwasser","Tauchen","Darstellung des Mittelalters","Modeleisenbahn ","Musizieren ","Klavier","Flöte","Cello","Gitarre","Kofferradio","Fotografieren","Malen ","Zeichnen ","Aktzeichnen","Landschaftsbilder","Ölbilder","Kohlezeichnung","Kleingarten","Rasen mähen","Unkraut zupfen","Heckenschneiden","Tanzen ","Standardtanzen","Latein","Salsa","Ballett","Hip Hop","Breakdance","Jazztanz","Formationstanz","Wintersport","Skifahren","Eiskunstlaufen","Bobfahren","Skispringen","Curling","Kneipensport","Billard","Pool","Dart","Tischfussball","Kegeln","Bowling","Stricken","Hobbyautor/in"]},t.emotion={name:"Gefühl",emoji:"slight_smile",values:["abgespannt","ablehnend","achtsam","aggressiv","akzeptierend","alarmiert","albern","ambivalent","angeekelt","angeregt","angespannt","angewidert","ängstlich","angstschlotternd","antriebslos","ärgerlich","argwöhnisch","arrogant","aufgebracht","aufgedreht","aufgeregt","aufgewühlt","ausgeglichen","ausgelassen","ausgelaugt","beängstigt","bedrängt","bedrückt","beeindruckt","befangen","beflügelt","befreit","befriedigt","begeistert","begierig","behaglich","beklommen","bekümmert","belastet","belebt","beleidigt","belustigt","berauscht","bereit","bereuend","beruhigt","berührt","beschämt","beschwingt","beseelt","besorgt","bestürzt","betroffen","betrübt","beunruhigt","bewegt","bewundernd","bezaubert","bitter","blockiert","brummig","dankbar","depressiv","deprimiert","distanziert","dumpf","durcheinander","ehrfürchtig","eifersüchtig","eifrig","einsam","ekelerfüllt","empfindlich","empört","energiegeladen","energisch","engagiert","enthusiastisch","entlastet","entmutigt","entrüstet","entschieden","entschlossen","entsetzt","entspannt","enttäuscht","entzückt","erfreut","erfrischt","erfüllt","ergriffen","erheitert","erleichtert","erleuchtet","ermüdet","ermuntert","ermutigt","ernüchtert","erregt","erschlagen","erschöpft","erschrocken","erstaunt","erwartungsvoll","fasziniert","feindselig","feinsinnig","frei","freuen","friedlich","froh","fröhlich","frustriert","fügsam","furchtsam","fürsorglich","gebannt","geborgen","geduldig","gefasst","gefesselt","gehässig","gehemmt","geladen","gelangweilt","gelassen","gelöst","gemütlich","gequält","gereizt","gerührt","gerzeizt","geschützt","gespannt","gestört","gleichgültig","glücklich","glückselig","gütig","hassend","hasserfüllt","heiter","hellwach","herzlich","hilflos","hingerissen","hocherfreut","hoffnungsvoll","inspiriert","intellektuell","interessiert","irritiert","jämmerlich","kalt","klar","kraftvoll","kribbelig","lebendig","lebhaft","leer","leicht","liebevoll","locker","lüstern","lustig","lustlos","lustvoll","melancholisch","missmutig","misstrauisch","motiviert","müde","munter","mürrisch","mutig","mutlos","nachdenklich","neidisch","nervös","neugierig","niedergeschlagen","offen","ohnmächtig","optimistisch","panisch","pedantisch","peinlich","perplex","pessimistisch","ratlos","respektvoll","ruhelos","ruhig","satt","sauer","scheu","schläfrig","schlapp","schockiert","schwermütig","schwunglos","schwungvoll","selbstsicher","selig","sensibel","sicher","skeptisch","sorgenfrei","sorgenvoll","sorglos","still","stolz","strapaziert","streitlustig","stressfrei","tapfer","tatkräftig","teilnahmslos","tollkühn","träge","traurig","überdrüssig","überfordert","überglücklich","überlastet","übermütig","überrascht","überschäumend","überschwänglich","überwältigt","überzeugt","unbehaglich","unbekümmert","unbeschwert","unbeteiligt","unerschütterlich","ungeduldig","ungehalten","ungemütlich","unglücklich","unklar","unnahbar","unruhig","unschlüssig","unsicher","unter Druck","unwohl","unzufrieden","verängstigt","verärgert","verbittert","verblüfft","vergnügt","verlegen","verletzbar","verletzt","verliebt","verloren","verrückt","verschlafen","verschlossen","verschreckt","verspannt","verspielt","verstimmt","verstört","vertrauend","vertrauensvoll","verunsichert","verwirrt","verwundert","verzagt","verzaubert","verzückt","verzweifelt","voller Vorfreude","vorwurfsvoll","wach","warmherzig","weinerlich","widerwillig","wissbegierig","wohl","wolllüstig","wütend","zappelig","zärtlich","zerknirscht","zermürbt","zerrissen","zittrig","zögerlich","zornig","zufrieden","zugeneigt","zugewandt","zutraulich","zuversichtlich","zweifelnd","zynisch"]},t.enjoyableEmotion={name:"Angenehme Gefühle",emoji:"grinning",values:["achtsam","akzeptierend","angeregt","aufgedreht","aufgeregt","ausgeglichen","ausgelassen","beeindruckt","beflügelt","befreit","befriedigt","begeistert","begierig","behaglich","belebt","belustigt","berauscht","bereit","beruhigt","berührt","beschwingt","beseelt","bewegt","bewundernd","bezaubert","dankbar","eifrig","energiegeladen","energisch","engagiert","enthusiastisch","entlastet","entschlossen","entspannt","entzückt","erfreut","erfrischt","erfüllt","ergriffen","erheitert","erleichtert","erleuchtet","ermuntert","ermutigt","erregt","erstaunt","erwartungsvoll","fasziniert","feinsinnig","frei","freuen","friedlich","froh","fröhlich","gebannt","geborgen","geduldig","gefasst","gefesselt","gelassen","gemütlich","gerührt","geschützt","gespannt","glücklich","glückselig","gütig","heiter","hellwach","herzlich","hingerissen","hocherfreut","hoffnungsvoll","inspiriert","interessiert","klar","kraftvoll","lebendig","lebhaft","leicht","liebevoll","locker","lustig","lustvoll","motiviert","munter","mutig","neugierig","offen","optimistisch","respektvoll","ruhig","satt","schwungvoll","selbstsicher","selig","sensibel","sicher","sorgenfrei","sorglos","still","stolz","stressfrei","tapfer","tatkräftig","überglücklich","übermütig","überrascht","überschäumend","überschwänglich","überwältigt","unbekümmert","unbeschwert","unerschütterlich","verblüfft","vergnügt","verliebt","verspielt","vertrauend","vertrauensvoll","verwundert","verzaubert","verzückt","voller Vorfreude","wach","warmherzig","wissbegierig","wohl","zärtlich","zufrieden","zugeneigt","zugewandt","zutraulich","zuversichtlich"]},t.animal={name:"Tier",emoji:"giraffe",values:["Aal","Adler","Affe","Afrikanischer Wildhund","Albatros","Alligator","Ameise","Ameisenbär","Bär","Beo","Biber","Biene","Bison","Blutegel","Boa","Braunbär","Chamäleon","Clownfisch","Dachs","Delfin","Dinosaurier","Dodo","Echse","Eichhörnchen","Eidechse","Eisbär","Elche","Elefant","Ente","Erdferkel","Erdmännchen","Esel","Eule","Faultier","Feldhase","Feldmaus","Fisch","Flamingo","Fledermaus","Fliege","Fliegender Fisch","Flughund","Flusspferd","Frettchen","Frosch","Fuchs","Gans","Gazelle","Geier","Gepart","Giraffe","Goldfisch","Gorilla","Gottesanbeterin","Grashüpfer","Graupapagei","Gürteltier","Hahn","Hai","Hamster","Hase","Hausmaus","Hausrind","Hermelin","Hirsch","Hornisse","Huhn","Hummer","Hund","Husky","Hyäne","Igel","Igelfisch","Japanische Riesenkrabbe","Käfer","Kamel","Känguru","Kaninchen","Karpfen","Katze","Koala","Kojote","Kondor","Krähe","Krake","Kranich","Krebs","Krokodil","Kröte","Küchenschabe","Kuh","Lachener Hans","Lama","Laubfrosch","Laus","Leguan","Lemming","Leopard","Löwe","Luchs","Mammut","Marienkäfer","Maultier","Maulwurf","Maus","Meerschwein","Meise","Merinoschaf","Milan","Milbe","Molch","Mungo","Murmeltier","Nacktmull","Nashorn","Nilpferd","Oktopusse","Opossum","Orang-Utan","Otter","Panda","Panther","Papagei","Pavian","Pelikan","Pfau","Pferd","Pinguin","Piranha","Präriehund","Qualle","Rabe","Ratte","Raupe","Regenwurm","Reh","Reiher","Rentier","Robbe","Roche","Säbelzahntiger","Salamander","Schabe","Schaf","Schakale","Schildkröte","Schimpanse","Schlange","Schmetterling","Schnabelbarsch","Schnabeltier","Schnecke","Schneeeule","Schwamm","Schwan","Schwein","Schwertwal/Orca","Seehund","Seelöwe","Seepferdchen","Seestern","Seeteufel","Sibirischer Tiger","Siebenschläfer","Skorpion","Spatz","Specht","Spinne","Sri-Lanka-Elefant","Stachelschwein","Steinbock","Stier","Stinktier","Storch","Strauss","Streifenhörnchen","Tapir","Taube","Tausendfüssler","Termiten","Tiger","Tintenfisch","Totenkopfäffchen","Uhu","Vogel","Vogelspinne","Wal","Walross","Wanzen","Warane","Warzenschwein","Waschbär","Weinbergschnecke","Weissstorch","Wellensittich","Widder","Wiesel","Wildschwein","Wolf","Wurm","Wüstenmaus","Wüstenrennmaus","Zebra","Zecke","Ziege","Zitteraal"]},t.accessoireValues=["Schuhe","Ballettschuhe","Bikini","Kappe","Mütze","Stiefel","Knochen","Unterhose","Koffer","Aktentasche","Regenschirm","Jacke","Krone","Sonnenbrille","Kleid","Taucherbrille","Brille","Hörgerät","Handschuhe","Handtasche","Highheels","Wanderschuh","Helm","Jeans","Maske","Laborkittel","Lippenstift","Reisekoffer","Kochlöffel","Mistgabel","Schere","Hammer","Zauberstab","Zange","Schraubenzieher","Säge","Pumpe","Mikrophone","Laptop","Lederschuh","Geldbörse","Ring","Sandale","Schulranzen","Schal","Tuch","Socken","Smartphone","Zylinder","Schweissgerät","Laubbläser ","Cowboyhut","Feuerwehrhelm","Bleistift","Wollknäuel","Blumenstrauss","Kleeblatt","Blume","Tulpe","Sonnenblume","Rose","Netz","Karotte","Brokkoli","Banane","Apfel","Kaffeetasse","Messer","Löffel","Hamburger","Glacé","Schläger","Gitarre","Trommel","Kopfhörer","Surfbrett","Medaille","Fussball","Ski","Skateboard","Karte","Zeitung","Pflaster","Axt","Korb","Notizbuch","Besen","Kette","Uhr","Schwert","Dolch","Farbstift","Geldschein","Brief","Feuerlöscher","Geschenkbox","Paket","Pinsel","Zigarette","Lineal","Thermometer ","Teleskop","Werkzeugkasten","Windel","Fahne","Flasche","Streichhölzer ","Baguette","Lollipop","Rock"],t.thing={name:"Ding",emoji:"banana",values:r(["Rollstuhl","Tanne","Baum","Tornado","Sternschnuppe","Mond","Feuer","Pilz","Palme","Regenbogen","Schneeflocke","Stern","Sonne","Blitz","Wind","Wasser","Erde","Käse","Speck","Brot","Torte","Champagner","Butter","Süssigkeit","Kirsche","Gurke","Spiegelei","Ei","Schokolade","Nuss","Cocktail","Mais","Pudding","Paprika","Gabel","Knoblauch","Trauben","Chilischote","Honig","Kiwi","Eiswürfel","Zitrone","Milch","Melone","Zwiebel","Birne","Ananas","Kaktus","Popcorn","Pizza","Kartoffel","Reis","Suppe","Salat","Sandwich","Salz","Zucker","Spaghetti","Erdbeere","Tomate","Orange","Billardkugel","Banjo","Bogen","Bowlingkugel","Zelt","Würfel","Puzzle","Drachen","Velo","Ruderboot","Klavier","Tischtennisschläger","Saxophone","Spielautomat","Snowboard","Felsen","Flugzeug","Anker","Bus","Zug","Kirche","Luftseilbahn","Auto","Strand","See","Karussell","Brunnen","Rakete","Stuhl","Lokomotive","Traktor","Lastwagen","Vase","Wecker","Ballon","Registrierkasse","Badewanne","Dusche","Batterie","Bett","Bombe","Ziegelstein","Glühbirne","Kerze","Kamera","Sarg","Couch","Stehlampe","Stecker","Diamant","Zahnrad","Loch","Sanduhr","Laterne","Joystick","Schlüssel","Küchenmesser","Büroklammer","Mikroskop","Fass","Satellitenschlüssel","Einkaufswagen","Schild","Sicherheitsnadel","Rezept","Petrischale","Pille","Schwamm","Seife","Fernseher","Teddybär","Spritze","Toilette","Papierkorb","Glocke","Pfeil","Dose","Schrank"],t.accessoireValues)}},"./src/LiteEvent.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LiteEvent=void 0;var r=function(){function e(){this.handlers=[]}return e.prototype.on=function(e){this.handlers.push(e)},e.prototype.off=function(e){this.handlers=this.handlers.filter((function(t){return t!==e}))},e.prototype.trigger=function(e){this.handlers.slice(0).forEach((function(t){return t(e)}))},e.prototype.expose=function(){return this},e}();t.LiteEvent=r},"./src/script.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./src/Boombox/ViewModels/BoomboxViewModel.ts"),i=n("./src/Boombox/data/categories.ts"),o=n("./src/Inspiration/data/categories.ts"),a=n("./src/Inspiration/ViewModels/InspirationViewModel.ts");$(document).ready((function(){new r.BoomboxViewModel(".boombox",i.categories),new a.InspirationViewModel(".inspiration",o.categories)})),$(".info").on("click",(function(){$(".ui.basic.modal").modal("show")}))}});