(function(){var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(k){var n=0;return function(){return n<k.length?{done:!1,value:k[n++]}:{done:!0}}};$jscomp.arrayIterator=function(k){return{next:$jscomp.arrayIteratorImpl(k)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(k,n,h){if(k==Array.prototype||k==Object.prototype)return k;k[n]=h.value;return k};$jscomp.getGlobal=function(k){k=["object"==typeof globalThis&&globalThis,k,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<k.length;++n){var h=k[n];if(h&&h.Math==Math)return h}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(k,n){var h=$jscomp.propertyToPolyfillSymbol[n];if(null==h)return k[n];h=k[h];return void 0!==h?h:k[n]};
$jscomp.polyfill=function(k,n,h,q){n&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(k,n,h,q):$jscomp.polyfillUnisolated(k,n,h,q))};$jscomp.polyfillUnisolated=function(k,n,h,q){h=$jscomp.global;k=k.split(".");for(q=0;q<k.length-1;q++){var x=k[q];if(!(x in h))return;h=h[x]}k=k[k.length-1];q=h[k];n=n(q);n!=q&&null!=n&&$jscomp.defineProperty(h,k,{configurable:!0,writable:!0,value:n})};
$jscomp.polyfillIsolated=function(k,n,h,q){var x=k.split(".");k=1===x.length;q=x[0];q=!k&&q in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var D=0;D<x.length-1;D++){var E=x[D];if(!(E in q))return;q=q[E]}x=x[x.length-1];h=$jscomp.IS_SYMBOL_NATIVE&&"es6"===h?q[x]:null;n=n(h);null!=n&&(k?$jscomp.defineProperty($jscomp.polyfills,x,{configurable:!0,writable:!0,value:n}):n!==h&&($jscomp.propertyToPolyfillSymbol[x]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(x):$jscomp.POLYFILL_PREFIX+x,x=
$jscomp.propertyToPolyfillSymbol[x],$jscomp.defineProperty(q,x,{configurable:!0,writable:!0,value:n})))};$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(k){if(k)return k;var n=function(x,D){this.$jscomp$symbol$id_=x;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:D})};n.prototype.toString=function(){return this.$jscomp$symbol$id_};var h=0,q=function(x){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new n("jscomp_symbol_"+(x||"")+"_"+h++,x)};return q},"es6","es3");$jscomp.initSymbolIterator=function(){};
$jscomp.polyfill("Symbol.iterator",function(k){if(k)return k;k=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),h=0;h<n.length;h++){var q=$jscomp.global[n[h]];"function"===typeof q&&"function"!=typeof q.prototype[k]&&$jscomp.defineProperty(q.prototype,k,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return k},"es6",
"es3");$jscomp.initSymbolAsyncIterator=function(){};$jscomp.iteratorPrototype=function(k){k={next:k};k[Symbol.iterator]=function(){return this};return k};$jscomp.createTemplateTagFirstArg=function(k){return k.raw=k};$jscomp.createTemplateTagFirstArgWithRaw=function(k,n){k.raw=n;return k};$jscomp.underscoreProtoCanBeSet=function(){var k={a:!0},n={};try{return n.__proto__=k,n.a}catch(h){}return!1};
$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(k,n){k.__proto__=n;if(k.__proto__!==n)throw new TypeError(k+" is not extensible");return k}:null;$jscomp.makeIterator=function(k){var n="undefined"!=typeof Symbol&&Symbol.iterator&&k[Symbol.iterator];return n?n.call(k):$jscomp.arrayIterator(k)};$jscomp.generator={};
$jscomp.generator.ensureIteratorResultIsObject_=function(k){if(!(k instanceof Object))throw new TypeError("Iterator result "+k+" is not an object");};$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};
$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(k){this.yieldResult=k};
$jscomp.generator.Context.prototype.throw_=function(k){this.abruptCompletion_={exception:k,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(k){this.abruptCompletion_={return:k};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(k){this.abruptCompletion_={jumpTo:k};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(k,n){this.nextAddress=n;return{value:k}};
$jscomp.generator.Context.prototype.yieldAll=function(k,n){k=$jscomp.makeIterator(k);var h=k.next();$jscomp.generator.ensureIteratorResultIsObject_(h);if(h.done)this.yieldResult=h.value,this.nextAddress=n;else return this.yieldAllIterator_=k,this.yield(h.value,n)};$jscomp.generator.Context.prototype.jumpTo=function(k){this.nextAddress=k};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};
$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(k,n){this.catchAddress_=k;void 0!=n&&(this.finallyAddress_=n)};$jscomp.generator.Context.prototype.setFinallyBlock=function(k){this.catchAddress_=0;this.finallyAddress_=k||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(k,n){this.nextAddress=k;this.catchAddress_=n||0};
$jscomp.generator.Context.prototype.enterCatchBlock=function(k){this.catchAddress_=k||0;k=this.abruptCompletion_.exception;this.abruptCompletion_=null;return k};$jscomp.generator.Context.prototype.enterFinallyBlock=function(k,n,h){h?this.finallyContexts_[h]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=k||0;this.finallyAddress_=n||0};
$jscomp.generator.Context.prototype.leaveFinallyBlock=function(k,n){n=this.finallyContexts_.splice(n||0)[0];if(n=this.abruptCompletion_=this.abruptCompletion_||n){if(n.isException)return this.jumpToErrorHandler_();void 0!=n.jumpTo&&this.finallyAddress_<n.jumpTo?(this.nextAddress=n.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=k};$jscomp.generator.Context.prototype.forIn=function(k){return new $jscomp.generator.Context.PropertyIterator(k)};
$jscomp.generator.Context.PropertyIterator=function(k){this.object_=k;this.properties_=[];for(var n in k)this.properties_.push(n);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var k=this.properties_.pop();if(k in this.object_)return k}return null};$jscomp.generator.Engine_=function(k){this.context_=new $jscomp.generator.Context;this.program_=k};
$jscomp.generator.Engine_.prototype.next_=function(k){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,k,this.context_.next_);this.context_.next_(k);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.return_=function(k){this.context_.start_();var n=this.context_.yieldAllIterator_;if(n)return this.yieldAllStep_("return"in n?n["return"]:function(h){return{value:h,done:!0}},k,this.context_.return);this.context_.return(k);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.throw_=function(k){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],k,this.context_.next_);this.context_.throw_(k);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.yieldAllStep_=function(k,n,h){try{var q=k.call(this.context_.yieldAllIterator_,n);$jscomp.generator.ensureIteratorResultIsObject_(q);if(!q.done)return this.context_.stop_(),q;var x=q.value}catch(D){return this.context_.yieldAllIterator_=null,this.context_.throw_(D),this.nextStep_()}this.context_.yieldAllIterator_=null;h.call(this.context_,x);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var k=this.program_(this.context_);if(k)return this.context_.stop_(),{value:k.value,done:!1}}catch(n){this.context_.yieldResult=void 0,this.context_.throw_(n)}this.context_.stop_();if(this.context_.abruptCompletion_){k=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(k.isException)throw k.exception;return{value:k.return,done:!0}}return{value:void 0,done:!0}};
$jscomp.generator.Generator_=function(k){this.next=function(n){return k.next_(n)};this.throw=function(n){return k.throw_(n)};this.return=function(n){return k.return_(n)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(k,n){n=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(n));$jscomp.setPrototypeOf&&k.prototype&&$jscomp.setPrototypeOf(n,k.prototype);return n};$jscomp.FORCE_POLYFILL_PROMISE=!1;
$jscomp.polyfill("Promise",function(k){function n(){this.batch_=null}function h(E){return E instanceof x?E:new x(function(c,G){c(E)})}if(k&&!$jscomp.FORCE_POLYFILL_PROMISE)return k;n.prototype.asyncExecute=function(E){if(null==this.batch_){this.batch_=[];var c=this;this.asyncExecuteFunction(function(){c.executeBatch_()})}this.batch_.push(E)};var q=$jscomp.global.setTimeout;n.prototype.asyncExecuteFunction=function(E){q(E,0)};n.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var E=
this.batch_;this.batch_=[];for(var c=0;c<E.length;++c){var G=E[c];E[c]=null;try{G()}catch(I){this.asyncThrow_(I)}}}this.batch_=null};n.prototype.asyncThrow_=function(E){this.asyncExecuteFunction(function(){throw E;})};var x=function(E){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var c=this.createResolveAndReject_();try{E(c.resolve,c.reject)}catch(G){c.reject(G)}};x.prototype.createResolveAndReject_=function(){function E(I){return function(y){G||(G=!0,I.call(c,y))}}var c=this,G=!1;
return{resolve:E(this.resolveTo_),reject:E(this.reject_)}};x.prototype.resolveTo_=function(E){if(E===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(E instanceof x)this.settleSameAsPromise_(E);else{a:switch(typeof E){case "object":var c=null!=E;break a;case "function":c=!0;break a;default:c=!1}c?this.resolveToNonPromiseObj_(E):this.fulfill_(E)}};x.prototype.resolveToNonPromiseObj_=function(E){var c=void 0;try{c=E.then}catch(G){this.reject_(G);return}"function"==typeof c?
this.settleSameAsThenable_(c,E):this.fulfill_(E)};x.prototype.reject_=function(E){this.settle_(2,E)};x.prototype.fulfill_=function(E){this.settle_(1,E)};x.prototype.settle_=function(E,c){if(0!=this.state_)throw Error("Cannot settle("+E+", "+c+"): Promise already settled in state"+this.state_);this.state_=E;this.result_=c;this.executeOnSettledCallbacks_()};x.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var E=0;E<this.onSettledCallbacks_.length;++E)D.asyncExecute(this.onSettledCallbacks_[E]);
this.onSettledCallbacks_=null}};var D=new n;x.prototype.settleSameAsPromise_=function(E){var c=this.createResolveAndReject_();E.callWhenSettled_(c.resolve,c.reject)};x.prototype.settleSameAsThenable_=function(E,c){var G=this.createResolveAndReject_();try{E.call(c,G.resolve,G.reject)}catch(I){G.reject(I)}};x.prototype.then=function(E,c){function G(e,p){return"function"==typeof e?function(l){try{I(e(l))}catch(u){y(u)}}:p}var I,y,b=new x(function(e,p){I=e;y=p});this.callWhenSettled_(G(E,I),G(c,y));return b};
x.prototype.catch=function(E){return this.then(void 0,E)};x.prototype.callWhenSettled_=function(E,c){function G(){switch(I.state_){case 1:E(I.result_);break;case 2:c(I.result_);break;default:throw Error("Unexpected state: "+I.state_);}}var I=this;null==this.onSettledCallbacks_?D.asyncExecute(G):this.onSettledCallbacks_.push(G)};x.resolve=h;x.reject=function(E){return new x(function(c,G){G(E)})};x.race=function(E){return new x(function(c,G){for(var I=$jscomp.makeIterator(E),y=I.next();!y.done;y=I.next())h(y.value).callWhenSettled_(c,
G)})};x.all=function(E){var c=$jscomp.makeIterator(E),G=c.next();return G.done?h([]):new x(function(I,y){function b(l){return function(u){e[l]=u;p--;0==p&&I(e)}}var e=[],p=0;do e.push(void 0),p++,h(G.value).callWhenSettled_(b(e.length-1),y),G=c.next();while(!G.done)})};return x},"es6","es3");$jscomp.findInternal=function(k,n,h){k instanceof String&&(k=String(k));for(var q=k.length,x=0;x<q;x++){var D=k[x];if(n.call(h,D,x,k))return{i:x,v:D}}return{i:-1,v:void 0}};
$jscomp.polyfill("Array.prototype.find",function(k){return k?k:function(n,h){return $jscomp.findInternal(this,n,h).v}},"es6","es3");$jscomp.owns=function(k,n){return Object.prototype.hasOwnProperty.call(k,n)};$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(k,n){for(var h=1;h<arguments.length;h++){var q=arguments[h];if(q)for(var x in q)$jscomp.owns(q,x)&&(k[x]=q[x])}return k};
$jscomp.polyfill("Object.assign",function(k){return k||$jscomp.assign},"es6","es3");$jscomp.iteratorFromArray=function(k,n){k instanceof String&&(k+="");var h=0,q={next:function(){if(h<k.length){var x=h++;return{value:n(x,k[x]),done:!1}}q.next=function(){return{done:!0,value:void 0}};return q.next()}};q[Symbol.iterator]=function(){return q};return q};$jscomp.polyfill("Array.prototype.keys",function(k){return k?k:function(){return $jscomp.iteratorFromArray(this,function(n){return n})}},"es6","es3");
$jscomp.polyfill("Array.prototype.fill",function(k){return k?k:function(n,h,q){var x=this.length||0;0>h&&(h=Math.max(0,x+h));if(null==q||q>x)q=x;q=Number(q);0>q&&(q=Math.max(0,x+q));for(h=Number(h||0);h<q;h++)this[h]=n;return this}},"es6","es3");$jscomp.typedArrayFill=function(k){return k?k:Array.prototype.fill};$jscomp.polyfill("Int8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
$jscomp.polyfill("Uint8ClampedArray.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
$jscomp.polyfill("Float64Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
(function(){var k=k||{};k.scope={};k.ASSUME_ES5=!1;k.ASSUME_NO_NATIVE_MAP=!1;k.ASSUME_NO_NATIVE_SET=!1;k.SIMPLE_FROUND_POLYFILL=!1;k.ISOLATE_POLYFILLS=!1;k.defineProperty=k.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(n,h,q){if(n==Array.prototype||n==Object.prototype)return n;n[h]=q.value;return n};k.getGlobal=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];
for(var h=0;h<n.length;++h){var q=n[h];if(q&&q.Math==Math)return q}throw Error("Cannot find global object");};k.global=k.getGlobal(this);k.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");k.TRUST_ES6_POLYFILLS=!k.ISOLATE_POLYFILLS||k.IS_SYMBOL_NATIVE;k.polyfills={};k.propertyToPolyfillSymbol={};k.POLYFILL_PREFIX="$jscp$";k.polyfill=function(n,h,q,x){h&&(k.ISOLATE_POLYFILLS?k.polyfillIsolated(n,h,q,x):k.polyfillUnisolated(n,h,q,x))};k.polyfillUnisolated=function(n,h,q,x){q=
k.global;n=n.split(".");for(x=0;x<n.length-1;x++){var D=n[x];if(!(D in q))return;q=q[D]}n=n[n.length-1];x=q[n];h=h(x);h!=x&&null!=h&&k.defineProperty(q,n,{configurable:!0,writable:!0,value:h})};k.polyfillIsolated=function(n,h,q,x){var D=n.split(".");n=1===D.length;x=D[0];x=!n&&x in k.polyfills?k.polyfills:k.global;for(var E=0;E<D.length-1;E++){var c=D[E];if(!(c in x))return;x=x[c]}D=D[D.length-1];q=k.IS_SYMBOL_NATIVE&&"es6"===q?x[D]:null;h=h(q);null!=h&&(n?k.defineProperty(k.polyfills,D,{configurable:!0,
writable:!0,value:h}):h!==q&&(k.propertyToPolyfillSymbol[D]=k.IS_SYMBOL_NATIVE?k.global.Symbol(D):k.POLYFILL_PREFIX+D,D=k.propertyToPolyfillSymbol[D],k.defineProperty(x,D,{configurable:!0,writable:!0,value:h})))};k.underscoreProtoCanBeSet=function(){var n={a:!0},h={};try{return h.__proto__=n,h.a}catch(q){}return!1};k.setPrototypeOf=k.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:k.underscoreProtoCanBeSet()?function(n,h){n.__proto__=h;if(n.__proto__!==h)throw new TypeError(n+
" is not extensible");return n}:null;k.arrayIteratorImpl=function(n){var h=0;return function(){return h<n.length?{done:!1,value:n[h++]}:{done:!0}}};k.arrayIterator=function(n){return{next:k.arrayIteratorImpl(n)}};k.makeIterator=function(n){var h="undefined"!=typeof Symbol&&Symbol.iterator&&n[Symbol.iterator];return h?h.call(n):k.arrayIterator(n)};k.generator={};k.generator.ensureIteratorResultIsObject_=function(n){if(!(n instanceof Object))throw new TypeError("Iterator result "+n+" is not an object");
};k.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};k.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};k.generator.Context.prototype.stop_=function(){this.isRunning_=!1};k.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||
this.finallyAddress_};k.generator.Context.prototype.next_=function(n){this.yieldResult=n};k.generator.Context.prototype.throw_=function(n){this.abruptCompletion_={exception:n,isException:!0};this.jumpToErrorHandler_()};k.generator.Context.prototype.return=function(n){this.abruptCompletion_={return:n};this.nextAddress=this.finallyAddress_};k.generator.Context.prototype.jumpThroughFinallyBlocks=function(n){this.abruptCompletion_={jumpTo:n};this.nextAddress=this.finallyAddress_};k.generator.Context.prototype.yield=
function(n,h){this.nextAddress=h;return{value:n}};k.generator.Context.prototype.yieldAll=function(n,h){n=k.makeIterator(n);var q=n.next();k.generator.ensureIteratorResultIsObject_(q);if(q.done)this.yieldResult=q.value,this.nextAddress=h;else return this.yieldAllIterator_=n,this.yield(q.value,h)};k.generator.Context.prototype.jumpTo=function(n){this.nextAddress=n};k.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};k.generator.Context.prototype.setCatchFinallyBlocks=function(n,h){this.catchAddress_=
n;void 0!=h&&(this.finallyAddress_=h)};k.generator.Context.prototype.setFinallyBlock=function(n){this.catchAddress_=0;this.finallyAddress_=n||0};k.generator.Context.prototype.leaveTryBlock=function(n,h){this.nextAddress=n;this.catchAddress_=h||0};k.generator.Context.prototype.enterCatchBlock=function(n){this.catchAddress_=n||0;n=this.abruptCompletion_.exception;this.abruptCompletion_=null;return n};k.generator.Context.prototype.enterFinallyBlock=function(n,h,q){q?this.finallyContexts_[q]=this.abruptCompletion_:
this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=n||0;this.finallyAddress_=h||0};k.generator.Context.prototype.leaveFinallyBlock=function(n,h){h=this.finallyContexts_.splice(h||0)[0];if(h=this.abruptCompletion_=this.abruptCompletion_||h){if(h.isException)return this.jumpToErrorHandler_();void 0!=h.jumpTo&&this.finallyAddress_<h.jumpTo?(this.nextAddress=h.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=n};k.generator.Context.prototype.forIn=
function(n){return new k.generator.Context.PropertyIterator(n)};k.generator.Context.PropertyIterator=function(n){this.object_=n;this.properties_=[];for(var h in n)this.properties_.push(h);this.properties_.reverse()};k.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var n=this.properties_.pop();if(n in this.object_)return n}return null};k.generator.Engine_=function(n){this.context_=new k.generator.Context;this.program_=n};k.generator.Engine_.prototype.next_=
function(n){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,n,this.context_.next_);this.context_.next_(n);return this.nextStep_()};k.generator.Engine_.prototype.return_=function(n){this.context_.start_();var h=this.context_.yieldAllIterator_;if(h)return this.yieldAllStep_("return"in h?h["return"]:function(q){return{value:q,done:!0}},n,this.context_.return);this.context_.return(n);return this.nextStep_()};k.generator.Engine_.prototype.throw_=
function(n){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],n,this.context_.next_);this.context_.throw_(n);return this.nextStep_()};k.generator.Engine_.prototype.yieldAllStep_=function(n,h,q){try{var x=n.call(this.context_.yieldAllIterator_,h);k.generator.ensureIteratorResultIsObject_(x);if(!x.done)return this.context_.stop_(),x;var D=x.value}catch(E){return this.context_.yieldAllIterator_=null,this.context_.throw_(E),this.nextStep_()}this.context_.yieldAllIterator_=
null;q.call(this.context_,D);return this.nextStep_()};k.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var n=this.program_(this.context_);if(n)return this.context_.stop_(),{value:n.value,done:!1}}catch(h){this.context_.yieldResult=void 0,this.context_.throw_(h)}this.context_.stop_();if(this.context_.abruptCompletion_){n=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(n.isException)throw n.exception;return{value:n.return,done:!0}}return{value:void 0,
done:!0}};k.generator.Generator_=function(n){this.next=function(h){return n.next_(h)};this.throw=function(h){return n.throw_(h)};this.return=function(h){return n.return_(h)};this[Symbol.iterator]=function(){return this}};k.generator.createGenerator=function(n,h){h=new k.generator.Generator_(new k.generator.Engine_(h));k.setPrototypeOf&&n.prototype&&k.setPrototypeOf(h,n.prototype);return h};k.asyncExecutePromiseGenerator=function(n){function h(x){return n.next(x)}function q(x){return n.throw(x)}return new Promise(function(x,
D){function E(c){c.done?x(c.value):Promise.resolve(c.value).then(h,q).then(E,D)}E(n.next())})};k.asyncExecutePromiseGeneratorFunction=function(n){return k.asyncExecutePromiseGenerator(n())};k.asyncExecutePromiseGeneratorProgram=function(n){return k.asyncExecutePromiseGenerator(new k.generator.Generator_(new k.generator.Engine_(n)))};(function(n){function h(x){if(q[x])return q[x].exports;var D=q[x]={i:x,l:!1,exports:{}};n[x].call(D.exports,D,D.exports,h);D.l=!0;return D.exports}var q={};h.m=n;h.c=
q;h.d=function(x,D,E){h.o(x,D)||Object.defineProperty(x,D,{enumerable:!0,get:E})};h.r=function(x){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(x,Symbol.toStringTag,{value:"Module"});Object.defineProperty(x,"__esModule",{value:!0})};h.t=function(x,D){D&1&&(x=h(x));if(D&8||D&4&&"object"===typeof x&&x&&x.__esModule)return x;var E=Object.create(null);h.r(E);Object.defineProperty(E,"default",{enumerable:!0,value:x});if(D&2&&"string"!=typeof x)for(var c in x)h.d(E,c,function(G){return x[G]}.bind(null,
c));return E};h.n=function(x){var D=x&&x.__esModule?function(){return x["default"]}:function(){return x};h.d(D,"a",D);return D};h.o=function(x,D){return Object.prototype.hasOwnProperty.call(x,D)};h.p="";return h(h.s=5)})([function(n,h,q){function x(b){return b?(b=b.replace(/[^A-Za-z0-9\-]/g,""),b.replace(/\./g,"")):""}function D(b,e,p){e=encodeURIComponent(e);p=encodeURIComponent(p);b||(b="");var l=e+"="+p;b=b.replace(new RegExp("(&|\\?)"+e+"=[^&]*"),"$1"+l);-1<b.indexOf(e+"=")||(b=-1<b.indexOf("?")?
b+("&"+l):b+("?"+l));"NaN"==p&&(b=b.replace(new RegExp("[?|&]"+e+"="+p),""),-1==b.indexOf("?")&&-1<b.indexOf("&")&&(b=b.replace("&","?")));return b}function E(){return-1!=navigator.platform.indexOf("iPhone")||-1!=navigator.platform.indexOf("iPod")||-1!=navigator.platform.indexOf("iPad")}function c(){return-1<navigator.userAgent.toLowerCase().indexOf("android")}function G(b){var e=jQuery,p=e.extend({},y());if(dzsap_currplayer_focused&&dzsap_currplayer_focused.api_pause_media){var l=!1;-1<p.pause_play.indexOf("ctrl+")?
b.ctrlKey&&(p.pause_play=p.pause_play.replace("ctrl+",""),b.keyCode==p.pause_play&&(l=!0)):b.keyCode==p.pause_play&&(l=!0);if(l&&0==e(dzsap_currplayer_focused).hasClass("comments-writer-active")&&(e(dzsap_currplayer_focused).hasClass("is-playing")?dzsap_currplayer_focused.api_pause_media():dzsap_currplayer_focused.api_play_media(),window.dzsap_mouseover))return b.preventDefault(),!1;l=!1;-1<p.step_back.indexOf("ctrl+")?b.ctrlKey&&(p.step_back=p.step_back.replace("ctrl+",""),b.keyCode==p.step_back&&
(l=!0)):b.keyCode==p.step_back&&(l=!0);l&&dzsap_currplayer_focused.api_step_back(p.step_back_amount);l=!1;-1<p.step_forward.indexOf("ctrl+")?b.ctrlKey&&(p.step_forward=p.step_forward.replace("ctrl+",""),b.keyCode==p.step_forward&&(l=!0)):b.keyCode==p.step_forward&&(l=!0);l&&dzsap_currplayer_focused.api_step_forward(p.step_back_amount);l=!1;b.keyCode==p.sync_players_goto_next&&(l=!0);l&&dzsap_currplayer_focused&&dzsap_currplayer_focused.api_sync_players_goto_next&&dzsap_currplayer_focused.api_sync_players_goto_next();
l=!1;b.keyCode==p.sync_players_goto_prev&&(l=!0);l&&dzsap_currplayer_focused&&dzsap_currplayer_focused.api_sync_players_goto_prev&&dzsap_currplayer_focused.api_sync_players_goto_prev()}}var I=q(3),y=function(){var b={play_trigger_step_back:"off",step_back_amount:"5",step_back:"37",step_forward:"39",sync_players_goto_next:"",sync_players_goto_prev:"",pause_play:"32",show_tooltips:"off"};window.dzsap_keyboard_controls&&(b=jQuery.extend(b,window.dzsap_keyboard_controls));b.step_back_amount=Number(b.step_back_amount);
return b};h.is_ie=function(){return!!window.MSInputMethodContext&&!!document.documentMode};h.youtube_playMedia=function(b,e,p,l){try{b.$mediaNode_&&b.$mediaNode_.playVideo?b.$mediaNode_.playVideo():5>e.retry_call&&(e.retry_call++,e.call_from="retry for youtube",0==p?(b.playerIsLoaded=!1,b.youtube_checkReady(l),b.youtube_retryPlayTimeout=setTimeout(function(u){b.play_media(u)},500,e)):b.youtube_retryPlayTimeout=setTimeout(function(u){b.play_media(u)},500,e))}catch(u){console.log(u)}};h.assignHelperFunctionsToJquery=
function(b){b.fn.prependOnce=function(e,p){var l=b(this);if("undefined"==typeof p){var u=/class="(.*?)"/.exec(e);"undefined"!=typeof u[1]&&(p="."+u[1])}return 1>l.children(p).length?(l.prepend(e),!0):!1};b.fn.appendOnce=function(e,p){var l=b(this);if("undefined"==typeof p){var u=/class="(.*?)"/.exec(e);"undefined"!=typeof u[1]&&(p="."+u[1])}return 1>l.children(p).length?(l.append(e),!0):!1}};h.registerTextWidth=function(b){b.fn.textWidth=function(){var e=jQuery(this),p=e.html();"INPUT"==e[0].nodeName&&
(p=e.val());p='<span class="forcalc">'+p+"</span>";jQuery("body").append(p);p=jQuery("span.forcalc").last();p.css({"font-size":e.css("font-size"),"font-family":e.css("font-family")});e=p.width();p.remove();return e}};h.player_checkIfWeShouldShowAComment=function(b,e,p){var l=jQuery,u=Math.round(e/p*100)/100;"fake"==b.audioType&&(u=Math.round(b.timeCurrent/b.timeTotal*100)/100);b._commentsHolder&&b._commentsHolder.children().each(function(){var g=l(this);if(g.hasClass("dzstooltip-con")){var A=g.offset().left-
b._commentsHolder.offset().left;if(A=Math.round(parseFloat(A)/b._commentsHolder.outerWidth()*100)/100).02>Math.abs(A-u)?(b._commentsHolder.find(".dzstooltip").removeClass("active"),g.find(".dzstooltip").addClass("active")):g.find(".dzstooltip").removeClass("active")}})};h.sanitizeObjectForChangeMediaArgs=function(b){var e={};if(b.data("original-settings"))return b.data("original-settings");e.source=null;b.attr("data-source")?e.source=b.attr("data-source"):b.attr("href")&&(e.source=b.attr("href"));
b.attr("data-pcm")&&(e.pcm=b.attr("data-pcm"));var p="thumb";b.attr("data-"+p)&&(e[p]=b.attr("data-"+p));p="playerid";b.attr("data-"+p)&&(e[p]=b.attr("data-"+p));p="type";b.attr("data-"+p)&&(e[p]=b.attr("data-"+p));b.attr("data-thumb_link")&&(e.thumb_link=b.attr("data-thumb_link"));if(0<b.find(".meta-artist").length||0<b.find(".meta-artist-con").length)e.artist=b.find(".the-artist").eq(0).html(),e.song_name=b.find(".the-name").eq(0).html();b.attr("data-thumb_for_parent")&&(e.thumb=b.attr("data-thumb_for_parent"));
if(0<b.find(".feed-song-name").length||0<b.find(".feed-artist-name").length)e.artist=b.find(".feed-artist-name").eq(0).html(),e.song_name=b.find(".feed-song-name").eq(0).html();b.attr("data-soft-watermark")&&(e.watermark=b.attr("data-soft-watermark"));b.attr("data-watermark-volume")&&(e.watermark_volume=b.attr("data-watermark-volume"));return e};h.dzsapInitjQueryRegisters=function(){window.dzsap_generate_list_for_sync_players=function(b){var e={force_regenerate:!1};b&&(e=$.extend(e,b));window.dzsap_syncList_players=
[];"undefined"!=typeof settings&&("undefined"!=typeof settings.construct_player_list_for_sync&&"on"==settings.construct_player_list_for_sync||e.force_regenerate)&&jQuery(".audioplayer,.audioplayer-tobe").each(function(){var p=jQuery(this);"on"!=p.attr("data-do-not-include-in-list")&&("fake"!=p.attr("data-type")||p.attr("data-fakeplayer"))&&window.dzsap_syncList_players.push(p)})};jQuery(document).off("click.dzsap_global");jQuery(document).on("click.dzsap_global",".dzsap-btn-info",function(){var b=
jQuery(this);b.hasClass("dzsap-btn-info")&&b.find(".dzstooltip").toggleClass("active")});jQuery(document).on("mouseover.dzsap_global",".dzsap-btn-info",function(){var b=jQuery(this);b.hasClass("dzsap-btn-info")&&(500>window.innerWidth?b.offset().left<window.innerWidth/2&&b.find(".dzstooltip").removeClass("talign-end").addClass("talign-start"):b.find(".dzstooltip").addClass("talign-end").removeClass("talign-start"))})};h.radio_setUpdateSongName=function(b,e){!1===e&&b._metaArtistCon.find(".the-name").length&&
0<b._metaArtistCon.find(".the-name").eq(0).text().length?(e=!1,-1<b._metaArtistCon.find(".the-name").eq(0).html().indexOf("&nbsp;&nbsp;")&&(e=!0)):e=!0;return e};h.radio_setUpdateArtistName=function(b,e){!1===e&&b._metaArtistCon.find(".the-name").length&&0<b._metaArtistCon.find(".the-artist").eq(0).text().length?(e=!1,-1<b._metaArtistCon.find(".the-name").eq(0).html().indexOf("&nbsp;&nbsp;")&&(e=!0)):e=!0;return e};h.miscFunctions=function(){window.dzsap_send_total_time=function(b,e){b={action:"dzsap_send_total_time_for_track",
id_track:e.attr("data-playerid"),postdata:parseInt(b,10)};jQuery.post(window.dzsap_ajaxurl,b,function(p){})};window.dzs_open_social_link=function(b,e){var p=window.screen.width/2-260,l=window.screen.height/2-300;p="status=no,height=500,width=500,resizable=yes,left="+p+",top="+l+",screenX="+p+",screenY="+l+",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no";console.log("dzs_open_social_link()",b,"argthis - ",e);b=b.replace("{{replacewithcurrurl}}",encodeURIComponent(window.location.href));
e&&(b=b.replace(/{{replacewithdataurl}}/g,e.attr("data-url")));l=window.location.href.split("?");var u="",g="";!e&&window.dzsap_currplayer_from_share&&(e=window.dzsap_currplayer_from_share);if(e){var A=jQuery;A(e).hasClass("audioplayer")?(u=A(e).parent().children().index(e),g=A(e).parent().parent().parent().attr("id")):(jQuery(e).parent().parent().attr("data-menu-index")&&(u=jQuery(e).parent().parent().attr("data-menu-index")),jQuery(e).parent().parent().attr("data-gallery-id")&&(g=jQuery(e).parent().parent().attr("data-gallery-id")))}e=
encodeURIComponent(l[0]+"?fromsharer=on&audiogallery_startitem_"+g+"="+u);b=b.replace("{{shareurl}}",e);console.log("shareurl -> ",e);window.open(b,"sharer",p)};window.dzsap_wp_send_contor_60_secs=function(b,e){b={video_title:e,video_analytics_id:b.attr("data-playerid"),curr_user:window.dzsap_curr_user};e="index.php?action=ajax_dzsap_submit_contor_60_secs";window.dzsap_settings.dzsap_site_url&&(e=dzsap_settings.dzsap_site_url+e);jQuery.ajax({type:"POST",url:e,data:b,success:function(p){},error:function(p){}})};
window.dzsap_init_multisharer=function(){var b=jQuery;setTimeout(function(){if(!window.dzsap_multisharer_assets_loaded&&1!=window.dzsap_multisharer_assets_loaded&&1!=window.loading_multi_sharer){window.loading_multi_sharer=!0;var e=document.getElementsByTagName("head")[0],p=document.createElement("link");window.dzsap_settings&&window.dzsap_settings.dzsap_site_url&&(p.id="dzsap-load-multi-sharer",p.rel="stylesheet",p.type="text/css",p.href=D(window.dzsap_settings.dzsap_site_url,"load-lightbox-css",
"on"),p.media="all",e.appendChild(p));setTimeout(function(){null==window.dzsap_box_main_con&&(b("body").append('<div class="dzsap-main-con skin-default gallery-skin-default transition-slideup "> <div class="overlay-background"></div> <div class="box-mains-con"> <div class="box-main box-main-for-share" style=""> <div class="box-main-media-con transition-target"> <div class="close-btn-con"> '+I.svg_close_btn+'</div> <div class="box-main-media type-inlinecontent" style="width: 530px; height: 280px;"><div class=" real-media" style=""><div class="hidden-content share-content" > <div class="social-networks-con"></div> <div class="share-link-con"></div> <div class="embed-link-con"></div> </div> </div> </div> <div class="box-main-under"></div> </div> </div> </div>\x3c!-- end .box-mains-con--\x3e </div>'),
window.dzsap_box_main_con=b(".dzsap-main-con").eq(0))},1E3)}b(document).on("click.dzsap_global_sharer",".dzsap-main-con .close-btn-con,.dzsap-main-con .overlay-background",function(){b(".dzsap-main-con").eq(0).removeClass("loading-item loaded-item")})},2E3)};window.dzsap_submit_like=function(b,e){b={action:"dzsap_submit_like",playerid:b};var p=null;e&&(p=jQuery(e.currentTarget));window.dzsap_settings&&window.dzsap_settings.ajax_url&&jQuery.ajax({type:"POST",url:window.dzsap_settings.ajax_url,data:b,
success:function(l){"undefined"!=typeof window.console&&console.log("Got this from the server: "+l);p&&(l=p.html(),p.html(l.replace("fa-heart-o","fa-heart")))},error:function(l){}})};window.dzsap_retract_like=function(b,e){b={action:"dzsap_retract_like",playerid:b};var p=null;e&&(p=jQuery(e.currentTarget));window.dzsap_settings&&window.dzsap_settings.ajax_url&&jQuery.ajax({type:"POST",url:window.dzsap_settings.ajax_url,data:b,success:function(l){"undefined"!=typeof window.console&&console.log("Got this from the server: "+
l);p&&(l=p.html(),p.html(l.replace("fa-heart","fa-heart-o")))},error:function(l){}})}};h.jQueryAuxBindings=function(b){function e(p){var l={call_from:"default",lightbox_open:"share",overwrite_this:null};p&&(l=b.extend(l,p));var u=window.dzsap_box_main_con;p=b(this);l.overwrite_this&&(p=b(l.overwrite_this));if(p.data("cthis")){var g=p.data("cthis");console.log("found cthis in data")}g?window.dzsap_currplayer_from_share=g:(console.log("%c could not find this .. maybe we can find it in post_id","background-color: #da0000;",
b('.audioplayer[data-playerid="'+p.attr("data-post_id")+'"]')),p.attr("data-post_id")?(window.dzsap_currplayer_from_share=b('.audioplayer[data-playerid="'+p.attr("data-post_id")+'"]').eq(0),p.data("cthis",window.dzsap_currplayer_from_share)):p.parent().parent().parent().parent().parent().parent().hasClass("audioplayer")&&(window.dzsap_currplayer_from_share=p.parent().parent().parent().parent().parent().parent()));g="";window.dzsap_social_feed_for_social_networks&&(g=window.dzsap_social_feed_for_social_networks);
if(window.dzsap_box_main_con){console.log("window.dzsap_box_main_con - ",window.dzsap_box_main_con);window.dzsap_box_main_con.find(".social-networks-con").html(g);g="";window.dzsap_social_feed_for_share_link&&(g=window.dzsap_social_feed_for_share_link);if(g){var A=window.location.href;p.attr("data-post-url")&&(A=p.attr("data-post-url"));g=g.replace("{{replacewithcurrurl}}",A);g=g.replace("{{replacewithdataurl}}",A);window.dzsap_box_main_con.find(".share-link-con").html(g)}p="";window.dzsap_social_feed_for_embed_link&&
(p=window.dzsap_social_feed_for_embed_link);window.dzsap_currplayer_from_share&&dzsap_currplayer_from_share.data("embed_code")&&(console.log("o.embed_code - ",dzsap_currplayer_from_share.data("embed_code")),p&&(g=dzsap_currplayer_from_share.data("embed_code"),-1==g.indexOf("&lt;")&&(g=htmlEntities(g)),p=p.replace("{{replacewithembedcode}}",g),u.find(".embed-link-con").html(p)));b(document).on("click.dzsap",".field-for-view",function(){console.log("select all test ",this);selectText(this)});u.addClass("loading-box-main-"+
l.lightbox_open);setTimeout(function(){u.addClass("loading-item")},100);setTimeout(function(){u.addClass("loaded-item")},200)}else console.log("warning missing box-main")}b(document).on("click.dzsap_metas",".audioplayer-song-changer, .dzsap-wishlist-but",function(){var p=b(this);if(p.hasClass("audioplayer-song-changer")){var l=b(p.attr("data-fakeplayer")).eq(0);l&&l.get(0)&&l.get(0).api_change_media&&l.get(0).api_change_media(p,{feeder_type:"button",call_from:"changed audioplayer-song-changer"});
return!1}if(p.hasClass("dzsap-wishlist-but"))return l={action:"dzsap_add_to_wishlist",playerid:p.attr("data-post_id"),wishlist_action:"add"},p.find(".svg-icon").hasClass("fa-star")&&(l.wishlist_action="remove"),window.dzsap_lasto.settings_php_handler&&b.ajax({type:"POST",url:window.dzsap_lasto.settings_php_handler,data:l,success:function(u){p.find(".svg-icon").hasClass("fa-star-o")?p.find(".svg-icon").eq(0).attr("class","svg-icon fa fa-star"):p.find(".svg-icon").eq(0).attr("class","svg-icon fa fa-star-o")},
error:function(u){}}),!1});b(document).on("click.dzsiconhide",".sticktobottom-close-con,.sticktobottom-close-con .svg-icon",function(){var p=b(this);b(".dzsap-sticktobottom .audioplayer").get(0).api_pause_media();console.log("_t sticktobottom-close-con -7",p);var l=null;p.parent().hasClass("dzsap-sticktobottom")&&(l=p.parent());p.parent().parent().hasClass("dzsap-sticktobottom")&&(l=p.parent().parent());p.parent().parent().parent().hasClass("dzsap-sticktobottom")&&(l=p.parent().parent().parent());
console.log("_con - ",l,l.hasClass("audioplayer-loaded"));l.hasClass("audioplayer-loaded")?l.removeClass("audioplayer-loaded"):l.addClass("audioplayer-loaded");l.addClass("audioplayer-was-loaded");return!1});b(document).on("click.dzsiconshow",".dzsap-sticktobottom .icon-show",function(){b(this);return!1});0<b(".dzsap-sticktobottom.dzsap-sticktobottom-for-skin-silver").length&&setInterval(function(){b(".dzsap-sticktobottom.dzsap-sticktobottom-for-skin-silver  .audioplayer").eq(0).hasClass("dzsap-loaded")&&
(b(".dzsap-sticktobottom-placeholder").eq(0).addClass("active"),0==b(".dzsap-sticktobottom").hasClass("audioplayer-was-loaded")&&b(".dzsap-sticktobottom.dzsap-sticktobottom-for-skin-silver").addClass("audioplayer-loaded"))},1E3);0<b(".dzsap-sticktobottom.dzsap-sticktobottom-for-skin-wave").length&&setInterval(function(){b(".dzsap-sticktobottom.dzsap-sticktobottom-for-skin-wave  .audioplayer").eq(0).hasClass("dzsap-loaded")&&(b(".dzsap-sticktobottom-placeholder").eq(0).addClass("active"),0==b(".dzsap-sticktobottom").hasClass("audioplayer-was-loaded")&&
b(".dzsap-sticktobottom.dzsap-sticktobottom-for-skin-wave").addClass("audioplayer-loaded"))},1E3);b(document).on("click.dzsap_multisharer",".dzsap-multisharer-but",function(p,l){p={call_from:"default"};l&&b.extend(p,l);console.log("click_open_embed_ultibox() this - ",this);e({call_from:"click_open_embed_ultibox",lightbox_open:"share",overwrite_this:this});return!1});b(document).on("keydown.dzsapkeyup keypress.dzsapkeyup",function(p){G(p)});b(document).on("keydown blur",".zoomsounds-search-field",
function(p){var l=b(p.currentTarget);setTimeout(function(){if(l){var u=b(".audiogallery").eq(0);l.attr("data-target")&&(u=b(l.attr("data-target")));u.get(0)&&u.get(0).api_filter&&u.get(0).api_filter("title",l.val())}},100)});b(document).on("click",".dzsap-like-but",function(p){var l=b(this),u=l.attr("data-post_id");u&&"0"!=u||l.parent().parent().parent().parent().parent().hasClass("audioplayer")&&(u=l.parent().parent().parent().parent().parent().attr("data-feed-playerid"));window.dzsap_submit_like(u,
p);l.removeClass("dzsap-like-but").addClass("dzsap-retract-like-but");return!1});b(document).on("click",".dzsap-retract-like-but",function(p){var l=b(this),u=l.attr("data-post_id");u&&"0"!=u||l.parent().parent().parent().parent().parent().hasClass("audioplayer")&&(u=l.parent().parent().parent().parent().parent().attr("data-feed-playerid"));window.dzsap_retract_like(u,p);l.addClass("dzsap-like-but").removeClass("dzsap-retract-like-but");return!1})};h.selectText=function(b){if(document.selection){var e=
document.body.createTextRange();e.moveToElementText(b);e.select()}else window.getSelection&&(e=document.createRange(),e.selectNode(b),window.getSelection().removeAllRanges(),window.getSelection().addRange(e))};h.ajax_submit_views=function(b,e,p,l,u,g,A,v){b={action:"dzsap_submit_views",postdata:1,playerid:e,currip:p};cthis.attr("data-playerid-for-views")&&(b.playerid=cthis.attr("data-playerid-for-views"));""==b.playerid&&(b.playerid=x(l));u.settings_php_handler&&g.ajax({type:"POST",url:u.settings_php_handler,
data:b,success:function(t){var w=cthis.find(".counter-hits .the-number").html();w=parseInt(w,10);2!=A&&w++;t&&decode_json(t)&&(w=decode_json(t).number);cthis.find(".counter-hits .the-number").html(w)},error:function(t){t=cthis.find(".counter-hits .the-number").html();t=parseInt(t,10);t++;cthis.find(".counter-hits .the-number").html(t)}})};h.player_determineActualPlayer=function(b,e){var p=jQuery,l=p(b.attr("data-fakeplayer"));0==l.length&&(l=p(String(b.attr("data-fakeplayer")).replace("#",".")),l.length&&
(e._actualPlayer=p(String(b.attr("data-fakeplayer")).replace("#",".")),b.attr("data-fakeplayer",String(b.attr("data-fakeplayer")).replace("#","."))));0==l.length?b.attr("data-fakeplayer",""):(b.addClass("player-is-feeding is-source-player-for-actual-player"),b.attr("data-type")&&(e._actualPlayer=p(b.attr("data-fakeplayer")).eq(0),e.actualDataTypeOfMedia=b.attr("data-type"),b.attr("data-original-type",e.actualDataTypeOfMedia)))};h.configureAudioPlayerOptionsInitial=function(b,e,p){0==isNaN(parseInt(e.design_thumbh,
10))&&(e.design_thumbh=parseInt(e.design_thumbh,10));""===e.skinwave_wave_mode&&(e.skinwave_wave_mode="canvas");""==e.skinwave_wave_mode_canvas_normalize&&(e.skinwave_wave_mode_canvas_normalize="on");if(""==e.skinwave_wave_mode_canvas_waves_number||isNaN(Number(e.skinwave_wave_mode_canvas_waves_number)))e.skinwave_wave_mode_canvas_waves_number=3;"on"==e.autoplay&&"on"==e.cue&&(e.preload_method="auto");b.addClass(e.extra_classes_player);""===e.design_skin&&(e.design_skin="skin-default");this.is_ios()&&
"on"==p.initOptions.skinwave_enableSpectrum&&(p.initOptions.skinwave_enableSpectrum="off");/ skin-/g.test(b.attr("class"))||b.addClass(e.design_skin);b.hasClass("skin-default")&&(e.design_skin="skin-default");b.hasClass("skin-wave")&&(e.design_skin="skin-wave");b.hasClass("skin-justthumbandbutton")&&(e.design_skin="skin-justthumbandbutton");b.hasClass("skin-pro")&&(e.design_skin="skin-pro");b.hasClass("skin-aria")&&(e.design_skin="skin-aria");b.hasClass("skin-silver")&&(e.design_skin="skin-silver");
b.hasClass("skin-redlights")&&(e.design_skin="skin-redlights");b.hasClass("skin-steel")&&(e.design_skin="skin-steel");b.hasClass("skin-customcontrols")&&(e.design_skin="skin-customcontrols");"skin-wave"===e.design_skin&&"auto"==e.scrubbar_type&&(e.scrubbar_type="wave");"auto"===e.scrubbar_type&&(e.scrubbar_type="bar");"wpdefault"===e.settings_php_handler&&(e.settings_php_handler=window.ajaxurl);"wpdefault"===e.action_received_time_total&&(e.action_received_time_total=window.dzsap_send_total_time);
"wpdefault"===e.action_video_contor_60secs&&(e.action_video_contor_60secs=window.action_video_contor_60secs);if(E()||c())e.autoplay="off",e.disable_volume="on","off"===e.cueMedia&&(e.cueMedia="on"),e.cueMedia="on";"on"==b.attr("data-viewsubmitted")&&(p.ajax_view_submitted="on");b.attr("data-userstarrating")&&(p.starrating_alreadyrated=Number(b.attr("data-userstarrating")));b.hasClass("skin-minimal")&&(e.design_skin="skin-minimal","default"==e.disable_volume&&(e.disable_volume="on"),"default"==e.disable_scrub&&
(e.disable_scrub="on"),e.disable_timer="on");b.hasClass("skin-minion")&&(e.design_skin="skin-minion","default"==e.disable_volume&&(e.disable_volume="on"),"default"==e.disable_scrub&&(e.disable_scrub="on"),e.disable_timer="on");e.design_color_bg&&(e.design_wave_color_bg=e.design_color_bg);e.design_color_highlight&&(e.design_wave_color_progress=e.design_color_highlight);"skin-justthumbandbutton"==e.design_skin&&("default"==e.design_thumbh&&(e.design_thumbh=""),e.disable_timer="on",e.disable_volume=
"on","default"==e.design_animateplaypause&&(e.design_animateplaypause="on"));"skin-redlights"==e.design_skin&&(e.disable_timer="on",e.disable_volume="off","default"==e.design_animateplaypause&&(e.design_animateplaypause="on"));"skin-steel"==e.design_skin&&("default"==e.disable_timer&&(e.disable_timer="off"),e.disable_volume="on","default"==e.design_animateplaypause&&(e.design_animateplaypause="on"),"default"==e.disable_scrub&&(e.disable_scrub="on"));"skin-customcontrols"==e.design_skin&&("default"==
e.disable_timer&&(e.disable_timer="on"),e.disable_volume="on","default"==e.design_animateplaypause&&(e.design_animateplaypause="on"),"default"==e.disable_scrub&&(e.disable_scrub="on"));"reflecto"==e.skinwave_wave_mode_canvas_mode&&(e.skinwave_wave_mode_canvas_reflection_size=.5);"reflecto"==e.skinwave_wave_mode_canvas_mode&&(e.skinwave_wave_mode_canvas_reflection_size=.5);""==e.embed_code&&0<b.find("div.feed-embed-code").length&&(e.embed_code=b.find("div.feed-embed-code").eq(0).html());"default"==
e.design_animateplaypause&&(e.design_animateplaypause="off");"on"==e.design_animateplaypause&&b.addClass("design-animateplaypause");window.dzsap_settings&&window.dzsap_settings.php_handler&&!e.settings_php_handler&&(e.settings_php_handler=window.dzsap_settings.php_handler);e.settings_php_handler&&(p.urlToAjaxHandler=e.settings_php_handler)};h.sanitize_from_point_time=function(b){b=String(b).replace("%3A",":");if((b=String(b).replace("#",""))&&-1<String(b).indexOf(":")){var e=/(\d.*):(\d.*)/g.exec(b);
b=parseInt(e[1],10);e=parseInt(e[2],10);return 60*b+e}return Number(b)};h.player_initSpectrumOnUserAction=function(b){function e(p){console.log("setting up audio context --",p);null==window.dzsap_audio_ctx?"undefined"!==typeof AudioContext?(b.spectrum_audioContext=new AudioContext,window.dzsap_audio_ctx=b.spectrum_audioContext):"undefined"!==typeof webkitAudioContext?(b.spectrum_audioContext=new webkitAudioContext,window.dzsap_audio_ctx=b.spectrum_audioContext):b.spectrum_audioContext=null:b.spectrum_audioContext=
window.dzsap_audio_ctx;b.spectrum_audioContext&&null===b.spectrum_analyser&&(b.spectrum_analyser=b.spectrum_audioContext.createAnalyser(),b.spectrum_analyser.smoothingTimeConstant=.3,b.spectrum_analyser.fftSize=512,"selfHosted"==b.audioType&&(b.$mediaNode_.crossOrigin="anonymous",b.spectrum_mediaElementSource=b.spectrum_audioContext.createMediaElementSource(b.$mediaNode_),b.spectrum_mediaElementSource.connect(b.spectrum_analyser),b.spectrum_audioContext.createGain&&(b.spectrum_gainNode=b.spectrum_audioContext.createGain()),
b.spectrum_analyser.connect(b.spectrum_audioContext.destination),b.spectrum_gainNode.gain.value=1,b.spectrum_audioContext_buffer=b.spectrum_audioContext.createBuffer(2,2*b.spectrum_audioContext.sampleRate,b.spectrum_audioContext.sampleRate)))}console.log("setting up listeners for player_initSpectrumOnUserAction");b.cthis.get(0).addEventListener("mousedown",e,{once:!0});b.cthis.get(0).addEventListener("touchdown",e,{once:!0})};h.player_stopOtherPlayers=function(b,e){var p;for(p=0;p<b.length;p++)b[p].get(0)&&
b[p].get(0).api_pause_media&&b[p].get(0)!=e.cthis.get(0)&&(b[p].data("type_audio_stop_buffer_on_unfocus")&&"on"==b[p].data("type_audio_stop_buffer_on_unfocus")?b[p].get(0).api_destroy_for_rebuffer():b[p].get(0).api_pause_media({audioapi_setlasttime:!1}))};h.player_determineProperties=function(){};h.player_detect_skinwave_mode=function(){this.skinwave_mode=this.initOptions.skinwave_mode;this.cthis.hasClass("skin-wave-mode-small")&&(this.skinwave_mode="small");this.cthis.hasClass("skin-wave-mode-alternate")&&
(this.skinwave_mode="alternate");this.cthis.hasClass("skin-wave-mode-bigwavo")&&(this.skinwave_mode="bigwavo")};h.player_constructArtistAndSongCon=function(b){if(0==this.cthis.find(".meta-artist").length&&(this.cthis.find(".feed-artist").length||this.cthis.find(".feed-songname").length)){var e='<span class="meta-artist player-artistAndSong">';this.cthis.find(".feed-artist").length&&(e+='<span class="the-artist">'+this.cthis.find(".feed-artist").eq(0).html()+"</span>");this.cthis.find(".feed-songname").length&&
(e+='<span class="the-name player-meta--songname">'+this.cthis.find(".feed-songname").eq(0).html()+"</span>");this.cthis.append(e+"</span>")}"fake"==this.cthis.attr("data-type")&&0==this.cthis.find(".meta-artist").length&&this.cthis.append('<span class="meta-artist"><span class="the-artist"></span><span class="the-name"></span></span>');this._metaArtistCon&&"reconstruct"!=b.call_from||(0<this.cthis.children(".meta-artist").length&&(this.cthis.hasClass("skin-wave-mode-alternate")?(this._conControls.children().last().hasClass("clear")&&
this._conControls.children().last().remove(),this._conControls.append(this.cthis.children(".meta-artist"))):this._audioplayerInner&&this._audioplayerInner.append(this.cthis.children(".meta-artist"))),this._audioplayerInner.find(".meta-artist").eq(0).wrap('<div class="meta-artist-con"></div>'),this._metaArtistCon=this._audioplayerInner.find(".meta-artist-con").eq(0),b=this.initOptions,0<this._apControls.find(".ap-controls-right").length&&(this._apControlsRight=this.cthis.find(".ap-controls-right").eq(0)),
0<this._apControls.find(".ap-controls-left").length&&(this._apControlsLeft=this._apControls.find(".ap-controls-left").eq(0)),"skin-pro"==b.design_skin&&(this._apControlsRight=this.cthis.find(".con-controls--right").eq(0)),"skin-wave"==b.design_skin&&(this.cthis.find(".dzsap-repeat-button").length?this.cthis.find(".dzsap-repeat-button").after(this._metaArtistCon):this.cthis.find(".dzsap-loop-button").length&&0==this.cthis.find(".dzsap-loop-button").eq(0).parent().hasClass("feed-dzsap-for-extra-html-right")?
this.cthis.find(".dzsap-loop-button").after(this._metaArtistCon):this._conPlayPauseCon.after(this._metaArtistCon),"alternate"==this.skinwave_mode&&this._apControlsRight.before(this._metaArtistCon)),"skin-aria"==b.design_skin&&this._apControlsRight.prepend(this._metaArtistCon),"skin-redlights"!=b.design_skin&&"skin-steel"!=b.design_skin||this._apControlsRight.prepend(this._metaArtistCon),"skin-silver"==b.design_skin&&this._apControlsRight.append(this._metaArtistCon),"skin-default"==b.design_skin&&
this._apControlsRight.before(this._metaArtistCon))};h.hexToRgb=function(b,e){b=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(b);var p="";b&&(b={r:parseInt(b[1],16),g:parseInt(b[2],16),b:parseInt(b[3],16)},p=1,e&&(p=e),p="rgba("+b.r+","+b.g+","+b.b+","+p+")");return p};h.handle_keypresses=G;h.MD5=function(b){function e(J,P){var V=J&2147483648,M=P&2147483648,ba=J&1073741824,R=P&1073741824;J=(J&1073741823)+(P&1073741823);return ba&R?J^2147483648^V^M:ba|R?J&1073741824?J^3221225472^V^M:J^1073741824^
V^M:J^V^M}function p(J,P,V,M,ba,R,W){J=e(J,e(e(P&V|~P&M,ba),W));return e(J<<R|J>>>32-R,P)}function l(J,P,V,M,ba,R,W){J=e(J,e(e(P&M|V&~M,ba),W));return e(J<<R|J>>>32-R,P)}function u(J,P,V,M,ba,R,W){J=e(J,e(e(P^V^M,ba),W));return e(J<<R|J>>>32-R,P)}function g(J,P,V,M,ba,R,W){J=e(J,e(e(V^(P|~M),ba),W));return e(J<<R|J>>>32-R,P)}function A(J){var P="",V;for(V=0;3>=V;V++){var M=J>>>8*V&255;M="0"+M.toString(16);P+=M.substr(M.length-2,2)}return P}var v=[];b=function(J){J=J.replace(/\r\n/g,"\n");for(var P=
"",V=0;V<J.length;V++){var M=J.charCodeAt(V);128>M?P+=String.fromCharCode(M):(127<M&&2048>M?P+=String.fromCharCode(M>>6|192):(P+=String.fromCharCode(M>>12|224),P+=String.fromCharCode(M>>6&63|128)),P+=String.fromCharCode(M&63|128))}return P}(b);v=function(J){for(var P=J.length,V=P+8,M=16*((V-V%64)/64+1),ba=Array(M-1),R,W=0;W<P;)V=(W-W%4)/4,R=W%4*8,ba[V]|=J.charCodeAt(W)<<R,W++;ba[(W-W%4)/4]|=128<<W%4*8;ba[M-2]=P<<3;ba[M-1]=P>>>29;return ba}(b);var t=1732584193,w=4023233417,B=2562383102,C=271733878;
for(b=0;b<v.length;b+=16){var ca=t,aa=w,O=B,T=C;t=p(t,w,B,C,v[b+0],7,3614090360);C=p(C,t,w,B,v[b+1],12,3905402710);B=p(B,C,t,w,v[b+2],17,606105819);w=p(w,B,C,t,v[b+3],22,3250441966);t=p(t,w,B,C,v[b+4],7,4118548399);C=p(C,t,w,B,v[b+5],12,1200080426);B=p(B,C,t,w,v[b+6],17,2821735955);w=p(w,B,C,t,v[b+7],22,4249261313);t=p(t,w,B,C,v[b+8],7,1770035416);C=p(C,t,w,B,v[b+9],12,2336552879);B=p(B,C,t,w,v[b+10],17,4294925233);w=p(w,B,C,t,v[b+11],22,2304563134);t=p(t,w,B,C,v[b+12],7,1804603682);C=p(C,t,w,B,v[b+
13],12,4254626195);B=p(B,C,t,w,v[b+14],17,2792965006);w=p(w,B,C,t,v[b+15],22,1236535329);t=l(t,w,B,C,v[b+1],5,4129170786);C=l(C,t,w,B,v[b+6],9,3225465664);B=l(B,C,t,w,v[b+11],14,643717713);w=l(w,B,C,t,v[b+0],20,3921069994);t=l(t,w,B,C,v[b+5],5,3593408605);C=l(C,t,w,B,v[b+10],9,38016083);B=l(B,C,t,w,v[b+15],14,3634488961);w=l(w,B,C,t,v[b+4],20,3889429448);t=l(t,w,B,C,v[b+9],5,568446438);C=l(C,t,w,B,v[b+14],9,3275163606);B=l(B,C,t,w,v[b+3],14,4107603335);w=l(w,B,C,t,v[b+8],20,1163531501);t=l(t,w,B,
C,v[b+13],5,2850285829);C=l(C,t,w,B,v[b+2],9,4243563512);B=l(B,C,t,w,v[b+7],14,1735328473);w=l(w,B,C,t,v[b+12],20,2368359562);t=u(t,w,B,C,v[b+5],4,4294588738);C=u(C,t,w,B,v[b+8],11,2272392833);B=u(B,C,t,w,v[b+11],16,1839030562);w=u(w,B,C,t,v[b+14],23,4259657740);t=u(t,w,B,C,v[b+1],4,2763975236);C=u(C,t,w,B,v[b+4],11,1272893353);B=u(B,C,t,w,v[b+7],16,4139469664);w=u(w,B,C,t,v[b+10],23,3200236656);t=u(t,w,B,C,v[b+13],4,681279174);C=u(C,t,w,B,v[b+0],11,3936430074);B=u(B,C,t,w,v[b+3],16,3572445317);w=
u(w,B,C,t,v[b+6],23,76029189);t=u(t,w,B,C,v[b+9],4,3654602809);C=u(C,t,w,B,v[b+12],11,3873151461);B=u(B,C,t,w,v[b+15],16,530742520);w=u(w,B,C,t,v[b+2],23,3299628645);t=g(t,w,B,C,v[b+0],6,4096336452);C=g(C,t,w,B,v[b+7],10,1126891415);B=g(B,C,t,w,v[b+14],15,2878612391);w=g(w,B,C,t,v[b+5],21,4237533241);t=g(t,w,B,C,v[b+12],6,1700485571);C=g(C,t,w,B,v[b+3],10,2399980690);B=g(B,C,t,w,v[b+10],15,4293915773);w=g(w,B,C,t,v[b+1],21,2240044497);t=g(t,w,B,C,v[b+8],6,1873313359);C=g(C,t,w,B,v[b+15],10,4264355552);
B=g(B,C,t,w,v[b+6],15,2734768916);w=g(w,B,C,t,v[b+13],21,1309151649);t=g(t,w,B,C,v[b+4],6,4149444226);C=g(C,t,w,B,v[b+11],10,3174756917);B=g(B,C,t,w,v[b+2],15,718787259);w=g(w,B,C,t,v[b+9],21,3951481745);t=e(t,ca);w=e(w,aa);B=e(B,O);C=e(C,T)}return(A(t)+A(w)+A(B)+A(C)).toLowerCase()};h.select_all=function(b){if("undefined"!=typeof window.getSelection&&"undefined"!=typeof document.createRange){var e=document.createRange();e.selectNodeContents(b);b=window.getSelection();b.removeAllRanges();b.addRange(e)}else"undefined"!=
typeof document.selection&&"undefined"!=typeof document.body.createTextRange&&(e=document.body.createTextRange(),e.moveToElementText(b),e.select())};h.dzsap_generate_keyboard_tooltip=function(b,e){b='<span class="dzstooltip arrow-from-start transition-slidein arrow-bottom skin-black" style="width: auto;  white-space:nowrap;">Shortcut: '+b[e]+"</span>";b=b.replace("32","space");return b.replace("27","escape")};h.htmlEncode=function(b){return jQuery("<div/>").text(b).html()};h.dzsap_is_mobile=function(){return E()||
c()};h.is_ios=E;h.is_android=function(){return c()};h.is_android_good=c;h.get_query_arg=function(b,e){if(b){if(-1<String(b).indexOf(e+"=")&&(b=(new RegExp("[?&]"+e+"=.+")).exec(b),null!=b))return b=b[0],-1<b.indexOf("&")&&(b=b.split("&")[1]),b.split("=")[1]}else console.log("purl not found - ",b)};h.add_query_arg=D;h.can_history_api=function(){return!(!window.history||!history.pushState)};h.dzs_clean_string=x;h.formatTime=function(b){b=Math.round(b);var e=0,p=0;if(0<b){for(;3599<b&&3E6>b&&isFinite(b);)p++,
b-=3600;for(;59<b&&3E6>b&&isFinite(b);)e++,b-=60;return p?String((10>p?"0":"")+p+":"+String((10>e?"0":"")+e+":"+(10>b?"0":"")+b)):String((10>e?"0":"")+e+":"+(10>b?"0":"")+b)}return"00:00"};h.can_canvas=function(){return document.createElement("canvas").getContext("2d")?!0:!1};h.dzsap_generate_keyboard_controls=y;h.convertPluginOptionsToFinalOptions=function(b,e,p,l){p=void 0===p?null:p;l=void 0===l?"data-options":l;var u={},g=!1;b=jQuery(b);if(p&&"object"==typeof p)u=p;else{if(b.attr(l))try{u=JSON.parse(b.attr(l)),
g=!0}catch(A){console.log("err - ",A)}g||"undefined"!=typeof p&&p||"undefined"==typeof b.attr(l)||""==b.attr("data-options")||(p=b.attr(l),eval("var aux_opts = "+p),u=Object.assign({},aux_opts))}return Object.assign(e,u)};h.generateFakeArrayForPcm=function(){for(var b=[],e=0;256>e;e++)b[e]=100*Math.random();return b};h.scrubbar_modeWave_clearObsoleteCanvas=function(b){b._scrubbar&&b._scrubbar.find(".scrubbar-type-wave--canvas.transitioning-out").remove()};h.scrubbar_modeWave_setupCanvas=function(b,
e){var p={prepare_for_transition_in:!1};b&&(p=Object.assign(p,b));var l=b="",u=e.initOptions;b='<canvas class="scrubbar-type-wave--canvas scrub-bg-img" ></canvas>';l='<canvas class="scrubbar-type-wave--canvas scrub-prog-img" ></canvas>';e._scrubbar.find(".scrub-bg").eq(0).append(b);e._scrubbar.find(".scrub-prog").eq(0).append(l);e._scrubbarbg_canvas=e._scrubbar.find(".scrub-bg-img").last();e._scrubbarprog_canvas=e._scrubbar.find(".scrub-prog-img").last();"on"===u.skinwave_enableSpectrum&&e._scrubbarprog_canvas.hide();
p.prepare_for_transition_in&&(e._scrubbarbg_canvas.addClass("preparing-transitioning-in"),e._scrubbarprog_canvas.addClass("preparing-transitioning-in"),setTimeout(function(){e._scrubbarbg_canvas.addClass("transitioning-in");e._scrubbarprog_canvas.addClass("transitioning-in")},20))}},function(n,h,q){q.r(h);q.d(h,"ajax_submit_views",function(){return E});q.d(h,"ajax_get_views",function(){return c});q.d(h,"ajax_submit_rating",function(){return G});q.d(h,"ajax_submit_like",function(){return I});q.d(h,
"ajax_retract_like",function(){return y});q.d(h,"ajax_comment_publish",function(){return b});q.d(h,"ajax_get_likes",function(){return e});q.d(h,"ajax_get_rates",function(){return p});q.d(h,"ajax_submit_download",function(){return l});var x=q(0);q.n(x);var D=q(2),E=function(u){var g=this;u=jQuery;var A={action:"dzsap_submit_views",postdata:1,playerid:g.the_player_id,currip:g.currIp};g.cthis.attr("data-playerid-for-views")&&(A.playerid=g.cthis.attr("data-playerid-for-views"));""==A.playerid&&(A.playerid=
dzs_clean_string(g.data_source));g.urlToAjaxHandler&&(u.ajax({type:"POST",url:g.urlToAjaxHandler,data:A,success:function(v){var t=g.cthis.find(".counter-hits .the-number").html();t=parseInt(t,10);2!=g.increment_views&&t++;v&&D.decode_json(v)&&(t=D.decode_json(v).number);g.cthis.find(".counter-hits .the-number").html(t);g.ajax_view_submitted="on"},error:function(v){v=g.cthis.find(".counter-hits .the-number").html();v=parseInt(v,10);v++;g.cthis.find(".counter-hits .the-number").html(v);g.ajax_view_submitted=
"on"}}),g.ajax_view_submitted="on")},c=function(u){var g=this;u={action:"dzsap_get_views",postdata:u,playerid:g.the_player_id};""==u.playerid&&(u.playerid=x.dzs_clean_string(data_source));g.urlToAjaxHandler&&jQuery.ajax({type:"POST",url:g.urlToAjaxHandler,data:u,success:function(A){var v=D.decode_json(A);(A=v?v.views:A)||(A="");-1<A.indexOf("viewsubmitted")&&(A=A.replace("viewsubmitted",""),g.ajax_view_submitted="on",g.increment_views=0);""==A&&(A=0);-1<String(A).indexOf("{{theip")&&(v=/{\{theip-(.*?)}}/g.exec(A),
v[1]&&(g.currIp=v[1]),A=A.replace(/{\{theip-(.*?)}}/g,""));1==g.increment_views&&(exports&&exports.ajax_submit_views.bind(g)(),A=Number(A)+g.increment_views,g.increment_views=2);v=g.cthis.find(".extra-html").eq(0).html();v=v.replace("{{get_plays}}",A);g.cthis.find(".extra-html").eq(0).html(v);g.index_extrahtml_toloads--;0==g.index_extrahtml_toloads&&g.cthis.find(".extra-html").addClass("active")},error:function(A){g.index_extrahtml_toloads--;0==g.index_extrahtml_toloads&&g.cthis.find(".extra-html").addClass("active")}})},
G=function(u){var g=this,A=jQuery;u={action:"dzsap_submit_rate",postdata:u,playerid:g.the_player_id};-1<g.starrating_alreadyrated||(g.cthis.find(".star-rating-con").addClass("just-rated"),g.urlToAjaxHandler&&g.initOptions.ajax({type:"POST",url:g.urlToAjaxHandler,data:u,success:function(v){var t={};try{t=JSON.parse(v)}catch(w){console.log(w)}g.cthis.find(".star-rating-set-clip").outerWidth();g.cthis.find(".star-rating-bg").outerWidth();v=parseInt(g.cthis.find(".counter-rates .the-number").html(),10);
v++;setTimeout(function(){g.cthis.find(".star-rating-con").removeClass("just-rated")},100);g.cthis.find(".counter-rates .the-number").html(t.number);g.cthis.find(".star-rating-con").attr("data-initial-rating-index",Number(t.index)/5);g.cthis.find(".star-rating-con .rating-prog").css("width",Number(t.index)/5*100+"%");g.initOptions.parentgallery&&void 0!=A(g.initOptions.parentgallery).get(0)&&void 0!=A(g.initOptions.parentgallery).get(0).api_player_rateSubmitted&&A(g.initOptions.parentgallery).get(0).api_player_rateSubmitted()},
error:function(v){var t=g.selfClass.cthis.find(".star-rating-set-clip").outerWidth()/g.cthis.find(".star-rating-bg").outerWidth();v=parseInt(g.cthis.find(".counter-rates .the-number").html(),10);v++;t=(5*(v-1)*t+g.starrating_index)/v;g.cthis.find(".star-rating-set-clip").width(t*(parseInt(cthis.find(".star-rating-bg").width(),10)/5));g.cthis.find(".counter-rates .the-number").html(v);g.initOptions.parentgallery&&void 0!=A(g.initOptions.parentgallery).get(0)&&void 0!=A(g.initOptions.parentgallery).get(0).api_player_rateSubmitted&&
A(g.initOptions.parentgallery).get(0).api_player_rateSubmitted()}}))},I=function(u){var g=this,A=jQuery;u={action:"dzsap_submit_like",postdata:u,playerid:g.the_player_id};g.cthis.find(".btn-like").addClass("disabled");(g.urlToAjaxHandler||g.cthis.hasClass("is-preview"))&&A.ajax({type:"POST",url:g.urlToAjaxHandler,data:u,success:function(v){g.cthis.find(".btn-like").addClass("active");g.cthis.find(".btn-like").removeClass("disabled");v=g.cthis.find(".counter-likes .the-number").html();v=parseInt(v,
10);v++;g.cthis.find(".counter-likes .the-number").html(v)},error:function(v){g.cthis.find(".btn-like").addClass("active");g.cthis.find(".btn-like").removeClass("disabled");v=g.cthis.find(".counter-likes .the-number").html();v=parseInt(v,10);v++;g.cthis.find(".counter-likes .the-number").html(v)}})},y=function(u){var g=this,A=jQuery;u={action:"dzsap_retract_like",postdata:u,playerid:g.the_player_id};g.cthis.find(".btn-like").addClass("disabled");g.urlToAjaxHandler&&A.ajax({type:"POST",url:g.urlToAjaxHandler,
data:u,success:function(v){g.cthis.find(".btn-like").removeClass("active");g.cthis.find(".btn-like").removeClass("disabled");v=g.cthis.find(".counter-likes .the-number").html();v=parseInt(v,10);v--;g.cthis.find(".counter-likes .the-number").html(v)},error:function(v){g.cthis.find(".btn-like").removeClass("active");g.cthis.find(".btn-like").removeClass("disabled");v=g.cthis.find(".counter-likes .the-number").html();v=parseInt(v,10);v--;g.cthis.find(".counter-likes .the-number").html(v)}})},b=function(u){var g=
this,A=jQuery,v=g.initOptions;console.log(" o - ",v,g);var t={action:"dzsap_front_submitcomment",postdata:u,playerid:g.the_player_id,comm_position:g.commentPositionPerc,skinwave_comments_process_in_php:v.skinwave_comments_process_in_php,skinwave_comments_avatar:v.skinwave_comments_avatar,skinwave_comments_account:v.skinwave_comments_account};0<g.cthis.find("*[name=comment-email]").length&&(t.email=g.cthis.find("*[name=comment-email]").eq(0).val());g.urlToAjaxHandler&&jQuery.ajax({type:"POST",url:g.urlToAjaxHandler,
data:t,success:function(w){"0"==w.charAt(w.length-1)&&(w=w.slice(0,w.length-1));w="";"on"!==g.initOptions.skinwave_comments_process_in_php?w=t.postdata:(w='<span class="dzstooltip-con" style="left:'+g.commentPositionPerc+'"><span class="dzstooltip arrow-from-start transition-slidein arrow-bottom skin-black" style="width: 250px;"><span class="the-comment-author">@'+g.initOptions.skinwave_comments_account+"</span> says:<br>",w+=x.htmlEncode(t.postdata),w+='</span><div class="the-avatar" style="background-image: url('+
g.initOptions.skinwave_comments_avatar+')"></div></span>');g._commentsHolder.children().each(function(){var B=A(this);0==B.hasClass("dzstooltip-con")&&B.addClass("dzstooltip-con")});g._commentsHolder.append(w);g.action_audio_comment&&g.action_audio_comment(g.cthis,w)},error:function(w){g._commentsHolder.append(t.postdata)}})},e=function(u){var g=this,A=jQuery;u={action:"dzsap_get_likes",postdata:u,playerid:g.the_player_id};if(g.urlToAjaxHandler){var v=cthis.find(".extra-html").eq(0);A.ajax({type:"POST",
url:g.urlToAjaxHandler,data:u,success:function(t){var w=!1;-1<t.indexOf("likesubmitted")&&(t=t.replace("likesubmitted",""),w=!0);""==t&&(t=0);v.css("opacity","");var B=v.html();B=B.replace("{{get_likes}}",t);v.html(B);g.index_extrahtml_toloads--;w&&g.cthis.find(".extra-html").find(".btn-like").addClass("active");0==g.index_extrahtml_toloads&&g.cthis.find(".extra-html").addClass("active")},error:function(t){g.index_extrahtml_toloads--;0==g.index_extrahtml_toloads&&v.addClass("active")}})}},p=function(u){u=
{action:"dzsap_get_rate",postdata:u,playerid:g.the_player_id};var g=this,A=g.initOptions,v=jQuery;g.urlToAjaxHandler&&jQuery.ajax({type:"POST",url:g.urlToAjaxHandler,data:u,success:function(t){-1<t.indexOf("likesubmitted")&&(t=t.replace("likesubmitted",""));""==t&&(t="0|0");t=t.split("|");starrating_nrrates=t[1];g.cthis.find(".extra-html .counter-rates .the-number").eq(0).html(starrating_nrrates);g.index_extrahtml_toloads--;g.cthis.find(".star-rating-set-clip").width(t[0]*(parseInt(cthis.find(".star-rating-bg").width(),
10)/5));"undefined"!=typeof t[2]&&(g.starrating_alreadyrated=t[2],A.parentgallery&&void 0!=v(A.parentgallery).get(0)&&void 0!=v(A.parentgallery).get(0).api_player_rateSubmitted&&v(A.parentgallery).get(0).api_player_rateSubmitted());0>=g.index_extrahtml_toloads&&g.cthis.find(".extra-html").addClass("active")},error:function(t){g.index_extrahtml_toloads--;0>=g.index_extrahtml_toloads&&g.cthis.find(".extra-html").addClass("active")}})},l=function(u){u={action:"dzsap_submit_download",postdata:u,playerid:this.the_player_id};
-1<this.starrating_alreadyrated||this.urlToAjaxHandler&&jQuery.ajax({type:"POST",url:this.urlToAjaxHandler,data:u,success:function(g){},error:function(g){}})}},function(n,h){h.decode_json=function(q){var x={};if(q)try{x=JSON.parse(q)}catch(D){return console.log(D,q),null}return x};h.isInt=function(q){return"number"==typeof q&&0==Math.round(q)%1};h.isValid=function(q){return"undefined"!=typeof q&&""!=q};h.getRelativeX=function(q,x){if(jQuery)return q-jQuery(x).offset().left}},function(n,h){h.svg_preloader_code=
' <svg class="loading-svg" width="30" height="30" viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#fff"> <g fill="none" fill-rule="evenodd" stroke-width="2"> <circle cx="22" cy="22" r="1"> <animate attributeName="r" begin="0s" dur="1.8s" values="1; 20" calcMode="spline" keyTimes="0; 1" keySplines="0.165, 0.84, 0.44, 1" repeatCount="indefinite" /> <animate attributeName="stroke-opacity" begin="0s" dur="1.8s" values="1; 0" calcMode="spline" keyTimes="0; 1" keySplines="0.3, 0.61, 0.355, 1" repeatCount="indefinite" /> </circle> <circle cx="22" cy="22" r="1"> <animate attributeName="r" begin="-0.9s" dur="1.8s" values="1; 20" calcMode="spline" keyTimes="0; 1" keySplines="0.165, 0.84, 0.44, 1" repeatCount="indefinite" /> <animate attributeName="stroke-opacity" begin="-0.9s" dur="1.8s" values="1; 0" calcMode="spline" keyTimes="0; 1" keySplines="0.3, 0.61, 0.355, 1" repeatCount="indefinite" /> </circle> </g> </svg> ';
h.svg_footer_playlist='<svg class="svg-icon" version="1.1" id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="13.25px" height="13.915px" viewBox="0 0 13.25 13.915" enable-background="new 0 0 13.25 13.915" xml:space="preserve"> <path d="M1.327,4.346c-0.058,0-0.104-0.052-0.104-0.115V2.222c0-0.063,0.046-0.115,0.104-0.115H11.58 c0.059,0,0.105,0.052,0.105,0.115v2.009c0,0.063-0.046,0.115-0.105,0.115H1.327z"/> <path d="M1.351,8.177c-0.058,0-0.104-0.051-0.104-0.115V6.054c0-0.064,0.046-0.115,0.104-0.115h10.252 c0.058,0,0.105,0.051,0.105,0.115v2.009c0,0.063-0.047,0.115-0.105,0.115H1.351z"/> <path d="M1.351,12.182c-0.058,0-0.104-0.05-0.104-0.115v-2.009c0-0.064,0.046-0.115,0.104-0.115h10.252 c0.058,0,0.105,0.051,0.105,0.115v2.009c0,0.064-0.047,0.115-0.105,0.115H1.351z"/> </svg>';
h.svg_close_btn='<svg enable-background="new 0 0 40 40" id="" version="1.1" viewBox="0 0 40 40" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M28.1,26.8c0.4,0.4,0.4,1,0,1.4c-0.2,0.2-0.5,0.3-0.7,0.3s-0.5-0.1-0.7-0.3l-6.8-6.8l-6.8,6.8c-0.2,0.2-0.5,0.3-0.7,0.3 s-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l6.8-6.8l-6.8-6.8c-0.4-0.4-0.4-1,0-1.4c0.4-0.4,1-0.4,1.4,0l6.8,6.8l6.8-6.8 c0.4-0.4,1-0.4,1.4,0c0.4,0.4,0.4,1,0,1.4L21.3,20L28.1,26.8z"></path></g><g><path d="M19.9,40c-11,0-20-9-20-20s9-20,20-20c4.5,0,8.7,1.5,12.3,4.2c0.4,0.3,0.5,1,0.2,1.4c-0.3,0.4-1,0.5-1.4,0.2 c-3.2-2.5-7-3.8-11-3.8c-9.9,0-18,8.1-18,18s8.1,18,18,18s18-8.1,18-18c0-3.2-0.9-6.4-2.5-9.2c-0.3-0.5-0.1-1.1,0.3-1.4 c0.5-0.3,1.1-0.1,1.4,0.3c1.8,3.1,2.8,6.6,2.8,10.2C39.9,31,30.9,40,19.9,40z"></path></g></svg>';
h.svg_pause=' <svg class="svg-icon" version="1.1" id="Layer_3" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="12px" height="13px" viewBox="0 0 13.415 16.333" enable-background="new 0 0 13.415 16.333" xml:space="preserve"> <path fill="#D2D6DB" d="M4.868,14.59c0,0.549-0.591,0.997-1.322,0.997H2.2c-0.731,0-1.322-0.448-1.322-0.997V1.618 c0-0.55,0.592-0.997,1.322-0.997h1.346c0.731,0,1.322,0.447,1.322,0.997V14.59z"/> <path fill="#D2D6DB" d="M12.118,14.59c0,0.549-0.593,0.997-1.324,0.997H9.448c-0.729,0-1.322-0.448-1.322-0.997V1.619 c0-0.55,0.593-0.997,1.322-0.997h1.346c0.731,0,1.324,0.447,1.324,0.997V14.59z"/> </svg>  ';
h.svg_embed_btn='<svg class="svg-icon" version="1.2" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="15px" height="15px" viewBox="0 0 15 15" xml:space="preserve"> <g id="Layer_1"> <polygon fill="#E6E7E8" points="1.221,7.067 0.494,5.422 4.963,1.12 5.69,2.767 "/> <polygon fill="#E6E7E8" points="0.5,5.358 1.657,4.263 3.944,10.578 2.787,11.676 "/> <polygon fill="#E6E7E8" points="13.588,9.597 14.887,8.34 12.268,2.672 10.969,3.93 "/> <polygon fill="#E6E7E8" points="14.903,8.278 14.22,6.829 9.714,11.837 10.397,13.287 "/> </g> <g id="Layer_2"> <rect x="6.416" y="1.713" transform="matrix(0.9663 0.2575 -0.2575 0.9663 2.1699 -1.6329)" fill="#E6E7E8" width="1.805" height="11.509"/> </g> </svg>';
h.svg_prev_btn='<svg class="svg-icon" version="1.1" id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="14px" height="14px" viewBox="0 0 12.5 12.817" enable-background="new 0 0 12.5 12.817" xml:space="preserve"> <g> <g> <g> <path fill="#D2D6DB" d="M2.581,7.375c-0.744-0.462-1.413-0.94-1.486-1.061C1.021,6.194,1.867,5.586,2.632,5.158l2.35-1.313 c0.765-0.427,1.505-0.782,1.646-0.789s0.257,1.03,0.257,1.905V7.87c0,0.876-0.051,1.692-0.112,1.817 C6.711,9.81,5.776,9.361,5.032,8.898L2.581,7.375z"/> </g> </g> </g> <g> <g> <g> <path fill="#D2D6DB" d="M6.307,7.57C5.413,7.014,4.61,6.441,4.521,6.295C4.432,6.15,5.447,5.42,6.366,4.906l2.82-1.577 c0.919-0.513,1.809-0.939,1.979-0.947s0.309,1.236,0.309,2.288v3.493c0,1.053-0.061,2.033-0.135,2.182S10.144,9.955,9.25,9.4 L6.307,7.57z"/> </g> </g> </g> </svg>';
h.svg_next_btn='<svg class="svg-icon" version="1.1" id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="14px" height="14px" viewBox="0 0 12.5 12.817" enable-background="new 0 0 12.5 12.817" xml:space="preserve"> <g> <g> <g> <path fill="#D2D6DB" d="M9.874,5.443c0.744,0.462,1.414,0.939,1.486,1.06c0.074,0.121-0.771,0.729-1.535,1.156L7.482,8.967 C6.719,9.394,5.978,9.75,5.837,9.756C5.696,9.761,5.581,8.726,5.581,7.851V4.952c0-0.875,0.05-1.693,0.112-1.816 c0.062-0.124,0.995,0.326,1.739,0.788L9.874,5.443z"/> </g> </g> </g> <g> <g> <g> <path fill="#D2D6DB" d="M6.155,5.248c0.893,0.556,1.696,1.129,1.786,1.274c0.088,0.145-0.928,0.875-1.847,1.389l-2.811,1.57 c-0.918,0.514-1.808,0.939-1.978,0.947c-0.169,0.008-0.308-1.234-0.308-2.287V4.66c0-1.052,0.061-2.034,0.135-2.182 s1.195,0.391,2.089,0.947L6.155,5.248z"/> </g> </g> </g> </svg>';
h.svg_prev_btn_steel='<svg class="svg1" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="10px" height="13.325px" viewBox="0 0 10 13.325" enable-background="new 0 0 10 13.325" xml:space="preserve"> <g id="Layer_2"> <polygon opacity="0.5" fill="#E6E7E8" points="3.208,7.674 5.208,9.104 5.208,5.062 3.208,5.652 "/> </g> <g id="Layer_1"> <rect x="0.306" y="3.074" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -1.4203 4.7299)" fill="#E6E7E8" width="9.386" height="2.012"/> <rect x="0.307" y="8.29" transform="matrix(0.7072 0.707 -0.707 0.7072 8.0362 -0.8139)" fill="#E6E7E8" width="9.387" height="2.012"/> </g> </svg> <svg class="svg2"  version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="10px" height="13.325px" viewBox="0 0 10 13.325" enable-background="new 0 0 10 13.325" xml:space="preserve"> <g id="Layer_2"> <polygon opacity="0.5" fill="#E6E7E8" points="3.208,7.674 5.208,9.104 5.208,5.062 3.208,5.652 "/> </g> <g id="Layer_1"> <rect x="0.306" y="3.074" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -1.4203 4.7299)" fill="#E6E7E8" width="9.386" height="2.012"/> <rect x="0.307" y="8.29" transform="matrix(0.7072 0.707 -0.707 0.7072 8.0362 -0.8139)" fill="#E6E7E8" width="9.387" height="2.012"/> </g> </svg>';
h.svg_next_btn_steel='<svg class="svg1" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="10px" height="13.325px" viewBox="0 0 10 13.325" enable-background="new 0 0 10 13.325" xml:space="preserve"> <g id="Layer_2"> <polygon opacity="0.5" fill="#E6E7E8" points="7.035,5.695 5.074,4.292 5.074,8.257 7.035,7.678 "/> </g> <g id="Layer_1"> <rect x="0.677" y="8.234" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 15.532 12.0075)" fill="#E6E7E8" width="9.204" height="1.973"/> <rect x="0.674" y="3.118" transform="matrix(-0.7072 -0.707 0.707 -0.7072 6.1069 10.7384)" fill="#E6E7E8" width="9.206" height="1.974"/> </g> </svg><svg class="svg2" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="10px" height="13.325px" viewBox="0 0 10 13.325" enable-background="new 0 0 10 13.325" xml:space="preserve"> <g id="Layer_2"> <polygon opacity="0.5" fill="#E6E7E8" points="7.035,5.695 5.074,4.292 5.074,8.257 7.035,7.678 "/> </g> <g id="Layer_1"> <rect x="0.677" y="8.234" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 15.532 12.0075)" fill="#E6E7E8" width="9.204" height="1.973"/> <rect x="0.674" y="3.118" transform="matrix(-0.7072 -0.707 0.707 -0.7072 6.1069 10.7384)" fill="#E6E7E8" width="9.206" height="1.974"/> </g> </svg>';
h.svg_menu_state='<svg class="svg-icon" version="1.1" id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="13.25px" height="13.915px" viewBox="0 0 13.25 13.915" enable-background="new 0 0 13.25 13.915" xml:space="preserve"> <path d="M1.327,4.346c-0.058,0-0.104-0.052-0.104-0.115V2.222c0-0.063,0.046-0.115,0.104-0.115H11.58 c0.059,0,0.105,0.052,0.105,0.115v2.009c0,0.063-0.046,0.115-0.105,0.115H1.327z"/> <path d="M1.351,8.177c-0.058,0-0.104-0.051-0.104-0.115V6.054c0-0.064,0.046-0.115,0.104-0.115h10.252 c0.058,0,0.105,0.051,0.105,0.115v2.009c0,0.063-0.047,0.115-0.105,0.115H1.351z"/> <path d="M1.351,12.182c-0.058,0-0.104-0.05-0.104-0.115v-2.009c0-0.064,0.046-0.115,0.104-0.115h10.252 c0.058,0,0.105,0.051,0.105,0.115v2.009c0,0.064-0.047,0.115-0.105,0.115H1.351z"/> </svg>';
h.svg_volume='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="57px" height="12px" viewBox="0 0 57 12" enable-background="new 0 0 57 12" xml:space="preserve"> <rect y="9" fill="#414042" width="3" height="3"/> <rect x="6" y="8" fill="#414042" width="3" height="4"/> <rect x="12" y="7" fill="#414042" width="3" height="5"/> <rect x="18" y="5.958" fill="#414042" width="3" height="6"/> <rect x="24" y="4.958" fill="#414042" width="3" height="7"/> <rect x="30" y="4" fill="#414042" width="3" height="8"/> <rect x="36" y="3" fill="#414042" width="3" height="9"/> <rect x="42" y="2" fill="#414042" width="3" height="10"/> <rect x="48" y="1" fill="#414042" width="3" height="11"/> <rect x="54" fill="#414042" width="3" height="12"/> </svg>';
h.svg_play_icon='<svg class="svg-icon" version="1.1" id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="11.161px" height="12.817px" viewBox="0 0 11.161 12.817" enable-background="new 0 0 11.161 12.817" xml:space="preserve"> <path fill="#D2D6DB" d="M8.233,4.589c1.401,0.871,2.662,1.77,2.801,1.998c0.139,0.228-1.456,1.371-2.896,2.177l-4.408,2.465 c-1.44,0.805-2.835,1.474-3.101,1.484c-0.266,0.012-0.483-1.938-0.483-3.588V3.666c0-1.65,0.095-3.19,0.212-3.422 c0.116-0.232,1.875,0.613,3.276,1.484L8.233,4.589z"/>  </svg>  ';
h.svg_heart_icon='<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.0" width="15" height="15"  viewBox="0 0 645 700" id="svg2"> <defs id="defs4" /> <g id="layer1"> <path d="M 297.29747,550.86823 C 283.52243,535.43191 249.1268,505.33855 220.86277,483.99412 C 137.11867,420.75228 125.72108,411.5999 91.719238,380.29088 C 29.03471,322.57071 2.413622,264.58086 2.5048478,185.95124 C 2.5493594,147.56739 5.1656152,132.77929 15.914734,110.15398 C 34.151433,71.768267 61.014996,43.244667 95.360052,25.799457 C 119.68545,13.443675 131.6827,7.9542046 172.30448,7.7296236 C 214.79777,7.4947896 223.74311,12.449347 248.73919,26.181459 C 279.1637,42.895777 310.47909,78.617167 316.95242,103.99205 L 320.95052,119.66445 L 330.81015,98.079942 C 386.52632,-23.892986 564.40851,-22.06811 626.31244,101.11153 C 645.95011,140.18758 648.10608,223.6247 630.69256,270.6244 C 607.97729,331.93377 565.31255,378.67493 466.68622,450.30098 C 402.0054,497.27462 328.80148,568.34684 323.70555,578.32901 C 317.79007,589.91654 323.42339,580.14491 297.29747,550.86823 z" id="path2417" style="" /> <g transform="translate(129.28571,-64.285714)" id="g2221" /> </g> </svg> ';
h.svg_arrow_resize='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="12px" height="12px" viewBox="0 0 511.626 511.627" style="enable-background:new 0 0 511.626 511.627;" xml:space="preserve"> <g><path d="M328.906,401.994h-36.553V109.636h36.553c4.948,0,9.236-1.809,12.847-5.426c3.613-3.615,5.421-7.898,5.421-12.845 c0-4.949-1.801-9.231-5.428-12.851l-73.087-73.09C265.044,1.809,260.76,0,255.813,0c-4.948,0-9.229,1.809-12.847,5.424 l-73.088,73.09c-3.618,3.619-5.424,7.902-5.424,12.851c0,4.946,1.807,9.229,5.424,12.845c3.619,3.617,7.901,5.426,12.85,5.426 h36.545v292.358h-36.542c-4.952,0-9.235,1.808-12.85,5.421c-3.617,3.621-5.424,7.905-5.424,12.854 c0,4.945,1.807,9.227,5.424,12.847l73.089,73.088c3.617,3.617,7.898,5.424,12.847,5.424c4.95,0,9.234-1.807,12.849-5.424 l73.087-73.088c3.613-3.62,5.421-7.901,5.421-12.847c0-4.948-1.808-9.232-5.421-12.854 C338.142,403.802,333.857,401.994,328.906,401.994z" fill="#363636"/> </g></svg>';
h.svg_volume_static=' <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="57px" height="12px" viewBox="0 0 57 12" enable-background="new 0 0 57 12" xml:space="preserve"> <rect y="9" fill="#414042" width="3" height="3"/> <rect x="6" y="8" fill="#414042" width="3" height="4"/> <rect x="12" y="7" fill="#414042" width="3" height="5"/> <rect x="18" y="5.958" fill="#414042" width="3" height="6"/> <rect x="24" y="4.958" fill="#414042" width="3" height="7"/> <rect x="30" y="4" fill="#414042" width="3" height="8"/> <rect x="36" y="3" fill="#414042" width="3" height="9"/> <rect x="42" y="2" fill="#414042" width="3" height="10"/> <rect x="48" y="1" fill="#414042" width="3" height="11"/> <rect x="54" fill="#414042" width="3" height="12"/> </svg> ';
h.svg_embed_button=' <svg class="svg-icon" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="10.975px" height="14.479px" viewBox="0 0 10.975 14.479" enable-background="new 0 0 10.975 14.479" xml:space="preserve"> <g> <path d="M2.579,1.907c0.524-0.524,1.375-0.524,1.899,0l4.803,4.804c0.236-0.895,0.015-1.886-0.687-2.587L5.428,0.959 c-1.049-1.05-2.75-1.05-3.799,0L0.917,1.671c-1.049,1.05-1.049,2.751,0,3.801l3.167,3.166c0.7,0.702,1.691,0.922,2.587,0.686 L1.867,4.52c-0.524-0.524-0.524-1.376,0-1.899L2.579,1.907z M5.498,13.553c1.05,1.05,2.75,1.05,3.801,0l0.712-0.713 c1.05-1.05,1.05-2.75,0-3.8L6.843,5.876c-0.701-0.7-1.691-0.922-2.586-0.686l4.802,4.803c0.524,0.525,0.524,1.376,0,1.897 l-0.713,0.715c-0.523,0.522-1.375,0.522-1.898,0L1.646,7.802c-0.237,0.895-0.014,1.886,0.686,2.586L5.498,13.553z"/> </g> </svg> ';
h.playbtn_svg='<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="25px" height="30px" viewBox="0 0 25 30" xml:space="preserve"> <path d="M24.156,13.195L2.406,0.25C2.141,0.094,1.867,0,1.555,0C0.703,0,0.008,0.703,0.008,1.562H0v26.875h0.008 C0.008,29.297,0.703,30,1.555,30c0.32,0,0.586-0.109,0.875-0.266l21.727-12.93C24.672,16.375,25,15.727,25,15 S24.672,13.633,24.156,13.195z"/> </svg>';h.svg_share_icon=
'<svg class="svg-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="512px" height="512px" viewBox="0 0 511.626 511.627" style="enable-background:new 0 0 511.626 511.627;" xml:space="preserve"> <g> <path d="M506.206,179.012L360.025,32.834c-3.617-3.617-7.898-5.426-12.847-5.426s-9.233,1.809-12.847,5.426 c-3.617,3.619-5.428,7.902-5.428,12.85v73.089h-63.953c-135.716,0-218.984,38.354-249.823,115.06C5.042,259.335,0,291.03,0,328.907 c0,31.594,12.087,74.514,36.259,128.762c0.57,1.335,1.566,3.614,2.996,6.849c1.429,3.233,2.712,6.088,3.854,8.565 c1.146,2.471,2.384,4.565,3.715,6.276c2.282,3.237,4.948,4.859,7.994,4.859c2.855,0,5.092-0.951,6.711-2.854 c1.615-1.902,2.424-4.284,2.424-7.132c0-1.718-0.238-4.236-0.715-7.569c-0.476-3.333-0.715-5.564-0.715-6.708 c-0.953-12.938-1.429-24.653-1.429-35.114c0-19.223,1.668-36.449,4.996-51.675c3.333-15.229,7.948-28.407,13.85-39.543 c5.901-11.14,13.512-20.745,22.841-28.835c9.325-8.09,19.364-14.702,30.118-19.842c10.756-5.141,23.413-9.186,37.974-12.135 c14.56-2.95,29.215-4.997,43.968-6.14s31.455-1.711,50.109-1.711h63.953v73.091c0,4.948,1.807,9.232,5.421,12.847 c3.62,3.613,7.901,5.424,12.847,5.424c4.948,0,9.232-1.811,12.854-5.424l146.178-146.183c3.617-3.617,5.424-7.898,5.424-12.847 C511.626,186.92,509.82,182.636,506.206,179.012z" fill="#696969"/> </g></svg> ';
h.pausebtn_svg='<svg version="1.2" baseProfile="tiny" id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="25px" height="30px" viewBox="0 0 25 30" xml:space="preserve"> <path d="M9.812,29.7c0,0.166-0.178,0.3-0.398,0.3H2.461c-0.22,0-0.398-0.134-0.398-0.3V0.3c0-0.166,0.178-0.3,0.398-0.3h6.953 c0.22,0,0.398,0.134,0.398,0.3V29.7z"/> <path d="M23.188,29.7c0,0.166-0.178,0.3-0.398,0.3h-6.953c-0.22,0-0.398-0.134-0.398-0.3V0.3c0-0.166,0.178-0.3,0.398-0.3h6.953 c0.22,0,0.398,0.134,0.398,0.3V29.7z"/> </svg>'},
function(n,h){h.constants={PLAYLIST_TRANSITION_DURATION:300,DEBUG_STYLE_1:"background-color: #aaa022; color: #222222;",DEBUG_STYLE_2:"background-color: #7c3b8e; color: #ffffff;",DEBUG_STYLE_3:"background-color: #3a696b; color: #eeeeee;",DEBUG_STYLE_ERROR:"background-color: #3a696b; color: #eeeeee;",URL_WAVESURFER:"https://unpkg.com/wavesurfer.js@3.3.3/dist/wavesurfer.min.js",WAVESURFER_MAX_TIMEOUT:2E4,URL_JQUERY:"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js",DEBUG_STYLE_PLAY_FUNCTIONS:"background-color: #daffda; color: #222222;"}},
function(n,h,q){function x(){(function(O){window.dzsap_list_for_sync_build=function(){};Math.easeIn=function(T,J,P,V){return-P*(T/=V)*(T-2)+J};c.assignHelperFunctionsToJquery(O);O.fn.audioplayer=function(T){var J={},P=Object.assign({},q(14).default_opts);J=c.convertPluginOptionsToFinalOptions(this,P,T);this.each(function(){new aa(this,J,O);return this})};b.registerToJquery(O);window.dzsag_init=function(T,J){"undefined"!=typeof J&&"undefined"!=typeof J.init_each&&!0===J.init_each?(1===Object.keys(J).length&&
(J=void 0),O(T).each(function(){O(this).audiogallery(J)})):O(T).audiogallery(J)}})(jQuery)}function D(){jQuery(document).ready(function(O){function T(){clearTimeout(J);J=setTimeout(function(){O(".dzsap-sticktobottom").length&&(dzsap_sticktobottom_con=O(".dzsap-sticktobottom").eq(0));if(dzsap_sticktobottom_con){var P="body .dzsap-sticktobottom:not(.audioplayer-loaded){bottom: -"+(dzsap_sticktobottom_con.outerHeight()+"px");window.dzsap__style.html(P+"}")}},300)}O("body").append('<style class="dzsap--style"></style>');
window.dzsap__style=O(".dzsap--style");O(window).on("resize.dzsapmain",T);O(document).on("focus.dzsap","input",function(){window.dzsap_currplayer_focused=null});var J=0;T();O("audio.zoomsounds-from-audio").each(function(){var P=O(this);P.after('<div class="audioplayer-tobe auto-init skin-silver" data-source="'+P.attr("src")+'"></div>');P.remove()});O(".audioplayer,.audioplayer-tobe").each(function(){var P=O(this);P.hasClass("auto-init")&&!0===P.hasClass("audioplayer-tobe")&&window.dzsap_init&&dzsap_init(P,
{init_each:!0})});dzsag_init(".audiogallery.auto-init",{init_each:!0});c.jQueryAuxBindings(O)});c.registerTextWidth(jQuery)}function E(){for(var O in window.dzsap_init_calls)window.dzsap_init_calls[O](jQuery);window.dzsap_init_calls=[]}q.r(h);var c=q(0);q.n(c);window.dzsap_init_calls||(window.dzsap_init_calls=[]);var G=q(2),I=q(6),y=q(3),b=q(7),e=q(1),p=q(10),l=q(11),u=q(12),g=q(4).constants,A=q(13),v=[],t=[],w=!1,B=20,C=!1,ca=0;window.loading_multi_sharer=!1;window.dzsap_moving_playlist_item=!1;
window.dzsap_playlist_con=null;window.dzsap_playlist_item_moving=null;window.dzsap_playlist_item_target=null;window.dzsap_player_interrupted_by_dzsap=null;window.dzsap_audio_ctx=null;window.dzsap__style=null;window.dzsap_sticktobottom_con=null;window.dzsap_self_options={};window.dzsap_generating_pcm=!1;window.dzsap_box_main_con=null;window.dzsap_lasto=null;window.dzsap_wavesurfer_load_attempt=0;window.dzsap_syncList_players=[];window.dzsap_player_index=0;var aa=function(O,T,J){this.argThis=O;
this.argOptions=T;this.$=J;this.ajax_view_submitted="auto";this.increment_views=0;this.the_player_id="";this.currIp="127.0.0.1";this.index_extrahtml_toloads=0;this.starrating_alreadyrated=-1;this.data_source="";this.urlToAjaxHandler=this._actualPlayer=null;this.timeTotal=this.timeCurrent=this.playlist_inner_currNr=this.pseudo_sample_time_total=this.pseudo_sample_time_end=this.pseudo_sample_time_start=this.sample_time_total=this.sample_time_end=this.sample_time_start=0;this.$embedButton=this.$commentsSelector=
this.$commentsChildren=this.$commentsWritter=this.$watermarkMedia_=this.$totalTime=this.$currTime=this.$controlsVolume=this.$$scrubbProg=this.$conControls=this.$conPlayPause=this.$theMedia=this._sourcePlayer=this._feed_fakeButton=this._scrubbarprog_canvas=this._scrubbarbg_canvas=this._scrubbar=this.$mediaNode_=this._commentsHolder=this._apControlsRight=this._apControlsLeft=this._apControls=this._conPlayPauseCon=this._conControls=this._metaArtistCon=this._audioplayerInner=null;this.skinwave_mode=this.audioType=
"normal";this.action_audio_comment=null;this.commentPositionPerc=0;this.spectrum_gainNode=this.spectrum_analyser=this.spectrum_mediaElementSource=this.spectrum_audioContext_buffer=this.spectrum_audioContextBufferSource=this.spectrum_audioContext=null;this.isMultiSharer=!1;this.last_lastArray=this.lastArray=null;this.playerIsLoaded=this.player_playing=!1;this.actualDataTypeOfMedia="audio";this.lastTimeInSeconds=this.youtube_retryPlayTimeout=0;this.identifier_pcm=this.settings_extrahtml_in_float_right=
"";this.isCanvasFirstDrawn=this.isPlayPromised=this.isPcmPromisingToGenerateOnMetaLoad=this.isPcmTryingToGenerate=this.isRealPcm=!1;this.original_real_mp3=this.src_real_mp3="";this.classMisc=this.skin_minimal_canvasplay=null;this.classInit()};aa.prototype.classInit=function(){function O(){a.sample_time_total=0;a.sample_time_start=0;a.pseudo_sample_time_end=0;m.sample_time_start||(d.attr("data-sample_time_start")&&(a.sample_time_start=Number(d.attr("data-sample_time_start"))),d.attr("data-sample_time_end")&&
(a.sample_time_end=Number(d.attr("data-sample_time_end"))),d.attr("data-pseudo-sample_time_start")&&(a.pseudo_sample_time_start=Number(d.attr("data-pseudo-sample_time_start"))),d.attr("data-pseudo-sample_time_end")&&(a.pseudo_sample_time_end=Number(d.attr("data-pseudo-sample_time_end"))),d.attr("data-sample_time_total")&&(a.sample_time_total=Number(d.attr("data-sample_time_total"))));0==isNaN(Number(m.sample_time_start))&&0<Number(m.sample_time_start)&&(a.sample_time_start=Number(m.sample_time_start),
0<Number(m.sample_time_end)&&(a.sample_time_end=Number(m.sample_time_end),0<Number(m.sample_time_total)&&(a.sample_time_total=Number(m.sample_time_total),a.sample_perc_start=a.sample_time_start/a.sample_time_total,a.sample_perc_end=a.sample_time_end/a.sample_time_total)));a.pseudo_sample_time_start&&(a.sample_time_start=a.pseudo_sample_time_start,a.sample_time_end=a.pseudo_sample_time_end)}function T(){if(0==w){var f=document.createElement("script");f.src="https://www.youtube.com/iframe_api";var r=
document.getElementsByTagName("script")[0];r.parentNode.insertBefore(f,r);w=!0}}function J(){var f=parseFloat(m.skinwave_wave_mode_canvas_reflection_size);f=1-f;var r=a._scrubbar.height();"skin-wave"==m.design_skin&&("small"==a.skinwave_mode&&(r=60),a._commentsHolder&&(0==f?a._commentsHolder.css("top",a._scrubbar.offset().top-d.offset().top+r*f-a._commentsHolder.height()):(a._commentsHolder.css("top",a._scrubbar.offset().top-a._scrubbar.parent().offset().top+r*f),a.$commentsWritter.css("top",a._scrubbar.offset().top-
a._scrubbar.parent().offset().top+r*f))),a.$currTime&&a.$currTime.css("top",r*f-a.$currTime.outerHeight()),a.$totalTime&&a.$totalTime.css("top",r*f-a.$totalTime.outerHeight()));d.attr("data-reflection-size",f)}function P(f,r){console.log("change_visual_target() - ",f);var z={};r&&(z=L.extend(z,r));a._sourcePlayer&&a._sourcePlayer.get(0)&&a._sourcePlayer.get(0).api_pause_media_visual&&a._sourcePlayer.get(0).api_pause_media_visual({call_from:"change_visual_target"});a._sourcePlayer=f;var F=a._sourcePlayer.get(0);
a.player_playing&&a._sourcePlayer&&F&&F.api_play_media_visual&&F.api_play_media_visual();F&&F.api_draw_curr_time&&(F.api_set_time_curr(a.timeCurrent),F.api_get_times({call_from:" change visual target .. in api "}),F.api_check_time({fire_only_once:!0}),F.api_draw_curr_time(),F.api_draw_scrub_prog());setTimeout(function(){F&&F.api_draw_curr_time&&(F.api_get_times(),F.api_check_time({fire_only_once:!0}),F.api_draw_curr_time(),F.api_draw_scrub_prog())},800)}function V(f){m.design_wave_color_progress=
f;"canvas"==m.skinwave_wave_mode&&(u.draw_canvas(a._scrubbarbg_canvas.get(0),d.attr("data-pcm"),"#"+m.design_wave_color_bg,{call_from:"canvas_change_pcm_bg",selfClass:a,skinwave_wave_mode_canvas_waves_number:parseInt(m.skinwave_wave_mode_canvas_waves_number),skinwave_wave_mode_canvas_waves_padding:parseInt(m.skinwave_wave_mode_canvas_waves_padding)}),u.draw_canvas(a._scrubbarprog_canvas.get(0),d.attr("data-pcm"),"#"+m.design_wave_color_progress,{call_from:"canvas_change_pcm_prog",selfClass:a,skinwave_wave_mode_canvas_waves_number:parseInt(m.skinwave_wave_mode_canvas_waves_number),
skinwave_wave_mode_canvas_waves_padding:parseInt(m.skinwave_wave_mode_canvas_waves_padding)}))}function M(f,r){r=void 0===r?{}:r;var z={type:"",fakeplayer_is_feeder:"off",call_from:"default",source:"default",pcm:"",artist:"",song_name:"",thumb:"",thumb_link:"",autoplay:"on",cue:"on",feeder_type:"player",source_player_do_not_update:"off",watermark:"",watermark_volume:"",playerid:""};a.ajax_view_submitted="on";var F=500,N=Object.assign({},z,r);gc++;F=!1;L(".current-feeder-for-parent-player").removeClass("current-feeder-for-parent-player");
"string"==typeof f&&(F=!0);r=!0;F||d.attr("data-source")!=f.attr("data-source")||(r=!1);F&&d.attr("data-source")==f&&(r=!1);r&&a._sourcePlayer&&a._sourcePlayer.get(0).api_pause_media_visual({call_from:"change_media"});a.cthis.data("original-settings")||"fake"==a.data_source||a.cthis.data("original-settings",c.sanitizeObjectForChangeMediaArgs(a.cthis));F||(N=Object.assign({},N,c.sanitizeObjectForChangeMediaArgs(f)));a.data_source=N.source;if(!1===F&&(!0===!!f.hasClass("audioplayer")||f.hasClass("is-zoomsounds-source-player"))||
"on"==N.fakeplayer_is_feeder)a._sourcePlayer=f,a.cthis.data("feeding-from",a._sourcePlayer.get(0)),a._sourcePlayer.addClass("current-feeder-for-parent-player"),a._sourcePlayer.attr("data-sample_time_start")?a.cthis.attr("data-sample_time_start",f.attr("data-sample_time_start")):a.cthis.attr("data-sample_time_start",""),a._sourcePlayer.attr("data-sample_time_end")?a.cthis.attr("data-sample_time_end",f.attr("data-sample_time_end")):a.cthis.attr("data-sample_time_end",""),a._sourcePlayer.attr("data-pseudo-sample_time_start")?
a.cthis.attr("data-pseudo-sample_time_start",a._sourcePlayer.attr("data-pseudo-sample_time_start")):a.cthis.attr("data-pseudo-sample_time_start",""),a._sourcePlayer.attr("data-pseudo-sample_time_end")?a.cthis.attr("data-pseudo-sample_time_end",a._sourcePlayer.attr("data-pseudo-sample_time_end")):a.cthis.attr("data-pseudo-sample_time_end",""),a._sourcePlayer.attr("data-sample_time_total")?a.cthis.attr("data-sample_time_total",f.attr("data-sample_time_total")):a.cthis.attr("data-sample_time_total",
"");!F&&f&&(f.attr("data-playerid")?a.cthis.attr("data-feed-playerid",f.attr("data-playerid")):(a.cthis.attr("data-feed-playerid",""),N.playerid=""));if(a._sourcePlayer&&"on"!==z.source_player_do_not_update){if(a.cthis.attr("data-source")==f.attr("data-source"))return!1}else if(a.cthis.attr("data-source")==f)return!1;if("detect"==N.type||"audio"==N.type||"normal"==N.type)N.type="selfHosted";d.removeClass("meta-loaded");d.parent().hasClass("audioplayer-was-loaded")&&(d.parent().addClass("audioplayer-loaded"),
L("body").addClass("footer-audioplayer-loaded"),d.parent().removeClass("audioplayer-was-loaded"));qa&&qa.addClass("audioplayer-loaded");d.removeClass("errored-out");ab();d.attr("data-source",N.source);d.attr("data-soft-watermark",N.watermark);m.watermark_volume=N.watermark_volume?N.watermark_volume:1;r=N.type;"mediafile"==N.type&&(N.type="audio");N.type&&("soundcloud"==N.type&&(N.type="audio"),"album_part"==N.type&&(N.type="audio"),d.attr("data-type",N.type),a.audioType=N.type,m.type=N.type);a.playerIsLoaded=
!1;"skin-wave"===m.design_skin&&("canvas"===m.skinwave_wave_mode&&(a.src_real_mp3=a._sourcePlayer?f.attr("data-source"):f,f&&N.pcm?(d.attr("data-pcm",f.attr("data-pcm")),u.scrubModeWave__transitionIn(a,f.attr("data-pcm"))):u.scrubModeWave__initGenerateWaveData(a,{call_from:"change_media() regenerate_canvas_from_change_media"}),""!==N.pcm?(u.scrubModeWave__transitionIn(a,N.pcm),d.attr("data-pcm",N.pcm)):(a._scrubbar.addClass("fast-animate-scrubbar"),d.removeClass("scrubbar-loaded"),setTimeout(function(){},
10),setTimeout(function(){d.removeClass("fast-animate-scrubbar");a.isRealPcm=!1;d.attr("data-pcm","");u.wave_mode_canvas_try_to_get_pcm(a);u.scrubModeWave__initGenerateWaveData(a,{call_from:"regenerate_canvas_from_change_media - generate data for new"})},120))),N.thumb&&(d.find(".the-thumb").length?d.find(".the-thumb").css("background-image","url("+N.thumb+")"):(d.attr("data-thumb",N.thumb),Fa())));N.thumb?(d.find(".the-thumb").length?d.find(".the-thumb").css("background-image","url("+N.thumb+")"):
(d.attr("data-thumb",N.thumb),Fa()),d.removeClass("does-not-have-thumb"),d.addClass("has-thumb")):(d.addClass("does-not-have-thumb"),d.removeClass("has-thumb"));""==N.pcm&&bb();a._sourcePlayer&&(a._sourcePlayer.attr("data-playerid")?a.identifier_pcm=a._sourcePlayer.attr("data-playerid"):a._sourcePlayer.attr("data-source")&&(a.identifier_pcm=a._sourcePlayer.attr("data-source")));ra&&(F=ra.children(".dzstooltip--inner"),F.children().removeClass("current-playlist-item"),F.children().each(function(){var ma=
L(this);ma.attr("data-playerid")==N.playerid&&(ma.addClass("current-playlist-item"),a.playlist_inner_currNr=0)}));F=100;a._sourcePlayer&&f.find(".meta-artist").eq(0).html();a._sourcePlayer&&(f=null,a._sourcePlayer.find(".feed-dzsap-for-extra-html-right").length?f=a._sourcePlayer.find(".feed-dzsap-for-extra-html-right").eq(0):a._sourcePlayer.attr("data-playerid")&&L(document).find('.feed-dzsap-for-extra-html-right[data-playerid="'+a._sourcePlayer.attr("data-playerid")+'"]').length&&(f=L(document).find('.feed-dzsap-for-extra-html-right[data-playerid="'+
a._sourcePlayer.attr("data-playerid")+'"]').eq(0)),f&&d.find(".extrahtml-in-float-right").eq(0).html(f.html()));N.artist&&d.find(".the-artist").html(N.artist);N.song_name&&d.find(".the-name").html(N.song_name);"on"==z.source_player_do_not_update&&(a._sourcePlayer=null);"soundcloud"===r&&-1==N.source.indexOf("api.soundcloud")?(a.data_source=N.source,console.log("RETRIEVE SOUNDCLOUD URL"),a.isPlayPromised=!0,setTimeout(function(){a.isPlayPromised=!0},501),p.retrieve_soundcloud_url(a)):za({called_from:"change_media"});
O();if("fake"==a.audioType)return!1;m.action_audio_change_media&&m.action_audio_change_media(N.source,N);console.log({changeMediaArgs:N});"on"==N.autoplay&&0==c.dzsap_is_mobile()&&(zb(),setTimeout(function(){na({called_from:"changeMediaArgs.autoplay"})},500));setTimeout(function(){Ga()},F)}function ba(){if(cb)return!1;db=!0}function R(){var f=function(){};f.prototype.handleClickLike=function(){console.log("zoomsounds - click_like()",this);var r=L(this);0!=d.has(r).length&&(r.hasClass("active")?e.ajax_retract_like.bind(a)():
e.ajax_submit_like.bind(a)())};f.prototype.check_every_05_secs=function(){if(!a.cthis)return!1;0!=a.cthis.hasClass("first-played")||a.cthis.attr("data-playfrom")&&"0"!=d.attr("data-playfrom")||(Ra=0,a.timeTotal=0,L(a.$mediaNode_)&&L(a.$mediaNode_).html()&&-1<L(a.$mediaNode_).html().indexOf("api.soundcloud.com")&&0!=a.$mediaNode_.currentTime&&ta(0,{call_from:"first_played_false"}));if("fake"==a.audioType||a._actualPlayer)0==d.hasClass("current-feeder-for-parent-player")&&sa&&(a.timeCurrent=sa),0==
a.timeTotal&&a.$mediaNode_&&(a.timeTotal=a.$mediaNode_.duration,a.timeCurrent=a.$mediaNode_.currentTime),Mb=a.timeCurrent,mb=a.timeTotal;if("youtube"==a.audioType){Ha=Ra=-1;try{a.$mediaNode_&&a.$mediaNode_.getDuration&&(Ra=a.$mediaNode_.getDuration(),null==a._actualPlayer&&(Ha=a.$mediaNode_.getCurrentTime())),"last"==oa&&Ab&&"undefined"!=typeof Storage&&(localStorage["dzsap_"+a.the_player_id+"_lastpos"]=Ha)}catch(r){console.log("yt error - ",r)}}"skin-wave"===m.design_skin&&"on"===m.skinwave_comments_displayontime&&
c.player_checkIfWeShouldShowAComment(a,Mb,mb)};f.prototype.icecast_shoutcast_get_data=function(){var r=d.attr("data-source");"shoutcast"==ua&&(r=c.add_query_arg(a.urlToAjaxHandler,"action","dzsap_shoutcast_get_streamtitle"),r=c.add_query_arg(r,"source",Ja));L.ajax({type:"GET",url:r,crossDomain:!0,success:function(z){z.documentElement&&z.documentElement.innerHTML&&(z=z.documentElement.innerHTML);var F,N="",ma="";"icecast"==ua&&(F=/<location>(.*?)<\/location>/g.exec(z))&&F[1]!=a.data_source&&(a.data_source=
F[1],za({called_from:"icecast setup"}));nb&&("icecast"==ua&&(F=/<title>(.*?)<\/title>/g,F=F.exec(z))&&(N=F[1]),"shoutcast"==ua&&(N=z));ob&&"icecast"==ua&&(F=/<creator>(.*?)<\/creator>/g,F=F.exec(z))&&(ma=F[1]);nb&&a._metaArtistCon.find(".the-name").html(N);ob&&a._metaArtistCon.find(".the-artist").html(ma)},error:function(z){console.log("error loading icecast - ",z)}})};a.classMisc=new f}function W(){if(cb)return!1;a.player_playing&&Aa();L(window).off("resize.dzsap");d.remove();d=null;cb=!0}function da(f,
r){f={do_not_autoplay:!1};r&&(f=L.extend(f,r));d.find(".playbtn").unbind("click",da);d.find(".scrubbar").unbind("click",da);za(f);(c.is_android()||c.is_ios())&&na({called_from:"click_for_setup_media"})}function Z(f){m.parentgallery&&"undefined"!=typeof m.parentgallery.get(0)&&m.parentgallery.get(0).api_toggle_menu_state()}function H(f){if(1!=a.playerIsLoaded)return f||(f=Sa),0==a.$theMedia.children().length&&a.$theMedia.append('<div id="'+f+'"></div>'),a.$mediaNode_=new YT.Player(f+"",{height:"200",
width:"200",videoId:d.attr("data-source"),playerVars:{origin:"",controls:1,showinfo:0,playsinline:1,rel:0,autohide:0,wmode:"transparent",iv_load_policy:"3"},events:{onReady:K,onStateChange:ia}}),d.addClass("yt-inited"),pb=!0,!1}function K(f){0==pb?(H(Sa),setTimeout(function(){K(f)},1E3)):a.$mediaNode_?(ja({call_from:"check_yt_ready_phase_two"}),a.youtube_retryPlayTimeout&&setTimeout(function(){na({called_from:"check_yt_ready_phase_two"})},500)):setTimeout(function(){K(f)},1E3)}function ia(f){2==f.data&&
Aa({call_from:"youtube paused"});1==f.data&&(na({called_from:"youtube playing"}),d.addClass("dzsap-loaded"));-1==f.data&&a.player_playing&&ta(0)}function X(){setTimeout(function(){d&&d.addClass("scrubbar-loaded")},1E3)}function Fa(){if(d.attr("data-thumb")){d.addClass("has-thumb");var f="";f=d.attr("data-thumb_link")?f+('<a href="'+d.attr("data-thumb_link")+'"'):f+"<div";f+=' class="the-thumb-con"><div class="the-thumb" style=" background-image:url('+d.attr("data-thumb")+')"></div>';f=d.attr("data-thumb_link")?
f+"</a>":f+"</div>";d.children(".the-thumb-con").length&&(f=d.children(".the-thumb-con").eq(0));"skin-customcontrols"!=m.design_skin&&("skin-wave"!=m.design_skin||"small"!=a.skinwave_mode&&"alternate"!=a.skinwave_mode?"skin-steel"==m.design_skin?a._apControlsLeft.prepend(f):a._audioplayerInner.prepend(f):"alternate"==a.skinwave_mode?a._audioplayerInner.prepend(f):a._apControlsLeft.prepend(f));a._audioplayerInner.children(".the-thumb-con").eq(0)}else d.removeClass("has-thumb")}function Ia(){d.removeClass("skin-wave-mode-normal");
"skin-wave"==m.design_skin&&(d.addClass("skin-wave-mode-"+a.skinwave_mode),d.addClass("skin-wave-wave-mode-"+m.skinwave_wave_mode),"on"==m.skinwave_enableSpectrum&&d.addClass("skin-wave-is-spectrum"),d.addClass("skin-wave-wave-mode-canvas-mode-"+m.skinwave_wave_mode_canvas_mode))}function pa(f,r){var z={call_from:"default"};r&&L.extend(z,r);ra&&(r=ra.find(".dzstooltip--inner"),r=r.children().eq(f),z=r.attr("data-playerid"),r=L('.audioplayer[data-playerid="'+z+'"],.audioplayer-tobe[data-playerid="'+
z+'"]'),z&&r.length&&r.eq(0).get(0)&&r.eq(0).get(0).api_play_media?L('.audioplayer[data-playerid="'+z+'"]').eq(0).get(0).api_play_media({called_from:"api_sync_players_prev"}):r.parent().parent().parent().hasClass("audiogallery")?r.parent().parent().parent().get(0).api_goto_item(f):M(r),a.playlist_inner_currNr=f)}function Ba(f){var r={call_from:"default"};f&&(r=L.extend(r,f));if(ra){dzsap_syncList_players.length?ra.parent().removeClass("is-empty"):ra.parent().addClass("is-empty");ra.find(".dzstooltip--inner").html("");
var z="",F;for(F in dzsap_syncList_players)f=dzsap_syncList_players[F],f.hasClass("number-wrapper")||f.hasClass("for-number-wrapper")||(z+='<div class="playlist-menu-item"',L.each(f.get(0).attributes,function(){this.specified&&this.name&&"id"!=this.name&&"style"!=this.name&&(z+=" "+this.name+'="'+this.value+'"')}),z+=">",z+='<div class="pi-thumb-con">',z+='<div class="pi-thumb divimage" style="background-image: url('+f.attr("data-thumb")+')">',z+="</div>",z+="</div>",z+='<div class="pi-meta-con">',
z+='<div class="pi-the-artist">',z+=f.find(".the-artist").eq(0).text(),z+="</div>",z+='<div class="pi-the-name">',z+=f.find(".the-name").eq(0).text(),z+="</div>",z+="</div>",z+='<div class="the-sort-handle">',z+=y.svg_arrow_resize,z+="</div>",z+="</div>");ra.find(".dzstooltip--inner").append(z);d.on("mousedown",".the-sort-handle",wa);L(document).on("mousemove.dzsap_playlist_item",function(N){if(window.dzsap_moving_playlist_item){var ma=N.clientY;ma-=dzsap_playlist_con.offset().top;dzsap_playlist_item_moving.css("top",
ma-20);dzsap_playlist_item_target.parent().children(':not(".target-playlist-item"):not(".cloner")').each(function(){var Ta=L(this),hc=Ta.offset().top-dzsap_playlist_con.offset().top;ma>hc&&Ta.after(dzsap_playlist_item_target)});50>ma&&dzsap_playlist_item_target.parent().prepend(dzsap_playlist_item_target)}});L(document).on("mouseup.dzsap_playlist_item",function(N){window.dzsap_moving_playlist_item&&(window.dzsap_moving_playlist_item=!1,dzsap_playlist_item_moving.parent().children(".cloner").remove(),
dzsap_playlist_item_target.removeClass("target-playlist-item"),dzsap_playlist_item_moving.remove(),dzsap_playlist_item_target=dzsap_playlist_item_moving=null)})}else console.error("no tooltip .. why, should be here?")}function ka(){"skin-wave"==m.design_skin&&"bigwavo"==a.skinwave_mode&&(a._audioplayerInner.after(a._scrubbar),d.find(".feed-description")&&(a.$conControls.after(d.find(".feed-description").eq(0)),a.$conControls.next().removeClass("feed-description").addClass("song-desc")));nb=c.radio_setUpdateSongName(a,
nb);ob=c.radio_setUpdateArtistName(a,ob);"on"==m.disable_scrub&&d.addClass("disable-scrubbar");"on"==m.design_animateplaypause&&d.addClass("playing-animation");var f='<div class="btn-embed-code-con dzstooltip-con "><div class="btn-embed-code player-but "> <div class="the-icon-bg"></div>'+y.svg_embed_btn+'</div><span class="dzstooltip   transition-slidein arrow-bottom talign-end style-rounded color-dark-light " style="width: 350px; "><span class="dzstooltip--inner"><span class="embed-code--text"></span></span></span></div>';
""!==m.embed_code&&("skin-wave"===m.design_skin?"on"===m.enable_embed_button&&a._apControlsRight&&(a._apControlsRight.appendOnce(f),a.$embedButton=a._apControlsRight.find(".btn-embed-code-con").eq(0),a.$embedButton.find(".btn-embed-code").addClass("player-but")):"on"===m.enable_embed_button&&(a._audioplayerInner.appendOnce(f),a.$embedButton=a._audioplayerInner.find(".btn-embed-code-con").eq(0)),a.$embedButton&&a.$embedButton.find(".embed-code--text").text(m.embed_code),d.on("click",".btn-embed-code-con, .btn-embed",
function(){var r=L(this);c.select_all(r.find(".dzstooltip").get(0))}),d.on("click",".copy-embed-code-btn",function(){var r=L(this);c.select_all(r.parent().parent().find(".dzstooltip--inner > span").get(0));document.execCommand("copy");setTimeout(function(){c.select_all(r.get(0))},100)}));"on"===m.footer_btn_playlist&&0==a._apControlsRight.find(".btn-footer-playlist").length&&(a._apControlsRight.append('<div class="btn-footer-playlist for-hover dzstooltip-con player-but"> <div class="tooltip-indicator tooltip-indicator--btn-footer-playlist"><div class="the-icon-bg"></div> '+
y.svg_footer_playlist+'    </div><div class="dzstooltip playlist-tooltip style-default color-light-dark arrow-bottom talign-end transition-scaleup active2"><div class="dzstooltip--inner"> </div></div></div>'),ra=d.find(".playlist-tooltip"),setTimeout(function(){Ba()},100),setTimeout(function(){},1E3));""!=m.settings_extrahtml&&(-1<String(m.settings_extrahtml).indexOf("{{get_likes}}")&&(a.index_extrahtml_toloads++,e.ajax_get_likes.bind(a)()),-1<String(m.settings_extrahtml).indexOf("{{get_plays}}")?
(a.index_extrahtml_toloads++,e.ajax_get_views.bind(a)()):1===a.increment_views&&(e.ajax_submit_views.bind(a)(),a.increment_views=2),-1<String(m.settings_extrahtml).indexOf("{{get_rates}}")&&(a.index_extrahtml_toloads++,e.ajax_get_rates.bind(a)()),m.settings_extrahtml=String(m.settings_extrahtml).replace("{{heart_svg}}",y.svg_heart_icon),m.settings_extrahtml=String(m.settings_extrahtml).replace("{{embed_code}}",m.embed_code),0==a.index_extrahtml_toloads&&d.find(".extra-html").addClass("active"),setTimeout(function(){d.find(".extra-html").addClass("active");
0===d.find(".float-left").length?d.find(".extra-html").append(d.find(".extra-html-extra")):d.find(".extra-html .float-left").append(d.find(".extra-html-extra"));d.find(".extra-html-extra").children().eq(0);d.find(".extra-html-extra").children().unwrap();-1<d.find(".extra-html").html().indexOf("dzsap-multisharer-but")&&(a.isMultiSharer=!0)},2E3));d.find(".con-after-playpause").length&&a.$conPlayPause.after(d.find(".con-after-playpause").eq(0));0<d.find(".afterplayer").length&&d.append(d.find(".afterplayer"))}
function eb(){d.hasClass("zoomsounds-wrapper-bg-bellow")&&0===d.find(".dzsap-wrapper-buts").length&&(d.append('<div class="temp-wrapper"></div>'),d.find(".temp-wrapper").append(a.settings_extrahtml_in_float_right),d.find(".temp-wrapper").children("*:not(.dzsap-wrapper-but)").remove(),d.find(".temp-wrapper > .dzsap-wrapper-but").unwrap(),d.children(".dzsap-wrapper-but").each(function(){var f=L(this).html();f=f.replace("{{heart_svg}}",y.svg_heart_icon);f=f.replace("{{svg_share_icon}}",y.svg_share_icon);
L(this).get(0)&&-1<L(this).get(0).outerHTML.indexOf("dzsap-multisharer-but")&&(a.isMultiSharer=!0);L(this).html(f)}).wrapAll('<div class="dzsap-wrapper-buts"></div>'));"skin-customcontrols"===m.design_skin&&(d.html(String(d.html()).replace("{{svg_play_icon}}",y.svg_play_icon)),d.html(String(d.html()).replace("{{svg_pause_icon}}",y.pausebtn_svg)))}function U(){d.find(".dzsap-multisharer-but").data("cthis",d);d.data("embed_code",m.embed_code);a.isMultiSharer&&window.dzsap_init_multisharer()}function bb(f){var r=
{call_from:"default"};f&&L.extend(r,f);f=[];if("on"!=m.pcm_data_try_to_generate||"on"!=m.pcm_data_try_to_generate_wait_for_real_pcm){for(r=0;200>r;r++)f[r]=Number(Math.random()).toFixed(2);f=JSON.stringify(f);d.addClass("rnd-pcm-for-now");d.attr("data-pcm",f)}c.scrubbar_modeWave_setupCanvas({},a)}function xa(){if("on"!==m.skinwave_enableSpectrum)if("canvas"===m.skinwave_wave_mode)d.attr("data-pcm")?(a.isRealPcm=!0,c.scrubbar_modeWave_setupCanvas({},a)):bb();else{if("image"==m.skinwave_wave_mode){var f=
'<img class="scrub-bg--img" src="'+d.attr("data-scrubbg")+'"/>';a._scrubbar.children(".scrub-bg").eq(0).append(f);setTimeout(function(){X()},300);f='<img class="scrub-prog--img" src="'+d.attr("data-scrubprog")+'"/>';a._scrubbar.children(".scrub-prog").eq(0).append(f);setTimeout(function(){X()},300)}}else c.scrubbar_modeWave_setupCanvas({},a),ya=d.find(".scrub-bg-img").eq(0),ya.get(0).getContext("2d")}function za(f){var r={do_not_autoplay:!1,called_from:"default"};f&&(r=L.extend(r,f));if("icecast"==
a.audioType||"shoutcast"==a.audioType)a.audioType="selfHosted";"off"==m.cueMedia&&"auto"==a.ajax_view_submitted&&(a.increment_views=1,-1<String(m.settings_extrahtml).indexOf("{{get_plays}}")?a.ajax_view_submitted="on":a.ajax_view_submitted="off");if(1!=a.playerIsLoaded&&"youtube"!=d.attr("data-original-type")){if("youtube"==a.audioType&&(T(),String(d.attr("data-source")).indexOf("youtube.com/watch"))){f=d.attr("data-source");var z=String(f).split("youtube.com/watch?v=");z[1]&&(f=z[1],-1<z[1].indexOf("&")&&
(f=String(z[1]).split("&")[0]),d.attr("data-source",f))}"youtube"==a.audioType&&("on"!=m.settings_exclude_from_list&&v&&-1==v.indexOf(d)&&v&&"on"!=d.attr("data-do-not-include-in-list")&&v.push(d),t.push(d),"change_media"==r.called_from&&(pb=!1,a.$mediaNode_&&a.$mediaNode_.destroy&&(a.$mediaNode_.destroy(),console.log("DESTROYED LAST PLAYERS")),a.$theMedia.children().remove()),a.$theMedia.append('<div id="'+Sa+'"></div>'),d.get(0).fn_yt_ready=H,window.YT&&H(Sa),d.addClass("media-setuped"),d.addClass("meta-loaded"),
a._sourcePlayer&&a._sourcePlayer.addClass("meta-loaded"));z=f="";c.is_ios()&&(m.preload_method="metadata");if("selfHosted"===a.audioType||"soundcloud"===a.audioType)f=f+'<audio preload="'+(m.preload_method+'"'),"on"===m.skinwave_enableSpectrum&&(f+=' crossOrigin="anonymous"'),c.is_ios()&&"change_media"===r.called_from&&(f+=" autoplay"),f+=">",z="",a.data_source&&(a.data_source||"icecast"===ua||(a.data_source=d.attr("data-source")),"fake"!=a.data_source?(z+='<source src="'+a.data_source+'" type="audio/mpeg">',
void 0!=d.attr("data-sourceogg")&&(z+='<source src="'+d.attr("data-sourceogg")+'" type="audio/ogg">')):d.addClass("meta-loaded meta-fake")),qb=f+z+"</audio>","change_media"==r.called_from?(a.$watermarkMedia_&&a.$watermarkMedia_.pause&&a.$watermarkMedia_.pause(),a.$theMedia.find(".the-watermark").remove(),a.$watermarkMedia_=null,c.is_ios()||c.is_android()?a.$mediaNode_&&(a.$theMedia.children().remove(),L(a.$mediaNode_).append(z),a.$mediaNode_.addEventListener("loadedmetadata",function(F){d.addClass("meta-loaded");
d.removeClass("meta-fake");a._sourcePlayer&&a._sourcePlayer.addClass("meta-loaded")},!0),a.$mediaNode_.load&&a.$mediaNode_.load()):(a.$theMedia.append(qb),a.$mediaNode_=a.$theMedia.children("audio").get(0))):(a.$theMedia.children().remove(),a.$theMedia.append(qb),a.$mediaNode_=a.$theMedia.children("audio").get(0),(c.is_ios()||c.is_android())&&"retrieve_soundcloud_url"==r.called_from&&setTimeout(function(){Aa()},500)),d.attr("data-soft-watermark")&&(a.$theMedia.append('<audio class="the-watermark" preload="metadata" loop><source src="'+
d.attr("data-soft-watermark")+'" /></audio>'),a.$watermarkMedia_=a.$theMedia.find(".the-watermark").get(0),a.$watermarkMedia_.volume&&(a.$watermarkMedia_.volume=Ua*m.watermark_volume)),a.$mediaNode_&&a.$mediaNode_.addEventListener&&"fake"!=d.attr("data-source")&&(Bb=function(F){console.log("errored out",this,this.audioElement,this.duration,F,F.target.error);if(this.networkState===HTMLMediaElement.NETWORK_NO_SOURCE&&0==c.dzsap_is_mobile()&&0==d.hasClass("errored-out"))if(console.log("%c could not load audio source - ",
"color:#ff2222;",d.attr("data-source")),5>Nb)setTimeout(function(ma){a.$mediaNode_&&(a.$mediaNode_.src="");setTimeout(function(){a.$mediaNode_&&(a.$mediaNode_.src=d.attr("data-source"),a.$mediaNode_.load())},1E3)},1E3,F),Nb++;else if("on"==m.notice_no_media){d.addClass("errored-out");var N="error - file does not exist...";F.target.error&&(N=F.target.error.message);d.append('<div class="feedback-text">'+N+" </div>")}},a.$mediaNode_.addEventListener("error",Bb,!0),a.$mediaNode_.addEventListener("loadedmetadata",
function(F){d.addClass("meta-loaded");d.removeClass("meta-fake");a._sourcePlayer&&(a._sourcePlayer.addClass("meta-loaded"),a._sourcePlayer.removeClass("meta-fake"));"change_media"==r.called_from&&0==d.hasClass("init-loaded")&&ja({call_from:"force_reload_change_media"});("change_media"==r.called_from||a._sourcePlayer)&&fb&&setTimeout(function(){Ka(fb,{call_from:"change_media"})},50)},!0));d.addClass("media-setuped");if("change_media"==r.called_from)return!1;if("youtube"!=a.audioType){"fake"==d.attr("data-source")?
(c.is_ios()||c.is_android())&&ja(r):c.is_ios()?setTimeout(function(){ja(r)},1E3):gb=setInterval(function(){var F=r,N={do_not_autoplay:!1};a._actualPlayer&&c.is_ios()||(F&&(N=L.extend(N,F)),"youtube"==a.audioType?ja(N):"undefined"!=typeof a.$mediaNode_&&a.$mediaNode_&&("AUDIO"!=a.$mediaNode_.nodeName||"shoutcast"==m.type?ja(N):0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")?1<=a.$mediaNode_.readyState&&(ja(N),clearInterval(gb),m.action_audio_loaded_metadata&&m.action_audio_loaded_metadata(d)):
2<=a.$mediaNode_.readyState&&(ja(N),clearInterval(gb),m.action_audio_loaded_metadata&&m.action_audio_loaded_metadata(d))))},50);"none"==m.preload_method&&setTimeout(function(){a.$mediaNode_&&L(a.$mediaNode_).attr("preload","metadata")},Number(window.dzsap_player_index)+18E3);if("skin-customcontrols"==m.design_skin||"skin-customhtml"==m.design_skin)d.find(".custom-play-btn,.custom-pause-btn").off("click"),d.find(".custom-play-btn,.custom-pause-btn").on("click",ha);m.failsafe_repair_media_element&&
(setTimeout(function(){if(a.$theMedia.children().eq(0).get(0)&&"AUDIO"==a.$theMedia.children().eq(0).get(0).nodeName)return!1;a.$theMedia.html("");a.$theMedia.append(qb);var F=a.player_playing;Aa();a.$mediaNode_=a.$theMedia.children("audio").get(0);F&&(F=!1,setTimeout(function(){na({called_from:"aux_was_playing"})},20))},m.failsafe_repair_media_element),m.failsafe_repair_media_element="")}"skin-wave"==m.design_skin&&"on"==m.skinwave_enableSpectrum&&c.player_initSpectrumOnUserAction(a);Cb=!0}}function hb(){a.$mediaNode_&&
a.$mediaNode_.removeEventListener("error",Bb,!0);L(a.$mediaNode_).remove();a.$mediaNode_=null;Cb=!1;a.playerIsLoaded=!1}function ab(){Aa();a.$mediaNode_&&"audio"==m.type&&(a.$mediaNode_.innerHTML="",a.$mediaNode_.load());c.is_ios()||c.is_android()||!a.$theMedia||(a.$theMedia.children().remove(),a.playerIsLoaded=!1);hb()}function Va(){if(Ob)return!1;Ob=!0;a._scrubbar.unbind("mousemove");a._scrubbar.unbind("mouseleave");a._scrubbar.unbind("click");a._scrubbar.bind("mousemove",Db);a._scrubbar.bind("mouseleave",
Db);a._scrubbar.bind("click",Db);a.$controlsVolume.on("click",".volumeicon",ic);a.$controlsVolume.bind("mousemove",rb);a.$controlsVolume.bind("mousedown",rb);L(document).on("mouseup",window,rb);if("skin-silver"==m.design_skin)d.on("click",".volume-holder",rb);d.find(".playbtn").unbind("click");setTimeout(Ga,300);setTimeout(Ga,2E3);0<m.settings_trigger_resize&&setInterval(Ga,m.settings_trigger_resize);d.addClass("listeners-setuped");return!1}function va(){return fb}function ja(f){d.attr("id");if(!d.hasClass("dzsap-loaded")){var r=
{do_not_autoplay:!1,call_from:"init"};f&&(r=L.extend(r,f));setTimeout(function(){Pb=!0},5E3);"undefined"!=typeof a.$mediaNode_&&a.$mediaNode_&&"AUDIO"==a.$mediaNode_.nodeName&&a.$mediaNode_.addEventListener("ended",Wa);clearInterval(gb);clearTimeout(gb);Va();setTimeout(function(){a.$currTime&&0<a.$currTime.outerWidth()&&(Eb=a.$currTime.outerWidth())},1E3);u.scrubModeWave__checkIfWeShouldTryToGetPcm(a,{called_from:"init_loaded()"});"fake"!=a.audioType&&"force_reload_change_media"!=r.call_from&&("on"!=
m.settings_exclude_from_list&&v&&-1==v.indexOf(d)&&null==a._actualPlayer&&v.push(d),"on"==m.type_audio_stop_buffer_on_unfocus&&(d.data("type_audio_stop_buffer_on_unfocus","on"),d.get(0).api_destroy_for_rebuffer=function(){"audio"==m.type&&(oa=a.$mediaNode_.currentTime);ab();Fb=!0}));"auto"==a.ajax_view_submitted&&setTimeout(function(){"auto"==a.ajax_view_submitted&&(a.ajax_view_submitted="off")},1E3);a.playerIsLoaded=!0;"fake"!=a.data_source&&d.addClass("dzsap-loaded");"default"==m.default_volume&&
(Ua=1);0==isNaN(Number(m.default_volume))?Ua=Number(m.default_volume):"last"==m.default_volume&&(Ua=null!=localStorage&&a.the_player_id?localStorage.getItem("dzsap_last_volume_"+a.the_player_id)?localStorage.getItem("dzsap_last_volume_"+a.the_player_id):1:1);m.volume_from_gallery&&(Ua=m.volume_from_gallery);Ka(Ua,{call_from:"from_init_loaded"});a.pseudo_sample_time_start&&(oa=a.pseudo_sample_time_start);G.isInt(oa)&&ta(oa,{call_from:"from_playfrom"});"last"==oa&&"undefined"!=typeof Storage&&(setTimeout(function(){Ab=
!0}),"undefined"!=typeof localStorage["dzsap_"+a.the_player_id+"_lastpos"]&&ta(localStorage["dzsap_"+a.the_player_id+"_lastpos"],{call_from:"last_pos"}));1!=r.do_not_autoplay&&"on"==m.autoplay&&"on"==m.cueMedia&&na({called_from:"do not autoplay not true ( init_loaded() ) "});a.$mediaNode_&&a.$mediaNode_.duration&&d.addClass("meta-loaded");Y({fire_only_once:!1});"off"==m.autoplay&&(db=!0);d.addClass("init-loaded");setTimeout(function(){S({call_from:"set timeout 500"});Y({fire_only_once:!0});d.find(".wave-download").bind("click",
wa)},500);setTimeout(function(){S({call_from:"set timeout 1000"});Y({fire_only_once:!0})},1E3);setTimeout(function(){},2E3);0===Qb&&m.action_video_contor_60secs&&(Qb=setInterval(sb,3E4))}}function sb(){m.action_video_contor_60secs&&d.hasClass("is-playing")&&m.action_video_contor_60secs(d,"")}function wa(f){var r=L(this);if("click"==f.type){r.hasClass("wave-download")&&e.ajax_submit_download.bind(a)();r.hasClass("prev-btn")&&(console.log("click_prev_btn()"),m.parentgallery&&m.parentgallery.get(0)?
m.parentgallery.get(0).api_goto_prev():Ca());r.hasClass("next-btn")&&(m.parentgallery&&m.parentgallery.get(0)?m.parentgallery.get(0).api_goto_next():La());r.hasClass("tooltip-indicator--btn-footer-playlist")&&r.parent().find(".dzstooltip").toggleClass("active");if(r.hasClass("playlist-menu-item")){var z=r.parent().children().index(r);pa(z,{call_from:"handle_mouse"})}r.hasClass("zoomsounds-btn-go-beginning")&&(z=d,a._actualPlayer&&(z=a._actualPlayer),z.get(0).api_seek_to_0());r.hasClass("zoomsounds-btn-step-backward")&&
(z=d,a._actualPlayer&&(z=a._actualPlayer),z.get(0).api_step_back());r.hasClass("zoomsounds-btn-step-forward")&&(z=d,a._actualPlayer&&(z=a._actualPlayer),z.get(0).api_step_forward());r.hasClass("zoomsounds-btn-slow-playback")&&(z=d,a._actualPlayer&&(z=a._actualPlayer),z.get(0).api_playback_slow());r.hasClass("zoomsounds-btn-reset")&&(z=d,a._actualPlayer&&(z=a._actualPlayer),z.get(0).api_playback_reset());r.hasClass("btn-zoomsounds-download")&&e.ajax_submit_download.bind(a)();r.hasClass("dzsap-repeat-button")&&
ta(0,{call_from:"repeat"});r.hasClass("dzsap-loop-button")&&(r.hasClass("active")?(r.removeClass("active"),tb=!1):(r.addClass("active"),tb=!0),console.log("loop_active - ",tb,d))}"mousedown"==f.type&&(r=r.parent(),r.parent().append(r.clone().addClass("cloner")),z=r.parent().children(".cloner").eq(0),dzsap_playlist_con=r.parent(),dzsap_moving_playlist_item=!0,dzsap_playlist_item_target=r,dzsap_playlist_item_moving=z,r.addClass("target-playlist-item"));"mouseenter"==f.type&&("on"==m.preview_on_hover&&
(ib(0),na({called_from:"preview_on_hover"}),console.log("mouseover")),window.dzsap_mouseover=!0);"mouseleave"==f.type&&("on"==m.preview_on_hover&&(ib(0),Aa()),window.dzsap_mouseover=!1)}function Na(f){var r=L(this);if(0!=d.has(r).length){if("mouseleave"==f.type){var z=100*Number(d.find(".star-rating-con").eq(0).attr("data-initial-rating-index"));-1<a.starrating_alreadyrated&&0<a.starrating_alreadyrated&&(z=100*a.starrating_alreadyrated/5);d.find(".rating-prog").css({width:z+"%"})}"mousemove"==f.type&&
(z=f.pageX-r.offset().left,r.offset(),Ma=Math.round(z/(r.outerWidth()/5)),Ma=4<Ma?5:Math.round(Ma),1>Ma&&(Ma=1),d.find(".rating-prog").css({width:Ma/5*100+"%"}),a.starrating_alreadyrated=-1,d.find(".star-rating-set-clip").css({opacity:0}));"click"!=f.type||-1<a.starrating_alreadyrated&&0<a.starrating_alreadyrated||e.ajax_submit_rating.bind(a)(Ma)}}function Xa(){if("wave"===a.initOptions.scrubbar_type){if("on"===a.initOptions.skinwave_enableSpectrum){if(!a.player_playing)return!1;ya&&(Gb=ya.width(),
jb=ya.height(),ya.get(0).width=Gb,ya.get(0).height=jb);"soundcloud"==a.initOptions.type?a.lastArray=c.generateFakeArrayForPcm():a.spectrum_analyser&&(a.lastArray=new Uint8Array(a.spectrum_analyser.frequencyBinCount),a.spectrum_analyser.getByteFrequencyData(a.lastArray));if(a.lastArray&&a.lastArray.length){for(var f=a.lastArray.length,r=f-1;0<=r;r--)a.lastArray[r]=r<f/2?a.lastArray[r]/255*jb:a.lastArray[f-r]/255*jb;if(a.last_lastarray)for(f=0;f<a.last_lastarray.length;f++)Hb=a.last_lastarray[f],Rb=
a.lastArray[f]-Hb,Sb=3,a.lastArray[f]=Math.easeIn(1,Hb,Rb,Sb);u.draw_canvas(ya.get(0),a.lastArray,""+a.initOptions.design_wave_color_bg,{call_from:"spectrum",selfClass:a,skinwave_wave_mode_canvas_waves_number:parseInt(a.initOptions.skinwave_wave_mode_canvas_waves_number),skinwave_wave_mode_canvas_waves_padding:parseInt(a.initOptions.skinwave_wave_mode_canvas_waves_padding)});a.lastArray&&(a.last_lastarray=a.lastArray.slice())}}if(a.$currTime&&a.$currTime.length&&"on"!=a.initOptions.skinwave_timer_static){0>
fa&&(fa=0);fa=parseInt(fa,10);if(2>fa&&d.data("promise-to-play-footer-player-from"))return!1;a.$currTime.css({left:fa});fa>ea-Eb&&a.$currTime.css({left:ea-Eb});fa>ea-30&&ea?a.$totalTime.css({opacity:1-(fa-(ea-30))/30}):"1"!=a.$totalTime.css("opacity")&&a.$totalTime.css({opacity:""})}}a.$currTime&&(0==Ib&&a.$currTime.html(c.formatTime(sa)),la&&-1<la&&(d.addClass("time-total-visible"),0==Tb&&(a.initOptions.action_received_time_total&&a.initOptions.action_received_time_total(la,d),Tb=!0)),la!=Ub&&(a.$totalTime.html(c.formatTime(la)),
a.$totalTime.fadeIn("fast")))}function Q(){0==a.timeTotal&&(a.timeTotal=la);fa=a.timeCurrent/a.timeTotal*ea;a._actualPlayer&&0<sa&&0<la&&(fa=sa/la*ea);isNaN(fa)&&(fa=0);fa>ea&&(fa=ea);-1==a.timeCurrent&&(fa=0);if(0==a.timeTotal||"-1"==a.timeTotal||isNaN(a.timeTotal))fa=0;if(2>fa&&d.data("promise-to-play-footer-player-from"))return!1;null==a.spectrum_audioContext_buffer&&a.$$scrubbProg&&(a.$$scrubbProg.style.width=parseInt(fa,10)+"px")}function S(f){var r={call_from:"default"};f&&L.extend(r,f);("selfHosted"==
a.audioType||"fake"==a.audioType&&a._actualPlayer)&&"shoutcast"!=m.type&&(a.$mediaNode_&&0==isNaN(a.$mediaNode_.duration)&&(Ra=a.$mediaNode_.duration),a.$mediaNode_&&null==a._actualPlayer&&(Ha=a.$mediaNode_.currentTime),a._actualPlayer&&(a.timeCurrent=sa),"last"==oa&&Ab&&"undefined"!=typeof Storage&&(localStorage["dzsap_"+a.the_player_id+"_lastpos"]=a.timeCurrent));null===a._actualPlayer&&-1<Ha&&(sa=a.timeCurrent=Ha);null===a._actualPlayer&&-1<Ra&&(la=a.timeTotal=Ra)}function Y(f){var r={fire_only_once:!1};
f&&(r=L.extend(r,f));if(cb)return console.log("DESTROYED"),!1;if(0==r.fire_only_once&&db)return requestAnimFrame(Y),!1;S({call_from:"checK_time"});a.pseudo_sample_time_start&&(sa<a.pseudo_sample_time_start&&(sa=a.pseudo_sample_time_start),a.pseudo_sample_time_end&&a.timeCurrent>a.pseudo_sample_time_end&&(f={call_from:"time_curr>pseudo_sample_time_end"},Wa(f),Oa=!0,clearTimeout(kb),kb=setTimeout(function(){Oa=!1},1E3)));null==a._actualPlayer&&0==a.pseudo_sample_time_start&&0<a.sample_time_start&&(sa=
a.sample_time_start+Ha);0<a.sample_time_total&&(la=a.sample_time_total);Q();a._sourcePlayer&&(a._sourcePlayer.get(0)&&a._sourcePlayer.get(0).api_get_time_curr&&((isNaN(a._sourcePlayer.get(0).api_get_time_total())||""==a._sourcePlayer.get(0).api_get_time_total()||1>a._sourcePlayer.get(0).api_get_time_total())&&a._sourcePlayer.get(0).api_set_time_total(la),a._sourcePlayer.get(0).api_set_time_curr(a.timeCurrent)),a._sourcePlayer.get(0)&&a._sourcePlayer.get(0).api_seek_to_visual?(f=a.timeCurrent,0==a.pseudo_sample_time_start&&
a.sample_time_start&&(f-=a.sample_time_start),a._sourcePlayer.get(0).api_seek_to_visual(f/a.timeTotal)):console.log("warning .. no seek to visual"));if("skin-minimal"==m.design_skin)if(Vb)if(a.player_playing||!1===a.isCanvasFirstDrawn){if(a.skin_minimal_canvasplay){f=a.skin_minimal_canvasplay.getContext("2d");var z=a.skin_minimal_canvasplay.width,F=a.skin_minimal_canvasplay.height,N=z/100,ma=F/100;fa=a.timeCurrent/a.timeTotal*Math.PI*2;isNaN(fa)&&(fa=0);fa>2*Math.PI&&(fa=2*Math.PI);f.clearRect(0,
0,z,F);f.beginPath();f.arc(50*N,50*ma,40*N,0,2*Math.PI,!1);f.fillStyle="rgba(0,0,0,0.1)";f.fill();f.beginPath();f.arc(50*N,50*ma,34*N,0,fa,!1);f.lineWidth=10*N;f.strokeStyle="rgba(0,0,0,0.3)";f.stroke();a.isCanvasFirstDrawn=!0}}else return 1!=r.fire_only_once&&requestAnimFrame(Y),!1;else a.$conPlayPause.addClass("canvas-fallback");Xa();Pb&&1<a.timeTotal&&a.timeCurrent>=a.timeTotal-.07&&(f={call_from:"selfClass.timeTotal > 0 && selfClass.timeCurrent >= selfClass.timeTotal - 0.07 ... "},a._actualPlayer||
(Wa(f),Oa=!0,clearTimeout(kb),kb=setTimeout(function(){Oa=!1},1E3)));1!=r.fire_only_once&&requestAnimFrame(Y);Ub=la;a.spectrum_audioContext&&a.$totalTime&&a.$totalTime.html(c.formatTime(la))}function ha(f){d.hasClass("prevent-bubble")&&f&&f.stopPropagation&&(f.preventDefault(),f.stopPropagation());var r=L(this),z=!1;if(!d.hasClass("listeners-setuped")){L(a.$mediaNode_).attr("preload","auto");Va();ja();var F=setInterval(function(){a.$mediaNode_&&a.$mediaNode_.duration&&0==isNaN(a.$mediaNode_.duration)&&
(mb=a.$mediaNode_.duration,a.timeTotal=mb,d.addClass("meta-loaded"),a.$totalTime&&a.$totalTime.html(c.formatTime(la)),clearInterval(F))},1E3)}if("skin-minimal"==m.design_skin){var N=r.offset().left+Da/2;r=r.offset().top+Da/2;var ma=f.pageX;f=f.pageY;var Ta=.005*-(ma-N-Da/2);f<r&&(Ta=.5+(.5-Ta));if(20<Math.abs(f-r)||20<Math.abs(ma-N))ib(Ta,{call_from:"skin_minimal_scrub"}),z=!0,Y({fire_only_once:!0})}0==z&&(0==a.player_playing?na({called_from:"click_playpause"}):Aa());return!1}function Ca(){if(a._actualPlayer)return a._actualPlayer.get(0).api_sync_players_goto_prev(),
!1;if(ra&&ra.children(".dzstooltip--inner").length){var f=a.playlist_inner_currNr-1;0<=f&&pa(f,{call_from:"api_sync_players_prev"})}else if(0<dzsap_syncList_players.length)for(f in dzsap_syncList_players){var r=d;a._sourcePlayer&&(r=a._sourcePlayer);if(dzsap_syncList_players[f].get(0)==r.get(0)&&(f=parseInt(f,10),0<f)){var z=dzsap_syncList_players[f-1].get(0);z&&z.api_play_media&&setTimeout(function(){z.api_play_media({called_from:"api_sync_players_prev"})},200)}}}function La(){if(a._actualPlayer)return a._actualPlayer.get(0).api_sync_players_goto_next(),
!1;if(ra&&ra.find(".playlist-menu-item").length){var f=a.playlist_inner_currNr+1;f-1>ra.find(".playlist-menu-item").length||pa(f,{call_from:"api_sync_players_prev"})}else if(f=null,0<dzsap_syncList_players.length)for(var r in dzsap_syncList_players)if(f=d,a._sourcePlayer&&(f=a._sourcePlayer),dzsap_syncList_players[r].get(0)==f.get(0)&&(r=parseInt(r,10),f=r+1,f<dzsap_syncList_players.length)){var z=dzsap_syncList_players[f].get(0);z&&z&&z.api_play_media&&setTimeout(function(){z.api_play_media({called_from:"api_sync_players_prev"})},
200)}}function Wa(f){var r={called_from:"default"};f&&(r=L.extend(r,f));if(Oa)return!1;Oa=!0;kb=setTimeout(function(){Oa=!1},1E3);if(a._actualPlayer&&"fake_player"!=r.call_from)return!1;ta(0,{call_from:"handle_end"});if("on"==m.loop||tb)return na({called_from:"track_end"}),!1;Aa();m.parentgallery&&"undefined"!=typeof m.parentgallery&&m.parentgallery.get(0).api_gallery_handle_end();setTimeout(function(){d.hasClass("is-single-player")&&La()},100);setTimeout(function(){if(a._sourcePlayer&&(a._sourcePlayer.hasClass("is-single-player")||
a._sourcePlayer.hasClass("feeded-whole-playlist")))return a._sourcePlayer.get(0).api_handle_end({call_from:"handle_end() fake_player"}),!1;ub&&ub(d,{})},200)}function Ga(f,r){f={call_from:"default"};r&&L.extend(f,r);L(window).width();Ea=d.width();d.height();ya&&"function"==typeof ya.width&&(Gb=ya.width(),jb=ya.height());720>=Ea?d.addClass("under-720"):d.removeClass("under-720");500>=Ea?(0==d.hasClass("under-500")&&"skin-wave"==m.design_skin&&"normal"==a.skinwave_mode&&a._apControls.append(a._metaArtistCon),
d.addClass("under-500")):(0==d.hasClass("under-500")&&"skin-wave"==m.design_skin&&"normal"==a.skinwave_mode&&a._conPlayPauseCon.after(a._metaArtistCon),d.removeClass("under-500"));ea=Ea;"skin-default"==m.design_skin&&(ea=Ea);"skin-pro"==m.design_skin&&(ea=Ea);if("skin-silver"==m.design_skin||"skin-aria"==m.design_skin)ea=Ea,ea=a._scrubbar.width();"skin-justthumbandbutton"==m.design_skin&&(ea=Ea=d.children(".audioplayer-inner").outerWidth());if("skin-redlights"==m.design_skin||"skin-steel"==m.design_skin)ea=
a._scrubbar.width();"skin-wave"===m.design_skin&&(ea=a._scrubbar.outerWidth(!1),a._scrubbar.outerHeight(!1),a._commentsHolder&&(r=0,a._scrubbar&&d&&a._scrubbar.offset()?r=a._scrubbar.offset().left-d.offset().left:console.log("no scrubbar or cthis",a._scrubbar,d),a._commentsHolder.css({width:ea}),d.hasClass("skin-wave-mode-small")&&a._commentsHolder.css({left:r+"px"}),a._commentsHolder.addClass("active")));1==Wb&&("skin-default"==m.design_skin&&(void 0!=d.get(0)&&"auto"==d.get(0).style.height&&d.height(200),
a._audioplayerInner.height(),"undefined"==typeof d.attr("data-initheight")&&""!=d.attr("data-initheight")?d.attr("data-initheight",a._audioplayerInner.height()):d.attr("data-initheight")),a._audioplayerInner.find(".the-thumb").eq(0).css({}));"none"!=d.css("display")&&(a._scrubbar.find(".scrub-bg-img").eq(0).css({}),a._scrubbar.find(".scrub-prog-img").eq(0).css({width:a._scrubbar.children(".scrub-bg").width()}),a._scrubbar.find(".scrub-prog-canvas").eq(0).css({width:a._scrubbar.children(".scrub-bg").width()}),
a._scrubbar.find(".scrub-prog-img-reflect").eq(0).css({width:a._scrubbar.children(".scrub-bg").width()}),a._scrubbar.find(".scrub-prog-canvas-reflect").eq(0).css({width:a._scrubbar.children(".scrub-bg").width()}));d.removeClass("under-240 under-400");240>=Ea&&d.addClass("under-240");500>=Ea?(d.addClass("under-400"),0==Ya&&(Ya=!0,Xb())):1==Ya&&(Ya=!1,Xb());if("skin-wave"==m.design_skin){Pa=0;0<d.find(".the-thumb").length&&(Pa+=d.find(".the-thumb").width()+20);Pa+=70;a._scrubbar.eq(0).height();"small"==
a.skinwave_mode&&(Pa-=80,Pa+=13,a.$conPlayPause.css({}),Pa+=a.$conPlayPause.outerWidth()+10);if(a._metaArtistCon&&"none"!=a._metaArtistCon.css("display")){if("skin-wave"!=m.design_skin||"small"!=a.skinwave_mode)a._metaArtistCon.css({}),"skin-wave"==m.design_skin&&"small"!=a.skinwave_mode&&a._metaArtistCon.css({});Pa+=a._metaArtistCon.outerWidth()}a.$controlsVolume&&a.$controlsVolume.css("display");"small"==a.skinwave_mode&&(a._scrubbar.css({}),ea=a._scrubbar.width(),a._scrubbar.find(".scrub-bg--img").eq(0).css({width:ea}),
a._scrubbar.find(".scrub-prog--img").eq(0).css({width:ea}));"canvas"==m.skinwave_wave_mode&&d.attr("data-pcm")&&(100==a._scrubbarbg_canvas.width()&&a._scrubbarbg_canvas.width(a._scrubbar.width()),"fake"!=a.data_source&&(lb?(clearTimeout(lb),lb=setTimeout(Yb,500)):(Yb(),lb=1)))}"skin-minimal"==m.design_skin&&(Da=a._apControls.width(),a.skin_minimal_canvasplay&&(a.skin_minimal_canvasplay.style.width=Da,a.skin_minimal_canvasplay.width=Da,a.skin_minimal_canvasplay.style.height=Da,a.skin_minimal_canvasplay.height=
Da,L(a.skin_minimal_canvasplay).css({width:Da,height:Da})));"skin-default"==m.design_skin&&a.$currTime&&(parseInt(a._metaArtistCon.css("left"),10),a._metaArtistCon.outerWidth(),"none"==a._metaArtistCon.css("display")&&(a._metaArtistCon_w=0),isNaN(a._metaArtistCon_l)&&(a._metaArtistCon_l=20));"skin-minion"==m.design_skin&&(r=parseInt(a.$conControls.find(".con-playpause").eq(0).offset().left,10)-parseInt(a.$conControls.eq(0).offset().left,10)-18,a.$conControls.find(".prev-btn").eq(0).css({top:0,left:r}),
r+=36,a.$conControls.find(".next-btn").eq(0).css({top:0,left:r}));"on"==m.embedded&&window.frameElement&&(r={height:d.outerHeight()},m.embedded_iframe_id&&(r.embedded_iframe_id=m.embedded_iframe_id),window.parent.postMessage({name:"resizeIframe",params:r},"*"));Q();0<m.settings_trigger_resize&&m.parentgallery&&void 0!=L(m.parentgallery).get(0)&&void 0!=L(m.parentgallery).get(0).api_handleResize&&L(m.parentgallery).get(0).api_handleResize()}function Xb(){m.restyle_player_over_400&&m.restyle_player_under_400&&
(Ya?(console.log("RESTYLING WITH CLASS -> ",m.restyle_player_under_400),d.removeClass(m.restyle_player_over_400),d.addClass(m.restyle_player_under_400)):(console.log("RESTYLING WITH CLASS -> ",m.restyle_player_over_400),d.removeClass(m.restyle_player_under_400),d.addClass(m.restyle_player_over_400)),c.player_detect_skinwave_mode.bind(a)(),Ia(),a._audioplayerInner.append(d.find(".meta-artist-con")),d.find(".ap-controls").remove(),a._audioplayerInner.children(".the-thumb-con").remove(),Ya?(console.log("RESTYLING WITH CLASS -> ",
m.restyle_player_under_400),d.removeClass(m.restyle_player_over_400),d.addClass(m.restyle_player_under_400)):(d.css({"padding-top":""}),console.log("RESTYLING WITH CLASS -> ",m.restyle_player_over_400),d.removeClass(m.restyle_player_under_400),d.addClass(m.restyle_player_over_400)),l.setup_structure(a,{setup_inner_player:!1,setup_media:!1,setup_otherstructure:!0,call_from:"reconstruct"}),Va())}function Yb(){u.draw_canvas(a._scrubbarbg_canvas.get(0),d.attr("data-pcm"),"#"+m.design_wave_color_bg,{call_from:"canvas_normal_pcm_bg",
selfClass:a,skinwave_wave_mode_canvas_waves_number:parseInt(m.skinwave_wave_mode_canvas_waves_number,10),skinwave_wave_mode_canvas_waves_padding:parseInt(m.skinwave_wave_mode_canvas_waves_padding)});u.draw_canvas(a._scrubbarprog_canvas.get(0),d.attr("data-pcm"),"#"+m.design_wave_color_progress,{call_from:"canvas_normal_pcm_prog",selfClass:a,skinwave_wave_mode_canvas_waves_number:parseInt(m.skinwave_wave_mode_canvas_waves_number,10),skinwave_wave_mode_canvas_waves_padding:parseInt(m.skinwave_wave_mode_canvas_waves_padding)});
lb=0}function rb(f){var r=L(this),z=null;a.$controlsVolume.find(".volume_static").length&&(z=Number((f.pageX-a.$controlsVolume.find(".volume_static").eq(0).offset().left)/a.$controlsVolume.find(".volume_static").eq(0).width()));if(!z)return!1;"mousemove"==f.type&&Jb&&(r.parent().hasClass("volume-holder")||r.hasClass("volume-holder"),"skin-redlights"==m.design_skin&&(z=Math.round(10*z),z/=10),Ka(z,{call_from:"set_by_mousemove"}),Za=!1);"click"==f.type&&(r.parent().hasClass("volume-holder")&&(z=1-(f.pageY-
a.$controlsVolume.find(".volume_static").eq(0).offset().top)/a.$controlsVolume.find(".volume_static").eq(0).height()),r.hasClass("volume-holder")&&(z=1-(f.pageY-a.$controlsVolume.find(".volume_static").eq(0).offset().top)/a.$controlsVolume.find(".volume_static").eq(0).height()),Ka(z,{call_from:"set_by_mouseclick"}),Za=!1);"mousedown"==f.type&&(Jb=!0,d.addClass("volume-dragging"),r.parent().hasClass("volume-holder")&&(z=1-(f.pageY-a.$controlsVolume.find(".volume_static").eq(0).offset().top)/a.$controlsVolume.find(".volume_static").eq(0).height()),
Ka(z,{call_from:"set_by_mousedown"}),Za=!1);"mouseup"==f.type&&(Jb=!1,d.removeClass("volume-dragging"))}function Db(f){var r=f.pageX;if(L(f.target).hasClass("sample-block-start")||L(f.target).hasClass("sample-block-end"))return!1;"mousemove"==f.type&&(a._scrubbar.children(".scrubBox-hover").css({left:r-a._scrubbar.offset().left}),"on"==m.scrub_show_scrub_time&&a.timeTotal&&(r=(r-a._scrubbar.offset().left)/a._scrubbar.outerWidth()*a.timeTotal,a.$currTime&&(a.$currTime.html(c.formatTime(r)),a.$currTime.addClass("scrub-time")),
Ib=!0));"mouseleave"==f.type&&(Ib=!1,a.$currTime&&a.$currTime.removeClass("scrub-time"),Xa());if("click"==f.type){d.hasClass("prevent-bubble")&&f&&f.stopPropagation&&(f.preventDefault(),f.stopPropagation());0==ea&&(ea=a._scrubbar.width());0==ea&&(ea=300);var z=(f.pageX-a._scrubbar.offset().left)/ea*a.timeTotal;0==a.pseudo_sample_time_start&&0<a.sample_time_start&&(z-=a.sample_time_start);a._actualPlayer&&setTimeout(function(){a._actualPlayer.get(0)&&a._actualPlayer.get(0).api_pause_media&&a._actualPlayer.get(0).api_seek_to_perc(z/
a.timeTotal,{call_from:"from_feeder_to_feed"})},50);ta(z,{call_from:"handleMouseOnScrubbar"});"on"==m.autoplay_on_scrub_click&&0==a.player_playing&&na({called_from:"handleMouseOnScrubbar"});if(d.hasClass("from-wc_loop"))return!1}}function ib(f,r){a._actualPlayer&&(a.timeTotal=la);ta(f*a.timeTotal,r)}function ta(f,r){var z={call_from:"default",deeplinking:"off",call_from_type:"default"};r&&(z=L.extend(z,r));0==f&&(a.timeCurrent=0);"on"==z.deeplinking&&(r=c.add_query_arg(window.location.href,"audio_time",
f),history.pushState({foo:"bar"},null,r));f=c.sanitize_from_point_time(f);a.pseudo_sample_time_start&&(f<a.pseudo_sample_time_start&&(f=a.pseudo_sample_time_start),f>a.pseudo_sample_time_end&&(f=a.pseudo_sample_time_end));if(a._actualPlayer)return r={type:a.actualDataTypeOfMedia,fakeplayer_is_feeder:"on"},a._actualPlayer.length&&a._actualPlayer.data("feeding-from")!=d.get(0)&&("handle_end"!=z.call_from&&"from_playfrom"!=z.call_from&&"last_pos"!=z.call_from?(r.called_from="seek_to from player source->"+
d.attr("data-source")+" < -  old call from - "+z.call_from,a._actualPlayer.get(0).api_change_media?a._actualPlayer.get(0).api_change_media(d,r):console.log("not inited ? ",a._actualPlayer)):(Ha=sa=a.timeCurrent=f,d.data("promise-to-play-footer-player-from",f))),setTimeout(function(){a._actualPlayer.get(0)&&a._actualPlayer.get(0).api_pause_media&&"from_playfrom"!=z.call_from&&"last_pos"!=z.call_from&&a._actualPlayer.get(0).api_seek_to(f,{call_from:"from_feeder_to_feed"})},50),!1;if("youtube"==a.audioType)try{a.$mediaNode_.seekTo(f)}catch(F){console.log("yt seek err - ",
F)}Y({fire_only_once:!0});setTimeout(function(){Y({fire_only_once:!0})},20);if("selfHosted"==a.audioType){if(a.$mediaNode_&&"undefined"!=typeof a.$mediaNode_.currentTime)try{a.$mediaNode_.currentTime=f}catch(F){console.log("error on scrub",F," arg - ",f)}return!1}}function jc(f){0==a.timeTotal&&a.$mediaNode_&&a.$mediaNode_.duration&&(a.timeTotal=a.$mediaNode_.duration);a._actualPlayer&&(a.timeCurrent=sa,a.timeTotal=la);a.timeCurrent=f*a.timeTotal;Y({fire_only_once:!0});setTimeout(function(){Y({fire_only_once:!0})},
20)}function kc(f){"youtube"==a.audioType&&a.$mediaNode_.setPlaybackRate(f);"selfHosted"==a.audioType&&(a.$mediaNode_.playbackRate=f)}function Ka(f,r){var z={call_from:"default"};r&&(z=L.extend(z,r));1<f&&(f=1);0>f&&(f=0);if("from_fake_player_feeder_from_init_loaded"==z.call_from&&a._sourcePlayer){"default"!=m.default_volume&&(vb=!0);if(vb)return!1;vb=!0}if("set_by_mouseclick"==z.call_from||"set_by_mousemove"==z.call_from)vb=!0;"youtube"==a.audioType&&a.$mediaNode_&&a.$mediaNode_.setVolume&&a.$mediaNode_.setVolume(100*
f);"selfHosted"==a.audioType&&(a.$mediaNode_?(a.$mediaNode_.volume=f,a.$watermarkMedia_&&(a.$watermarkMedia_.volume=f*m.watermark_volume)):a.$mediaNode_&&L(a.$mediaNode_).attr("preload","metadata"));Zb(f,z);a._sourcePlayer&&(z.call_from="from_fake_player",a._sourcePlayer.get(0)&&a._sourcePlayer.get(0).api_visual_set_volume(f,z)&&a._sourcePlayer.get(0).api_visual_set_volume(f,z));a._actualPlayer&&"from_fake_player"!=z.call_from&&(z.call_from="from_init_loaded"==z.call_from?"from_fake_player_feeder_from_init_loaded":
"from_fake_player_feeder",a._actualPlayer&&a._actualPlayer.get(0)&&a._actualPlayer.get(0).api_set_volume(f,z)&&a._actualPlayer.get(0).api_set_volume(f,z))}function Zb(f,r){a.$controlsVolume.hasClass("controls-volume-vertical")?a.$controlsVolume.find(".volume_active").eq(0).css({height:a.$controlsVolume.find(".volume_static").eq(0).height()*f}):a.$controlsVolume.find(".volume_active").eq(0).css({width:a.$controlsVolume.find(".volume_static").eq(0).width()*f});"skin-wave"==m.design_skin&&"on"==m.skinwave_dynamicwaves&&
(a._scrubbar.find(".scrub-bg-img").eq(0).css({transform:"scaleY("+f+")"}),a._scrubbar.find(".scrub-prog-img").eq(0).css({transform:"scaleY("+f+")"}));null!=localStorage&&a.the_player_id&&localStorage.setItem("dzsap_last_volume_"+a.the_player_id,f);fb=f}function ic(f){0==Za?($b=fb,Ka(0,{call_from:"from_mute"}),Za=!0):(Ka($b,{call_from:"from_unmute"}),Za=!1)}function ac(f){var r={call_from:"default"};f&&L.extend(r,f);"on"!=m.design_animateplaypause&&(a.$conPlayPause.children(".playbtn").css({display:"block"}),
a.$conPlayPause.children(".pausebtn").css({display:"none"}));a.$conPlayPause.removeClass("playing");d.removeClass("is-playing");a.player_playing=!1;d.parent().hasClass("zoomsounds-wrapper-bg-center")&&d.parent().removeClass("is-playing");m.parentgallery&&m.parentgallery.removeClass("player-is-playing");db=!0;wb&&wb(d)}function Aa(f){var r={audioapi_setlasttime:!0,donot_change_media:!1,call_actual_player:!0};if(cb)return!1;f&&(r=L.extend(r,f));ac({call_from:"pause_media"});r.call_actual_player&&!0!==
r.donot_change_media&&null!=a._actualPlayer?(f={type:a.actualDataTypeOfMedia,fakeplayer_is_feeder:"on"},a._actualPlayer&&a._actualPlayer.length&&a._actualPlayer.data("feeding-from")!=d.get(0)&&(f.called_from="pause_media from player "+d.attr("data-source"),a._actualPlayer.get(0).api_change_media(d,f)),setTimeout(function(){a._actualPlayer.get(0)&&a._actualPlayer.get(0).api_pause_media&&a._actualPlayer.get(0).api_pause_media()},100)):A.media_pause(a,function(){a._sourcePlayer&&a._sourcePlayer.get(0)&&
a._sourcePlayer.get(0).api_pause_media_visual&&a._sourcePlayer.get(0).api_pause_media_visual({call_from:"pause_media in child player"})});a.player_playing=!1;d.removeClass("is-playing");d.parent().hasClass("zoomsounds-wrapper-bg-center")&&d.parent().removeClass("is-playing")}function zb(f){"on"!=m.design_animateplaypause&&(a.$conPlayPause.children(".playbtn").css({display:"none"}),a.$conPlayPause.children(".pausebtn").css({display:"block"}));a.player_playing=!0;db=!1;d.addClass("is-playing");d.addClass("first-played");
a.$conPlayPause.addClass("playing");d.parent().hasClass("zoomsounds-wrapper-bg-center")&&d.parent().addClass("is-playing");m.parentgallery&&m.parentgallery.addClass("player-is-playing");qa&&qa.addClass("audioplayer-loaded");xb&&xb(d);Kb&&Kb(d)}function na(f){var r={api_report_play_media:!0,called_from:"default",retry_call:0};f&&(r=L.extend(r,f));Cb||za({called_from:r.called_from+"[play_media .. not setuped]"});"api_sync_players_prev"===r.called_from&&(bc=d.parent().children(".audioplayer,.audioplayer-tobe").index(d),
m.parentgallery&&m.parentgallery.get(0)&&m.parentgallery.get(0).api_goto_item&&m.parentgallery.get(0).api_goto_item(bc));if(c.is_ios()&&"waiting"===a.spectrum_audioContext_buffer)return setTimeout(function(){f.call_from_aux="waiting audioCtx_buffer or ios";na(f)},500),!1;0==d.hasClass("media-setuped")&&null==a._actualPlayer&&console.log("warning: media not setuped, there might be issues",d.attr("id"));if(-1<r.called_from.indexOf("feed_to_feeder")&&0==d.hasClass("dzsap-loaded")){ja();var z=300;c.is_android_good()&&
(z=0);if("with delay"!=r.call_from_aux)return z?setTimeout(function(){r.call_from_aux="with delay";na(r)},z):na(r),!1}c.player_stopOtherPlayers(v,a);Fb&&(za({called_from:"play_media() .. destroyed for rebuffer"}),G.isInt(oa)&&ta(oa,{call_from:"destroyed_for_rebuffer_playfrom"}),Fb=!1);"on"===m.google_analytics_send_play_event&&window._gaq&&!1===yb&&(window._gaq.push(["_trackEvent","ZoomSounds Play","Play","zoomsounds play - "+Ja]),yb=!0);!window.ga&&window.__gaTracker&&(window.ga=window.__gaTracker);
"on"==m.google_analytics_send_play_event&&window.ga&&0==yb&&(window.console&&console.log("sent event"),yb=!0,window.ga("send",{hitType:"event",eventCategory:"zoomsounds play - "+Ja,eventAction:"play",eventLabel:"zoomsounds play - "+Ja}));a._sourcePlayer&&a._sourcePlayer.get(0)&&a._sourcePlayer.get(0).api_pause_media_visual&&a._sourcePlayer.get(0).api_play_media_visual({api_report_play_media:!1});if(a._actualPlayer){z={type:a.actualDataTypeOfMedia,fakeplayer_is_feeder:"on",call_from:"play_media_audioplayer"};
try{"click_playpause"==r.called_from&&m.parentgallery&&(m.parentgallery.get(0).api_regenerate_sync_players_with_this_playlist(),a._actualPlayer.get(0).api_regenerate_playerlist_inner());a._actualPlayer&&a._actualPlayer.length&&a._actualPlayer.data("feeding-from")!=d.get(0)&&(z.called_from="play_media from player 22 "+d.attr("data-source")+" < -  old call from - "+r.called_from,a._actualPlayer.get(0).api_change_media&&a._actualPlayer.get(0).api_change_media(d,z),0==d.hasClass("first-played")&&d.data("promise-to-play-footer-player-from")&&
(ta(d.data("promise-to-play-footer-player-from")),setTimeout(function(){d.data("promise-to-play-footer-player-from","")},1E3)));setTimeout(function(){a._actualPlayer.get(0)&&a._actualPlayer.get(0).api_play_media&&a._actualPlayer.get(0).api_play_media({called_from:"[feed_to_feeder]"})},100);"off"==a.ajax_view_submitted&&e.ajax_submit_views.bind(a)();return}catch(F){console.log("no fake player..",F)}}"youtube"==a.audioType&&c.youtube_playMedia(a,r,pb,Sa);if("normal"==a.audioType||"detect"==a.audioType||
"audio"==a.audioType)a.audioType="selfHosted";a.$watermarkMedia_&&a.$watermarkMedia_.play&&a.$watermarkMedia_.play();A.media_tryToPlay(a,function(){zb(r);a._sourcePlayer?(window.dzsap_currplayer_focused=a._sourcePlayer.get(0),a._sourcePlayer.get(0)&&a._sourcePlayer.get(0).api_pause_media_visual&&a._sourcePlayer.get(0).api_try_to_submit_view()):(window.dzsap_currplayer_focused=d.get(0),cc());"on"==a.keyboard_controls.play_trigger_step_back&&dzsap_currplayer_focused&&dzsap_currplayer_focused.api_step_back(a.keyboard_controls.step_back_amount)},
function(F){console.log("error autoplay playing -  ",F);setTimeout(function(){Aa();console.log("trying to pause")},30)})}function cc(){"auto"==a.ajax_view_submitted&&(a.ajax_view_submitted="off");"off"==a.ajax_view_submitted&&e.ajax_submit_views.bind(a)()}var L=this.$,m=this.argOptions,d=L(this.argThis),a=this;a.cthis=d;a.initOptions=m;var dc="ap1",ec="",Ea,ea=0,fa=0,ra=null,ya=null,Za=!1,pb=!1,cb=!1,yb=!1,Fb=!1,tb=!1,Vb=!1,Ib=!1,Ob=!1,Cb=!1,Pb=!1,Ub=0,sa=-1,Ha=-1,la=-1,Ra=-1,Mb=0,mb=0,Nb=0,Eb=0,
gc=0,bc=-1,fb=1,$b=1,gb,kb=0,Qb=0,Wb=!1,Jb=!1,vb=!1,Ya=!1,Tb=!1,Oa=!1,qa=null,Da=0,Lb=!1,fc=0,$a=0,ob=!1,nb=!1,Qa=null,Ja="",Gb=100,jb=100,qb="",Pa=0,Sa="",Ma=0,oa="off",Ab=!1,Ua=1,ub=null,xb=null,Kb=null,wb=null,db=!0,ua="",Sb=20,Hb=0,Rb=0,lb=0,Bb=null;window.dzsap_player_index++;O();a.keyboard_controls=c.dzsap_generate_keyboard_controls();d.addClass("preload-method-"+m.preload_method);m.wavesurfer_pcm_length=Number(m.wavesurfer_pcm_length);"default"==m.skinwave_preloader_code&&(m.skinwave_preloader_code=
y.svg_preloader_code);m.settings_trigger_resize=parseInt(m.settings_trigger_resize,10);m.watermark_volume=parseFloat(m.watermark_volume);a.settings_extrahtml_in_float_right=m.settings_extrahtml_in_float_right;0<d.children(".extra-html-in-controls-right").length&&(a.settings_extrahtml_in_float_right+=d.children(".extra-html-in-controls-right").eq(0).html());0<d.children(".extra-html-in-controls-left").length&&""===m.settings_extrahtml_in_float_left&&(m.settings_extrahtml_in_float_left=d.children(".extra-html-in-controls-left").eq(0).html());
a.settings_extrahtml_in_float_right&&(a.settings_extrahtml_in_float_right=String(a.settings_extrahtml_in_float_right).replace(/{{svg_share_icon}}/g,y.svg_share_icon));(function(){if(d.hasClass("dzsap-inited"))return!1;a.youtube_checkReady=H;a.play_media=na;a.scrubbar_reveal=X;a.calculate_dims_time=J;a.struct_generate_thumb=Fa;a.check_multisharer=U;a.setup_structure_scrub=xa;a.setup_structure_sanitizers=eb;a.setup_structure_extras=ka;a.destroy_cmedia=hb;d.css({opacity:""});d.addClass("dzsap-inited");
window.dzsap_player_index++;c.configureAudioPlayerOptionsInitial(d,m,a);c.player_detect_skinwave_mode.bind(a)();R();"skin-default"==m.design_skin&&"default"==m.design_thumbh&&(d.height(),Wb=!0);c.dzsap_is_mobile()&&L("body").addClass("is-mobile");if("on"==m.mobile_delete&&c.dzsap_is_mobile()){var f=null;d.parent().parent().hasClass("dzsap-sticktobottom")&&(f=d.parent().parent());f&&(f.prev().hasClass("dzsap-sticktobottom-placeholder")&&f.prev().remove(),f.remove());d.remove();return!1}Vb=c.can_canvas();
Ia();""==m.skinwave_comments_playerid?("undefined"!=typeof d.attr("id")&&(a.the_player_id=d.attr("id")),d.attr("data-playerid")&&(a.the_player_id=d.attr("data-playerid"))):(a.the_player_id=m.skinwave_comments_playerid,d.attr("id")||d.attr("id",a.the_player_id));d.attr("data-playerid")||""!=a.the_player_id||(a.the_player_id=c.dzs_clean_string(d.attr("data-source")),d.attr("data-playerid",a.the_player_id));isNaN(Number(a.the_player_id));""==a.the_player_id&&(m.skinwave_comments_enable="off");"on"==
m.mobile_disable_fakeplayer&&c.dzsap_is_mobile()&&a.cthis.attr("data-fakeplayer","");d.attr("data-fakeplayer")&&c.player_determineActualPlayer(a.cthis,a);a.cthis.addClass("scrubbar-type-"+m.scrubbar_type);if(0<d.children(".extra-html").length&&""==m.settings_extrahtml){m.settings_extrahtml=d.children(".extra-html").eq(0).html();Qa=d.children(".extra-html").eq(0);f=/{\{ratesubmitted=(.?)}}/g;if(f.test(String(m.settings_extrahtml))){f.lastIndex=0;var r=f.exec(String(m.settings_extrahtml));a.starrating_alreadyrated=
r[1];m.settings_extrahtml=String(m.settings_extrahtml).replace(f,"");m.parentgallery&&void 0!=L(m.parentgallery).get(0)&&void 0!=L(m.parentgallery).get(0).api_player_rateSubmitted&&L(m.parentgallery).get(0).api_player_rateSubmitted()}a.cthis.children(".extra-html").remove()}"on"==m.construct_player_list_for_sync&&0==C&&(dzsap_syncList_players=[],C=!0,L(".audioplayer.is-single-player,.audioplayer-tobe.is-single-player").each(function(){var F=L(this);F.hasClass("dzsap_footer")||"on"!=F.attr("data-do-not-include-in-list")&&
dzsap_syncList_players.push(F)}),clearTimeout(ca),ca=setTimeout(function(){C=!1},500));oa=m.playfrom;G.isValid(d.attr("data-playfrom"))&&(oa=d.attr("data-playfrom"));0==isNaN(parseInt(oa,10))&&(oa=parseInt(oa,10));("off"==oa||""==oa)&&c.get_query_arg(window.location.href,"audio_time")&&(oa=sanitize_from_point_time(c.get_query_arg(window.location.href,"audio_time")));a.identifier_pcm=a.the_player_id;f=null;f=a._feed_fakeButton?a._feed_fakeButton:a._sourcePlayer?a._sourcePlayer:null;"dzs_footer"==
a.identifier_pcm&&(a.identifier_pcm=c.dzs_clean_string(d.attr("data-source")));f&&(f.attr("data-playerid")?a.identifier_pcm=f.attr("data-playerid"):f.attr("data-source")&&(a.identifier_pcm=f.attr("data-source")));"youtube"==d.attr("data-type")&&(m.type="youtube",a.audioType="youtube");"soundcloud"==d.attr("data-type")&&(m.type="soundcloud",a.audioType="soundcloud",m.skinwave_enableSpectrum="off",d.removeClass("skin-wave-is-spectrum"));"mediafile"==d.attr("data-type")&&(m.type="audio",a.audioType=
"audio");"shoutcast"==d.attr("data-type")&&(m.type="shoutcast",a.audioType="audio",m.disable_timer="on",m.skinwave_enableSpectrum="off","skin-default"==m.design_skin&&(m.disable_scrub="on"));if("audio"==a.audioType||"normal"==a.audioType||""==a.audioType)a.audioType="selfHosted";ua="";"selfHosted"==a.audioType&&(d.attr("data-streamtype")&&"off"!=d.attr("data-streamtype")?(ua=d.attr("data-streamtype"),d.attr("data-source"),d.addClass("is-radio-type")):ua="");a.src_real_mp3=d.attr("data-source");"selfHosted"===
a.audioType&&(a.src_real_mp3=d.attr("data-source"));if(!d.hasClass("audioplayer")){dc=void 0!=d.attr("id")?d.attr("id"):"ap"+B++;Sa="ytplayer_"+dc;d.removeClass("audioplayer-tobe");d.addClass("audioplayer");Q();setTimeout(function(){Q()},1E3);0<d.find(".the-comments").length&&0<d.find(".the-comments").eq(0).children().length?a.$commentsChildren=d.find(".the-comments").eq(0).children():"on"==m.skinwave_comments_retrievefromajax&&(f={action:"dzsap_get_comments",postdata:"1",playerid:a.the_player_id},
a.urlToAjaxHandler&&L.ajax({type:"POST",url:a.urlToAjaxHandler,data:f,success:function(F){d.prependOnce('<div class="the-comments"></div>',".the-comments");-1<F.indexOf("a-comment")&&(F=F.replace(/a-comment/g,"a-comment dzstooltip-con"),F=F.replace(/dzstooltip arrow-bottom/g,"dzstooltip arrow-from-start transition-slidein arrow-bottom"));d.find(".the-comments").eq(0).html(F);a.$commentsChildren=d.find(".the-comments").eq(0).children();I.comments_setupCommentsHolder(a,{call_from:"ajax_complete"})},
error:function(F){}}));"canvas"!=m.skinwave_wave_mode||"skin-wave"!=m.design_skin&&!d.attr("data-fakeplayer")||u.wave_mode_canvas_try_to_get_pcm(a);"off"===m.cueMedia&&(d.addClass("cue-off"),m.autoplay="on");"youtube"==a.audioType&&T();a.data_source=d.attr("data-source");void 0!=d.attr("data-source")&&-1<String(d.attr("data-source")).indexOf("https://soundcloud.com/")&&(a.audioType="soundcloud");"soundcloud"==a.audioType&&p.retrieve_soundcloud_url(a);l.setup_structure(a);"skin-wave"!=m.design_skin||
"selfHosted"!=a.audioType&&"soundcloud"!=a.audioType&&"fake"!=a.audioType||"on"!=m.skinwave_comments_enable||I.comments_setupCommentsInitial(a);""!==m.settings_extrahtml&&(d.append('<div class="extra-html">'+m.settings_extrahtml+"</div>"),d.children("extra-html"),Qa&&Qa.attr("data-playerid")&&Qa.attr("data-playerid"),Qa&&Qa.attr("data-posttype")&&Qa.attr("data-posttype"));"on"===m.autoplay&&"on"===m.cueMedia&&(a.increment_views=1);if("on"===m.cueMedia&&"soundcloud"!=a.audioType)if((c.is_android()||
c.is_ios())&&d.find(".playbtn").bind("click",na),Ja=d.attr("data-source"),-1<Ja.indexOf("{{generatenonce}}")){var z="";(f=/id=(\d*?)/g.exec(Ja))&&(z=f[1]);L.ajax({type:"POST",url:Ja,data:{},success:function(F){F&&-1<F.indexOf(z)&&(d.attr("data-source",F),za({called_from:"nonce generated"}))}})}else"icecast"!=ua?(za({called_from:"normal setup media .. --- icecast must wait"}),"shoutcast"==ua&&setInterval(function(){a.classMisc.icecast_shoutcast_get_data()},1E4)):"icecast"==ua&&setInterval(function(){a.classMisc.icecast_shoutcast_get_data()},
1E4);else d.find(".playbtn").bind("click",da),d.find(".scrubbar").bind("click",da),Ga();setInterval(function(){},3E3);setInterval(function(){},2E3);d.parent().hasClass("dzsap-sticktobottom")&&(qa=d.parent());d.parent().parent().hasClass("dzsap-sticktobottom")&&(qa=d.parent().parent());qa&&(d.hasClass("theme-dark")&&qa.addClass("theme-dark"),setTimeout(function(){qa.addClass("inited")},500),qa.addClass("dzsap-sticktobottom-for-"+m.design_skin),qa.prev().addClass("dzsap-sticktobottom-for-"+m.design_skin),
"skin-wave"==m.design_skin&&(qa.addClass("dzsap-sticktobottom-for-"+m.design_skin+"--mode-"+a.skinwave_mode),qa.prev().addClass("dzsap-sticktobottom-for-"+m.design_skin+"--mode-"+a.skinwave_mode)),ec=d.attr("class"),(f=/(skinvariation-.*?)($| )/g.exec(ec))&&f[1]&&(qa.addClass(f[1]),qa.prev().addClass(f[1])));d.get(0).api_destroy=W;d.get(0).api_play=na;d.get(0).api_get_last_vol=va;d.get(0).api_click_for_setup_media=da;d.get(0).api_init_loaded=ja;d.get(0).api_handleResize=Ga;d.get(0).api_set_playback_speed=
kc;d.get(0).api_change_media=M;d.get(0).api_seek_to_perc=ib;d.get(0).api_seek_to=ta;d.get(0).api_seek_to_visual=jc;d.get(0).api_set_volume=Ka;d.get(0).api_visual_set_volume=Zb;d.get(0).api_destroy_listeners=ba;d.get(0).api_pause_media=Aa;d.get(0).api_pause_media_visual=ac;d.get(0).api_play_media=na;d.get(0).api_play_media_visual=zb;d.get(0).api_handle_end=Wa;d.get(0).api_change_visual_target=P;d.get(0).api_change_design_color_highlight=V;d.get(0).api_draw_scrub_prog=Q;d.get(0).api_draw_curr_time=
Xa;d.get(0).api_get_times=S;d.get(0).api_check_time=Y;d.get(0).api_sync_players_goto_next=La;d.get(0).api_sync_players_goto_prev=Ca;d.get(0).api_regenerate_playerlist_inner=function(){Ba()};d.get(0).api_get_time_curr=function(){return Ha};d.get(0).api_set_time_curr=function(F){sa=F;0==a.pseudo_sample_time_start&&0<a.sample_time_start&&(sa=a.sample_time_start+sa)};d.get(0).api_get_time_total=function(){return la};d.get(0).api_set_time_total=function(F){la=F};d.get(0).api_seek_to_0=function(){ta(0)};
d.get(0).api_step_back=function(F){F||(F=a.keyboard_controls.step_back_amount);ta(a.timeCurrent-F)};d.get(0).api_step_forward=function(F){F||(F=a.keyboard_controls.step_back_amount);ta(a.timeCurrent+F)};d.get(0).api_playback_slow=function(F){a.$mediaNode_&&a.$mediaNode_.playbackRate&&(a.$mediaNode_.playbackRate=.65)};d.get(0).api_playback_reset=function(F){a.$mediaNode_&&a.$mediaNode_.playbackRate&&(a.$mediaNode_.playbackRate=1)};d.get(0).api_set_action_audio_play=function(F){xb=F};d.get(0).api_set_action_audio_pause=
function(F){wb=F};d.get(0).api_set_action_audio_end=function(F){ub=F;d.data("has-action-end","on")};d.get(0).api_set_action_audio_comment=function(F){a.action_audio_comment=F};d.get(0).api_try_to_submit_view=cc;m.action_audio_play&&(xb=m.action_audio_play);m.action_audio_pause&&(wb=m.action_audio_pause);m.action_audio_play2&&(Kb=m.action_audio_play2);m.action_audio_end&&(ub=m.action_audio_end,d.data("has-action-end","on"));Y({fire_only_once:!0});setInterval(a.classMisc.check_every_05_secs,500);"skin-minimal"==
m.design_skin&&Y({fire_only_once:!0});d.on("click",".dzsap-repeat-button,.dzsap-loop-button,.btn-zoomsounds-download,.zoomsounds-btn-step-backward,.zoomsounds-btn-step-forward,.zoomsounds-btn-go-beginning,.zoomsounds-btn-slow-playback,.zoomsounds-btn-reset, .playlist-menu-item, .tooltip-indicator--btn-footer-playlist",wa);d.on("mouseenter",wa);d.on("mouseleave",wa);a.$conPlayPause.on("click",ha);d.on("click",".skip-15-sec",function(){d.get(0).api_step_forward(15)});L(window).on("resize.dzsap",Ga);
Ga();a._scrubbar&&a._scrubbar.get(0)&&a._scrubbar.get(0).addEventListener("touchstart",function(F){a.player_playing&&(Lb=!0)},{passive:!0});"icecast"!=ua&&"shoutcast"!=ua||a.classMisc.icecast_shoutcast_get_data();L(document).on("touchmove",function(F){if(Lb)return fc=F.originalEvent.touches[0].pageX,$a=fc-a._scrubbar.offset().left,0>$a&&($a=0),$a>a._scrubbar.width()&&($a=a._scrubbar.width()),ib($a/a._scrubbar.width()),!1});L(document).on("touchend",function(F){Lb=!1});m.skinwave_comments_mode_outer_selector&&
(a.$commentsSelector=L(m.skinwave_comments_mode_outer_selector),a.$commentsSelector.data?(a.$commentsSelector.data("parent",d),m.skinwave_comments_account&&"none"!==m.skinwave_comments_account&&a.$commentsSelector.find(".comment_email,*[name=comment_user]").remove(),a.$commentsSelector.on("click",".dzstooltip--close,.comments-btn-submit",I.comments_selector_event),a.$commentsSelector.on("focusin","input",I.comments_selector_event),a.$commentsSelector.on("focusout","input",I.comments_selector_event)):
console.log("%c, data not available .. ","color: #990000;",L(m.skinwave_comments_mode_outer_selector)));d.off("click",".btn-like");d.on("click",".btn-like",a.classMisc.handleClickLike);L(document).on("mousemove",".star-rating-con",Na);L(document).on("mouseleave",".star-rating-con",Na);L(document).on("click",".star-rating-con",Na);setTimeout(function(){Ga();"canvas"==m.skinwave_wave_mode&&(J(),setTimeout(function(){J()},100))},100);d.find(".btn-menu-state").eq(0).bind("click",Z);d.on("click",".prev-btn,.next-btn",
wa)}})()};window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(O,T){window.setTimeout(O,1E3/60)}}();window.dzsap_currplayer_focused=null;window.dzsap_currplayer_from_share=null;window.dzsap_mouseover=!1;window.dzsap_call_init_calls=E;(function(O,T){return k.asyncExecutePromiseGeneratorProgram(function(J){return J.return(new Promise(function(P,
V){if(window.jQuery)P("jQuery loaded");else{var M=document.createElement("script");M.onload=function(){window.jQuery?P("jQuery loaded"):V("error loading")};M.src=g.URL_JQUERY;document.head.appendChild(M)}setTimeout(function(){V("error loading")},15E3)}))})})().then(function(){x();D();jQuery(document).ready(function(O){E()})}).catch(function(O){console.log(O)});window.dzsap_init=function(O,T){if("undefined"!=typeof T&&"undefined"!=typeof T.init_each&&1==T.init_each){var J=0,P;for(P in T)J++;1===J&&
(T=void 0);jQuery(O).each(function(){var V=jQuery(this);T&&"undefined"==typeof T.call_from&&(T.call_from="dzsap_init");V.audioplayer(T)})}else jQuery(O).audioplayer(T);window.dzsap_lasto=T;c.dzsapInitjQueryRegisters()};c.miscFunctions()},function(n,h,q){function x(g){var A=g.initOptions;g._commentsHolder.remove(".dzsap-style-comments");g._commentsHolder.append('<style class="dzsap-style-comments">.dzstooltip-con:not(.placeholder) { opacity: 0.5; }</style>');g._commentsHolder.find(".dzstooltip-con.placeholder").remove();
g._commentsHolder.append('<span class="dzstooltip-con placeholder" style="left:'+g.commentPositionPerc+';"><div class="the-avatar" style="background-image: url('+A.skinwave_comments_avatar+')"></div></span>')}function D(g,A,v,t){t=jQuery;var w=g.initOptions;if(v){if(0==/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(v))return alert("please insert email, your email is just used for gravatar. it will not be sent or stored anywhere"),
!1;var B=String(v).split("@")[0];w.skinwave_comments_account=B;g.$commentsSelector&&g.$commentsSelector.find("*[name=comment_email],*[name=comment_user]").remove();w.skinwave_comments_avatar="https://secure.gravatar.com/avatar/"+E.MD5(String(g.cthis.find("input[name=comment-email]").eq(0).val()).toLowerCase())+"?s=20"}console.log("comment_submit() - ",A,v);B=w.skinwave_comments_account;v="";"on"!==w.skinwave_comments_process_in_php?(v+='<span class="dzstooltip-con zoomsounds-comment" style="left:'+
g.commentPositionPerc+'"><div class="the-avatar tooltip-indicator" style="background-image: url('+w.skinwave_comments_avatar+')"></div><span class="dzstooltip arrow-bottom style-rounded color-dark-light talign-start  transition-slidein arrow-bottom " style="width: 250px;"><span class="dzstooltip--inner"><span class="the-comment-author">@'+B+"</span> says:<br>",v+=E.htmlEncode(A),v+="</span></span></span>"):v+=A;g.cthis.find("*[name=comment-text]").eq(0).val("");g.cthis.find(".comments-writter-temp-css,.dzsap-style-comments").remove();
c.ajax_comment_publish.bind(g)(v);I(g);w.parentgallery&&void 0!=t(w.parentgallery).get(0)&&void 0!=t(w.parentgallery).get(0).api_player_commentSubmitted&&t(w.parentgallery).get(0).api_player_commentSubmitted()}q.r(h);q.d(h,"hide_comments_writer",function(){return I});q.d(h,"comments_setupCommentsInitial",function(){return y});q.d(h,"comments_setupCommentsHolder",function(){return b});q.d(h,"comments_handleClickCommentsBg",function(){return e});q.d(h,"comments_handleClickCancel",function(){return p});
q.d(h,"comments_handleClickSubmit",function(){return l});q.d(h,"comments_selector_event",function(){return u});var E=q(0);q.n(E);var c=q(1),G=q(2),I=function(g){var A=jQuery;g.cthis.removeClass("comments-writer-active");g._commentsHolder.find(".dzstooltip-con.placeholder").remove();g.$commentsWritter.removeClass("active");g.$commentsWritter.css({height:0});g.initOptions.parentgallery&&void 0!==A(g.initOptions.parentgallery).get(0)&&void 0!==A(g.initOptions.parentgallery).get(0).api_handleResize&&
A(g.initOptions.parentgallery).get(0).api_handleResize();setTimeout(function(){g.cthis.find(".comments-writter-temp-css,.dzsap-style-comments").remove()},300)},y=function(g){var A=g.initOptions,v='<div class="comments-holder">';v=A.skinwave_comments_links_to?v+('<a href="'+A.skinwave_comments_links_to+'" target="_blank" class="the-bg"></a>'):v+'<div class="the-comments-holder-bg"><div class="the-avatar comments-avatar--placeholder"></div></div>';v+='</div><div class="clear"></div><div class="dzstooltip dzstooltip--comments-writer    talign-center arrow-top style-rounded color-dark-light    dims-set transition-slidedown " style="width: 330px;">  <div class="dzstooltip--inner"><div class="comments-writer"><div class="comments-writer-inner">\n<div class="comments-writer--form">\n\n                <div class="dzsap-comments--section">\n\n                  <textarea name="comment-text" placeholder="Your comment.." type="text" class="comment-input"></textarea>\n\n                </div>\n                <div class="dzsap-comments--section">\n                  <input placeholder="Your email.." name="comment-email" type="text" class="comment-input">\n                </div>\n                <div class="dzsap-comments--section overflow-and-fixed  ">\n\n                  <div class="flex-grow-1   "><span\n                    class="dzsap-comments--comment-form-label">commenting on </span> <span\n                    class="dzsap-comments--comment-form-label-time">1:07</span></div>\n                  <div class="flex-grow-0 margin-left-auto"><button class="submit-ap-comment dzs-button-dzsap float-right">&#10148; Submit</button></div>\n                  <div class="clear"></div>\n\n                </div>\n              </div>\n\n              <div class="comments-writer--avatar-con">\n                <div class="comments-writer--avatar" style="background-image: url(https://via.placeholder.com/50)"></div>\n              </div>\n              </div></div><span class="dzstooltip--close"><span\n              class="label--x-button">&#10006;</span></span></div></div>';
"normal"===g.skinwave_mode?g._apControls.appendOnce(v):g.cthis.appendOnce(v);g._commentsHolder=g.cthis.find(".comments-holder").eq(0);g.$commentsWritter=g.cthis.find(".dzstooltip--comments-writer").eq(0);var t=this;this.comments_setupCommentsHolder(g,{call_from:"default"});g._commentsHolder.on("click",function(w){t.comments_handleClickCommentsBg(g,this,w)});g._commentsHolder.on("mousemove",function(w){g._commentsHolder.find(".comments-avatar--placeholder").css("left",G.getRelativeX(w.pageX,w.currentTarget)-
7+"px")});g.$commentsWritter.find(".dzstooltip--close").bind("click",function(w){t.comments_handleClickCancel(g,w)});g.$commentsWritter.find(".submit-ap-comment").bind("click",function(w){t.comments_handleClickSubmit(g,w)})},b=function(g){var A=jQuery,v=g.initOptions;g._commentsHolder&&g.$commentsChildren&&g.$commentsChildren.each(function(){var t=A(this);"on"===v.skinwave_comments_process_in_php&&t&&t.hasClass&&t.hasClass("dzstooltip-con")&&!t.find(".dzstooltip > .dzstooltip--inner").length&&(t.find(".dzstooltip").wrapInner('<div class="dzstooltip--inner"></div>'),
t.find(".the-avatar").addClass("tooltip-indicator"),t.find(".dzstooltip").before(t.find(".tooltip-indicator")),t.find(".dzstooltip").addClass("talign-start style-rounded color-dark-light"));g._commentsHolder.append(t)})},e=function(g,A,v){var t=jQuery,w=g.initOptions,B=t(A),C=parseInt(v.clientX,10)-B.offset().left;g.commentPositionPerc="calc("+C/B.width()*100+"% - 7px)";if(!w.skinwave_comments_links_to){if("off"===w.skinwave_comments_allow_post_if_not_logged_in&&"none"===w.skinwave_comments_account)return!1;
var ca=!0;g._commentsHolder.children().each(function(){var aa=t(this);if(!aa.hasClass("placeholder")&&!aa.hasClass("the-bg")&&(aa=aa.offset().left-B.offset().left,20>Math.abs(aa-C)))return g._commentsHolder.find(".dzstooltip-con.placeholder").remove(),ca=!1});if(!ca)return!1;g._commentsHolder.offset();g.cthis.offset();g.cthis.width();g.$commentsWritter.css({left:C+"px"});g.$commentsWritter.css("top",parseInt(g._commentsHolder.css("top"),10)+20+"px");!1===g.$commentsWritter.hasClass("active")&&(g.$commentsWritter.addClass("active"),
g.cthis.addClass("comments-writer-active"));"none"!==w.skinwave_comments_account?g.cthis.find("input[name=comment-email]").remove():g.$commentsWritter.find(".comments-writer--avatar-con").remove();x(g)}},p=function(g,A){this.hide_comments_writer(g)},l=function(g,A){A="";g.cthis.find("input[name=comment-email]").length&&(A=g.cthis.find("input[name=comment-email]").eq(0).val());D(g,g.cthis.find("*[name=comment-text]").eq(0).val(),A);return!1},u=function(g,A){var v=jQuery(this),t=null;console.log("_t - ",
v);v.parent().parent().hasClass("zoomsounds-comment-wrapper")&&(t=v.parent().parent());v.parent().parent().parent().hasClass("zoomsounds-comment-wrapper")&&(t=v.parent().parent().parent());"focusin"==A.type&&(g._commentsHolder.width(),g.commentPositionPerc="calc("+g.timeCurrent/g.timeTotal*100+"% - 7px)",t.addClass("active"),this.add_comments_placeholder(g));if("click"==A.type&&(v.hasClass("dzstooltip--close")&&(t.removeClass("active"),t.find("input").val("")),v.hasClass("comments-btn-submit")))return A=
"",t.find(".comment_email").length&&(A=t.find(".comment_email").eq(0).val()),D(g,t.find(".comment_text").eq(0).val(),A),t.removeClass("active"),t.find("input").val(""),!1}},function(n,h,q){q.r(h);q.d(h,"registerToJquery",function(){return G});var x=q(0);q.n(x);var D=q(8),E=q(4).constants,c=function(I,y,b){this.argThis=I;this.argOptions=y;this.$=b;this.navClass=null;this.init()};c.prototype.init=function(){function I(){if(hb)return!1;K.remove();K=null;hb=!0}function y(Q,S){Q||(Q="title");var Y=function(ha){ha=
da(ha);var Ca="";"title"==Q&&(Ca=ha.find(".the-name").text());return""==S||-1<Ca.toLowerCase().indexOf(S.toLowerCase())?!0:!1};U.hasClass("isotoped")?U.isotope({filter:Y}):U.children().each(function(){Y(this)?da(this).fadeIn("fast"):da(this).fadeOut("fast")})}function b(){dzsap_syncList_players=[];U.children(".audioplayer,.audioplayer-tobe").each(function(){var Q=da(this);Q.addClass("feeded-whole-playlist");"on"!=Q.attr("data-do-not-include-in-list")&&dzsap_syncList_players.push(Q)})}function e(){if(Va)return!1;
Va=!0;var Q={action:"dzsap_get_views_all",postdata:"1"};H.settings_php_handler&&da.ajax({type:"POST",url:H.settings_php_handler,data:Q,success:function(S){K.attr("data-track-data",S);p()},error:function(S){}})}function p(){if(K.attr("data-track-data")){try{ja=JSON.parse(K.attr("data-track-data"))}catch(Q){console.log(Q)}ja&&ja.length&&Z.navClass.parseTrackData(ja)}}function l(){return Ia}function u(){var Q=K.find(".items").eq(0).children(".audioplayer-tobe").length;va=[];for(ka=0;ka<Q;ka++){var S=
K.find(".items").children(".audioplayer-tobe").eq(0);if(S.find(".menu-description").html())var Y=S.find(".menu-description").html();else if(Y="",S.find(".feed-artist").length||S.find(".feed-songname").length)Y="",S.attr("data-thumb")&&(Y+='<div class="menu-item-thumb-con"><div class="menu-item-thumb" style="background-image: url('+S.attr("data-thumb")+')"></div></div>'),Y+='<div class="menu-artist-info"><span class="the-artist">'+S.find(".feed-artist").html()+'</span><span class="the-name">'+S.find(".feed-songname").html()+
"</span></div>";var ha=S;ha=ha.attr("data-player-id")?ha.attr("data-player-id"):ha.attr("id")?ha.attr("id"):ha.attr("data-source")?x.dzs_clean_string(ha.attr("data-source")):void 0;va.push({menu_description:Y,player_id:ha});U.append(S)}for(ka=0;ka<va.length;ka++)Q="",va[ka].menu_description&&-1==va[ka].menu_description.indexOf('<div class="menu-item-thumb-con"><div class="menu-item-thumb" style="')&&(Q+=" no-thumb"),Q='<div class="menu-item'+Q+'"  data-menu-index="'+ka+'" data-gallery-id="'+ia+'" data-playerid="'+
va[ka].player_id+'">',K.hasClass("skin-aura")&&(Q+='<div class="menu-item-number">'+ ++Ia+"</div>"),Q+=va[ka].menu_description,K.hasClass("skin-aura")&&1==String(va[ka].menu_description).indexOf("menu-item-views")&&(ja&&0<ja.length?Q+='<div class="menu-item-views"></div>':(e(),Q+='<div class="menu-item-views">'+dzsapSvgs.svg_play_icon+' <span class="the-count">{{views_'+va[ka].player_id+"}}</span></div>")),Q+="</div>",xa.append(Q),K.hasClass("skin-aura")&&va[ka]&&va[ka].menu_description&&-1<va[ka].menu_description.indexOf("float-right")&&
xa.children().last().addClass("has-extra-info")}function g(){K.addClass("dzsag-loaded")}function A(){if(0==da(this).hasClass("active"))return alert(sb),!1}function v(){"undefined"!=typeof U.children().eq(X).get(0)&&"undefined"!=typeof U.children().eq(X).get(0).api_play_media&&U.children().eq(X).get(0).api_play_media({call_from:"play_curr_media_gallery"})}function t(Q){"mode-showall"==H.settings_mode&&(X=Q=U.children(".audioplayer,.audioplayer-tobe").index(Q),K.get(0).currNr_2=Q)}function w(){isNaN(wa)&&
(wa=0);Na=wa;Xa=Z.navClass.finish_viy-Na;wa=Number(Math.easeIn(1,Na,Xa,20).toFixed(4));0==x.is_ios()&&0==x.is_android()&&xa.css({transform:"translateY("+wa+"px)"});requestAnimFrame(w)}function B(){Z.navClass.toggle_menu_state()}function C(){"on"==H.autoplayNext&&ba()}function ca(){xa.children(".menu-item").eq(X).find(".download-after-rate").addClass("active")}function aa(){xa.children(".menu-item").eq(X).find(".download-after-rate").addClass("active")}function O(){"mode-showall"!=H.settings_mode&&
0==U.hasClass("isotoped")&&"one"!=H.mode_normal_video_mode&&0==U.children().eq(X).hasClass("zoomsounds-wrapper-bg-bellow")&&U.css("height",U.children().eq(X).outerHeight());0==U.hasClass("isotoped")&&setTimeout(function(){U.css("height","auto")},E.PLAYLIST_TRANSITION_DURATION);Z.navClass.calculateDims();"on"==H.embedded&&window.frameElement&&(window.frameElement.height=K.height())}function T(){Z.navClass.calculateDims()}function J(){"mode-showall"!==H.settings_mode&&!1===U.hasClass("isotoped")&&setTimeout(function(){U.css("height",
U.children().eq(X).outerHeight())},500);O()}function P(Q){U.children().eq(Fa).removeClass("transitioning-out");U.children().eq(Q).removeClass("transitioning-in");Fa=X;Ba=!1}function V(){K.parent().children(".the-bg").eq(0).remove();Ba=!1}function M(){pa=X;pa--;var Q=!0;0>pa&&(pa=U.children().length-1,"off"==H.loop_playlist&&(Q=!1));Q&&R(pa)}function ba(){pa=X;var Q=!0;"mode-showall"==H.settings_mode&&(pa=K.get(0).currNr_2);pa++;pa>=U.children().length&&(pa=0,"off"==H.loop_playlist&&(Q=!1));Q&&R(pa)}
function R(Q,S){var Y={ignore_arg_currNr_check:!1,ignore_linking:!1,donotopenlink:"off",called_from:"default"};S&&(Y=da.extend(Y,S));if(1!=Ba)if("last"==Q&&(Q=U.children().length-1),X==Q)U&&U.children().eq(X).get(0)&&U.children().eq(X).get(0).api_play_media&&U.children().eq(X).get(0).api_play_media({call_from:"gallery"});else{S=U.children(".audioplayer,.audioplayer-tobe").eq(Q);var ha="";-1<X&&("undefined"!=typeof U.children().eq(X).get(0)&&("undefined"!=typeof U.children().eq(X).get(0).api_pause_media&&
U.children().eq(X).get(0).api_pause_media(),"undefined"!=typeof U.children().eq(X).get(0).api_get_last_vol&&(ha=U.children().eq(X).get(0).api_get_last_vol())),xa.children().removeClass("active active-from-gallery"),"one"!=H.mode_normal_video_mode&&"mode-showall"!=H.settings_mode&&(U.children().eq(X).removeClass("active active-from-gallery"),xa.children().eq(X).removeClass("active active-from-gallery")));"sameasgallery"==H.settings_ap.design_skin&&(H.settings_ap.design_skin=H.design_skin);-1==X&&"on"==
H.autoplay&&(H.settings_ap.autoplay="on");-1<X&&"on"==H.autoplayNext&&(H.settings_ap.autoplay="on");H.settings_ap.parentgallery=K;H.settings_ap.design_menu_show_player_state_button=H.design_menu_show_player_state_button;H.settings_ap.cue="on";1==za&&("off"==H.cueFirstMedia&&(H.settings_ap.cue="off"),za=!1);var Ca=da.extend({},H.settings_ap);Ca.volume_from_gallery=ha;Ca.call_from="gotoItem";Ca.player_navigation=H.player_navigation;if("one"==H.mode_normal_video_mode&&-1<Q&&"init"!=Y.called_from){var La=
U.children().eq(0).get(0);S=U.children().eq(0);La&&La.api_play_media&&(La.api_change_media(U.children().eq(Q),{called_from:"goto_item -- mode_normal_video_mode()",modeOneGalleryIndex:Q,source_player_do_not_update:"on"}),"on"==H.autoplayNext&&setTimeout(function(){La.api_play_media()},200))}else W(S,Ca);"on"==H.autoplayNext&&("mode-showall"==H.settings_mode&&(X=K.get(0).currNr_2),-1<X&&S.get(0)&&S.get(0).api_play&&S.get(0).api_play());if(void 0==H.settings_ap.playfrom||"0"==H.settings_ap.playfrom)S.get(0)&&
S.get(0).api_seek_to_0?S.get(0).api_seek_to_0():console.log("_audioplayerToBeActive not found - ",S);S.get(0);"mode-showall"!=H.settings_mode&&(U.children().eq(X).addClass("transitioning-out"),S.removeClass("transitioning-out-complete"),S.addClass("transitioning-in"),setTimeout(function(Wa){Wa.addClass("transitioning-out-complete")},E.PLAYLIST_TRANSITION_DURATION,U.children().eq(X)),"link"!=S.attr("data-type")&&0==Y.ignore_linking&&"on"==H.settings_enable_linking&&history.pushState({foo:"bar"},null,
x.add_query_arg(window.location.href,"audiogallery_startitem_"+ia,Q)),"fade"===H.playlistTransition&&(setTimeout(P,E.PLAYLIST_TRANSITION_DURATION,Q),Ba=!0),"direct"===H.playlistTransition&&P(Q));S.addClass("active active-from-gallery");xa.children().eq(Q).addClass("active active-from-gallery");Y="";S.attr("data-bgimage")&&(Y=S.attr("data-bgimage"));S.attr("data-wrapper-image")&&(Y=S.attr("data-wrapper-image"));Y&&K.parent().hasClass("ap-wrapper")&&0<K.parent().children(".the-bg").length&&(K.parent().children(".the-bg").eq(0).after('<div class="the-bg" style="background-image: url('+
Y+');"></div>'),K.parent().children(".the-bg").eq(0).css({opacity:1}),K.parent().children(".the-bg").eq(1).css({opacity:0}),K.parent().children(".the-bg").eq(1).animate({opacity:1},{queue:!1,duration:1E3,complete:V,step:function(){Ba=!0}}),Ba=!0);"mode-showall"!=H.settings_mode&&(X=Q,K.data("currNr",X));U.children().eq(X).get(0)&&U.children().eq(X).get(0).api_handleResize&&U.children().eq(X).hasClass("media-setuped")&&U.children().eq(X).get(0).api_handleResize();O()}}function W(Q,S){var Y=da.extend({},
H.settings_ap);S&&(Y=da.extend(Y,S));Q.hasClass("audioplayer-tobe")&&(H.settings_ap.call_from="init player from gallery",Q.audioplayer(Y))}var da=this.$,Z=this,H=Z.argOptions,K=da(Z.argThis),ia="ag1",X=-1,Fa=0,Ia=0,pa=0,Ba=!0,ka=0,eb,U,bb,xa;Ba=!1;var za=!0,hb=!0,ab=!1,Va=!1,va=[],ja=[],sb="You need to comment or rate before downloading.",wa=0,Na=0,Xa=0;Z.goto_item=R;Z.handleResize=J;Z.initOptions=H;window.dzsap_settings&&"undefined"!=typeof window.dzsap_settings.str_alertBeforeRate&&(sb=window.dzsap_settings.str_alertBeforeRate);
K.get(0).currNr_2=-1;(function(){if("default"==H.settings_ap)if(K.attr("data-player-options"))H.settings_ap=x.convertPluginOptionsToFinalOptions(K.get(0),{},null,"data-player-options");else{var Q=K.find(".audioplayer, .audioplayer-tobe").eq(0);Q&&(H.settings_ap=x.convertPluginOptionsToFinalOptions(Q.get(0),{},null))}else"string"==typeof H.settings_ap&&window.dzsap_apconfigs&&"object"===typeof window.dzsap_apconfigs[H.settings_ap]&&(H.settings_ap=Object.assign({},window.dzsap_apconfigs[H.settings_ap]));
if("default"===H.settings_ap||"string"===typeof H.settings_ap)H.settings_ap={};"default"==H.design_menu_width&&(H.design_menu_width="100%");"default"==H.design_menu_height&&(H.design_menu_height="200");K.hasClass("skin-wave")&&(H.design_skin="skin-wave");K.hasClass("skin-default")&&(H.design_skin="skin-default");K.hasClass("skin-aura")&&(H.design_skin="skin-aura");K.addClass(H.settings_mode);K.append('<div class="slider-main"><div class="slider-clipper"></div></div>');K.addClass("menu-position-"+
H.design_menu_position);eb=K.find(".slider-main").eq(0);Q=K.find(".items").children(".audioplayer-tobe").length;H.settings_ap.disable_player_navigation=H.disable_player_navigation;if(0==Q||1==Q)H.design_menu_position="none",H.settings_ap.disable_player_navigation="on";Z.navClass=new D.ZoomSoundsNav(Z);"top"==H.design_menu_position&&eb.before(Z.navClass.get_structZoomsoundsNav());"bottom"==H.design_menu_position&&eb.after(Z.navClass.get_structZoomsoundsNav());!H.settings_php_handler&&H.settings_ap.settings_php_handler&&
(H.settings_php_handler=H.settings_ap.settings_php_handler);if(typeof K.attr("id"))ia=K.attr("id");else{for(Q=0;0==da("ag"+Q).length;)Q++;ia="ag"+Q;K.attr("id",ia)}U=K.find(".slider-clipper").eq(0);bb=K.find(".nav-main").eq(0);xa=K.find(".nav-clipper").eq(0);K.children(".extra-html").length&&K.append(K.children(".extra-html"));"mode-showall"==H.settings_mode&&U.addClass("layout-"+H.mode_showall_layout);Z.navClass.set_elements(bb,xa,K);u();Z.navClass.init_ready();p();0==x.can_history_api()&&(H.settings_enable_linking=
"off");0==K.css("opacity")&&K.animate({opacity:1},1E3);da(window).bind("resize",J);J();setTimeout(J,1E3);K.get(0).api_skin_redlights_give_controls_right_to_all=function(){ab=!0};x.get_query_arg(window.location.href,"audiogallery_startitem_"+ia)&&(Fa=pa=Number(x.get_query_arg(window.location.href,"audiogallery_startitem_"+ia)),Number(x.get_query_arg(window.location.href,"audiogallery_startitem_"+ia))&&0<Number(x.get_query_arg(window.location.href,"audiogallery_startitem_"+ia))&&"on"==H.force_autoplay_when_coming_from_share_link&&
(H.autoplay="on"));"mode-normal"==H.settings_mode&&R(pa,{called_from:"init"});"mode-showall"==H.settings_mode&&(U.children().each(function(){var S=da(this),Y=S.parent().children(".audioplayer,.audioplayer-tobe").index(S);if(S.hasClass("audioplayer-tobe")){var ha=Object.assign({},H.settings_ap);ha.parentgallery=K;ha.call_from="mode show-all";ha.action_audio_play=t;S.audioplayer(ha);Y=String(Y+1);2>Y.length&&(Y="0"+Y);"one-per-row"==H.mode_showall_layout&&"off"!=H.settings_mode_showall_show_number&&
(S.before('<div class="number-wrapper"><span class="the-number">'+Y+"</span></div>"),S.after('<div class="clear for-number-wrapper"></div>'))}}),da.fn.isotope&&"one-per-row"!=H.mode_showall_layout&&(U.find(".audioplayer,.audioplayer-tobe").addClass("isotope-item"),setTimeout(function(){U.prepend('<div class="grid-sizer"></div>');U.isotope({itemSelector:".isotope-item",layoutMode:"fitRows",percentPosition:!0,masonry:{columnWidth:".grid-sizer"}});U.addClass("isotoped");setTimeout(function(){U.isotope("layout")},
900)},E.PLAYLIST_TRANSITION_DURATION),U.append('<div class="clear"></div>')),ab&&U.children(".audioplayer").each(function(){var S=da(this);0==S.find(".ap-controls-right").eq(0).prev().hasClass("controls-right")&&S.find(".ap-controls-right").eq(0).before('<div class="controls-right"> </div>')}));K.find(".download-after-rate").bind("click",A);K.get(0).api_regenerate_sync_players_with_this_playlist=b;K.get(0).api_goto_next=ba;K.get(0).api_goto_prev=M;K.get(0).api_goto_item=R;K.get(0).api_gallery_handle_end=
C;K.get(0).api_toggle_menu_state=B;K.get(0).api_handleResize=J;K.get(0).api_player_commentSubmitted=ca;K.get(0).api_player_rateSubmitted=aa;K.get(0).api_reinit=u;K.get(0).api_play_curr_media=v;K.get(0).api_get_nr_children=l;K.get(0).api_init_player_from_gallery=W;K.get(0).api_filter=y;K.get(0).api_destroy=I;setInterval(T,1E3);setTimeout(g,700);"on"==H.enable_easing&&w();K.addClass("dzsag-inited");K.addClass("transition-"+H.playlistTransition);K.addClass("playlist-transition-"+H.playlistTransition)})()};
var G=function(I){I.fn.audiogallery=function(y){var b={},e=q(9).default_opts;b=x.convertPluginOptionsToFinalOptions(this,e,y);this.each(function(){this.linkedClassInstance=new c(this,b,I)})}}},function(n,h,q){q.r(h);q.d(h,"ZoomSoundsNav",function(){return E});var x=q(0);q.n(x);var D=q(1),E=function(c){this.parentGallery=c;this.structZoomsoundsNav="";this.size_navMainTotalSize=this.size_navMainClipSize=this.cgallery=this._navClipper=this._navMain=null;this.finish_viy=0;this.init()};E.prototype.init=
function(){var c=this.parentGallery;this.structZoomsoundsNav='<div class="nav-main zoomsounds-nav '+c.initOptions.design_skin+" navigation-method-"+c.initOptions.navigation_method+'"><div class="nav-clipper"></div></div>';"full"===this.parentGallery.initOptions.navigation_method&&(this.parentGallery.initOptions.design_menu_height="auto")};E.prototype.get_structZoomsoundsNav=function(){return this.structZoomsoundsNav};E.prototype.set_elements=function(c,G,I){this._navMain=c;this._navClipper=G;this.cgallery=
I};E.prototype.calculateDims=function(){function c(I){var y=jQuery(this);y.offset();I=I.pageY-y.offset().top;G.size_navMainTotalSize<=G.size_navMainClipSize||(G.size_navMainClipSize=G._navMain.outerHeight(),I=I/G.size_navMainClipSize*-(G.size_navMainTotalSize-G.size_navMainClipSize+50)+20,0<I&&(I=0),I<-(G.size_navMainTotalSize-G.size_navMainClipSize+10)&&(I=-(G.size_navMainTotalSize-G.size_navMainClipSize+10)),G.finish_viy=I,0==x.is_ios()&&0==x.is_android()&&"on"!=G.parentGallery.initOptions.enable_easing&&
G._navClipper.css({transform:"translateY("+G.finish_viy+"px)"}))}this.size_navMainClipSize=this._navMain.height();this.size_navMainTotalSize=this._navClipper.outerHeight();var G=this;"mouseover"===this.parentGallery.initOptions.navigation_method&&(this.size_navMainTotalSize>this.size_navMainClipSize&&0<this.size_navMainClipSize?(this._navMain.unbind("mousemove",c),this._navMain.bind("mousemove",c)):this._navMain.unbind("mousemove",c))};E.prototype.init_ready=function(){function c(I){var y=jQuery(this);
if("click"==I.type&&(y.hasClass("menu-item")&&(I=y.parent().children().index(y),G.goto_item(I)),y.hasClass("menu-btn-like")||y.hasClass("menu-facebook-share")))return y.parent().parent().attr("data-playerid")&&D.ajax_submit_like.bind(G)(1,y.parent().parent().attr("data-playerid"),{refferer:y}),!1}var G=this.parentGallery;"on"==G.initOptions.disable_menu_navigation&&this._navMain.hide();this._navMain.css({height:G.initOptions.design_menu_height});(x.is_ios()||x.is_android())&&this._navMain.css({overflow:"auto"});
"closed"==G.initOptions.design_menu_state?(this._navMain.css({height:0}),this.cgallery.removeClass("menu-opened"),this.cgallery.addClass("menu-closed")):(this.cgallery.addClass("menu-opened"),this.cgallery.removeClass("menu-closed"));this._navClipper.on("click",".menu-btn-like,.menu-facebook-share",c);this._navClipper.on("click",".menu-item",c)};E.prototype.toggle_menu_state=function(){var c=this;0==this._navMain.height()?(this._navMain.css({height:this.parentGallery.initOptions.design_menu_height}),
this.cgallery.removeClass("menu-closed"),this.cgallery.addClass("menu-opened")):(this._navMain.css({height:0}),this.cgallery.removeClass("menu-opened"),this.cgallery.addClass("menu-closed"));setTimeout(function(){c.parentGallery.handleResize()},400)};E.prototype.parseTrackData=function(c){var G=0;this._navMain.find(".menu-item-views").each(function(){var I=$(this),y=I.html(),b=/{{views_(.*?)}}/g.exec(y);if(b&&b[1]){var e=b[1],p;for(p in c)if(e==c[p].label||e=="ap"+c[p].label){y=y.replace(b[0],c[p].views);
G++;break}I.html(y)}});G<c.length&&this._navMain.find(".menu-item-views").each(function(){var I=$(this),y=I.html(),b=/{{views_(.*?)}}/g.exec(y);b&&b[0]&&(y=y.replace(b[0],0),I.html(y))})}},function(n,h){h.default_opts={design_skin:"skin-default",cueFirstMedia:"on",autoplay:"off",autoplayNext:"on",settings_enable_linking:"off",design_menu_position:"bottom",navigation_method:"mouseover",design_menu_state:"open",design_menu_show_player_state_button:"off",design_menu_width:"default",design_menu_height:"200",
design_menu_space:"default",settings_php_handler:"",design_menuitem_width:"default",design_menuitem_height:"default",design_menuitem_space:"default",force_autoplay_when_coming_from_share_link:"off",disable_menu_navigation:"off",loop_playlist:"on",menu_facebook_share:"auto",enable_easing:"off",settings_ap:"default",playlistTransition:"fade",embedded:"off",mode_showall_layout:"one-per-row",settings_mode:"mode-normal",settings_mode_showall_show_number:"on",mode_normal_video_mode:"auto"}},function(n,
h){h.retrieve_soundcloud_url=function(q,x){var D=q.initOptions;console.log(" ooo - ",D);""==D.soundcloud_apikey&&alert("soundcloud api key not defined, read docs!");x="http://api.soundcloud.com/resolve?url="+q.data_source+"&format=json&consumer_key="+D.soundcloud_apikey;x=encodeURIComponent(x);var E=D.php_retriever+"?scurl="+x;$.ajax({type:"GET",url:E,data:{},async:!0,dataType:"text",error:function(c,G,I){console.log("retried soundcloud error",c,G,I)},success:function(c){var G=[];try{if(G=JSON.parse(c),
q.audioType="selfHosted",""==G&&(q.cthis.addClass("errored-out"),q.cthis.append('<div class="feedback-text">soundcloud track does not seem to serve via api</div>')),q.original_real_mp3=q.cthis.attr("data-source"),G.stream_url?(q.cthis.attr("data-source",G.stream_url+"?consumer_key="+D.soundcloud_apikey+"&origin=localhost"),q.feed_fakeButton&&q.feed_fakeButton.attr("data-source",q.cthis.attr("data-source")),q._sourcePlayer&&q._sourcePlayer.attr("data-source",q.cthis.attr("data-source"))):(q.cthis.addClass("errored-out"),
q.cthis.append('<div class="feedback-text ">this soundcloud track does not allow streaming  </div>')),q.src_real_mp3=q.cthis.attr("data-source"),q.cthis.attr("data-pcm")&&(q.isRealPcm=!0),"skin-wave"==D.design_skin&&"canvas"==D.skinwave_wave_mode&&0==q.isRealPcm&&0==("on"==D.pcm_data_try_to_generate&&"on"==D.pcm_data_try_to_generate_wait_for_real_pcm)&&dzsapWaveFunctions.scrubModeWave__initGenerateWaveData(q,{call_from:"soundcloud init(), pcm not real.."}),"on"==D.cue||q._sourcePlayer||q.feed_fakeButton)setup_media({called_from:"retrieve_soundcloud_url"}),
setTimeout(function(){q.isPlayPromised&&(play_media({call_from:"retrieve_soundcloud_url"}),q.isPlayPromised=!1)},300)}catch(I){console.log("soduncloud parse error -",c," - ",E)}}})}},function(n,h,q){q.r(h);q.d(h,"setup_structure",function(){return E});var x=q(0);q.n(x);var D=q(3),E=function(c,G){var I=jQuery,y=c.initOptions,b={setup_inner_player:!0,setup_media:!0,setup_otherstructure:!0,call_from:"default"};G&&(b=I.extend(b,G));"reconstruct"===b.call_from&&(c._metaArtistCon=null,c.cthis.hasClass("skin-wave")&&
(y.design_skin="skin-wave"),c.cthis.hasClass("skin-silver")&&(y.design_skin="skin-silver"));G='<div class="ap-controls';"skin-default"===y.design_skin&&(G+=" dzsap-color_inverse_ui_fill");G+='"></div>';b.setup_inner_player&&(c.cthis.append('<div class="audioplayer-inner"></div>'),c._audioplayerInner=c.cthis.children(".audioplayer-inner"));b.setup_media&&(c._audioplayerInner.append('<div class="the-media"></div>'),c.$theMedia=c._audioplayerInner.children(".the-media").eq(0));if(!b.setup_otherstructure)return!1;
"skin-customcontrols"!==y.design_skin&&c._audioplayerInner.append(G);c._apControls=c._audioplayerInner.children(".ap-controls").eq(0);c.cthis.attr("data-wrapper-image")&&(G=new Image,!1===c.cthis.hasClass("zoomsounds-no-wrapper")&&(G.onload=function(){c.cthis.css("background-image","url("+this.src+")");setTimeout(function(){c.cthis.find(".zoomsounds-bg").addClass("loaded");c.cthis.hasClass("zoomsounds-wrapper-bg-bellow")&&c.cthis.css("padding-top",200)},100)},G.src=c.cthis.attr("data-wrapper-image")));
var e="",p="";G='<div class="scrubbar"><div class="scrub-bg"></div><div class="scrub-buffer"></div><div class="scrub-prog';"wave"!==y.scrubbar_type&&(G+=" dzsap-color_brand_bg");G+='"></div><div class="scrubBox"></div><div class="scrubBox-prog"></div><div class="scrubBox-hover"></div>';p='<div class="total-time">00:00</div><div class="curr-time">00:00</div>';c.sample_perc_start&&(G+='<div class="sample-block-start" style="width: '+100*c.sample_perc_start+'%"></div>');c.sample_perc_end&&(G+='<div class="sample-block-end" style="left: '+
100*c.sample_perc_end+"%; width: "+(100-100*c.sample_perc_end)+'%"></div>');G+="</div>";y.controls_external_scrubbar&&(G="");var l="";y.settings_extrahtml_before_play_pause&&(l+=y.settings_extrahtml_before_play_pause);l+='<div class="con-playpause-con">';c.cthis.find(".feed-dzsap-before-playpause").length&&(l+=c.cthis.find(".feed-dzsap-before-playpause").eq(0).html(),c.cthis.find(".feed-dzsap-before-playpause").remove());l+='<div class="con-playpause';"on"===c.keyboard_controls.show_tooltips&&(l+=
" dzstooltip-con");l+='">';"on"===c.keyboard_controls.show_tooltips&&(l+=x.dzsap_generate_keyboard_tooltip(c.keyboard_controls,"pause_play"));l+='<div class="playbtn player-but"><div class="the-icon-bg"></div><div class="dzsap-play-icon">';var u=!1;if(c.cthis.hasClass("skin-wave")||c.cthis.hasClass("skin-pro")||c.cthis.hasClass("skin-silver")||c.cthis.hasClass("skin-redlights")||c.cthis.hasClass("skin-default"))u=!0;u&&(l+=D.svg_play_icon);l+='</div></div><div class="pausebtn player-but"><div class="the-icon-bg"></div><div class="pause-icon">';
u&&(l+=D.svg_pause);l+="</div></div>";"skin-wave"===y.design_skin&&(l+=y.skinwave_preloader_code);l+="</div>";c.cthis.find(".feed-dzsap-after-playpause").length&&(l+=c.cthis.find(".feed-dzsap-after-playpause").eq(0).html(),c.cthis.find(".feed-dzsap-after-playpause").remove());l+="</div>";e+='<div class="con-controls"><div class="the-bg"></div>'+l;y.settings_extrahtml_in_float_left&&(e+=y.settings_extrahtml_in_float_left);"skin-pro"===y.design_skin&&(e+='<div class="con-controls--right"></div>');u=
'<div class="controls-volume"><div class="volumeicon"></div><div class="volume_static"></div><div class="volume_active"></div><div class="volume_cut"></div></div>';"on"===y.disable_volume&&(u="");if("skin-default"===y.design_skin||"skin-wave"===y.design_skin)e+='<div class="ap-controls-right">',"on"!==y.disable_volume&&(e+='<div class="controls-volume"><div class="volumeicon"></div><div class="volume_static"></div><div class="volume_active"></div><div class="volume_cut"></div></div>'),e+="</div>";
e+="</div>";if("skin-wave"===y.design_skin&&"small"===c.skinwave_mode)e='<div class="the-bg"></div><div class="ap-controls-left">'+l+"</div>"+G+'<div class="ap-controls-right">'+u+'<div class="extrahtml-in-float-right for-skin-wave-small">'+c.settings_extrahtml_in_float_right+"</div></div>";else if("skin-aria"===y.design_skin||"skin-silver"===y.design_skin||"skin-redlights"===y.design_skin||"skin-steel"===y.design_skin)"skin-steel"===y.design_skin&&(D.playbtn_svg="",D.pausebtn_svg=""),e='<div class="the-bg"></div><div class="ap-controls-left">',
"skin-silver"===y.design_skin?e+=l:(e+='<div class="con-playpause',"on"===c.keyboard_controls.show_tooltips&&(e+=" dzstooltip-con"),e+='">',"on"===c.keyboard_controls.show_tooltips&&(e+=x.dzsap_generate_keyboard_tooltip(c.keyboard_controls,"pause_play")),e+='<div class="playbtn player-but playbtn-not-skin-silver"><div class="dzsap-play-icon">'+D.playbtn_svg+'</div><div class="play-icon-hover"></div></div><div class="pausebtn" ',"on"===y.design_animateplaypause&&c.cthis.addClass("playing-animation"),
e+='><div class="pause-icon">'+D.pausebtn_svg+'</div><div class="pause-icon-hover"></div></div></div>'),c.cthis.find(".feed-dzsap-after-playpause").length&&(e+=c.cthis.find(".feed-dzsap-after-playpause").eq(0).html(),c.cthis.find(".feed-dzsap-after-playpause").remove()),e+="</div>",c.settings_extrahtml_in_float_right&&(e+='<div class="controls-right">'+c.settings_extrahtml_in_float_right+"</div>","skin-redlights"===y.design_skin&&y.parentgallery&&y.parentgallery.get(0).api_skin_redlights_give_controls_right_to_all&&
y.parentgallery.get(0).api_skin_redlights_give_controls_right_to_all()),e+='<div class="ap-controls-right">',"skin-silver"===y.design_skin?e=e+'<div class="controls-volume controls-volume-vertical"><div class="volumeicon"></div><div class="volume-holder"><div class="volume_static"></div><div class="volume_active"></div><div class="volume_cut"></div></div></div></div>'+G:("skin-redlights"===y.design_skin&&"on"!=y.disable_volume&&(e+='<div class="controls-volume"><div class="volumeicon"></div><div class="volume_static">'+
D.svg_volume_static+'</div><div class="volume_active">'+D.svg_volume+'</div><div class="volume_cut"></div></div>'),e+=G,"on"!=y.disable_timer&&(e+='<div class="total-time">00:00</div>')),"skin-silver"!==y.design_skin&&(e+="</div>");l="";c.settings_extrahtml_in_float_right&&(-1<String(c.settings_extrahtml_in_float_right).indexOf("dzsap-multisharer-but")&&(c.isMultiSharer=!0),"skin-wave"!==y.design_skin||"small"!==c.skinwave_mode)&&(l+='<div class="extrahtml-in-float-right from-setup_structure from-js-setup_structure">'+
c.settings_extrahtml_in_float_right+"</div>");c._apControls.append(e);c.cthis.hasClass("skin-wave-mode-alternate")?0===c.cthis.find(".scrubbar").length&&c._apControls.append(G):0===c.cthis.find(".scrubbar").length&&c._apControls.prepend(G);c._apControlsRight=null;0<c._apControls.find(".ap-controls-right").length&&(c._apControlsRight=c.cthis.find(".ap-controls-right"));0<c._apControls.find(".ap-controls-left").length&&(c._apControlsLeft=c._apControls.find(".ap-controls-left").eq(0));"skin-pro"===y.design_skin&&
(c._apControlsRight=c.cthis.find(".con-controls--right").eq(0));c.settings_extrahtml_in_float_right&&l&&("skin-wave"!==y.design_skin&&"skin-default"!==y.design_skin||c.cthis.find(".ap-controls-right").eq(0).append(l),"skin-pro"===y.design_skin&&c.cthis.find(".con-controls--right").eq(0).append(l));c.cthis.find(".feed-dzsap-after-con-controls").length&&(c._apControls.append(c.cthis.find(".feed-dzsap-after-con-controls").eq(0).html()),c.cthis.find(".feed-dzsap-after-con-controls").remove());c._scrubbar=
y.controls_external_scrubbar?I(y.controls_external_scrubbar).children(".scrubbar").eq(0):c._apControls.find(".scrubbar").eq(0);c.$$scrubbProg=c._scrubbar.find(".scrub-prog").get(0);c.$conControls=c._apControls.children(".con-controls");c.$conPlayPause=c.cthis.find(".con-playpause").eq(0);c._conPlayPauseCon=c.cthis.find(".con-playpause-con").eq(0);c.$controlsVolume=c.cthis.find(".controls-volume").eq(0);x.player_constructArtistAndSongCon.bind(c)(b);c._scrubbar.addClass("scrubbar-inited");"wave"===
y.scrubbar_type&&"on"!=y.disable_timer&&""===y.controls_external_scrubbar&&c._scrubbar.append(p);"skin-wave"!=y.design_skin&&"on"!=y.disable_timer&&c._apControls.append(p);"on"!=y.disable_timer&&(c.$currTime=c.cthis.find(".curr-time").eq(0),c.$totalTime=c.cthis.find(".total-time").eq(0),"skin-steel"===y.design_skin&&0===c.$currTime.length&&(c.$totalTime.before('<div class="curr-time">00:00</div> <span class="separator-slash">/</span> '),c.$currTime=c.$totalTime.prev().prev()));0<Number(y.sample_time_total)&&
(c.timeTotal=Number(y.sample_time_total),c.$totalTime&&c.$totalTime.html(x.formatTime(c.time_total_for_visual)));c.struct_generate_thumb();"skin-wave"===y.design_skin&&y.parentgallery&&"undefined"!=typeof y.parentgallery&&"on"===y.design_menu_show_player_state_button&&("skin-wave"===y.design_skin?c._apControlsRight?c._apControlsRight.appendOnce('<div class="btn-menu-state player-but"> <div class="the-icon-bg"></div> '+D.svg_menu_state+"    </div></div>"):console.log("selfClass._apControlsRight not found ? "):
c._audioplayerInner.appendOnce('<div class="btn-menu-state"></div>'));"on"===y.skinwave_place_metaartist_after_volume&&c.$controlsVolume.before(c._metaArtistCon);y.settings_extrahtml_after_artist&&c._metaArtistCon.find(".the-artist").append(y.settings_extrahtml_after_artist);"on"===y.skinwave_place_thumb_after_volume&&c.$controlsVolume.before(c.cthis.find(".the-thumb-con"));"skin-wave"===y.design_skin&&(c.setup_structure_scrub(),"on"===y.skinwave_timer_static&&(c.$currTime&&c.$currTime.addClass("static"),
c.$totalTime&&c.$totalTime.addClass("static")),c._apControls.css({}),"canvas"===y.skinwave_wave_mode&&setTimeout(function(){c.cthis.addClass("scrubbar-loaded");c._scrubbar.parent().addClass("scrubbar-loaded")},700));c.check_multisharer();c.cthis.hasClass("skin-minimal")&&(c.cthis.find(".the-bg").before('<div class="skin-minimal-bg skin-minimal--outer-bg"></div><div class="skin-minimal-bg skin-minimal--inner-bg-under"></div><div class="skin-minimal-bg skin-minimal--inner-bg"></div><div class="skin-minimal-bg skin-minimal--inner-inner-bg"></div>'),
c.cthis.find(".the-bg").append('<canvas width="100" height="100" class="playbtn-canvas"/>'),c.skin_minimal_canvasplay=c.cthis.find(".playbtn-canvas").eq(0).get(0),c.$conPlayPause&&(c.$conPlayPause.children(".playbtn").append(D.playbtn_svg),c.$conPlayPause.children(".pausebtn").append(D.pausebtn_svg)),setTimeout(function(){c.isCanvasFirstDrawn=!1},200));c.cthis.hasClass("skin-minion")&&0<c.cthis.find(".menu-description").length&&(c.$conPlayPause.addClass("with-tooltip"),c.$conPlayPause.prepend('<span class="dzstooltip" style="left:-7px;">'+
c.cthis.find(".menu-description").html()+"</span>"),c.$conPlayPause.children("span").eq(0).css("width",c.$conPlayPause.children("span").eq(0).textWidth()+10));"default"===y.player_navigation&&(y.parentgallery&&(y.player_navigation="on"),y.parentgallery&&y.parentgallery.hasClass("mode-showall")&&(y.player_navigation="off"));"on"===y.disable_player_navigation&&(y.player_navigation="off");"default"===y.player_navigation&&(y.player_navigation="off");"on"===y.player_navigation&&(I='<div class="prev-btn player-but"><div class="the-icon-bg"></div>'+
D.svg_prev_btn+" </div>",G='<div class="next-btn player-but"><div class="the-icon-bg"></div>'+D.svg_next_btn+"  </div>","skin-steel"===y.design_skin&&(I='<div class="prev-btn player-but">'+D.svg_prev_btn_steel+"</div>",G='<div class="next-btn player-but">'+D.svg_next_btn_steel+"</div>"),e=I+G,"skin-wave"===y.design_skin&&"small"===c.skinwave_mode||"skin-aria"===y.design_skin?(c.$conPlayPause.before(I),c.$conPlayPause.after(G)):"skin-wave"===y.design_skin?"on"===y.player_navigation&&(c._conPlayPauseCon.prependOnce(I,
".prev-btn"),c._conPlayPauseCon.appendOnce(G,".next-btn")):"skin-steel"===y.design_skin?(c._apControlsLeft.prependOnce(I,".prev-btn"),0<c._apControlsLeft.children(".the-thumb-con").length?0<c._apControlsLeft.children(".the-thumb-con").eq(0).length&&!1===c._apControlsLeft.children(".the-thumb-con").eq(0).prev().hasClass("next-btn")&&c._apControlsLeft.children(".the-thumb-con").eq(0).before(G):c._apControlsLeft.appendOnce(G,".next-btn")):c._audioplayerInner.appendOnce(e,".prev-btn"));c.cthis.find(".extra-html-extra").length&&
(""===y.settings_extrahtml&&(y.settings_extrahtml=" "),I=c.cthis.find(".extra-html-extra").eq(0).html(),I.length&&(y.settings_extrahtml=I,c.cthis.find(".extra-html-extra").eq(0).html("")));c.cthis.hasClass("skinvariation-wave-bigtitles")&&c.cthis.find(".controls-volume").length&&0===c._metaArtistCon.find(".controls-volume").length&&(c._metaArtistCon.append("<br>"),c._metaArtistCon.append(c.cthis.find(".controls-volume")));c.cthis.hasClass("skinvariation-wave-righter")&&(c._apControls.appendOnce('<div class="playbuttons-con"></div>'),
c.cthis.find(".playbuttons-con").eq(0).append(c.cthis.find(".con-playpause-con")));"skin-pro"===y.design_skin&&(c._apControlsRight.append(c.$currTime),c._apControlsRight.append(c.$totalTime));"skin-silver"===y.design_skin&&(c._scrubbar.after(c._apControlsRight),c._apControlsLeft.prepend(c._metaArtistCon),c._apControlsLeft.append(c.$currTime),c._apControlsRight.append(c.$totalTime));"skin-redlights"===y.design_skin&&(c._apControlsRight.append('<div class="ap-controls-right--top"></div>'),c._apControlsRight.append('<div class="ap-controls-right--bottom"></div>'),
c._apControlsRight.find(".ap-controls-right--top").append(c._apControlsRight.find(".meta-artist-con")),c._apControlsRight.find(".ap-controls-right--top").append(c._apControlsRight.find(".controls-volume")),c._apControlsRight.find(".ap-controls-right--bottom").append(c._apControlsRight.find(".scrubbar")));"reconstruct"===b.call_from&&c.cthis.hasClass("skin-silver")&&c._apControlsLeft.append(c.cthis.find(".con-playpause"));c.isMultiSharer&&c.check_multisharer();c.setup_structure_sanitizers();c.setup_structure_extras();
c.cthis.addClass("structure-setuped")}},function(n,h,q){function x(l,u){function g(C,ca){window.dzsap_wavesurfer_load_attempt++;2<window.dzsap_wavesurfer_load_attempt&&(w=E.URL_WAVESURFER);6>window.dzsap_wavesurfer_load_attempt&&B.ajax({url:w,dataType:"script",success:function(aa){u.scrubModeWave__generateWaveData(l,{call_from:"load_script",wavesurfer_url:w});C("done")},error:function(aa){g(C,ca)}});6<window.dzsap_wavesurfer_load_attempt&&ca("rejected")}var A,v,t,w,B;return k.asyncExecutePromiseGeneratorProgram(function(C){if(1==
C.nextAddress){A=document.getElementsByTagName("script");v="";for(t in A)if(A[t]&&A[t].src&&-1<A[t].src.indexOf("audioplayer.js"))break;A=String(A[t].src).split("/");for(t=0;t<A.length-1;t++)v+=A[t]+"/";w=E.URL_WAVESURFER;v&&(w=v+"wavesurfer.js");B=jQuery;return C.yield(new Promise(function(ca,aa){g(ca,aa)}),2)}return C.return(C.yieldResult)})}q.r(h);q.d(h,"wave_mode_canvas_try_to_get_pcm",function(){return c});q.d(h,"scrubModeWave__checkIfWeShouldTryToGetPcm",function(){return G});q.d(h,"scrubModeWave__transitionIn",
function(){return I});q.d(h,"scrubModeWave__initGenerateWaveData",function(){return y});q.d(h,"scrubModeWave__generateWaveData",function(){return b});q.d(h,"scrubModeWave__sendPcm",function(){return e});q.d(h,"draw_canvas",function(){return p});var D=q(0);q.n(D);var E=q(4).constants,c=function(l,u){function g(){function C(ca,aa){l.cthis.attr("data-pcm")||(aa={action:"dzsap_get_pcm",postdata:"1",source:l.cthis.attr("data-source"),playerid:l.identifier_pcm},l.urlToAjaxHandler&&t.ajax({type:"POST",url:l.urlToAjaxHandler,
data:aa,success:function(O){if(O)"0"!=O&&-1<O.indexOf(",")?(O=O.replace(" data-pcm='",""),O=O.replace("'",""),l.cthis.attr("data-pcm",O),l.isRealPcm=!0,ca({resolve_type:"success"})):ca({resolve_type:"error",error_type:"empty_response"});else if("on"===l.initOptions.cue)ca({resolve_type:"error",error_type:"empty_response"});else if(l.isPcmPromisingToGenerateOnMetaLoad=!0,"on"===B.pcm_data_try_to_generate_wait_for_real_pcm){O=[];for(var T=0;200>T;T++)O[T]=Number(Math.random()).toFixed(3);O=JSON.stringify(O);
w.scrubModeWave__transitionIn(l,O);l.isRealPcm=!1;ca({resolve_type:"success"})}},error:function(O){ca({resolve_type:"error"})}}))}return k.asyncExecutePromiseGeneratorProgram(function(ca){return ca.return(new Promise(function(aa,O){C(aa,O)}))})}var A=this,v={},t=jQuery;u&&(v=t.extend(v,u));var w=this,B=l.initOptions;if("fake"==l.src_real_mp3)return!1;try{g().then(function(C){"success"==C.resolve_type&&setTimeout(function(){l.cthis.addClass("scrubbar-loaded");l.calculate_dims_time();setTimeout(function(){},
100)},100);"error"==C.resolve_type&&(l.isPcmTryingToGenerate=!0,A.scrubModeWave__initGenerateWaveData(l,{call_from:"pcm_data_try_to_generate .. no get call success"}))})}catch(C){console.log("error - ",C)}},G=function(l,u){u=!1;if(l.isPcmTryingToGenerate)return!1;l.isPcmPromisingToGenerateOnMetaLoad&&(u=l.isPcmTryingToGenerate=!0);l.cthis.attr("data-pcm")||l.urlToAjaxHandler||(u=l.isPcmTryingToGenerate=!0);u&&this.scrubModeWave__initGenerateWaveData(l,{call_from:"pcm_data_try_to_generate .. no data-pcm"})},
I=function(l,u){var g=l.initOptions;l._scrubbar.find(".scrub-bg-img,.scrub-prog-img").removeClass("transitioning-in");l._scrubbar.find(".scrub-bg-img,.scrub-prog-img").addClass("transitioning-out");D.scrubbar_modeWave_setupCanvas({prepare_for_transition_in:!0},l);this.draw_canvas(l._scrubbarbg_canvas.get(0),u,"#"+g.design_wave_color_bg,{call_from:"canvas_generate_wave_data_animate_pcm_bg",selfClass:l,skinwave_wave_mode_canvas_waves_number:parseInt(g.skinwave_wave_mode_canvas_waves_number),skinwave_wave_mode_canvas_waves_padding:parseInt(g.skinwave_wave_mode_canvas_waves_padding)});
this.draw_canvas(l._scrubbarprog_canvas.get(0),u,"#"+g.design_wave_color_progress,{call_from:"canvas_generate_wave_data_animate_pcm_prog",selfClass:l,skinwave_wave_mode_canvas_waves_number:parseInt(g.skinwave_wave_mode_canvas_waves_number),skinwave_wave_mode_canvas_waves_padding:parseInt(g.skinwave_wave_mode_canvas_waves_padding)});setTimeout(function(){D.scrubbar_modeWave_clearObsoleteCanvas(l)},300);l.isRealPcm=!0;l.scrubbar_reveal()},y=function(l,u){var g=jQuery,A=l.initOptions,v={call_from:"default",
call_attempt:0},t=this;u&&(v=g.extend(v,u));if(l.isRealPcm||"fake"==l.src_real_mp3)return!1;l.isPcmTryingToGenerate=!0;if(!l.isPcmTryingToGenerate)return setTimeout(function(){v.call_attempt++;10>v.call_attempt&&(t.scrubModeWave__initGenerateWaveData(v),console.log("%c [dzsap] trying to regenerate ",E.DEBUG_STYLE_1))},1E3),!1;window.WaveSurfer?t.scrubModeWave__generateWaveData(l,{call_from:"wavesurfer already loaded"}):("on"==A.pcm_notice&&(l.cthis.addClass("errored-out"),l.cthis.append('<div class="feedback-text pcm-notice">please wait while pcm data is generated.. </div>')),
x(l,t).then(function(w){return console.log("[wavesurfer] loading done",w)}))},b=function(l,u){var g=jQuery,A=l.initOptions,v={call_from:"default"},t=this;u&&g.extend(v,u);if("fake"==l.src_real_mp3)return!1;(function(){function w(B,C){if(window.dzsap_generating_pcm)return setTimeout(function(){w(B,C)},1E3),!1;window.dzsap_generating_pcm=!0;var ca="wavesurfer_"+Math.ceil(1E4*Math.random());l.identifier_pcm&&(ca="wavesurfer_"+l.identifier_pcm);l.cthis.append('<div id="'+ca+'" class="hidden"></div>');
var aa=WaveSurfer.create({container:"#"+ca,normalize:!0,pixelRatio:1});if(0!=String(l.cthis.attr("data-source")).indexOf("https://soundcloud.com")&&"fake"!=l.cthis.attr("data-source")){String(l.cthis.attr("data-source")).indexOf("https://api.soundcloud.com");try{aa.load(l.src_real_mp3)}catch(O){console.log("[wavesurfer] WAVE SURFER NO LOAD")}aa.on("ready",function(){console.log("[dzsap] [wavesurfer] generating wave data for ",l.identifier_pcm);var O=100;l.$mediaNode_&&l.$mediaNode_.duration&&1E3<
l.$mediaNode_.duration&&(O=100);O=aa&&aa.exportPCM?aa.exportPCM(A.wavesurfer_pcm_length,O,!0):D.generateFakeArrayForPcm();B({resolve_type:"success",pcm_data:O})});aa.on("error",function(O,T){C({error_type:"wavesurfer_error",error_message:O})});setTimeout(function(){C({error_type:"wavesurfer_timeout",error_message:"timeout"})},E.WAVESURFER_MAX_TIMEOUT)}}return k.asyncExecutePromiseGeneratorProgram(function(B){return B.return(new Promise(function(C,ca){w(C,ca)}))})})().then(function(w){t.scrubModeWave__sendPcm(l,
w.pcm_data);t.scrubModeWave__transitionIn(l,w.pcm_data)}).catch(function(w){for(var B=[],C=0;200>C;C++)B[C]=Math.abs(Number(Math.random()).toFixed(3));B=JSON.stringify(B);console.log("%c [dzsap] error while generating pcm - ",E.DEBUG_STYLE_ERROR,w,w.error_message);t.scrubModeWave__sendPcm(l,B);t.scrubModeWave__transitionIn(l,B)})},e=function(l,u){var g=jQuery;try{u=JSON.stringify(JSON.parse(String(u)).map(Math.abs))}catch(A){console.log(A,"ar_str - ",u)}l.cthis.attr("data-pcm",u);l._feed_fakeButton&&
l._feed_fakeButton.attr&&l._feed_fakeButton.attr("data-pcm",u);l._sourcePlayer&&l._sourcePlayer.attr&&l._sourcePlayer.attr("data-pcm",u);l.cthis.find(".pcm-notice").fadeOut("fast");l.cthis.removeClass("errored-out");l.identifier_pcm||(l.identifier_pcm=l.cthis.attr("data-source"),l.original_real_mp3&&(l.identifier_pcm=l.original_real_mp3));u={action:"dzsap_submit_pcm",postdata:u,playerid:l.identifier_pcm,source:l.cthis.attr("data-source")};window.dzsap_generating_pcm=!1;l.urlToAjaxHandler&&g.ajax({type:"POST",
url:l.urlToAjaxHandler,data:u,success:function(A){}})},p=function(l,u,g,A){function v(Ia){if(Ia/W<ca/aa||Ia/W>O/aa)if(M.fillStyle=D.hexToRgb(B,.5),-1<t.call_from.indexOf("pcm_prog"))return!1;return!0}var t={call_from:"default",is_sample:!1,selfClass:null,sample_time_start:0,sample_time_end:0,sample_time_total:0,skinwave_wave_mode_canvas_waves_number:2,skinwave_wave_mode_canvas_waves_padding:1},w=jQuery;A&&(t=Object.assign(t,A));A=w(l);var B="";w=!1;w=t;var C=w.is_sample,ca=w.sample_time_start,aa=
w.sample_time_total,O=w.sample_time_end,T=w.selfClass,J=w.skinwave_wave_mode_canvas_waves_number,P=w.skinwave_wave_mode_canvas_waves_padding;isNaN(Number(J))&&(J=2);isNaN(Number(P))&&(P=1!=J?1:0);"canvas_normal_pcm_bg"==t.call_from&&(B=g,-1<g.indexOf(",")&&(B=g.split(",")[0]));if(T)var V=T.initOptions;if(!A||!A.get(0))return!1;var M=A.get(0).getContext("2d");A=[];T&&T._scrubbar&&T._scrubbarprog_canvas&&(T._scrubbarprog_canvas.width(T._scrubbar.width()),l.width=T._scrubbar.width(),l.height=T._scrubbar.height());
M.imageSmoothingEnabled=!1;M.imageSmoothing=!1;M.imageSmoothingQuality="high";M.webkitImageSmoothing=!1;if(!u)return setTimeout(function(){},1E3),!1;if("object"==typeof u)A=u;else try{A=JSON.parse(u)}catch(Ia){}for(u=w=u=0;u<A.length;u++)A[u]>w&&(w=A[u]);var ba=[];for(u=0;u<A.length;u++)ba[u]=parseFloat(Math.abs(A[u])/Number(w));A=ba;var R=null;T&&(l.width=T._scrubbar.width());w=l.width;l=l.height;var W=J;ba=P;1==W&&(W=w/W);2==W&&(W=w/2);3==W&&(W=w/3);J=parseFloat(V.skinwave_wave_mode_canvas_reflection_size);
1>w/W&&(W=Math.ceil(W/3));P=Math.ceil(w/W);var da=1-J;0==P&&(P=1,ba=0);1==P&&(ba/=2);var Z=0;R=null;u=g.replace("#","");var H=[];-1<u.indexOf(",")&&(H=u.split(","));var K="",ia="";"spectrum"==t.call_from&&(K=V.design_wave_color_progress,K=K.replace("#",""),ia=[],-1<K.indexOf(",")&&(ia=K.split(",")));var X=!1;M.clearRect(0,0,w,l);for(u=0;u<W;u++){w=!0;M.save();R=Math.ceil(A.length/W*u);u<W/5&&.1>A[R]&&(A[R]=.1);A.length>2.5*W&&0<u&&u<A.length-1&&(A[R]=Math.abs(A[R]+A[R-1]+A[R+1])/3);R=Math.abs(A[R]*
l*da);"on"==V.skinwave_wave_mode_canvas_normalize&&(R=R/1.5+Z/2.5);Z=R;M.lineWidth=0;R=Math.floor(R);var Fa=Math.ceil(l*da-R);"reflecto"===V.skinwave_wave_mode_canvas_mode&&R++;M.beginPath();M.rect(u*P,Fa,P-ba,R);"spectrum"==t.call_from&&(X=u/W<T.timeCurrent/T.timeTotal?!0:!1);X?(M.fillStyle="#"+K,ia.length&&(R=M.createLinearGradient(0,0,0,l),R.addColorStop(0,"#"+ia[0]),R.addColorStop(1,"#"+ia[1]),M.fillStyle=R),C&&(u/W<ca/aa||u/W>O/aa)&&(M.fillStyle=D.hexToRgb(B,0))):(M.fillStyle=g,H.length&&(R=
M.createLinearGradient(0,0,0,l),H[0]=String(H[0]).replace("#",""),H[1]=String(H[1]).replace("#",""),R.addColorStop(0,"#"+H[0]),R.addColorStop(1,"#"+H[1]),M.fillStyle=R),C&&!1===v(u)&&(w=!1));w&&(M.fill(),M.closePath());M.restore()}if(0<J)for(u=0;u<W;u++)w=!0,R=Math.ceil(A.length/W*u),Z=Math.abs(A[R]*l*J),M.beginPath(),M.rect(u*P,l*da,P-ba,Z),"spectrum"==t.call_from&&(X=u/W<T.timeCurrent/T.timeTotal?!0:!1),X?("reflecto"!=V.skinwave_wave_mode_canvas_mode&&(M.fillStyle=D.hexToRgb(K,.25)),ia.length&&
(R=M.createLinearGradient(0,0,0,l),Z=D.hexToRgb("#"+ia[1],.25),"reflecto"==V.skinwave_wave_mode_canvas_mode&&(Z=D.hexToRgb("#"+ia[1],1)),R.addColorStop(0,Z),Z=D.hexToRgb("#"+ia[0],.25),"reflecto"==V.skinwave_wave_mode_canvas_mode&&(Z=D.hexToRgb("#"+ia[0],1)),R.addColorStop(1,Z),M.fillStyle=R)):(M.fillStyle=g,"reflecto"!=V.skinwave_wave_mode_canvas_mode&&(M.fillStyle=D.hexToRgb(g,.25)),H.length&&(R=M.createLinearGradient(0,0,0,l),Z=D.hexToRgb("#"+H[1],.25),"reflecto"==V.skinwave_wave_mode_canvas_mode&&
(Z=D.hexToRgb("#"+H[1],1)),R.addColorStop(0,Z),Z=D.hexToRgb("#"+H[0],.25),"reflecto"==V.skinwave_wave_mode_canvas_mode&&(Z=D.hexToRgb("#"+H[0],1)),R.addColorStop(1,Z),M.fillStyle=R),C&&!1===v(u)&&(w=!1)),w&&(M.fill(),M.closePath());setTimeout(function(){T.scrubbar_reveal()},100)}},function(n,h,q){q.r(h);q.d(h,"media_tryToPlay",function(){return D});q.d(h,"media_pause",function(){return E});var x=q(0);q.n(x);var D=function(c,G,I){(function(){function y(b,e){c.cthis.attr("data-original-type")||(c.$mediaNode_?
c.$mediaNode_.play?x.is_ios()&&null!==c.spectrum_audioContext&&"object"==typeof c.spectrum_audioContext?(c.spectrum_audioContextBufferSource=c.spectrum_audioContext.createBufferSource(),c.spectrum_audioContextBufferSource.buffer=c.spectrum_audioContext_buffer,c.spectrum_audioContextBufferSource.connect(c.spectrum_audioContext.destination),c.spectrum_audioContextBufferSource.start(0,c.lastTimeInSeconds),b({resolve_type:"playing_context"})):x.is_ie()?(c.$mediaNode_.play(),b({resolve_type:"started_playing"})):
c.$mediaNode_.play().then(function(p){b({resolve_type:"started_playing"})}).catch(function(p){e({error_type:"did not want to play",error_message:p})}):null==c._actualPlayer&&(c.isPlayPromised=!0):null==c._actualPlayer&&(c.isPlayPromised=!0))}return k.asyncExecutePromiseGeneratorProgram(function(b){return b.return(new Promise(function(e,p){y(e,p)}))})})().then(function(y){G(y)}).catch(function(y){I(y)})},E=function(c,G){var I=jQuery;"youtube"===c.audioType&&c.$mediaNode_&&c.$mediaNode_.pauseVideo&&
c.$mediaNode_.pauseVideo();"selfHosted"===c.audioType&&(c.$mediaNode_&&("stop"==c.initOptions.pause_method?(c.$mediaNode_.pause(),c.$mediaNode_.src="",c.destroy_cmedia(),I(c.$mediaNode_).remove(),c.$mediaNode_=null):c.$mediaNode_.pause&&c.$mediaNode_.pause()),c.$watermarkMedia_&&c.$watermarkMedia_.pause&&c.$watermarkMedia_.pause());G()}},function(n,h){h.default_opts={design_skin:"skin-default",call_from:"default",autoplay_on_scrub_click:"off",cueMedia:"on",preload_method:"metadata",loop:"off",pause_method:"pause",
settings_extrahtml:"",settings_extrahtml_after_artist:"",settings_extrahtml_in_float_left:"",settings_extrahtml_in_float_right:"",settings_extrahtml_before_play_pause:"",settings_extrahtml_after_play_pause:"",settings_trigger_resize:"0",design_thumbh:"default",extra_classes_player:"",disable_volume:"default",disable_scrub:"default",disable_timer:"default",disable_player_navigation:"off",scrub_show_scrub_time:"on",player_navigation:"default",type:"audio",enable_embed_button:"off",embed_code:"",skinwave_dynamicwaves:"off",
soundcloud_apikey:"",skinwave_enableSpectrum:"off",skinwave_place_thumb_after_volume:"off",skinwave_place_metaartist_after_volume:"off",skinwave_spectrummultiplier:"1",php_retriever:"soundcloudretriever.php",skinwave_mode:"normal",skinwave_wave_mode:"canvas",skinwave_wave_mode_canvas_mode:"normal",skinwave_wave_mode_canvas_normalize:"on",skinwave_wave_mode_canvas_waves_number:"3",skinwave_wave_mode_canvas_waves_padding:"1",skinwave_wave_mode_canvas_reflection_size:"0.25",wavesurfer_pcm_length:"200",
pcm_data_try_to_generate:"on",pcm_data_try_to_generate_wait_for_real_pcm:"on",pcm_notice:"off",notice_no_media:"on",mobile_delete:"off",footer_btn_playlist:"off",mobile_disable_fakeplayer:"off",skinwave_comments_retrievefromajax:"off",skinwave_preloader_code:"default",skinwave_comments_displayontime:"on",skinwave_comments_avatar:"https://www.gravatar.com/avatar/00000000000000000000000000000000?s=20",skinwave_comments_allow_post_if_not_logged_in:"on",skinwave_comments_links_to:"",skinwave_comments_enable:"off",
skinwave_comments_mode_outer_selector:"",skinwave_comments_playerid:"",skinwave_comments_account:"none",skinwave_comments_process_in_php:"on",skinwave_timer_static:"off",default_volume:"default",volume_from_gallery:"",design_menu_show_player_state_button:"off",playfrom:"off",design_animateplaypause:"default",embedded:"off",embedded_iframe_id:"",sample_time_start:"",sample_time_end:"",sample_time_total:"",google_analytics_send_play_event:"off",fakeplayer:null,failsafe_repair_media_element:"",action_audio_play:null,
action_audio_play2:null,action_audio_pause:null,action_audio_end:null,action_audio_comment:null,action_received_time_total:null,action_audio_change_media:null,action_audio_loaded_metadata:null,action_video_contor_60secs:null,type_audio_stop_buffer_on_unfocus:"off",construct_player_list_for_sync:"off",settings_exclude_from_list:"off",design_wave_color_bg:"222222",design_wave_color_progress:"ea8c52",skin_minimal_button_size:"100",gallery_gapless_play:"off",preview_on_hover:"off",watermark_volume:"1",
controls_external_scrubbar:"",parentgallery:null,scrubbar_type:"auto",settings_php_handler:""}}])}).call(this||window);}).call(this || window)

//# sourceMappingURL=es5-audioplayer.js.map
