forked from MaxLaumeister/bitlisten
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbitlisten.min.js
3 lines (3 loc) · 83.3 KB
/
bitlisten.min.js
1
2
3
/*! BitListen Copyright (c) 2024 Maximillian Laumeister, see README.md for license info. */
var Konami=function(A){var n={addEvent:function(A,e,t,n){A.addEventListener?A.addEventListener(e,t,!1):A.attachEvent&&(A["e"+e+t]=t,A[e+t]=function(){A["e"+e+t](window.event,n)},A.attachEvent("on"+e,A[e+t]))},input:"",pattern:"38384040373937396665",load:function(t){this.addEvent(document,"keydown",function(A,e){if((n=e?e:n).input+=(A||event).keyCode,n.input.length>n.pattern.length&&(n.input=n.input.substr(n.input.length-n.pattern.length)),n.input==n.pattern)return n.code(t),n.input="",A.preventDefault(),!1},this),this.iphone.load(t)},code:function(A){window.location=A},iphone:{start_x:0,start_y:0,stop_x:0,stop_y:0,tap:!1,capture:!1,orig_keys:"",keys:["UP","UP","DOWN","DOWN","LEFT","RIGHT","LEFT","RIGHT","TAP","TAP"],code:function(A){n.code(A)},load:function(e){this.orig_keys=this.keys,n.addEvent(document,"touchmove",function(A){1==A.touches.length&&1==n.iphone.capture&&(A=A.touches[0],n.iphone.stop_x=A.pageX,n.iphone.stop_y=A.pageY,n.iphone.tap=!1,n.iphone.capture=!1,n.iphone.check_direction())}),n.addEvent(document,"touchend",function(A){1==n.iphone.tap&&n.iphone.check_direction(e)},!1),n.addEvent(document,"touchstart",function(A){n.iphone.start_x=A.changedTouches[0].pageX,n.iphone.start_y=A.changedTouches[0].pageY,n.iphone.tap=!0,n.iphone.capture=!0})},check_direction:function(A){x_magnitude=Math.abs(this.start_x-this.stop_x),y_magnitude=Math.abs(this.start_y-this.stop_y),x=this.start_x-this.stop_x<0?"RIGHT":"LEFT",y=this.start_y-this.stop_y<0?"DOWN":"UP",result=x_magnitude>y_magnitude?x:y,(result=1==this.tap?"TAP":result)==this.keys[0]&&(this.keys=this.keys.slice(1,this.keys.length)),0==this.keys.length&&(this.keys=this.orig_keys,this.code(A))}}};return"string"==typeof A&&n.load(A),"function"==typeof A&&(n.code=A,n.load()),n};function surrogateCtor(){}function extend(A,e){surrogateCtor.prototype=A.prototype,e.prototype=new surrogateCtor,e.prototype.constructor=e}function Block(A,e,t,n){var o;"visible"===document.visibilityState&&(Floatable.call(this),o=Math.floor(n/1024).toFixed(2)+" KB",this.width=this.height=Math.min(Math.max(500*Math.sqrt(n/2097152),200),500),n=t/1e3/1e3,this.addImage(blockImage,this.width,this.height),this.addText("Block #"+A+"<br />Number of Transactions: "+e+"<br />Block Difficulty: "+n.toFixed(2)+"M<br />Block Size: "+o),this.initPosition(),Sound.playRandomSwell())}function Floatable(){this.velocity={x:0,y:-1},this.pageDiv=document.getElementById("bubbleDiv"),this.updateContainerSize(),this.div=document.createElement("div"),this.div.className="floatableDiv",this.pageDiv.appendChild(this.div),this.innerDiv=document.createElement("div"),this.div.appendChild(this.innerDiv),this.innerDiv.className="innerDiv",updateTargets.push(this)}!function(){"use strict";function A(){this.init()}function e(A){A.src&&0!==A.src.length?this.init(A):console.error("An array of source files must be passed with any new Howl.")}A.prototype={init:function(){var A=this||g;return A._counter=1e3,A._html5AudioPool=[],A.html5PoolSize=10,A._codecs={},A._howls=[],A._muted=!1,A._volume=1,A._canPlayEvent="canplaythrough",A._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,A.masterGain=null,A.noAudio=!1,A.usingWebAudio=!0,A.autoSuspend=!0,A.ctx=null,A.autoUnlock=!0,A._setup(),A},volume:function(A){var e=this||g;if(A=parseFloat(A),e.ctx||l(),void 0!==A&&0<=A&&A<=1){if(e._volume=A,e._muted)return e;e.usingWebAudio&&e.masterGain.gain.setValueAtTime(A,g.ctx.currentTime);for(var t=0;t<e._howls.length;t++)if(!e._howls[t]._webAudio)for(var n=e._howls[t]._getSoundIds(),o=0;o<n.length;o++){var i=e._howls[t]._soundById(n[o]);i&&i._node&&(i._node.volume=i._volume*A)}return e}return e._volume},mute:function(A){var e=this||g;e.ctx||l(),e._muted=A,e.usingWebAudio&&e.masterGain.gain.setValueAtTime(A?0:e._volume,g.ctx.currentTime);for(var t=0;t<e._howls.length;t++)if(!e._howls[t]._webAudio)for(var n=e._howls[t]._getSoundIds(),o=0;o<n.length;o++){var i=e._howls[t]._soundById(n[o]);i&&i._node&&(i._node.muted=!!A||i._muted)}return e},unload:function(){for(var A=this||g,e=A._howls.length-1;0<=e;e--)A._howls[e].unload();return A.usingWebAudio&&A.ctx&&void 0!==A.ctx.close&&(A.ctx.close(),A.ctx=null,l()),A},codecs:function(A){return(this||g)._codecs[A.replace(/^x-/,"")]},_setup:function(){var e=this||g;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(A){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||g,A=null;try{A="undefined"!=typeof Audio?new Audio:null}catch(A){return e}if(!A||"function"!=typeof A.canPlayType)return e;var t=A.canPlayType("audio/mpeg;").replace(/^no$/,""),n=e._navigator&&e._navigator.userAgent.match(/OPR\/([0-6].)/g),n=n&&parseInt(n[0].split("/")[1],10)<33;return e._codecs={mp3:!(n||!t&&!A.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!t,opus:!!A.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!A.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!A.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!A.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!A.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!A.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(A.canPlayType("audio/x-m4a;")||A.canPlayType("audio/m4a;")||A.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(A.canPlayType("audio/x-mp4;")||A.canPlayType("audio/mp4;")||A.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!A.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!A.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!A.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(A.canPlayType("audio/x-flac;")||A.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var a,s=this||g;if(!s._audioUnlocked&&s.ctx)return s._audioUnlocked=!1,s.autoUnlock=!1,s._mobileUnloaded||44100===s.ctx.sampleRate||(s._mobileUnloaded=!0,s.unload()),s._scratchBuffer=s.ctx.createBuffer(1,1,22050),a=function(A){for(var e=0;e<s.html5PoolSize;e++)try{var t=new Audio;t._unlocked=!0,s._releaseHtml5Audio(t)}catch(A){s.noAudio=!0}for(e=0;e<s._howls.length;e++)if(!s._howls[e]._webAudio)for(var n=s._howls[e]._getSoundIds(),o=0;o<n.length;o++){var i=s._howls[e]._soundById(n[o]);i&&i._node&&!i._node._unlocked&&(i._node._unlocked=!0,i._node.load())}s._autoResume();var r=s.ctx.createBufferSource();r.buffer=s._scratchBuffer,r.connect(s.ctx.destination),void 0===r.start?r.noteOn(0):r.start(0),"function"==typeof s.ctx.resume&&s.ctx.resume(),r.onended=function(){r.disconnect(0),s._audioUnlocked=!0,document.removeEventListener("touchstart",a,!0),document.removeEventListener("touchend",a,!0),document.removeEventListener("click",a,!0);for(var A=0;A<s._howls.length;A++)s._howls[A]._emit("unlock")}},document.addEventListener("touchstart",a,!0),document.addEventListener("touchend",a,!0),document.addEventListener("click",a,!0),s},_obtainHtml5Audio:function(){var A=this||g;if(A._html5AudioPool.length)return A._html5AudioPool.pop();A=(new Audio).play();return A&&"undefined"!=typeof Promise&&(A instanceof Promise||"function"==typeof A.then)&&A.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(A){var e=this||g;return A._unlocked&&e._html5AudioPool.push(A),e},_autoSuspend:function(){var A=this;if(A.autoSuspend&&A.ctx&&void 0!==A.ctx.suspend&&g.usingWebAudio){for(var e=0;e<A._howls.length;e++)if(A._howls[e]._webAudio)for(var t=0;t<A._howls[e]._sounds.length;t++)if(!A._howls[e]._sounds[t]._paused)return A;return A._suspendTimer&&clearTimeout(A._suspendTimer),A._suspendTimer=setTimeout(function(){A.autoSuspend&&(A._suspendTimer=null,A.state="suspending",A.ctx.suspend().then(function(){A.state="suspended",A._resumeAfterSuspend&&(delete A._resumeAfterSuspend,A._autoResume())}))},3e4),A}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&g.usingWebAudio)return"running"===e.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state?(e.ctx.resume().then(function(){e.state="running";for(var A=0;A<e._howls.length;A++)e._howls[A]._emit("resume")}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};var g=new A,i=(e.prototype={init:function(A){var e=this;return g.ctx||l(),e._autoplay=A.autoplay||!1,e._format="string"!=typeof A.format?A.format:[A.format],e._html5=A.html5||!1,e._muted=A.mute||!1,e._loop=A.loop||!1,e._pool=A.pool||5,e._preload="boolean"!=typeof A.preload||A.preload,e._rate=A.rate||1,e._sprite=A.sprite||{},e._src="string"!=typeof A.src?A.src:[A.src],e._volume=void 0!==A.volume?A.volume:1,e._xhrWithCredentials=A.xhrWithCredentials||!1,e._duration=0,e._state="unloaded",e._sounds=[],e._endTimers={},e._queue=[],e._playLock=!1,e._onend=A.onend?[{fn:A.onend}]:[],e._onfade=A.onfade?[{fn:A.onfade}]:[],e._onload=A.onload?[{fn:A.onload}]:[],e._onloaderror=A.onloaderror?[{fn:A.onloaderror}]:[],e._onplayerror=A.onplayerror?[{fn:A.onplayerror}]:[],e._onpause=A.onpause?[{fn:A.onpause}]:[],e._onplay=A.onplay?[{fn:A.onplay}]:[],e._onstop=A.onstop?[{fn:A.onstop}]:[],e._onmute=A.onmute?[{fn:A.onmute}]:[],e._onvolume=A.onvolume?[{fn:A.onvolume}]:[],e._onrate=A.onrate?[{fn:A.onrate}]:[],e._onseek=A.onseek?[{fn:A.onseek}]:[],e._onunlock=A.onunlock?[{fn:A.onunlock}]:[],e._onresume=[],e._webAudio=g.usingWebAudio&&!e._html5,void 0!==g.ctx&&g.ctx&&g.autoUnlock&&g._unlockAudio(),g._howls.push(e),e._autoplay&&e._queue.push({event:"play",action:function(){e.play()}}),e._preload&&e.load(),e},load:function(){var A=this,e=null;if(!g.noAudio){"string"==typeof A._src&&(A._src=[A._src]);for(var t,n,o=0;o<A._src.length;o++){if(A._format&&A._format[o])t=A._format[o];else{if("string"!=typeof(n=A._src[o])){A._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}t=(t=(t=/^data:audio\/([^;,]+);/i.exec(n))||/\.([^.]+)$/.exec(n.split("?",1)[0]))&&t[1].toLowerCase()}if(t||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),t&&g.codecs(t)){e=A._src[o];break}}return e?(A._src=e,A._state="loading","https:"===window.location.protocol&&"http:"===e.slice(0,5)&&(A._html5=!0,A._webAudio=!1),new i(A),A._webAudio&&a(A),A):void A._emit("loaderror",null,"No codec support for selected audio sources.")}A._emit("loaderror",null,"No audio support.")},play:function(e,t){var n=this,A=null;if("number"==typeof e)A=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 o=0,i=0;i<n._sounds.length;i++)n._sounds[i]._paused&&!n._sounds[i]._ended&&(o++,A=n._sounds[i]._id);1===o?e=null:A=null}}var r,a=A?n._soundById(A):n._inactiveSound();if(!a)return null;if(A&&!e&&(e=a._sprite||"__default"),"loaded"!==n._state)return a._sprite=e,a._ended=!1,r=a._id,n._queue.push({event:"play",action:function(){n.play(r)}}),r;if(A&&!a._paused)return t||n._loadQueue("play"),a._id;n._webAudio&&g._autoResume();var s,c,u,l,d=Math.max(0,0<a._seek?a._seek:n._sprite[e][0]/1e3),p=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-d),h=1e3*p/Math.abs(a._rate),_=n._sprite[e][0]/1e3,f=(n._sprite[e][0]+n._sprite[e][1])/1e3,m=(a._sprite=e,a._ended=!1,function(){a._paused=!1,a._seek=d,a._start=_,a._stop=f,a._loop=!(!a._loop&&!n._sprite[e][2])});{if(!(f<=d))return s=a._node,n._webAudio?(u=function(){n._playLock=!1,m(),n._refreshBuffer(a);var A=a._muted||n._muted?0:a._volume;s.gain.setValueAtTime(A,g.ctx.currentTime),a._playStart=g.ctx.currentTime,void 0===s.bufferSource.start?a._loop?s.bufferSource.noteGrainOn(0,d,86400):s.bufferSource.noteGrainOn(0,d,p):a._loop?s.bufferSource.start(0,d,86400):s.bufferSource.start(0,d,p),h!==1/0&&(n._endTimers[a._id]=setTimeout(n._ended.bind(n,a),h)),t||setTimeout(function(){n._emit("play",a._id),n._loadQueue()},0)},"running"===g.state?u():(n._playLock=!0,n.once("resume",u),n._clearTimer(a._id))):(c=function(){s.currentTime=d,s.muted=a._muted||n._muted||g._muted||s.muted,s.volume=a._volume*g.volume(),s.playbackRate=a._rate;try{var A=s.play();if(A&&"undefined"!=typeof Promise&&(A instanceof Promise||"function"==typeof A.then)?(n._playLock=!0,m(),A.then(function(){n._playLock=!1,s._unlocked=!0,t||(n._emit("play",a._id),n._loadQueue())}).catch(function(){n._playLock=!1,n._emit("playerror",a._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."),a._ended=!0,a._paused=!0})):t||(n._playLock=!1,m(),n._emit("play",a._id),n._loadQueue()),s.playbackRate=a._rate,s.paused)return void n._emit("playerror",a._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||a._loop?n._endTimers[a._id]=setTimeout(n._ended.bind(n,a),h):(n._endTimers[a._id]=function(){n._ended(a),s.removeEventListener("ended",n._endTimers[a._id],!1)},s.addEventListener("ended",n._endTimers[a._id],!1))}catch(A){n._emit("playerror",a._id,A)}},"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===s.src&&(s.src=n._src,s.load()),u=window&&window.ejecta||!s.readyState&&g._navigator.isCocoonJS,3<=s.readyState||u?c():(n._playLock=!0,l=function(){c(),s.removeEventListener(g._canPlayEvent,l,!1)},s.addEventListener(g._canPlayEvent,l,!1),n._clearTimer(a._id))),a._id;n._ended(a)}},pause:function(A){var e=this;if("loaded"!==e._state||e._playLock)return e._queue.push({event:"pause",action:function(){e.pause(A)}}),e;for(var t=e._getSoundIds(A),n=0;n<t.length;n++){e._clearTimer(t[n]);var o=e._soundById(t[n]);if(o&&!o._paused&&(o._seek=e.seek(t[n]),o._rateSeek=0,o._paused=!0,e._stopFade(t[n]),o._node))if(e._webAudio){if(!o._node.bufferSource)continue;void 0===o._node.bufferSource.stop?o._node.bufferSource.noteOff(0):o._node.bufferSource.stop(0),e._cleanBuffer(o._node)}else isNaN(o._node.duration)&&o._node.duration!==1/0||o._node.pause();arguments[1]||e._emit("pause",o?o._id:null)}return e},stop:function(A,e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"stop",action:function(){t.stop(A)}}),t;for(var n=t._getSoundIds(A),o=0;o<n.length;o++){t._clearTimer(n[o]);var i=t._soundById(n[o]);i&&(i._seek=i._start||0,i._rateSeek=0,i._paused=!0,i._ended=!0,t._stopFade(n[o]),i._node&&(t._webAudio?i._node.bufferSource&&(void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),t._cleanBuffer(i._node)):isNaN(i._node.duration)&&i._node.duration!==1/0||(i._node.currentTime=i._start||0,i._node.pause(),i._node.duration===1/0&&t._clearSound(i._node))),e||t._emit("stop",i._id))}return t},mute:function(A,e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"mute",action:function(){t.mute(A,e)}}),t;if(void 0===e){if("boolean"!=typeof A)return t._muted;t._muted=A}for(var n=t._getSoundIds(e),o=0;o<n.length;o++){var i=t._soundById(n[o]);i&&(i._muted=A,i._interval&&t._stopFade(i._id),t._webAudio&&i._node?i._node.gain.setValueAtTime(A?0:i._volume,g.ctx.currentTime):i._node&&(i._node.muted=!!g._muted||A),t._emit("mute",i._id))}return t},volume:function(){var A,e,t=this,n=arguments;if(0===n.length)return t._volume;if(1===n.length||2===n.length&&void 0===n[1]?0<=t._getSoundIds().indexOf(n[0])?o=parseInt(n[0],10):A=parseFloat(n[0]):2<=n.length&&(A=parseFloat(n[0]),o=parseInt(n[1],10)),!(void 0!==A&&0<=A&&A<=1))return(e=o?t._soundById(o):t._sounds[0])?e._volume:0;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"volume",action:function(){t.volume.apply(t,n)}}),t;void 0===o&&(t._volume=A);for(var o=t._getSoundIds(o),i=0;i<o.length;i++)(e=t._soundById(o[i]))&&(e._volume=A,n[2]||t._stopFade(o[i]),t._webAudio&&e._node&&!e._muted?e._node.gain.setValueAtTime(A,g.ctx.currentTime):e._node&&!e._muted&&(e._node.volume=A*g.volume()),t._emit("volume",e._id));return t},fade:function(A,e,t,n){var o=this;if("loaded"!==o._state||o._playLock)return o._queue.push({event:"fade",action:function(){o.fade(A,e,t,n)}}),o;A=parseFloat(A),e=parseFloat(e),t=parseFloat(t),o.volume(A,n);for(var i=o._getSoundIds(n),r=0;r<i.length;r++){var a,s,c=o._soundById(i[r]);c&&(n||o._stopFade(i[r]),o._webAudio&&!c._muted&&(s=(a=g.ctx.currentTime)+t/1e3,c._volume=A,c._node.gain.setValueAtTime(A,a),c._node.gain.linearRampToValueAtTime(e,s)),o._startFadeInterval(c,A,e,t,i[r],void 0===n))}return o},_startFadeInterval:function(e,t,n,o,A,i){var r=this,a=t,s=n-t,c=Math.abs(s/.01),c=Math.max(4,0<c?o/c:o),u=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var A=(Date.now()-u)/o;u=Date.now(),a+=s*A,a=Math.max(0,a),a=Math.min(1,a),a=Math.round(100*a)/100,r._webAudio?e._volume=a:r.volume(a,e._id,!0),i&&(r._volume=a),(n<t&&a<=n||t<n&&n<=a)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,r.volume(n,e._id),r._emit("fade",e._id))},c)},_stopFade:function(A){var e=this,t=e._soundById(A);return t&&t._interval&&(e._webAudio&&t._node.gain.cancelScheduledValues(g.ctx.currentTime),clearInterval(t._interval),t._interval=null,e.volume(t._fadeTo,A),t._fadeTo=null,e._emit("fade",A)),e},loop:function(){var A,e,t,n=this,o=arguments;if(0===o.length)return n._loop;if(1===o.length){if("boolean"!=typeof o[0])return!!(t=n._soundById(parseInt(o[0],10)))&&t._loop;n._loop=A=o[0]}else 2===o.length&&(A=o[0],e=parseInt(o[1],10));for(var i=n._getSoundIds(e),r=0;r<i.length;r++)(t=n._soundById(i[r]))&&(t._loop=A,n._webAudio&&t._node&&t._node.bufferSource&&((t._node.bufferSource.loop=A)&&(t._node.bufferSource.loopStart=t._start||0,t._node.bufferSource.loopEnd=t._stop)));return n},rate:function(){var A,e,t=this,n=arguments;if(0===n.length?i=t._sounds[0]._id:1===n.length?0<=t._getSoundIds().indexOf(n[0])?i=parseInt(n[0],10):A=parseFloat(n[0]):2===n.length&&(A=parseFloat(n[0]),i=parseInt(n[1],10)),"number"!=typeof A)return((e=t._soundById(i))||t)._rate;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"rate",action:function(){t.rate.apply(t,n)}}),t;void 0===i&&(t._rate=A);for(var o,i=t._getSoundIds(i),r=0;r<i.length;r++)(e=t._soundById(i[r]))&&(t.playing(i[r])&&(e._rateSeek=t.seek(i[r]),e._playStart=t._webAudio?g.ctx.currentTime:e._playStart),e._rate=A,t._webAudio&&e._node&&e._node.bufferSource?e._node.bufferSource.playbackRate.setValueAtTime(A,g.ctx.currentTime):e._node&&(e._node.playbackRate=A),o=t.seek(i[r]),o=1e3*((t._sprite[e._sprite][0]+t._sprite[e._sprite][1])/1e3-o)/Math.abs(e._rate),!t._endTimers[i[r]]&&e._paused||(t._clearTimer(i[r]),t._endTimers[i[r]]=setTimeout(t._ended.bind(t,e),o)),t._emit("rate",e._id));return t},seek:function(){var A,e,t=this,n=arguments;if(0===n.length?e=t._sounds[0]._id:1===n.length?0<=t._getSoundIds().indexOf(n[0])?e=parseInt(n[0],10):t._sounds.length&&(e=t._sounds[0]._id,A=parseFloat(n[0])):2===n.length&&(A=parseFloat(n[0]),e=parseInt(n[1],10)),void 0===e)return t;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"seek",action:function(){t.seek.apply(t,n)}}),t;var o,i,r=t._soundById(e);if(r){if(!("number"==typeof A&&0<=A))return t._webAudio?(o=t.playing(e)?g.ctx.currentTime-r._playStart:0,i=r._rateSeek?r._rateSeek-r._seek:0,r._seek+(i+o*Math.abs(r._rate))):r._node.currentTime;var a,s=t.playing(e),c=(s&&t.pause(e,!0),r._seek=A,r._ended=!1,t._clearTimer(e),t._webAudio||!r._node||isNaN(r._node.duration)||(r._node.currentTime=A),function(){t._emit("seek",e),s&&t.play(e,!0)});s&&!t._webAudio?(a=function(){t._playLock?setTimeout(a,0):c()},setTimeout(a,0)):c()}return t},playing:function(A){if("number"==typeof A)return!!(A=this._soundById(A))&&!A._paused;for(var e=0;e<this._sounds.length;e++)if(!this._sounds[e]._paused)return!0;return!1},duration:function(A){var e=this._duration,A=this._soundById(A);return e=A?this._sprite[A._sprite][1]/1e3:e},state:function(){return this._state},unload:function(){for(var A=this,e=A._sounds,t=0;t<e.length;t++)e[t]._paused||A.stop(e[t]._id),A._webAudio||(A._clearSound(e[t]._node),e[t]._node.removeEventListener("error",e[t]._errorFn,!1),e[t]._node.removeEventListener(g._canPlayEvent,e[t]._loadFn,!1),g._releaseHtml5Audio(e[t]._node)),delete e[t]._node,A._clearTimer(e[t]._id);for(var n=g._howls.indexOf(A),o=(0<=n&&g._howls.splice(n,1),!0),t=0;t<g._howls.length;t++)if(g._howls[t]._src===A._src||0<=A._src.indexOf(g._howls[t]._src)){o=!1;break}return r&&o&&delete r[A._src],g.noAudio=!1,A._state="unloaded",A._sounds=[],null},on:function(A,e,t,n){A=this["_on"+A];return"function"==typeof e&&A.push(n?{id:t,fn:e,once:n}:{id:t,fn:e}),this},off:function(A,e,t){var n=this,o=n["_on"+A],i=0;if("number"==typeof e&&(t=e,e=null),e||t)for(i=0;i<o.length;i++){var r=t===o[i].id;if(e===o[i].fn&&r||!e&&r){o.splice(i,1);break}}else if(A)n["_on"+A]=[];else for(var a=Object.keys(n),i=0;i<a.length;i++)0===a[i].indexOf("_on")&&Array.isArray(n[a[i]])&&(n[a[i]]=[]);return n},once:function(A,e,t){return this.on(A,e,t,1),this},_emit:function(A,e,t){for(var n=this,o=n["_on"+A],i=o.length-1;0<=i;i--)o[i].id&&o[i].id!==e&&"load"!==A||(setTimeout(function(A){A.call(this,e,t)}.bind(n,o[i].fn),0),o[i].once&&n.off(A,o[i].fn,o[i].id));return n._loadQueue(A),n},_loadQueue:function(A){var e,t=this;return 0<t._queue.length&&((e=t._queue[0]).event===A&&(t._queue.shift(),t._loadQueue()),A||e.action()),t},_ended:function(A){var e=this,t=A._sprite;if(!e._webAudio&&A._node&&!A._node.paused&&!A._node.ended&&A._node.currentTime<A._stop)return setTimeout(e._ended.bind(e,A),100),e;var n,t=!(!A._loop&&!e._sprite[t][2]);return e._emit("end",A._id),!e._webAudio&&t&&e.stop(A._id,!0).play(A._id),e._webAudio&&t&&(e._emit("play",A._id),A._seek=A._start||0,A._rateSeek=0,A._playStart=g.ctx.currentTime,n=1e3*(A._stop-A._start)/Math.abs(A._rate),e._endTimers[A._id]=setTimeout(e._ended.bind(e,A),n)),e._webAudio&&!t&&(A._paused=!0,A._ended=!0,A._seek=A._start||0,A._rateSeek=0,e._clearTimer(A._id),e._cleanBuffer(A._node),g._autoSuspend()),e._webAudio||t||e.stop(A._id,!0),e},_clearTimer:function(A){var e,t=this;return t._endTimers[A]&&("function"!=typeof t._endTimers[A]?clearTimeout(t._endTimers[A]):(e=t._soundById(A))&&e._node&&e._node.removeEventListener("ended",t._endTimers[A],!1),delete t._endTimers[A]),t},_soundById:function(A){for(var e=0;e<this._sounds.length;e++)if(A===this._sounds[e]._id)return this._sounds[e];return null},_inactiveSound:function(){var A=this;A._drain();for(var e=0;e<A._sounds.length;e++)if(A._sounds[e]._ended)return A._sounds[e].reset();return new i(A)},_drain:function(){var A=this,e=A._pool,t=0,n=0;if(!(A._sounds.length<e)){for(n=0;n<A._sounds.length;n++)A._sounds[n]._ended&&t++;for(n=A._sounds.length-1;0<=n;n--){if(t<=e)return;A._sounds[n]._ended&&(A._webAudio&&A._sounds[n]._node&&A._sounds[n]._node.disconnect(0),A._sounds.splice(n,1),t--)}}},_getSoundIds:function(A){if(void 0!==A)return[A];for(var e=[],t=0;t<this._sounds.length;t++)e.push(this._sounds[t]._id);return e},_refreshBuffer:function(A){return A._node.bufferSource=g.ctx.createBufferSource(),A._node.bufferSource.buffer=r[this._src],A._panner?A._node.bufferSource.connect(A._panner):A._node.bufferSource.connect(A._node),A._node.bufferSource.loop=A._loop,A._loop&&(A._node.bufferSource.loopStart=A._start||0,A._node.bufferSource.loopEnd=A._stop||0),A._node.bufferSource.playbackRate.setValueAtTime(A._rate,g.ctx.currentTime),this},_cleanBuffer:function(A){var e=g._navigator&&0<=g._navigator.vendor.indexOf("Apple");if(g._scratchBuffer&&A.bufferSource&&(A.bufferSource.onended=null,A.bufferSource.disconnect(0),e))try{A.bufferSource.buffer=g._scratchBuffer}catch(A){}return A.bufferSource=null,this},_clearSound:function(A){/MSIE |Trident\//.test(g._navigator&&g._navigator.userAgent)||(A.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}},function(A){this._parent=A,this.init()}),r=(i.prototype={init:function(){var A=this,e=A._parent;return A._muted=e._muted,A._loop=e._loop,A._volume=e._volume,A._rate=e._rate,A._seek=0,A._paused=!0,A._ended=!0,A._sprite="__default",A._id=++g._counter,e._sounds.push(A),A.create(),A},create:function(){var A=this,e=A._parent,t=g._muted||A._muted||A._parent._muted?0:A._volume;return e._webAudio?(A._node=void 0===g.ctx.createGain?g.ctx.createGainNode():g.ctx.createGain(),A._node.gain.setValueAtTime(t,g.ctx.currentTime),A._node.paused=!0,A._node.connect(g.masterGain)):g.noAudio||(A._node=g._obtainHtml5Audio(),A._errorFn=A._errorListener.bind(A),A._node.addEventListener("error",A._errorFn,!1),A._loadFn=A._loadListener.bind(A),A._node.addEventListener(g._canPlayEvent,A._loadFn,!1),A._node.src=e._src,A._node.preload="auto",A._node.volume=t*g.volume(),A._node.load()),A},reset:function(){var A=this,e=A._parent;return A._muted=e._muted,A._loop=e._loop,A._volume=e._volume,A._rate=e._rate,A._seek=0,A._rateSeek=0,A._paused=!0,A._ended=!0,A._sprite="__default",A._id=++g._counter,A},_errorListener:function(){var A=this;A._parent._emit("loaderror",A._id,A._node.error?A._node.error.code:0),A._node.removeEventListener("error",A._errorFn,!1)},_loadListener:function(){var A=this._parent;A._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(A._sprite).length&&(A._sprite={__default:[0,1e3*A._duration]}),"loaded"!==A._state&&(A._state="loaded",A._emit("load"),A._loadQueue()),this._node.removeEventListener(g._canPlayEvent,this._loadFn,!1)}},{}),a=function(e){var A=e._src;if(r[A])return e._duration=r[A].duration,void u(e);if(/^data:[^;]+;base64,/.test(A)){for(var t=atob(A.split(",")[1]),n=new Uint8Array(t.length),o=0;o<t.length;++o)n[o]=t.charCodeAt(o);c(n.buffer,e)}else{var i=new XMLHttpRequest;i.open("GET",A,!0),i.withCredentials=e._xhrWithCredentials,i.responseType="arraybuffer",i.onload=function(){var A=(i.status+"")[0];"0"!==A&&"2"!==A&&"3"!==A?e._emit("loaderror",null,"Failed loading audio file with status: "+i.status+"."):c(i.response,e)},i.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete r[A],e.load())},s(i)}},s=function(e){try{e.send()}catch(A){e.onerror()}},c=function(A,e){function t(){e._emit("loaderror",null,"Decoding audio data failed.")}function n(A){A&&0<e._sounds.length?(r[e._src]=A,u(e,A)):t()}"undefined"!=typeof Promise&&1===g.ctx.decodeAudioData.length?g.ctx.decodeAudioData(A).then(n).catch(t):g.ctx.decodeAudioData(A,n,t)},u=function(A,e){e&&!A._duration&&(A._duration=e.duration),0===Object.keys(A._sprite).length&&(A._sprite={__default:[0,1e3*A._duration]}),"loaded"!==A._state&&(A._state="loaded",A._emit("load"),A._loadQueue())},l=function(){if(g.usingWebAudio){try{"undefined"!=typeof AudioContext?g.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?g.ctx=new webkitAudioContext:g.usingWebAudio=!1}catch(A){g.usingWebAudio=!1}g.ctx||(g.usingWebAudio=!1);var A=/iP(hone|od|ad)/.test(g._navigator&&g._navigator.platform),e=g._navigator&&g._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),e=e?parseInt(e[1],10):null;A&&e&&e<9&&(e=/safari/.test(g._navigator&&g._navigator.userAgent.toLowerCase()),(g._navigator&&g._navigator.standalone&&!e||g._navigator&&!g._navigator.standalone&&!e)&&(g.usingWebAudio=!1)),g.usingWebAudio&&(g.masterGain=void 0===g.ctx.createGain?g.ctx.createGainNode():g.ctx.createGain(),g.masterGain.gain.setValueAtTime(g._muted?0:g._volume,g.ctx.currentTime),g.masterGain.connect(g.ctx.destination)),g._setup()}};"function"==typeof define&&define.amd&&define([],function(){return{Howler:g,Howl:e}}),"undefined"!=typeof exports&&(exports.Howler=g,exports.Howl=e),"undefined"!=typeof window?(window.HowlerGlobal=A,window.Howler=g,window.Howl=e,window.Sound=i):"undefined"!=typeof global&&(global.HowlerGlobal=A,global.Howler=g,global.Howl=e,global.Sound=i)}(),function(){"use strict";HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(A){var e=this;if(!e.ctx||!e.ctx.listener)return e;for(var t=e._howls.length-1;0<=t;t--)e._howls[t].stereo(A);return e},HowlerGlobal.prototype.pos=function(A,e,t){var n=this;return n.ctx&&n.ctx.listener?(e="number"!=typeof e?n._pos[1]:e,t="number"!=typeof t?n._pos[2]:t,"number"!=typeof A?n._pos:(n._pos=[A,e,t],void 0!==n.ctx.listener.positionX?(n.ctx.listener.positionX.setTargetAtTime(n._pos[0],Howler.ctx.currentTime,.1),n.ctx.listener.positionY.setTargetAtTime(n._pos[1],Howler.ctx.currentTime,.1),n.ctx.listener.positionZ.setTargetAtTime(n._pos[2],Howler.ctx.currentTime,.1)):n.ctx.listener.setPosition(n._pos[0],n._pos[1],n._pos[2]),n)):n},HowlerGlobal.prototype.orientation=function(A,e,t,n,o,i){var r=this;if(!r.ctx||!r.ctx.listener)return r;var a=r._orientation;return e="number"!=typeof e?a[1]:e,t="number"!=typeof t?a[2]:t,n="number"!=typeof n?a[3]:n,o="number"!=typeof o?a[4]:o,i="number"!=typeof i?a[5]:i,"number"!=typeof A?a:(r._orientation=[A,e,t,n,o,i],void 0!==r.ctx.listener.forwardX?(r.ctx.listener.forwardX.setTargetAtTime(A,Howler.ctx.currentTime,.1),r.ctx.listener.forwardY.setTargetAtTime(e,Howler.ctx.currentTime,.1),r.ctx.listener.forwardZ.setTargetAtTime(t,Howler.ctx.currentTime,.1),r.ctx.listener.upX.setTargetAtTime(n,Howler.ctx.currentTime,.1),r.ctx.listener.upY.setTargetAtTime(o,Howler.ctx.currentTime,.1),r.ctx.listener.upZ.setTargetAtTime(i,Howler.ctx.currentTime,.1)):r.ctx.listener.setOrientation(A,e,t,n,o,i),r)},Howl.prototype.init=(o=Howl.prototype.init,function(A){var e=this;return e._orientation=A.orientation||[1,0,0],e._stereo=A.stereo||null,e._pos=A.pos||null,e._pannerAttr={coneInnerAngle:void 0!==A.coneInnerAngle?A.coneInnerAngle:360,coneOuterAngle:void 0!==A.coneOuterAngle?A.coneOuterAngle:360,coneOuterGain:void 0!==A.coneOuterGain?A.coneOuterGain:0,distanceModel:void 0!==A.distanceModel?A.distanceModel:"inverse",maxDistance:void 0!==A.maxDistance?A.maxDistance:1e4,panningModel:void 0!==A.panningModel?A.panningModel:"HRTF",refDistance:void 0!==A.refDistance?A.refDistance:1,rolloffFactor:void 0!==A.rolloffFactor?A.rolloffFactor:1},e._onstereo=A.onstereo?[{fn:A.onstereo}]:[],e._onpos=A.onpos?[{fn:A.onpos}]:[],e._onorientation=A.onorientation?[{fn:A.onorientation}]:[],o.call(this,A)}),Howl.prototype.stereo=function(A,e){var t=this;if(!t._webAudio)return t;if("loaded"!==t._state)return t._queue.push({event:"stereo",action:function(){t.stereo(A,e)}}),t;var n=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===e){if("number"!=typeof A)return t._stereo;t._stereo=A,t._pos=[A,0,0]}for(var o=t._getSoundIds(e),i=0;i<o.length;i++){var r=t._soundById(o[i]);if(r){if("number"!=typeof A)return r._stereo;r._stereo=A,r._pos=[A,0,0],r._node&&(r._pannerAttr.panningModel="equalpower",r._panner&&r._panner.pan||c(r,n),"spatial"==n?void 0!==r._panner.positionX?(r._panner.positionX.setValueAtTime(A,Howler.ctx.currentTime),r._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),r._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):r._panner.setPosition(A,0,0):r._panner.pan.setValueAtTime(A,Howler.ctx.currentTime)),t._emit("stereo",r._id)}}return t},Howl.prototype.pos=function(A,e,t,n){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"pos",action:function(){o.pos(A,e,t,n)}}),o;if(e="number"!=typeof e?0:e,t="number"!=typeof t?-.5:t,void 0===n){if("number"!=typeof A)return o._pos;o._pos=[A,e,t]}for(var i=o._getSoundIds(n),r=0;r<i.length;r++){var a=o._soundById(i[r]);if(a){if("number"!=typeof A)return a._pos;a._pos=[A,e,t],a._node&&(a._panner&&!a._panner.pan||c(a,"spatial"),void 0!==a._panner.positionX?(a._panner.positionX.setValueAtTime(A,Howler.ctx.currentTime),a._panner.positionY.setValueAtTime(e,Howler.ctx.currentTime),a._panner.positionZ.setValueAtTime(t,Howler.ctx.currentTime)):a._panner.setPosition(A,e,t)),o._emit("pos",a._id)}}return o},Howl.prototype.orientation=function(A,e,t,n){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"orientation",action:function(){o.orientation(A,e,t,n)}}),o;if(e="number"!=typeof e?o._orientation[1]:e,t="number"!=typeof t?o._orientation[2]:t,void 0===n){if("number"!=typeof A)return o._orientation;o._orientation=[A,e,t]}for(var i=o._getSoundIds(n),r=0;r<i.length;r++){var a=o._soundById(i[r]);if(a){if("number"!=typeof A)return a._orientation;a._orientation=[A,e,t],a._node&&(a._panner||(a._pos||(a._pos=o._pos||[0,0,-.5]),c(a,"spatial")),void 0!==a._panner.orientationX?(a._panner.orientationX.setValueAtTime(A,Howler.ctx.currentTime),a._panner.orientationY.setValueAtTime(e,Howler.ctx.currentTime),a._panner.orientationZ.setValueAtTime(t,Howler.ctx.currentTime)):a._panner.setOrientation(A,e,t)),o._emit("orientation",a._id)}}return o},Howl.prototype.pannerAttr=function(){var A,e,t,n=this,o=arguments;if(!n._webAudio)return n;if(0===o.length)return n._pannerAttr;if(1===o.length){if("object"!=typeof o[0])return((t=n._soundById(parseInt(o[0],10)))||n)._pannerAttr;A=o[0],void 0===e&&(A.pannerAttr||(A.pannerAttr={coneInnerAngle:A.coneInnerAngle,coneOuterAngle:A.coneOuterAngle,coneOuterGain:A.coneOuterGain,distanceModel:A.distanceModel,maxDistance:A.maxDistance,refDistance:A.refDistance,rolloffFactor:A.rolloffFactor,panningModel:A.panningModel}),n._pannerAttr={coneInnerAngle:void 0!==A.pannerAttr.coneInnerAngle?A.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:void 0!==A.pannerAttr.coneOuterAngle?A.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:void 0!==A.pannerAttr.coneOuterGain?A.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:void 0!==A.pannerAttr.distanceModel?A.pannerAttr.distanceModel:n._distanceModel,maxDistance:void 0!==A.pannerAttr.maxDistance?A.pannerAttr.maxDistance:n._maxDistance,refDistance:void 0!==A.pannerAttr.refDistance?A.pannerAttr.refDistance:n._refDistance,rolloffFactor:void 0!==A.pannerAttr.rolloffFactor?A.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:void 0!==A.pannerAttr.panningModel?A.pannerAttr.panningModel:n._panningModel})}else 2===o.length&&(A=o[0],e=parseInt(o[1],10));for(var i,r,a=n._getSoundIds(e),s=0;s<a.length;s++)(t=n._soundById(a[s]))&&(i=t._pannerAttr,i={coneInnerAngle:(void 0!==A.coneInnerAngle?A:i).coneInnerAngle,coneOuterAngle:(void 0!==A.coneOuterAngle?A:i).coneOuterAngle,coneOuterGain:(void 0!==A.coneOuterGain?A:i).coneOuterGain,distanceModel:(void 0!==A.distanceModel?A:i).distanceModel,maxDistance:(void 0!==A.maxDistance?A:i).maxDistance,refDistance:(void 0!==A.refDistance?A:i).refDistance,rolloffFactor:(void 0!==A.rolloffFactor?A:i).rolloffFactor,panningModel:(void 0!==A.panningModel?A:i).panningModel},(r=t._panner)?(r.coneInnerAngle=i.coneInnerAngle,r.coneOuterAngle=i.coneOuterAngle,r.coneOuterGain=i.coneOuterGain,r.distanceModel=i.distanceModel,r.maxDistance=i.maxDistance,r.refDistance=i.refDistance,r.rolloffFactor=i.rolloffFactor,r.panningModel=i.panningModel):(t._pos||(t._pos=n._pos||[0,0,-.5]),c(t,"spatial")));return n},Sound.prototype.init=(n=Sound.prototype.init,function(){var A=this,e=A._parent;A._orientation=e._orientation,A._stereo=e._stereo,A._pos=e._pos,A._pannerAttr=e._pannerAttr,n.call(this),A._stereo?e.stereo(A._stereo):A._pos&&e.pos(A._pos[0],A._pos[1],A._pos[2],A._id)}),Sound.prototype.reset=(t=Sound.prototype.reset,function(){var A=this,e=A._parent;return A._orientation=e._orientation,A._stereo=e._stereo,A._pos=e._pos,A._pannerAttr=e._pannerAttr,A._stereo?e.stereo(A._stereo):A._pos?e.pos(A._pos[0],A._pos[1],A._pos[2],A._id):A._panner&&(A._panner.disconnect(0),A._panner=void 0,e._refreshBuffer(A)),t.call(this)});var t,n,o,c=function(A,e){"spatial"===(e=e||"spatial")?(A._panner=Howler.ctx.createPanner(),A._panner.coneInnerAngle=A._pannerAttr.coneInnerAngle,A._panner.coneOuterAngle=A._pannerAttr.coneOuterAngle,A._panner.coneOuterGain=A._pannerAttr.coneOuterGain,A._panner.distanceModel=A._pannerAttr.distanceModel,A._panner.maxDistance=A._pannerAttr.maxDistance,A._panner.refDistance=A._pannerAttr.refDistance,A._panner.rolloffFactor=A._pannerAttr.rolloffFactor,A._panner.panningModel=A._pannerAttr.panningModel,void 0!==A._panner.positionX?(A._panner.positionX.setValueAtTime(A._pos[0],Howler.ctx.currentTime),A._panner.positionY.setValueAtTime(A._pos[1],Howler.ctx.currentTime),A._panner.positionZ.setValueAtTime(A._pos[2],Howler.ctx.currentTime)):A._panner.setPosition(A._pos[0],A._pos[1],A._pos[2]),void 0!==A._panner.orientationX?(A._panner.orientationX.setValueAtTime(A._orientation[0],Howler.ctx.currentTime),A._panner.orientationY.setValueAtTime(A._orientation[1],Howler.ctx.currentTime),A._panner.orientationZ.setValueAtTime(A._orientation[2],Howler.ctx.currentTime)):A._panner.setOrientation(A._orientation[0],A._orientation[1],A._orientation[2])):(A._panner=Howler.ctx.createStereoPanner(),A._panner.pan.setValueAtTime(A._stereo,Howler.ctx.currentTime)),A._panner.connect(A._node),A._paused||A._parent.pause(A._id,!0).play(A._id,!0)}}(),function(n){n.fn.qr=function(A){return this.each(function(){var e={size:"230",delay:"0"},t=(A&&n.extend(e,A),n(this));t.qr_div=function(A,e){var t=escape(A);for(;-1!=t.indexOf("/");)t=t.replace("/","%2f");A=document.createElement("div");return($qr=n(A)).css({background:"url('https://chart.apis.google.com/chart?cht=qr&chs="+e+"x"+e+"&chl="+t+"') no-repeat",width:e+"px",height:e+"px",display:"none","border-style":"solid","border-width":"1px",position:"absolute","z-index":"1000"}),n("body").append($qr),A}(t.attr("qrtarget"),e.size),t.mouseenter(function(A){t.qr_timeout_id=window.setTimeout(function(){n(t.qr_div).css({display:"block",top:A.pageY+5,left:A.pageX+15})},e.delay)}),t.mouseleave(function(A){null!=t.qr_timeout_id&&(window.clearTimeout(t.qr_timeout_id),t.qr_timeout_id=null),n(t.qr_div).css({display:"none"})})})}}(jQuery),function(S){"use strict";var B=S(document),k=".nui",r=S.fn.val,x=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},E=["noUi-target","noUi-base","noUi-origin","noUi-handle","noUi-horizontal","noUi-vertical","noUi-background","noUi-connect","noUi-ltr","noUi-rtl","noUi-dragable","","noUi-state-drag","","noUi-state-tap","noUi-active","noUi-extended","noUi-stacking"],A=["decimals","mark","thousand","prefix","postfix","encoder","decoder","negative","negativeBefore"],o=[2,".","","","",function(A){return A},function(A){return A},"-",""];function a(A){throw new RangeError("noUiSlider: "+A)}function e(A,e,t){(A[e]||A[t])&&A[e]===A[t]&&a("(Link) '"+e+"' can't match '"+t+"'.'")}function C(A){return Math.max(Math.min(A,100),0)}function s(A,e){return 100/(e-A)}function n(A){return"number"==typeof A&&!isNaN(A)&&isFinite(A)}function I(A,e,t){A.addClass(e),setTimeout(function(){A.removeClass(e)},t)}function c(A,e){return 100*e/(A[1]-A[0])}function T(A,e){if(e>=A.xVal.slice(-1)[0])return 100;for(var t,n,o,i,r,a=1;e>=A.xVal[a];)a++;return i=A.xVal[a-1],t=A.xVal[a],n=A.xPct[a-1],o=A.xPct[a],n+(r=e,c(i=[i,t],i[0]<0?r+Math.abs(i[0]):r-i[0])/s(n,o))}function D(A,e){for(var t,n,o=1;e>=A.xPct[o];)o++;return A.snap?(n=A.xPct[o-1],((t=A.xPct[o])-n)/2<e-n?t:n):A.xSteps[o-1]?A.xPct[o-1]+(t=e-A.xPct[o-1],n=A.xSteps[o-1],Math.round(t/n)*n):e}function i(t){"object"!=typeof(t=void 0===t?{}:t)&&a("(Format) 'format' option must be an object.");var n={};S(A).each(function(A,e){void 0===t[e]?n[e]=o[A]:typeof t[e]==typeof o[A]?("decimals"===e&&(t[e]<0||7<t[e])&&a("(Format) 'format.decimals' option must be between 0 and 7."),n[e]=t[e]):a("(Format) 'format."+e+"' must be a "+typeof o[A]+".")}),e(n,"mark","thousand"),e(n,"prefix","negative"),e(n,"prefix","negativeBefore"),this.settings=n}function u(A,e){if(!(this instanceof u))throw new Error("Link: Don't use Link as a function. Use the 'new' keyword.");if(!A)throw new RangeError("Link: missing parameters.");this.formatting=A.format||{},this.update=!e;var n=this,e=A.target||function(){},A=A.method,t="string"==typeof e&&0===e.indexOf("-tooltip-"),o="string"==typeof e&&0!==e.indexOf("-"),i="function"==typeof e,r=(r=e)instanceof S||S.zepto&&S.zepto.isZ(r),a=r&&e.is("input, select, textarea"),s=r&&"function"==typeof A,c=r&&"string"==typeof A&&e[A];if(t)return this.method=A||"html",void(this.el=S(e.replace("-tooltip-","")||"<div/>")[0]);if(o)return this.method="val",this.el=document.createElement("input"),this.el.name=e,void(this.el.type="hidden");if(i)return this.target=!1,void(this.method=e);if(r){if(A&&(s||c))return this.target=e,void(this.method=A);if(!A&&a)return this.method="val",this.target=e,void this.target.on("change",function(A){e=null,A=S(A.target).val();var e,t=[(t=n.N)?e:A,t?A:e];n.obj.val(t,{link:n})});if(!A&&!a)return this.method="html",void(this.target=e)}throw new RangeError("Link: Invalid Link.")}function l(A,e){n(e)||a("'step' is not numeric."),A.xSteps[0]=e}function d(t,A){"object"==typeof A&&!S.isArray(A)||a("'range' is not an object."),S.each(A,function(A,e){S.isArray(e="number"==typeof e?[e]:e)||a("'range' contains invalid value."),n(A="min"===A?0:"max"===A?100:parseFloat(A))&&n(e[0])||a("'range' value isn't numeric."),t.xPct.push(A),t.xVal.push(e[0]),A?t.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(t.xSteps[0]=e[1])}),S.each(t.xSteps,function(A,e){if(!e)return!0;t.xSteps[A]=c([t.xVal[A],t.xVal[A+1]],e)/s(t.xPct[A],t.xPct[A+1])})}function p(A,e){S.isArray(e="number"==typeof e?[e]:e)&&e.length&&!(2<e.length)||a("'start' option is incorrect."),A.handles=e.length,A.start=e}function h(A,e){"boolean"!=typeof(A.snap=e)&&a("'snap' option must be a boolean.")}function _(A,e){"lower"===e&&1===A.handles?A.connect=1:"upper"===e&&1===A.handles?A.connect=2:!0===e&&2===A.handles?A.connect=3:!1===e?A.connect=0:a("'connect' option was doesn't match handle count.")}function f(A,e){switch(e){case"horizontal":A.ort=0;break;case"vertical":A.ort=1;break;default:a("'orientation' option is invalid.")}}function m(A,e){2<A.xPct.length&&a("'margin' option is only supported on linear sliders."),A.margin=c(A.xVal,e),n(e)||a("'margin' option must be numeric.")}function g(A,e){switch(e){case"ltr":A.dir=0;break;case"rtl":A.dir=1,A.connect=[0,2,1,3][A.connect];break;default:a("'direction' option was not recognized.")}}function v(A,e){"string"!=typeof e&&a("'behaviour' must be a string containing options.");var t=0<=e.indexOf("tap"),n=0<=e.indexOf("extend"),o=0<=e.indexOf("drag"),i=0<=e.indexOf("fixed"),e=0<=e.indexOf("snap");A.events={tap:t||e,extend:n,drag:o,fixed:i,snap:e}}function b(A,t,n){A.ser=[t.lower,t.upper],A.formatting=new i(t.format),S.each(A.ser,function(A,e){S.isArray(e)||a("'serialization."+(A?"upper":"lower")+"' must be an array."),S.each(e,function(){this instanceof u||a("'serialization."+(A?"upper":"lower")+"' can only contain Link instances."),this.N=A,this.obj=n,this.scope=this.scope||n,this.formatting=new i(S.extend({},t.format,this.formatting))})}),A.dir&&1<A.handles&&A.ser.reverse()}function Q(A,e,t){var n,o,i,r=[];for(r.push(new u({format:t},!0)),n=0;n<A.length;n++)r.push((o=e,i=(i=A[n]).el?new u({target:S(i.el).clone().appendTo(o),method:i.method,format:i.formatting},!0):i));return r}function O(A,e){for(var t,n,o,i,r=[],a=0;a<A.handles;a++)r.push((t=A,n=a,i=o=void 0,o=S("<div><div/></div>").addClass(E[2]),i=["-lower","-upper"],t.dir&&i.reverse(),o.children().addClass(E[3]+" "+E[3]+i[n]),o.appendTo(e)));return r}function w(A,u,e){var t,n,l=S(A),a=[-1,-1];function s(){return m[["width","height"][u.ort]]()}function c(A){for(var e=[l.val()],t=0;t<A.length;t++)l.trigger(A[t],e)}function d(A,e,t){var n=A[0]!==g[0][0]?1:0,o=a[0]+u.margin,i=a[1]-u.margin;return(e=t&&1<g.length?n?Math.max(e,o):Math.min(e,i):e)<100&&(e=D(u,e)),(e=C(parseFloat(e.toFixed(7))))===a[n]?1!==g.length&&((e===o||e===i)&&0):(A.css(u.style,e+"%"),A.is(":first-child")&&A.toggleClass(E[17],50<e),a[n]=e,u.dir&&(e=100-e),S(v[n]).each(function(){this.write(u,e,A.children(),l)}),!0)}function o(A,e,t){t||I(l,E[14],300),d(A,e,!1),c(["slide","set","change"])}function i(A,e,s,c){A=A.replace(/\s/g,k+" ")+k,e.on(A,function(A){var e,t,n,o,i,r,a=!(null==(a=l.attr("disabled")));if(l.hasClass(E[14])||a)return!1;(a=A).preventDefault(),n=0===a.type.indexOf("touch"),o=0===a.type.indexOf("mouse"),i=0===a.type.indexOf("pointer"),0===(r=a).type.indexOf("MSPointer")&&(i=!0),a.originalEvent&&(a=a.originalEvent),n&&(e=a.changedTouches[0].pageX,t=a.changedTouches[0].pageY),(o||i)&&(i||void 0!==window.pageXOffset||(window.pageXOffset=document.documentElement.scrollLeft,window.pageYOffset=document.documentElement.scrollTop),e=a.clientX+window.pageXOffset,t=a.clientY+window.pageYOffset),r.points=[e,t],r.cursor=o,(A=r).calcPoint=A.points[u.ort],s(A,c)})}function r(A,e){var t,n,o=e.handles||g,i=!1,A=100*(A.calcPoint-e.start)/s(),r=o[0][0]!==g[0][0]?1:0;A=A,e=e.positions,t=1<o.length,n=A+e[0],A+=e[1],e=t?(n<0&&(A+=Math.abs(n)),100<A&&(n-=A-100),[C(n),C(A)]):[n,A],i=d(o[0],e[r],1===o.length),(i=1<o.length?d(o[1],e[r?0:1],!1)||i:i)&&c(["slide"])}function p(A){S("."+E[15]).removeClass(E[15]),A.cursor&&S("body").css("cursor","").off(k),B.off(k),l.removeClass(E[12]),c(["set","change"])}function h(A,e){1===e.handles.length&&e.handles[0].children().addClass(E[15]),A.stopPropagation(),i(x.move,B,r,{start:A.calcPoint,handles:e.handles,positions:[a[0],a[g.length-1]]}),i(x.end,B,p,null),A.cursor&&(S("body").css("cursor",S(A.target).css("cursor")),1<g.length&&l.addClass(E[12]),S("body").on("selectstart"+k,!1))}function _(A){var e=A.calcPoint,t=0;A.stopPropagation(),S.each(g,function(){t+=this.offset()[u.style]}),t=e<t/2||1===g.length?0:1,e=100*(e-=m.offset()[u.style])/s(),o(g[t],e,u.events.snap),u.events.snap&&h(A,{handles:[g[t]]})}function f(A){var e=(A=A.calcPoint<m.offset()[u.style])?0:100,A=A?0:g.length-1;o(g[A],e,!1)}if(!l.is(":empty"))throw new Error("Slider was already initialized.");(b=l).addClass([E[0],E[8+u.dir],E[4+u.ort]].join(" "));var m=S("<div/>").appendTo(b).addClass(E[1]),g=O(u,m),v=function(A,e){for(var t=[],n=0;n<A.handles;n++)t[n]=Q(A.ser[n],e[n].children(),A.formatting);return t}(u,g),b=u.connect,w=l,y=g;switch(b){case 1:w.addClass(E[7]),y[0].addClass(E[6]);break;case 3:y[1].addClass(E[6]);case 2:y[0].addClass(E[7]);case 0:w.addClass(E[6])}b=u.events;if(!b.fixed)for(t=0;t<g.length;t++)i(x.start,g[t].children(),h,{handles:[g[t]]});b.tap&&i(x.start,m,_,{handles:g}),b.extend&&(l.addClass(E[16]),b.tap&&i(x.start,l,f,{handles:g})),b.drag&&(n=m.find("."+E[7]).addClass(E[10]),b.fixed&&(n=n.add(m.children().not(n).children())),i(x.start,n,h,{handles:g})),A.vSet=function(A,e,t,n,o){var i,r;for(u.dir&&1<u.handles&&A.reverse(),o&&I(l,E[14],300),i=0;i<(1<g.length?3:1);i++)!1!==(r=(r=t||v[i%2][0]).valueOf(A[i%2]))&&(r=T(u,r),u.dir&&(r=100-r),!0!==d(g[i%2],r,!0)&&S(v[i%2]).each(function(){this.write(u,a[i%2],g[i%2].children(),l,n)}));return!0===e&&c(["set"]),this},A.vGet=function(){for(var A=[],e=0;e<u.handles;e++)A[e]=v[e][0].saved;return 1===A.length?A[0]:u.dir&&1<u.handles?A.reverse():A},A.destroy=function(){return S.each(v,function(){S.each(this,function(){this.target&&this.target.off(k)})}),S(this).off(k).removeClass(E.join(" ")).empty(),e},l.val(u.start)}function t(A){this.length||a("Can't initialize slider on empty selection.");t=A,n=this,e={step:{r:!(o={xPct:[],xVal:[],xSteps:[!1],margin:0}),t:l},range:{r:!0,t:d},start:{r:!0,t:p},snap:{r:!1,t:h},connect:{r:!0,t:_},orientation:{r:!1,t:f},margin:{r:!1,t:m},direction:{r:!0,t:g},behaviour:{r:!0,t:v},serialization:{r:!0,t:b}},(t=S.extend({connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal"},t)).serialization=S.extend({lower:[],upper:[],format:{}},t.serialization),S.each(e,function(A,e){if(void 0===t[A]){if(!e.r)return!0;a("'"+A+"' is required.")}e.t(o,t[A],n)}),o.style=o.ort?"top":"left";var t,n,o,e,i=o;return this.each(function(){w(this,i,A)})}i.prototype.v=function(A){return this.settings[A]},i.prototype.to=function(A){function e(A){return A.split("").reverse().join("")}var t="",n="",o="",i="";return(A=this.v("encoder")(A))<0&&(t=this.v("negative"),n=this.v("negativeBefore")),A=(A=Math.abs(A).toFixed(this.v("decimals")).toString()).split("."),0===parseFloat(A)&&(A[0]="0"),o=this.v("thousand")?(o=e(A[0]).match(/.{1,3}/g),e(o.join(e(this.v("thousand"))))):A[0],this.v("mark")&&1<A.length&&(i=this.v("mark")+A[1]),n+this.v("prefix")+t+o+i+this.v("postfix")},i.prototype.from=function(A){function e(A){return A.replace(/[\-\/\\\^$*+?.()|\[\]{}]/g,"\\$&")}var t;return null!=A&&(t=(A=A.toString()).replace(new RegExp("^"+e(this.v("negativeBefore"))),""),t=A!==t?(A=t,"-"):"",A=A.replace(new RegExp("^"+e(this.v("prefix"))),""),this.v.negative&&(t="",A=A.replace(new RegExp("^"+e(this.v("negative"))),"-")),A=A.replace(new RegExp(e(this.v("postfix"))+"$"),"").replace(new RegExp(e(this.v("thousand")),"g"),"").replace(this.v("mark"),"."),A=this.v("decoder")(parseFloat(t+A)),!isNaN(A)&&A)},u.prototype.write=function(A,e,t,n,o){this.update&&!1===o||(e=function(A,e){if(100<=e)return A.xVal.slice(-1)[0];for(var t,n,o,i,r=1;e>=A.xPct[r];)r++;return t=A.xVal[r-1],n=A.xVal[r],i=A.xPct[r-1],o=A.xPct[r],(e-i)*s(i,o)*((i=[t,n])[1]-i[0])/100+i[0]}(A,e),e=this.format(e),this.saved=e,"function"==typeof this.method?this.method.call(this.target[0]||n[0],e,t,n):this.target[this.method](e,t,n))},u.prototype.format=function(A){return this.formatting.to(A)},u.prototype.valueOf=function(A){return this.formatting.from(A)},S.noUiSlider={Link:u},S.fn.noUiSlider=function(A,e){return(e?function(n){return this.each(function(){var A=S(this).val(),e=this.destroy(),t=S.extend({},e,n);S(this).noUiSlider(t),e.start===t.start&&S(this).val(A)})}:t).call(this,A)},S.fn.val=function(){var e,t,n,o,i=Array.prototype.slice.call(arguments,0);return i.length?("object"==typeof i[1]?(e=i[1].set,t=i[1].link,n=i[1].update,o=i[1].animate):!0===i[1]&&(e=!0),this.each(function(){var A;S(this).hasClass(E[0])?this.vSet((A=i[0],S.isArray(A)?A:[A]),e,t,n,o):r.apply(S(this),i)})):this.hasClass(E[0])?this[0].vGet():r.apply(this)}}(window.jQuery||window.Zepto),function(A,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.NoSleep=e():A.NoSleep=e()}(this,function(){return t=[function(A,e,t){"use strict";var n=function(A,e,t){return e&&o(A.prototype,e),t&&o(A,t),A};function o(A,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(A,n.key,n)}}function i(){return"undefined"!=typeof navigator&&parseFloat((""+(/CPU.*OS ([0-9_]{3,4})[0-9_]{0,1}|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))<10&&!window.MSStream}function r(){return"wakeLock"in navigator}var t=t(1),a=t.webm,s=t.mp4;function c(){var A,e=this;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");this.enabled=!1,r()?(this._wakeLock=null,A=function(){null!==e._wakeLock&&"visible"===document.visibilityState&&e.enable()},document.addEventListener("visibilitychange",A),document.addEventListener("fullscreenchange",A)):i()?this.noSleepTimer=null:(this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("title","No Sleep"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"webm",a),this._addSourceToVideo(this.noSleepVideo,"mp4",s),this.noSleepVideo.addEventListener("loadedmetadata",function(){e.noSleepVideo.duration<=1?e.noSleepVideo.setAttribute("loop",""):e.noSleepVideo.addEventListener("timeupdate",function(){.5<e.noSleepVideo.currentTime&&(e.noSleepVideo.currentTime=Math.random())})}))}n(c,[{key:"_addSourceToVideo",value:function(A,e,t){var n=document.createElement("source");n.src=t,n.type="video/"+e,A.appendChild(n)}},{key:"enable",value:function(){var e=this;return r()?navigator.wakeLock.request("screen").then(function(A){e._wakeLock=A,e.enabled=!0,console.log("Wake Lock active."),e._wakeLock.addEventListener("release",function(){console.log("Wake Lock released.")})}).catch(function(A){throw e.enabled=!1,console.error(A.name+", "+A.message),A}):i()?(this.disable(),console.warn("\n NoSleep enabled for older iOS devices. This can interrupt\n active or long-running network requests from completing successfully.\n See https://github.com/richtr/NoSleep.js/issues/15 for more details.\n "),this.noSleepTimer=window.setInterval(function(){document.hidden||(window.location.href=window.location.href.split("#")[0],window.setTimeout(window.stop,0))},15e3),this.enabled=!0,Promise.resolve()):this.noSleepVideo.play().then(function(A){return e.enabled=!0,A}).catch(function(A){throw e.enabled=!1,A})}},{key:"disable",value:function(){r()?(this._wakeLock&&this._wakeLock.release(),this._wakeLock=null):i()?this.noSleepTimer&&(console.warn("\n NoSleep now disabled for older iOS devices.\n "),window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause(),this.enabled=!1}},{key:"isEnabled",get:function(){return this.enabled}}]),A.exports=c},function(A,e,t){"use strict";A.exports={webm:"data:video/webm;base64,GkXfowEAAAAAAAAfQoaBAUL3gQFC8oEEQvOBCEKChHdlYm1Ch4EEQoWBAhhTgGcBAAAAAAAVkhFNm3RALE27i1OrhBVJqWZTrIHfTbuMU6uEFlSua1OsggEwTbuMU6uEHFO7a1OsghV17AEAAAAAAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmAQAAAAAAAEUq17GDD0JATYCNTGF2ZjU1LjMzLjEwMFdBjUxhdmY1NS4zMy4xMDBzpJBlrrXf3DCDVB8KcgbMpcr+RImIQJBgAAAAAAAWVK5rAQAAAAAAD++uAQAAAAAAADLXgQFzxYEBnIEAIrWcg3VuZIaFVl9W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zXdWXZloEsu67s2rIAAPAEBwCgAhtWRzgpGgssNGQlAJABAEAYg5BCCCFlEEIKIYSUUggJAAAYcAAACDChDBQashIASAUAAIyx1lprrbXWQGettdZaa62AzFprrbXWWmuttdZaa6211lJrrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmstpZRSSimllFJKKaWUUkoppZRSSgUA+lU4APg/2LA6wknRWGChISsBgHAAAMAYpRhzDEIppVQIMeacdFRai7FCiDHnJKTUWmzFc85BKCGV1mIsnnMOQikpxVZjUSmEUlJKLbZYi0qho5JSSq3VWIwxqaTWWoutxmKMSSm01FqLMRYjbE2ptdhqq7EYY2sqLbQYY4zFCF9kbC2m2moNxggjWywt1VprMMYY3VuLpbaaizE++NpSLDHWXAAAd4MDAESCjTOsJJ0VjgYXGrISAAgJACAQUooxxhhzzjnnpFKMOeaccw5CCKFUijHGnHMOQgghlIwx5pxzEEIIIYRSSsaccxBCCCGEkFLqnHMQQgghhBBKKZ1zDkIIIYQQQimlgxBCCCGEEEoopaQUQgghhBBCCKmklEIIIYRSQighlZRSCCGEEEIpJaSUUgohhFJCCKGElFJKKYUQQgillJJSSimlEkoJJYQSUikppRRKCCGUUkpKKaVUSgmhhBJKKSWllFJKIYQQSikFAAAcOAAABBhBJxlVFmGjCRcegEJDVgIAZAAAkKKUUiktRYIipRikGEtGFXNQWoqocgxSzalSziDmJJaIMYSUk1Qy5hRCDELqHHVMKQYtlRhCxhik2HJLoXMOAAAAQQCAgJAAAAMEBTMAwOAA4XMQdAIERxsAgCBEZohEw0JweFAJEBFTAUBigkIuAFRYXKRdXECXAS7o4q4DIQQhCEEsDqCABByccMMTb3jCDU7QKSp1IAAAAAAADADwAACQXAAREdHMYWRobHB0eHyAhIiMkAgAAAAAABcAfAAAJCVAREQ0cxgZGhscHR4fICEiIyQBAIAAAgAAAAAggAAEBAQAAAAAAAIAAAAEBB9DtnUBAAAAAAAEPueBAKOFggAAgACjzoEAA4BwBwCdAS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(A,e)||Object.defineProperty(A,e,{enumerable:!0,get:t})},o.r=function(A){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},o.t=function(e,A){if(1&A&&(e=o(e)),8&A)return e;if(4&A&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&A&&"string"!=typeof e)for(var n in e)o.d(t,n,function(A){return e[A]}.bind(null,n));return t},o.n=function(A){var e=A&&A.__esModule?function(){return A.default}:function(){return A};return o.d(e,"a",e),e},o.o=function(A,e){return Object.prototype.hasOwnProperty.call(A,e)},o.p="",o(o.s=0);function o(A){if(n[A])return n[A].exports;var e=n[A]={i:A,l:!1,exports:{}};return t[A].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var t,n}),window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(A,e){window.setTimeout(A,1e3/60)}),function(){window.visibly={b:null,q:document,p:void 0,prefixes:["webkit","ms"],props:["VisibilityState","visibilitychange","Hidden"],m:["focus","blur"],visibleCallbacks:[],hiddenCallbacks:[],_callbacks:[],onVisible:function(A){this.visibleCallbacks.push(A)},onHidden:function(A){this.hiddenCallbacks.push(A)},isSupported:function(){return this._supports(0)||this._supports(1)},_supports:function(A){return this.prefixes[A]+this.props[2]in this.q},runCallbacks:function(A){if(A){this._callbacks=1==A?this.visibleCallbacks:this.hiddenCallbacks;for(var e=0;e<this._callbacks.length;e++)this._callbacks[e]()}},_visible:function(){window.visibly.runCallbacks(1)},_hidden:function(){window.visibly.runCallbacks(2)},_nativeSwitch:function(){!0===this.q[this.b+this.props[2]]?this._hidden():this._visible()},listen:function(){try{this.isSupported()?(this.b=this._supports(0)==this.p?this.prefixes[1]:this.prefixes[0],this.q.addEventListener(this.b+this.props[1],function(){window.visibly._nativeSwitch.apply(window.visibly,arguments)},1)):document.addEventListener?(window.addEventListener(this.m[0],this._visible,1),window.addEventListener(this.m[1],this._hidden,1)):(this.q.attachEvent("onfocusin",this._visible),this.q.attachEvent("onfocusout",this._hidden))}catch(A){}},init:function(){this.listen()}},this.visibly.init()}(),function(A,e){"function"==typeof define&&define.amd?define([],e):"undefined"!=typeof module&&module.exports?module.exports=e():A.ReconnectingWebSocket=e()}(this,function(){function u(o,i){i=i||[],this.debug=!1,this.reconnectInterval=1e3,this.reconnectDecay=1.5,this.reconnectAttempts=0,this.timeoutInterval=2e3;var r,a=this,s=!1,c=!1;this.url=o,this.protocols=i,this.readyState=WebSocket.CONNECTING,this.URL=o,this.onopen=function(A){},this.onclose=function(A){},this.onconnecting=function(A){},this.onmessage=function(A){},function e(t){r=new WebSocket(o,i),a.onconnecting(),(a.debug||u.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",o);var A=r,n=setTimeout(function(){(a.debug||u.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",o),c=!0,A.close(),c=!1},a.timeoutInterval);r.onopen=function(A){clearTimeout(n),(a.debug||u.debugAll)&&console.debug("ReconnectingWebSocket","onopen",o),a.readyState=WebSocket.OPEN,t=!1,a.reconnectAttempts=0,a.onopen(A)},r.onclose=function(A){clearTimeout(n),r=null,s?(a.readyState=WebSocket.CLOSED,a.onclose(A)):(a.readyState=WebSocket.CONNECTING,a.onconnecting(),t||c||((a.debug||u.debugAll)&&console.debug("ReconnectingWebSocket","onclose",o),a.onclose(A)),setTimeout(function(){a.reconnectAttempts++,e(!0)},a.reconnectInterval*Math.pow(a.reconnectDecay,a.reconnectAttempts)))},r.onmessage=function(A){(a.debug||u.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",o,A.data),a.onmessage(A)},r.onerror=function(A){(a.debug||u.debugAll)&&console.debug("ReconnectingWebSocket","onerror",o,A),a.onerror(A)}}(!(this.onerror=function(A){})),this.send=function(A){if(r)return(a.debug||u.debugAll)&&console.debug("ReconnectingWebSocket","send",o,A),r.send(A);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(){s=!0,r&&r.close()},this.refresh=function(){r&&r.close()}}return u.debugAll=!1,u}),extend(Floatable,Block),Floatable.prototype.updateContainerSize=function(){this.pageDivWidth=$(this.pageDiv).width(),this.pageDivHeight=$(this.pageDiv).height()},Floatable.prototype.update=function(A){A/=50;this.x+=this.velocity.x*A,this.y+=this.velocity.y*A,this.velocity.x+=(.1*Math.random()-.05)*A,1<this.velocity.x?this.velocity.x=1:this.velocity.x<-1&&(this.velocity.x=-1),this.x<0?this.velocity.x+=.005*A:this.x>this.pageDivWidth-this.width&&(this.velocity.x-=.005*A),this.updateDiv(),this.y<-this.height&&this.removeSelf()},Floatable.prototype.updateDiv=function(){this.div.style["-webkit-transform"]="translate("+this.x+"px,"+this.y+"px)",this.div.style.transform="translate("+this.x+"px,"+this.y+"px)"},Floatable.prototype.removeSelf=function(){this.pageDiv.removeChild(this.div),updateTargets.splice(updateTargets.indexOf(this),1)},Floatable.prototype.addImage=function(A,e,t){this.canvas=document.createElement("canvas"),this.image=A,this.canvas.height=t,this.canvas.width=e,this.canvas.style.position="absolute",this.canvas.style.top="0px",this.canvas.style.left="0px",this.canvas.getContext("2d").drawImage(this.image,0,0,e-1,t-1),this.div.appendChild(this.canvas)},Floatable.prototype.addText=function(A){this.innerDiv.innerHTML+=A},Floatable.prototype.initPosition=function(){this.x=Math.random()*(this.pageDivWidth-this.width),this.y=this.pageDivHeight,this.updateDiv(),this.div.style.width=this.width+"px",this.div.style.height=this.height+"px",this.innerDiv.style.top=this.height/2-this.innerDiv.offsetHeight/2+"px"};var DONATION_ADDRESS,SOUND_DONATION_ADDRESS,debugSpawner,txTimeInterval,currentExchange,easterSuccess=function(){var e=new Floatable;e.width=53,e.height=48,e.image=document.createElement("img"),e.image.src="images/easteregg.gif",e.image.height=e.height,e.image.width=e.width,e.image.style.position="absolute",e.image.style.top="0px",e.image.style.left="0px",e.div.appendChild(e.image),e.initPosition(),e.update=function(A){Floatable.prototype.update.call(e,A),e.velocity.x+=.3*Math.random()-.15,.1<e.velocity.x&&$(e.image).css({"-moz-transform":"scaleX(-1)","-o-transform":"scaleX(-1)","-webkit-transform":"scaleX(-1)",transform:"scaleX(-1)"}),e.velocity.x<-.1&&$(e.image).css({"-moz-transform":"scaleX(1)","-o-transform":"scaleX(1)","-webkit-transform":"scaleX(1)",transform:"scaleX(1)"})}},DEBUG_MODE=(new Konami(easterSuccess),!1),globalMute=!1,last_update=0,updateTargets=[],transaction_count=0,transaction_total=0,bubbleImage=new Image,blockImage=(bubbleImage.src="images/bubble.png",new Image),updateLayoutHeight=(blockImage.src="images/block.png",function(){var A=window.innerHeight;"none"!=$("#header").css("display")&&(A-=$("#header").outerHeight()),$("#pageSplitter").height(A)}),toggleInterface=($(document).ready(function(){DONATION_ADDRESS=$("#donationAddress").html(),$("#noJavascript").css("display","none"),updateLayoutHeight(),StatusBox.init(DEBUG_MODE),$(".clickSuppress").click(function(){$(".clickSuppress").parent().slideUp(300)}),debugSpawner=function(){var A;Math.random()<=.1&&(A=(A=Math.random())<.6?Math.random():A<.8?10*Math.random():A<.95?100*Math.random():1e3*Math.random(),Math.random()<.5?new Transaction(A,!1):new Transaction(A,!1,75*A,"USD"))},1==(urlParam=function(A){A=new RegExp("[?&]"+A+"=([^&#]*)").exec(window.location.href);return null===A?null:A[1]||0})("hide")&&toggleInterface(),switchExchange("dashusd"),$("#donationAddress").qr(),$("#donationAddressBitListen").qr(),$("#musicianDonation").qr();var e=new NoSleep;document.addEventListener("click",function A(){document.removeEventListener("click",A,!1),console.log("No sleep!"),e.enable()},!1)}),function(){0===$(".interface:hidden").length?($(".interface").fadeOut(500,updateLayoutHeight),$("#hideInterface").html("[ Show Interface ]"),$("#hideInterface").css("opacity","0.5")):($(".interface").fadeIn(500,updateLayoutHeight),$("#hideInterface").html("[ Hide Interface ]"),$("#hideInterface").css("opacity","1"))}),globalUpdate=function(A){window.requestAnimationFrame(globalUpdate);var e=A-last_update;txTime+=e/1e3,last_update=A;for(var t=0;t<updateTargets.length;t++)updateTargets[t].update(e)},txTime=0,oneDay=86400,txTimer=function(){var A=txTime/oneDay>>0,e=new Date(1e3*txTime).toISOString().substr(11,8);$("#txTime").text(A+"d "+e)},globalRate=($(window).bind("load",function(){DEBUG_MODE?setInterval(debugSpawner,100):$("#blockchainCheckBox").prop("checked")&&TransactionSocket.init(),txTimeInterval=setInterval(txTimer,1e3),window.requestAnimationFrame(globalUpdate),Sound.loadup(),Sound.init()}),$(window).resize(function(){updateLayoutHeight()}),window.onbeforeunload=function(A){clearInterval(globalUpdate),clearInterval(txTimeInterval),TransactionSocket.close()},-1),USD_BTC=-1,BTC_DASH=-1,USD_DASH=-1;function updateRate(){var A;-1===globalRate&&((A=$("#showDollarCheckBox")).prop("disabled",!1),A.parent().removeClass("disabled")),"btcusd"===currentExchange&&-1!=USD_BTC?$("#rate").html(USD_BTC):"dashbtc"===currentExchange&&-1!=BTC_DASH?$("#rate").html(BTC_DASH):"dashusd"===currentExchange&&-1!=USD_DASH?$("#rate").html(USD_DASH):$("#rate").html("---"),-1!=USD_DASH?globalRate=USD_DASH:-1!=USD_BTC&&-1!=BTC_DASH&&(globalRate=(USD_BTC*BTC_DASH).toFixed(2))}function setupBitstampWebSocket(){var A=new WebSocket("wss://ws.bitstamp.net");A.onopen=function(){console.log("Bitstamp WebSocket: Connection open!"),A.send('{"event": "bts:subscribe", "data": {"channel": "live_trades_btcusd"}}')},A.onclose=function(A){console.log("Bitstamp WebSocket: Connection closed"),setTimeout(setupBitstampWebSocket,1e3)},A.onmessage=function(A){"trade"===(response=JSON.parse(A.data)).event&&(USD_BTC=parseFloat(response.data.price).toFixed(2),updateRate())}}function setupPoloniexWebSocket(){var A=new WebSocket("wss://api2.poloniex.com");A.onopen=function(){console.log("Poloniex WebSocket: Connection open!"),A.send('{"command" : "subscribe", "channel" : 1002}')},A.onclose=function(A){console.log("Poloniex WebSocket: Connection closed"),setTimeout(setupPoloniexWebSocket,1e3)},A.onmessage=function(A){(response=JSON.parse(A.data))[2]&&24===response[2][0]&&(BTC_DASH=parseFloat(response[2][1]).toFixed(6),updateRate())}}function setupCoinbaseProWebSocket(){var A=new WebSocket("wss://ws-feed.exchange.coinbase.com");A.onopen=function(){console.log("CoinbasePro WebSocket: Connection open!"),A.send('{"type" : "subscribe", "channels": [{"name": "ticker","product_ids": ["DASH-USD","DASH-BTC","BTC-USD"]}]}')},A.onclose=function(A){console.log("CoinbasePro WebSocket: Connection closed"),setTimeout(setupCoinbaseProWebSocket,1e3)},A.onmessage=function(A){"DASH-BTC"==(response=JSON.parse(A.data)).product_id&&response.price&&(BTC_DASH=parseFloat(response.price).toFixed(6),updateRate()),"DASH-USD"==response.product_id&&response.price&&(USD_DASH=parseFloat(response.price).toFixed(2),updateRate()),"BTC-USD"==response.product_id&&response.price&&(USD_BTC=parseFloat(response.price).toFixed(2),updateRate())}}$(document).ready(function(){setupCoinbaseProWebSocket(),$.getJSON("https://api.exchange.coinbase.com/products/BTC-USD/ticker",function(A){USD_BTC=parseFloat(A.price).toFixed(2),updateRate()}),$.getJSON("https://api.exchange.coinbase.com/products/DASH-USD/ticker",function(A){USD_DASH=parseFloat(A.price).toFixed(2),updateRate()}),$.getJSON("https://api.exchange.coinbase.com/products/DASH-BTC/ticker",function(A){BTC_DASH=parseFloat(A.price).toFixed(6),updateRate()})}),switchExchange=function(A){"dashusd"===(currentExchange=A)&&($("#dashusdRate").css("color","#008de4"),$("#dashbtcRate").css("color","gray"),$("#btcusdRate").css("color","gray")),"dashbtc"===A&&($("#dashusdRate").css("color","gray"),$("#dashbtcRate").css("color","#008de4"),$("#btcusdRate").css("color","gray")),"btcusd"===A&&($("#dashusdRate").css("color","gray"),$("#dashbtcRate").css("color","gray"),$("#btcusdRate").css("color","orange")),updateRate()};var satoshi=1e8,DELAY_CAP=2e4,lastBlockHeight=0,provider_name="insight.dash.org",transactionSocketDelay=1e3;function TransactionSocket(){}function newTx(A,e,t,n){new Transaction(A,e,t,n)}TransactionSocket.init=function(){TransactionSocket.connection&&TransactionSocket.connection.close();var A=io("https://"+provider_name,{transports:["websocket","polling"]});TransactionSocket.connection=A,StatusBox.reconnecting("blockchain"),A.on("connect",function(){console.log(provider_name+": Connection open!"),StatusBox.connected("blockchain"),A.emit("subscribe","inv")}),A.on("disconnect",function(){console.log(provider_name+": Connection closed"),$("#blockchainCheckBox").prop("checked")?StatusBox.reconnecting("blockchain"):StatusBox.closed("blockchain")}),A.on("error",function(A){console.log(provider_name+": Connection Error: "+A)}),A.on("tx",function(A){for(var e=A.vout,t=0;t<e.length;t++)Object.keys(e[t])==DONATION_ADDRESS&&setTimeout(newTx(e[t][Object.keys(e[t])]/satoshi,!0,"",""),Math.random()*DELAY_CAP);setTimeout(newTx(A.valueOut,!1,"",""),Math.random()*DELAY_CAP)}),A.on("block",function(A){$.getJSON("https://"+provider_name+"/insight-api/block/"+A,function(A){var e=A.height,t=A.tx.length,n=A.difficulty,A=A.size;lastBlockHeight<e&&new Block(lastBlockHeight=e,t,n,A)})})},TransactionSocket.close=function(){TransactionSocket.connection&&TransactionSocket.connection.close(),StatusBox.closed("blockchain")};var globalScalePitch,globalBank,globalVolume=50,globalShowDollar=!1,globalAudioUnlocked=!1;function Sound(){}Howler.volume(.01*globalVolume),document.addEventListener("DOMContentLoaded",function(A){document.body.addEventListener("click",function(){document.getElementById("waitingForTransactions").style.opacity="0"},!0)});var soundBank=[];function zeroPad(A,e){e=e-A.toString().length+1;return Array(+(0<e&&e)).join("0")+A}soundBank[0]=["celesta",22],soundBank[1]=["planet",33],soundBank[2]=["wikki",13],Sound.loadup=function(){sound0=[],sound1=[],sound2=[],swells0=[],swells1=[],swells2=[]},Sound.init=function(){$("#volumeControl").click(function(){globalMute?(globalMute=!1,Howler.mute(!1),$("#volumeControl").css("background-position","0 -46px")):(globalMute=!0,Howler.mute(),$("#volumeControl").css("background-position","0 0"))}),$("#volumeSlider").noUiSlider({range:{min:0,max:100},start:50,handles:1,step:1,orientation:"vertical"}).on("slide",function(){globalVolume=100-$(this).val(),Howler.volume(.01*globalVolume)}),globalScalePitch=$("#scalePitchCheckBox").attr("checked"),Sound.change(0)},Sound.change=function(A){var e="Donate to instrument creator: ";if(0===A){if(0===sound0.length)for(var t=!0,n=1;n<=22;n++)istring=zeroPad(n,3),newSound=new Howl({src:["sounds/celesta/celesta"+istring+".ogg","sounds/celesta/celesta"+istring+".mp3"],autoplay:!1}),t&&(t=!1,newSound.once("unlock",function(){globalAudioUnlocked=!0})),sound0.push(newSound);if(0===swells0.length)for(n=1;n<=3;n++)newSound=new Howl({src:["sounds/swells0/swell"+n+".ogg","sounds/swells0/swell"+n+".mp3"],autoplay:!1}),swells0.push(newSound);currentSound=sound0,currentSwells=swells0,$("#musicianDonation").text("")}else if(1===A){if(0===sound1.length)for(n=1;n<=33;n++)istring=zeroPad(n,3),newSound=new Howl({src:["sounds/planet/planet"+istring+".ogg","sounds/planet/planet"+istring+".mp3"],autoplay:!1}),sound1.push(newSound);if(0===swells1.length)for(n=1;n<=3;n++)newSound=new Howl({urls:["sounds/swells1/planetswell"+n+".ogg","sounds/swells1/planetswell"+n+".mp3"],autoplay:!1}),swells1.push(newSound);currentSound=sound1,currentSwells=swells1,SOUND_DONATION_ADDRESS="144b31mmaWQVDQFiUPo6HEzxc2Dm83WXrW",$("#musicianDonation").html(e+'<span qrtarget="bitcoin:'+SOUND_DONATION_ADDRESS+'">'+SOUND_DONATION_ADDRESS+"</span>")}else if(2===A){if(0===sound2.length)for(n=1;n<=13;n++)istring=zeroPad(n,3),newSound=new Howl({src:["sounds/wikki/wikki"+istring+".ogg","sounds/wikki/wikki"+istring+".mp3"],autoplay:!1}),sound2.push(newSound);if(0===swells2.length)for(n=1;n<=3;n++)newSound=new Howl({src:["sounds/swells2/wikkiswell"+n+".ogg","sounds/swells2/wikkiswell"+n+".mp3"],autoplay:!1}),swells2.push(newSound);currentSound=sound2,currentSwells=swells2,SOUND_DONATION_ADDRESS="1JFaYRGkDmhpSTbFKwqDWKr2ncvvrgYEAV",$("#musicianDonation").html(e+'<span qrtarget="bitcoin:'+SOUND_DONATION_ADDRESS+'">'+SOUND_DONATION_ADDRESS+"</span>")}};var currentNotes=0,noteTimeout=500,lastBlockSound=(Sound.playRandomAtVolume=function(A){var e;globalMute||(e=Math.floor(100*Math.random()),Sound.playPitchAtVolume(A,e))},Sound.playPitchAtVolume=function(A,e){globalMute||(e=Math.floor(e/100*currentSound.length),e+=Math.floor(4*Math.random())-2,e=Math.min(currentSound.length-1,e),e=Math.max(0,e),currentNotes<5&&(currentSound[e].volume(A),globalAudioUnlocked&¤tSound[e].play(),currentNotes++,setTimeout(function(){currentNotes--},noteTimeout)))},-1),CONNECTED=(Sound.playRandomSwell=function(){if(!globalMute){for(var A;(A=Math.floor(Math.random()*currentSwells.length))==lastBlockSound;);lastBlockSound=A,globalAudioUnlocked&¤tSwells[A].play()}},"Connected."),CONNECTING="Connecting...",NO_SUPPORT="No browser support.",CLOSED="Click to connect.",provider_name="insight.dash.org";function StatusBox(){}StatusBox.init=function(A){StatusBox.blockchain=$("#blockchainStatus"),A&&StatusBox.blockchain.html(""),$("#blockchainCheckBox").is(":checked")?StatusBox.reconnecting("blockchain"):StatusBox.closed("blockchain")},StatusBox.connected=function(A){"blockchain"==A&&StatusBox.blockchain.html("Transactions ("+provider_name+'): <span style="color: green;">'+CONNECTED+"</span>")},StatusBox.reconnecting=function(A){"blockchain"==A&&StatusBox.blockchain.html("Transactions ("+provider_name+'): <span style="color: yellow;">'+CONNECTING+"</span>")},StatusBox.nosupport=function(A){"blockchain"==A&&StatusBox.blockchain.html("Transactions ("+provider_name+'): <span style="color: red;">'+NO_SUPPORT+"</span>")},StatusBox.closed=function(A){"blockchain"==A&&StatusBox.blockchain.html("Transactions ("+provider_name+'): <span style="color: gray;">'+CLOSED+"</span>")};const currencyFormatter=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:2});function Transaction(A,e,t,n){var o;"visible"===document.visibilityState&&(Floatable.call(this),o=Math.min(document.body.clientWidth,document.body.clientHeight),this.area=100*A+3e3,this.width=this.height=Math.min(2*Math.sqrt(this.area/Math.PI),o),this.velocity.y=-1*((o-this.width)/(o/.5)+.5),this.addImage(bubbleImage,this.width,this.height),o=A.toFixed(2),o=!0===globalShowDollar?currencyFormatter.format(A*globalRate):"0.00"===o?"<<span class='bitcoinsymbol'> </span>0.01":"<span class='bitcoinsymbol'> </span>"+o,e&&(o='<br /><span style="color: yellow;">'+o+'</span><br /><span style="color: cyan;">Donation</span><br /><span style="color: lime;">Thanks!</span>'),t&&n&&(o+="<br />"+t.toFixed(2)+" "+n),this.addText(o),this.initPosition(),.7<(e=A/2500+.3)&&(e=.7),t=1.0715307808111487,n=100-(n=Math.min(100,Math.log(A+t)/Math.log(t))),globalScalePitch?Sound.playPitchAtVolume(e,n):Sound.playRandomAtVolume(e)),transaction_count++,transaction_total+=A,$("#txCount").text(transaction_count),$("#txTotal").text(transaction_total.toFixed(8))}extend(Floatable,Transaction);
//# sourceMappingURL=bitlisten.min.js.map