VIDEO-▶ Iran's Qasem Soleimani, the most dangerous terrorist alive #STTA by Mike Rogers

Iran's Qasem Soleimani, the most dangerous terrorist alive #STTA by Mike Rogers - Listen to music

To continue, go to Settings and turn it on

/gi,scriptTypeRE=/^(?:text|application)\/javascript/i,xmlTypeRE=/^(?:text|application)\/xml/i,jsonType="application/json",htmlType="text/html",blankRE=/^\s*$/,ajax=module.exports=function(options){var settings=extend({},options||{});for(key in ajax.settings)settings[key]===undefined&&(settings[key]=ajax.settings[key]);ajaxStart(settings),settings.crossDomain||(settings.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(settings.url)&&RegExp.$2!=window.location.host);var dataType=settings.dataType,hasPlaceholder=/=\?/.test(settings.url);if(dataType=="jsonp"||hasPlaceholder)return hasPlaceholder||(settings.url=appendQuery(settings.url,"callback=?")),ajax.JSONP(settings);settings.url||(settings.url=window.location.toString()),serializeData(settings);var mime=settings.accepts[dataType],baseHeaders={},protocol=/^([\w-]+:)\/\//.test(settings.url)?RegExp.$1:window.location.protocol,xhr=settings.xhr(),abortTimeout;settings.crossDomain||(baseHeaders["X-Requested-With"]="XMLHttpRequest"),mime&&(baseHeaders.Accept=mime,mime.indexOf(",")>-1&&(mime=mime.split(",",2)[0]),xhr.overrideMimeType&&xhr.overrideMimeType(mime));if(settings.contentType||settings.data&&settings.type.toUpperCase()!="GET")baseHeaders["Content-Type"]=settings.contentType||"application/x-www-form-urlencoded";settings.headers=extend(baseHeaders,settings.headers||{}),xhr.onreadystatechange=function(){if(xhr.readyState==4){clearTimeout(abortTimeout);var result,error=!1;if(xhr.status>=200&&xhr.status0&&(abortTimeout=setTimeout(function(){xhr.onreadystatechange=empty,xhr.abort(),ajaxError(null,"timeout",xhr,settings)},settings.timeout)),xhr.send(settings.data?settings.data:null),xhr)};ajax.active=0,ajax.JSONP=function(e){if("type"in e){var t="jsonp"+ ++jsonpID,n=document.createElement("script"),r=function(){t in window&&(window[t]=empty),ajaxComplete("abort",i,e)},i={abort:r},s,o=document.getElementsByTagName("head")[0]||document.documentElement;return e.error&&(n.onerror=function(){i.abort(),e.error()}),window[t]=function(n){clearTimeout(s),delete window[t],ajaxSuccess(n,i,e)},serializeData(e),n.src=e.url.replace(/=\?/,"="+t),o.insertBefore(n,o.firstChild),e.timeout>0&&(s=setTimeout(function(){i.abort(),ajaxComplete("timeout",i,e)},e.timeout)),i}return ajax(e)},ajax.settings={type:"GET",beforeSend:empty,success:empty,error:empty,complete:empty,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript",json:jsonType,xml:"application/xml, text/xml",html:htmlType,text:"text/plain"},crossDomain:!1,timeout:0},ajax.get=function(e,t){return ajax({url:e,success:t})},ajax.post=function(e,t,n,r){return type(t)==="function"&&(r=r||n,n=t,t=null),ajax({type:"POST",url:e,data:t,success:n,dataType:r})},ajax.getJSON=function(e,t){return ajax({url:e,success:t,dataType:"json"})};var escape=encodeURIComponent}), define("classes",["require","exports","module","indexof"],function(e,t,n){function s(e){this.el=e,this.list=e.classList}var r=e("indexof"),i=/\s+/;n.exports=function(e){return new s(e)},s.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array(),n=r(t,e);return~n||t.push(e),this.el.className=t.join(" "),this},s.prototype.remove=function(e){if(this.list)return this.list.remove(e),this;var t=this.array(),n=r(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},s.prototype.toggle=function(e){return this.list?(this.list.toggle(e),this):(this.has(e)?this.remove(e):this.add(e),this)},s.prototype.array=function(){var e=this.el.className.split(i);return""===e[0]&&e.pop(),e},s.prototype.has=s.prototype.contains=function(e){return this.list?this.list.contains(e):!!~r(this.array(),e)}}), define("vendor/zepto-events",["require","exports","module"],function(e,t,n){function a(e){return e._zid||(e._zid=i++)}function f(e,t,n,i){t=l(t);if(t.ns)var s=c(t.ns);return(r[a(e)]||[]).filter(function(e){return e&&(!t.e||e.e==t.e)&&(!t.ns||s.test(e.ns))&&(!n||a(e.fn)===a(n))&&(!i||e.sel==i)})}function l(e){var t=(""+e).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function c(e){return new RegExp("(?:^| )"+e.replace(" "," .* ?")+"(?: |$)")}function h(e,t,n){typeof e!="string"?u.each(e,n):e.split(/\s/).forEach(function(e){n(e,t)})}function p(e,t){return e.del&&(e.e=="focus"||e.e=="blur")||!!t}function d(e){return o[e]||e}var r={},i=1,s={},o={mouseenter:"mouseover",mouseleave:"mouseout"},u={};u.each=function(e){return[].every.call(this,function(t,n){return e.call(t,n,t)!==!1}),this},s.click=s.mousedown=s.mouseup=s.mousemove="MouseEvents",t.add=add=function(e,t,n,i,s,u){var f=a(e),c=r[f]||(r[f]=[]);h(t,n,function(t,n){var r=l(t);r.fn=n,r.sel=i,r.e in o&&(n=function(e){var t=e.relatedTarget;if(!t||t!==this&&!this.contains(t))return r.fn.apply(this,arguments)}),r.del=s&&s(n,t);var a=r.del||n;r.proxy=function(t){var n=a.apply(e,[t].concat(t.data));return n===!1&&(t.preventDefault(),t.stopPropagation()),n},r.i=c.length,c.push(r),e.addEventListener(d(r.e),r.proxy,p(r,u))})},t.remove=remove=function(e,t,n,i,s){var o=a(e);h(t||"",n,function(t,n){f(e,t,n,i).forEach(function(t){delete r[o][t.i],e.removeEventListener(d(t.e),t.proxy,p(t,s))})})};var v=function(){return!0},m=function(){return!1},g=/^([A-Z]|layer[XY]$)/,y={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};t.createProxy=createProxy=function(e){var t,n={originalEvent:e};for(t in e)!g.test(t)&&e[t]!==undefined&&(n[t]=e[t]);return u.each(y,function(t,r){n[t]=function(){return this[r]=v,e[t].apply(e,arguments)},n[r]=m}),n},t.Event=Event=function(e,t){typeof e!="string"&&(t=e,e=t.type);var n=document.createEvent(s[e]||"Events"),r=!0;if(t)for(var i in t)i=="bubbles"?r=!!t[i]:n[i]=t[i];return n.initEvent(e,r,!0,null,null,null,null,null,null,null,null,null,null,null,null),n.isDefaultPrevented=function(){return this.defaultPrevented},n}}), define("lib/layout",["require","exports","module","underscore","$","lib/backbone","css","lib/helpers/title-helper","lib/lingua","lib/deferred-loader","lib/mixins/layouts/performance-measuring","lib/template"],function(e,t,n){var r=e("underscore"),i=e("$"),s=e("lib/backbone"),o=e("css"),u=e("lib/helpers/title-helper"),a=e("lib/lingua"),f=e("lib/deferred-loader"),l=e("lib/mixins/layouts/performance-measuring"),c=e("lib/template"),h,p,d;h="l-footer",p="views/footer/footer",d=a.t("Enjoy the full SoundCloud experience with our app.",null,{comment:"Default page title"});var v=n.exports=s.View.extend({css:null,template:null,views:null,_currentViews:null,_viewPaths:null,slots:null,includeFooter:".l-main",footerClassName:"",getPageUrn:function(){return""},initialize:function(){this.views={},this._currentViews={}},setArgs:function(e){this.args=e||{}},setup:function(){var e=i.Deferred();return r.defer(e.resolve),e},dispose:function(){r.invoke(this._currentViews,"_dispose"),r.invoke(this.views,"_dispose"),this.$el.remove(),delete this.slots,delete this.views,delete this._viewPaths,delete this._currentViews},render:function(){var e,t;return this.includeFooter&&(e=this.views[h]),this.css&&o.insert(this.css),this.el.innerHTML===""&&(c.render(this.template,{},this.el),this.slots={},r.each(this.views,function(e,t){this.slots[t]=this.$("."+t)[0]},this)),r.each(this.views,function(e,t){this._currentViews[t]!==e&&(this._currentViews[t]&&this._currentViews[t]._dispose(),e.render(),t!==h&&this.slots[t].appendChild(e.el),this._currentViews[t]=e)},this),t=this.$(this.includeFooter)[0],t&&e&&(this.footerClassName&&(e.el.className+=" "+this.footerClassName),t.appendChild(e.el)),this},setViews:function(e){this.includeFooter&&(e[h]=[p,{upsellText:this.getUpsellText()}]);var t=Object.keys(e),n=r.pluck(e,0),s=i.Deferred();return f.load(n).done(function(){this._viewPaths={},r.each(arguments,function(r,i){var s=t[i],o=e[s][1];if(!this._currentViews[s]||!this._currentViews[s].isEquivalentTo(r,o))this.views[s]=new r(o);this._viewPaths[s]=n[i]},this)}.bind(this)).done(s.resolve).fail(s.reject),s},getChangeEventData:function(e){var t={};return r.each(this._viewPaths,function(e,n){t[e]=this.views[n].constructorArguments},this),{layout:this,layoutName:e,views:t,args:this.args}},setTitle:function(e){u.set(e)},getUpsellText:function(){return d},t:a.t,tp:a.tp});l.applyTo(v.prototype),u.initialize()}), define("lib/layouts/fullheight.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".l-fullheight{height:100%;background:#000}.l-fullheight>.l-main{height:100%}")),data=null}), define("lib/layouts/fullheight.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{},'

\n'})}), define("lib/views/loading.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".loadingThrobber{background:transparent url(https://m.soundcloud.com/assets/images/ldpi/loader-81295ad2.gif) 50% 50% no-repeat;background-size:32px 32px;clear:both;text-align:center;height:40px;width:100%;padding:100px}.loadingThrobber.small{height:20px;background-size:16px}.loadingThrobber.fullscreen{top:44px;left:0;right:0;bottom:0;position:fixed;background-color:#f2f2f2;height:100%}")),data=null}), define("lib/event-bubble",["require","exports","module"],function(e,t,n){var r=n.exports=Class.extend({_propagate:!0,data:null,initialize:function(e){this.data=e||{}},stopPropagation:function(){this._propagate=!1},isPropagationStopped:function(){return!this._propagate}})}), define("lib/views/mixins/stateful",["require","exports","module","underscore","lib/mixin"],function(e,t,n){var r=e("underscore"),i=e("lib/mixin"),s=n.exports=new i({states:null,_states:null,toggleState:function(e,t){var n,i;return this.disposed?this:(this.states||(this.states={}),this.states[e]||(this.states[e]=e),this._states=this._states||{},this._states[e]=this._states[e]||!1,t=typeof t!="undefined"?!!t:!this._states[e],this._states[e]===t?this:(this._states[e]=t,n=this.states[e],typeof n=="string"?(i=n,this.$el[t?"addClass":"removeClass"](i)):r.isFunction(n)?n.call(this,t):n&&n[t?"setup":"teardown"].call(this),this.trigger("state:"+e,t),this))},getState:function(e){return!!this._states&&!!this._states[e]}})}), define("lib/template",["require","exports","module","underscore","vendor/handlebars-runtime","lib/subview-plugin","lib/template-helpers"],function(e,t,n){var r=e("underscore"),i=e("vendor/handlebars-runtime"),s=e("lib/subview-plugin"),o=e("lib/template-helpers");r.each(o,function(e,t){i.registerHelper(t,e)});var u=n.exports={render:function(e,t,n){var r=e(t||{});n&&(n.innerHTML=r)},subviews:function(e){s.replacePlaceholders(e)}}}), define("vendor/handlebars-runtime",["require","exports","module"],function(e,t,n){var r=function(){var e=function(){"use strict";function t(e){this.string=e}var e;return t.prototype.toString=function(){return""+this.string},e=t,e}(),t=function(e){"use strict";function o(e){return r[e]||"&"}function u(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function c(e){return e instanceof n?e.toString():!e&&e!==0?"":(e=""+e,s.test(e)?e.replace(i,o):e)}function h(e){return!e&&e!==0?!0:l(e)&&e.length===0?!0:!1}var t={},n=e,r={"&":"&","",'"':""","'":"'","`":"`"},i=/[&"'`]/g,s=/[&"'`]/;t.extend=u;var a=Object.prototype.toString;t.toString=a;var f=function(e){return typeof e=="function"};f(/x/)&&(f=function(e){return typeof e=="function"&&a.call(e)==="[object Function]"});var f;t.isFunction=f;var l=Array.isArray||function(e){return e&&typeof e=="object"?a.call(e)==="[object Array]":!1};return t.isArray=l,t.escapeExpression=c,t.isEmpty=h,t}(e),n=function(){"use strict";function n(e,n){var r;n&&n.firstLine&&(r=n.firstLine,e+=" - "+r+":"+n.firstColumn);var i=Error.prototype.constructor.call(this,e);for(var s=0;s0?e.helpers.each(t,n):r(this):i(t)}),e.registerHelper("each",function(e,t){var n=t.fn,r=t.inverse,i=0,s="",o;f(e)&&(e=e.call(this)),t.data&&(o=m(t.data));if(e&&typeof e=="object")if(a(e))for(var u=e.length;i= 1.0.0"};n.REVISION_CHANGES=u;var a=r.isArray,f=r.isFunction,l=r.toString,c="[object Object]";n.HandlebarsEnvironment=h,h.prototype={constructor:h,logger:d,log:v,registerHelper:function(e,t,n){if(l.call(e)===c){if(n||t)throw new i("Arg not supported with multiple helpers");r.extend(this.helpers,e)}else n&&(t.not=n),this.helpers[e]=t},registerPartial:function(e,t){l.call(e)===c?r.extend(this.partials,e):this.partials[e]=t}};var d={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(e,t){if(d.level= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o=this.escapeExpression;return s+=' "+o(n.$view.call(t,"views/header/search-button",{hash:{key:"searchButton"},data:i}))+"\n"+o(n.$view.call(t,"views/search/search-box",{hash:{key:"searchBox"},data:i}))+"\n",s})}), define("lib/helpers/firefoxos-helper",["require","exports","module","$"],function(e,t,n){var r=e("$"),i="https://m.soundcloud.com/manifest.webapp",s=n.exports={isAppInstalled:function(){var e=new r.Deferred,t=navigator.mozApps.checkInstalled(i);return t.onsuccess=function(){t.result?e.resolve(!0):e.reject(!1)},e},installApp:function(e){navigator.mozApps.install(i).onsuccess=e}}}), define("lib/native-links",["require","exports","module","lib/helpers/client-environment-helper"],function(e,t,n){function y(){return r.iOS}function b(){return r.iOS?s:r.android?o:w()}function w(){return r.iOS?c:r.android?h:r.blackberry?v:r.amazon?m:r.firefoxOS?g:""}function E(e){var t="";return r.iOS?t=p:r.android&&(t=d),C(t,N(e))}function S(e){return C(a,N(e))}function x(e){return C(u,N(e))}function T(){var e="";switch(r.brand){case"iOS":e=C(u,f);break;case"android":e=C(a,l)}return e}function N(e){var t="",n=e.layout.getPageUrn();switch(r.brand){case"iOS":t=k(n);break;case"android":t=n}return t}function C(e,t){return e&&(e+="?deep_link="+(t||(r.android?"soundcloud://stream":"soundcloud:stream"))),e}function k(e){var t=e.split(":"),n=t[2],r=t[1],i="";switch(r){case"tracks":i="soundcloud://sounds:"+n;break;case"users":i="soundcloud://users:"+n;break;case"playlists":i="soundcloud://sets:"+n}return i}var r=e("lib/helpers/client-environment-helper").device,i="market://details?id=com.soundcloud.android&referrer=utm_source%3Dsoundcloud%26Dutm_medium%3Dmobileweb",s="https://app.adjust.io/12ozk8?redirect=https%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Fsoundcloud-music-audio%2Fid336353151%3Fmt%3D8%26uo%3D4%26at%3D11lPIB",o=i+"%26utm_campaign%3Ddownload_button_header",u="https://app.adjust.io/wua7pf",a="https://app.adjust.io/n8gynn",f="soundcloud:signin",l="soundcloud://signin",c="https://app.adjust.io/7rfiwt?redirect=https%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Fsoundcloud-music-audio%2Fid336353151%3Fmt%3D8%26uo%3D4%26at%3D11lPIB",h=i+"%26utm_campaign%3Ddownload_button_footer",p="https://app.adjust.io/y4c1r7",d="https://app.adjust.io/padgq5",v="appworld://content/41097895",m="amzn://apps/android?asin=B004HXIZVC",g="https://marketplace.firefox.com/app/soundcloud";n.exports={getStoreLink:w,getStoreDeepLink:E,getUpsellLink:b,getAndroidDeepLink:S,getIOSDeepLink:x,getSigninDeepLink:T,useNativeDeeplinks:y}}), define("lib/views/mixins/update-on-layout-change",["require","exports","module","config","lib/event-bus","lib/mixin"],function(e,t,n){function u(e){var t=e?"on":"off";i[t]("layout:change",a,this)}function a(){this.rerender()}var r=e("config"),i=e("lib/event-bus"),s=e("lib/mixin"),o=n.exports=new s({before:{setup:function(){u.call(this,!0)},dispose:function(){u.call(this,!1)}},around:{getTemplateData:function(e,t){var n=r.get("router").getLayoutInfo();return e.call(this,t,n)}}})}), define("views/banner/upsell.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".upsellBanner{background:#333;height:60px;position:relative;overflow:hidden;text-align:center;-webkit-transition:-webkit-transform .2s linear;transition:transform .2s linear}.upsellBanner.slideOut{-webkit-transform:translate3d(0,-54px,0);transform:translate3d(0,-54px,0)}.upsellBanner__button{margin-top:10px}")),data=null}), define("views/banner/upsell.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u="function",a=this.escapeExpression;return s+=''+a((o=t&&t.text,typeof o===u?o.apply(t):o))+"\n",s})}), define("views/play-controls/play-controls.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".playControls{height:54px}.playControls__content{position:relative;padding:7px 10px;overflow:hidden;background:#333}.playControls__nowPlaying{margin:0 45px 0 0;display:block}.playControls__artwork{float:left;margin:0 10px 0 0}.playControls__username,.playControls__title{display:block}.playControls__username{font-size:12px;color:#999;line-height:19px}.playControls__title{font-size:14px;color:#fff;line-height:19px}.playControls__playPause{float:right;height:40px;width:40px;background:rgba(0,0,0,.25) url(https://m.soundcloud.com/assets/images/ldpi/player/mini_play_pause_button-6b8e48e4.png) 1px -38px no-repeat;background-size:100% auto;border:1px solid #fff;border-radius:40px;-webkit-transition:background-color .1s ease-in;transition:background-color .1s ease-in}.playControls.playing .playControls__playPause{background-position:0 0}.playControls__playPause:active{background-color:rgba(0,0,0,.5)}.playControls.playing .playControls__playIndicator{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}")),data=null}), define("views/play-controls/play-controls.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){var r="",i;return r+='\n

'+u(n.$a11y.call(e,{hash:{screenreader:n.$t.call(e,"Play or pause track",{hash:{_comment:"Help text on a play button"},data:t})},data:t}))+''+u(n.$image.call(e,e&&e.sound,{hash:{size:40,"class":"playControls__artwork"},data:t}))+' '+u((i=(i=(i=e&&e.sound,i==null||i===!1?i:i.user),i==null||i===!1?i:i.username),typeof i===a?i.apply(e):i))+''+u((i=(i=e&&e.sound,i==null||i===!1?i:i.title),typeof i===a?i.apply(e):i))+' \n

\n

\n',r}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression,a="function",f=this;o=n["if"].call(t,t&&t.sound,{hash:{},inverse:f.noop,fn:f.program(1,l,i),data:i});if(o||o===0)s+=o;return s+="\n",s})}), define("lib/gc-store",["require","exports","module","lib/store","lib/mixins/usage-counting"],function(e,t,n){var r=e("lib/store"),i=e("lib/mixins/usage-counting"),s=n.exports=r.extend();i.applyTo(s.prototype)}), define("lib/helpers/datetime-helper",["require","exports","module","underscore","lib/lingua"],function(e,t,n){var r=e("underscore"),i=e("lib/lingua"),s=1e3,o=6e4,u=36e5,a={inWords:!1},f=n.exports={timecode:function(e,t){var n,f;return t=t||{},t=r.defaults(t,a),isNaN(e)?e:(n=[],f={h:Math.floor(e/u),m:Math.floor(e/o%60),s:Math.floor(e/s%60)},t.inWords?(f.h>0&&n.push(i.tp("1 hour","%d hours",f.h)),f.m>0&&n.push(i.tp("1 minute","%d minutes",f.m)),(f.s>0||f.m===0&&f.h===0)&&n.push(i.tp("1 second","%d seconds",f.s)),n.join(" ")):(f.h>0&&n.push(f.h),n.push(f.m0?"0"+f.m:f.m,f.s0;c-=1){r=n.slice(0,c).join("/");if(v)for(h=v.length;h>0;h-=1){i=m[v.slice(0,h).join("/")];if(i){i=i[r];if(i){s=i,u=c;break}}}if(s)break;!a&&g&&g[r]&&(a=g[r],f=c)}!s&&a&&(s=a,u=f),s&&(n.splice(0,u,s),e=n.join("/"))}return e}function g(e,t){return function(){return s.apply(r,p.call(arguments,0).concat([e,t]))}}function y(e){return function(t){return m(t,e)}}function b(e){return function(t){a[e]=t}}function w(e){if(v(f,e)){var t=f[e];delete f[e],c[e]=!0,i.apply(r,t)}if(!v(a,e)&&!v(c,e))throw new Error("No "+e);return a[e]}function E(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return function(){return l&&l.config&&l.config[e]||{}}}var i,s,o,u,a={},f={},l={},c={},h=Object.prototype.hasOwnProperty,p=[].slice,d=/\.js$/;o=function(e,t){var n,r=E(e),i=r[0];return e=r[1],i&&(i=m(i,t),n=w(i)),i?n&&n.normalize?e=n.normalize(e,y(t)):e=m(e,t):(e=m(e,t),r=E(e),i=r[0],e=r[1],i&&(n=w(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},u={require:function(e){return g(e)},exports:function(e){var t=a[e];return typeof t!="undefined"?t:a[e]={}},module:function(e){return{id:e,uri:"",exports:a[e],config:S(e)}}},i=function(e,t,n,i){var s,l,h,p,d,m=[],y=typeof n,E;i=i||e;if(y==="undefined"||y==="function"){t=!t.length&&n.length?["require","exports","module"]:t;for(d=0;d=i}function h(){var e,t,n,r;if(typeof window.ActiveXObject!="undefined")try{r=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),r&&(e=r.GetVariable("$version"))}catch(i){}else window.navigator&&window.navigator.plugins&&window.navigator.plugins.length>0&&(n="application/x-shockwave-flash",t=window.navigator.mimeTypes,t&&t[n]&&t[n].enabledPlugin&&t[n].enabledPlugin.description&&(e=t[n].enabledPlugin.description));return e}function p(e){if(!e)return 0;var t=e.match(/\d\S+/)[0].replace(/,/g,".").split(".");return parseFloat([t[0],t[1]].join("."))||0}var r,i=9;r=n.exports={isSafari:o,isSafari71:u,isChrome:a,supportsHLSAudio:l,supportsHTML5Audio:f,supportsFlash:c}}),n("utils",["require","exports","module"],function(e,t,n){var r=n.exports={extend:function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}),e},each:function(e,t,n){Object.keys(e).forEach(function(r){t.call(n||null,e[r],r)})},find:function(e,t,n){var r;return e.some(function(e){if(t.call(n,e))return r=e,!0}),r},has:function(e,t){return Object.keys(e).indexOf(t)>-1},inherits:function(e,t){var n=this,i;e&&r.has(e,"constructor")?i=e.constructor:i=function(){return n.apply(this,arguments)},r.extend(i,n,t);var s=function(){this.constructor=i};return s.prototype=n.prototype,i.prototype=new s,e&&r.extend(i.prototype,e),i.__super__=n.prototype,i},without:function(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},result:function(e){var t=e;return r.isFunction(t)&&(t=e()),t},isFunction:function(e){return typeof e=="function"},after:function(e,t){return function(){if(--e=400&&(e.responseText||"").indexOf("geo_blocked")!==-1;t&&this.trigger(f.GEO_BLOCKED)}function B(e){e.status===0&&this.trigger(f.NO_CONNECTION)}function j(e){return this._initAudioDefer&&this._initAudioDefer.state()==="resolved"&&o.streamValidForPlayingFrom(this.streamInfo,e)}function F(e){e&&!this._bufferingTimeout?this._bufferingTimeout=setTimeout(function(){this._isBuffering=!0,this.trigger(f.BUFFERRING_START)}.bind(this),w):e||(this._bufferingTimeout&&(clearTimeout(this._bufferingTimeout),this._bufferingTimeout=null),this._isBuffering&&(this._isBuffering=!1,this.trigger(f.BUFFERRING_END)))}function I(){this.off(f.TIME,this.seekTimeEventHandler),this.trigger(f.SEEKED),this.seekTimeEventHandler=null}function q(){this._errorRecoveryFlagsResetTimeout=setTimeout(function(){this._errorRecoveryTime=null,this._errorRecoveryCounts=0},T)}function R(){this._errorRecoveryFlagsResetTimeout&&clearTimeout(this._errorRecoveryFlagsResetTimeout)}function U(){var e,t=Date.now(),n=this.isPlaying(),r=d.Errors,i=function(){R.call(this);if(this._errorRecoveryTime&&this._errorRecoveryTime+S>t&&this._errorRecoveryCounts>x){this.trigger(f.AUDIO_ERROR,this);return}this._errorRecoveryTime=Date.now(),this._errorRecoveryCounts++,M.call(this),n&&this.play({seek:this.currentTime()})};if(!this.controller){this.options.debug&&window.console.error(J("SCAudio: controller is null, aborting error handler ("+this.getId()+")."),this),i.call(this);return}e=this.controller.getErrorID();switch(e){case r.FLASH_PROXY_CANT_LOAD_FLASH:this.trigger(f.FLASH_NOT_LOADED);break;case r.FLASH_PROXY_FLASH_BLOCKED:this.trigger(f.FLASH_BLOCK);break;case r.FLASH_RTMP_CONNECT_FAILED:s.without(this.options.protocols,h.RTMP);case r.FLASH_RTMP_CANNOT_PLAY_STREAM:case r.FLASH_RTMP_CONNECT_CLOSED:case r.HTML5_AUDIO_NETWORK:case r.HTML5_AUDIO_ABORTED:case r.HTML5_AUDIO_DECODE:case r.HTML5_AUDIO_SRC_NOT_SUPPORTED:case r.HTML5_AUDIO_ENDED_EARLY:i.call(this);break;case r.HTML5_AUDIO_OVERRUN:_.call(this);break;default:throw new Error("SCAudio: Unhandled audio error code: "+e)}this.options.debug&&typeof this.controller.getErrorMessage!="undefined"&&window.console.error(J("SCAudio error ("+this.getId+"): "+this.controller.getErrorMessage()),this)}function z(e){this.options.debug&&V.call(this,e);switch(e){case f.PAUSE:this._isPlaying=!1,this._isPlayActionQueued=!1;break;case f.PLAY:this._isPlaying=!1,this._isPlayActionQueued=!0;break;case f.PLAY_START:this._isPlaying=!0,this._isPlayActionQueued=!1,this._registerPlays&&this.registerPlay();break;case f.BUFFERRING_START:case f.SEEK:this._isPlaying&&(this._isPlaying=!1,this._isPlayActionQueued=!0);break;case f.BUFFERRING_END:case f.SEEKED:this._isPlayActionQueued&&(this._isPlaying=!0,this._isPlayActionQueued=!1)}}function W(e){var t=d.States,n=d.Errors;switch(e){case t.IDLE:this._initAudioDefer&&this._initAudioDefer.resolve(),this.controller.getErrorID()===n.FLASH_PROXY_FLASH_BLOCKED&&this.trigger(f.FLASH_UNBLOCK);break;case t.PAUSED:F.call(this,!1),this.seekTimeEventHandler&&this.isPaused()&&I.call(this);break;case t.PLAYING:F.call(this,!1),q.call(this),this.trigger(f.PLAY_RESUME);break;case t.LOADING:case t.SEEKING:F.call(this,!0);break;case t.ENDED:_.call(this);break;case t.ERROR:F.call(this,!1),U.call(this)}this.trigger(f.STATE_CHANGE,e)}function X(){i.isSafari71()&&(this.options.protocols=[h.HTTP,h.HLS,h.RTMP]),this.options.protocols=this.options.protocols.filter(p.isProtocolSupported)}function V(e){var t=window.console.log,n;e!==f.TIME?(n=[J("SCAudio event ("+this.getId()+"):")],n.push.apply(n,arguments),t.apply(window.console,n),this._loggedTime=!1):this._loggedTime||(t.call(window.console,J("SCAudio time (%s): %d ms"),this.getId(),this.currentTime()),this._loggedTime=!0)}function J(e){return(new Date).toString()+" | "+e}var r,i=e("browser"),s=e("utils"),o=e("stream-urls"),u=e("audio-logger"),a=e("audio-perf-monitor"),f=e("events"),l=e("extensions"),c=e("observable"),h=e("protocols"),p=e("protocol-selector"),d,v={},m={muted:!1,volume:1},g={soundId:v,duration:v,registerEndpoint:v,streamUrlsEndpoint:v,resourceId:!1,debug:!1,asyncFetch:!0,useSinglePlayer:!0,protocols:[h.HLS,h.RTMP,h.HTTP],extensions:[l.MP3],maxBitrate:Infinity},y=6e3,b=6e3,w=400,E=6e4,S=6e3,x=3,T=3e4,N=[];r=n.exports=function(e,t){arguments.length===1?t=e:r.setAudioManager(e);if(!d)throw new Error("SCAudio: AudioManager instance must be set with `SCAudio.setAudioManager()` or passed via the constructor");this.options=s.extend({},g,t);var n=Object.keys(this.options).filter(function(e){return this.options[e]===v},this);if(n.length)throw new Error("SCAudio: pass into constructor the following options: "+n.join(", "));X.call(this),this.controller=null,this.streamInfo=null,this._registerPlays=!0,this._registerCounts=this._errorRecoveryCounts=0,this._isPlayActionQueued=this._usedPrefetchUrls=this._isPlaying=this._isBuffering=!1,this._initAudioDefer=this._expirationTimeout=this._bufferingTimeout=this._errorRecoveryTime=this._errorRecoveryFlagsResetTimeout=this._storedPosition=this._prevPosition=null,t.debug&&(this._loggedTime=!1),this.on("all",z,this),this.audioPerfMonitor=new a(this,this.logAudioPerformance.bind(this)),this.audioLogger=new u(this)},s.extend(r.prototype,c,{constructor:r,initAudio:function(){return this._initAudioDefer||(this._initAudioDefer=$.Deferred(),D.call(this).done(function(e){var t=!0;this.streamInfo&&(t=!1),this.streamInfo=e,t&&this.trigger(f.STREAMS),this.controller=C.call(this,e),k.call(this,this.controller,!0),W.call(this,this.controller.getState())}.bind(this)).fail(function(){this.trigger(f.NO_STREAMS)}.bind(this)),this._initAudioDefer.done(function(){this.trigger(f.CREATED)}.bind(this))),this._initAudioDefer},registerPlay:function(){var e=this.options.soundId,t=!1;return N.indexOf(e)===-1&&(N.push(e),setTimeout(function(){var t=N.indexOf(e);t>-1&&N.splice(t,1)},E),$.ajax({type:"POST",dataType:"json",statusCode:{429:$.noop},url:s.result(this.options.registerEndpoint)}),this._registerCounts++,this._registerPlays=!1,this.trigger(f.REGISTERED),t=!0),t},toggle:function(){this[this.isPaused()?"play":"pause"]()},play:function(e){var t=e&&e.seek!=null?e.seek:this.currentTime();e=s.extend({},e,{position:t}),this.trigger(f.PLAY,e),j.call(this,t)||M.call(this),this.initAudio().done(function(){this._isPlayActionQueued&&(this._storedPosition=null,this.trigger(f.PLAY_START,e),this.controller.play(t))}.bind(this)),F.call(this,!0)},pause:function(e){if(this.isPaused())return;e=s.extend({},e,{position:this.currentTime()}),this.trigger(f.PAUSE,e),this.controller&&this.controller.pause(),F.call(this,!1)},getListenTime:function(){return this.audioLogger?this.audioLogger.getListenTime():0},dispose:function(){this.audioLogger=null,this.audioPerfMonitor=null,this.off(),s.without(N,this.options.soundId),clearTimeout(this._bufferingTimeout),O.call(this),this.controller&&(this.controller.kill(),this.controller=null),delete this.controller,this.trigger(f.DESTROYED)},seek:function(e){if(!this.controller)return;if(e>=s.result(this.options.duration)){_.call(this);return}this.seekTimeEventHandler&&this.off(f.TIME,this.seekTimeEventHandler),this.seekTimeEventHandler=s.after(2,function(){I.call(this)}.bind(this)),this.on(f.TIME,this.seekTimeEventHandler),this.trigger(f.SEEK,{from:this.currentTime(),to:e});if(this.isPlaying()&&!j.call(this,e)){M.call(this),this.play({seek:e});return}this.controller.seek(e)},seekRelative:function(e){this.controller&&this.seek(this.currentTime()+e)},currentTime:function(){return this._storedPosition?this._storedPosition:this.controller?this.controller.getCurrentPosition():0},loadProgress:function(){var e=0;return this.controller&&(e=this.controller.getLoadedPosition()/this.controller.getDuration(),e=e>=.99?1:e),e},buffered:function(){return this.controller&&this.controller.getDuration()||0},isPaused:function(){return!this.isPlaying()},isBuffering:function(){return this._isBuffering},isPlaying:function(){return this._isPlayActionQueued||this._isPlaying},isLoading:function(){return!!this.controller&&this.controller.getState()===d.States.LOADING},toggleMute:function(e){r.toggleMute(e)},isMuted:function(){return r.isMuted()},setVolume:function(e){r.setVolume(e)},getVolume:function(){return r.getVolume()},logAudioPerformance:function(){},getAudioManagerStates:function(){return d.States},getId:function(){return this.options.resourceId||this.options.soundId}}),s.extend(r,{extend:s.inherits,getSettings:function(){return m},setSettings:function(e){s.extend(m,e)},setAudioManager:function(e){d=e,e&&(r.AudioManagerStates=e.States,this.toggleMute(m.muted),this.setVolume(m.volume))},toggleMute:function(e){m.muted=e===undefined?!m.muted:!!e,d&&d.setVolume(m.muted?0:1)},isMuted:function(){return m.muted},setVolume:function(e){m.volume=e===undefined?1:e,d&&d.setVolume(m.volume)},getVolume:function(){return m.volume},Extensions:l,Protocols:h,Events:f,BUFFER_DELAY:w,PLAY_REGISTRATION_TIMEOUT:E})}),t("scaudio")})}), define("lib/helpers/dns-helper",["require","exports","module","lib/url"],function(e,t,n){var r=e("lib/url"),i=[],s=n.exports={lookup:function(e){var t=document.createDocumentFragment(),n;e=typeof e=="string"?[e]:e,e.length&&(e.forEach(function(e){n=r.parse(e).host;if(n&&i.indexOf(n)===-1){i.push(n);var s=document.createElement("link");s.rel="dns-prefetch",s.href="//"+n,t.appendChild(s)}}),t.childNodes.length&&document.head.appendChild(t))}}}), define("vendor/i18n/i18n",["require","exports","module","./lib/datetime","./lib/number","./locales/en","./locales/pt_BR"],function(e,t,n){function h(e){this.phrases={},this.setLocale(e)}function p(){l=c[this.locale]||c[f],this.number=new i(l),this.dateTime=new r(l,this.number)}function d(e,t){return t?e.replace(u,function(e,n,r,i){var s=t[n||r||i];return r?a(s):s}):e}function v(e,t){return c[e].pluralForm(t)}function m(e){return Array.isArray(e)?e[0]:e.toString()}function g(e){var t,n;for(var r=1,i=arguments.length;r",'"':""","'":"'","`":"`"},t=/[&"'`]/g,n=/[&"'`]/;return function(e){return!e&&e!==0?"":(e=""+e,n.test(e)?e.replace(t,r):e)}}()}), define("shared/config/supported-locales",["require","exports","module","underscore","shared/config/locales/locale-pt-br.json"],function(e,t,n){var r=e("underscore"),i={en:{},pt_BR:e("shared/config/locales/locale-pt-br.json"),asterisk:{}},s={en:"English (US)",pt_BR:"Português (Brasil)"},o=r.without(r.keys(i),"asterisk");n.exports={defaultLocale:"en",config:i,languages:s,all:o}}), define("views/footer/footer.tmpl",["vendor/handlebars-runtime","views/app-buttons/app-buttons","views/locale-selector/locale-selector"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){var r="",i;return r+='

\n",r}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u="function",a=this.escapeExpression,f=this;o=n["if"].call(t,t&&t.shouldUpsell,{hash:{},inverse:f.noop,fn:f.program(1,l,i),data:i});if(o||o===0)s+=o;return s+='

",s})}), define("views/footer/footer.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".footer{text-align:center;margin:26px 0 0;padding:0 0 18px;display:none}.footer.show{display:block}.app__displayMiniPlayer .footer{padding:0 0 78px}.footer__links,.footer__links a{color:#999;line-height:20px}.footer__links>.localeSelector{color:#38d}.footer__appButtonContainer{margin:0 25px 28px}.footer__appButtonText{color:#333;font-size:16px;text-align:center;margin:0 0 18px}.footerSwitchLink{font-weight:700}")),data=null}), define("lib/helpers/a11y-helper",["require","exports","module","vendor/handlebars-runtime"],function(e,t,n){var r=e("vendor/handlebars-runtime"),i=n.exports={getAccessibleMarkup:function(e){return''+r.Utils.escapeExpression(e.screenreader)+""+(e.visible?''+r.Utils.escapeExpression(e.visible)+"":"")}}}), define("lib/helpers/count-helper",["require","exports","module","underscore","lib/lingua"],function(e,t,n){var r=e("underscore"),i=e("lib/lingua"),s;s={max:null,suffix:"+"};var o=n.exports={render:function(e,t){return t=t||{},r.defaults(t,s),t.max=t.max||e,e>t.max?t.max+t.suffix:i.numberHelper.format(e)}}}), define("lib/helpers/i18n-helper",["require","exports","module"],function(e,t,n){var r=/\r?\n/g,i=/\s+/g;n.exports={cleanBlockText:function(e){return e.trim().replace(r," ").replace(i," ")}}}), define("lib/helpers/image-helper",["require","exports","module","$","underscore","lib/helpers/client-environment-helper","vendor/experiments/experiments","lib/helpers/name-helper","lib/support"],function(e,t,n){function y(e){var t,n,r;return c.lastIndex=0,t=e.replace(c,function(e,t,s,o){return i.find(d,function(e,t){if(e[1]===o)return n=t,!0}),r=t,s}),r?{index:n,key:parseInt(t,10),type:r}:null}function b(e,t){var n=i.find(d,function(e){return e[0]>=t})||i.last(d);return n[1]==="t20x20"&&e==="artworks"?"tiny":n[1]}function w(e){c.lastIndex=0;var t=c.exec(e),n;return t&&(n=t[3].charCodeAt(0)%4+1,n!==1&&(e=e.replace("//i1.","//i"+n+"."))),e}function E(e){var t=y(e);t&&(p[t.type]||(p[t.type]={}),p[t.type][t.key]=p[t.type][t.key]|1= 1.0.0"],n=this.merge(n,e.helpers),i=i||{},'\n'})}), define("views/sound/sound-controls.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".soundControls{height:80px;position:absolute;top:50%;left:0;right:0;margin-top:-40px;-webkit-transform:translate3d(0,0,0);pointer-events:none}.soundControls__control{background-position:0 0;background-repeat:no-repeat;background-size:100% auto;position:absolute;pointer-events:auto}.soundControls__prev,.soundControls__next{background-image:url(https://m.soundcloud.com/assets/images/ldpi/player/skip_button-e03e9a61.png);width:28px;height:19px;top:30px;opacity:0;-webkit-transition:opacity 2s cubic-bezier(1,.01,.81,1);transition:opacity 2s cubic-bezier(1,.01,.81,1)}.soundControls__prev{left:17px}.soundControls__next{right:17px;-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.soundControls.disabled .soundControls__playPause,.soundControls.playing .soundControls__playPause:active,.soundControls.loading .soundControls__playPause:active{background-color:rgba(0,0,0,.5)}.soundControls.playing .soundControls__playPause,.soundControls.loading .soundControls__playPause{background-position:0 0}.soundControls__prev:active,.soundControls__next:active{background-position:0 -19px}.soundControls.disabled .soundControls__next,.soundControls.nextDisabled .soundControls__next,.soundControls.disabled .soundControls__prev,.soundControls.prevDisabled .soundControls__prev{display:none}.initialized .soundControls__playPause{opacity:0}.initializing .soundControls__next,.initializing .soundControls__prev,.paused .soundControls__next,.paused .soundControls__prev,.paused .soundControls__playPause{opacity:1}.paused .soundControls__next,.paused .soundControls__prev,.paused .soundControls__playPause{-webkit-transition:none;transition:none}.soundControls.scrubbing{display:none}")),data=null}), define("views/sound/sound-controls.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o=this.escapeExpression;return s+=''+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"Previous track",{hash:{_comment:"Help text on prev button"},data:i})},data:i}))+'\n'+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"Play or pause track",{hash:{_comment:"Help text on play/pause button"},data:i})},data:i}))+'\n'+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"Next track",{hash:{_comment:"Help text on next button"},data:i})},data:i}))+"\n",s})}), define("lib/views/mixins/fullscreen-loader",["require","exports","module","lib/views/loading","lib/mixin"],function(e,t,n){var r=e("lib/views/loading"),i=e("lib/mixin"),s=n.exports=new i({override:{LoadingView:r,loadingViewArgs:function(){return{size:"fullscreen"}}}})}), define("lib/views/mixins/swipeable",["require","exports","module","lib/mixin"],function(e,t,n){function s(e){var t=e.data.direction;t==="left"&&this.onSwipeLeft?this.onSwipeLeft():this.onSwipeRight&&this.onSwipeRight(),e.originalEvent.preventDefault()}var r=e("lib/mixin"),i=n.exports=new r({defaults:{swipeableSelector:null},after:{renderDecorate:function(){this.$el.on("swipe",this.swipeableSelector,s.bind(this))}}})}), define("views/sound/sound.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".sound__info{position:absolute;z-index:1;top:20px;left:18px;right:18px}.sound__username{font-size:15px;line-height:22px}.sound__username a{color:#ccc}.sound__title{font-size:22px;line-height:1.3}.sound__controls{position:absolute;top:50%;left:0;right:0;height:80px;margin-top:-50px}.sound__infoContent{margin:0 0 4px}.sound__artwork,.sound__artworkOverlay{position:absolute;top:0;bottom:0;width:100%}.sound__artworkOverlay{height:100%;opacity:0;background:#000}.sound__playIndicator{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.sound.playing .sound__playIndicator{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.sound__info.disabled>.sound__infoDisabled{display:block}.sound__infoDisabled{display:none;position:absolute;background:rgba(0,0,0,.2);top:0;left:0;right:0;bottom:0}.sound.paused .sound__artworkOverlay{opacity:.6}.sound.paused .sound__username,.sound.paused .sound__title{background:none;box-shadow:none}")),data=null}), define("views/sound/sound.tmpl",["vendor/handlebars-runtime","views/banner/banner","views/sound/waveform"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){var r="";return r+=" "+u(n.$view.call(e,"views/banner/banner",{hash:{},data:t}))+"\n",r}function c(e,t){var r="",i;r+=" ",i=n.$view.call(e,"views/banner/banner",{hash:{},inverse:a.noop,fn:a.program(4,h,t),data:t});if(i||i===0)r+=i;return r+="\n",r}function h(e,t){var r="";return r+=" "+u(n.$t.call(e,"We're sorry, track not available on mobile",{hash:{},data:t}))+" ",r}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression,a=this,f="function";s+='\n

'+u((o=t&&t.title,typeof o===f?o.apply(t):o))+'

\n',o=n["if"].call(t,t&&t.playable,{hash:{},inverse:a.program(3,c,i),fn:a.program(1,l,i),data:i});if(o||o===0)s+=o;return s+=" "+u(n.$view.call(t,"views/sound/waveform",{hash:{resource_id:t&&t._resource_id,resource_type:t&&t._resource_type},data:i}))+"\n",s})}), define("views/banner/banner",["require","exports","module","underscore","lib/view","views/banner/banner.css"],function(e,t,n){var r=e("underscore"),i=e("lib/view"),s=n.exports=i.extend({className:"banner g-z-index-banner",css:e("views/banner/banner.css"),template:function(){return""},defaults:{message:null},setup:function(e){this.options.message=e.message||e.blockContent,this.toggleState("disabled",!0),r.bindAll(this,"setBanner")},renderDecorate:function(){this.whenInserted().done(function(){var e=this.options;!r.isEmpty(e)&&!r.isEmpty(r.compact(r.values(e)))&&this.setBanner(e)}.bind(this))},setBanner:function(e){if(!e||!e.message)return;var t=this.el,n=e.message;n&&this.getState("disabled")?(this.toggleState("disabled",!1),t.innerHTML=e.message,t.style.top=e.position):n&&!this.getState("disabled")?t.innerHTML=e.message:this.toggleState("disabled",!0)}})}), define("views/sound/waveform",["require","exports","module","views/sound/waveform-canvas","models/sound","lib/helpers/style-helper","lib/view","views/sound/waveform.tmpl","views/sound/waveform.css"],function(e,t,n){function a(e){var t=e?"on":"off";this.model[t]("play pause",f,this),this.model[t]("position",l,this)}function f(){this.toggleState("playing",this.model.isPlaying())}function l(){this._isScrubbing||c.call(this,this.model.currentTime()/this.model.get("duration"))}function c(e){var t=this.subviews.waveformCanvasUnplayed.elWidth;s(this.getElement("waveformPlayed")[0],"transform: translateX("+(t-Math.floor(t*e))+"px)"),s(this.getElement("waveformUnplayed")[0],"transform: translateX("+ -Math.floor(t*e)+"px)")}function h(e){var t=this.subviews.waveformCanvasUnplayed.elWidth,n=this._currentSeek+e*t;this._currentSeek=Math.min(Math.max(0,n),t),this._isScrubbing&&(c.call(this,this._currentSeek/t),this.subviews.timeIndicator.manualProgress(this._currentSeek/t))}function p(){this._isScrubbing=!0,this.subviews.timeIndicator.toggleScrubbing(!0),this.toggleState("scrubbing",!0)}function d(){var e=this.subviews.waveformCanvasUnplayed.elWidth;this.model.seek(this.model.get("duration")*(this._currentSeek/e)),this._isScrubbing=!1,this.subviews.timeIndicator.toggleScrubbing(!1),this.toggleState("scrubbing",!1)}function v(e){h.call(this,e.data.delta)}var r=e("views/sound/waveform-canvas").Events,i=e("models/sound"),s=e("lib/helpers/style-helper"),o=e("lib/view"),u=n.exports=o.extend({template:e("views/sound/waveform.tmpl"),css:e("views/sound/waveform.css"),className:"waveform sc-selection-disabled g-opacity-transition",ModelClass:i,element2selector:{waveformPlayed:".waveform__waveformCanvasPlayed > canvas",waveformUnplayed:".waveform__waveformCanvasUnplayed > canvas"},bubbleEvents:{scrubStart:p,scrub:v,scrubEnd:d},defaults:{upperPartHeight:.7},requiredAttributes:{playlist:["tracks"],sound:["id","waveform_url","state"]},setup:function(){this.toggleState("visual",this.options.visual),this._currentSeek=0,a.call(this,!0)},dispose:function(){a.call(this,!1)},renderDecorate:function(){this.subviews.waveformCanvasUnplayed.on(r.RENDERED,function(){this.toggleState("visible",!0),f.call(this)},this)},getTemplateData:function(e){var t=this.options;return{model:e,upperPartHeight:t.upperPartHeight,upperPartHeightPercent:t.upperPartHeight*100+"%"}}})}), define("views/banner/banner.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".banner.disabled{display:none}.banner{position:absolute;left:0;width:100%;height:36px;line-height:36px;background:#000;background:rgba(0,0,0,.8);color:#e5e5e5;text-align:center;font-size:13px}")),data=null}), define("views/sound/waveform-canvas",["require","exports","module","underscore","models/audible","lib/views/canvas-view","lib/circuit-breaker","vendor/color/color","config","lib/store","lib/support"],function(e,t,n){function S(e){var t=e.waveform,n=e.scaledWidth,r=e.scaledHeight,i=e.upperPartHeight,s=e.gapHeight,o=e.context,a=e.offset,f=Math.round(i*r),l=Math.round(r-f),c=n/m,h=u(e.bgColor),p=u(e.bottomBgColor),d,v,y,b,w,E,S,x,T,N,C,k,L=null,A=null,O=2,M=2,_=O+M;d=h.rgba(e.upperAlpha),y=p.rgba(e.lowerAlpha),v=o.createLinearGradient(0,0,0,r),v.addColorStop(0,h.lighten(20).rgba(0)),v.addColorStop(.6,h.lighten(12).rgba(.6*e.gapAlpha)),v.addColorStop(1,h.rgba(1*e.gapAlpha)),b=h.rgba(.25*e.gapAlpha);for(w=0;wv?e.waveform_url:b[Math.floor(Math.random()*b.length)],s=$.Deferred(),o,u;return r.indexOf(p)>-1&&(r=h),u=r.split("/").pop(),o=y.get(u),o?s.resolve({data:o}):(s.done(function(e){y.set(e.key,e.data)}),w.enabled&&x(u).done(function(e){w.succeeded();var t=new c(e.samples.length);e.samples.forEach(function(n,r){t[r]=e.height-n}),s.resolve({key:u,data:t})}).fail(function(){w.failed()})),s}),$.when.apply($,t).then(function(){this.waveformData=r.pluck(arguments,"data")}.bind(this))}var r=e("underscore"),i=e("models/audible"),s=e("lib/views/canvas-view"),o=e("lib/circuit-breaker"),u=e("vendor/color/color"),a=e("config"),f=e("lib/store"),l=e("lib/support"),c=l.typedArrays?Uint8Array:Array,h="//w1.sndcdn.com/90GaSwazbrh1_m.png",p="/images/player-waveform-medium.png",d=500,v=15,m=1800,g=140,y=new f({maxLength:d}),b=["//w1.sndcdn.com/oQ4mQ28umFy9_m.png","//w1.sndcdn.com/yAsGo4Oj2vjn_m.png","//w1.sndcdn.com/XOsjuw7QwaPt_m.png","//w1.sndcdn.com/H9uGzKOYK5Ph_m.png","//w1.sndcdn.com/IHBAsSu3O7qn_m.png","//w1.sndcdn.com/wco8JS0UScQo_m.png"],w,E=n.exports=s.extend({className:"g-box-full waveformCanvas",defaults:{bgColor:"#333333",bottomBgColor:"#EEEEEE",gapAlpha:0,gapHeight:1,lowerAlpha:1,upperAlpha:1,upperPartHeight:.61},ModelClass:i,requiredAttributes:{sound:["waveform_url"]},waveformData:null,setup:function(){w||(w=new o({tolerance:5,baseDelay:2e3,maxDelay:12e4}))},onCanvasInserted:function(){this.renderWaveform()},onCanvasResize:function(){this.renderWaveform()},renderWaveform:function(){if(this.disposed)return;if(!this.waveformData)T.call(this).done(this.renderWaveform.bind(this));else{var e=this.options,t=this.context,n=this.elHeight,r=0;this.clearCanvas(),this.waveformData.forEach(function(i){var s=this.elWidth;S({waveform:i,scaledWidth:s,scaledHeight:n,context:t,offset:r,bgColor:e.bgColor,bottomBgColor:e.bottomBgColor,upperPartHeight:e.upperPartHeight,upperAlpha:e.upperAlpha,lowerAlpha:e.lowerAlpha,gapAlpha:e.gapAlpha,gapHeight:e.gapHeight}),r+=s},this),this.trigger(E.Events.RENDERED)}},renderWaveformDecorate:$.noop},{Events:{RENDERED:"waveform-canvas.rendered"}})}), define("views/sound/waveform.tmpl",["vendor/handlebars-runtime","views/sound/waveform-canvas","views/listen/time-indicator","views/listen/scrubber"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression;return s+='

'+u(n.$view.call(t,"views/sound/waveform-canvas",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type),key:"waveformCanvasPlayed",bgColor:"#FF6600",bottomBgColor:"#ffa366",className:"g-moving-element"},data:i}))+'

'+u(n.$view.call(t,"views/sound/waveform-canvas",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type),key:"waveformCanvasUnplayed",bgColor:"#FFFFFF",bottomBgColor:"#B3B3B3",className:"g-moving-element"},data:i}))+'

\n

'+u(n.$view.call(t,"views/listen/time-indicator",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type),key:"timeIndicator"},data:i}))+'\n

'+u(n.$view.call(t,"views/listen/scrubber",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type)},data:i}))+"\n

",s})}), define("views/sound/waveform.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".waveform{height:100%;pointer-events:none}.waveform,.waveform__layer{width:100%;position:absolute}.waveform__layer{height:87px;bottom:7%;overflow:hidden;pointer-events:auto;-ms-touch-action:none;touch-action:none}.waveform__layer .waveform__layer{bottom:0}.waveform__timeIndicator{position:absolute;bottom:7%;margin-bottom:34px;display:inline-block;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);transition:bottom .15s linear;z-index:2}.waveform:not(.playing) .waveform__timeIndicator .timeIndicator__container,.waveform.scrubbing .waveform__timeIndicator .timeIndicator__container{background:none}.waveform.scrubbing .waveform__timeIndicator{bottom:46%;transition-timing-function:cubic-bezier(.51,.37,.61,1.6);transition-duration:.25s}.waveform.scrubbing .timeIndicator__text{font-size:20px}.waveform__waveformCanvases{clip:rect(50px,auto,53px,0);-webkit-transform:scaleY(.5);transform:scaleY(.5);-webkit-transform-origin:0 54px;transform-origin:0 54px;-webkit-transition:all .2s cubic-bezier(.68,.68,.165,1);transition:all .2s cubic-bezier(.68,.68,.165,1);z-index:0}.waveform.playing .waveform__waveformCanvases{clip:rect(0,auto,87px,0);-webkit-transform:scaleY(1);transform:scaleY(1);transition:all .45s cubic-bezier(.68,.68,.165,1.45);-webkit-transition:all .45s cubic-bezier(.68,.68,.165,1.45)}.waveform__waveformCanvasPlayed,.waveform__waveformCanvasUnplayed{z-index:1}.waveform__waveformCanvasPlayed{right:50%}.waveform__waveformCanvasPlayed canvas{-webkit-transform:translateX(100%);transform:translateX(100%)}.waveform__waveformCanvasUnplayed{left:50%}.waveform__waveformCanvasUnplayed canvas{-webkit-transform:translateX(0);transform:translateX(0)}.waveform__scrubber{z-index:3}")),data=null}), define("models/audible",["require","exports","module","underscore","models/playlist","models/sound"],function(e,t,n){var r=e("underscore"),i=e("models/playlist"),s=e("models/sound"),o=n.exports=function(e,t){var n=e.resource_type||e.kind;return e=r.omit(e,"resource_type"),n==="playlist"?new i(e,t):new s(e,t)};o.getClass=function(e){var t=e.resource_type;return t==="playlist"?i:s}}), define("lib/views/canvas-view",["require","exports","module","lib/helpers/client-environment-helper","lib/view","lib/window-events"],function(e,t,n){function u(){try{var e=this.el.offsetWidth,t=this.el.offsetHeight;if(this.elWidth!==e||this.elHeight!==t)a.call(this,e,t),this.onCanvasResize()}catch(n){}}function a(e,t){var n;this.elWidth=e||this.el.offsetWidth,this.elHeight=t||this.el.offsetHeight,this.el.setAttribute("width",this.elWidth),this.el.setAttribute("height",this.elHeight),r.device.isHiDPI&&(n=r.device.devicePixelRatio/r.browser.backingStoreRatio,n!==1&&(this.el.setAttribute("width",this.elWidth*n),this.el.setAttribute("height",this.elHeight*n),this.context.scale(n,n)))}var r=e("lib/helpers/client-environment-helper"),i=e("lib/view"),s=e("lib/window-events"),o=n.exports=i.extend({tagName:"canvas",className:"g-box-full",context:null,template:function(){return""},_setup:function(){this.context=this.el.getContext("2d"),s.on("resize:debounced",u,this),i.prototype._setup.apply(this,arguments)},_dispose:function(){if(this.disposed)return;s.off("resize:debounced",u,this),delete this.context,delete this.elWidth,delete this.elHeight,i.prototype._dispose.apply(this,arguments)},renderDecorate:function(){this.whenInserted().done(function(){a.call(this),this.onCanvasInserted()}.bind(this))},onCanvasInserted:$.noop,onCanvasResize:$.noop,forceResize:function(){this._onWindowResize()},clearCanvas:function(){this.context&&this.context.clearRect(0,0,this.elWidth,this.elHeight)}})}), define("lib/circuit-breaker",["require","exports","module","underscore","lib/backbone"],function(e,t,n){var r=e("underscore"),i=e("lib/backbone"),s=n.exports=Class.extend({enabled:!0,_breakCount:0,_failCount:0,_maxBreaks:0,_timeoutId:null,defaults:{tolerance:1,baseDelay:1e3,maxDelay:3e4,backoffRate:2},initialize:function(e){e=this.options=r.extend({},this.defaults,e),this._currentDelay=e.baseDelay;var t=e.maxDelay/e.baseDelay;while(t>1)++this._maxBreaks,t/=e.backoffRate},dispose:function(){this.clearTimeout()},clearTimeout:function(){this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null)},failed:function(){++this._failCount>=this.options.tolerance&&this.disable()},succeeded:function(){this._breakCount=this._failCount=0},disable:function(){if(this.enabled){this.enabled=!1,this._breakCountr.brightness&&n.color>r.color?A(e):A(t)}var e=/^[\s,#]+/,t=/\s+$/,r=Math,i=r.abs,s=r.round,o=r.min,u=r.max,a=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{rgb:new RegExp("rgb"+r),hsl:new RegExp("hsl"+r),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}(),A=function(e){var t=E(e);return{hue:function(e){return S.call(this,e)},darken:function(e){return x.call(this,e)},lighten:function(e){return T.call(this,e)},analogous:function(e,t){return N.call(this,e,t)},readable:function(e){return k.call(this,e)},diff:function(e){return C.call(this,e)},contrast:function(e,t){return L.call(this,e,t)},hex:function(){return t?"#"+g(t):null},toRgb:function(){return t},isValid:function(){return t?!0:!1},rgb:function(){return t?"rgb("+[s(t.r),s(t.g),s(t.b)].join(", ")+")":null},rgba:function(e){return t?"rgba("+[s(t.r),s(t.g),s(t.b),f(e)?1:v(e)].join(", ")+")":null},toHsl:function(){return b(t)},hsl:function(){var e=b(t);return t?"hsl("+e.h+", "+e.s+"%, "+e.l+"%)":null}}};typeof n!="undefined"&&n.exports?n.exports=A:(global=function(){return this}(),global.SC=global.SC||{},global.SC.color=A)})()}), define("views/listen/time-indicator",["require","exports","module","underscore","lib/helpers/datetime-helper","lib/views/progress-bar","views/listen/time-indicator.tmpl","views/listen/time-indicator.css"],function(e,t,n){var r=e("underscore"),i=e("lib/helpers/datetime-helper"),s=e("lib/views/progress-bar"),o=1e3/60,u=n.exports=s.extend({template:e("views/listen/time-indicator.tmpl"),css:e("views/listen/time-indicator.css"),className:"timeIndicator",element2selector:{current:".timeIndicator__current"},setup:function(){s.prototype.setup.apply(this,arguments),this._isScrubbing=!1,this.updateTimeDisplay=r.throttle(this.updateTimeDisplay.bind(this),o)},getTemplateData:function(e){e.timecode=i.timecode(e.duration)},manualProgress:function(e){this.updateTimeDisplay(e*this.model.duration())},updateProgress:function(e){this._isScrubbing||this.updateTimeDisplay(e)},toggleScrubbing:function(e){this._isScrubbing=e},updateTimeDisplay:function(e){var t=e?e:this.model.currentTime();t=Math.floor(t/1e3+.1)*1e3,this.getElement("current")[0].innerHTML=i.timecode(t)}})}), define("views/listen/scrubber",["require","exports","module","lib/views/mixins/draggable","lib/event-bus","models/sound","lib/view"],function(e,t,n){function a(){i.trigger("scrub:start"),this.bubble("scrubStart")}function f(e){this.bubble("scrub",{delta:e.data.delta})}function l(){i.trigger("scrub:end"),this.bubble("scrubEnd")}var r=e("lib/views/mixins/draggable"),i=e("lib/event-bus"),s=e("models/sound"),o=e("lib/view"),u=n.exports=o.extend(r,{className:"scrubber g-box-full",template:function(){return""},ModelClass:s,events:{"draggable-start":a,"draggable-drag":f,"draggable-end":l},setup:function(){this.el.style.background="rgba(0,0,0,0)"}})}), define("lib/views/progress-bar",["require","exports","module","underscore","$","models/sound","lib/view","lib/window-events"],function(e,t,n){function p(e){var t=e?"on":"off";a[t]("pointerup",w,this)[t]("pointerdown",b,this),u[t]("resize:debounced",N,this)[t]("resize:debounced",this.getWidth.bind(this,!0),this),this.model[t]("finish",g,this)[t]("seeked",m,this)[t]("manually-seeked",m,this)[t]("play",v,this)[t]("pause",d,this)}function d(){T.call(this)}function v(){x.call(this)}function m(){y.call(this)}function g(){y.call(this)}function y(){var e=this.model.currentTime();if(this.disposed||this.isUserScrubbing&&!e)return;this.playedProgress=e?E.call(this,e):this.getPlayedProgress(),this.updateProgress(e)}function b(){this.isUserScrubbing=!0}function w(){r.delay(function(){this.isUserScrubbing=!1}.bind(this),c)}function E(e){return e/this.model.duration()}function S(e){var t=this._throttleTime,n;!e&&!this.isUserScrubbing&&y.call(this),n=Math.max(f,t&&t-this.model.currentTime()%t),this._throttleTimeout=setTimeout(S.bind(this,this.isUserScrubbing),n)}function x(){this.model.isPlaying()&&(this._throttleTime||N.call(this),this._throttleTimeout||S.call(this))}function T(){clearTimeout(this._throttleTimeout),this._throttleTimeout=null}function N(){if(this.disposed)return;var e=this.el.clientWidth,t;e!==this._lastContainerSize&&(this._lastContainerSize=e,t=this.model.duration(),this._throttleTime=Math.max(f,Math.floor(t/e)),this._throttleTime=Math.min(this._throttleTime,l))}var r=e("underscore"),i=e("$"),s=e("models/sound"),o=e("lib/view"),u=e("lib/window-events"),a=i(document),f=50,l=250,c=300,h=n.exports=o.extend({ModelClass:s,setup:function(){this.loadedProgress=this.getLoadedProgress(),this.playedProgress=this.getPlayedProgress(),this.isFullyLoaded=!1,this.isUserScrubbing=!1,p.call(this,!0)},dispose:function(){p.call(this,!1)},renderDecorate:function(){x.call(this)},teardown:function(){T.call(this)},updateProgress:i.noop,getLoadedProgress:function(){return this.model.loadProgress()},getPlayedProgress:function(){return this.model.currentTime()},calculateProgressPixels:function(e){return Math.floor(this.getWidth()*e)},getWidth:function(e){return e=this.el.parentNode?e:!0,this._width=e?this.el.offsetWidth:this._width||this.el.offsetWidth,this._width}})}), define("views/listen/time-indicator.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u="function",a=this.escapeExpression;return s+='

0.00|'+a((o=t&&t.timecode,typeof o===u?o.apply(t):o))+"\n

\n",s})}), define("views/listen/time-indicator.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".timeIndicator__container{background:rgba(0,0,0,.8);height:20px;line-height:20px;font-size:0;white-space:nowrap}.timeIndicator__current{color:#fff}.timeIndicator__text{font-size:12px;transition:font-size .15s cubic-bezier(.51,.37,.61,1.6)}.timeIndicator__current,.timeIndicator__total{padding:0 5px}.timeIndicator__divider,.timeIndicator__total{color:#999}")),data=null}), define("lib/views/mixins/draggable",["require","exports","module","$","lib/animation","lib/mixin","lib/window-events"],function(e,t,n){function f(e){this.el=e,this.width=null,this.coords=null,this.reset(),this.onPointerMove=p.bind(this),this.onPointerUp=d.bind(this),this.onPointerDown=h.bind(this),l.call(this,!0)}function l(e){var t=e?"on":"off";this.el[t?"addEventListener":"removeEventListener"]("pointerdown",this.onPointerDown),o[t?"on":"off"]("resize:debounced",v,this)}function c(e){var t=e?"on":"off";u[t]("pointerup",this.onPointerUp)[t]("pointermove",this.onPointerMove)}function h(e){this.kineticMoveAnimation&&this.kineticMoveAnimation.reject(),this.dispatchEvent("start"),this.dispatchEvent("drag",0),this.lastPointerX=e.x,c.call(this,!0)}function p(e){e.maskedEvent.preventDefault();var t=e.x,n=this.lastPointerX-t;this.startMoveTimestamp=this.startMoveTimestamp||Date.now(),this.deltas.push(n),this.lastPointerX=t,(n>.01||n0?1:-1,t=this.deltas.reduce(function(e,t){return e+Math.abs(t)},0),n=t/this.deltas.length,n= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u="function",a=this.escapeExpression,f=this;o=n["if"].call(t,t&&t.shouldUpsell,{hash:{},inverse:f.noop,fn:f.program(1,l,i),data:i});if(o||o===0)s+=o;return s+='

",s})}), define("views/footer/footer.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".footer{text-align:center;margin:26px 0 0;padding:0 0 18px;display:none}.footer.show{display:block}.app__displayMiniPlayer .footer{padding:0 0 78px}.footer__links,.footer__links a{color:#999;line-height:20px}.footer__links>.localeSelector{color:#38d}.footer__appButtonContainer{margin:0 25px 28px}.footer__appButtonText{color:#333;font-size:16px;text-align:center;margin:0 0 18px}.footerSwitchLink{font-weight:700}")),data=null}), define("lib/helpers/a11y-helper",["require","exports","module","vendor/handlebars-runtime"],function(e,t,n){var r=e("vendor/handlebars-runtime"),i=n.exports={getAccessibleMarkup:function(e){return''+r.Utils.escapeExpression(e.screenreader)+""+(e.visible?''+r.Utils.escapeExpression(e.visible)+"":"")}}}), define("lib/helpers/count-helper",["require","exports","module","underscore","lib/lingua"],function(e,t,n){var r=e("underscore"),i=e("lib/lingua"),s;s={max:null,suffix:"+"};var o=n.exports={render:function(e,t){return t=t||{},r.defaults(t,s),t.max=t.max||e,e>t.max?t.max+t.suffix:i.numberHelper.format(e)}}}), define("lib/helpers/i18n-helper",["require","exports","module"],function(e,t,n){var r=/\r?\n/g,i=/\s+/g;n.exports={cleanBlockText:function(e){return e.trim().replace(r," ").replace(i," ")}}}), define("lib/helpers/image-helper",["require","exports","module","$","underscore","lib/helpers/client-environment-helper","vendor/experiments/experiments","lib/helpers/name-helper","lib/support"],function(e,t,n){function y(e){var t,n,r;return c.lastIndex=0,t=e.replace(c,function(e,t,s,o){return i.find(d,function(e,t){if(e[1]===o)return n=t,!0}),r=t,s}),r?{index:n,key:parseInt(t,10),type:r}:null}function b(e,t){var n=i.find(d,function(e){return e[0]>=t})||i.last(d);return n[1]==="t20x20"&&e==="artworks"?"tiny":n[1]}function w(e){c.lastIndex=0;var t=c.exec(e),n;return t&&(n=t[3].charCodeAt(0)%4+1,n!==1&&(e=e.replace("//i1.","//i"+n+"."))),e}function E(e){var t=y(e);t&&(p[t.type]||(p[t.type]={}),p[t.type][t.key]=p[t.type][t.key]|1= 1.0.0"],n=this.merge(n,e.helpers),i=i||{},'\n'})}), define("views/sound/sound-controls.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".soundControls{height:80px;position:absolute;top:50%;left:0;right:0;margin-top:-40px;-webkit-transform:translate3d(0,0,0);pointer-events:none}.soundControls__control{background-position:0 0;background-repeat:no-repeat;background-size:100% auto;position:absolute;pointer-events:auto}.soundControls__prev,.soundControls__next{background-image:url(https://m.soundcloud.com/assets/images/ldpi/player/skip_button-e03e9a61.png);width:28px;height:19px;top:30px;opacity:0;-webkit-transition:opacity 2s cubic-bezier(1,.01,.81,1);transition:opacity 2s cubic-bezier(1,.01,.81,1)}.soundControls__prev{left:17px}.soundControls__next{right:17px;-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.soundControls.disabled .soundControls__playPause,.soundControls.playing .soundControls__playPause:active,.soundControls.loading .soundControls__playPause:active{background-color:rgba(0,0,0,.5)}.soundControls.playing .soundControls__playPause,.soundControls.loading .soundControls__playPause{background-position:0 0}.soundControls__prev:active,.soundControls__next:active{background-position:0 -19px}.soundControls.disabled .soundControls__next,.soundControls.nextDisabled .soundControls__next,.soundControls.disabled .soundControls__prev,.soundControls.prevDisabled .soundControls__prev{display:none}.initialized .soundControls__playPause{opacity:0}.initializing .soundControls__next,.initializing .soundControls__prev,.paused .soundControls__next,.paused .soundControls__prev,.paused .soundControls__playPause{opacity:1}.paused .soundControls__next,.paused .soundControls__prev,.paused .soundControls__playPause{-webkit-transition:none;transition:none}.soundControls.scrubbing{display:none}")),data=null}), define("views/sound/sound-controls.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o=this.escapeExpression;return s+=''+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"Previous track",{hash:{_comment:"Help text on prev button"},data:i})},data:i}))+'\n'+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"Play or pause track",{hash:{_comment:"Help text on play/pause button"},data:i})},data:i}))+'\n'+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"Next track",{hash:{_comment:"Help text on next button"},data:i})},data:i}))+"\n",s})}), define("lib/views/mixins/fullscreen-loader",["require","exports","module","lib/views/loading","lib/mixin"],function(e,t,n){var r=e("lib/views/loading"),i=e("lib/mixin"),s=n.exports=new i({override:{LoadingView:r,loadingViewArgs:function(){return{size:"fullscreen"}}}})}), define("lib/views/mixins/swipeable",["require","exports","module","lib/mixin"],function(e,t,n){function s(e){var t=e.data.direction;t==="left"&&this.onSwipeLeft?this.onSwipeLeft():this.onSwipeRight&&this.onSwipeRight(),e.originalEvent.preventDefault()}var r=e("lib/mixin"),i=n.exports=new r({defaults:{swipeableSelector:null},after:{renderDecorate:function(){this.$el.on("swipe",this.swipeableSelector,s.bind(this))}}})}), define("views/sound/sound.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".sound__info{position:absolute;z-index:1;top:20px;left:18px;right:18px}.sound__username{font-size:15px;line-height:22px}.sound__username a{color:#ccc}.sound__title{font-size:22px;line-height:1.3}.sound__controls{position:absolute;top:50%;left:0;right:0;height:80px;margin-top:-50px}.sound__infoContent{margin:0 0 4px}.sound__artwork,.sound__artworkOverlay{position:absolute;top:0;bottom:0;width:100%}.sound__artworkOverlay{height:100%;opacity:0;background:#000}.sound__playIndicator{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.sound.playing .sound__playIndicator{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.sound__info.disabled>.sound__infoDisabled{display:block}.sound__infoDisabled{display:none;position:absolute;background:rgba(0,0,0,.2);top:0;left:0;right:0;bottom:0}.sound.paused .sound__artworkOverlay{opacity:.6}.sound.paused .sound__username,.sound.paused .sound__title{background:none;box-shadow:none}")),data=null}), define("views/sound/sound.tmpl",["vendor/handlebars-runtime","views/banner/banner","views/sound/waveform"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){var r="";return r+=" "+u(n.$view.call(e,"views/banner/banner",{hash:{},data:t}))+"\n",r}function c(e,t){var r="",i;r+=" ",i=n.$view.call(e,"views/banner/banner",{hash:{},inverse:a.noop,fn:a.program(4,h,t),data:t});if(i||i===0)r+=i;return r+="\n",r}function h(e,t){var r="";return r+=" "+u(n.$t.call(e,"We're sorry, track not available on mobile",{hash:{},data:t}))+" ",r}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression,a=this,f="function";s+='\n

'+u((o=t&&t.title,typeof o===f?o.apply(t):o))+'

\n',o=n["if"].call(t,t&&t.playable,{hash:{},inverse:a.program(3,c,i),fn:a.program(1,l,i),data:i});if(o||o===0)s+=o;return s+=" "+u(n.$view.call(t,"views/sound/waveform",{hash:{resource_id:t&&t._resource_id,resource_type:t&&t._resource_type},data:i}))+"\n",s})}), define("views/banner/banner",["require","exports","module","underscore","lib/view","views/banner/banner.css"],function(e,t,n){var r=e("underscore"),i=e("lib/view"),s=n.exports=i.extend({className:"banner g-z-index-banner",css:e("views/banner/banner.css"),template:function(){return""},defaults:{message:null},setup:function(e){this.options.message=e.message||e.blockContent,this.toggleState("disabled",!0),r.bindAll(this,"setBanner")},renderDecorate:function(){this.whenInserted().done(function(){var e=this.options;!r.isEmpty(e)&&!r.isEmpty(r.compact(r.values(e)))&&this.setBanner(e)}.bind(this))},setBanner:function(e){if(!e||!e.message)return;var t=this.el,n=e.message;n&&this.getState("disabled")?(this.toggleState("disabled",!1),t.innerHTML=e.message,t.style.top=e.position):n&&!this.getState("disabled")?t.innerHTML=e.message:this.toggleState("disabled",!0)}})}), define("views/sound/waveform",["require","exports","module","views/sound/waveform-canvas","models/sound","lib/helpers/style-helper","lib/view","views/sound/waveform.tmpl","views/sound/waveform.css"],function(e,t,n){function a(e){var t=e?"on":"off";this.model[t]("play pause",f,this),this.model[t]("position",l,this)}function f(){this.toggleState("playing",this.model.isPlaying())}function l(){this._isScrubbing||c.call(this,this.model.currentTime()/this.model.get("duration"))}function c(e){var t=this.subviews.waveformCanvasUnplayed.elWidth;s(this.getElement("waveformPlayed")[0],"transform: translateX("+(t-Math.floor(t*e))+"px)"),s(this.getElement("waveformUnplayed")[0],"transform: translateX("+ -Math.floor(t*e)+"px)")}function h(e){var t=this.subviews.waveformCanvasUnplayed.elWidth,n=this._currentSeek+e*t;this._currentSeek=Math.min(Math.max(0,n),t),this._isScrubbing&&(c.call(this,this._currentSeek/t),this.subviews.timeIndicator.manualProgress(this._currentSeek/t))}function p(){this._isScrubbing=!0,this.subviews.timeIndicator.toggleScrubbing(!0),this.toggleState("scrubbing",!0)}function d(){var e=this.subviews.waveformCanvasUnplayed.elWidth;this.model.seek(this.model.get("duration")*(this._currentSeek/e)),this._isScrubbing=!1,this.subviews.timeIndicator.toggleScrubbing(!1),this.toggleState("scrubbing",!1)}function v(e){h.call(this,e.data.delta)}var r=e("views/sound/waveform-canvas").Events,i=e("models/sound"),s=e("lib/helpers/style-helper"),o=e("lib/view"),u=n.exports=o.extend({template:e("views/sound/waveform.tmpl"),css:e("views/sound/waveform.css"),className:"waveform sc-selection-disabled g-opacity-transition",ModelClass:i,element2selector:{waveformPlayed:".waveform__waveformCanvasPlayed > canvas",waveformUnplayed:".waveform__waveformCanvasUnplayed > canvas"},bubbleEvents:{scrubStart:p,scrub:v,scrubEnd:d},defaults:{upperPartHeight:.7},requiredAttributes:{playlist:["tracks"],sound:["id","waveform_url","state"]},setup:function(){this.toggleState("visual",this.options.visual),this._currentSeek=0,a.call(this,!0)},dispose:function(){a.call(this,!1)},renderDecorate:function(){this.subviews.waveformCanvasUnplayed.on(r.RENDERED,function(){this.toggleState("visible",!0),f.call(this)},this)},getTemplateData:function(e){var t=this.options;return{model:e,upperPartHeight:t.upperPartHeight,upperPartHeightPercent:t.upperPartHeight*100+"%"}}})}), define("views/banner/banner.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".banner.disabled{display:none}.banner{position:absolute;left:0;width:100%;height:36px;line-height:36px;background:#000;background:rgba(0,0,0,.8);color:#e5e5e5;text-align:center;font-size:13px}")),data=null}), define("views/sound/waveform-canvas",["require","exports","module","underscore","models/audible","lib/views/canvas-view","lib/circuit-breaker","vendor/color/color","config","lib/store","lib/support"],function(e,t,n){function S(e){var t=e.waveform,n=e.scaledWidth,r=e.scaledHeight,i=e.upperPartHeight,s=e.gapHeight,o=e.context,a=e.offset,f=Math.round(i*r),l=Math.round(r-f),c=n/m,h=u(e.bgColor),p=u(e.bottomBgColor),d,v,y,b,w,E,S,x,T,N,C,k,L=null,A=null,O=2,M=2,_=O+M;d=h.rgba(e.upperAlpha),y=p.rgba(e.lowerAlpha),v=o.createLinearGradient(0,0,0,r),v.addColorStop(0,h.lighten(20).rgba(0)),v.addColorStop(.6,h.lighten(12).rgba(.6*e.gapAlpha)),v.addColorStop(1,h.rgba(1*e.gapAlpha)),b=h.rgba(.25*e.gapAlpha);for(w=0;wv?e.waveform_url:b[Math.floor(Math.random()*b.length)],s=$.Deferred(),o,u;return r.indexOf(p)>-1&&(r=h),u=r.split("/").pop(),o=y.get(u),o?s.resolve({data:o}):(s.done(function(e){y.set(e.key,e.data)}),w.enabled&&x(u).done(function(e){w.succeeded();var t=new c(e.samples.length);e.samples.forEach(function(n,r){t[r]=e.height-n}),s.resolve({key:u,data:t})}).fail(function(){w.failed()})),s}),$.when.apply($,t).then(function(){this.waveformData=r.pluck(arguments,"data")}.bind(this))}var r=e("underscore"),i=e("models/audible"),s=e("lib/views/canvas-view"),o=e("lib/circuit-breaker"),u=e("vendor/color/color"),a=e("config"),f=e("lib/store"),l=e("lib/support"),c=l.typedArrays?Uint8Array:Array,h="//w1.sndcdn.com/90GaSwazbrh1_m.png",p="/images/player-waveform-medium.png",d=500,v=15,m=1800,g=140,y=new f({maxLength:d}),b=["//w1.sndcdn.com/oQ4mQ28umFy9_m.png","//w1.sndcdn.com/yAsGo4Oj2vjn_m.png","//w1.sndcdn.com/XOsjuw7QwaPt_m.png","//w1.sndcdn.com/H9uGzKOYK5Ph_m.png","//w1.sndcdn.com/IHBAsSu3O7qn_m.png","//w1.sndcdn.com/wco8JS0UScQo_m.png"],w,E=n.exports=s.extend({className:"g-box-full waveformCanvas",defaults:{bgColor:"#333333",bottomBgColor:"#EEEEEE",gapAlpha:0,gapHeight:1,lowerAlpha:1,upperAlpha:1,upperPartHeight:.61},ModelClass:i,requiredAttributes:{sound:["waveform_url"]},waveformData:null,setup:function(){w||(w=new o({tolerance:5,baseDelay:2e3,maxDelay:12e4}))},onCanvasInserted:function(){this.renderWaveform()},onCanvasResize:function(){this.renderWaveform()},renderWaveform:function(){if(this.disposed)return;if(!this.waveformData)T.call(this).done(this.renderWaveform.bind(this));else{var e=this.options,t=this.context,n=this.elHeight,r=0;this.clearCanvas(),this.waveformData.forEach(function(i){var s=this.elWidth;S({waveform:i,scaledWidth:s,scaledHeight:n,context:t,offset:r,bgColor:e.bgColor,bottomBgColor:e.bottomBgColor,upperPartHeight:e.upperPartHeight,upperAlpha:e.upperAlpha,lowerAlpha:e.lowerAlpha,gapAlpha:e.gapAlpha,gapHeight:e.gapHeight}),r+=s},this),this.trigger(E.Events.RENDERED)}},renderWaveformDecorate:$.noop},{Events:{RENDERED:"waveform-canvas.rendered"}})}), define("views/sound/waveform.tmpl",["vendor/handlebars-runtime","views/sound/waveform-canvas","views/listen/time-indicator","views/listen/scrubber"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression;return s+='

'+u(n.$view.call(t,"views/sound/waveform-canvas",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type),key:"waveformCanvasPlayed",bgColor:"#FF6600",bottomBgColor:"#ffa366",className:"g-moving-element"},data:i}))+'

'+u(n.$view.call(t,"views/sound/waveform-canvas",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type),key:"waveformCanvasUnplayed",bgColor:"#FFFFFF",bottomBgColor:"#B3B3B3",className:"g-moving-element"},data:i}))+'

\n

'+u(n.$view.call(t,"views/listen/time-indicator",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type),key:"timeIndicator"},data:i}))+'\n

'+u(n.$view.call(t,"views/listen/scrubber",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type)},data:i}))+"\n

",s})}), define("views/sound/waveform.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".waveform{height:100%;pointer-events:none}.waveform,.waveform__layer{width:100%;position:absolute}.waveform__layer{height:87px;bottom:7%;overflow:hidden;pointer-events:auto;-ms-touch-action:none;touch-action:none}.waveform__layer .waveform__layer{bottom:0}.waveform__timeIndicator{position:absolute;bottom:7%;margin-bottom:34px;display:inline-block;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);transition:bottom .15s linear;z-index:2}.waveform:not(.playing) .waveform__timeIndicator .timeIndicator__container,.waveform.scrubbing .waveform__timeIndicator .timeIndicator__container{background:none}.waveform.scrubbing .waveform__timeIndicator{bottom:46%;transition-timing-function:cubic-bezier(.51,.37,.61,1.6);transition-duration:.25s}.waveform.scrubbing .timeIndicator__text{font-size:20px}.waveform__waveformCanvases{clip:rect(50px,auto,53px,0);-webkit-transform:scaleY(.5);transform:scaleY(.5);-webkit-transform-origin:0 54px;transform-origin:0 54px;-webkit-transition:all .2s cubic-bezier(.68,.68,.165,1);transition:all .2s cubic-bezier(.68,.68,.165,1);z-index:0}.waveform.playing .waveform__waveformCanvases{clip:rect(0,auto,87px,0);-webkit-transform:scaleY(1);transform:scaleY(1);transition:all .45s cubic-bezier(.68,.68,.165,1.45);-webkit-transition:all .45s cubic-bezier(.68,.68,.165,1.45)}.waveform__waveformCanvasPlayed,.waveform__waveformCanvasUnplayed{z-index:1}.waveform__waveformCanvasPlayed{right:50%}.waveform__waveformCanvasPlayed canvas{-webkit-transform:translateX(100%);transform:translateX(100%)}.waveform__waveformCanvasUnplayed{left:50%}.waveform__waveformCanvasUnplayed canvas{-webkit-transform:translateX(0);transform:translateX(0)}.waveform__scrubber{z-index:3}")),data=null}), define("models/audible",["require","exports","module","underscore","models/playlist","models/sound"],function(e,t,n){var r=e("underscore"),i=e("models/playlist"),s=e("models/sound"),o=n.exports=function(e,t){var n=e.resource_type||e.kind;return e=r.omit(e,"resource_type"),n==="playlist"?new i(e,t):new s(e,t)};o.getClass=function(e){var t=e.resource_type;return t==="playlist"?i:s}}), define("lib/views/canvas-view",["require","exports","module","lib/helpers/client-environment-helper","lib/view","lib/window-events"],function(e,t,n){function u(){try{var e=this.el.offsetWidth,t=this.el.offsetHeight;if(this.elWidth!==e||this.elHeight!==t)a.call(this,e,t),this.onCanvasResize()}catch(n){}}function a(e,t){var n;this.elWidth=e||this.el.offsetWidth,this.elHeight=t||this.el.offsetHeight,this.el.setAttribute("width",this.elWidth),this.el.setAttribute("height",this.elHeight),r.device.isHiDPI&&(n=r.device.devicePixelRatio/r.browser.backingStoreRatio,n!==1&&(this.el.setAttribute("width",this.elWidth*n),this.el.setAttribute("height",this.elHeight*n),this.context.scale(n,n)))}var r=e("lib/helpers/client-environment-helper"),i=e("lib/view"),s=e("lib/window-events"),o=n.exports=i.extend({tagName:"canvas",className:"g-box-full",context:null,template:function(){return""},_setup:function(){this.context=this.el.getContext("2d"),s.on("resize:debounced",u,this),i.prototype._setup.apply(this,arguments)},_dispose:function(){if(this.disposed)return;s.off("resize:debounced",u,this),delete this.context,delete this.elWidth,delete this.elHeight,i.prototype._dispose.apply(this,arguments)},renderDecorate:function(){this.whenInserted().done(function(){a.call(this),this.onCanvasInserted()}.bind(this))},onCanvasInserted:$.noop,onCanvasResize:$.noop,forceResize:function(){this._onWindowResize()},clearCanvas:function(){this.context&&this.context.clearRect(0,0,this.elWidth,this.elHeight)}})}), define("lib/circuit-breaker",["require","exports","module","underscore","lib/backbone"],function(e,t,n){var r=e("underscore"),i=e("lib/backbone"),s=n.exports=Class.extend({enabled:!0,_breakCount:0,_failCount:0,_maxBreaks:0,_timeoutId:null,defaults:{tolerance:1,baseDelay:1e3,maxDelay:3e4,backoffRate:2},initialize:function(e){e=this.options=r.extend({},this.defaults,e),this._currentDelay=e.baseDelay;var t=e.maxDelay/e.baseDelay;while(t>1)++this._maxBreaks,t/=e.backoffRate},dispose:function(){this.clearTimeout()},clearTimeout:function(){this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null)},failed:function(){++this._failCount>=this.options.tolerance&&this.disable()},succeeded:function(){this._breakCount=this._failCount=0},disable:function(){if(this.enabled){this.enabled=!1,this._breakCountr.brightness&&n.color>r.color?A(e):A(t)}var e=/^[\s,#]+/,t=/\s+$/,r=Math,i=r.abs,s=r.round,o=r.min,u=r.max,a=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{rgb:new RegExp("rgb"+r),hsl:new RegExp("hsl"+r),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}(),A=function(e){var t=E(e);return{hue:function(e){return S.call(this,e)},darken:function(e){return x.call(this,e)},lighten:function(e){return T.call(this,e)},analogous:function(e,t){return N.call(this,e,t)},readable:function(e){return k.call(this,e)},diff:function(e){return C.call(this,e)},contrast:function(e,t){return L.call(this,e,t)},hex:function(){return t?"#"+g(t):null},toRgb:function(){return t},isValid:function(){return t?!0:!1},rgb:function(){return t?"rgb("+[s(t.r),s(t.g),s(t.b)].join(", ")+")":null},rgba:function(e){return t?"rgba("+[s(t.r),s(t.g),s(t.b),f(e)?1:v(e)].join(", ")+")":null},toHsl:function(){return b(t)},hsl:function(){var e=b(t);return t?"hsl("+e.h+", "+e.s+"%, "+e.l+"%)":null}}};typeof n!="undefined"&&n.exports?n.exports=A:(global=function(){return this}(),global.SC=global.SC||{},global.SC.color=A)})()}), define("views/listen/time-indicator",["require","exports","module","underscore","lib/helpers/datetime-helper","lib/views/progress-bar","views/listen/time-indicator.tmpl","views/listen/time-indicator.css"],function(e,t,n){var r=e("underscore"),i=e("lib/helpers/datetime-helper"),s=e("lib/views/progress-bar"),o=1e3/60,u=n.exports=s.extend({template:e("views/listen/time-indicator.tmpl"),css:e("views/listen/time-indicator.css"),className:"timeIndicator",element2selector:{current:".timeIndicator__current"},setup:function(){s.prototype.setup.apply(this,arguments),this._isScrubbing=!1,this.updateTimeDisplay=r.throttle(this.updateTimeDisplay.bind(this),o)},getTemplateData:function(e){e.timecode=i.timecode(e.duration)},manualProgress:function(e){this.updateTimeDisplay(e*this.model.duration())},updateProgress:function(e){this._isScrubbing||this.updateTimeDisplay(e)},toggleScrubbing:function(e){this._isScrubbing=e},updateTimeDisplay:function(e){var t=e?e:this.model.currentTime();t=Math.floor(t/1e3+.1)*1e3,this.getElement("current")[0].innerHTML=i.timecode(t)}})}), define("views/listen/scrubber",["require","exports","module","lib/views/mixins/draggable","lib/event-bus","models/sound","lib/view"],function(e,t,n){function a(){i.trigger("scrub:start"),this.bubble("scrubStart")}function f(e){this.bubble("scrub",{delta:e.data.delta})}function l(){i.trigger("scrub:end"),this.bubble("scrubEnd")}var r=e("lib/views/mixins/draggable"),i=e("lib/event-bus"),s=e("models/sound"),o=e("lib/view"),u=n.exports=o.extend(r,{className:"scrubber g-box-full",template:function(){return""},ModelClass:s,events:{"draggable-start":a,"draggable-drag":f,"draggable-end":l},setup:function(){this.el.style.background="rgba(0,0,0,0)"}})}), define("lib/views/progress-bar",["require","exports","module","underscore","$","models/sound","lib/view","lib/window-events"],function(e,t,n){function p(e){var t=e?"on":"off";a[t]("pointerup",w,this)[t]("pointerdown",b,this),u[t]("resize:debounced",N,this)[t]("resize:debounced",this.getWidth.bind(this,!0),this),this.model[t]("finish",g,this)[t]("seeked",m,this)[t]("manually-seeked",m,this)[t]("play",v,this)[t]("pause",d,this)}function d(){T.call(this)}function v(){x.call(this)}function m(){y.call(this)}function g(){y.call(this)}function y(){var e=this.model.currentTime();if(this.disposed||this.isUserScrubbing&&!e)return;this.playedProgress=e?E.call(this,e):this.getPlayedProgress(),this.updateProgress(e)}function b(){this.isUserScrubbing=!0}function w(){r.delay(function(){this.isUserScrubbing=!1}.bind(this),c)}function E(e){return e/this.model.duration()}function S(e){var t=this._throttleTime,n;!e&&!this.isUserScrubbing&&y.call(this),n=Math.max(f,t&&t-this.model.currentTime()%t),this._throttleTimeout=setTimeout(S.bind(this,this.isUserScrubbing),n)}function x(){this.model.isPlaying()&&(this._throttleTime||N.call(this),this._throttleTimeout||S.call(this))}function T(){clearTimeout(this._throttleTimeout),this._throttleTimeout=null}function N(){if(this.disposed)return;var e=this.el.clientWidth,t;e!==this._lastContainerSize&&(this._lastContainerSize=e,t=this.model.duration(),this._throttleTime=Math.max(f,Math.floor(t/e)),this._throttleTime=Math.min(this._throttleTime,l))}var r=e("underscore"),i=e("$"),s=e("models/sound"),o=e("lib/view"),u=e("lib/window-events"),a=i(document),f=50,l=250,c=300,h=n.exports=o.extend({ModelClass:s,setup:function(){this.loadedProgress=this.getLoadedProgress(),this.playedProgress=this.getPlayedProgress(),this.isFullyLoaded=!1,this.isUserScrubbing=!1,p.call(this,!0)},dispose:function(){p.call(this,!1)},renderDecorate:function(){x.call(this)},teardown:function(){T.call(this)},updateProgress:i.noop,getLoadedProgress:function(){return this.model.loadProgress()},getPlayedProgress:function(){return this.model.currentTime()},calculateProgressPixels:function(e){return Math.floor(this.getWidth()*e)},getWidth:function(e){return e=this.el.parentNode?e:!0,this._width=e?this.el.offsetWidth:this._width||this.el.offsetWidth,this._width}})}), define("views/listen/time-indicator.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u="function",a=this.escapeExpression;return s+='

0.00|'+a((o=t&&t.timecode,typeof o===u?o.apply(t):o))+"\n

\n",s})}), define("views/listen/time-indicator.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".timeIndicator__container{background:rgba(0,0,0,.8);height:20px;line-height:20px;font-size:0;white-space:nowrap}.timeIndicator__current{color:#fff}.timeIndicator__text{font-size:12px;transition:font-size .15s cubic-bezier(.51,.37,.61,1.6)}.timeIndicator__current,.timeIndicator__total{padding:0 5px}.timeIndicator__divider,.timeIndicator__total{color:#999}")),data=null}), define("lib/views/mixins/draggable",["require","exports","module","$","lib/animation","lib/mixin","lib/window-events"],function(e,t,n){function f(e){this.el=e,this.width=null,this.coords=null,this.reset(),this.onPointerMove=p.bind(this),this.onPointerUp=d.bind(this),this.onPointerDown=h.bind(this),l.call(this,!0)}function l(e){var t=e?"on":"off";this.el[t?"addEventListener":"removeEventListener"]("pointerdown",this.onPointerDown),o[t?"on":"off"]("resize:debounced",v,this)}function c(e){var t=e?"on":"off";u[t]("pointerup",this.onPointerUp)[t]("pointermove",this.onPointerMove)}function h(e){this.kineticMoveAnimation&&this.kineticMoveAnimation.reject(),this.dispatchEvent("start"),this.dispatchEvent("drag",0),this.lastPointerX=e.x,c.call(this,!0)}function p(e){e.maskedEvent.preventDefault();var t=e.x,n=this.lastPointerX-t;this.startMoveTimestamp=this.startMoveTimestamp||Date.now(),this.deltas.push(n),this.lastPointerX=t,(n>.01||n0?1:-1,t=this.deltas.reduce(function(e,t){return e+Math.abs(t)},0),n=t/this.deltas.length,n
https://m.soundcloud.com/mike-rogers-81/mr-aug-21-mike-rogers-august-21c-afternoon