(function(){var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function $$jscomp$arrayIteratorImpl$(array){var index=0;return function(){return index<array.length?{done:!1,value:array[index++]}:{done:!0}}};$jscomp.arrayIterator=function $$jscomp$arrayIterator$(array){return{next:$jscomp.arrayIteratorImpl(array)}};$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(target,property,descriptor){if(target==Array.prototype||target==Object.prototype)return target;target[property]=descriptor.value;return target};
$jscomp.getGlobal=function $$jscomp$getGlobal$(passedInThis_possibleGlobals){passedInThis_possibleGlobals=["object"==typeof globalThis&&globalThis,passedInThis_possibleGlobals,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var i=0;i<passedInThis_possibleGlobals.length;++i){var maybeGlobal=passedInThis_possibleGlobals[i];if(maybeGlobal&&maybeGlobal.Math==Math)return maybeGlobal}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 $$jscomp$lookupPolyfilledValue$(target,key){var polyfill_polyfilledKey=$jscomp.propertyToPolyfillSymbol[key];if(null==polyfill_polyfilledKey)return target[key];polyfill_polyfilledKey=target[polyfill_polyfilledKey];return void 0!==polyfill_polyfilledKey?polyfill_polyfilledKey:target[key]};
$jscomp.polyfill=function $$jscomp$polyfill$(target,polyfill,fromLang,toLang){polyfill&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(target,polyfill,fromLang,toLang):$jscomp.polyfillUnisolated(target,polyfill,fromLang,toLang))};
$jscomp.polyfillUnisolated=function $$jscomp$polyfillUnisolated$(property$jscomp$5_split_target,impl_polyfill,fromLang$jscomp$1_obj,i$jscomp$4_orig_toLang){fromLang$jscomp$1_obj=$jscomp.global;property$jscomp$5_split_target=property$jscomp$5_split_target.split(".");for(i$jscomp$4_orig_toLang=0;i$jscomp$4_orig_toLang<property$jscomp$5_split_target.length-1;i$jscomp$4_orig_toLang++){var key=property$jscomp$5_split_target[i$jscomp$4_orig_toLang];if(!(key in fromLang$jscomp$1_obj))return;fromLang$jscomp$1_obj=
fromLang$jscomp$1_obj[key]}property$jscomp$5_split_target=property$jscomp$5_split_target[property$jscomp$5_split_target.length-1];i$jscomp$4_orig_toLang=fromLang$jscomp$1_obj[property$jscomp$5_split_target];impl_polyfill=impl_polyfill(i$jscomp$4_orig_toLang);impl_polyfill!=i$jscomp$4_orig_toLang&&null!=impl_polyfill&&$jscomp.defineProperty(fromLang$jscomp$1_obj,property$jscomp$5_split_target,{configurable:!0,writable:!0,value:impl_polyfill})};
$jscomp.polyfillIsolated=function $$jscomp$polyfillIsolated$(isNativeClass_target,impl$jscomp$1_polyfill,fromLang,obj$jscomp$27_root$jscomp$3_toLang){var property$jscomp$6_split=isNativeClass_target.split(".");isNativeClass_target=1===property$jscomp$6_split.length;obj$jscomp$27_root$jscomp$3_toLang=property$jscomp$6_split[0];obj$jscomp$27_root$jscomp$3_toLang=!isNativeClass_target&&obj$jscomp$27_root$jscomp$3_toLang in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var i=0;i<property$jscomp$6_split.length-
1;i++){var key=property$jscomp$6_split[i];if(!(key in obj$jscomp$27_root$jscomp$3_toLang))return;obj$jscomp$27_root$jscomp$3_toLang=obj$jscomp$27_root$jscomp$3_toLang[key]}property$jscomp$6_split=property$jscomp$6_split[property$jscomp$6_split.length-1];fromLang=$jscomp.IS_SYMBOL_NATIVE&&"es6"===fromLang?obj$jscomp$27_root$jscomp$3_toLang[property$jscomp$6_split]:null;impl$jscomp$1_polyfill=impl$jscomp$1_polyfill(fromLang);null!=impl$jscomp$1_polyfill&&(isNativeClass_target?$jscomp.defineProperty($jscomp.polyfills,
property$jscomp$6_split,{configurable:!0,writable:!0,value:impl$jscomp$1_polyfill}):impl$jscomp$1_polyfill!==fromLang&&($jscomp.propertyToPolyfillSymbol[property$jscomp$6_split]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(property$jscomp$6_split):$jscomp.POLYFILL_PREFIX+property$jscomp$6_split,property$jscomp$6_split=$jscomp.propertyToPolyfillSymbol[property$jscomp$6_split],$jscomp.defineProperty(obj$jscomp$27_root$jscomp$3_toLang,property$jscomp$6_split,{configurable:!0,writable:!0,value:impl$jscomp$1_polyfill})))};
$jscomp.initSymbol=function $$jscomp$initSymbol$(){};
$jscomp.polyfill("Symbol",function(orig){if(orig)return orig;var SymbolClass=function $SymbolClass$(id,opt_description){this.$jscomp$symbol$id_=id;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:opt_description})};SymbolClass.prototype.toString=function $SymbolClass$$toString$(){return this.$jscomp$symbol$id_};var counter=0,symbolPolyfill=function $symbolPolyfill$(opt_description){if(this instanceof symbolPolyfill)throw new TypeError("Symbol is not a constructor");return new SymbolClass("jscomp_symbol_"+
(opt_description||"")+"_"+counter++,opt_description)};return symbolPolyfill},"es6","es3");$jscomp.initSymbolIterator=function $$jscomp$initSymbolIterator$(){};
$jscomp.polyfill("Symbol.iterator",function(orig){if(orig)return orig;orig=Symbol("Symbol.iterator");for(var arrayLikes="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),i=0;i<arrayLikes.length;i++){var ArrayLikeCtor=$jscomp.global[arrayLikes[i]];"function"===typeof ArrayLikeCtor&&"function"!=typeof ArrayLikeCtor.prototype[orig]&&$jscomp.defineProperty(ArrayLikeCtor.prototype,orig,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return orig},
"es6","es3");$jscomp.initSymbolAsyncIterator=function $$jscomp$initSymbolAsyncIterator$(){};$jscomp.iteratorPrototype=function $$jscomp$iteratorPrototype$(iterator){iterator={next:iterator};iterator[Symbol.iterator]=function $iterator$Symbol$iterator$(){return this};return iterator};$jscomp.createTemplateTagFirstArg=function $$jscomp$createTemplateTagFirstArg$(arrayStrings){return arrayStrings.raw=arrayStrings};
$jscomp.createTemplateTagFirstArgWithRaw=function $$jscomp$createTemplateTagFirstArgWithRaw$(arrayStrings,rawArrayStrings){arrayStrings.raw=rawArrayStrings;return arrayStrings};$jscomp.underscoreProtoCanBeSet=function $$jscomp$underscoreProtoCanBeSet$(){var x={a:!0},y={};try{return y.__proto__=x,y.a}catch(e){}return!1};
$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(target,proto){target.__proto__=proto;if(target.__proto__!==proto)throw new TypeError(target+" is not extensible");return target}:null;
$jscomp.makeIterator=function $$jscomp$makeIterator$(iterable){var iteratorFunction="undefined"!=typeof Symbol&&Symbol.iterator&&iterable[Symbol.iterator];return iteratorFunction?iteratorFunction.call(iterable):$jscomp.arrayIterator(iterable)};$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function $$jscomp$generator$ensureIteratorResultIsObject_$(result){if(!(result instanceof Object))throw new TypeError("Iterator result "+result+" is not an object");};
$jscomp.generator.Context=function $$jscomp$generator$Context$(){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 $$jscomp$generator$Context$$start_$(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};
$jscomp.generator.Context.prototype.stop_=function $$jscomp$generator$Context$$stop_$(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function $$jscomp$generator$Context$$jumpToErrorHandler_$(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function $$jscomp$generator$Context$$next_$(value){this.yieldResult=value};
$jscomp.generator.Context.prototype.throw_=function $$jscomp$generator$Context$$throw_$(e){this.abruptCompletion_={exception:e,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function $$jscomp$generator$Context$$return$(value){this.abruptCompletion_={return:value};this.nextAddress=this.finallyAddress_};
$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function $$jscomp$generator$Context$$jumpThroughFinallyBlocks$(nextAddress){this.abruptCompletion_={jumpTo:nextAddress};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function $$jscomp$generator$Context$$yield$(value,resumeAddress){this.nextAddress=resumeAddress;return{value:value}};
$jscomp.generator.Context.prototype.yieldAll=function $$jscomp$generator$Context$$yieldAll$(iterable$jscomp$4_iterator,resumeAddress){iterable$jscomp$4_iterator=$jscomp.makeIterator(iterable$jscomp$4_iterator);var result=iterable$jscomp$4_iterator.next();$jscomp.generator.ensureIteratorResultIsObject_(result);if(result.done)this.yieldResult=result.value,this.nextAddress=resumeAddress;else return this.yieldAllIterator_=iterable$jscomp$4_iterator,this.yield(result.value,resumeAddress)};
$jscomp.generator.Context.prototype.jumpTo=function $$jscomp$generator$Context$$jumpTo$(nextAddress){this.nextAddress=nextAddress};$jscomp.generator.Context.prototype.jumpToEnd=function $$jscomp$generator$Context$$jumpToEnd$(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function $$jscomp$generator$Context$$setCatchFinallyBlocks$(catchAddress,finallyAddress){this.catchAddress_=catchAddress;void 0!=finallyAddress&&(this.finallyAddress_=finallyAddress)};
$jscomp.generator.Context.prototype.setFinallyBlock=function $$jscomp$generator$Context$$setFinallyBlock$(finallyAddress){this.catchAddress_=0;this.finallyAddress_=finallyAddress||0};$jscomp.generator.Context.prototype.leaveTryBlock=function $$jscomp$generator$Context$$leaveTryBlock$(nextAddress,catchAddress){this.nextAddress=nextAddress;this.catchAddress_=catchAddress||0};
$jscomp.generator.Context.prototype.enterCatchBlock=function $$jscomp$generator$Context$$enterCatchBlock$(exception){this.catchAddress_=exception||0;exception=this.abruptCompletion_.exception;this.abruptCompletion_=null;return exception};
$jscomp.generator.Context.prototype.enterFinallyBlock=function $$jscomp$generator$Context$$enterFinallyBlock$(nextCatchAddress,nextFinallyAddress,finallyDepth){finallyDepth?this.finallyContexts_[finallyDepth]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=nextCatchAddress||0;this.finallyAddress_=nextFinallyAddress||0};
$jscomp.generator.Context.prototype.leaveFinallyBlock=function $$jscomp$generator$Context$$leaveFinallyBlock$(nextAddress,abruptCompletion_finallyDepth){abruptCompletion_finallyDepth=this.finallyContexts_.splice(abruptCompletion_finallyDepth||0)[0];if(abruptCompletion_finallyDepth=this.abruptCompletion_=this.abruptCompletion_||abruptCompletion_finallyDepth){if(abruptCompletion_finallyDepth.isException)return this.jumpToErrorHandler_();void 0!=abruptCompletion_finallyDepth.jumpTo&&this.finallyAddress_<
abruptCompletion_finallyDepth.jumpTo?(this.nextAddress=abruptCompletion_finallyDepth.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=nextAddress};$jscomp.generator.Context.prototype.forIn=function $$jscomp$generator$Context$$forIn$(object){return new $jscomp.generator.Context.PropertyIterator(object)};
$jscomp.generator.Context.PropertyIterator=function $$jscomp$generator$Context$PropertyIterator$(object){this.object_=object;this.properties_=[];for(var property in object)this.properties_.push(property);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function $$jscomp$generator$Context$PropertyIterator$$getNext$(){for(;0<this.properties_.length;){var property=this.properties_.pop();if(property in this.object_)return property}return null};
$jscomp.generator.Engine_=function $$jscomp$generator$Engine_$(program){this.context_=new $jscomp.generator.Context;this.program_=program};$jscomp.generator.Engine_.prototype.next_=function $$jscomp$generator$Engine_$$next_$(value){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,value,this.context_.next_);this.context_.next_(value);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.return_=function $$jscomp$generator$Engine_$$return_$(value){this.context_.start_();var yieldAllIterator=this.context_.yieldAllIterator_;if(yieldAllIterator)return this.yieldAllStep_("return"in yieldAllIterator?yieldAllIterator["return"]:function(v){return{value:v,done:!0}},value,this.context_.return);this.context_.return(value);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.throw_=function $$jscomp$generator$Engine_$$throw_$(exception){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],exception,this.context_.next_);this.context_.throw_(exception);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.yieldAllStep_=function $$jscomp$generator$Engine_$$yieldAllStep_$(action,value,nextAction){try{var result=action.call(this.context_.yieldAllIterator_,value);$jscomp.generator.ensureIteratorResultIsObject_(result);if(!result.done)return this.context_.stop_(),result;var resultValue=result.value}catch(e){return this.context_.yieldAllIterator_=null,this.context_.throw_(e),this.nextStep_()}this.context_.yieldAllIterator_=null;nextAction.call(this.context_,resultValue);
return this.nextStep_()};
$jscomp.generator.Engine_.prototype.nextStep_=function $$jscomp$generator$Engine_$$nextStep_$(){for(;this.context_.nextAddress;)try{var abruptCompletion=this.program_(this.context_);if(abruptCompletion)return this.context_.stop_(),{value:abruptCompletion.value,done:!1}}catch(e){this.context_.yieldResult=void 0,this.context_.throw_(e)}this.context_.stop_();if(this.context_.abruptCompletion_){abruptCompletion=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(abruptCompletion.isException)throw abruptCompletion.exception;
return{value:abruptCompletion.return,done:!0}}return{value:void 0,done:!0}};$jscomp.generator.Generator_=function $$jscomp$generator$Generator_$(engine){this.next=function $this$next$(opt_value){return engine.next_(opt_value)};this.throw=function $this$throw$(exception){return engine.throw_(exception)};this.return=function $this$return$(value){return engine.return_(value)};this[Symbol.iterator]=function $this$Symbol$iterator$(){return this}};
$jscomp.generator.createGenerator=function $$jscomp$generator$createGenerator$(generator,program$jscomp$64_result){program$jscomp$64_result=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(program$jscomp$64_result));$jscomp.setPrototypeOf&&generator.prototype&&$jscomp.setPrototypeOf(program$jscomp$64_result,generator.prototype);return program$jscomp$64_result};
$jscomp.asyncExecutePromiseGenerator=function $$jscomp$asyncExecutePromiseGenerator$(generator){function passValueToGenerator(value){return generator.next(value)}function passErrorToGenerator(error){return generator.throw(error)}return new Promise(function(resolve,reject){function handleGeneratorRecord(genRec){genRec.done?resolve(genRec.value):Promise.resolve(genRec.value).then(passValueToGenerator,passErrorToGenerator).then(handleGeneratorRecord,reject)}handleGeneratorRecord(generator.next())})};
$jscomp.asyncExecutePromiseGeneratorFunction=function $$jscomp$asyncExecutePromiseGeneratorFunction$(generatorFunction){return $jscomp.asyncExecutePromiseGenerator(generatorFunction())};$jscomp.asyncExecutePromiseGeneratorProgram=function $$jscomp$asyncExecutePromiseGeneratorProgram$(program){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(program)))};$jscomp.FORCE_POLYFILL_PROMISE=!1;
$jscomp.polyfill("Promise",function(NativePromise){function AsyncExecutor(){this.batch_=null}function resolvingPromise(opt_value){return opt_value instanceof PolyfillPromise?opt_value:new PolyfillPromise(function(resolve,reject){resolve(opt_value)})}if(NativePromise&&!$jscomp.FORCE_POLYFILL_PROMISE)return NativePromise;AsyncExecutor.prototype.asyncExecute=function $AsyncExecutor$$asyncExecute$(f){if(null==this.batch_){this.batch_=[];var self=this;this.asyncExecuteFunction(function(){self.executeBatch_()})}this.batch_.push(f)};
var nativeSetTimeout=$jscomp.global.setTimeout;AsyncExecutor.prototype.asyncExecuteFunction=function $AsyncExecutor$$asyncExecuteFunction$(f){nativeSetTimeout(f,0)};AsyncExecutor.prototype.executeBatch_=function $AsyncExecutor$$executeBatch_$(){for(;this.batch_&&this.batch_.length;){var executingBatch=this.batch_;this.batch_=[];for(var i=0;i<executingBatch.length;++i){var f=executingBatch[i];executingBatch[i]=null;try{f()}catch(error){this.asyncThrow_(error)}}}this.batch_=null};AsyncExecutor.prototype.asyncThrow_=
function $AsyncExecutor$$asyncThrow_$(exception){this.asyncExecuteFunction(function(){throw exception;})};var PolyfillPromise=function $PolyfillPromise$(executor){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var resolveAndReject=this.createResolveAndReject_();try{executor(resolveAndReject.resolve,resolveAndReject.reject)}catch(e){resolveAndReject.reject(e)}};PolyfillPromise.prototype.createResolveAndReject_=function $PolyfillPromise$$createResolveAndReject_$(){function firstCallWins(method){return function(x){alreadyCalled||
(alreadyCalled=!0,method.call(thisPromise,x))}}var thisPromise=this,alreadyCalled=!1;return{resolve:firstCallWins(this.resolveTo_),reject:firstCallWins(this.reject_)}};PolyfillPromise.prototype.resolveTo_=function $PolyfillPromise$$resolveTo_$(value){if(value===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(value instanceof PolyfillPromise)this.settleSameAsPromise_(value);else{a:switch(typeof value){case "object":var JSCompiler_inline_result=null!=value;break a;case "function":JSCompiler_inline_result=
!0;break a;default:JSCompiler_inline_result=!1}JSCompiler_inline_result?this.resolveToNonPromiseObj_(value):this.fulfill_(value)}};PolyfillPromise.prototype.resolveToNonPromiseObj_=function $PolyfillPromise$$resolveToNonPromiseObj_$(obj){var thenMethod=void 0;try{thenMethod=obj.then}catch(error){this.reject_(error);return}"function"==typeof thenMethod?this.settleSameAsThenable_(thenMethod,obj):this.fulfill_(obj)};PolyfillPromise.prototype.reject_=function $PolyfillPromise$$reject_$(reason){this.settle_(2,
reason)};PolyfillPromise.prototype.fulfill_=function $PolyfillPromise$$fulfill_$(value){this.settle_(1,value)};PolyfillPromise.prototype.settle_=function $PolyfillPromise$$settle_$(settledState,valueOrReason){if(0!=this.state_)throw Error("Cannot settle("+settledState+", "+valueOrReason+"): Promise already settled in state"+this.state_);this.state_=settledState;this.result_=valueOrReason;this.executeOnSettledCallbacks_()};PolyfillPromise.prototype.executeOnSettledCallbacks_=function $PolyfillPromise$$executeOnSettledCallbacks_$(){if(null!=
this.onSettledCallbacks_){for(var i=0;i<this.onSettledCallbacks_.length;++i)asyncExecutor.asyncExecute(this.onSettledCallbacks_[i]);this.onSettledCallbacks_=null}};var asyncExecutor=new AsyncExecutor;PolyfillPromise.prototype.settleSameAsPromise_=function $PolyfillPromise$$settleSameAsPromise_$(promise){var methods=this.createResolveAndReject_();promise.callWhenSettled_(methods.resolve,methods.reject)};PolyfillPromise.prototype.settleSameAsThenable_=function $PolyfillPromise$$settleSameAsThenable_$(thenMethod,
thenable){var methods=this.createResolveAndReject_();try{thenMethod.call(thenable,methods.resolve,methods.reject)}catch(error){methods.reject(error)}};PolyfillPromise.prototype.then=function $PolyfillPromise$$then$(onFulfilled,onRejected){function createCallback(paramF,defaultF){return"function"==typeof paramF?function(x){try{resolveChild(paramF(x))}catch(error){rejectChild(error)}}:defaultF}var resolveChild,rejectChild,childPromise=new PolyfillPromise(function(resolve,reject){resolveChild=resolve;
rejectChild=reject});this.callWhenSettled_(createCallback(onFulfilled,resolveChild),createCallback(onRejected,rejectChild));return childPromise};PolyfillPromise.prototype.catch=function $PolyfillPromise$$catch$(onRejected){return this.then(void 0,onRejected)};PolyfillPromise.prototype.callWhenSettled_=function $PolyfillPromise$$callWhenSettled_$(onFulfilled,onRejected){function callback(){switch(thisPromise.state_){case 1:onFulfilled(thisPromise.result_);break;case 2:onRejected(thisPromise.result_);
break;default:throw Error("Unexpected state: "+thisPromise.state_);}}var thisPromise=this;null==this.onSettledCallbacks_?asyncExecutor.asyncExecute(callback):this.onSettledCallbacks_.push(callback)};PolyfillPromise.resolve=resolvingPromise;PolyfillPromise.reject=function $PolyfillPromise$reject$(opt_reason){return new PolyfillPromise(function(resolve,reject){reject(opt_reason)})};PolyfillPromise.race=function $PolyfillPromise$race$(thenablesOrValues){return new PolyfillPromise(function(resolve,reject){for(var iterator=
$jscomp.makeIterator(thenablesOrValues),iterRec=iterator.next();!iterRec.done;iterRec=iterator.next())resolvingPromise(iterRec.value).callWhenSettled_(resolve,reject)})};PolyfillPromise.all=function $PolyfillPromise$all$(thenablesOrValues){var iterator=$jscomp.makeIterator(thenablesOrValues),iterRec=iterator.next();return iterRec.done?resolvingPromise([]):new PolyfillPromise(function(resolveAll,rejectAll){function onFulfilled(i){return function(ithResult){resultsArray[i]=ithResult;unresolvedCount--;
0==unresolvedCount&&resolveAll(resultsArray)}}var resultsArray=[],unresolvedCount=0;do resultsArray.push(void 0),unresolvedCount++,resolvingPromise(iterRec.value).callWhenSettled_(onFulfilled(resultsArray.length-1),rejectAll),iterRec=iterator.next();while(!iterRec.done)})};return PolyfillPromise},"es6","es3");
$jscomp.iteratorFromArray=function $$jscomp$iteratorFromArray$(array,transform){array instanceof String&&(array+="");var i=0,iter={next:function(){if(i<array.length){var index=i++;return{value:transform(index,array[index]),done:!1}}iter.next=function $iter$next$(){return{done:!0,value:void 0}};return iter.next()}};iter[Symbol.iterator]=function $iter$Symbol$iterator$(){return iter};return iter};
$jscomp.polyfill("Array.prototype.keys",function(orig){return orig?orig:function(){return $jscomp.iteratorFromArray(this,function(i){return i})}},"es6","es3");$jscomp.owns=function $$jscomp$owns$(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)};
$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(target,var_args){for(var i=1;i<arguments.length;i++){var source=arguments[i];if(source)for(var key in source)$jscomp.owns(source,key)&&(target[key]=source[key])}return target};$jscomp.polyfill("Object.assign",function(orig){return orig||$jscomp.assign},"es6","es3");
$jscomp.findInternal=function $$jscomp$findInternal$(array,callback,thisArg){array instanceof String&&(array=String(array));for(var len=array.length,i=0;i<len;i++){var value=array[i];if(callback.call(thisArg,value,i,array))return{i:i,v:value}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(orig){return orig?orig:function(callback,opt_thisArg){return $jscomp.findInternal(this,callback,opt_thisArg).v}},"es6","es3");
$jscomp.polyfill("Array.prototype.fill",function(orig){return orig?orig:function(value,i,opt_end){var length=this.length||0;0>i&&(i=Math.max(0,length+i));if(null==opt_end||opt_end>length)opt_end=length;opt_end=Number(opt_end);0>opt_end&&(opt_end=Math.max(0,length+opt_end));for(i=Number(i||0);i<opt_end;i++)this[i]=value;return this}},"es6","es3");$jscomp.typedArrayFill=function $$jscomp$typedArrayFill$(orig){return orig?orig: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(){function __webpack_require__(moduleId){if(__webpack_module_cache__[moduleId])return __webpack_module_cache__[moduleId].exports;var module=__webpack_module_cache__[moduleId]={exports:{}};__webpack_modules__[moduleId](module,module.exports,__webpack_require__);return module.exports}var __webpack_modules__={567:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{OF:function(){return ConstantsDzsAp},LW:function(){return"#dzsap-main-settings"},
w0:function(){return"#dzsap-keyboard-controls"}});var ConstantsDzsAp={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_HELPER_BACKUP:"https://zoomthe.me/assets/dzsap-wave-generate.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;",ERRORED_OUT_CLASS:"errored-out",ERRORED_OUT_MAX_ATTEMPTS:5}},401:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function getRelativeX(mouseX,$el_){if(jQuery)return mouseX-jQuery($el_).offset().left}__webpack_require__.d(__webpack_exports__,{qw:function(){return decode_json},dv:function(){return loadScriptIfItDoesNotExist},SV:function(){return getBaseUrl},tK:function(){return sanitizeToCssPx},SA:function(){return setupTooltip},
GN:function(){return isInt},JY:function(){return isValid},c6:function(){return getRelativeX}});var decode_json=function $decode_json$(arg){var fout={};if(arg)try{fout=JSON.parse(arg)}catch(err){return null}return fout},loadScriptIfItDoesNotExist=function $loadScriptIfItDoesNotExist$(scriptSrc,checkForVar){return new Promise(function(resolve,reject){if(checkForVar)resolve("loadfromvar");else{var script=document.createElement("script");script.onload=function $script$onload$(){resolve("loadfromload")};
script.onerror=function $script$onerror$(){reject()};script.src=scriptSrc;document.head.appendChild(script)}})},getBaseUrl=function $getBaseUrl$(baseUrlVar,JSCompiler_inline_result$jscomp$5_baseUrl_arr_scriptName_url){if(window[baseUrlVar])return window[baseUrlVar];var scripts=document.getElementsByTagName("script"),scriptKey;for(scriptKey in scripts)if(scripts[scriptKey]&&scripts[scriptKey].src&&-1<String(scripts[scriptKey].src).indexOf(JSCompiler_inline_result$jscomp$5_baseUrl_arr_scriptName_url))break;
JSCompiler_inline_result$jscomp$5_baseUrl_arr_scriptName_url=String(scripts[scriptKey].src).split("/");JSCompiler_inline_result$jscomp$5_baseUrl_arr_scriptName_url.splice(-1,1);JSCompiler_inline_result$jscomp$5_baseUrl_arr_scriptName_url=JSCompiler_inline_result$jscomp$5_baseUrl_arr_scriptName_url.join("/");"/"!=JSCompiler_inline_result$jscomp$5_baseUrl_arr_scriptName_url.substr(-1)&&(JSCompiler_inline_result$jscomp$5_baseUrl_arr_scriptName_url+="/");window[baseUrlVar]=JSCompiler_inline_result$jscomp$5_baseUrl_arr_scriptName_url+
"/";return JSCompiler_inline_result$jscomp$5_baseUrl_arr_scriptName_url},sanitizeToCssPx=function $sanitizeToCssPx$(arg){return-1<String(arg).indexOf("%")||-1<String(arg).indexOf("em")||-1<String(arg).indexOf("px")||-1<String(arg).indexOf("auto")?arg:arg+"px"},setupTooltip=function $setupTooltip$(args_mainArgs){args_mainArgs=Object.assign({tooltipInnerHTML:"",tooltipIndicatorText:"",tooltipConClass:""},args_mainArgs);return'<div class="dzstooltip-con '+args_mainArgs.tooltipConClass+'"><span class="dzstooltip main-tooltip   talign-end arrow-bottom style-rounded color-dark-light  dims-set transition-slidedown " style="width: 280px;"><span class="dzstooltip--inner">'+
args_mainArgs.tooltipInnerHTML+'</span> </span></span><span class="tooltip-indicator">'+args_mainArgs.tooltipIndicatorText+"</span></div>"},isInt=function $isInt$(n){return"number"==typeof n&&0==Math.round(n)%1},isValid=function $isValid$(n){return"undefined"!=typeof n&&""!=n}},586:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function formatTime(arg$jscomp$9_s){arg$jscomp$9_s=Math.round(arg$jscomp$9_s);var m=0,h=0;if(0<arg$jscomp$9_s){for(;3599<arg$jscomp$9_s&&3E6>arg$jscomp$9_s&&
isFinite(arg$jscomp$9_s);)h++,arg$jscomp$9_s-=3600;for(;59<arg$jscomp$9_s&&3E6>arg$jscomp$9_s&&isFinite(arg$jscomp$9_s);)m++,arg$jscomp$9_s-=60;return h?String((10>h?"0":"")+h+":"+String((10>m?"0":"")+m+":"+(10>arg$jscomp$9_s?"0":"")+arg$jscomp$9_s)):String((10>m?"0":"")+m+":"+(10>arg$jscomp$9_s?"0":"")+arg$jscomp$9_s)}return"00:00"}function can_history_api(){return!(!window.history||!history.pushState)}function dzs_clean_string(arg){return arg?(arg=arg.replace(/[^A-Za-z0-9\-]/g,""),arg=arg.replace(/\./g,
"")):""}function get_query_arg(purl_regtest_splitterS,key){if(purl_regtest_splitterS&&-1<String(purl_regtest_splitterS).indexOf(key+"=")&&(purl_regtest_splitterS=(new RegExp("[?&]"+key+"=.+")).exec(purl_regtest_splitterS),null!=purl_regtest_splitterS))return purl_regtest_splitterS=purl_regtest_splitterS[0],-1<purl_regtest_splitterS.indexOf("&")&&(purl_regtest_splitterS=purl_regtest_splitterS.split("&")[1]),purl_regtest_splitterS.split("=")[1]}function add_query_arg(purl$jscomp$1_s,key,value){key=
encodeURIComponent(key);value=encodeURIComponent(value);purl$jscomp$1_s||(purl$jscomp$1_s="");var pair=key+"="+value;purl$jscomp$1_s=purl$jscomp$1_s.replace(new RegExp("(&|\\?)"+key+"=[^&]*"),"$1"+pair);-1<purl$jscomp$1_s.indexOf(key+"=")||(purl$jscomp$1_s=-1<purl$jscomp$1_s.indexOf("?")?purl$jscomp$1_s+("&"+pair):purl$jscomp$1_s+("?"+pair));"NaN"===value&&(purl$jscomp$1_s=purl$jscomp$1_s.replace(new RegExp("[?|&]"+key+"="+value),""),-1===purl$jscomp$1_s.indexOf("?")&&-1<purl$jscomp$1_s.indexOf("&")&&
(purl$jscomp$1_s=purl$jscomp$1_s.replace("&","?")));return purl$jscomp$1_s}function dzsap_is_mobile(){return is_ios()||is_android_good()}function is_ie(){return!!window.MSInputMethodContext&&!!document.documentMode}function is_ios(){return-1!==navigator.platform.indexOf("iPhone")||-1!==navigator.platform.indexOf("iPod")||-1!==navigator.platform.indexOf("iPad")}function can_canvas(){return document.createElement("canvas").getContext("2d")?!0:!1}function is_safari(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")}
function is_android(){return is_android_good()}function select_all(el_sel){if("undefined"!==typeof window.getSelection&&"undefined"!==typeof document.createRange){var range=document.createRange();range.selectNodeContents(el_sel);el_sel=window.getSelection();el_sel.removeAllRanges();el_sel.addRange(range)}else"undefined"!==typeof document.selection&&"undefined"!==typeof document.body.createTextRange&&(range=document.body.createTextRange(),range.moveToElementText(el_sel),range.select())}function is_android_good(){return-1<
navigator.userAgent.toLowerCase().indexOf("android")}function htmlEncode(arg){return jQuery("<div/>").text(arg).html()}function dzsap_generate_keyboard_tooltip(keyboard_controls_structureDzsTooltipCommentAfterSubmit,lab){keyboard_controls_structureDzsTooltipCommentAfterSubmit='<span class="dzstooltip color-dark-light talign-start transition-slidein arrow-bottom style-default" style="width: auto;  white-space:nowrap;"><span class="dzstooltip--inner">Shortcut: '+keyboard_controls_structureDzsTooltipCommentAfterSubmit[lab]+
"</span></span>";keyboard_controls_structureDzsTooltipCommentAfterSubmit=keyboard_controls_structureDzsTooltipCommentAfterSubmit.replace("32","space");return keyboard_controls_structureDzsTooltipCommentAfterSubmit=keyboard_controls_structureDzsTooltipCommentAfterSubmit.replace("27","escape")}function hexToRgb(hex_result,targetAlpha){targetAlpha=void 0===targetAlpha?null:targetAlpha;hex_result=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex_result);var alpha$jscomp$3_str="";hex_result&&(hex_result=
{r:parseInt(hex_result[1],16),g:parseInt(hex_result[2],16),b:parseInt(hex_result[3],16)},alpha$jscomp$3_str=1,null!==targetAlpha&&(alpha$jscomp$3_str=targetAlpha),alpha$jscomp$3_str="rgba("+hex_result.r+","+hex_result.g+","+hex_result.b+","+alpha$jscomp$3_str+")");return alpha$jscomp$3_str}function assignHelperFunctionsToJquery($){Math.easeIn=function $Math$easeIn$(t,b,c,d){return-c*(t/=d)*(t-2)+b};var checkIfHasClass=function $checkIfHasClass$(argfind,arg){argfind||(arg=/class="(.*?)"/.exec(arg))&&
arg[1]&&(argfind="."+arg[1]);return argfind};$.fn.prependOnce=function $$$fn$prependOnce$(arg,argfind){var _t=$(this);argfind=checkIfHasClass(argfind,arg);return 1>_t.children(argfind).length?(_t.prepend(arg),!0):!1};$.fn.appendOnce=function $$$fn$appendOnce$(arg,argfind){var _t=$(this);argfind=checkIfHasClass(argfind,arg);return 1>_t.children(argfind).length?(_t.append(arg),!0):!1}}function registerTextWidth($){$.fn.textWidth=function $$$fn$textWidth$(){var _t$jscomp$2_width=jQuery(this),_lastspan_html_calcS_html_org=
_t$jscomp$2_width.html();"INPUT"===_t$jscomp$2_width[0].nodeName&&(_lastspan_html_calcS_html_org=_t$jscomp$2_width.val());_lastspan_html_calcS_html_org='<span class="forcalc">'+_lastspan_html_calcS_html_org+"</span>";jQuery("body").append(_lastspan_html_calcS_html_org);_lastspan_html_calcS_html_org=jQuery("span.forcalc").last();_lastspan_html_calcS_html_org.css({"font-size":_t$jscomp$2_width.css("font-size"),"font-family":_t$jscomp$2_width.css("font-family")});_t$jscomp$2_width=_lastspan_html_calcS_html_org.width();
_lastspan_html_calcS_html_org.remove();return _t$jscomp$2_width}}function player_checkIfWeShouldShowAComment(selfClass,real_time_curr,real_time_total){var $=jQuery,timer_curr_perc=Math.round(real_time_curr/real_time_total*100)/100;"fake"===selfClass.audioType&&(timer_curr_perc=Math.round(selfClass.timeCurrent/selfClass.timeTotal*100)/100);selfClass._commentsHolder&&selfClass._commentsHolder.children().each(function(){var _t=$(this);if(_t.hasClass("dzstooltip-con")){var _t_posx_aux=_t.offset().left-
selfClass._commentsHolder.offset().left;if(_t_posx_aux=Math.round(parseFloat(_t_posx_aux)/selfClass._commentsHolder.outerWidth()*100)/100).02>Math.abs(_t_posx_aux-timer_curr_perc)?(selfClass._commentsHolder.find(".dzstooltip").removeClass("active"),_t.find(".dzstooltip").addClass("active")):_t.find(".dzstooltip").removeClass("active")}})}function sanitizeObjectForChangeMediaArgs(_sourceForChange){var changeMediaArgs={};if(_sourceForChange.data("original-settings"))return _sourceForChange.data("original-settings");
changeMediaArgs.source=null;_sourceForChange.attr("data-source")?changeMediaArgs.source=_sourceForChange.attr("data-source"):_sourceForChange.attr("href")&&(changeMediaArgs.source=_sourceForChange.attr("href"));_sourceForChange.attr("data-pcm")&&(changeMediaArgs.pcm=_sourceForChange.attr("data-pcm"));var lab="thumb";_sourceForChange.attr("data-"+lab)&&(changeMediaArgs[lab]=_sourceForChange.attr("data-"+lab));lab="playerid";_sourceForChange.attr("data-"+lab)&&(changeMediaArgs[lab]=_sourceForChange.attr("data-"+
lab));lab="type";_sourceForChange.attr("data-"+lab)&&(changeMediaArgs[lab]=_sourceForChange.attr("data-"+lab));_sourceForChange.attr("data-thumb_link")&&(changeMediaArgs.thumb_link=_sourceForChange.attr("data-thumb_link"));if(0<_sourceForChange.find(".meta-artist").length||0<_sourceForChange.find(".meta-artist-con").length)changeMediaArgs.artist=_sourceForChange.find(".the-artist").eq(0).html(),changeMediaArgs.song_name=_sourceForChange.find(".the-name").eq(0).html();_sourceForChange.attr("data-thumb_for_parent")&&
(changeMediaArgs.thumb=_sourceForChange.attr("data-thumb_for_parent"));if(0<_sourceForChange.find(".feed-song-name").length||0<_sourceForChange.find(".feed-artist-name").length)changeMediaArgs.artist=_sourceForChange.find(".feed-artist-name").eq(0).html(),changeMediaArgs.song_name=_sourceForChange.find(".feed-song-name").eq(0).html();return changeMediaArgs}function utils_sanitizeToColor(colorString){return-1===colorString.indexOf("#")&&-1===colorString.indexOf("rgb")&&-1===colorString.indexOf("hsl")?
"#"+colorString:colorString}function dzsapInitjQueryRegisters(){}function player_radio_isNameUpdatable(selfClass,radio_update_song_name,targetKey){return selfClass._metaArtistCon.find(targetKey).length&&0<selfClass._metaArtistCon.find(targetKey).eq(0).text().length&&-1<selfClass._metaArtistCon.find(targetKey).eq(0).html().indexOf("{{update}}")?!0:!1}function playerRegisterWindowFunctions(){window.dzsap_functions={};window.dzsap_functions.send_total_time=function $window$dzsap_functions$send_total_time$(argtime_data,
argcthis){argtime_data&&Infinity!==argtime_data&&(argtime_data={action:"dzsap_send_total_time_for_track",id_track:argcthis.attr("data-playerid"),postdata:Math.ceil(argtime_data)},jQuery.post(window.dzsap_ajaxurl,argtime_data,function(response){}))};window.dzs_open_social_link=function $window$dzs_open_social_link$(arg,argthis_shareurl){var leftPosition_windowFeatures=window.screen.width/2-260;var auxa_topPosition=window.screen.height/2-300;leftPosition_windowFeatures="status=no,height=500,width=500,resizable=yes,left="+
leftPosition_windowFeatures+",top="+auxa_topPosition+",screenX="+leftPosition_windowFeatures+",screenY="+auxa_topPosition+",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no";arg=arg.replace("{{replacewithcurrurl}}",encodeURIComponent(window.location.href));argthis_shareurl&&argthis_shareurl.attr&&(arg=arg.replace(/{{replacewithdataurl}}/g,argthis_shareurl.attr("data-url")));auxa_topPosition=window.location.href.split("?");var cid="",cid_gallery="";!argthis_shareurl&&window.dzsap_currplayer_from_share&&
(argthis_shareurl=window.dzsap_currplayer_from_share);if(argthis_shareurl){var $=jQuery;$(argthis_shareurl).hasClass("audioplayer")?(cid=$(argthis_shareurl).parent().children().index(argthis_shareurl),cid_gallery=$(argthis_shareurl).parent().parent().parent().attr("id")):(jQuery(argthis_shareurl).parent().parent().attr("data-menu-index")&&(cid=jQuery(argthis_shareurl).parent().parent().attr("data-menu-index")),jQuery(argthis_shareurl).parent().parent().attr("data-gallery-id")&&(cid_gallery=jQuery(argthis_shareurl).parent().parent().attr("data-gallery-id")))}argthis_shareurl=
encodeURIComponent(auxa_topPosition[0]+"?fromsharer=on&audiogallery_startitem_"+cid_gallery+"="+cid);arg=arg.replace("{{shareurl}}",argthis_shareurl);window.open(arg,"sharer",leftPosition_windowFeatures)};window.dzsap_wp_send_contor_60_secs=function $window$dzsap_wp_send_contor_60_secs$(argcthis$jscomp$1_data,argtitle_theajaxurl){argcthis$jscomp$1_data={video_title:argtitle_theajaxurl,video_analytics_id:argcthis$jscomp$1_data.attr("data-playerid"),curr_user:window.dzsap_curr_user};argtitle_theajaxurl=
"index.php?action=ajax_dzsap_submit_contor_60_secs";window.dzsap_settings.dzsap_site_url&&(argtitle_theajaxurl=dzsap_settings.dzsap_site_url+argtitle_theajaxurl);jQuery.ajax({type:"POST",url:argtitle_theajaxurl,data:argcthis$jscomp$1_data,success:function(response){},error:function(arg){}})};window.dzsap_init_multisharer=function $window$dzsap_init_multisharer$(){};window.dzsap_submit_like=function $window$dzsap_submit_like$(argp_data,e){argp_data={action:"dzsap_submit_like",playerid:argp_data};var _t=
null;e&&(_t=jQuery(e.currentTarget));window.dzsap_settings&&window.dzsap_settings.ajax_url&&jQuery.ajax({type:"POST",url:window.dzsap_settings.ajax_url,data:argp_data,success:function(htmlaux_response){_t&&(htmlaux_response=_t.html(),_t.html(htmlaux_response.replace("fa-heart-o","fa-heart")))},error:function(arg){}})};window.dzsap_retract_like=function $window$dzsap_retract_like$(argp$jscomp$1_data,e){argp$jscomp$1_data={action:"dzsap_retract_like",playerid:argp$jscomp$1_data};var _t=null;e&&(_t=
jQuery(e.currentTarget));window.dzsap_settings&&window.dzsap_settings.ajax_url&&jQuery.ajax({type:"POST",url:window.dzsap_settings.ajax_url,data:argp$jscomp$1_data,success:function(htmlaux$jscomp$1_response){_t&&(htmlaux$jscomp$1_response=_t.html(),_t.html(htmlaux$jscomp$1_response.replace("fa-heart","fa-heart-o")))},error:function(arg){}})}}function dzsap_singleton_ready_calls(){window.dzsap_singleton_ready_calls_is_called=!0;var $mainSettings=jQuery(_configs_constants__WEBPACK_IMPORTED_MODULE_1__.LW);
$mainSettings.length&&(window.dzsap_settings=JSON.parse($mainSettings.html()),window.ajaxurl=window.dzsap_settings.ajax_url,window.dzsap_curr_user=window.dzsap_settings.dzsap_curr_user);jQuery("body").append('<style class="dzsap--style"></style>');window.dzsap__style=jQuery(".dzsap--style");jQuery("audio.zoomsounds-from-audio").each(function(){var _t=jQuery(this);_t.after('<div class="audioplayer-tobe auto-init skin-silver" data-source="'+_t.attr("src")+'"></div>');_t.remove()});jQuery(document).on("focus.dzsap",
"input",function(){window.dzsap_currplayer_focused=null});registerTextWidth(jQuery);(0,_player_player_keyboard__WEBPACK_IMPORTED_MODULE_0__.z2)()}function jQueryAuxBindings($){$(document).off("click.dzsap_metas");$(document).on("click.dzsap_metas",".audioplayer-song-changer, .dzsap-wishlist-but",function handleClick_onGlobalZoomSoundsButton(_c_data$jscomp$80_e){var $t=$(this);_c_data$jscomp$80_e.preventDefault();_c_data$jscomp$80_e.stopPropagation();_c_data$jscomp$80_e.stopImmediatePropagation();
if($t.hasClass("audioplayer-song-changer"))return(_c_data$jscomp$80_e=$($t.attr("data-fakeplayer")).eq(0))&&_c_data$jscomp$80_e.get(0)&&_c_data$jscomp$80_e.get(0).api_change_media&&_c_data$jscomp$80_e.get(0).api_change_media($t,{feeder_type:"button",call_from:"changed audioplayer-song-changer"}),!1;if($t.hasClass("dzsap-wishlist-but"))return _c_data$jscomp$80_e={action:"dzsap_add_to_wishlist",playerid:$t.attr("data-post_id"),wishlist_action:"add"},$t.find(".svg-icon").hasClass("fa-star")&&(_c_data$jscomp$80_e.wishlist_action=
"remove"),window.dzsap_lasto.settings_php_handler&&$.ajax({type:"POST",url:window.dzsap_lasto.settings_php_handler,data:_c_data$jscomp$80_e,success:function(response){$t.find(".svg-icon").hasClass("fa-star-o")?$t.find(".svg-icon").eq(0).attr("class","svg-icon fa fa-star"):$t.find(".svg-icon").eq(0).attr("class","svg-icon fa fa-star-o")},error:function(arg){}}),!1});$(document).on("click",".dzsap-like-but",function(e){var _t=$(this),playerid=_t.attr("data-post_id");playerid&&"0"!=playerid||_t.parent().parent().parent().parent().parent().hasClass("audioplayer")&&
(playerid=_t.parent().parent().parent().parent().parent().attr("data-feed-playerid"));window.dzsap_submit_like(playerid,e);_t.removeClass("dzsap-like-but").addClass("dzsap-retract-like-but");return!1});$(document).on("click",".dzsap-retract-like-but",function(e){var _t=$(this),playerid=_t.attr("data-post_id");playerid&&"0"!=playerid||_t.parent().parent().parent().parent().parent().hasClass("audioplayer")&&(playerid=_t.parent().parent().parent().parent().parent().attr("data-feed-playerid"));window.dzsap_retract_like(playerid,
e);_t.addClass("dzsap-like-but").removeClass("dzsap-retract-like-but");return!1})}function selectText(arg){if(document.selection){var range=document.body.createTextRange();range.moveToElementText(arg);range.select()}else window.getSelection&&(range=document.createRange(),range.selectNode(arg),window.getSelection().removeAllRanges(),window.getSelection().addRange(range))}function view_player_playMiscEffects(selfClass){selfClass.$conPlayPause.addClass("playing");selfClass.cthis.parent().hasClass("zoomsounds-wrapper-bg-center")&&
selfClass.cthis.parent().addClass("is-playing")}function view_player_globalDetermineSyncPlayersIndex(selfClass){null===selfClass._sourcePlayer&&window.dzsap_syncList_players&&window.dzsap_syncList_players.forEach(function($syncPlayer,index){selfClass.cthis.attr("data-playerid")==$syncPlayer.attr("data-playerid")&&(window.dzsap_syncList_index=index)})}function player_view_addMetaLoaded(selfClass){selfClass.cthis.addClass("meta-loaded");selfClass.cthis.removeClass("meta-fake");selfClass._sourcePlayer&&
(selfClass._sourcePlayer.addClass("meta-loaded"),selfClass._sourcePlayer.removeClass("meta-fake"));selfClass.$totalTime&&(selfClass.timeModel.refreshTimes(),selfClass.$totalTime.html(formatTime(selfClass.timeModel.getVisualTotalTime())));selfClass._sourcePlayer&&selfClass._sourcePlayer.addClass("meta-loaded")}function player_determineActualPlayer(selfClass){var $=jQuery,$fakePlayer=$(selfClass.cthis.attr("data-fakeplayer"));0===$fakePlayer.length&&($fakePlayer=$(String(selfClass.cthis.attr("data-fakeplayer")).replace("#",
".")),$fakePlayer.length&&(selfClass._actualPlayer=$(String(selfClass.cthis.attr("data-fakeplayer")).replace("#",".")),selfClass.cthis.attr("data-fakeplayer",String(selfClass.cthis.attr("data-fakeplayer")).replace("#","."))));0===$fakePlayer.length?selfClass.cthis.attr("data-fakeplayer",""):(selfClass.cthis.addClass("player-is-feeding is-source-player-for-actual-player"),selfClass.cthis.attr("data-type")&&(selfClass._actualPlayer=$(selfClass.cthis.attr("data-fakeplayer")).eq(0),selfClass._actualPlayer.addClass("player-is-feeded"),
selfClass.actualDataTypeOfMedia=selfClass.cthis.attr("data-type"),selfClass.cthis.attr("data-original-type",selfClass.actualDataTypeOfMedia)))}function waitForScriptToBeAvailableThenExecute(verifyVar,callbackFn){(new Promise(function(resolve,reject){function checkIfVarExists(){verifyVar&&(clearInterval(checkInterval),resolve("var exists"))}var checkInterval=0;checkIfVarExists();checkInterval=setInterval(checkIfVarExists,300);setTimeout(function(){reject("timeout")},5E3)})).then(function(resolve){callbackFn(resolve)}).catch(function(err){})}
function configureAudioPlayerOptionsInitial(cthis,o,selfClass){selfClass.cthis.addClass("preload-method-"+o.preload_method);o.wavesurfer_pcm_length=Number(o.wavesurfer_pcm_length);o.settings_trigger_resize=parseInt(o.settings_trigger_resize,10);!1===isNaN(parseInt(o.design_thumbh,10))&&(o.design_thumbh=parseInt(o.design_thumbh,10));""===o.skinwave_wave_mode&&(o.skinwave_wave_mode="canvas");""===o.skinwave_wave_mode_canvas_normalize&&(o.skinwave_wave_mode_canvas_normalize="on");if(""===o.skinwave_wave_mode_canvas_waves_number||
isNaN(Number(o.skinwave_wave_mode_canvas_waves_number)))o.skinwave_wave_mode_canvas_waves_number=3;"on"===o.autoplay&&"on"===o.cue&&(o.preload_method="auto");cthis.addClass(o.extra_classes_player);""===o.design_skin&&(o.design_skin="skin-default");selfClass.cthis.find(".feed-dzsap--embed-code").length?selfClass.feedEmbedCode=selfClass.cthis.find(".feed-dzsap--embed-code").eq(0).html():""!==o.embed_code&&(selfClass.feedEmbedCode=o.embed_code);is_ios()&&"on"===selfClass.initOptions.skinwave_enableSpectrum&&
(selfClass.initOptions.skinwave_enableSpectrum="off");/ skin-/g.test(cthis.attr("class"))||cthis.addClass(o.design_skin);cthis.hasClass("skin-default")&&(o.design_skin="skin-default");cthis.hasClass("skin-wave")&&(o.design_skin="skin-wave");cthis.hasClass("skin-justthumbandbutton")&&(o.design_skin="skin-justthumbandbutton");cthis.hasClass("skin-pro")&&(o.design_skin="skin-pro");cthis.hasClass("skin-aria")&&(o.design_skin="skin-aria");cthis.hasClass("skin-silver")&&(o.design_skin="skin-silver");cthis.hasClass("skin-redlights")&&
(o.design_skin="skin-redlights");cthis.hasClass("skin-steel")&&(o.design_skin="skin-steel");cthis.hasClass("skin-customcontrols")&&(o.design_skin="skin-customcontrols");"skin-wave"===o.design_skin&&"auto"===o.scrubbar_type&&(o.scrubbar_type="wave");"auto"===o.scrubbar_type&&(o.scrubbar_type="bar");"wpdefault"===o.settings_php_handler&&(o.settings_php_handler=window.ajaxurl);"wpdefault"===o.action_received_time_total&&(o.action_received_time_total=window.dzsap_send_total_time);"wpdefault"===o.action_video_contor_60secs&&
(o.action_video_contor_60secs=window.action_video_contor_60secs);if(is_ios()||is_android_good())o.autoplay="off",o.disable_volume="on","off"===o.cueMedia&&(o.cueMedia="on"),o.cueMedia="on";"on"===cthis.attr("data-viewsubmitted")&&(selfClass.ajax_view_submitted="on");cthis.attr("data-userstarrating")&&(selfClass.starrating_alreadyrated=Number(cthis.attr("data-userstarrating")));"on"===cthis.attr("data-loop")&&(selfClass.initOptions.loop="on");cthis.hasClass("skin-minimal")&&(o.design_skin="skin-minimal",
"default"===o.disable_volume&&(o.disable_volume="on"),"default"===o.disable_scrub&&(o.disable_scrub="on"),o.disable_timer="on");cthis.hasClass("skin-minion")&&(o.design_skin="skin-minion","default"===o.disable_volume&&(o.disable_volume="on"),"default"===o.disable_scrub&&(o.disable_scrub="on"),o.disable_timer="on");o.design_color_bg&&(o.design_wave_color_bg=o.design_color_bg);o.design_color_highlight&&(o.design_wave_color_progress=o.design_color_highlight);"skin-justthumbandbutton"===o.design_skin&&
("default"===o.design_thumbh&&(o.design_thumbh=""),o.disable_timer="on",o.disable_volume="on","default"===o.design_animateplaypause&&(o.design_animateplaypause="on"));"skin-redlights"===o.design_skin&&(o.disable_timer="on",o.disable_volume="off","default"===o.design_animateplaypause&&(o.design_animateplaypause="on"));"skin-steel"===o.design_skin&&("default"===o.disable_timer&&(o.disable_timer="off"),o.disable_volume="on","default"===o.design_animateplaypause&&(o.design_animateplaypause="on"),"default"===
o.disable_scrub&&(o.disable_scrub="on"));"skin-customcontrols"===o.design_skin&&("default"===o.disable_timer&&(o.disable_timer="on"),o.disable_volume="on","default"===o.design_animateplaypause&&(o.design_animateplaypause="on"),"default"===o.disable_scrub&&(o.disable_scrub="on"));"reflecto"===o.skinwave_wave_mode_canvas_mode&&(o.skinwave_wave_mode_canvas_reflection_size=.5);"reflecto"===o.skinwave_wave_mode_canvas_mode&&(o.skinwave_wave_mode_canvas_reflection_size=.5);""===o.embed_code&&0<cthis.find("div.feed-embed-code").length&&
(o.embed_code=cthis.find("div.feed-embed-code").eq(0).html());"default"===o.design_animateplaypause&&(o.design_animateplaypause="off");"on"===o.design_animateplaypause&&cthis.addClass("design-animateplaypause");window.dzsap_settings&&window.dzsap_settings.ajax_url&&!o.settings_php_handler&&(o.settings_php_handler=window.dzsap_settings.ajax_url);o.settings_php_handler&&(selfClass.urlToAjaxHandler=o.settings_php_handler);player_reinit_findIfPcmNeedsGenerating(selfClass)}function player_reinit_findIfPcmNeedsGenerating(selfClass){var o=
selfClass.initOptions;selfClass.cthis.attr("data-pcm")&&(selfClass.hasInitialPcmData=!0);selfClass.hasInitialPcmData||"canvas"!==o.skinwave_wave_mode||"skin-wave"!==o.design_skin&&!selfClass.cthis.attr("data-fakeplayer")||(selfClass.isPcmRequiredToGenerate=!0);"wave"===o.scrubbar_type&&(o.is_inited_from_playlist&&selfClass.cthis.addClass("scrubbar-type-wave--has-reveal-animation"),"on"===o.scrubbar_type_wave__has_reveal_animation&&selfClass.cthis.addClass("scrubbar-type-wave--has-reveal-animation"),
selfClass.isPcmRequiredToGenerate&&selfClass.cthis.addClass("scrubbar-type-wave--has-reveal-animation"))}function playerFunctions(selfClass,functionType){var o=selfClass.initOptions;"detectIds"===functionType&&(""===o.skinwave_comments_playerid&&"undefined"!==typeof selfClass.cthis.attr("id")&&(selfClass.the_player_id=selfClass.cthis.attr("id")),""==selfClass.the_player_id&&(selfClass.cthis.attr("data-computed-playerid")&&(selfClass.the_player_id=selfClass.cthis.attr("data-computed-playerid")),selfClass.cthis.attr("data-real-playerid")&&
(selfClass.the_player_id=selfClass.cthis.attr("data-real-playerid"))),selfClass.uniqueId=selfClass.the_player_id,"string"===typeof selfClass.uniqueId&&(selfClass.uniqueId=selfClass.uniqueId.replace("ap","")),selfClass.identifier_pcm=selfClass.uniqueId,""===selfClass.uniqueId&&(o.skinwave_comments_enable="off"))}function player_delete(selfClass){var _con=null;selfClass.cthis.parent().parent().hasClass("dzsap-sticktobottom")&&(_con=selfClass.cthis.parent().parent());_con&&(_con.prev().hasClass("dzsap-sticktobottom-placeholder")&&
_con.prev().remove(),_con.remove());selfClass.cthis.remove();return!1}function player_viewApplySkinWaveModes(selfClass){var o=selfClass.initOptions;selfClass.cthis.removeClass("skin-wave-mode-normal");"skin-wave"===o.design_skin&&(selfClass.cthis.addClass("skin-wave-mode-"+selfClass.skinwave_mode),selfClass.cthis.addClass("skin-wave-wave-mode-"+o.skinwave_wave_mode),"on"===o.skinwave_enableSpectrum&&selfClass.cthis.addClass("skin-wave-is-spectrum"),selfClass.cthis.addClass("skin-wave-wave-mode-canvas-mode-"+
o.skinwave_wave_mode_canvas_mode))}function sanitizeToHexColor(hexcolor){-1===hexcolor.indexOf("#")&&(hexcolor="#"+hexcolor);return hexcolor}function player_identifySource(selfClass){selfClass.data_source=selfClass.cthis.attr("data-source")||""}function player_identifyTypes(selfClass){var o=selfClass.initOptions,cthis=selfClass.cthis;"youtube"===cthis.attr("data-type")&&(o.type="youtube",selfClass.audioType="youtube");"soundcloud"===cthis.attr("data-type")&&(o.type="soundcloud",selfClass.audioType=
"soundcloud",o.skinwave_enableSpectrum="off",cthis.removeClass("skin-wave-is-spectrum"));"mediafile"===cthis.attr("data-type")&&(o.type="audio",selfClass.audioType="audio");"shoutcast"===cthis.attr("data-type")&&(o.type="shoutcast",selfClass.audioType="audio",o.disable_timer="on",o.skinwave_enableSpectrum="off","skin-default"===o.design_skin&&(o.disable_scrub="on"));if("audio"===selfClass.audioType||"normal"===selfClass.audioType||""===selfClass.audioType)selfClass.audioType="selfHosted";-1<String(selfClass.data_source).indexOf("https://soundcloud.com/")&&
(selfClass.audioType="soundcloud")}function player_adjustIdentifiers(selfClass){selfClass.identifier_pcm=selfClass.the_player_id;var _feed_obj=selfClass.$feed_fakeButton?selfClass.$feed_fakeButton:selfClass._sourcePlayer?selfClass._sourcePlayer:null;"dzs_footer"===selfClass.identifier_pcm&&(selfClass.identifier_pcm=dzs_clean_string(selfClass.cthis.attr("data-source")));_feed_obj&&(_feed_obj.attr("data-playerid")?selfClass.identifier_pcm=_feed_obj.attr("data-playerid"):_feed_obj.attr("data-source")&&
(selfClass.identifier_pcm=_feed_obj.attr("data-source")));"string"===typeof selfClass.identifier_pcm&&(selfClass.identifier_pcm=selfClass.identifier_pcm.replace("ap",""))}function player_getPlayFromTime(selfClass){selfClass.playFrom=selfClass.initOptions.playfrom;(0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_2__.JY)(selfClass.cthis.attr("data-playfrom"))&&(selfClass.playFrom=selfClass.cthis.attr("data-playfrom"));!1===isNaN(parseInt(selfClass.playFrom,10))&&(selfClass.playFrom=parseInt(selfClass.playFrom,
10));"off"!==selfClass.playFrom&&""!==selfClass.playFrom||!get_query_arg(window.location.href,"audio_time")||(selfClass.playFrom=sanitizeToIntFromPointTime(get_query_arg(window.location.href,"audio_time")));selfClass.timeModel.sampleTimeStart&&(selfClass.playFrom<selfClass.timeModel.sampleTimeStart&&(selfClass.playFrom=selfClass.timeModel.sampleTimeStart),"string"===typeof selfClass.playFrom&&(selfClass.playFrom=selfClass.timeModel.sampleTimeStart))}function sanitizeToIntFromPointTime(arg$jscomp$21_m){arg$jscomp$21_m=
String(arg$jscomp$21_m).replace("%3A",":");if((arg$jscomp$21_m=String(arg$jscomp$21_m).replace("#",""))&&-1<String(arg$jscomp$21_m).indexOf(":")){var arr$jscomp$1_s=/(\d.*):(\d.*)/g.exec(arg$jscomp$21_m);arg$jscomp$21_m=parseInt(arr$jscomp$1_s[1],10);arr$jscomp$1_s=parseInt(arr$jscomp$1_s[2],10);return 60*arg$jscomp$21_m+arr$jscomp$1_s}return Number(arg$jscomp$21_m)}function player_initSpectrum(selfClass){null===window.dzsap_audio_ctx?(selfClass.spectrum_audioContext="undefined"!==typeof AudioContext?
new AudioContext:"undefined"!==typeof webkitAudioContext?new webkitAudioContext:null,window.dzsap_audio_ctx=selfClass.spectrum_audioContext):selfClass.spectrum_audioContext=window.dzsap_audio_ctx;selfClass.spectrum_audioContext&&null===selfClass.spectrum_analyser&&(selfClass.spectrum_analyser=selfClass.spectrum_audioContext.createAnalyser(),selfClass.spectrum_analyser.smoothingTimeConstant=.3,selfClass.spectrum_analyser.fftSize=512,"selfHosted"===selfClass.audioType&&(selfClass.$mediaNode_.crossOrigin=
"anonymous",selfClass.spectrum_mediaElementSource=selfClass.spectrum_audioContext.createMediaElementSource(selfClass.$mediaNode_),selfClass.spectrum_mediaElementSource.connect(selfClass.spectrum_analyser),selfClass.spectrum_audioContext.createGain&&(selfClass.spectrum_gainNode=selfClass.spectrum_audioContext.createGain()),selfClass.spectrum_analyser.connect(selfClass.spectrum_audioContext.destination),selfClass.spectrum_gainNode.gain.value=1,selfClass.spectrum_audioContext_buffer=selfClass.spectrum_audioContext.createBuffer(2,
2*selfClass.spectrum_audioContext.sampleRate,selfClass.spectrum_audioContext.sampleRate)))}function player_initSpectrumOnUserAction(selfClass){function handleMouseDown(e){player_initSpectrum(selfClass)}selfClass.cthis.get(0).addEventListener("mousedown",handleMouseDown,{once:!0});selfClass.cthis.get(0).addEventListener("touchdown",handleMouseDown,{once:!0})}function player_icecastOrShoutcastRefresh(selfClass){var url=selfClass.cthis.attr("data-source");"shoutcast"===selfClass.audioTypeSelfHosted_streamType&&
(url=add_query_arg(selfClass.urlToAjaxHandler,"action","dzsap_shoutcast_get_streamtitle"),url=add_query_arg(url,"source",selfClass.data_source));jQuery.ajax({type:"GET",url:url,crossDomain:!0,success:function(response){response.documentElement&&response.documentElement.innerHTML&&(response=response.documentElement.innerHTML);var regexMatches_regex_creator_regex_title,new_title="",new_artist="";"icecast"===selfClass.audioTypeSelfHosted_streamType&&(regexMatches_regex_creator_regex_title=/<location>(.*?)<\/location>/g.exec(response))&&
regexMatches_regex_creator_regex_title[1]!==selfClass.data_source&&(selfClass.data_source=regexMatches_regex_creator_regex_title[1],selfClass.setup_media({called_from:"icecast setup"}));selfClass.radio_isGoingToUpdateSongName&&("icecast"===selfClass.audioTypeSelfHosted_streamType&&(regexMatches_regex_creator_regex_title=/<title>(.*?)<\/title>/g,regexMatches_regex_creator_regex_title=regexMatches_regex_creator_regex_title.exec(response))&&(new_title=regexMatches_regex_creator_regex_title[1]),"shoutcast"===
selfClass.audioTypeSelfHosted_streamType&&(new_title=response));selfClass.radio_isGoingToUpdateArtistName&&"icecast"===selfClass.audioTypeSelfHosted_streamType&&(regexMatches_regex_creator_regex_title=/<creator>(.*?)<\/creator>/g,regexMatches_regex_creator_regex_title=regexMatches_regex_creator_regex_title.exec(response))&&(new_artist=regexMatches_regex_creator_regex_title[1]);selfClass.radio_isGoingToUpdateSongName&&selfClass._metaArtistCon.find(".the-name").html(new_title);selfClass.radio_isGoingToUpdateArtistName&&
selfClass._metaArtistCon.find(".the-artist").html(new_artist)},error:function(err){}})}function player_determineStickToBottomContainer(selfClass){selfClass.cthis.parent().hasClass("dzsap-sticktobottom")&&(selfClass.$stickToBottomContainer=selfClass.cthis.parent(),selfClass.isStickyPlayer=!0);selfClass.cthis.parent().parent().hasClass("dzsap-sticktobottom")&&(selfClass.$stickToBottomContainer=selfClass.cthis.parent().parent(),selfClass.isStickyPlayer=!0)}function player_stickToBottomContainerDetermineClasses(selfClass){selfClass.$stickToBottomContainer&&
(selfClass.cthis.hasClass("theme-dark")&&selfClass.$stickToBottomContainer.addClass("theme-dark"),setTimeout(function(){selfClass.$stickToBottomContainer.addClass("inited")},500))}function player_service_getSourceProtection(selfClass){return new Promise(function(resolve,reject){jQuery.ajax({type:"POST",url:selfClass.data_source,data:{},success:function(response){resolve(response)},error:function(err){reject(err)}})})}function player_isGoingToSetupMediaNow(selfClass){return"icecast"!==selfClass.audioTypeSelfHosted_streamType&&
"youtube"!==selfClass.audioType}function player_determineHtmlAreas(selfClass){var o=selfClass.initOptions,extraHtmlBottom="",extraHtmlControlsLeft="",extraHtmlControlsRight="";0<selfClass.cthis.children(".feed-dzsap--extra-html").length&&""===o.settings_extrahtml?(selfClass.cthis.children(".feed-dzsap--extra-html").each(function(){extraHtmlBottom+=jQuery(this).html()}),selfClass.cthis.children(".feed-dzsap--extra-html").remove()):o.settings_extrahtml&&(extraHtmlBottom=o.settings_extrahtml);0<selfClass.cthis.children(".feed-dzsap--extra-html-in-controls-left").length&&
(extraHtmlControlsLeft=selfClass.cthis.children(".feed-dzsap--extra-html-in-controls-left").eq(0).html());0<selfClass.cthis.children(".feed-dzsap--extra-html-in-controls-right").length&&(extraHtmlControlsRight=selfClass.cthis.children(".feed-dzsap--extra-html-in-controls-right").eq(0).html());0<selfClass.cthis.children(".feed-dzsap--extra-html-bottom").length&&(extraHtmlBottom=selfClass.cthis.children(".feed-dzsap--extra-html-bottom").eq(0).html());selfClass.extraHtmlAreas.controlsLeft=extraHtmlControlsLeft;
selfClass.extraHtmlAreas.controlsRight=extraHtmlControlsRight;selfClass.extraHtmlAreas.bottom=extraHtmlBottom;selfClass.extraHtmlAreas.controlsRight&&(selfClass.extraHtmlAreas.controlsRight=String(selfClass.extraHtmlAreas.controlsRight).replace(/{{svg_share_icon}}/g,_dzsap_svgs__WEBPACK_IMPORTED_MODULE_3__.a$));for(var key in selfClass.extraHtmlAreas)selfClass.extraHtmlAreas[key]=String(selfClass.extraHtmlAreas[key]).replace("{{heart_svg}}","\t&hearts;"),selfClass.extraHtmlAreas[key]=String(selfClass.extraHtmlAreas[key]).replace("{{embed_code}}",
selfClass.feedEmbedCode)}function player_stopOtherPlayers(dzsap_list,selfClass){var i;for(i=0;i<dzsap_list.length;i++)dzsap_list[i].get(0)&&dzsap_list[i].get(0).api_pause_media&&dzsap_list[i].get(0)!=selfClass.cthis.get(0)&&(dzsap_list[i].data("type_audio_stop_buffer_on_unfocus")&&"on"===dzsap_list[i].data("type_audio_stop_buffer_on_unfocus")?dzsap_list[i].get(0).api_destroy_for_rebuffer():dzsap_list[i].get(0).api_pause_media({audioapi_setlasttime:!1}))}function player_syncPlayers_gotoItem(selfClass,
targetIncrement){if(window.dzsap_settings.syncPlayers_autoplayEnabled){var $jscomp$loop$2={};for(keySyncPlayer in window.dzsap_syncList_players){var $playerInSyncList_targetIndex=selfClass.cthis;selfClass._sourcePlayer&&($playerInSyncList_targetIndex=selfClass._sourcePlayer);if(window.dzsap_syncList_players[keySyncPlayer].get(0)===$playerInSyncList_targetIndex.get(0)){var keySyncPlayer=parseInt(keySyncPlayer,10);$playerInSyncList_targetIndex=window.dzsap_syncList_index+targetIncrement;0<=$playerInSyncList_targetIndex&&
$playerInSyncList_targetIndex<window.dzsap_syncList_players.length&&($jscomp$loop$2.$jscomp$loop$prop$$currentSyncPlayer_$3=window.dzsap_syncList_players[$playerInSyncList_targetIndex].get(0),$jscomp$loop$2.$jscomp$loop$prop$$currentSyncPlayer_$3&&$jscomp$loop$2.$jscomp$loop$prop$$currentSyncPlayer_$3.api_play_media&&setTimeout(function($jscomp$loop$2){return function(){$jscomp$loop$2.$jscomp$loop$prop$$currentSyncPlayer_$3.api_play_media({called_from:"api_sync_players_prev"})}}($jscomp$loop$2),200))}$jscomp$loop$2=
{$jscomp$loop$prop$$currentSyncPlayer_$3:$jscomp$loop$2.$jscomp$loop$prop$$currentSyncPlayer_$3}}}}function player_syncPlayers_buildList(){window.syncPlayers_isDzsapListBuilt||(window.dzsap_syncList_players=[],window.syncPlayers_isDzsapListBuilt=!0,jQuery(".audioplayer.is-single-player,.audioplayer-tobe.is-single-player").each(function(){var _t23=jQuery(this);_t23.hasClass("dzsap_footer")||"on"!==_t23.attr("data-do-not-include-in-list")&&window.dzsap_syncList_players.push(_t23)}),clearTimeout(window.syncPlayers_buildTimeout),
window.syncPlayers_buildTimeout=setTimeout(function(){window.syncPlayers_isDzsapListBuilt=!1},500))}function player_detect_skinwave_mode(){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")}function convertPluginOptionsToFinalOptions($elThis_elThis,defaultOptions,argOptions,
aux,$es){argOptions=void 0===argOptions?null:argOptions;aux=void 0===aux?"data-options":aux;var tempOptions={},isSetFromJson=!1;void 0===$es&&($es=jQuery);$elThis_elThis=$es($elThis_elThis);if(argOptions&&"object"===typeof argOptions&&Object.keys(argOptions).length)tempOptions=argOptions;else{if($elThis_elThis.attr(aux))try{tempOptions=JSON.parse($elThis_elThis.attr(aux)),isSetFromJson=!0}catch(err){}isSetFromJson||"undefined"==typeof $elThis_elThis.attr(aux)||""==$elThis_elThis.attr("data-options")||
(aux=$elThis_elThis.attr(aux),eval("var aux_opts = "+aux),tempOptions=Object.assign({},argOptions))}return Object.assign(defaultOptions,tempOptions)}function generateFakeArrayForPcm(){for(var arr=[],it1=0;256>it1;it1++)arr[it1]=100*Math.random();return arr}function scrubbar_modeWave_clearObsoleteCanvas(selfClass){selfClass._scrubbar&&selfClass._scrubbar.find(".scrubbar-type-wave--canvas.transitioning-out").remove()}function scrubbar_modeWave_setupCanvas(pargs_struct_scrubBg_str,selfClass){var margs=
{prepare_for_transition_in:!1};pargs_struct_scrubBg_str&&(margs=Object.assign(margs,pargs_struct_scrubBg_str));var struct_scrubProg_str=pargs_struct_scrubBg_str="",o=selfClass.initOptions;pargs_struct_scrubBg_str='<canvas class="scrubbar-type-wave--canvas scrub-bg-img" ></canvas>';struct_scrubProg_str='<canvas class="scrubbar-type-wave--canvas scrub-prog-img" ></canvas>';selfClass._scrubbar.find(".scrub-bg").eq(0).append(pargs_struct_scrubBg_str);selfClass._scrubbar.find(".scrub-prog").eq(0).append(struct_scrubProg_str);
selfClass._scrubbarbg_canvas=selfClass._scrubbar.find(".scrub-bg-img").last();selfClass._scrubbarprog_canvas=selfClass._scrubbar.find(".scrub-prog-img").last();"on"===o.skinwave_enableSpectrum&&selfClass._scrubbarprog_canvas.hide();margs.prepare_for_transition_in&&(selfClass._scrubbarbg_canvas.addClass("preparing-transitioning-in"),selfClass._scrubbarprog_canvas.addClass("preparing-transitioning-in"),setTimeout(function(){selfClass._scrubbarbg_canvas.addClass("transitioning-in");selfClass._scrubbarprog_canvas.addClass("transitioning-in")},
20))}__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{formatTime:function(){return formatTime},can_history_api:function(){return can_history_api},dzs_clean_string:function(){return dzs_clean_string},get_query_arg:function(){return get_query_arg},add_query_arg:function(){return add_query_arg},dzsap_is_mobile:function(){return dzsap_is_mobile},is_ie:function(){return is_ie},is_ios:function(){return is_ios},can_canvas:function(){return can_canvas},is_safari:function(){return is_safari},
is_android:function(){return is_android},select_all:function(){return select_all},is_android_good:function(){return is_android_good},htmlEncode:function(){return htmlEncode},dzsap_generate_keyboard_tooltip:function(){return dzsap_generate_keyboard_tooltip},hexToRgb:function(){return hexToRgb},assignHelperFunctionsToJquery:function(){return assignHelperFunctionsToJquery},registerTextWidth:function(){return registerTextWidth},player_checkIfWeShouldShowAComment:function(){return player_checkIfWeShouldShowAComment},
sanitizeObjectForChangeMediaArgs:function(){return sanitizeObjectForChangeMediaArgs},utils_sanitizeToColor:function(){return utils_sanitizeToColor},dzsapInitjQueryRegisters:function(){return dzsapInitjQueryRegisters},player_radio_isNameUpdatable:function(){return player_radio_isNameUpdatable},playerRegisterWindowFunctions:function(){return playerRegisterWindowFunctions},dzsap_singleton_ready_calls:function(){return dzsap_singleton_ready_calls},jQueryAuxBindings:function(){return jQueryAuxBindings},
selectText:function(){return selectText},view_player_playMiscEffects:function(){return view_player_playMiscEffects},view_player_globalDetermineSyncPlayersIndex:function(){return view_player_globalDetermineSyncPlayersIndex},player_view_addMetaLoaded:function(){return player_view_addMetaLoaded},player_determineActualPlayer:function(){return player_determineActualPlayer},waitForScriptToBeAvailableThenExecute:function(){return waitForScriptToBeAvailableThenExecute},configureAudioPlayerOptionsInitial:function(){return configureAudioPlayerOptionsInitial},
player_reinit_findIfPcmNeedsGenerating:function(){return player_reinit_findIfPcmNeedsGenerating},playerFunctions:function(){return playerFunctions},player_delete:function(){return player_delete},player_viewApplySkinWaveModes:function(){return player_viewApplySkinWaveModes},sanitizeToHexColor:function(){return sanitizeToHexColor},player_identifySource:function(){return player_identifySource},player_identifyTypes:function(){return player_identifyTypes},player_adjustIdentifiers:function(){return player_adjustIdentifiers},
player_getPlayFromTime:function(){return player_getPlayFromTime},sanitizeToIntFromPointTime:function(){return sanitizeToIntFromPointTime},player_initSpectrum:function(){return player_initSpectrum},player_initSpectrumOnUserAction:function(){return player_initSpectrumOnUserAction},player_icecastOrShoutcastRefresh:function(){return player_icecastOrShoutcastRefresh},player_determineStickToBottomContainer:function(){return player_determineStickToBottomContainer},player_stickToBottomContainerDetermineClasses:function(){return player_stickToBottomContainerDetermineClasses},
player_service_getSourceProtection:function(){return player_service_getSourceProtection},player_isGoingToSetupMediaNow:function(){return player_isGoingToSetupMediaNow},player_determineHtmlAreas:function(){return player_determineHtmlAreas},player_stopOtherPlayers:function(){return player_stopOtherPlayers},player_syncPlayers_gotoItem:function(){return player_syncPlayers_gotoItem},player_syncPlayers_buildList:function(){return player_syncPlayers_buildList},player_detect_skinwave_mode:function(){return player_detect_skinwave_mode},
convertPluginOptionsToFinalOptions:function(){return convertPluginOptionsToFinalOptions},generateFakeArrayForPcm:function(){return generateFakeArrayForPcm},scrubbar_modeWave_clearObsoleteCanvas:function(){return scrubbar_modeWave_clearObsoleteCanvas},scrubbar_modeWave_setupCanvas:function(){return scrubbar_modeWave_setupCanvas}});var _js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(401),_dzsap_svgs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(560),_player_player_keyboard__WEBPACK_IMPORTED_MODULE_0__=
__webpack_require__(603),_configs_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(567)},560:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z1:function(){return'<svg class="svg-icon" version="1.2" baseProfile="tiny" id="Layer_1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://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>'},
IM:function(){return'<svg class="svg-icon" version="1.1" id="Layer_3" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://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>'},
a$:function(){return'<svg class="svg-icon" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://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> '},
mH:function(){return'<svg class="svg-icon" version="1.1" id="Layer_2" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://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>'},
Ap:function(){return'<svg class="svg-icon" version="1.1" id="Layer_2" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://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>'},
_r:function(){return'<svg class="svg-icon" version="1.1" id="Layer_2" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://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>'},
l2:function(){return'<svg class="svg-icon" version="1.2" baseProfile="tiny" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://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>'},
zq:function(){return'<svg class="svg-icon" version="1.1" id="Layer_2" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://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>'}})},
603:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function handle_keypresses(e){function isKeyPressed(checkKeyCode){var isKeyPressed=!1;-1<checkKeyCode.indexOf("ctrl+")?e.ctrlKey&&(checkKeyCode=checkKeyCode.replace("ctrl+",""),e.keyCode===Number(checkKeyCode)&&(isKeyPressed=!0)):e.keyCode===Number(checkKeyCode)&&(isKeyPressed=!0);return isKeyPressed}if(!window.dzsap_isTextFieldFocused){var $=jQuery,keyboard_controls=$.extend({},dzsap_generate_keyboard_controls());if(dzsap_currplayer_focused&&
dzsap_currplayer_focused.api_pause_media){if(isKeyPressed(keyboard_controls.pause_play)&&!$(dzsap_currplayer_focused).hasClass("comments-writer-active")&&($(dzsap_currplayer_focused).hasClass("is-playing")?dzsap_currplayer_focused.api_pause_media():dzsap_currplayer_focused.api_play_media(),window.dzsap_mouseover))return e.preventDefault(),!1;isKeyPressed(keyboard_controls.step_back)&&dzsap_currplayer_focused.api_step_back(keyboard_controls.step_back_amount);isKeyPressed(keyboard_controls.step_forward)&&
dzsap_currplayer_focused.api_step_forward(keyboard_controls.step_back_amount);isKeyPressed(keyboard_controls.sync_players_goto_next)&&dzsap_currplayer_focused.api_sync_players_goto_next();isKeyPressed(keyboard_controls.sync_players_goto_prev)&&dzsap_currplayer_focused.api_sync_players_goto_prev()}}}__webpack_require__.d(__webpack_exports__,{tc:function(){return dzsap_generate_keyboard_controls},z2:function(){return dzsap_keyboardSetup}});var _configs_constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(567),
dzsap_generate_keyboard_controls=function $dzsap_generate_keyboard_controls$(){var keyboard_controls={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"},$keyboardControlsInfo=jQuery(_configs_constants__WEBPACK_IMPORTED_MODULE_0__.w0);$keyboardControlsInfo.length&&(window.dzsap_keyboard_controls=JSON.parse($keyboardControlsInfo.html()));window.dzsap_keyboard_controls&&(keyboard_controls=
jQuery.extend(keyboard_controls,window.dzsap_keyboard_controls));keyboard_controls.step_back_amount=Number(keyboard_controls.step_back_amount);return keyboard_controls},dzsap_keyboardSetup=function $dzsap_keyboardSetup$(){var $=jQuery;window.dzsap_isTextFieldFocused=!1;$(document).off("keydown.dzsapkeyup");$(document).on("keydown.dzsapkeyup",handle_keypresses);$(document).on("focus blur","textarea,input",function(e){if("focusin"==e.type||"focus"==e.type)window.dzsap_isTextFieldFocused=!0;if("focusout"==
e.type||"blur"==e.type)window.dzsap_isTextFieldFocused=!1});$(document).on("keydown blur",".zoomsounds-search-field",function(e){var _t=$(e.currentTarget);setTimeout(function(){if(_t){var $audioGallery=$(".audiogallery").eq(0);_t.attr("data-target")&&($audioGallery=$(_t.attr("data-target")));$audioGallery.get(0)&&$audioGallery.get(0).api_filter&&$audioGallery.get(0).api_filter("title",_t.val())}},100)})}}},__webpack_module_cache__={};!function(){__webpack_require__.d=function $__webpack_require__$d$(exports,
definition){for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})}}();!function(){__webpack_require__.o=function $__webpack_require__$o$(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}}();!function(){__webpack_require__.r=function $__webpack_require__$r$(exports){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
Object.defineProperty(exports,"__esModule",{value:!0})}}();!function(){function retrieve_soundcloud_url(selfClass,aux$jscomp$4_pargs){var o=selfClass.initOptions;""==o.soundcloud_apikey&&alert("soundcloud api key not defined, read docs!");aux$jscomp$4_pargs="https://api.soundcloud.com/resolve?url="+selfClass.data_source+"&format=json&consumer_key="+o.soundcloud_apikey;aux$jscomp$4_pargs=encodeURIComponent(aux$jscomp$4_pargs);var soundcloud_retriever=o.php_retriever+"?scurl="+aux$jscomp$4_pargs;jQuery.ajax({type:"GET",
url:soundcloud_retriever,data:{},async:!0,dataType:"text",error:function(err,q,t){},success:function(response){var data=[],newSource="";try{data=JSON.parse(response),selfClass.audioType="selfHosted",""==data&&(selfClass.cthis.addClass(_constants.OF.ERRORED_OUT_CLASS),selfClass.cthis.append('<div class="feedback-text">soundcloud track does not seem to serve via api</div>')),selfClass.original_real_mp3=selfClass.cthis.attr("data-source"),data.stream_url?(newSource=data.stream_url+"?consumer_key="+o.soundcloud_apikey+
"&origin=localhost",selfClass.cthis.attr("data-source",newSource),selfClass.$feed_fakeButton&&selfClass.$feed_fakeButton.attr("data-source",newSource),selfClass._sourcePlayer&&selfClass._sourcePlayer.attr("data-source",newSource)):(selfClass.cthis.addClass(_constants.OF.ERRORED_OUT_CLASS),selfClass.cthis.append('<div class="feedback-text ">this soundcloud track does not allow streaming  </div>')),selfClass.data_source=newSource,selfClass.cthis.attr("data-pcm")&&(selfClass.isAlreadyHasRealPcm=!0),
"skin-wave"==o.design_skin&&"canvas"==o.skinwave_wave_mode&&0==selfClass.isAlreadyHasRealPcm&&0==("on"==o.pcm_data_try_to_generate&&"on"==o.pcm_data_try_to_generate_wait_for_real_pcm)&&window.scrubModeWave__initGenerateWaveData(selfClass,{call_from:"soundcloud init(), pcm not real.."}),selfClass.setup_media({called_from:"change_media"}),setTimeout(function(){selfClass.isPlayPromised&&(selfClass.play_media({call_from:"change_media"}),selfClass.isPlayPromised=!1)},300)}catch(err){console.log("soduncloud parse error -",
response," - ",soundcloud_retriever)}}})}function scrubModeWave__checkIfWeShouldTryToGetPcm(selfClass,JSCompiler_inline_result$jscomp$6_pargs){var margs={call_from:"default",call_attempt:0};JSCompiler_inline_result$jscomp$6_pargs&&(margs=jQuery.extend(margs,JSCompiler_inline_result$jscomp$6_pargs));if(window.dzsap_wavesurfer_is_trying_to_generate)return setTimeout(function(){margs.call_attempt++;10>margs.call_attempt&&scrubModeWave__checkIfWeShouldTryToGetPcm(selfClass,margs)},1E3),!1;selfClass.isPcmRequiredToGenerate&&
(JSCompiler_inline_result$jscomp$6_pargs=selfClass.isAlreadyHasRealPcm?!1:"fake"!=selfClass.data_source,JSCompiler_inline_result$jscomp$6_pargs&&(window.dzsap_wavesurfer_is_trying_to_generate=selfClass,window.dzsap_get_base_url(),JSCompiler_inline_result$jscomp$6_pargs=window.dzsap_base_url?window.dzsap_base_url+"parts/wavesurfer/dzsap-wave-generate.js":_constants.OF.URL_WAVESURFER_HELPER_BACKUP,window.scrubModeWave__view_transitionIn=scrubModeWave__view_transitionIn,_dzs_helpers.dv(JSCompiler_inline_result$jscomp$6_pargs,
window.scrubModeWave__initGenerateWaveData).then(function(resolveStr){scrubModeWave__initGenerateWaveData(selfClass)})))}function view_drawCanvases(selfClass,argpcm,calledFrom){var o=selfClass.initOptions;draw_canvas(selfClass._scrubbarbg_canvas.get(0),argpcm,"#"+o.design_wave_color_bg,{call_from:calledFrom+"_bg",selfClass:selfClass,skinwave_wave_mode_canvas_waves_number:parseInt(o.skinwave_wave_mode_canvas_waves_number,10),skinwave_wave_mode_canvas_waves_padding:parseInt(o.skinwave_wave_mode_canvas_waves_padding,
10)});draw_canvas(selfClass._scrubbarprog_canvas.get(0),argpcm,"#"+o.design_wave_color_progress,{call_from:calledFrom+"_prog",selfClass:selfClass,skinwave_wave_mode_canvas_waves_number:parseInt(o.skinwave_wave_mode_canvas_waves_number,10),skinwave_wave_mode_canvas_waves_padding:parseInt(o.skinwave_wave_mode_canvas_waves_padding,10)},!0)}function scrubModeWave__view_transitionIn(selfClass,argpcm){selfClass._scrubbar.find(".scrub-bg-img,.scrub-prog-img").removeClass("transitioning-in");selfClass._scrubbar.find(".scrub-bg-img,.scrub-prog-img").addClass("transitioning-out");
_dzsap_helpers.scrubbar_modeWave_setupCanvas({prepare_for_transition_in:!0},selfClass);view_drawCanvases(selfClass,argpcm,"canvas_generate_wave_data_animate_pcm");setTimeout(function(){_dzsap_helpers.scrubbar_modeWave_clearObsoleteCanvas(selfClass)},300);selfClass.isAlreadyHasRealPcm=!0;selfClass.scrubbar_reveal()}function draw_canvas($canvas__temp_hex,max_pcm_arr_widthCanvas,hexcolor,pargs,isProgressScrubContext){function view_drawBars(isReflection){isReflection=void 0===isReflection?!1:isReflection;
for(barIndex=0;barIndex<barCount;barIndex++){isWithinSample=!1;_canvasContext.save();searched_index=Math.ceil(waves.length/barCount*barIndex);barIndex<barCount/5&&.1>waves[searched_index]&&(waves[searched_index]=.1);waves.length>2.5*barCount&&0<barIndex&&barIndex<waves.length-1&&(waves[searched_index]=Math.abs(waves[searched_index]+waves[searched_index-1]+waves[searched_index+1])/3);var barPositionTop_endColor_endColor$1_targetRatio=normal_size_ratio;isReflection&&(barPositionTop_endColor_endColor$1_targetRatio=
reflection_size);var barHeight_startColor_startColor$0=Math.abs(waves[searched_index]*heightCanvas*barPositionTop_endColor_endColor$1_targetRatio);"on"==o.skinwave_wave_mode_canvas_normalize&&(isNaN(lastBarHeight)&&(lastBarHeight=0),barHeight_startColor_startColor$0=barHeight_startColor_startColor$0/1.5+lastBarHeight/2.5);lastBarHeight=barHeight_startColor_startColor$0;_canvasContext.lineWidth=0;barHeight_startColor_startColor$0=Math.floor(barHeight_startColor_startColor$0);barPositionTop_endColor_endColor$1_targetRatio=
isReflection?heightCanvas*normal_size_ratio:Math.ceil(heightCanvas*barPositionTop_endColor_endColor$1_targetRatio-barHeight_startColor_startColor$0);_canvasContext.beginPath();_canvasContext.rect(barIndex*bar_w,barPositionTop_endColor_endColor$1_targetRatio,bar_w-bar_space,barHeight_startColor_startColor$0);"spectrum"==margs.call_from&&(spectrum_isBarWithinProgress=barIndex/barCount<selfClass.timeCurrent/selfClass.timeTotal?!0:!1);selfClass.isSample&&(isWithinSample=barIndex/barCount<selfClass.timeModel.sampleTimeStart/
selfClass.timeModel.sampleTimeTotal||barIndex/barCount>selfClass.timeModel.sampleTimeEnd/selfClass.timeModel.sampleTimeTotal?!0:!1);spectrum_isBarWithinProgress?(_canvasContext.fillStyle=isReflection&&"reflecto"!==o.skinwave_wave_mode_canvas_mode?_dzsap_helpers.hexToRgb(progress_hexcolor,.25):isWithinSample?_dzsap_helpers.hexToRgb(progress_hexcolor,.5):"#"+progress_hexcolor,progress_hexcolors.length&&(barHeight_startColor_startColor$0=isReflection&&"reflecto"!==o.skinwave_wave_mode_canvas_mode?_dzsap_helpers.hexToRgb("#"+
progress_hexcolors[0],.25):"#"+progress_hexcolors[0],barPositionTop_endColor_endColor$1_targetRatio=isReflection&&"reflecto"!==o.skinwave_wave_mode_canvas_mode?_dzsap_helpers.hexToRgb("#"+progress_hexcolors[1],.25):"#"+progress_hexcolors[1],gradient=_canvasContext.createLinearGradient(0,0,0,heightCanvas),gradient.addColorStop(0,barHeight_startColor_startColor$0),gradient.addColorStop(1,barPositionTop_endColor_endColor$1_targetRatio),_canvasContext.fillStyle=gradient)):(_canvasContext.fillStyle=isReflection&&
"reflecto"!==o.skinwave_wave_mode_canvas_mode?_dzsap_helpers.hexToRgb(hexcolor,.25):isWithinSample?_dzsap_helpers.hexToRgb(hexcolor,.5):""+hexcolor,hexcolors.length&&(barHeight_startColor_startColor$0=isReflection&&"reflecto"!==o.skinwave_wave_mode_canvas_mode?_dzsap_helpers.hexToRgb(_dzsap_helpers.utils_sanitizeToColor(hexcolors[0]),.25):""+_dzsap_helpers.utils_sanitizeToColor(hexcolors[0]),barPositionTop_endColor_endColor$1_targetRatio=isReflection&&"reflecto"!==o.skinwave_wave_mode_canvas_mode?
_dzsap_helpers.hexToRgb(_dzsap_helpers.utils_sanitizeToColor(hexcolors[1]),.25):""+_dzsap_helpers.utils_sanitizeToColor(hexcolors[1]),gradient=_canvasContext.createLinearGradient(0,0,0,heightCanvas),gradient.addColorStop(0,barHeight_startColor_startColor$0),gradient.addColorStop(1,barPositionTop_endColor_endColor$1_targetRatio),_canvasContext.fillStyle=gradient));isWithinSample&&isProgressScrubContext||(_canvasContext.fill(),_canvasContext.closePath());_canvasContext.restore()}}var margs={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},$$jscomp$10_=jQuery;pargs&&(margs=Object.assign(margs,pargs));hexcolor=_dzsap_helpers.sanitizeToHexColor(hexcolor);var _canvas_ar_new=$$jscomp$10_($canvas__temp_hex),isWithinSample=!1;$$jscomp$10_=margs;var selfClass=$$jscomp$10_.selfClass;pargs=$$jscomp$10_.skinwave_wave_mode_canvas_waves_number;$$jscomp$10_=$$jscomp$10_.skinwave_wave_mode_canvas_waves_padding;
isNaN(Number(pargs))&&(pargs=2);isNaN(Number($$jscomp$10_))&&($$jscomp$10_=1!==pargs?1:0);if(selfClass)var o=selfClass.initOptions;if(!_canvas_ar_new||!_canvas_ar_new.get(0))return!1;var _canvasContext=_canvas_ar_new.get(0).getContext("2d"),waves=[];selfClass&&selfClass._scrubbar&&selfClass._scrubbarprog_canvas&&(selfClass._scrubbarbg_canvas.width(selfClass._scrubbar.width()),selfClass._scrubbarprog_canvas.width(selfClass._scrubbar.width()),$canvas__temp_hex.width=selfClass._scrubbar.width(),$canvas__temp_hex.height=
selfClass._scrubbar.height());_canvasContext.imageSmoothingEnabled=!1;_canvasContext.imageSmoothing=!1;_canvasContext.imageSmoothingQuality="high";_canvasContext.webkitImageSmoothing=!1;if(!max_pcm_arr_widthCanvas)return setTimeout(function(){},1E3),!1;if("object"==typeof max_pcm_arr_widthCanvas)waves=max_pcm_arr_widthCanvas;else try{waves=JSON.parse(max_pcm_arr_widthCanvas)}catch(err){}var barIndex=0;for(barIndex=max_pcm_arr_widthCanvas=0;barIndex<waves.length;barIndex++)waves[barIndex]>max_pcm_arr_widthCanvas&&
(max_pcm_arr_widthCanvas=waves[barIndex]);_canvas_ar_new=[];for(barIndex=0;barIndex<waves.length;barIndex++)_canvas_ar_new[barIndex]=parseFloat(Math.abs(waves[barIndex])/Number(max_pcm_arr_widthCanvas));waves=_canvas_ar_new;var gradient=null;selfClass&&($canvas__temp_hex.width=selfClass._scrubbar.width());max_pcm_arr_widthCanvas=$canvas__temp_hex.width;var heightCanvas=$canvas__temp_hex.height;var barCount=pargs,bar_space=$$jscomp$10_;1==barCount&&(barCount=max_pcm_arr_widthCanvas/barCount);2==barCount&&
(barCount=max_pcm_arr_widthCanvas/2);3==barCount&&(barCount=max_pcm_arr_widthCanvas/3);var reflection_size=parseFloat(o.skinwave_wave_mode_canvas_reflection_size);1>max_pcm_arr_widthCanvas/barCount&&(barCount=Math.ceil(barCount/3));var bar_w=Math.ceil(max_pcm_arr_widthCanvas/barCount),normal_size_ratio=1-reflection_size;0==bar_w&&(bar_w=1,bar_space=0);1==bar_w&&(bar_space/=2);var lastBarHeight=0,searched_index=null;$canvas__temp_hex=hexcolor.replace("#","");var hexcolors=[];-1<$canvas__temp_hex.indexOf(",")&&
(hexcolors=$canvas__temp_hex.split(","));var progress_hexcolor="",progress_hexcolors="";"spectrum"==margs.call_from&&(progress_hexcolor=o.design_wave_color_progress,progress_hexcolor=progress_hexcolor.replace("#",""),progress_hexcolors=[],-1<progress_hexcolor.indexOf(",")&&(progress_hexcolors=progress_hexcolor.split(",")));var spectrum_isBarWithinProgress=!1;_canvasContext.clearRect(0,0,max_pcm_arr_widthCanvas,heightCanvas);view_drawBars();view_drawBars(!0);setTimeout(function(){selfClass.scrubbar_reveal()},
100)}function media_changeMedia(selfClass,$){return function($playerSource,changeMediaArgs$jscomp$1_pargs){changeMediaArgs$jscomp$1_pargs=void 0===changeMediaArgs$jscomp$1_pargs?{}:changeMediaArgs$jscomp$1_pargs;var changeMediaArgsDefaults={type:"",fakeplayer_is_feeder:"off",called_from:"default",source:"default",pcm:"",artist:"",song_name:"",thumb:"",thumb_link:"",autoplay:"on",cue:"on",feeder_type:"player",source_player_do_not_update:"off",playerid:""};selfClass.ajax_view_submitted="on";var handle_resize_delay_o=
500;changeMediaArgs$jscomp$1_pargs=Object.assign({},changeMediaArgsDefaults,changeMediaArgs$jscomp$1_pargs);handle_resize_delay_o=selfClass.initOptions;var isGoingToPauseTheOldPlayer_oldSource=!0,$feedExtraHtmlRightFromSource_isSourceAStringSource=!1,isSourceAZoomSoundsAudioplayer=!1,isSourceA$Object=!1,newSource="";$playerSource&&$playerSource.attr&&(isSourceA$Object=!0);selfClass.reinit_resetMetrics();selfClass.reinit_beforeChangeMedia();"string"===typeof $playerSource&&($feedExtraHtmlRightFromSource_isSourceAStringSource=
!0);$feedExtraHtmlRightFromSource_isSourceAStringSource||!$playerSource.hasClass("audioplayer")&&!$playerSource.hasClass("audioplayer-tobe")||(isSourceAZoomSoundsAudioplayer=!0);$(".current-feeder-for-parent-player").removeClass("current-feeder-for-parent-player");selfClass.$reflectionVisualObject&&selfClass.$reflectionVisualObject.removeClass("is-playing");$feedExtraHtmlRightFromSource_isSourceAStringSource&&(newSource=$playerSource);isSourceA$Object&&(newSource=$playerSource.attr("data-source"),
selfClass.$reflectionVisualObject=$playerSource,changeMediaArgs$jscomp$1_pargs=Object.assign({},changeMediaArgs$jscomp$1_pargs,_dzsap_helpers.sanitizeObjectForChangeMediaArgs($playerSource)));changeMediaArgs$jscomp$1_pargs.source&&"default"!=changeMediaArgs$jscomp$1_pargs.source&&(newSource=changeMediaArgs$jscomp$1_pargs.source);selfClass.data_source===newSource&&(isGoingToPauseTheOldPlayer_oldSource=!1);isGoingToPauseTheOldPlayer_oldSource&&selfClass._sourcePlayer&&(selfClass._sourcePlayer.get(0).api_pause_media_visual({call_from:"change_media"}),
selfClass._sourcePlayer.get(0).api_set_timeVisualTotal(0));selfClass.cthis.data("original-settings")||"fake"===selfClass.data_source||selfClass.cthis.data("original-settings",_dzsap_helpers.sanitizeObjectForChangeMediaArgs(selfClass.cthis));isGoingToPauseTheOldPlayer_oldSource=selfClass.data_source;selfClass.data_source=newSource;if(!$feedExtraHtmlRightFromSource_isSourceAStringSource&&($playerSource.hasClass("audioplayer")||$playerSource.hasClass("is-zoomsounds-source-player"))||"on"===changeMediaArgs$jscomp$1_pargs.fakeplayer_is_feeder)selfClass.set_sourcePlayer($playerSource),
selfClass._sourcePlayer&&(selfClass.cthis.data("feeding-from",selfClass._sourcePlayer.get(0)),selfClass._sourcePlayer.addClass("current-feeder-for-parent-player"));!$feedExtraHtmlRightFromSource_isSourceAStringSource&&$playerSource&&($playerSource&&$playerSource.attr("data-playerid")?selfClass.cthis.attr("data-feed-playerid",$playerSource.attr("data-playerid")):(selfClass.cthis.attr("data-feed-playerid",""),changeMediaArgs$jscomp$1_pargs.playerid=""));if(isGoingToPauseTheOldPlayer_oldSource===newSource)return selfClass.cthis.hasClass("is-playing")?
selfClass.pause_media():selfClass.play_media(),!1;if("detect"===changeMediaArgs$jscomp$1_pargs.type||"audio"===changeMediaArgs$jscomp$1_pargs.type||"normal"===changeMediaArgs$jscomp$1_pargs.type)changeMediaArgs$jscomp$1_pargs.type="selfHosted";selfClass.cthis.removeClass("meta-loaded");selfClass.cthis.parent().hasClass("audioplayer-was-loaded")&&(selfClass.cthis.parent().addClass("audioplayer-loaded"),$("body").addClass("footer-audioplayer-loaded"),selfClass.cthis.parent().removeClass("audioplayer-was-loaded"));
selfClass.$stickToBottomContainer&&selfClass.$stickToBottomContainer.addClass("audioplayer-loaded");selfClass.cthis.removeClass(_constants.OF.ERRORED_OUT_CLASS);selfClass.destroy_media();selfClass.cthis.attr("data-source",changeMediaArgs$jscomp$1_pargs.source);newSource=changeMediaArgs$jscomp$1_pargs.type;"mediafile"===changeMediaArgs$jscomp$1_pargs.type&&(changeMediaArgs$jscomp$1_pargs.type="audio");changeMediaArgs$jscomp$1_pargs.type&&("soundcloud"===changeMediaArgs$jscomp$1_pargs.type&&(changeMediaArgs$jscomp$1_pargs.type=
"audio"),"album_part"===changeMediaArgs$jscomp$1_pargs.type&&(changeMediaArgs$jscomp$1_pargs.type="audio"),selfClass.cthis.attr("data-type",changeMediaArgs$jscomp$1_pargs.type),selfClass.audioType=changeMediaArgs$jscomp$1_pargs.type,handle_resize_delay_o.type=changeMediaArgs$jscomp$1_pargs.type);"skin-wave"===handle_resize_delay_o.design_skin&&("canvas"===handle_resize_delay_o.skinwave_wave_mode&&(selfClass._sourcePlayer?selfClass.data_source=$playerSource.attr("data-source"):"string"===typeof $playerSource&&
(selfClass.data_source=$playerSource),$playerSource&&changeMediaArgs$jscomp$1_pargs.pcm?(selfClass.cthis.attr("data-pcm",$playerSource.attr("data-pcm")),scrubModeWave__view_transitionIn(selfClass,$playerSource.attr("data-pcm"))):(_dzsap_helpers.player_reinit_findIfPcmNeedsGenerating(selfClass),scrubModeWave__checkIfWeShouldTryToGetPcm(selfClass))),changeMediaArgs$jscomp$1_pargs.thumb&&(selfClass.cthis.find(".the-thumb").length?selfClass.cthis.find(".the-thumb").css("background-image","url("+changeMediaArgs$jscomp$1_pargs.thumb+
")"):(selfClass.cthis.attr("data-thumb",changeMediaArgs$jscomp$1_pargs.thumb),selfClass.setupStructure_thumbnailCon())));changeMediaArgs$jscomp$1_pargs.thumb?(selfClass.cthis.find(".the-thumb").length?selfClass.cthis.find(".the-thumb").css("background-image","url("+changeMediaArgs$jscomp$1_pargs.thumb+")"):(selfClass.cthis.attr("data-thumb",changeMediaArgs$jscomp$1_pargs.thumb),selfClass.setupStructure_thumbnailCon()),selfClass.cthis.removeClass("does-not-have-thumb"),selfClass.cthis.addClass("has-thumb")):
(selfClass.cthis.addClass("does-not-have-thumb"),selfClass.cthis.removeClass("has-thumb"));""===changeMediaArgs$jscomp$1_pargs.pcm&&selfClass.setup_pcm_random_for_now();_dzsap_helpers.player_adjustIdentifiers(selfClass);handle_resize_delay_o=100;!$feedExtraHtmlRightFromSource_isSourceAStringSource&&$playerSource&&($feedExtraHtmlRightFromSource_isSourceAStringSource=null,$playerSource.find(".feed-dzsap-for-extra-html-right").length?$feedExtraHtmlRightFromSource_isSourceAStringSource=$playerSource.find(".feed-dzsap-for-extra-html-right").eq(0):
selfClass._sourcePlayer&&selfClass._sourcePlayer.attr("data-playerid")&&$(document).find('.feed-dzsap-for-extra-html-right[data-playerid="'+selfClass._sourcePlayer.attr("data-playerid")+'"]').length&&($feedExtraHtmlRightFromSource_isSourceAStringSource=$(document).find('.feed-dzsap-for-extra-html-right[data-playerid="'+selfClass._sourcePlayer.attr("data-playerid")+'"]').eq(0)),$feedExtraHtmlRightFromSource_isSourceAStringSource&&selfClass.classMetaParts.set_extraHtmlFloatRight($feedExtraHtmlRightFromSource_isSourceAStringSource.html()));
changeMediaArgs$jscomp$1_pargs.artist&&selfClass.cthis.find(".the-artist").html(changeMediaArgs$jscomp$1_pargs.artist);changeMediaArgs$jscomp$1_pargs.song_name&&selfClass.cthis.find(".the-name").html(changeMediaArgs$jscomp$1_pargs.song_name);"on"===changeMediaArgsDefaults.source_player_do_not_update&&selfClass.set_sourcePlayer(null);"soundcloud"===newSource&&-1===changeMediaArgs$jscomp$1_pargs.source.indexOf("api.soundcloud")?(selfClass.data_source=changeMediaArgs$jscomp$1_pargs.source,selfClass.isPlayPromised=
!0,setTimeout(function(){selfClass.isPlayPromised=!0},501),retrieve_soundcloud_url(selfClass)):selfClass.setup_media({called_from:"change_media"});selfClass.timeModel.getSampleTimesFromDom(selfClass._sourcePlayer);if("fake"===selfClass.audioType)return!1;selfClass.initOptions.action_audio_change_media&&selfClass.initOptions.action_audio_change_media(changeMediaArgs$jscomp$1_pargs.source,changeMediaArgs$jscomp$1_pargs);"on"===changeMediaArgs$jscomp$1_pargs.autoplay&&(selfClass.play_media_visual(),
isSourceAZoomSoundsAudioplayer||setTimeout(function(){selfClass.play_media({called_from:"changeMediaArgs.autoplay"})},100));selfClass.reinit();setTimeout(function(){selfClass.handleResize(null,{called_from:"change_media"})},handle_resize_delay_o)}}function comments_updateCommentHolderTimerWhenReady(selfClass,percClickFromScrubWidth){selfClass.timeModel.getVisualTotalTime()?selfClass.$commentsWritter.find(".dzsap-comments--comment-form-label-time").html(_dzsap_helpers.formatTime(percClickFromScrubWidth*
selfClass.timeModel.getVisualTotalTime())):setTimeout(function(){comments_updateCommentHolderTimerWhenReady(selfClass,percClickFromScrubWidth)},100)}function add_comments_placeholder(selfClass){var strCommentsAvatarUrl="";window.dzsap_settings&&window.dzsap_settings.comments_avatar&&(strCommentsAvatarUrl=window.dzsap_settings.comments_avatar);selfClass._commentsHolder.remove(".dzsap-style-comments");selfClass._commentsHolder.append('<style class="dzsap-style-comments">.dzstooltip-con:not(.placeholder) { opacity: 0.5; }</style>');
selfClass._commentsHolder.find(".dzstooltip-con.placeholder").remove();selfClass._commentsHolder.append('<span class="dzstooltip-con placeholder" style="left:'+selfClass.commentPositionPerc+';"><div class="the-avatar" style="background-image: url('+strCommentsAvatarUrl+')"></div></span>')}function comment_submit(selfClass,aux,comm_author_comment_email,$){$=jQuery;var o=selfClass.initOptions;if(comm_author_comment_email){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(comm_author_comment_email))return alert("please insert email, your email is just used for gravatar. it will not be sent or stored anywhere"),
!1;comm_author_comment_email=String(comm_author_comment_email).split("@")[0];selfClass.$commentsSelector&&selfClass.$commentsSelector.find("*[name=comment_email],*[name=comment_user]").remove();window.dzsap_settings||(window.dzsap_settings={});window.dzsap_settings.comments_username=comm_author_comment_email;window.dzsap_settings.comments_avatar="https://secure.gravatar.com/avatar/"+window.MD5(String(selfClass.cthis.find("input[name=comment-email]").eq(0).val()).toLowerCase())+"?s=20"}aux=""+aux;
selfClass.cthis.find("*[name=comment-text]").eq(0).val("");selfClass.cthis.find(".comments-writter-temp-css,.dzsap-style-comments").remove();ajax_comment_publish.bind(selfClass)(aux);hide_comments_writer(selfClass);o.parentgallery&&void 0!=$(o.parentgallery).get(0)&&void 0!=$(o.parentgallery).get(0).api_player_commentSubmitted&&$(o.parentgallery).get(0).api_player_commentSubmitted()}function extraHtmlBottomFunctionality(selfClass){1===selfClass.increment_views&&(ajax_submit_views.bind(selfClass)(),
selfClass.increment_views=2);0===selfClass.index_extrahtml_toloads&&selfClass.cthis.find(".extra-html").addClass("active");setTimeout(function(){selfClass.cthis.find(".extra-html").addClass("active");0===selfClass.cthis.find(".float-left").length?selfClass.cthis.find(".extra-html").append(selfClass.cthis.find(".extra-html-extra")):selfClass.cthis.find(".extra-html .float-left").append(selfClass.cthis.find(".extra-html-extra"));selfClass.cthis.find(".extra-html-extra").children().eq(0);selfClass.cthis.find(".extra-html-extra").children().unwrap()},
2E3)}function feedEmbedFunctionality(selfClass,$,dzsapHelpers,struct_embedButtonWithTooltip){var o=selfClass.initOptions;"skin-wave"===o.design_skin?"on"===o.enable_embed_button&&selfClass._apControlsRight&&(selfClass._apControlsRight.appendOnce(struct_embedButtonWithTooltip),selfClass.$embedButton=selfClass._apControlsRight.find(".btn-embed-code-con").eq(0),selfClass.$embedButton.find(".btn-embed-code").addClass("player-but")):"on"===o.enable_embed_button&&(selfClass._audioplayerInner.appendOnce(struct_embedButtonWithTooltip),
selfClass.$embedButton=selfClass._audioplayerInner.find(".btn-embed-code-con").eq(0));selfClass.$embedButton&&selfClass.$embedButton.find(".embed-code--text").html(selfClass.feedEmbedCode);selfClass.cthis.on("click",".btn-embed-code-con, .btn-embed",function(){var _t=$(this);dzsapHelpers.select_all(_t.find(".dzstooltip").get(0));document.execCommand("copy")});selfClass.cthis.on("click",".copy-embed-code-btn",function(){var _t=$(this);dzsapHelpers.select_all(_t.parent().parent().find(".dzstooltip--inner > span").get(0));
document.execCommand("copy");setTimeout(function(){dzsapHelpers.select_all(_t.get(0))},100)})}function player_constructArtistAndSongCon(margs$jscomp$6_o){if(0===this.cthis.find(".meta-artist").length&&(this.cthis.find(".feed-artist-name").length||this.cthis.find(".feed-song-name").length)){var structHtmlMeta='<span class="meta-artist player-artistAndSong">';this.cthis.find(".feed-artist-name").length&&(structHtmlMeta+='<span class="the-artist">'+this.cthis.find(".feed-artist-name").eq(0).html()+"</span>");
this.cthis.find(".feed-song-name").length&&(structHtmlMeta+='<span class="the-name player-meta--songname">'+this.cthis.find(".feed-song-name").eq(0).html()+"</span>");this.cthis.append(structHtmlMeta+"</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"!==margs$jscomp$6_o.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),margs$jscomp$6_o=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"===margs$jscomp$6_o.design_skin&&(this._apControlsRight=this.cthis.find(".con-controls--right").eq(0)),"skin-wave"===margs$jscomp$6_o.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&&!1===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"===margs$jscomp$6_o.design_skin&&this._apControlsRight.prepend(this._metaArtistCon),"skin-redlights"!==margs$jscomp$6_o.design_skin&&"skin-steel"!==
margs$jscomp$6_o.design_skin||this._apControlsRight.prepend(this._metaArtistCon),"skin-silver"===margs$jscomp$6_o.design_skin&&this._apControlsRight.append(this._metaArtistCon),"skin-default"===margs$jscomp$6_o.design_skin&&this._apControlsRight.before(this._metaArtistCon))}function setup_structure_extras(selfClass,o){"skin-wave"===o.design_skin&&"bigwavo"===selfClass.skinwave_mode&&(selfClass._audioplayerInner.after(selfClass._scrubbar),selfClass.cthis.find(".feed-description")&&(selfClass.$conControls.after(selfClass.cthis.find(".feed-description").eq(0)),
selfClass.$conControls.next().removeClass("feed-description").addClass("song-desc")));selfClass.radio_isGoingToUpdateSongName=_dzsap_helpers.player_radio_isNameUpdatable(selfClass,selfClass.radio_isGoingToUpdateSongName,".the-songname");selfClass.radio_isGoingToUpdateArtistName=_dzsap_helpers.player_radio_isNameUpdatable(selfClass,selfClass.radio_isGoingToUpdateArtistName,".the-artist");"on"===o.disable_scrub&&selfClass.cthis.addClass("disable-scrubbar");var struct_embedButtonWithTooltip='<div class="btn-embed-code-con dzstooltip-con "><div class="btn-embed-code player-but "> <div class="the-icon-bg"></div>'+
_dzsap_svgs.l2+'</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>';""!==selfClass.feedEmbedCode&&feedEmbedFunctionality(selfClass,jQuery,_dzsap_helpers,struct_embedButtonWithTooltip);"on"===o.footer_btn_playlist&&0===selfClass._apControlsRight.find(".btn-footer-playlist").length&&(selfClass.classFunctionalityInnerPlaylist=new DzsapInnerPlaylist(selfClass),
selfClass.classFunctionalityInnerPlaylist.init());setTimeout(function(){selfClass.cthis.find(".extra-html").length&&extraHtmlBottomFunctionality(selfClass)},100);setTimeout(function(){-1<selfClass.cthis.html().indexOf("dzsap-multisharer-but")&&(selfClass.isMultiSharer=!0,selfClass.check_multisharer())},1002);selfClass.cthis.find(".con-after-playpause").length&&selfClass.$conPlayPause.after(selfClass.cthis.find(".con-after-playpause").eq(0));0<selfClass.cthis.find(".afterplayer").length&&selfClass.cthis.append(selfClass.cthis.find(".afterplayer"))}
function structure_generatePlayPauseString(selfClass){var o=selfClass.initOptions,struct_con_playpause="";o.settings_extrahtml_before_play_pause&&(struct_con_playpause+=o.settings_extrahtml_before_play_pause);struct_con_playpause+='<div class="con-playpause-con">';struct_con_playpause=addExtraHtmlInPlace(selfClass,".feed-dzsap-before-playpause",struct_con_playpause)+struct_con_playpause;struct_con_playpause+='<div class="con-playpause';"on"===selfClass.keyboard_controls.show_tooltips&&(struct_con_playpause+=
" dzstooltip-con");struct_con_playpause+='">';"on"===selfClass.keyboard_controls.show_tooltips&&(struct_con_playpause+=_dzsap_helpers.dzsap_generate_keyboard_tooltip(selfClass.keyboard_controls,"pause_play"));struct_con_playpause+='<div class="playbtn player-but" aria-controls="'+selfClass.uniqueId+'-audio"><div class="the-icon-bg"></div><div class="dzsap-play-icon">';struct_con_playpause+=_dzsap_svgs.Z1;struct_con_playpause=struct_con_playpause+'</div></div><div class="pausebtn player-but"><div class="the-icon-bg"></div><div class="pause-icon">'+
_dzsap_svgs.IM;struct_con_playpause+="</div></div></div>";struct_con_playpause+=addExtraHtmlInPlace(selfClass,".feed-dzsap-after-playpause",struct_con_playpause);return struct_con_playpause+"</div>"}function setup_structure__setup_wrapper_image(selfClass){var img=new Image;!1===selfClass.cthis.hasClass("zoomsounds-no-wrapper")&&(img.onload=function $img$onload$(){selfClass.cthis.css("background-image","url("+this.src+")");setTimeout(function(){selfClass.cthis.find(".zoomsounds-bg").addClass("loaded");
selfClass.cthis.hasClass("zoomsounds-wrapper-bg-bellow")&&selfClass.cthis.css("padding-top",200)},100)},img.src=selfClass.cthis.attr("data-wrapper-image"))}function addExtraHtmlInPlace(selfClass,feedSelector,addToString,$appendElement){addToString=void 0===addToString?null:addToString;$appendElement=void 0===$appendElement?null:$appendElement;if(selfClass.cthis.find(feedSelector).length){null!==addToString&&(addToString+=selfClass.cthis.find(feedSelector).eq(0).html());if(null!==$appendElement)return $appendElement.append(selfClass.cthis.find(feedSelector).eq(0).html()),
$appendElement;selfClass.cthis.find(feedSelector).remove();if(null!==addToString)return addToString}return"string"==typeof addToString?"":null}function register_dzsap_plugin(){window.dzsap_settings||(window.dzsap_settings={});(function($){(0,_dzsap_helpers.assignHelperFunctionsToJquery)($);$.fn.audioplayer=function $$$fn$audioplayer$(argOptions){var finalOptions={},defaultOptions=Object.assign({},defaultPlayerOptions);finalOptions=(0,_dzsap_helpers.convertPluginOptionsToFinalOptions)(this,defaultOptions,
argOptions);this.each(function(){return new DzsAudioPlayer(this,Object.assign({},finalOptions),$)})};registerToJquery($)})(jQuery)}var _dzsap_helpers=__webpack_require__(586),_dzs_helpers=__webpack_require__(401),_constants=__webpack_require__(567),media_tryToPlay=function $media_tryToPlay$(selfClass,callbackFn,errorFn){(function async_media_tryToPlay(){function tryToPlay(resolve,reject){selfClass.cthis.attr("data-original-type")||(selfClass.$mediaNode_?selfClass.$mediaNode_.play?_dzsap_helpers.is_ios()&&
null!==selfClass.spectrum_audioContext&&"object"==typeof selfClass.spectrum_audioContext?(selfClass.spectrum_audioContextBufferSource=selfClass.spectrum_audioContext.createBufferSource(),selfClass.spectrum_audioContextBufferSource.buffer=selfClass.spectrum_audioContext_buffer,selfClass.spectrum_audioContextBufferSource.connect(selfClass.spectrum_audioContext.destination),selfClass.spectrum_audioContextBufferSource.start(0,selfClass.lastTimeInSeconds),resolve({resolve_type:"playing_context"})):_dzsap_helpers.is_ie()?
(selfClass.$mediaNode_.play(),resolve({resolve_type:"started_playing"})):selfClass.$mediaNode_.play().then(function(r){resolve({resolve_type:"started_playing"})}).catch(function(err){reject({error_type:"did not want to play",error_message:err})}):null==selfClass._actualPlayer&&(selfClass.isPlayPromised=!0):null==selfClass._actualPlayer&&(selfClass.isPlayPromised=!0))}return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context){return $jscomp$generator$context.return(new Promise(function(resolve,
reject){tryToPlay(resolve,reject)}))})})().then(function(r){callbackFn(r)}).catch(function(err){errorFn(err)})},setupMediaElement=function $setupMediaElement$(selfClass,stringAudioElementHtml,stringAudioTagSource){stringAudioElementHtml=void 0===stringAudioElementHtml?"":stringAudioElementHtml;stringAudioTagSource=void 0===stringAudioTagSource?"":stringAudioTagSource;selfClass.$theMedia.children().remove();selfClass.$mediaNode_=null;if(stringAudioTagSource)if(selfClass.$mediaNode_)jQuery(selfClass.$mediaNode_).append(stringAudioTagSource),
selfClass.$mediaNode_.load&&selfClass.$mediaNode_.load();else return setupMediaElement(selfClass,stringAudioElementHtml),!1;else selfClass.$theMedia.append(stringAudioElementHtml);selfClass.$mediaNode_=selfClass.$theMedia.children("audio").get(0)},setupMediaListeners=function $setupMediaListeners$(selfClass,setupMediaAttrs,action_initLoaded,volume_lastVolume,volume_setVolume){function media_handleEnd(pargs){selfClass.handle_end(pargs)}function handleAudioError(e){if(this.networkState===HTMLMediaElement.NETWORK_NO_SOURCE&&
!1===_dzsap_helpers.dzsap_is_mobile()&&!1===selfClass.cthis.hasClass(_constants.OF.ERRORED_OUT_CLASS))if(attempt_reload<_constants.OF.ERRORED_OUT_MAX_ATTEMPTS)setTimeout(function(earg){selfClass.$mediaNode_&&(selfClass.$mediaNode_.src="");setTimeout(function(){selfClass.$mediaNode_&&(selfClass.$mediaNode_.src=selfClass.data_source,selfClass.$mediaNode_.load())},1E3)},1E3,e),attempt_reload++;else if("on"===selfClass.initOptions.notice_no_media){selfClass.cthis.addClass(_constants.OF.ERRORED_OUT_CLASS);
var txt="error - file does not exist...";e.target.error&&(txt=e.target.error.message);selfClass.cthis.append(_dzs_helpers.SA({tooltipConClass:" feedback-tooltip-con",tooltipIndicatorText:'<span class="player-but"><span class="the-icon-bg" style="background-color: #912c2c"></span><span class="svg-icon dzsap-color-ui-inverse" >&#x2139;</span></span>',tooltipInnerHTML:"cannot load - ( "+selfClass.data_source+" ) - error: "+txt}))}}function handleMediaMetaLoaded($audio__e){_dzsap_helpers.player_view_addMetaLoaded(selfClass);
$audio__e=$audio__e.currentTarget;isValidTotalTime($audio__e.duration)&&(selfClass.timeModel.actualTotalTime=Math.ceil($audio__e.duration));selfClass.service_checkIfWeShouldUpdateTotalTime();"change_media"===setupMediaAttrs.called_from&&action_initLoaded({call_from:"force_reload_change_media"});("change_media"===setupMediaAttrs.called_from||selfClass._sourcePlayer)&&volume_lastVolume&&setTimeout(function(){volume_setVolume(volume_lastVolume,{call_from:"change_media"})},50);selfClass._sourcePlayer&&
isValidTotalTime($audio__e.duration)&&selfClass._sourcePlayer.get(0).api_set_timeVisualTotal($audio__e.duration);selfClass.view_drawCurrentTime()}var attempt_reload=0;"undefined"!==typeof selfClass.$mediaNode_&&selfClass.$mediaNode_&&(selfClass.$mediaNode_.addEventListener("error",handleAudioError,!0),selfClass.$mediaNode_.addEventListener("loadedmetadata",handleMediaMetaLoaded,!0),"AUDIO"===selfClass.$mediaNode_.nodeName&&selfClass.$mediaNode_.addEventListener("ended",media_handleEnd))},buildAudioElementHtml=
function $buildAudioElementHtml$(selfClass,type_normal_stream_type,calledFrom_stringAudioTagSource){var stringAudioTagOpen="",o=selfClass.initOptions;selfClass.data_source&&-1<selfClass.data_source.indexOf("get_track_source")&&(o.preload_method="none");stringAudioTagOpen=stringAudioTagOpen+'<audio id="'+(selfClass.uniqueId+'-audio"');stringAudioTagOpen+=' preload="'+o.preload_method+'"';"on"===o.skinwave_enableSpectrum&&(stringAudioTagOpen+=' crossOrigin="anonymous"');_dzsap_helpers.is_ios()&&"change_media"===
calledFrom_stringAudioTagSource&&(stringAudioTagOpen+=" autoplay");stringAudioTagOpen+=">";calledFrom_stringAudioTagSource="";selfClass.data_source&&(selfClass.data_source||"icecast"===type_normal_stream_type||(selfClass.data_source=selfClass.cthis.attr("data-source")),"fake"!==selfClass.data_source?(calledFrom_stringAudioTagSource+='<source src="'+selfClass.data_source+'" type="audio/mpeg">',void 0!==selfClass.cthis.attr("data-sourceogg")&&(calledFrom_stringAudioTagSource+='<source src="'+selfClass.cthis.attr("data-sourceogg")+
'" type="audio/ogg">')):selfClass.cthis.addClass("meta-loaded meta-fake"));return{stringAudioElementHtml:stringAudioTagOpen+calledFrom_stringAudioTagSource+"</audio>",stringAudioTagSource:calledFrom_stringAudioTagSource}},makeMediaPreloadInTheFuture=function $makeMediaPreloadInTheFuture$(selfClass,stringAudioElementHtml){setTimeout(function(){selfClass.$mediaNode_&&jQuery(selfClass.$mediaNode_).attr("preload","metadata")},1E4*Number(window.dzsap_player_index))},repairMediaElement=function $repairMediaElement$(selfClass,
stringAudioElementHtml){var o=selfClass.initOptions;setTimeout(function(){if(selfClass.$theMedia.children().eq(0).get(0)&&"AUDIO"===selfClass.$theMedia.children().eq(0).get(0).nodeName)return!1;selfClass.$theMedia.html("");selfClass.$mediaNode_=null;selfClass.$theMedia.append(stringAudioElementHtml);var isWasPlaying=selfClass.player_playing;selfClass.pause_media();selfClass.$mediaNode_=selfClass.$theMedia.children("audio").get(0);isWasPlaying&&setTimeout(function(){selfClass.play_media({called_from:"aux_was_playing"})},
20)},o.failsafe_repair_media_element);o.failsafe_repair_media_element=""},media_pause=function $media_pause$(selfClass,callbackFn){var $=jQuery;"youtube"===selfClass.audioType&&selfClass.$mediaNode_&&selfClass.$mediaNode_.pauseVideo&&selfClass.$mediaNode_.pauseVideo();"selfHosted"===selfClass.audioType&&selfClass.$mediaNode_&&("stop"==selfClass.initOptions.pause_method?(selfClass.$mediaNode_.pause(),selfClass.$mediaNode_.src="",selfClass.destroy_cmedia(),$(selfClass.$mediaNode_).remove(),selfClass.$mediaNode_=
null):selfClass.$mediaNode_.pause&&selfClass.$mediaNode_.pause());callbackFn()},isValidTotalTime=function $isValidTotalTime$(duration){return!(!duration||Infinity===duration)};window.dzsap_wavesurfer_load_attempt=0;window.dzsap_wavesurfer_is_trying_to_generate=null;var PlayerTime=function $PlayerTime$(selfClass){this.timeTotal=this.timeCurrent=0;this.sampleTimeTotal=this.sampleTimeEnd=this.sampleTimeStart=null;this.referenceMediaTotalTime=this.referenceMediaCurrentTime=0;this.actualTotalTime=this.visualTotalTime=
this.visualCurrentTime=null;this.dzsapInstance=selfClass;this.init()};PlayerTime.prototype.init=function $PlayerTime$$init$(){};PlayerTime.prototype.initObjects=function $PlayerTime$$initObjects$(){var selfClass=this.dzsapInstance,timeInstance=this;selfClass.cthis.get(0).api_set_timeVisualCurrent=function $selfClass$cthis$get$api_set_timeVisualCurrent$(arg){timeInstance.visualCurrentTime=arg};selfClass.cthis.get(0).api_get_time_total=function $selfClass$cthis$get$api_get_time_total$(){return timeInstance.getVisualTotalTime()};
selfClass.cthis.get(0).api_get_time_curr=function $selfClass$cthis$get$api_get_time_curr$(){return timeInstance.getVisualCurrentTime()};selfClass.cthis.get(0).api_set_timeVisualTotal=function $selfClass$cthis$get$api_set_timeVisualTotal$(arg){timeInstance.visualTotalTime=arg;timeInstance.refreshTimes()}};PlayerTime.prototype.refreshTimes=function $PlayerTime$$refreshTimes$(){var selfClass=this.dzsapInstance;if(("selfHosted"===selfClass.audioType||"fake"===selfClass.audioType&&selfClass._actualPlayer)&&
""===selfClass.audioTypeSelfHosted_streamType){selfClass.$mediaNode_&&isValidTotalTime(selfClass.$mediaNode_.duration)&&(this.referenceMediaTotalTime=selfClass.$mediaNode_.duration);var JSCompiler_inline_result=selfClass.$mediaNode_&&null===selfClass._actualPlayer?selfClass.$mediaNode_.currentTime:void 0;this.referenceMediaCurrentTime=JSCompiler_inline_result;"last"===selfClass.playFrom&&selfClass.playFrom_ready&&"undefined"!==typeof Storage&&(localStorage["dzsap_"+selfClass.the_player_id+"_lastpos"]=
selfClass.timeCurrent)}"youtube"===selfClass.audioType&&selfClass.$mediaNode_&&selfClass.$mediaNode_.getDuration&&(this.referenceMediaCurrentTime=selfClass.$mediaNode_.getCurrentTime(),this.referenceMediaTotalTime=selfClass.$mediaNode_.getDuration());selfClass._sourcePlayer&&selfClass._sourcePlayer.get(0)&&selfClass._sourcePlayer.get(0).api_get_time_curr&&(isNaN(selfClass._sourcePlayer.get(0).api_get_time_total())||""===selfClass._sourcePlayer.get(0).api_get_time_total()||1>selfClass._sourcePlayer.get(0).api_get_time_total())&&
selfClass._sourcePlayer.get(0).api_set_timeVisualTotal(this.getVisualTotalTime());null===selfClass._actualPlayer&&-1<this.referenceMediaCurrentTime&&(selfClass.timeCurrent=this.referenceMediaCurrentTime);null===selfClass._actualPlayer&&-1<this.referenceMediaTotalTime&&(selfClass.timeTotal=this.referenceMediaTotalTime);this.sampleTimeStart&&this.sampleTimeEnd&&selfClass.timeCurrent>this.sampleTimeEnd&&(selfClass.handle_end({call_from:"time_curr>sample_time_end"}),selfClass.isMediaEnded=!0,clearTimeout(selfClass.inter_isEnded),
selfClass.inter_isEnded=setTimeout(function(){selfClass.isMediaEnded=!1},1E3))};PlayerTime.prototype.processCurrentFrame=function $PlayerTime$$processCurrentFrame$(){var selfClass=this.dzsapInstance;if(selfClass._sourcePlayer&&(selfClass._sourcePlayer.get(0)&&selfClass._sourcePlayer.get(0).api_get_time_curr&&selfClass._sourcePlayer.get(0).api_set_timeVisualCurrent(selfClass.timeCurrent),selfClass._sourcePlayer.get(0)&&selfClass._sourcePlayer.get(0).api_seek_to_visual)){var args=selfClass.timeCurrent;
selfClass._sourcePlayer.get(0).api_seek_to_visual(args/selfClass.timeTotal)}selfClass.isSafeToChangeTrack&&1<this.timeTotal&&this.timeCurrent>=this.timeTotal-.07&&(args={call_from:"selfClass.timeTotal > 0 && selfClass.timeCurrent >= selfClass.timeTotal - 0.07 ... "},selfClass._actualPlayer||(selfClass.handle_end(args),selfClass.isMediaEnded=!0,clearTimeout(selfClass.inter_isEnded),selfClass.inter_isEnded=setTimeout(function(){selfClass.isMediaEnded=!1},1E3)))};PlayerTime.prototype.getVisualCurrentTime=
function $PlayerTime$$getVisualCurrentTime$(){var selfClass=this.dzsapInstance;return null===selfClass._actualPlayer&&-1<this.referenceMediaCurrentTime?this.referenceMediaCurrentTime:this.visualCurrentTime?this.visualCurrentTime:selfClass.playFrom?selfClass.playFrom:0};PlayerTime.prototype.getActualTotalTime=function $PlayerTime$$getActualTotalTime$(){return this.actualTotalTime};PlayerTime.prototype.getVisualTotalTime=function $PlayerTime$$getVisualTotalTime$(){return this.sampleTimeTotal?this.sampleTimeTotal:
null!==this.dzsapInstance._actualPlayer&&this.visualTotalTime?this.visualTotalTime:-1<this.referenceMediaTotalTime?this.referenceMediaTotalTime:0};PlayerTime.prototype.getActualTargetTime=function $PlayerTime$$getActualTargetTime$(targetTime){this.sampleTimeStart&&(targetTime<this.sampleTimeStart&&(targetTime=this.sampleTimeStart),targetTime>this.sampleTimeEnd&&(targetTime=this.sampleTimeEnd));return targetTime};PlayerTime.prototype.getSampleTimesFromDom=function $PlayerTime$$getSampleTimesFromDom$($targetPlayer){$targetPlayer=
void 0===$targetPlayer?null:$targetPlayer;var selfClass=this.dzsapInstance;selfClass.sample_time_total=0;selfClass.sample_time_start=0;selfClass.pseudo_sample_time_end=0;null===$targetPlayer&&($targetPlayer=selfClass.cthis);$targetPlayer.attr("data-sample_time_start")&&(this.sampleTimeStart=Number($targetPlayer.attr("data-sample_time_start")));$targetPlayer.attr("data-sample_time_end")&&(this.sampleTimeEnd=Number($targetPlayer.attr("data-sample_time_end")));$targetPlayer.attr("data-sample_time_total")&&
(this.sampleTimeTotal=Number($targetPlayer.attr("data-sample_time_total")));selfClass.sample_perc_start=selfClass.sample_time_start/selfClass.sample_time_total;selfClass.sample_perc_end=selfClass.sample_time_end/selfClass.sample_time_total;selfClass.isSample=!!(this.sampleTimeTotal&&this.sampleTimeStart||this.sampleTimeStart&&this.sampleTimeEnd)};var ajax_submit_views=function $ajax_submit_views$($$jscomp$12_argp){var selfClass=this;$$jscomp$12_argp=jQuery;var data={action:"dzsap_submit_views",postdata:1,
playerid:selfClass.the_player_id,currip:selfClass.currIp};selfClass.cthis.attr("data-playerid-for-views")&&(data.playerid=selfClass.cthis.attr("data-playerid-for-views"));""==data.playerid&&(data.playerid=_dzsap_helpers.dzs_clean_string(selfClass.data_source));selfClass.urlToAjaxHandler&&($$jscomp$12_argp.ajax({type:"POST",url:selfClass.urlToAjaxHandler,data:data,success:function(response){var auxnr=selfClass.cthis.find(".counter-hits .the-number").html();auxnr=parseInt(auxnr,10);2!=selfClass.increment_views&&
auxnr++;response&&(0,_dzs_helpers.qw)(response)&&(auxnr=(0,_dzs_helpers.qw)(response).number);selfClass.cthis.find(".counter-hits .the-number").html(auxnr);selfClass.ajax_view_submitted="on"},error:function(arg){arg=selfClass.cthis.find(".counter-hits .the-number").html();arg=parseInt(arg,10);arg++;selfClass.cthis.find(".counter-hits .the-number").html(arg);selfClass.ajax_view_submitted="on"}}),selfClass.ajax_view_submitted="on")},ajax_submit_like=function $ajax_submit_like$(argp$jscomp$3_data){var selfClass=
this,$=jQuery;argp$jscomp$3_data={action:"dzsap_submit_like",postdata:argp$jscomp$3_data,playerid:selfClass.the_player_id};selfClass.cthis.find(".btn-like").addClass("disabled");(selfClass.urlToAjaxHandler||selfClass.cthis.hasClass("is-preview"))&&$.ajax({type:"POST",url:selfClass.urlToAjaxHandler,data:argp$jscomp$3_data,success:function(auxlikes$jscomp$1_response){selfClass.cthis.find(".btn-like").addClass("active");selfClass.cthis.find(".btn-like").removeClass("disabled");auxlikes$jscomp$1_response=
selfClass.cthis.find(".counter-likes .the-number").html();auxlikes$jscomp$1_response=parseInt(auxlikes$jscomp$1_response,10);auxlikes$jscomp$1_response++;selfClass.cthis.find(".counter-likes .the-number").html(auxlikes$jscomp$1_response)},error:function(arg$jscomp$25_auxlikes){selfClass.cthis.find(".btn-like").addClass("active");selfClass.cthis.find(".btn-like").removeClass("disabled");arg$jscomp$25_auxlikes=selfClass.cthis.find(".counter-likes .the-number").html();arg$jscomp$25_auxlikes=parseInt(arg$jscomp$25_auxlikes,
10);arg$jscomp$25_auxlikes++;selfClass.cthis.find(".counter-likes .the-number").html(arg$jscomp$25_auxlikes)}})},ajax_retract_like=function $ajax_retract_like$(argp$jscomp$4_data){var selfClass=this,$=jQuery;argp$jscomp$4_data={action:"dzsap_retract_like",postdata:argp$jscomp$4_data,playerid:selfClass.the_player_id};selfClass.cthis.find(".btn-like").addClass("disabled");selfClass.urlToAjaxHandler&&$.ajax({type:"POST",url:selfClass.urlToAjaxHandler,data:argp$jscomp$4_data,success:function(auxlikes$jscomp$3_response){selfClass.cthis.find(".btn-like").removeClass("active");
selfClass.cthis.find(".btn-like").removeClass("disabled");auxlikes$jscomp$3_response=selfClass.cthis.find(".counter-likes .the-number").html();auxlikes$jscomp$3_response=parseInt(auxlikes$jscomp$3_response,10);auxlikes$jscomp$3_response--;selfClass.cthis.find(".counter-likes .the-number").html(auxlikes$jscomp$3_response)},error:function(arg$jscomp$26_auxlikes){selfClass.cthis.find(".btn-like").removeClass("active");selfClass.cthis.find(".btn-like").removeClass("disabled");arg$jscomp$26_auxlikes=selfClass.cthis.find(".counter-likes .the-number").html();
arg$jscomp$26_auxlikes=parseInt(arg$jscomp$26_auxlikes,10);arg$jscomp$26_auxlikes--;selfClass.cthis.find(".counter-likes .the-number").html(arg$jscomp$26_auxlikes)}})},ajax_comment_publish=function $ajax_comment_publish$(argp){var selfClass=this,$=jQuery,data={action:"dzsap_front_submitcomment",postdata:argp,playerid:selfClass.the_player_id,comm_position:selfClass.commentPositionPerc};window.dzsap_settings&&(data.skinwave_comments_avatar=window.dzsap_settings.comments_avatar,data.skinwave_comments_account=
window.dzsap_settings.comments_username);0<selfClass.cthis.find("*[name=comment-email]").length&&(data.email=selfClass.cthis.find("*[name=comment-email]").eq(0).val());selfClass.urlToAjaxHandler&&jQuery.ajax({type:"POST",url:selfClass.urlToAjaxHandler,data:data,success:function(aux$jscomp$5_response){"0"==aux$jscomp$5_response.charAt(aux$jscomp$5_response.length-1)&&(aux$jscomp$5_response=aux$jscomp$5_response.slice(0,aux$jscomp$5_response.length-1));aux$jscomp$5_response="";aux$jscomp$5_response=
'<span class="dzstooltip-con" style="left:'+selfClass.commentPositionPerc+'"><span class="dzstooltip arrow-from-start transition-slidein arrow-bottom skin-black" style="width: 250px;"><span class="the-comment-author">@'+window.dzsap_settings.comments_username+"</span> says:<br>";aux$jscomp$5_response+=_dzsap_helpers.htmlEncode(data.postdata);aux$jscomp$5_response+='</span><div class="the-avatar" style="background-image: url('+window.dzsap_settings.comments_avatar+')"></div></span>';selfClass._commentsHolder.children().each(function(){var _t2=
$(this);0==_t2.hasClass("dzstooltip-con")&&_t2.addClass("dzstooltip-con")});selfClass._commentsHolder.append(aux$jscomp$5_response);selfClass.action_audio_comment&&selfClass.action_audio_comment(selfClass.cthis,aux$jscomp$5_response)},error:function(arg){selfClass._commentsHolder.append(data.postdata)}})},ajax_submit_download=function $ajax_submit_download$(argp$jscomp$6_data){argp$jscomp$6_data={action:"dzsap_submit_download",postdata:argp$jscomp$6_data,playerid:this.the_player_id};-1<this.starrating_alreadyrated||
this.urlToAjaxHandler&&jQuery.ajax({type:"POST",url:this.urlToAjaxHandler,data:argp$jscomp$6_data,success:function(response){},error:function(arg){}})},_ClassMetaParts=function $_ClassMetaParts$(selfClass){this.selfClass=selfClass};_ClassMetaParts.prototype.set_extraHtmlFloatRight=function $_ClassMetaParts$$set_extraHtmlFloatRight$(extraHtml){this.selfClass.cthis.find(".extrahtml-in-float-right").eq(0).html(extraHtml)};var hide_comments_writer=function $hide_comments_writer$(selfClass){var $=jQuery;
selfClass.cthis.removeClass("comments-writer-active");selfClass._commentsHolder.find(".dzstooltip-con.placeholder").remove();selfClass.$commentsWritter.removeClass("active");selfClass.$commentsWritter.css({height:0});selfClass.initOptions.parentgallery&&void 0!==$(selfClass.initOptions.parentgallery).get(0)&&void 0!==$(selfClass.initOptions.parentgallery).get(0).api_handleResize&&$(selfClass.initOptions.parentgallery).get(0).api_handleResize();setTimeout(function(){selfClass.cthis.find(".comments-writter-temp-css,.dzsap-style-comments").remove()},
300)},comments_setupCommentsInitial=function $comments_setupCommentsInitial$(selfClass){var o=selfClass.initOptions;0<selfClass.cthis.find(".the-comments").length&&0<selfClass.cthis.find(".the-comments").eq(0).children().length&&(selfClass.$commentsChildren=selfClass.cthis.find(".the-comments").eq(0).children());var str_comments_holder='<div class="comments-holder">';str_comments_holder=o.skinwave_comments_links_to?str_comments_holder+('<a href="'+o.skinwave_comments_links_to+'" target="_blank" class="the-bg"></a>'):
str_comments_holder+'<div class="the-comments-holder-bg"><div class="the-avatar comments-avatar--placeholder"></div></div>';selfClass._scrubbar.appendOnce(str_comments_holder+'</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=""></div>\n              </div>\n              </div></div><span class="dzstooltip--close"><span\n              class="label--x-button">&#10006;</span></span></div></div>');
selfClass._commentsHolder=selfClass.cthis.find(".comments-holder").eq(0);selfClass.$commentsWritter=selfClass.cthis.find(".dzstooltip--comments-writer").eq(0);comments_setupCommentsHolder(selfClass);selfClass._commentsHolder.on("click",function(e){comments_handleClickCommentsBg(selfClass,this,e)});selfClass._commentsHolder.on("mousemove",function(e){selfClass._commentsHolder.find(".comments-avatar--placeholder").css("left",(0,_dzs_helpers.c6)(e.pageX,e.currentTarget)-7+"px")});selfClass.$commentsWritter.find(".dzstooltip--close").on("click",
function(e){hide_comments_writer(selfClass)});selfClass.$commentsWritter.find(".submit-ap-comment").on("click",function(comment_email$jscomp$inline_27_e){comment_email$jscomp$inline_27_e="";selfClass.cthis.find("input[name=comment-email]").length&&(comment_email$jscomp$inline_27_e=selfClass.cthis.find("input[name=comment-email]").eq(0).val());comment_submit(selfClass,selfClass.cthis.find("*[name=comment-text]").eq(0).val(),comment_email$jscomp$inline_27_e)})},comments_setupCommentsHolder=function $comments_setupCommentsHolder$(selfClass){var $=
jQuery,o=selfClass.initOptions;selfClass._commentsHolder&&selfClass.$commentsChildren&&selfClass.$commentsChildren.each(function(){var _c=$(this);"on"===o.skinwave_comments_process_in_php&&_c&&_c.hasClass&&_c.hasClass("dzstooltip-con")&&!_c.find(".dzstooltip > .dzstooltip--inner").length&&(_c.find(".dzstooltip").wrapInner('<div class="dzstooltip--inner"></div>'),_c.find(".the-avatar").addClass("tooltip-indicator"),_c.find(".dzstooltip").before(_c.find(".tooltip-indicator")),_c.find(".dzstooltip").addClass("talign-start style-rounded color-dark-light"));
selfClass._commentsHolder.append(_c)})},comments_handleClickCommentsBg=function $comments_handleClickCommentsBg$(selfClass,argThis_percClickFromScrubWidth,e){var $=jQuery,o=selfClass.initOptions,$commentsHolder=$(argThis_percClickFromScrubWidth),leftMouseX=parseInt(e.clientX,10)-$commentsHolder.offset().left;argThis_percClickFromScrubWidth=leftMouseX/$commentsHolder.width();selfClass.commentPositionPerc="calc("+100*argThis_percClickFromScrubWidth+"% - 7px)";comments_updateCommentHolderTimerWhenReady(selfClass,
argThis_percClickFromScrubWidth);if(!o.skinwave_comments_links_to){if(!("off"!==o.skinwave_comments_allow_post_if_not_logged_in||window.dzsap_settings&&window.dzsap_settings.comments_username))return!1;var sw=!0;selfClass._commentsHolder.children().each(function(){var $commentElement_lmx2=$(this);if(!$commentElement_lmx2.hasClass("placeholder")&&!$commentElement_lmx2.hasClass("the-bg")&&($commentElement_lmx2=$commentElement_lmx2.offset().left-$commentsHolder.offset().left,20>Math.abs($commentElement_lmx2-
leftMouseX)))return selfClass._commentsHolder.find(".dzstooltip-con.placeholder").remove(),sw=!1});if(!sw)return!1;selfClass.$commentsWritter.css({left:leftMouseX+"px"});selfClass.$commentsWritter.css("top",parseInt(selfClass._commentsHolder.css("top"),10)+20+"px");!1===selfClass.$commentsWritter.hasClass("active")&&(selfClass.$commentsWritter.addClass("active"),selfClass.cthis.addClass("comments-writer-active"));window.dzsap_settings&&window.dzsap_settings.comments_username?selfClass.cthis.find("input[name=comment-email]").remove():
selfClass.$commentsWritter.find(".comments-writer--avatar-con").remove();add_comments_placeholder(selfClass)}},comments_selector_event=function $comments_selector_event$(selfClass,comment_email$jscomp$2_e){var _t=jQuery(this),_con=null;_t.parent().parent().hasClass("zoomsounds-comment-wrapper")&&(_con=_t.parent().parent());_t.parent().parent().parent().hasClass("zoomsounds-comment-wrapper")&&(_con=_t.parent().parent().parent());"focusin"==comment_email$jscomp$2_e.type&&(selfClass._commentsHolder.width(),
selfClass.commentPositionPerc="calc("+selfClass.timeCurrent/selfClass.timeTotal*100+"% - 7px)",_con.addClass("active"),add_comments_placeholder(selfClass));if("click"==comment_email$jscomp$2_e.type&&(_t.hasClass("dzstooltip--close")&&(_con.removeClass("active"),_con.find("input").val("")),_t.hasClass("comments-btn-submit")))return comment_email$jscomp$2_e="",_con.find(".comment_email").length&&(comment_email$jscomp$2_e=_con.find(".comment_email").eq(0).val()),comment_submit(selfClass,_con.find(".comment_text").eq(0).val(),
comment_email$jscomp$2_e),_con.removeClass("active"),_con.find("input").val(""),!1},_dzsap_svgs=__webpack_require__(560),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:"default",design_menu_space:"default",settings_php_handler:"",design_menuitem_width:"default",
design_menuitem_height:"default",design_menuitem_space:"default",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"},ZoomSoundsNav=function $ZoomSoundsNav$(parentGallery){this.parentGallery=parentGallery;this.structZoomsoundsNav="";this.size_navMainTotalSize=this.size_navMainClipSize=
this.cgallery=this._navClipper=this._navMain=null;this.finish_viy=0;this.init()};ZoomSoundsNav.prototype.init=function $ZoomSoundsNav$$init$(){var selfGallery=this.parentGallery;this.structZoomsoundsNav='<div class="nav-main zoomsounds-nav '+selfGallery.initOptions.design_skin+" navigation-method-"+selfGallery.initOptions.navigation_method+'"><div class="nav-clipper"></div></div>';"full"===this.parentGallery.initOptions.navigation_method&&(this.parentGallery.initOptions.design_menu_height="auto")};
ZoomSoundsNav.prototype.init_ready=function $ZoomSoundsNav$$init_ready$(){function click_menuitem(e){var _t=jQuery(this);if("click"==e.type&&(_t.hasClass("menu-item")&&(e=_t.parent().children().index(_t),selfGallery.goto_item(e)),_t.hasClass("menu-btn-like")||_t.hasClass("menu-facebook-share")))return _t.parent().parent().attr("data-playerid")&&ajax_submit_like.bind(selfGallery)(1,_t.parent().parent().attr("data-playerid"),{refferer:_t}),!1}var selfGallery=this.parentGallery;"on"==selfGallery.initOptions.disable_menu_navigation&&
this._navMain.hide();isNaN(Number(selfGallery.initOptions.design_menu_height))||this._navMain.css({height:(0,_dzs_helpers.tK)(selfGallery.initOptions.design_menu_height)});((0,_dzsap_helpers.is_ios)()||(0,_dzsap_helpers.is_android)())&&this._navMain.css({overflow:"auto"});"closed"==selfGallery.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",click_menuitem);this._navClipper.on("click",".menu-item",click_menuitem)};ZoomSoundsNav.prototype.get_structZoomsoundsNav=function $ZoomSoundsNav$$get_structZoomsoundsNav$(){return this.structZoomsoundsNav};ZoomSoundsNav.prototype.set_elements=function $ZoomSoundsNav$$set_elements$(_navMain,_navClipper,cgallery){this._navMain=_navMain;this._navClipper=_navClipper;this.cgallery=cgallery};ZoomSoundsNav.prototype.calculateDims=function $ZoomSoundsNav$$calculateDims$(){function navMain_mousemove(e){var _t=
jQuery(this);_t.offset();e=e.pageY-_t.offset().top;self.size_navMainTotalSize<=self.size_navMainClipSize||(self.size_navMainClipSize=self._navMain.outerHeight(),e=e/self.size_navMainClipSize*-(self.size_navMainTotalSize-self.size_navMainClipSize+50)+20,0<e&&(e=0),e<-(self.size_navMainTotalSize-self.size_navMainClipSize+10)&&(e=-(self.size_navMainTotalSize-self.size_navMainClipSize+10)),self.finish_viy=e,0==(0,_dzsap_helpers.is_ios)()&&0==(0,_dzsap_helpers.is_android)()&&"on"!=self.parentGallery.initOptions.enable_easing&&
self._navClipper.css({transform:"translateY("+self.finish_viy+"px)"}))}this.size_navMainClipSize=this._navMain.height();this.size_navMainTotalSize=this._navClipper.outerHeight();var self=this;"mouseover"===this.parentGallery.initOptions.navigation_method&&(this.size_navMainTotalSize>this.size_navMainClipSize&&0<this.size_navMainClipSize?(this._navMain.off("mousemove",navMain_mousemove),this._navMain.on("mousemove",navMain_mousemove)):this._navMain.off("mousemove",navMain_mousemove))};ZoomSoundsNav.prototype.toggle_menu_state=
function $ZoomSoundsNav$$toggle_menu_state$(){var self=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(){self.parentGallery.handleResize()},400)};ZoomSoundsNav.prototype.parseTrackData=function $ZoomSoundsNav$$parseTrackData$(track_data){var foundnr=
0;this._navMain.find(".menu-item-views").each(function(){var _t2=$(this),aux_html=_t2.html(),aux=/{{views_(.*?)}}/g.exec(aux_html);if(aux&&aux[1]){var id=aux[1];for(var i in track_data)if(id==track_data[i].label||id=="ap"+track_data[i].label){aux_html=aux_html.replace(aux[0],track_data[i].views);foundnr++;break}_t2.html(aux_html)}});foundnr<track_data.length&&this._navMain.find(".menu-item-views").each(function(){var _t2=jQuery(this),aux_html=_t2.html(),aux=/{{views_(.*?)}}/g.exec(aux_html);aux&&
aux[0]&&(aux_html=aux_html.replace(aux[0],0),_t2.html(aux_html))})};var DzsApPlaylist=function $DzsApPlaylist$(argThis,argOptions,$){this.argThis=argThis;this.argOptions=argOptions;this.$=$;this.navClass=null;this.init()};DzsApPlaylist.prototype.init=function $DzsApPlaylist$$init$(){function destroy_gallery(){if(destroyed)return!1;cgallery.remove();cgallery=null;destroyed=!0}function filterPlayersInPlaylist(filterBy,searchedString){filterBy||(filterBy="title");_sliderClipper.children().each(function(){var $audioPlayer=
$(this);var referenceVal="";"title"===filterBy&&(referenceVal=$audioPlayer.find(".the-name").text());$audioPlayer=""===searchedString?!0:-1<referenceVal.toLowerCase().indexOf(searchedString.toLowerCase());$audioPlayer?$(this).addClass("is-according-to-search"):$(this).removeClass("is-according-to-search");_sliderClipper.hasClass("isotoped")?_sliderClipper.isotope({filter:".is-according-to-search"}):$audioPlayer?$(this).fadeIn("fast"):$(this).fadeOut("fast")})}function regenerate_sync_players_with_this_playlist(){window.dzsap_syncList_players=
[];_sliderClipper.children(".audioplayer,.audioplayer-tobe").each(function(){var _t=$(this);_t.addClass("feeded-whole-playlist");"on"!=_t.attr("data-do-not-include-in-list")&&window.dzsap_syncList_players.push(_t)})}function init_parse_track_data(){if(trying_to_get_track_data)return!1;trying_to_get_track_data=!0;var data={action:"dzsap_get_views_all",postdata:"1"};o.settings_php_handler&&$.ajax({type:"POST",url:o.settings_php_handler,data:data,success:function(response){cgallery.attr("data-track-data",
response);parse_track_data()},error:function(arg){}})}function parse_track_data(){if(cgallery.attr("data-track-data")){try{track_data=JSON.parse(cgallery.attr("data-track-data"))}catch(err){console.log(err)}track_data&&track_data.length&&selfGallery.navClass.parseTrackData(track_data)}}function get_nr_children(){return nrChildren}function generateMenuItemObjects(notInitedPlayers){var arr_menuitems=[];notInitedPlayers.each(function(){var JSCompiler_inline_result$jscomp$9__c=$(this);if(JSCompiler_inline_result$jscomp$9__c.find(".menu-description").length&&
JSCompiler_inline_result$jscomp$9__c.find(".menu-description").eq(0).html())var JSCompiler_temp_const=JSCompiler_inline_result$jscomp$9__c.find(".menu-description").html();else if(JSCompiler_temp_const="",JSCompiler_inline_result$jscomp$9__c.find(".feed-artist-name").length||JSCompiler_inline_result$jscomp$9__c.find(".feed-song-name").length)JSCompiler_temp_const="",JSCompiler_inline_result$jscomp$9__c.attr("data-thumb")&&(JSCompiler_temp_const+='<div class="menu-item-thumb-con"><div class="menu-item-thumb" style="background-image: url('+
JSCompiler_inline_result$jscomp$9__c.attr("data-thumb")+')"></div></div>'),JSCompiler_temp_const+='<div class="menu-artist-info"><span class="the-artist">'+JSCompiler_inline_result$jscomp$9__c.find(".feed-artist-name").html()+'</span><span class="the-name">'+JSCompiler_inline_result$jscomp$9__c.find(".feed-song-name").html()+"</span></div>";JSCompiler_inline_result$jscomp$9__c=JSCompiler_inline_result$jscomp$9__c.attr("data-player-id")?JSCompiler_inline_result$jscomp$9__c.attr("data-player-id"):JSCompiler_inline_result$jscomp$9__c.attr("id")?
JSCompiler_inline_result$jscomp$9__c.attr("id"):JSCompiler_inline_result$jscomp$9__c.attr("data-source")?_dzsap_helpers.dzs_clean_string(JSCompiler_inline_result$jscomp$9__c.attr("data-source")):void 0;arr_menuitems.push({menu_description:JSCompiler_temp_const,player_id:JSCompiler_inline_result$jscomp$9__c})});return arr_menuitems}function reinit(){var aux$jscomp$9_extra_class_notInitedPlayers=cgallery.find(".items").eq(0).children(".audioplayer-tobe");arr_menuitems=[];arr_menuitems=generateMenuItemObjects(aux$jscomp$9_extra_class_notInitedPlayers);
_sliderClipper.append(aux$jscomp$9_extra_class_notInitedPlayers);for(i=0;i<arr_menuitems.length;i++)aux$jscomp$9_extra_class_notInitedPlayers="",arr_menuitems[i].menu_description&&-1==arr_menuitems[i].menu_description.indexOf('<div class="menu-item-thumb-con"><div class="menu-item-thumb" style="')&&(aux$jscomp$9_extra_class_notInitedPlayers+=" no-thumb"),aux$jscomp$9_extra_class_notInitedPlayers='<div class="menu-item'+aux$jscomp$9_extra_class_notInitedPlayers+'"  data-menu-index="'+i+'" data-gallery-id="'+
cid+'" data-playerid="'+arr_menuitems[i].player_id+'">',cgallery.hasClass("skin-aura")&&(aux$jscomp$9_extra_class_notInitedPlayers+='<div class="menu-item-number">'+ ++nrChildren+"</div>"),aux$jscomp$9_extra_class_notInitedPlayers+=arr_menuitems[i].menu_description,cgallery.hasClass("skin-aura")&&1==String(arr_menuitems[i].menu_description).indexOf("menu-item-views")&&(track_data&&0<track_data.length?aux$jscomp$9_extra_class_notInitedPlayers+='<div class="menu-item-views"></div>':(init_parse_track_data(),
aux$jscomp$9_extra_class_notInitedPlayers+='<div class="menu-item-views">'+_dzsap_svgs.Z1+' <span class="the-count">{{views_'+arr_menuitems[i].player_id+"}}</span></div>")),aux$jscomp$9_extra_class_notInitedPlayers+="</div>",_navClipper.append(aux$jscomp$9_extra_class_notInitedPlayers),cgallery.hasClass("skin-aura")&&arr_menuitems[i]&&arr_menuitems[i].menu_description&&-1<arr_menuitems[i].menu_description.indexOf("float-right")&&_navClipper.children().last().addClass("has-extra-info")}function init_loaded(){cgallery.addClass("dzsag-loaded")}
function click_downloadAfterRate(){if(!$(this).hasClass("active"))return alert(str_alertBeforeRate),!1}function play_curr_media(){"undefined"!=typeof _sliderClipper.children().eq(currNr).get(0)&&"undefined"!=typeof _sliderClipper.children().eq(currNr).get(0).api_play_media&&_sliderClipper.children().eq(currNr).get(0).api_play_media({call_from:"play_curr_media_gallery"})}function mode_showall_listen_for_play(arg$jscomp$31_ind){"mode-showall"==o.settings_mode&&(currNr=arg$jscomp$31_ind=_sliderClipper.children(".audioplayer,.audioplayer-tobe").index(arg$jscomp$31_ind),
cgallery.get(0).currNr_2=arg$jscomp$31_ind)}function handle_frame(){isNaN(target_viy)&&(target_viy=0);begin_viy=target_viy;change_viy=selfGallery.navClass.finish_viy-begin_viy;target_viy=Number(Math.easeIn(1,begin_viy,change_viy,20).toFixed(4));0==_dzsap_helpers.is_ios()&&0==_dzsap_helpers.is_android()&&_navClipper.css({transform:"translateY("+target_viy+"px)"});requestAnimationFrame(handle_frame)}function toggle_menu_state(){selfGallery.navClass.toggle_menu_state()}function handlePlaylistSongEnd(){console.log("handlePlaylistSongEnd() ",
o);"on"==o.autoplayNext&&goto_next()}function player_commentSubmitted(){_navClipper.children(".menu-item").eq(currNr).find(".download-after-rate").addClass("active")}function player_rateSubmitted(){_navClipper.children(".menu-item").eq(currNr).find(".download-after-rate").addClass("active")}function calculateDims(){"mode-showall"==o.settings_mode||_sliderClipper.hasClass("isotoped")||"one"==o.mode_normal_video_mode||0==_sliderClipper.children().eq(currNr).hasClass("zoomsounds-wrapper-bg-bellow")&&
_sliderClipper.css("height",_sliderClipper.children().eq(currNr).outerHeight());_sliderClipper.hasClass("isotoped")||setTimeout(function(){_sliderClipper.css("height","auto")},_constants.OF.PLAYLIST_TRANSITION_DURATION);selfGallery.navClass.calculateDims();"on"==o.embedded&&window.frameElement&&(window.frameElement.height=cgallery.height())}function calculate_on_interval(){selfGallery.navClass.calculateDims()}function handleResize(){"mode-showall"!==o.settings_mode&&!1===_sliderClipper.hasClass("isotoped")&&
setTimeout(function(){_sliderClipper.css("height",_sliderClipper.children().eq(currNr).outerHeight())},500);calculateDims()}function transition_end(newCurrNr){_sliderClipper.children().eq(lastCurrNr).removeClass("transitioning-out");_sliderClipper.children().eq(newCurrNr).removeClass("transitioning-in");lastCurrNr=currNr;busy=!1}function transition_bg_end(){cgallery.parent().children(".the-bg").eq(0).remove();busy=!1}function goto_prev(){tempNr=currNr;tempNr--;var isGoingToItem=!0;0>tempNr&&(tempNr=
_sliderClipper.children().length-1,"off"==o.loop_playlist&&(isGoingToItem=!1));isGoingToItem&&goto_item(tempNr)}function goto_next(){tempNr=currNr;var isGoingToItem=!0;"mode-showall"==o.settings_mode&&(tempNr=cgallery.get(0).currNr_2);tempNr++;tempNr>=_sliderClipper.children().length&&(tempNr=0,"off"==o.loop_playlist&&(isGoingToItem=!1));isGoingToItem&&goto_item(tempNr)}function goto_item(newCurrNr,_audioplayerToBeActive_pargs){var bgimage_margs={ignore_arg_currNr_check:!1,ignore_linking:!1,donotopenlink:"off",
called_from:"default"};_audioplayerToBeActive_pargs&&(bgimage_margs=$.extend(bgimage_margs,_audioplayerToBeActive_pargs));if(1!=busy)if("last"==newCurrNr&&(newCurrNr=_sliderClipper.children().length-1),currNr==newCurrNr)_sliderClipper&&_sliderClipper.children().eq(currNr).get(0)&&_sliderClipper.children().eq(currNr).get(0).api_play_media&&_sliderClipper.children().eq(currNr).get(0).api_play_media({call_from:"gallery"});else{_audioplayerToBeActive_pargs=_sliderClipper.children(".audioplayer,.audioplayer-tobe").eq(newCurrNr);
var currNr_last_vol="";-1<currNr&&("undefined"!=typeof _sliderClipper.children().eq(currNr).get(0)&&("undefined"!=typeof _sliderClipper.children().eq(currNr).get(0).api_pause_media&&_sliderClipper.children().eq(currNr).get(0).api_pause_media(),"undefined"!=typeof _sliderClipper.children().eq(currNr).get(0).api_get_last_vol&&(currNr_last_vol=_sliderClipper.children().eq(currNr).get(0).api_get_last_vol())),_navClipper.children().removeClass("active active-from-gallery"),"one"!=o.mode_normal_video_mode&&
"mode-showall"!=o.settings_mode&&(_sliderClipper.children().eq(currNr).removeClass("active active-from-gallery"),_navClipper.children().eq(currNr).removeClass("active active-from-gallery")));"sameasgallery"===o.settings_ap.design_skin&&(o.settings_ap.design_skin=o.design_skin);-1==currNr&&"on"==o.autoplay&&(o.settings_ap.autoplay="on");-1<currNr&&"on"==o.autoplayNext&&(o.settings_ap.autoplay="on");o.settings_ap.parentgallery=cgallery;o.settings_ap.design_menu_show_player_state_button=o.design_menu_show_player_state_button;
o.settings_ap.cue="on";1==first&&("off"==o.cueFirstMedia&&(o.settings_ap.cue="off"),first=!1);var args_player=$.extend({},o.settings_ap);args_player.volume_from_gallery=currNr_last_vol;args_player.call_from="gotoItem";args_player.player_navigation=o.player_navigation;if("one"==o.mode_normal_video_mode&&-1<newCurrNr&&"init"!=bgimage_margs.called_from){var _c=_sliderClipper.children().eq(0).get(0);_audioplayerToBeActive_pargs=_sliderClipper.children().eq(0);_c&&_c.api_play_media&&(_c.api_change_media(_sliderClipper.children().eq(newCurrNr),
{called_from:"goto_item -- mode_normal_video_mode()",modeOneGalleryIndex:newCurrNr,source_player_do_not_update:"on"}),"on"==o.autoplayNext&&setTimeout(function(){_c.api_play_media()},200))}else init_player_from_gallery(_audioplayerToBeActive_pargs,args_player);"on"===o.autoplayNext&&("mode-showall"===o.settings_mode&&(currNr=cgallery.get(0).currNr_2),-1<currNr&&_audioplayerToBeActive_pargs.get(0)&&_audioplayerToBeActive_pargs.get(0).api_play&&_audioplayerToBeActive_pargs.get(0).api_play());if(void 0===
o.settings_ap.playfrom||"0"===o.settings_ap.playfrom)_audioplayerToBeActive_pargs.get(0)&&_audioplayerToBeActive_pargs.get(0).api_seek_to?_audioplayerToBeActive_pargs.get(0).api_seek_to(0,{call_from:"playlist_seek_from_0"}):console.log("_audioplayerToBeActive not found - ",_audioplayerToBeActive_pargs);_audioplayerToBeActive_pargs.get(0);"mode-showall"!==o.settings_mode&&(_sliderClipper.children().eq(currNr).addClass("transitioning-out"),_audioplayerToBeActive_pargs.removeClass("transitioning-out-complete"),
_audioplayerToBeActive_pargs.addClass("transitioning-in"),setTimeout(function(_arg){_arg.addClass("transitioning-out-complete")},_constants.OF.PLAYLIST_TRANSITION_DURATION,_sliderClipper.children().eq(currNr)),"link"!=_audioplayerToBeActive_pargs.attr("data-type")&&0==bgimage_margs.ignore_linking&&"on"==o.settings_enable_linking&&history.pushState({foo:"bar"},null,_dzsap_helpers.add_query_arg(window.location.href,"audiogallery_startitem_"+cid,newCurrNr)),"fade"===o.playlistTransition&&(setTimeout(transition_end,
_constants.OF.PLAYLIST_TRANSITION_DURATION,newCurrNr),busy=!0),"direct"===o.playlistTransition&&transition_end(newCurrNr));_audioplayerToBeActive_pargs.addClass("active active-from-gallery");_navClipper.children().eq(newCurrNr).addClass("active active-from-gallery");bgimage_margs="";_audioplayerToBeActive_pargs.attr("data-bgimage")&&(bgimage_margs=_audioplayerToBeActive_pargs.attr("data-bgimage"));_audioplayerToBeActive_pargs.attr("data-wrapper-image")&&(bgimage_margs=_audioplayerToBeActive_pargs.attr("data-wrapper-image"));
bgimage_margs&&cgallery.parent().hasClass("ap-wrapper")&&0<cgallery.parent().children(".the-bg").length&&(cgallery.parent().children(".the-bg").eq(0).after('<div class="the-bg" style="background-image: url('+bgimage_margs+');"></div>'),cgallery.parent().children(".the-bg").eq(0).css({opacity:1}),cgallery.parent().children(".the-bg").eq(1).css({opacity:0}),cgallery.parent().children(".the-bg").eq(1).animate({opacity:1},{queue:!1,duration:1E3,complete:transition_bg_end,step:function(){busy=!0}}),busy=
!0);"mode-showall"!=o.settings_mode&&(currNr=newCurrNr,cgallery.data("currNr",currNr));_sliderClipper.children().eq(currNr).get(0)&&_sliderClipper.children().eq(currNr).get(0).api_handleResize&&_sliderClipper.children().eq(currNr).hasClass("media-setuped")&&_sliderClipper.children().eq(currNr).get(0).api_handleResize();calculateDims()}}function init_player_from_gallery(_cache,pargs){var player_args=$.extend({},o.settings_ap);pargs&&(player_args=$.extend(player_args,pargs));_cache.hasClass("audioplayer-tobe")&&
(o.settings_ap.call_from="init player from gallery",player_args.is_inited_from_playlist=!0,_cache.audioplayer(player_args))}var $=this.$,selfGallery=this,o=selfGallery.argOptions,cgallery=$(selfGallery.argThis),cid="ag1",currNr=-1,lastCurrNr=0,nrChildren=0,tempNr=0,i=0,_sliderMain,_sliderClipper,_navMain,_navClipper,busy=!1,first=!0,destroyed=!0,skin_redlight_give_controls_right_to_all_players=!1,trying_to_get_track_data=!1,arr_menuitems=[],track_data=[],str_alertBeforeRate="You need to comment or rate before downloading.",
target_viy=0,begin_viy=0,change_viy=0;selfGallery.goto_item=goto_item;selfGallery.handleResize=handleResize;selfGallery.initOptions=o;window.dzsap_settings&&"undefined"!=typeof window.dzsap_settings.str_alertBeforeRate&&(str_alertBeforeRate=window.dzsap_settings.str_alertBeforeRate);cgallery.get(0).currNr_2=-1;(function init(){if("default"===o.settings_ap)if(cgallery.attr("data-player-options"))o.settings_ap=_dzsap_helpers.convertPluginOptionsToFinalOptions(cgallery.get(0),{},null,"data-player-options");
else{var _firstPlayer_ind=cgallery.find(".audioplayer, .audioplayer-tobe").eq(0);_firstPlayer_ind&&(o.settings_ap=_dzsap_helpers.convertPluginOptionsToFinalOptions(_firstPlayer_ind.get(0),{},null))}else"string"==typeof o.settings_ap&&window.dzsap_apconfigs&&"object"===typeof window.dzsap_apconfigs[o.settings_ap]&&(o.settings_ap=Object.assign({},window.dzsap_apconfigs[o.settings_ap]));if("default"===o.settings_ap||"string"===typeof o.settings_ap)o.settings_ap={};"default"===o.design_menu_width&&(o.design_menu_width=
"100%");"default"===o.design_menu_height&&(o.design_menu_height="200");cgallery.hasClass("skin-wave")&&(o.design_skin="skin-wave");cgallery.hasClass("skin-default")&&(o.design_skin="skin-default");cgallery.hasClass("skin-aura")&&(o.design_skin="skin-aura");cgallery.addClass(o.settings_mode);cgallery.append('<div class="slider-main"><div class="slider-clipper"></div></div>');cgallery.addClass("menu-position-"+o.design_menu_position);_sliderMain=cgallery.find(".slider-main").eq(0);_firstPlayer_ind=
cgallery.find(".items").children(".audioplayer-tobe").length;o.settings_ap.disable_player_navigation=o.disable_player_navigation;if(0===_firstPlayer_ind||1===_firstPlayer_ind)o.design_menu_position="none",o.settings_ap.disable_player_navigation="on";selfGallery.navClass=new ZoomSoundsNav(selfGallery);"top"===o.design_menu_position&&_sliderMain.before(selfGallery.navClass.get_structZoomsoundsNav());"bottom"===o.design_menu_position&&_sliderMain.after(selfGallery.navClass.get_structZoomsoundsNav());
!o.settings_php_handler&&o.settings_ap.settings_php_handler&&(o.settings_php_handler=o.settings_ap.settings_php_handler);if(typeof cgallery.attr("id"))cid=cgallery.attr("id");else{for(_firstPlayer_ind=0;0===$("ag"+_firstPlayer_ind).length;)_firstPlayer_ind++;cid="ag"+_firstPlayer_ind;cgallery.attr("id",cid)}_sliderClipper=cgallery.find(".slider-clipper").eq(0);_navMain=cgallery.find(".nav-main").eq(0);_navClipper=cgallery.find(".nav-clipper").eq(0);cgallery.children(".extra-html").length&&cgallery.append(cgallery.children(".extra-html"));
"mode-showall"===o.settings_mode&&_sliderClipper.addClass("layout-"+o.mode_showall_layout);selfGallery.navClass.set_elements(_navMain,_navClipper,cgallery);reinit();selfGallery.navClass.init_ready();parse_track_data();!1===_dzsap_helpers.can_history_api()&&(o.settings_enable_linking="off");$(window).on("resize",handleResize);handleResize();setTimeout(handleResize,1E3);cgallery.get(0).api_skin_redlights_give_controls_right_to_all=function $cgallery$get$api_skin_redlights_give_controls_right_to_all$(){skin_redlight_give_controls_right_to_all_players=
!0};_dzsap_helpers.get_query_arg(window.location.href,"audiogallery_startitem_"+cid)&&(lastCurrNr=tempNr=Number(_dzsap_helpers.get_query_arg(window.location.href,"audiogallery_startitem_"+cid)),Number(_dzsap_helpers.get_query_arg(window.location.href,"audiogallery_startitem_"+cid))&&0<Number(_dzsap_helpers.get_query_arg(window.location.href,"audiogallery_startitem_"+cid))&&"on"==o.force_autoplay_when_coming_from_share_link&&(o.autoplay="on"));"mode-normal"==o.settings_mode&&goto_item(tempNr,{called_from:"init"});
"mode-showall"===o.settings_mode&&(_sliderClipper.children().each(function(){var _t=$(this),ind=_t.parent().children(".audioplayer,.audioplayer-tobe").index(_t);if(_t.hasClass("audioplayer-tobe")){var player_args=Object.assign({},o.settings_ap);player_args.parentgallery=cgallery;player_args.call_from="mode show-all";player_args.action_audio_play=mode_showall_listen_for_play;_t.audioplayer(player_args);ind=String(ind+1);2>ind.length&&(ind="0"+ind);"one-per-row"===o.mode_showall_layout&&"off"!==o.settings_mode_showall_show_number&&
(_t.before('<div class="number-wrapper"><span class="the-number">'+ind+"</span></div>"),_t.after('<div class="clear for-number-wrapper"></div>'))}}),$.fn.isotope&&"one-per-row"!==o.mode_showall_layout&&(_sliderClipper.find(".audioplayer,.audioplayer-tobe").addClass("isotope-item"),setTimeout(function(){_sliderClipper.prepend('<div class="grid-sizer"></div>');_sliderClipper.isotope({itemSelector:".isotope-item",layoutMode:"fitRows",percentPosition:!0,masonry:{columnWidth:".grid-sizer"}});_sliderClipper.addClass("isotoped");
setTimeout(function(){_sliderClipper.isotope("layout")},900)},_constants.OF.PLAYLIST_TRANSITION_DURATION),_sliderClipper.append('<div class="clear"></div>')),skin_redlight_give_controls_right_to_all_players&&_sliderClipper.children(".audioplayer").each(function(){var _t=$(this);!1===_t.find(".ap-controls-right").eq(0).prev().hasClass("controls-right")&&_t.find(".ap-controls-right").eq(0).before('<div class="controls-right"> </div>')}));cgallery.find(".download-after-rate").on("click",click_downloadAfterRate);
cgallery.get(0).api_regenerate_sync_players_with_this_playlist=regenerate_sync_players_with_this_playlist;cgallery.get(0).api_goto_next=goto_next;cgallery.get(0).api_goto_prev=goto_prev;cgallery.get(0).api_goto_item=goto_item;cgallery.get(0).api_gallery_handle_end=handlePlaylistSongEnd;cgallery.get(0).api_toggle_menu_state=toggle_menu_state;cgallery.get(0).api_handleResize=handleResize;cgallery.get(0).api_player_commentSubmitted=player_commentSubmitted;cgallery.get(0).api_player_rateSubmitted=player_rateSubmitted;
cgallery.get(0).api_reinit=reinit;cgallery.get(0).api_play_curr_media=play_curr_media;cgallery.get(0).api_get_nr_children=get_nr_children;cgallery.get(0).api_init_player_from_gallery=init_player_from_gallery;cgallery.get(0).api_filter=filterPlayersInPlaylist;cgallery.get(0).api_destroy=destroy_gallery;cgallery.get(0).SelfPlaylist=selfGallery;setInterval(calculate_on_interval,1E3);setTimeout(init_loaded,700);"on"==o.enable_easing&&handle_frame();cgallery.addClass("dzsag-inited");cgallery.addClass("transition-"+
o.playlistTransition);cgallery.addClass("playlist-transition-"+o.playlistTransition)})()};window.dzsap_init_allGalleries=function $window$dzsap_init_allGalleries$($){$(".audiogallery.auto-init").each(function(){var $currGallery=$(this);$currGallery.hasClass("dzsag-inited")||window.dzsag_init&&dzsag_init($currGallery)})};var registerToJquery=function $registerToJquery$($){$.fn.audiogallery=function $$$fn$audiogallery$(argOptions){var finalOptions={},defaultOptions=Object.assign({},default_opts);finalOptions=
_dzsap_helpers.convertPluginOptionsToFinalOptions(this,defaultOptions,argOptions);this.each(function(){this.linkedClassInstance=new DzsApPlaylist(this,finalOptions,$)})};window.dzsag_init=function $window$dzsag_init$(selector,settings){$(selector).audiogallery(Object.assign({},settings))}};window.dzsap_moving_playlist_item=!1;window.dzsap_playlist_con=null;window.dzsap_playlist_item_moving=null;window.dzsap_playlist_item_target=null;var DzsapInnerPlaylist=function $DzsapInnerPlaylist$(dzsapClass){this.dzsapClass=
dzsapClass;this.$playlistInner=null};DzsapInnerPlaylist.prototype.init=function $DzsapInnerPlaylist$$init$(){function handle_mouse(_con$jscomp$2_e){var $t=jQuery(this);if("click"===_con$jscomp$2_e.type&&$t.hasClass("playlist-menu-item")){var ind=$t.parent().children().index($t);thisClass.playlistInner_gotoItem(ind,{call_from:"handle_mouse"})}"mousedown"===_con$jscomp$2_e.type&&(_con$jscomp$2_e=$t.parent(),_con$jscomp$2_e.parent().append(_con$jscomp$2_e.clone().addClass("cloner")),$t=_con$jscomp$2_e.parent().children(".cloner").eq(0),
dzsap_playlist_con=_con$jscomp$2_e.parent(),dzsap_moving_playlist_item=!0,dzsap_playlist_item_target=_con$jscomp$2_e,dzsap_playlist_item_moving=$t,_con$jscomp$2_e.addClass("target-playlist-item"))}var selfClass=this.dzsapClass,thisClass=this;selfClass._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> '+_dzsap_svgs.zq+'    </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>');
thisClass.$playlistInner=selfClass.cthis.find(".playlist-tooltip");selfClass.cthis.on("mousedown",".the-sort-handle",handle_mouse);selfClass.cthis.on("click",".playlist-menu-item",handle_mouse);setTimeout(function(){thisClass.playlistInner_setupStructureInPlayer()},100)};DzsapInnerPlaylist.prototype.playlistInner_setupStructureInPlayer=function $DzsapInnerPlaylist$$playlistInner_setupStructureInPlayer$(_c$jscomp$6_pargs){var $=jQuery,margs={call_from:"default"};_c$jscomp$6_pargs&&(margs=$.extend(margs,
_c$jscomp$6_pargs));if(this.$playlistInner){window.dzsap_syncList_players.length?this.$playlistInner.parent().removeClass("is-empty"):this.$playlistInner.parent().addClass("is-empty");this.$playlistInner.find(".dzstooltip--inner").html("");var stringPlaylistMenuItems="",keySyncPlayer;for(keySyncPlayer in window.dzsap_syncList_players)_c$jscomp$6_pargs=window.dzsap_syncList_players[keySyncPlayer],_c$jscomp$6_pargs.hasClass("number-wrapper")||_c$jscomp$6_pargs.hasClass("for-number-wrapper")||(stringPlaylistMenuItems+=
'<div class="playlist-menu-item"',$.each(_c$jscomp$6_pargs.get(0).attributes,function(){this.specified&&this.name&&"id"!==this.name&&"style"!==this.name&&(stringPlaylistMenuItems+=" "+this.name+"='"+this.value+"'")}),stringPlaylistMenuItems+=">",_c$jscomp$6_pargs.attr("data-thumb")&&(stringPlaylistMenuItems+='<div class="pi-thumb-con">',stringPlaylistMenuItems+='<div class="pi-thumb divimage" style="background-image: url('+_c$jscomp$6_pargs.attr("data-thumb")+')">',stringPlaylistMenuItems+="</div>",
stringPlaylistMenuItems+="</div>"),stringPlaylistMenuItems+='<div class="pi-meta-con">',stringPlaylistMenuItems+='<div class="pi-the-artist">',stringPlaylistMenuItems+=_c$jscomp$6_pargs.find(".the-artist").eq(0).text(),stringPlaylistMenuItems+="</div>",stringPlaylistMenuItems+='<div class="pi-the-name">',stringPlaylistMenuItems+=_c$jscomp$6_pargs.find(".the-name").eq(0).text(),stringPlaylistMenuItems+="</div>",stringPlaylistMenuItems+="</div>",stringPlaylistMenuItems+='<div class="the-sort-handle">',
stringPlaylistMenuItems+="&#x2195;",stringPlaylistMenuItems+="</div>",stringPlaylistMenuItems+="</div>");this.$playlistInner.find(".dzstooltip--inner").append(stringPlaylistMenuItems);$(document).on("mousemove.dzsap_playlist_item",function(e){if(window.dzsap_moving_playlist_item){var my=e.clientY;my-=dzsap_playlist_con.offset().top;dzsap_playlist_item_moving.css("top",my-20);dzsap_playlist_item_target.parent().children(':not(".target-playlist-item"):not(".cloner")').each(function(){var _t=$(this),
tmy=_t.offset().top-dzsap_playlist_con.offset().top;my>tmy&&_t.after(dzsap_playlist_item_target)});50>my&&dzsap_playlist_item_target.parent().prepend(dzsap_playlist_item_target)}});$(document).on("mouseup.dzsap_playlist_item",function(e){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?")};DzsapInnerPlaylist.prototype.player_determineSyncPlayersIndex=function $DzsapInnerPlaylist$$player_determineSyncPlayersIndex$(selfClass,$targetPlayer){if(this.$playlistInner){var _cach=this.$playlistInner.children(".dzstooltip--inner").eq(0);_cach.children().removeClass("current-playlist-item");_cach.children().each(function(){var _t=jQuery(this);_t.attr("data-playerid")===$targetPlayer.attr("data-playerid")&&
(_t.addClass("current-playlist-item"),selfClass.playlist_inner_currNr=_t.parent().children().index(_t))})}};DzsapInnerPlaylist.prototype.playlistInner_gotoItem=function $DzsapInnerPlaylist$$playlistInner_gotoItem$(arg,$targetPlayer$jscomp$2__cach_con_pargs){var $=jQuery,selfClass=this.dzsapClass,margs={call_from:"default"};$targetPlayer$jscomp$2__cach_con_pargs&&$.extend(margs,$targetPlayer$jscomp$2__cach_con_pargs);this.$playlistInner&&($targetPlayer$jscomp$2__cach_con_pargs=this.$playlistInner.find(".dzstooltip--inner"),
margs=$targetPlayer$jscomp$2__cach_con_pargs.children().eq(arg).attr("data-playerid"),$targetPlayer$jscomp$2__cach_con_pargs=$('.audioplayer[data-playerid="'+margs+'"],.audioplayer-tobe[data-playerid="'+margs+'"]'),margs&&$targetPlayer$jscomp$2__cach_con_pargs.length&&$targetPlayer$jscomp$2__cach_con_pargs.eq(0).get(0)&&$targetPlayer$jscomp$2__cach_con_pargs.eq(0).get(0).api_play_media?$('.audioplayer[data-playerid="'+margs+'"]').eq(0).get(0).api_play_media({called_from:"api_sync_players_prev"}):
$targetPlayer$jscomp$2__cach_con_pargs.parent().parent().parent().hasClass("audiogallery")?$targetPlayer$jscomp$2__cach_con_pargs.parent().parent().parent().get(0).api_goto_item(arg):($=$(".dzsap_footer"),$.length&&$.get(0).api_change_media&&$.get(0).api_change_media($targetPlayer$jscomp$2__cach_con_pargs)),selfClass.playlist_inner_currNr=arg)};var setup_structure=function $setup_structure$(selfClass,next_btn_str_pargs){var $=jQuery,o=selfClass.initOptions,margs={setup_inner_player:!0,setup_media:!0,
setup_otherstructure:!0,call_from:"default"};next_btn_str_pargs&&(margs=$.extend(margs,next_btn_str_pargs));"reconstruct"===margs.call_from&&(selfClass._metaArtistCon=null,selfClass.cthis.hasClass("skin-wave")&&(o.design_skin="skin-wave"),selfClass.cthis.hasClass("skin-silver")&&(o.design_skin="skin-silver"));next_btn_str_pargs='<div class="ap-controls';"skin-default"===o.design_skin&&(next_btn_str_pargs+=" dzsap-color_inverse_ui_fill");next_btn_str_pargs+='"></div>';margs.setup_inner_player&&(selfClass.cthis.appendOnce('<div class="audioplayer-inner"></div>'),
selfClass._audioplayerInner=selfClass.cthis.children(".audioplayer-inner"));if(!margs.setup_otherstructure)return!1;selfClass.cthis.attr("data-wrapper-image")&&setup_structure__setup_wrapper_image(selfClass);var aux_str_con_controls="",aux_str_time="";var auxs_structure_str_scrubbar='<div class="scrubbar"><div class="scrub-bg"></div><div class="scrub-buffer"></div><div class="scrub-prog';"wave"!==o.scrubbar_type&&(auxs_structure_str_scrubbar+=" dzsap-color_brand_bg");auxs_structure_str_scrubbar+=
'"></div><div class="scrubBox"></div><div class="scrubBox-prog"></div><div class="scrubBox-hover"></div>';aux_str_time='<div class="total-time">00:00</div><div class="curr-time">00:00</div>';selfClass.sample_perc_start&&(auxs_structure_str_scrubbar+='<div class="sample-block-start" style="width: '+100*selfClass.sample_perc_start+'%"></div>');selfClass.sample_perc_end&&(auxs_structure_str_scrubbar+='<div class="sample-block-end" style="left: '+100*selfClass.sample_perc_end+"%; width: "+(100-100*selfClass.sample_perc_end)+
'%"></div>');auxs_structure_str_scrubbar+="</div>";o.controls_external_scrubbar&&(auxs_structure_str_scrubbar="");var struct_con_playpause=""+structure_generatePlayPauseString(selfClass);aux_str_con_controls+='<div class="con-controls"><div class="the-bg"></div>'+struct_con_playpause;selfClass.extraHtmlAreas.controlsLeft&&(aux_str_con_controls+=selfClass.extraHtmlAreas.controlsLeft);"skin-pro"===o.design_skin&&(aux_str_con_controls+='<div class="con-controls--right"></div>');var aux_str_con_volume_playbtnSvg=
'<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"===o.disable_volume&&(aux_str_con_volume_playbtnSvg="");if("skin-default"===o.design_skin||"skin-wave"===o.design_skin)aux_str_con_controls+='<div class="ap-controls-right">',"on"!==o.disable_volume&&(aux_str_con_controls+='<div class="controls-volume"><div class="volumeicon"></div><div class="volume_static"></div><div class="volume_active"></div><div class="volume_cut"></div></div>'),
aux_str_con_controls+="</div>";aux_str_con_controls+="</div>";if("skin-wave"===o.design_skin&&"small"===selfClass.skinwave_mode)aux_str_con_controls='<div class="the-bg"></div><div class="ap-controls-left">'+struct_con_playpause+"</div>"+auxs_structure_str_scrubbar+'<div class="ap-controls-right">'+aux_str_con_volume_playbtnSvg+'<div class="extrahtml-in-float-right for-skin-wave-small">'+selfClass.extraHtmlAreas.controlsRight+"</div></div>";else if("skin-aria"===o.design_skin||"skin-silver"===o.design_skin||
"skin-redlights"===o.design_skin||"skin-steel"===o.design_skin){aux_str_con_volume_playbtnSvg=_dzsap_svgs.Z1;var pausebtnSvg=_dzsap_svgs.IM;"skin-steel"===o.design_skin&&(pausebtnSvg=aux_str_con_volume_playbtnSvg="");aux_str_con_controls='<div class="the-bg"></div><div class="ap-controls-left">';"skin-silver"===o.design_skin?aux_str_con_controls+=struct_con_playpause:(aux_str_con_controls+='<div class="con-playpause',"on"===selfClass.keyboard_controls.show_tooltips&&(aux_str_con_controls+=" dzstooltip-con"),
aux_str_con_controls+='">',"on"===selfClass.keyboard_controls.show_tooltips&&(aux_str_con_controls+=_dzsap_helpers.dzsap_generate_keyboard_tooltip(selfClass.keyboard_controls,"pause_play")),aux_str_con_controls=aux_str_con_controls+('<div class="playbtn player-but playbtn-not-skin-silver"><div class="dzsap-play-icon">'+aux_str_con_volume_playbtnSvg+'</div></div><div class="pausebtn player-but" ><div class="pause-icon">')+(pausebtnSvg+"</div></div></div>"));addExtraHtmlInPlace(selfClass,".feed-dzsap-after-playpause",
struct_con_playpause);aux_str_con_controls+="</div>";selfClass.extraHtmlAreas.controlsRight&&(aux_str_con_controls+='<div class="controls-right">'+selfClass.extraHtmlAreas.controlsRight+"</div>","skin-redlights"===o.design_skin&&o.parentgallery&&o.parentgallery.get(0).api_skin_redlights_give_controls_right_to_all&&o.parentgallery.get(0).api_skin_redlights_give_controls_right_to_all());aux_str_con_controls+='<div class="ap-controls-right">';"skin-silver"===o.design_skin?aux_str_con_controls=aux_str_con_controls+
'<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>'+auxs_structure_str_scrubbar:("skin-redlights"===o.design_skin&&"on"!=o.disable_volume&&(aux_str_con_controls+='<div class="controls-volume"><div class="volumeicon"></div><div class="volume_static"></div><div class="volume_active"></div><div class="volume_cut"></div></div>'),
aux_str_con_controls+=auxs_structure_str_scrubbar,"on"!=o.disable_timer&&(aux_str_con_controls+='<div class="total-time">00:00</div>'));"skin-silver"!==o.design_skin&&(aux_str_con_controls+="</div>")}margs.setup_media&&(selfClass._audioplayerInner.append('<div class="the-media"></div>'),selfClass.$theMedia=selfClass._audioplayerInner.children(".the-media").eq(0));"skin-customcontrols"!==o.design_skin&&selfClass._audioplayerInner.append(next_btn_str_pargs);selfClass._apControls=selfClass._audioplayerInner.children(".ap-controls").eq(0);
selfClass._apControls.append(aux_str_con_controls);selfClass.cthis.hasClass("skin-wave-mode-alternate")?0===selfClass.cthis.find(".scrubbar").length&&selfClass._apControls.append(auxs_structure_str_scrubbar):0===selfClass.cthis.find(".scrubbar").length&&selfClass._apControls.prepend(auxs_structure_str_scrubbar);selfClass._apControlsRight=null;0<selfClass._apControls.find(".ap-controls-right").length&&(selfClass._apControlsRight=selfClass.cthis.find(".ap-controls-right"));0<selfClass._apControls.find(".ap-controls-left").length&&
(selfClass._apControlsLeft=selfClass._apControls.find(".ap-controls-left").eq(0));"skin-pro"===o.design_skin&&(selfClass._apControlsRight=selfClass.cthis.find(".con-controls--right").eq(0));addExtraHtmlInPlace(selfClass,".feed-dzsap--custom-controls",null,selfClass._audioplayerInner);addExtraHtmlInPlace(selfClass,".feed-dzsap-after-con-controls",null,selfClass._apControls);selfClass._scrubbar=o.controls_external_scrubbar?$(o.controls_external_scrubbar).children(".scrubbar").eq(0):selfClass._apControls.find(".scrubbar").eq(0);
selfClass.$$scrubbProg=selfClass._scrubbar.find(".scrub-prog").get(0);selfClass.$conControls=selfClass._apControls.children(".con-controls");selfClass.$conPlayPause=selfClass.cthis.find(".con-playpause").eq(0);selfClass._conPlayPauseCon=selfClass.cthis.find(".con-playpause-con").eq(0);selfClass.$controlsVolume=selfClass.cthis.find(".controls-volume").eq(0);player_constructArtistAndSongCon.bind(selfClass)(margs);selfClass._scrubbar.addClass("scrubbar-inited");"wave"===o.scrubbar_type&&"on"!=o.disable_timer&&
""===o.controls_external_scrubbar&&selfClass._scrubbar.append(aux_str_time);"skin-wave"!=o.design_skin&&"on"!=o.disable_timer&&selfClass._apControls.append(aux_str_time);"on"!=o.disable_timer&&(selfClass.$currTime=selfClass.cthis.find(".curr-time").eq(0),selfClass.$totalTime=selfClass.cthis.find(".total-time").eq(0),"skin-steel"===o.design_skin&&0===selfClass.$currTime.length&&(selfClass.$totalTime.before('<div class="curr-time">00:00</div> <span class="separator-slash">/</span> '),selfClass.$currTime=
selfClass.$totalTime.prev().prev()));0<Number(o.sample_time_total)&&(selfClass.timeTotal=Number(o.sample_time_total),selfClass.$totalTime&&selfClass.$totalTime.html(_dzsap_helpers.formatTime(selfClass.time_total_for_visual)));selfClass.setupStructure_thumbnailCon();"skin-wave"===o.design_skin&&o.parentgallery&&"undefined"!=typeof o.parentgallery&&"on"===o.design_menu_show_player_state_button&&("skin-wave"===o.design_skin?selfClass._apControlsRight&&selfClass._apControlsRight.appendOnce('<div class="btn-menu-state player-but"> <div class="the-icon-bg"></div> '+
_dzsap_svgs._r+"    </div></div>"):selfClass._audioplayerInner.appendOnce('<div class="btn-menu-state"></div>'));"on"===o.skinwave_place_metaartist_after_volume&&selfClass.$controlsVolume.before(selfClass._metaArtistCon);"on"===o.skinwave_place_thumb_after_volume&&selfClass.$controlsVolume.before(selfClass.cthis.find(".the-thumb-con"));"skin-wave"===o.design_skin&&(selfClass.setup_structure_scrub(),"on"===o.skinwave_timer_static&&(selfClass.$currTime&&selfClass.$currTime.addClass("static"),selfClass.$totalTime&&
selfClass.$totalTime.addClass("static")),selfClass._apControls.css({}),"canvas"===o.skinwave_wave_mode&&setTimeout(function(){selfClass.cthis.addClass("scrubbar-loaded");selfClass._scrubbar.parent().addClass("scrubbar-loaded")},700));selfClass.check_multisharer();selfClass.cthis.hasClass("skin-minimal")&&(selfClass.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 dzsap-color_brand_bg"></div><div class="skin-minimal-bg skin-minimal--inner-bg"></div><div class="skin-minimal-bg skin-minimal--inner-inner-bg dzsap-color_brand_bg"></div>'),
selfClass.cthis.find(".the-bg").append('<canvas width="100" height="100" class="playbtn-canvas"/>'),selfClass.skin_minimal_canvasplay=selfClass.cthis.find(".playbtn-canvas").eq(0).get(0),selfClass.$conPlayPause&&(selfClass.$conPlayPause.children(".playbtn").append(_dzsap_svgs.Z1),selfClass.$conPlayPause.children(".pausebtn").append(_dzsap_svgs.IM)),setTimeout(function(){selfClass.isCanvasFirstDrawn=!1},200));selfClass.cthis.hasClass("skin-minion")&&0<selfClass.cthis.find(".menu-description").length&&
(selfClass.$conPlayPause.addClass("with-tooltip"),selfClass.$conPlayPause.prepend('<span class="dzstooltip" style="left:-7px;">'+selfClass.cthis.find(".menu-description").html()+"</span>"),selfClass.$conPlayPause.children("span").eq(0).css("width",selfClass.$conPlayPause.children("span").eq(0).textWidth()+10));"default"===o.player_navigation&&(o.parentgallery&&(o.player_navigation="on"),o.parentgallery&&o.parentgallery.hasClass("mode-showall")&&(o.player_navigation="off"));"on"===o.disable_player_navigation&&
(o.player_navigation="off");"default"===o.player_navigation&&(o.player_navigation="off");"on"===o.player_navigation&&($='<div class="prev-btn player-but"><div class="the-icon-bg"></div>'+_dzsap_svgs.mH+" </div>",next_btn_str_pargs='<div class="next-btn player-but"><div class="the-icon-bg"></div>'+_dzsap_svgs.Ap+"  </div>",auxs_structure_str_scrubbar=$+next_btn_str_pargs,"skin-wave"===o.design_skin&&"small"===selfClass.skinwave_mode||"skin-aria"===o.design_skin?(selfClass.$conPlayPause.before($),selfClass.$conPlayPause.after(next_btn_str_pargs)):
"skin-wave"===o.design_skin?"on"===o.player_navigation&&(selfClass._conPlayPauseCon.prependOnce($,".prev-btn"),selfClass._conPlayPauseCon.appendOnce(next_btn_str_pargs,".next-btn")):"skin-steel"===o.design_skin?(selfClass._apControlsLeft.prependOnce($,".prev-btn"),0<selfClass._apControlsLeft.children(".the-thumb-con").length?0<selfClass._apControlsLeft.children(".the-thumb-con").eq(0).length&&!1===selfClass._apControlsLeft.children(".the-thumb-con").eq(0).prev().hasClass("next-btn")&&selfClass._apControlsLeft.children(".the-thumb-con").eq(0).before(next_btn_str_pargs):
selfClass._apControlsLeft.appendOnce(next_btn_str_pargs,".next-btn")):selfClass._audioplayerInner.appendOnce(auxs_structure_str_scrubbar,".prev-btn"));selfClass.cthis.hasClass("skinvariation-wave-bigtitles")&&selfClass.cthis.find(".controls-volume").length&&0===selfClass._metaArtistCon.find(".controls-volume").length&&(selfClass._metaArtistCon.append("<br>"),selfClass._metaArtistCon.append(selfClass.cthis.find(".controls-volume")));selfClass.cthis.hasClass("skinvariation-wave-righter")&&(selfClass._apControls.appendOnce('<div class="playbuttons-con"></div>'),
selfClass.cthis.find(".playbuttons-con").eq(0).append(selfClass.cthis.find(".con-playpause-con")));"skin-pro"===o.design_skin&&(selfClass._apControlsRight.append(selfClass.$currTime),selfClass._apControlsRight.append(selfClass.$totalTime));"skin-silver"===o.design_skin&&(selfClass._scrubbar.after(selfClass._apControlsRight),selfClass._apControlsLeft.prepend(selfClass._metaArtistCon),selfClass._apControlsLeft.append(selfClass.$currTime),selfClass._apControlsRight.append(selfClass.$totalTime));"skin-redlights"===
o.design_skin&&(selfClass._apControlsRight.append('<div class="ap-controls-right--top"></div>'),selfClass._apControlsRight.append('<div class="ap-controls-right--bottom"></div>'),selfClass._apControlsRight.find(".ap-controls-right--top").append(selfClass._apControlsRight.find(".meta-artist-con")),selfClass._apControlsRight.find(".ap-controls-right--top").append(selfClass._apControlsRight.find(".controls-volume")),selfClass._apControlsRight.find(".ap-controls-right--bottom").append(selfClass._apControlsRight.find(".scrubbar")));
"reconstruct"===margs.call_from&&selfClass.cthis.hasClass("skin-silver")&&selfClass._apControlsLeft.append(selfClass.cthis.find(".con-playpause"));selfClass.isMultiSharer&&selfClass.check_multisharer();selfClass.setup_structure_sanitizers();setup_structure_extras(selfClass,o);selfClass.cthis.addClass("structure-setuped");selfClass.extraHtmlAreas.afterArtist&&selfClass._metaArtistCon.find(".the-artist").append(selfClass.extraHtmlAreas.afterArtist);""!==selfClass.extraHtmlAreas.bottom&&selfClass.cthis.append('<div class="extra-html">'+
selfClass.extraHtmlAreas.bottom+"</div>");margs="";-1<String(selfClass.extraHtmlAreas.controlsRight).indexOf("dzsap-multisharer-but")&&(selfClass.isMultiSharer=!0);if("skin-wave"!==o.design_skin||"small"!==selfClass.skinwave_mode)margs+='<div class="extrahtml-in-float-right from-setup_structure from-js-setup_structure">'+selfClass.extraHtmlAreas.controlsRight+"</div>";margs&&("skin-wave"!==o.design_skin&&"skin-default"!==o.design_skin||selfClass.cthis.find(".ap-controls-right").eq(0).append(margs),
"skin-pro"===o.design_skin&&selfClass.cthis.find(".con-controls--right").eq(0).append(margs))},defaultPlayerOptions={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_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",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",sampleTimesMode:"realPrevivew",mobile_delete:"off",footer_btn_playlist:"off",mobile_disable_fakeplayer:"off",skinwave_comments_displayontime:"on",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_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:"",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",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",controls_external_scrubbar:"",parentgallery:null,scrubbar_type:"auto",scrubbar_type_wave__has_reveal_animation:"off",settings_php_handler:""},dzsap_oneTimeSetups=function $dzsap_oneTimeSetups$(){window.dzsap_generate_list_for_sync_players=
function $window$dzsap_generate_list_for_sync_players$(pargs){var $=jQuery,margs={force_regenerate:!1};pargs&&(margs=$.extend(margs,pargs));window.dzsap_syncList_players=[];("on"===window.dzsap_settings.syncPlayers_buildList||margs.force_regenerate)&&jQuery(".audioplayer,.audioplayer-tobe").each(function(){var _t2=jQuery(this);"on"!==_t2.attr("data-do-not-include-in-list")&&("fake"!==_t2.attr("data-type")||_t2.attr("data-fakeplayer"))&&window.dzsap_syncList_players.push(_t2)})};jQuery(document).off("click.dzsap_global");
jQuery(document).on("click.dzsap_global",".dzsap-btn-info",function(){var _t=jQuery(this);_t.hasClass("dzsap-btn-info")&&_t.find(".dzstooltip").toggleClass("active")});jQuery(document).on("mouseover.dzsap_global",".dzsap-btn-info",function(){var _t=jQuery(this);_t.hasClass("dzsap-btn-info")&&(500>window.innerWidth?_t.offset().left<window.innerWidth/2&&_t.find(".dzstooltip").removeClass("talign-end").addClass("talign-start"):_t.find(".dzstooltip").addClass("talign-end").removeClass("talign-start"))})},
_player_keyboard=__webpack_require__(603);window.dzsap_list=[];var dzsap_globalidind=20;window.loading_multi_sharer=!1;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_syncList_players=[];window.dzsap_syncList_index=0;window.dzsap_base_url="";window.dzsap_player_index=0;var DzsAudioPlayer=
function $DzsAudioPlayer$(argThis,argOptions,$){this.argThis=argThis;this.argOptions=Object.assign({},argOptions);this.$=$;this.cthis=null;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=null;this.playFrom="";this.$reflectionVisualObject=this.$embedButton=this.$commentsSelector=this.$commentsChildren=this.$commentsWritter=this.$totalTime=this.$parentPlaylist=
this.$currTime=this.$controlsVolume=this.$$scrubbProg=this.$conControls=this.$conPlayPause=this.$theMedia=this.$realVisualPlayer=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=this._actualPlayer=null;this.audioType="normal";this.audioTypeSelfHosted_streamType="";
this.skinwave_mode="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.hasInitialPcmData=this.isMultiSharer=!1;this.last_lastArray=this.lastArray=null;this.player_playing=!1;this.actualDataTypeOfMedia="audio";this.lastTimeInSeconds=this.youtube_retryPlayTimeout=0;this.isStickyPlayer=!1;this.$stickToBottomContainer=
null;this.identifier_pcm=this.uniqueId="";this.isPlayerLoaded=this.isCanvasFirstDrawn=this.isPlayPromised=this.isPcmTryingToGenerate=this.isAlreadyHasRealPcm=!1;this.original_real_mp3="";this.classFunctionalityInnerPlaylist=this.skin_minimal_canvasplay=null;this.feedEmbedCode="";this.youtube_currentId=0;this.youtube_isInited=!1;this.extraHtmlAreas={bottom:"",afterArtist:"",controlsLeft:"",controlsRight:""};this.timeCurrent=this.playlist_inner_currNr=this.sample_time_total=this.sample_time_end=this.sample_time_start=
0;this.timeModel=new PlayerTime(this);this.radio_isGoingToUpdateArtistName=this.radio_isGoingToUpdateSongName=this.isPcmRequiredToGenerate=this.isSentCacheTotalTime=this.isSetupedMedia=this.isMediaEnded=this.isSafeToChangeTrack=this.isSample=!1;this.mediaProtectionStatus="unprotected";this.classMetaParts=new _ClassMetaParts(this);this.inter_isEnded=0;argThis.SelfInstance=this;this.classInit()};DzsAudioPlayer.prototype.set_sourcePlayer=function $DzsAudioPlayer$$set_sourcePlayer$($arg){$arg?$arg.get(0)!=
this.cthis.get(0)&&(this._sourcePlayer=$arg):this._sourcePlayer=$arg};DzsAudioPlayer.prototype.reinit_beforeChangeMedia=function $DzsAudioPlayer$$reinit_beforeChangeMedia$(){this.isAlreadyHasRealPcm=this.isPcmRequiredToGenerate=this.hasInitialPcmData=!1;this.cthis.attr("data-pcm","")};DzsAudioPlayer.prototype.reinit_resetMetrics=function $DzsAudioPlayer$$reinit_resetMetrics$(){this.isPlayerLoaded=!1};DzsAudioPlayer.prototype.service_checkIfWeShouldUpdateTotalTime=function $DzsAudioPlayer$$service_checkIfWeShouldUpdateTotalTime$(){this.isSentCacheTotalTime||
((!this.cthis.attr("data-sample_time_total")||this.cthis.attr("data-sample_time_total")&&this.timeModel.getActualTotalTime()&&this.timeModel.getActualTotalTime()!=this.cthis.attr("data-sample_time_total")&&!this.cthis.attr("data-sample_time_end"))&&window.dzsap_settings&&window.dzsap_settings.action_received_time_total&&(this.timeModel.refreshTimes(),window.dzsap_functions[window.dzsap_settings.action_received_time_total](this.timeModel.getActualTotalTime(),this.cthis)),this.isSentCacheTotalTime=
!0)};DzsAudioPlayer.prototype.classInit=function $DzsAudioPlayer$$classInit$(){function calculate_dims_time(){var reflection_size=parseFloat(o.skinwave_wave_mode_canvas_reflection_size);reflection_size=1-reflection_size;var scrubbarh=selfClass._scrubbar.height();"skin-wave"===o.design_skin&&("small"===selfClass.skinwave_mode&&(scrubbarh=60),selfClass._commentsHolder&&(0===reflection_size?selfClass._commentsHolder.css("top",selfClass._scrubbar.offset().top-cthis.offset().top+scrubbarh*reflection_size-
selfClass._commentsHolder.height()):(selfClass._commentsHolder.css("top",selfClass._scrubbar.offset().top-selfClass._scrubbar.parent().offset().top+scrubbarh*reflection_size),selfClass.$commentsWritter.css("top",selfClass._scrubbar.offset().top-selfClass._scrubbar.parent().offset().top+scrubbarh*reflection_size))),selfClass.$currTime&&selfClass.$currTime.css("top",scrubbarh*reflection_size-selfClass.$currTime.outerHeight()),selfClass.$totalTime&&selfClass.$totalTime.css("top",scrubbarh*reflection_size-
selfClass.$totalTime.outerHeight()));cthis.attr("data-reflection-size",reflection_size)}function change_visual_target(arg,pargs){var margs={};pargs&&(margs=$.extend(margs,pargs));selfClass._sourcePlayer&&selfClass._sourcePlayer.get(0)&&selfClass._sourcePlayer.get(0).api_pause_media_visual&&selfClass._sourcePlayer.get(0).api_pause_media_visual({call_from:"change_visual_target"});selfClass.set_sourcePlayer(arg);var $sourcePlayer_=selfClass._sourcePlayer.get(0);selfClass.player_playing&&selfClass._sourcePlayer&&
$sourcePlayer_&&$sourcePlayer_.api_play_media_visual&&$sourcePlayer_.api_play_media_visual();$sourcePlayer_&&$sourcePlayer_.api_draw_curr_time&&($sourcePlayer_.api_set_timeVisualCurrent(selfClass.timeCurrent),$sourcePlayer_.api_get_times({call_from:" change visual target .. in api "}),$sourcePlayer_.api_check_time({fire_only_once:!0}),$sourcePlayer_.api_draw_curr_time(),$sourcePlayer_.api_draw_scrub_prog());setTimeout(function(){$sourcePlayer_&&$sourcePlayer_.api_draw_curr_time&&($sourcePlayer_.api_get_times(),
$sourcePlayer_.api_check_time({fire_only_once:!0}),$sourcePlayer_.api_draw_curr_time(),$sourcePlayer_.api_draw_scrub_prog())},800)}function view_updateColorHighlight(arg){o.design_wave_color_progress=arg;"canvas"===o.skinwave_wave_mode&&view_drawCanvases(selfClass,cthis.attr("data-pcm"),"canvas_change_pcm")}function reinit(){if("normal"===selfClass.audioType||"detect"===selfClass.audioType||"audio"===selfClass.audioType)selfClass.audioType="selfHosted"}function destroy_listeners(){if(isDestroyed)return!1;
isNotRenderingEnterFrame=!0}function handleClickLike(){var _t=$(this);0!==cthis.has(_t).length&&(_t.hasClass("active")?ajax_retract_like.bind(selfClass)():ajax_submit_like.bind(selfClass)())}function destroy_it(){if(isDestroyed)return!1;selfClass.player_playing&&pause_media();$(window).off("resize.dzsap");cthis.remove();cthis=null;isDestroyed=!0}function handleClickForSetupMedia(e$jscomp$39_margs,pargs){e$jscomp$39_margs={do_not_autoplay:!1};pargs&&(e$jscomp$39_margs=$.extend(e$jscomp$39_margs,pargs));
cthis.find(".playbtn").unbind("click",handleClickForSetupMedia);cthis.find(".scrubbar").unbind("click",handleClickForSetupMedia);setup_media(e$jscomp$39_margs);((0,_dzsap_helpers.is_android)()||(0,_dzsap_helpers.is_ios)())&&play_media({called_from:"click_for_setup_media"})}function handleClickMenuState(e){o.parentgallery&&"undefined"!==typeof o.parentgallery.get(0)&&o.parentgallery.get(0).api_toggle_menu_state()}function scrubbar_reveal(){setTimeout(function(){selfClass.cthis.addClass("scrubbar-loaded")},
1E3)}function setupStructure_thumbnailCon(){if(cthis.attr("data-thumb")){cthis.addClass("has-thumb");var aux_thumb_con_str="";aux_thumb_con_str=cthis.attr("data-thumb_link")?aux_thumb_con_str+('<a href="'+cthis.attr("data-thumb_link")+'"'):aux_thumb_con_str+"<div";aux_thumb_con_str+=' class="the-thumb-con"><div class="the-thumb" style=" background-image:url('+cthis.attr("data-thumb")+')"></div>';aux_thumb_con_str=cthis.attr("data-thumb_link")?aux_thumb_con_str+"</a>":aux_thumb_con_str+"</div>";cthis.children(".the-thumb-con").length&&
(aux_thumb_con_str=cthis.children(".the-thumb-con").eq(0));"skin-customcontrols"!==o.design_skin&&("skin-wave"!==o.design_skin||"small"!==selfClass.skinwave_mode&&"alternate"!==selfClass.skinwave_mode?"skin-steel"===o.design_skin?selfClass._apControlsLeft.prepend(aux_thumb_con_str):selfClass._audioplayerInner.prepend(aux_thumb_con_str):"alternate"===selfClass.skinwave_mode?selfClass._audioplayerInner.prepend(aux_thumb_con_str):selfClass._apControlsLeft.prepend(aux_thumb_con_str));selfClass._audioplayerInner.children(".the-thumb-con").eq(0)}else cthis.removeClass("has-thumb")}
function setup_structure_sanitizers(){cthis.hasClass("zoomsounds-wrapper-bg-bellow")&&0===cthis.find(".dzsap-wrapper-buts").length&&(cthis.append('<div class="temp-wrapper"></div>'),cthis.find(".temp-wrapper").append(selfClass.extraHtmlAreas.controlsRight),cthis.find(".temp-wrapper").children("*:not(.dzsap-wrapper-but)").remove(),cthis.find(".temp-wrapper > .dzsap-wrapper-but").unwrap(),cthis.find(".dzsap-wrapper-but").each(function(){var aux=$(this).html();aux=aux.replace("{{heart_svg}}","\t&hearts;");
aux=aux.replace("{{svg_share_icon}}",_dzsap_svgs.a$);$(this).get(0)&&-1<$(this).get(0).outerHTML.indexOf("dzsap-multisharer-but")&&(selfClass.isMultiSharer=!0);$(this).html(aux)}).wrapAll('<div class="dzsap-wrapper-buts"></div>'));"skin-customcontrols"===o.design_skin&&(cthis.html(String(cthis.html()).replace("{{svg_play_icon}}",_dzsap_svgs.Z1)),cthis.html(String(cthis.html()).replace("{{svg_pause_icon}}",_dzsap_svgs.IM)))}function check_multisharer(){selfClass.cthis.find(".dzsap-multisharer-but").data("cthis",
cthis);selfClass.cthis.data("embed_code",selfClass.feedEmbedCode)}function view_wave_setupRandomPcm(default_pcm_pargs){var i3_margs={call_from:"default"};default_pcm_pargs&&$.extend(i3_margs,default_pcm_pargs);default_pcm_pargs=[];if("on"!==o.pcm_data_try_to_generate||"on"!==o.pcm_data_try_to_generate_wait_for_real_pcm){for(i3_margs=0;200>i3_margs;i3_margs++)default_pcm_pargs[i3_margs]=Number(Math.random()).toFixed(2);default_pcm_pargs=JSON.stringify(default_pcm_pargs);cthis.addClass("rnd-pcm-for-now");
cthis.attr("data-pcm",default_pcm_pargs)}(0,_dzsap_helpers.scrubbar_modeWave_setupCanvas)({},selfClass)}function setup_structure_scrub(){"on"!==o.skinwave_enableSpectrum?"canvas"===o.skinwave_wave_mode&&(cthis.attr("data-pcm")?(0,_dzsap_helpers.scrubbar_modeWave_setupCanvas)({},selfClass):view_wave_setupRandomPcm()):((0,_dzsap_helpers.scrubbar_modeWave_setupCanvas)({},selfClass),$scrubBgCanvas=selfClass.cthis.find(".scrub-bg-img").eq(0),$scrubBgCanvas.get(0).getContext("2d"))}function setup_media(pargs$jscomp$16_stringAudioElement_stringAudioTagSource){var setupMediaAttrs=
{do_not_autoplay:!1,called_from:"default",newSource:""};pargs$jscomp$16_stringAudioElement_stringAudioTagSource&&(setupMediaAttrs=$.extend(setupMediaAttrs,pargs$jscomp$16_stringAudioElement_stringAudioTagSource));if("icecast"===selfClass.audioType||"shoutcast"===selfClass.audioType)selfClass.audioType="selfHosted";"off"===o.cueMedia&&"auto"===selfClass.ajax_view_submitted&&(selfClass.increment_views=1,selfClass.ajax_view_submitted="off");if(!selfClass.isPlayerLoaded&&"youtube"!==cthis.attr("data-original-type")){"youtube"===
selfClass.audioType&&dzsap_youtube_setupMedia(selfClass,setupMediaAttrs);setupMediaAttrs.newSource&&(selfClass.data_source=setupMediaAttrs.newSource);(0,_dzsap_helpers.is_ios)()&&(o.preload_method="metadata");pargs$jscomp$16_stringAudioElement_stringAudioTagSource=buildAudioElementHtml(selfClass,selfClass.audioTypeSelfHosted_streamType,"setup_media");stringAudioElementHtml=pargs$jscomp$16_stringAudioElement_stringAudioTagSource.stringAudioElementHtml;pargs$jscomp$16_stringAudioElement_stringAudioTagSource=
pargs$jscomp$16_stringAudioElement_stringAudioTagSource.stringAudioTagSource;if("selfHosted"===selfClass.audioType||"soundcloud"===selfClass.audioType)"change_media"===setupMediaAttrs.called_from||"nonce generated"===setupMediaAttrs.called_from?(0,_dzsap_helpers.is_ios)()||(0,_dzsap_helpers.is_android)()?setupMediaElement(selfClass,stringAudioElementHtml,pargs$jscomp$16_stringAudioElement_stringAudioTagSource):"nonce generated"===setupMediaAttrs.called_from&&selfClass._actualPlayer||setupMediaElement(selfClass,
stringAudioElementHtml):(setupMediaElement(selfClass,stringAudioElementHtml),((0,_dzsap_helpers.is_ios)()||(0,_dzsap_helpers.is_android)())&&"retrieve_soundcloud_url"===setupMediaAttrs.called_from&&setTimeout(function(){pause_media()},500)),selfClass.$mediaNode_&&selfClass.$mediaNode_.addEventListener&&"fake"!==selfClass.cthis.attr("data-source")&&setupMediaListeners(selfClass,setupMediaAttrs,init_loaded,volume_lastVolume,volume_setVolume);selfClass.cthis.addClass("media-setuped");if("change_media"===
setupMediaAttrs.called_from)return!1;if("youtube"!==selfClass.audioType){"fake"===selfClass.cthis.attr("data-source")?((0,_dzsap_helpers.is_ios)()||(0,_dzsap_helpers.is_android)())&&init_loaded(setupMediaAttrs):(0,_dzsap_helpers.is_ios)()?setTimeout(function(){init_loaded(setupMediaAttrs)},1E3):inter_checkReady=setInterval(function(){var pargs=setupMediaAttrs,margs={do_not_autoplay:!1};selfClass._actualPlayer&&(0,_dzsap_helpers.is_ios)()||(pargs&&(margs=$.extend(margs,pargs)),"youtube"===selfClass.audioType?
init_loaded(margs):"undefined"!==typeof selfClass.$mediaNode_&&selfClass.$mediaNode_&&("AUDIO"!==selfClass.$mediaNode_.nodeName||"shoutcast"===o.type?init_loaded(margs):(0,_dzsap_helpers.is_safari)()?1<=selfClass.$mediaNode_.readyState&&(init_loaded(margs),clearInterval(inter_checkReady),o.action_audio_loaded_metadata&&o.action_audio_loaded_metadata(cthis)):2<=selfClass.$mediaNode_.readyState&&(init_loaded(margs),clearInterval(inter_checkReady),o.action_audio_loaded_metadata&&o.action_audio_loaded_metadata(cthis))))},
50);"none"===o.preload_method&&makeMediaPreloadInTheFuture(selfClass);if("skin-customcontrols"===o.design_skin||"skin-customhtml"===o.design_skin)cthis.find(".custom-play-btn,.custom-pause-btn").off("click"),cthis.find(".custom-play-btn,.custom-pause-btn").on("click",handleClick_playPause);o.failsafe_repair_media_element&&repairMediaElement(selfClass,stringAudioElementHtml)}"wave"===o.scrubbar_type&&"on"===o.skinwave_enableSpectrum&&(0,_dzsap_helpers.player_initSpectrumOnUserAction)(selfClass);selfClass.isSetupedMedia=
!0}}function destroy_cmedia(){$(selfClass.$mediaNode_).remove();selfClass.$mediaNode_=null;selfClass.isSetupedMedia=!1;selfClass.isPlayerLoaded=!1}function destroy_media(){pause_media();selfClass.$mediaNode_&&"audio"===o.type&&(selfClass.$mediaNode_.innerHTML="",selfClass.$mediaNode_.load());selfClass.$theMedia&&(selfClass.$theMedia.children().remove(),selfClass.$mediaNode_=null,selfClass.isPlayerLoaded=!1);destroy_cmedia()}function setup_listeners(){if(isListenersSetup)return!1;isListenersSetup=
!0;selfClass._scrubbar.unbind("mousemove");selfClass._scrubbar.unbind("mouseleave");selfClass._scrubbar.unbind("click");selfClass._scrubbar.on("mousemove",handleMouseOnScrubbar);selfClass._scrubbar.on("mouseleave",handleMouseOnScrubbar);selfClass._scrubbar.on("click",handleMouseOnScrubbar);selfClass.$controlsVolume.on("click",".volumeicon",volume_handleClickMuteIcon);selfClass.$controlsVolume.on("mousemove",volume_handleMouse);selfClass.$controlsVolume.on("mousedown",volume_handleMouse);$(document).on("mouseup",
window,volume_handleMouse);if("skin-silver"===o.design_skin)cthis.on("click",".volume-holder",volume_handleMouse);cthis.find(".playbtn").unbind("click");setTimeout(view_handleResize,300);setTimeout(view_handleResize,2E3);0<o.settings_trigger_resize&&setInterval(view_handleResize,o.settings_trigger_resize);cthis.addClass("listeners-setuped");return!1}function volume_getLast(){return volume_lastVolume}function init_loaded(pargs){if(!cthis.hasClass("dzsap-loaded")){var margs={do_not_autoplay:!1,call_from:"init"};
pargs&&(margs=$.extend(margs,pargs));setTimeout(function(){selfClass.isSafeToChangeTrack=!0},5E3);clearInterval(inter_checkReady);clearTimeout(inter_checkReady);setup_listeners();setTimeout(function(){selfClass.$currTime&&0<selfClass.$currTime.outerWidth()&&(currTime_outerWidth=selfClass.$currTime.outerWidth())},1E3);selfClass.isPcmRequiredToGenerate&&scrubModeWave__checkIfWeShouldTryToGetPcm(selfClass,{called_from:"init_loaded()"});"fake"!==selfClass.audioType&&"force_reload_change_media"!==margs.call_from&&
("on"!==o.settings_exclude_from_list&&dzsap_list&&-1===dzsap_list.indexOf(cthis)&&null===selfClass._actualPlayer&&dzsap_list.push(cthis),"on"===o.type_audio_stop_buffer_on_unfocus&&(cthis.data("type_audio_stop_buffer_on_unfocus","on"),cthis.get(0).api_destroy_for_rebuffer=function $cthis$get$api_destroy_for_rebuffer$(){"audio"===o.type&&(selfClass.playFrom=selfClass.$mediaNode_.currentTime);destroy_media();destroyed_for_rebuffer=!0}));"auto"===selfClass.ajax_view_submitted&&setTimeout(function(){"auto"===
selfClass.ajax_view_submitted&&(selfClass.ajax_view_submitted="off")},1E3);selfClass.isPlayerLoaded=!0;"fake"!==selfClass.data_source&&cthis.addClass("dzsap-loaded");"default"===o.default_volume&&(defaultVolume=1);!1===isNaN(Number(o.default_volume))?defaultVolume=Number(o.default_volume):"last"===o.default_volume&&(defaultVolume=null!==localStorage&&selfClass.the_player_id?localStorage.getItem("dzsap_last_volume_"+selfClass.the_player_id)?localStorage.getItem("dzsap_last_volume_"+selfClass.the_player_id):
1:1);o.volume_from_gallery&&(defaultVolume=o.volume_from_gallery);volume_setVolume(defaultVolume,{call_from:"from_init_loaded"});(0,_dzs_helpers.GN)(selfClass.playFrom)&&seek_to(selfClass.playFrom,{call_from:"from_playfrom"});"last"===selfClass.playFrom&&"undefined"!==typeof Storage&&(setTimeout(function(){selfClass.playFrom_ready=!0}),"undefined"!==typeof localStorage["dzsap_"+selfClass.the_player_id+"_lastpos"]&&seek_to(localStorage["dzsap_"+selfClass.the_player_id+"_lastpos"],{call_from:"last_pos"}));
!0!==margs.do_not_autoplay&&"on"===o.autoplay&&"on"===o.cueMedia&&play_media({called_from:"do not autoplay not true ( init_loaded() ) "});selfClass.$mediaNode_&&selfClass.$mediaNode_.duration&&(0,_dzsap_helpers.player_view_addMetaLoaded)(selfClass);reinit();handleEnterFrame({fire_only_once:!1});"off"===o.autoplay&&(isNotRenderingEnterFrame=!0);cthis.addClass("init-loaded");setTimeout(function(){selfClass.timeModel.refreshTimes({call_from:"set timeout 500"});handleEnterFrame({fire_only_once:!0});cthis.find(".wave-download").on("click",
handle_mouse)},500);setTimeout(function(){selfClass.timeModel.refreshTimes({call_from:"set timeout 1000"});handleEnterFrame({fire_only_once:!0})},1E3);0===inter_60_secs_contor&&o.action_video_contor_60secs&&(inter_60_secs_contor=setInterval(count_60secs,3E4))}}function count_60secs(){o.action_video_contor_60secs&&cthis.hasClass("is-playing")&&o.action_video_contor_60secs(cthis,"")}function media_toggleLoop(isGoingToActivate){media_isLoopActive=isGoingToActivate}function handle_mouse(e){var $t=$(this);
if("click"===e.type){$t.hasClass("wave-download")&&ajax_submit_download.bind(selfClass)();$t.hasClass("prev-btn")&&(o.parentgallery&&o.parentgallery.get(0)?o.parentgallery.get(0).api_goto_prev():syncPlayers_gotoPrev());$t.hasClass("next-btn")&&(o.parentgallery&&o.parentgallery.get(0)?o.parentgallery.get(0).api_goto_next():syncPlayers_gotoNext());$t.hasClass("tooltip-indicator--btn-footer-playlist")&&$t.parent().find(".dzstooltip").toggleClass("active");if($t.hasClass("zoomsounds-btn-go-beginning")){var _target=
cthis;selfClass._actualPlayer&&(_target=selfClass._actualPlayer);_target.get(0).api_seek_to_0()}$t.hasClass("zoomsounds-btn-step-backward")&&(_target=cthis,selfClass._actualPlayer&&(_target=selfClass._actualPlayer),_target.get(0).api_step_back());$t.hasClass("zoomsounds-btn-step-forward")&&(_target=cthis,selfClass._actualPlayer&&(_target=selfClass._actualPlayer),_target.get(0).api_step_forward());$t.hasClass("zoomsounds-btn-slow-playback")&&(_target=cthis,selfClass._actualPlayer&&(_target=selfClass._actualPlayer),
_target.get(0).api_playback_slow());$t.hasClass("zoomsounds-btn-reset")&&(_target=cthis,selfClass._actualPlayer&&(_target=selfClass._actualPlayer),_target.get(0).api_playback_reset());$t.hasClass("btn-zoomsounds-download")&&ajax_submit_download.bind(selfClass)();$t.hasClass("dzsap-repeat-button")&&seek_to(0,{call_from:"repeat"});$t.hasClass("dzsap-loop-button")&&($t.hasClass("active")?($t.removeClass("active"),media_isLoopActive=!1):($t.addClass("active"),media_isLoopActive=!0))}"mouseenter"===e.type&&
("on"===o.preview_on_hover&&(seek_to_perc(0),play_media({called_from:"preview_on_hover"})),window.dzsap_mouseover=!0);"mouseleave"===e.type&&("on"===o.preview_on_hover&&(seek_to_perc(0),pause_media()),window.dzsap_mouseover=!1)}function view_drawCurrentTime(){var currentTime=selfClass.timeModel.getVisualCurrentTime(),totalTime=selfClass.timeModel.getVisualTotalTime();if("wave"===selfClass.initOptions.scrubbar_type){if("on"===selfClass.initOptions.skinwave_enableSpectrum){if(!selfClass.player_playing)return!1;
$scrubBgCanvas&&(canvasWidth=$scrubBgCanvas.width(),canh=$scrubBgCanvas.height(),$scrubBgCanvas.get(0).width=canvasWidth,$scrubBgCanvas.get(0).height=canh);"soundcloud"===selfClass.initOptions.type?selfClass.lastArray=(0,_dzsap_helpers.generateFakeArrayForPcm)():selfClass.spectrum_analyser&&(selfClass.lastArray=new Uint8Array(selfClass.spectrum_analyser.frequencyBinCount),selfClass.spectrum_analyser.getByteFrequencyData(selfClass.lastArray));if(selfClass.lastArray&&selfClass.lastArray.length){for(var i3$jscomp$inline_42_len=
selfClass.lastArray.length,i=i3$jscomp$inline_42_len-1;0<=i;i--)selfClass.lastArray[i]=i<i3$jscomp$inline_42_len/2?selfClass.lastArray[i]/255*canh:selfClass.lastArray[i3$jscomp$inline_42_len-i]/255*canh;if(selfClass.last_lastarray)for(i3$jscomp$inline_42_len=0;i3$jscomp$inline_42_len<selfClass.last_lastarray.length;i3$jscomp$inline_42_len++)begin_viy=selfClass.last_lastarray[i3$jscomp$inline_42_len],change_viy=selfClass.lastArray[i3$jscomp$inline_42_len]-begin_viy,duration_viy=3,selfClass.lastArray[i3$jscomp$inline_42_len]=
Math.easeIn(1,begin_viy,change_viy,duration_viy);draw_canvas($scrubBgCanvas.get(0),selfClass.lastArray,""+selfClass.initOptions.design_wave_color_bg,{call_from:"spectrum",selfClass:selfClass,skinwave_wave_mode_canvas_waves_number:parseInt(selfClass.initOptions.skinwave_wave_mode_canvas_waves_number),skinwave_wave_mode_canvas_waves_padding:parseInt(selfClass.initOptions.skinwave_wave_mode_canvas_waves_padding)});selfClass.lastArray&&(selfClass.last_lastarray=selfClass.lastArray.slice())}}if(selfClass.$currTime&&
selfClass.$currTime.length&&"on"!==selfClass.initOptions.skinwave_timer_static){0>scrubbarProgX&&(scrubbarProgX=0);scrubbarProgX=parseInt(scrubbarProgX,10);if(2>scrubbarProgX&&cthis.data("promise-to-play-footer-player-from"))return!1;selfClass.$currTime.css({left:scrubbarProgX});scrubbarProgX>scrubbarWidth-currTime_outerWidth&&selfClass.$currTime.css({left:scrubbarWidth-currTime_outerWidth});scrubbarProgX>scrubbarWidth-30&&scrubbarWidth?selfClass.$totalTime.css({opacity:1-(scrubbarProgX-(scrubbarWidth-
30))/30}):"1"!==selfClass.$totalTime.css("opacity")&&selfClass.$totalTime.css({opacity:""})}}0!==totalTime&&selfClass.$totalTime&&(selfClass.$totalTime.html((0,_dzsap_helpers.formatTime)(totalTime)),selfClass.$totalTime.fadeIn("fast"));selfClass.$currTime&&(!1===isScrubShowingCurrentTime&&selfClass.$currTime.html((0,_dzsap_helpers.formatTime)(currentTime)),selfClass.timeModel.getVisualTotalTime()&&-1<selfClass.timeModel.getVisualTotalTime()&&selfClass.cthis.addClass("time-total-visible"));selfClass.spectrum_audioContext&&
selfClass.$totalTime&&selfClass.$totalTime.html((0,_dzsap_helpers.formatTime)(totalTime))}function view_drawScrubProgress(){var currentTime=selfClass.timeModel.getVisualCurrentTime(),totalTime=selfClass.timeModel.getVisualTotalTime();scrubbarProgX=currentTime/totalTime*scrubbarWidth;isNaN(scrubbarProgX)&&(scrubbarProgX=0);scrubbarProgX>scrubbarWidth&&(scrubbarProgX=scrubbarWidth);0>currentTime&&(scrubbarProgX=0);if(0===totalTime||isNaN(totalTime))scrubbarProgX=0;if(2>scrubbarProgX&&cthis.data("promise-to-play-footer-player-from"))return!1;
null===selfClass.spectrum_audioContext_buffer&&selfClass.$$scrubbProg&&(selfClass.$$scrubbProg.style.width=parseInt(scrubbarProgX,10)+"px")}function handleEnterFrame(ctx_minimal_pargs){var margs={fire_only_once:!1};ctx_minimal_pargs&&(margs=$.extend(margs,ctx_minimal_pargs));if(isDestroyed)return!1;if(!1===margs.fire_only_once&&isNotRenderingEnterFrame)return requestAnimationFrame(handleEnterFrame),!1;selfClass.timeModel.refreshTimes({call_from:"checK_time"});view_drawScrubProgress();selfClass.timeModel.processCurrentFrame();
if("skin-minimal"===o.design_skin&&(selfClass.player_playing||!1===selfClass.isCanvasFirstDrawn)){ctx_minimal_pargs=selfClass.skin_minimal_canvasplay.getContext("2d");var ctx_w=selfClass.skin_minimal_canvasplay.width,ctx_h=selfClass.skin_minimal_canvasplay.height,pw=ctx_w/100,ph=ctx_h/100;scrubbarProgX=2*Math.PI*(selfClass.timeModel.getVisualCurrentTime()/selfClass.timeModel.getVisualTotalTime());isNaN(scrubbarProgX)&&(scrubbarProgX=0);scrubbarProgX>2*Math.PI&&(scrubbarProgX=2*Math.PI);ctx_minimal_pargs.clearRect(0,
0,ctx_w,ctx_h);ctx_minimal_pargs.beginPath();ctx_minimal_pargs.arc(50*pw,50*ph,40*pw,0,2*Math.PI,!1);ctx_minimal_pargs.fillStyle="rgba(0,0,0,0.1)";ctx_minimal_pargs.fill();ctx_minimal_pargs.beginPath();ctx_minimal_pargs.arc(50*pw,50*ph,34*pw,0,scrubbarProgX,!1);ctx_minimal_pargs.lineWidth=10*pw;ctx_minimal_pargs.strokeStyle="rgba(0,0,0,0.3)";ctx_minimal_pargs.stroke();selfClass.isCanvasFirstDrawn=!0}view_drawCurrentTime();!0!==margs.fire_only_once&&requestAnimationFrame(handleEnterFrame)}function handleClick_playPause(e){cthis.hasClass("prevent-bubble")&&
e&&e.stopPropagation&&(e.preventDefault(),e.stopPropagation());var _t=$(this),isToggleCancelled=!1;if(!cthis.hasClass("listeners-setuped")){$(selfClass.$mediaNode_).attr("preload","auto");setup_listeners();init_loaded();var inter_checkTotalTime=setInterval(function(){selfClass.$mediaNode_&&selfClass.$mediaNode_.duration&&!1===isNaN(selfClass.$mediaNode_.duration)&&clearInterval(inter_checkTotalTime)},1E3)}if("skin-minimal"===o.design_skin){var center_x=_t.offset().left+skin_minimal_button_size/2;
_t=_t.offset().top+skin_minimal_button_size/2;var mouse_x=e.pageX;e=e.pageY;var perc=.005*-(mouse_x-center_x-skin_minimal_button_size/2);e<_t&&(perc=.5+(.5-perc));if(20<Math.abs(e-_t)||20<Math.abs(mouse_x-center_x))seek_to_perc(perc,{call_from:"skin_minimal_scrub"}),isToggleCancelled=!0,handleEnterFrame({fire_only_once:!0})}isToggleCancelled||(selfClass.player_playing?pause_media():play_media({called_from:"click_playpause"}));return!1}function syncPlayers_gotoItem(targetIncrement$jscomp$1_targetIndex){targetIncrement$jscomp$1_targetIndex=
void 0===targetIncrement$jscomp$1_targetIndex?0:targetIncrement$jscomp$1_targetIndex;selfClass.classFunctionalityInnerPlaylist?(targetIncrement$jscomp$1_targetIndex=selfClass.playlist_inner_currNr+targetIncrement$jscomp$1_targetIndex,0<=targetIncrement$jscomp$1_targetIndex&&selfClass.classFunctionalityInnerPlaylist.playlistInner_gotoItem(targetIncrement$jscomp$1_targetIndex,{call_from:"api_sync_players_prev"})):window.dzsap_syncList_players&&0<window.dzsap_syncList_players.length?(0,_dzsap_helpers.player_syncPlayers_gotoItem)(selfClass,
targetIncrement$jscomp$1_targetIndex):console.log("[dzsap] [syncPlayers] no players found");window.dzsap_syncList_players&&window.dzsap_syncList_index>=window.dzsap_syncList_players.length&&(window.dzsap_syncList_index=0)}function syncPlayers_gotoPrev(){if(selfClass._actualPlayer)return selfClass._actualPlayer.get(0).api_sync_players_goto_prev(),!1;syncPlayers_gotoItem(-1)}function syncPlayers_gotoNext(){if(selfClass._actualPlayer)return selfClass._actualPlayer.get(0).api_sync_players_goto_next(),
!1;syncPlayers_gotoItem(1)}function media_handleEnd(autoplayNextMethod_pargs){var $parentPlaylistForSource_margs={called_from:"default"};autoplayNextMethod_pargs&&($parentPlaylistForSource_margs=$.extend($parentPlaylistForSource_margs,autoplayNextMethod_pargs));if(selfClass.isMediaEnded)return!1;selfClass.isMediaEnded=!0;selfClass.inter_isEnded=setTimeout(function(){selfClass.isMediaEnded=!1},1E3);selfClass._sourcePlayer&&(media_isLoopActive=selfClass._sourcePlayer.get(0).api_get_media_isLoopActive());
if(selfClass._actualPlayer&&"fake_player"!==$parentPlaylistForSource_margs.call_from)return!1;seek_to(0,{call_from:"handle_end"});if(media_isLoopActive)return play_media({called_from:"track_end"}),!1;pause_media();o.parentgallery&&o.parentgallery.get(0).api_gallery_handle_end();autoplayNextMethod_pargs="default";$parentPlaylistForSource_margs=null;selfClass._sourcePlayer&&selfClass._sourcePlayer.get(0)&&selfClass._sourcePlayer.get(0).SelfInstance&&selfClass._sourcePlayer.get(0).SelfInstance.$parentPlaylist&&
($parentPlaylistForSource_margs=selfClass._sourcePlayer.get(0).SelfInstance.$parentPlaylist.get(0).SelfPlaylist)&&"on"===$parentPlaylistForSource_margs.initOptions.autoplayNext&&(autoplayNextMethod_pargs="nextInSourcePlayist");"default"===autoplayNextMethod_pargs&&window.dzsap_syncList_players&&0<window.dzsap_syncList_players.length&&(selfClass.cthis.hasClass("is-single-player")||selfClass._sourcePlayer&&selfClass._sourcePlayer.hasClass("is-single-player"))&&(autoplayNextMethod_pargs="syncPlayerNext");
"default"===autoplayNextMethod_pargs&&selfClass._sourcePlayer&&(selfClass._sourcePlayer.hasClass("is-single-player")||selfClass._sourcePlayer.hasClass("feeded-whole-playlist"))&&(autoplayNextMethod_pargs="handleEndForSourcePlayer");"default"===autoplayNextMethod_pargs&&(autoplayNextMethod_pargs="nothingAfter");"nextInSourcePlayist"===autoplayNextMethod_pargs&&$parentPlaylistForSource_margs.argThis&&$parentPlaylistForSource_margs.argThis.api_gallery_handle_end();"syncPlayerNext"===autoplayNextMethod_pargs&&
setTimeout(function(){syncPlayers_gotoNext()},100);"handleEndForSourcePlayer"===autoplayNextMethod_pargs&&setTimeout(function(){selfClass._sourcePlayer.get(0).api_handle_end({call_from:"handle_end() fake_player"})},200);action_audio_end&&setTimeout(function(){action_audio_end(cthis,{})},200)}function view_handleResize(args$jscomp$5_aux2_e,pargs){$(window).width();cthisWidth=cthis.width();cthis.height();$scrubBgCanvas&&"function"===typeof $scrubBgCanvas.width&&(canvasWidth=$scrubBgCanvas.width(),canh=
$scrubBgCanvas.height());720>=cthisWidth?cthis.addClass("under-720"):cthis.removeClass("under-720");500>=cthisWidth?cthis.addClass("under-500"):cthis.removeClass("under-500");scrubbarWidth=cthisWidth;"skin-default"===o.design_skin&&(scrubbarWidth=cthisWidth);"skin-pro"===o.design_skin&&(scrubbarWidth=cthisWidth);if("skin-silver"===o.design_skin||"skin-aria"===o.design_skin)scrubbarWidth=cthisWidth,scrubbarWidth=selfClass._scrubbar.width();"skin-justthumbandbutton"===o.design_skin&&(scrubbarWidth=
cthisWidth=cthis.children(".audioplayer-inner").outerWidth());if("skin-redlights"===o.design_skin||"skin-steel"===o.design_skin)scrubbarWidth=selfClass._scrubbar.width();"skin-wave"===o.design_skin&&(scrubbarWidth=selfClass._scrubbar.outerWidth(!1),selfClass._scrubbar.outerHeight(!1),selfClass._commentsHolder&&(selfClass._commentsHolder.css({width:scrubbarWidth}),selfClass._commentsHolder.addClass("active")));!0===isResolveThumbHeight&&("skin-default"===o.design_skin&&(cthis.get(0)&&"auto"===cthis.get(0).style.height&&
cthis.height(200),selfClass._audioplayerInner.height(),cthis.attr("data-initheight")?cthis.attr("data-initheight",selfClass._audioplayerInner.height()):cthis.attr("data-initheight")),selfClass._audioplayerInner.find(".the-thumb").eq(0).css({}));"none"!==cthis.css("display")&&(selfClass._scrubbar.find(".scrub-bg-img").eq(0).css({width:selfClass._scrubbar.children(".scrub-bg").width()}),selfClass._scrubbar.find(".scrub-prog-img").eq(0).css({width:selfClass._scrubbar.children(".scrub-bg").width()}));
cthis.removeClass("under-240 under-400");240>=cthisWidth&&cthis.addClass("under-240");500>=cthisWidth?(cthis.addClass("under-400"),!1===is_under_400&&(is_under_400=!0)):!0===is_under_400&&(is_under_400=!1);"skin-wave"===o.design_skin&&(selfClass._scrubbar.eq(0).height(),"small"===selfClass.skinwave_mode&&(scrubbarWidth=selfClass._scrubbar.width()),"canvas"===o.skinwave_wave_mode&&cthis.attr("data-pcm")&&(100===selfClass._scrubbarbg_canvas.width()&&selfClass._scrubbarbg_canvas.width(selfClass._scrubbar.width()),
"fake"!==selfClass.data_source&&(draw_canvas_inter?(clearTimeout(draw_canvas_inter),draw_canvas_inter=setTimeout(draw_canvas_inter_func,300)):(draw_canvas_inter_func(),draw_canvas_inter=1))));"skin-minimal"===o.design_skin&&(skin_minimal_button_size=selfClass._apControls.width(),selfClass.skin_minimal_canvasplay&&(selfClass.skin_minimal_canvasplay.style.width=skin_minimal_button_size,selfClass.skin_minimal_canvasplay.width=skin_minimal_button_size,selfClass.skin_minimal_canvasplay.style.height=skin_minimal_button_size,
selfClass.skin_minimal_canvasplay.height=skin_minimal_button_size,$(selfClass.skin_minimal_canvasplay).css({width:skin_minimal_button_size,height:skin_minimal_button_size})));"skin-default"===o.design_skin&&selfClass.$currTime&&(parseInt(selfClass._metaArtistCon.css("left"),10),selfClass._metaArtistCon.outerWidth(),"none"===selfClass._metaArtistCon.css("display")&&(selfClass._metaArtistCon_w=0),isNaN(selfClass._metaArtistCon_l)&&(selfClass._metaArtistCon_l=20));"skin-minion"===o.design_skin&&(args$jscomp$5_aux2_e=
parseInt(selfClass.$conControls.find(".con-playpause").eq(0).offset().left,10)-parseInt(selfClass.$conControls.eq(0).offset().left,10)-18,selfClass.$conControls.find(".prev-btn").eq(0).css({top:0,left:args$jscomp$5_aux2_e}),args$jscomp$5_aux2_e+=36,selfClass.$conControls.find(".next-btn").eq(0).css({top:0,left:args$jscomp$5_aux2_e}));"on"===o.embedded&&window.frameElement&&(args$jscomp$5_aux2_e={height:cthis.outerHeight()},o.embedded_iframe_id&&(args$jscomp$5_aux2_e.embedded_iframe_id=o.embedded_iframe_id),
window.parent.postMessage({name:"resizeIframe",params:args$jscomp$5_aux2_e},"*"));view_drawScrubProgress();0<o.settings_trigger_resize&&o.parentgallery&&void 0!==$(o.parentgallery).get(0)&&void 0!==$(o.parentgallery).get(0).api_handleResize&&$(o.parentgallery).get(0).api_handleResize()}function draw_canvas_inter_func(){view_drawCanvases(selfClass,cthis.attr("data-pcm"),"canvas_normal_pcm");draw_canvas_inter=0}function volume_handleMouse(e){var _t=$(this),mouseXRelativeToVolume=null;selfClass.$controlsVolume.find(".volume_static").length&&
(mouseXRelativeToVolume=Number((e.pageX-selfClass.$controlsVolume.find(".volume_static").eq(0).offset().left)/selfClass.$controlsVolume.find(".volume_static").eq(0).width()));if(!mouseXRelativeToVolume)return!1;"mousemove"===e.type&&volume_dragging&&(_t.parent().hasClass("volume-holder")||_t.hasClass("volume-holder"),"skin-redlights"===o.design_skin&&(mouseXRelativeToVolume=Math.round(10*mouseXRelativeToVolume),mouseXRelativeToVolume/=10),volume_setVolume(mouseXRelativeToVolume,{call_from:"set_by_mousemove"}),
isMuted=!1);"click"===e.type&&(_t.parent().hasClass("volume-holder")&&(mouseXRelativeToVolume=1-(e.pageY-selfClass.$controlsVolume.find(".volume_static").eq(0).offset().top)/selfClass.$controlsVolume.find(".volume_static").eq(0).height()),_t.hasClass("volume-holder")&&(mouseXRelativeToVolume=1-(e.pageY-selfClass.$controlsVolume.find(".volume_static").eq(0).offset().top)/selfClass.$controlsVolume.find(".volume_static").eq(0).height()),volume_setVolume(mouseXRelativeToVolume,{call_from:"set_by_mouseclick"}),
isMuted=!1);"mousedown"===e.type&&(volume_dragging=!0,cthis.addClass("volume-dragging"),_t.parent().hasClass("volume-holder")&&(mouseXRelativeToVolume=1-(e.pageY-selfClass.$controlsVolume.find(".volume_static").eq(0).offset().top)/selfClass.$controlsVolume.find(".volume_static").eq(0).height()),volume_setVolume(mouseXRelativeToVolume,{call_from:"set_by_mousedown"}),isMuted=!1);"mouseup"===e.type&&(volume_dragging=!1,cthis.removeClass("volume-dragging"))}function handleMouseOnScrubbar(e){var aux=e.pageX;
if($(e.target).hasClass("sample-block-start")||$(e.target).hasClass("sample-block-end"))return!1;"mousemove"===e.type&&(selfClass._scrubbar.children(".scrubBox-hover").css({left:aux-selfClass._scrubbar.offset().left}),"on"===o.scrub_show_scrub_time&&selfClass.timeModel.getVisualTotalTime()&&(aux=(aux-selfClass._scrubbar.offset().left)/selfClass._scrubbar.outerWidth()*selfClass.timeModel.getVisualTotalTime(),selfClass.$currTime&&(selfClass.$currTime.html((0,_dzsap_helpers.formatTime)(aux)),selfClass.$currTime.addClass("scrub-time")),
isScrubShowingCurrentTime=!0));"mouseleave"===e.type&&(isScrubShowingCurrentTime=!1,selfClass.$currTime&&selfClass.$currTime.removeClass("scrub-time"),view_drawCurrentTime());if("click"===e.type){cthis.hasClass("prevent-bubble")&&e&&e.stopPropagation&&(e.preventDefault(),e.stopPropagation());0===scrubbarWidth&&(scrubbarWidth=selfClass._scrubbar.width());0===scrubbarWidth&&(scrubbarWidth=300);var targetPositionOnScrub=(e.pageX-selfClass._scrubbar.offset().left)/scrubbarWidth*selfClass.timeModel.getVisualTotalTime();
0<selfClass.sample_time_start&&(targetPositionOnScrub-=selfClass.sample_time_start);selfClass._actualPlayer&&setTimeout(function(){selfClass._actualPlayer.get(0)&&selfClass._actualPlayer.get(0).api_pause_media&&selfClass._actualPlayer.get(0).api_seek_to_perc(targetPositionOnScrub/selfClass.timeModel.getVisualTotalTime(),{call_from:"from_feeder_to_feed"})},50);seek_to(targetPositionOnScrub,{call_from:"handleMouseOnScrubbar"});"on"===o.autoplay_on_scrub_click&&!1===selfClass.player_playing&&play_media({called_from:"handleMouseOnScrubbar"});
if(cthis.hasClass("from-wc_loop"))return!1}}function seek_to_perc(argperc,pargs){seek_to(argperc*selfClass.timeModel.getVisualTotalTime(),pargs)}function seek_to(targetTimeMediaScrub,args$jscomp$6_newlink_pargs){var margs={call_from:"default",deeplinking:"off",call_from_type:"default"};args$jscomp$6_newlink_pargs&&(margs=$.extend(margs,args$jscomp$6_newlink_pargs));"on"===margs.deeplinking&&(args$jscomp$6_newlink_pargs=add_query_arg(window.location.href,"audio_time",targetTimeMediaScrub),history.pushState({foo:"bar"},
null,args$jscomp$6_newlink_pargs));targetTimeMediaScrub=(0,_dzsap_helpers.sanitizeToIntFromPointTime)(targetTimeMediaScrub);targetTimeMediaScrub=selfClass.timeModel.getActualTargetTime(targetTimeMediaScrub);if(selfClass._actualPlayer)return args$jscomp$6_newlink_pargs={type:selfClass.actualDataTypeOfMedia,fakeplayer_is_feeder:"on"},selfClass._actualPlayer.length&&selfClass._actualPlayer.data("feeding-from")!==cthis.get(0)&&("handle_end"!==margs.call_from&&"from_playfrom"!==margs.call_from&&"last_pos"!==
margs.call_from&&"playlist_seek_from_0"!==margs.call_from?(args$jscomp$6_newlink_pargs.called_from="seek_to from player source->"+cthis.attr("data-source")+" < -  old call from - "+margs.call_from,selfClass._actualPlayer.get(0).api_change_media?selfClass._actualPlayer.get(0).api_change_media(cthis,args$jscomp$6_newlink_pargs):console.log("not inited ? ",selfClass._actualPlayer)):cthis.data("promise-to-play-footer-player-from",targetTimeMediaScrub)),setTimeout(function(){selfClass._actualPlayer.get(0)&&
selfClass._actualPlayer.get(0).api_pause_media&&"from_playfrom"!==margs.call_from&&"last_pos"!==margs.call_from&&selfClass._actualPlayer.get(0).api_seek_to(targetTimeMediaScrub,{call_from:"from_feeder_to_feed"})},50),!1;if("youtube"===selfClass.audioType)try{selfClass.$mediaNode_.seekTo(targetTimeMediaScrub)}catch(err){}handleEnterFrame({fire_only_once:!0});setTimeout(function(){handleEnterFrame({fire_only_once:!0})},20);if("selfHosted"===selfClass.audioType){if(selfClass.$mediaNode_&&"undefined"!==
typeof selfClass.$mediaNode_.currentTime)try{selfClass.$mediaNode_.currentTime=targetTimeMediaScrub}catch(e){}return!1}}function seek_to_visual(argperc){handleEnterFrame({fire_only_once:!0});setTimeout(function(){handleEnterFrame({fire_only_once:!0})},20)}function set_playback_speed(arg){"youtube"===selfClass.audioType&&selfClass.$mediaNode_.setPlaybackRate(arg);"selfHosted"===selfClass.audioType&&(selfClass.$mediaNode_.playbackRate=arg)}function volume_setVolume(arg,pargs){var margs={call_from:"default"};
pargs&&(margs=$.extend(margs,pargs));1<arg&&(arg=1);0>arg&&(arg=0);if("from_fake_player_feeder_from_init_loaded"===margs.call_from&&selfClass._sourcePlayer){"default"!==o.default_volume&&(volume_set_by_user=!0);if(volume_set_by_user)return!1;volume_set_by_user=!0}if("set_by_mouseclick"===margs.call_from||"set_by_mousemove"===margs.call_from)volume_set_by_user=!0;"youtube"===selfClass.audioType&&selfClass.$mediaNode_&&selfClass.$mediaNode_.setVolume&&selfClass.$mediaNode_.setVolume(100*arg);"selfHosted"===
selfClass.audioType&&(selfClass.$mediaNode_?selfClass.$mediaNode_.volume=arg:selfClass.$mediaNode_&&$(selfClass.$mediaNode_).attr("preload","metadata"));volume_setOnlyVisual(arg,margs);selfClass._sourcePlayer&&(margs.call_from="from_fake_player",selfClass._sourcePlayer.get(0)&&selfClass._sourcePlayer.get(0).api_visual_set_volume(arg,margs)&&selfClass._sourcePlayer.get(0).api_visual_set_volume(arg,margs));selfClass._actualPlayer&&"from_fake_player"!==margs.call_from&&(margs.call_from="from_init_loaded"===
margs.call_from?"from_fake_player_feeder_from_init_loaded":"from_fake_player_feeder",selfClass._actualPlayer&&selfClass._actualPlayer.get(0)&&selfClass._actualPlayer.get(0).api_set_volume&&selfClass._actualPlayer.get(0).api_set_volume(arg,margs))}function volume_setOnlyVisual(arg,margs){selfClass.$controlsVolume.hasClass("controls-volume-vertical")?selfClass.$controlsVolume.find(".volume_active").eq(0).css({height:selfClass.$controlsVolume.find(".volume_static").eq(0).height()*arg}):"skin-redlights"===
selfClass.initOptions.design_skin?selfClass.$controlsVolume.find(".volume_active").eq(0).css({"clip-path":"inset(0% "+100*Math.abs(1-arg)+"% 0% 0%)"}):selfClass.$controlsVolume.find(".volume_active").eq(0).css({width:selfClass.$controlsVolume.find(".volume_static").eq(0).width()*arg});"skin-wave"===o.design_skin&&"on"===o.skinwave_dynamicwaves&&(selfClass._scrubbar.find(".scrub-bg-img").eq(0).css({transform:"scaleY("+arg+")"}),selfClass._scrubbar.find(".scrub-prog-img").eq(0).css({transform:"scaleY("+
arg+")"}));null!==localStorage&&selfClass.the_player_id&&localStorage.setItem("dzsap_last_volume_"+selfClass.the_player_id,arg);volume_lastVolume=arg}function volume_handleClickMuteIcon(e){!1===isMuted?(last_vol_before_mute=volume_lastVolume,volume_setVolume(0,{call_from:"from_mute"}),isMuted=!0):(volume_setVolume(last_vol_before_mute,{call_from:"from_unmute"}),isMuted=!1)}function pause_media_visual(pargs){var margs={call_from:"default"};pargs&&$.extend(margs,pargs);selfClass.$conPlayPause.removeClass("playing");
cthis.removeClass("is-playing");selfClass.player_playing=!1;cthis.parent().hasClass("zoomsounds-wrapper-bg-center")&&cthis.parent().removeClass("is-playing");selfClass.$reflectionVisualObject&&selfClass.$reflectionVisualObject.removeClass("is-playing");o.parentgallery&&o.parentgallery.removeClass("player-is-playing");isNotRenderingEnterFrame=!0;action_audio_pause&&action_audio_pause(cthis)}function pause_media(args$jscomp$7_pargs){var margs={audioapi_setlasttime:!0,donot_change_media:!1,call_actual_player:!0};
if(isDestroyed)return!1;args$jscomp$7_pargs&&(margs=$.extend(margs,args$jscomp$7_pargs));pause_media_visual({call_from:"pause_media"});margs.call_actual_player&&!0!==margs.donot_change_media&&null!==selfClass._actualPlayer?(args$jscomp$7_pargs={type:selfClass.actualDataTypeOfMedia,fakeplayer_is_feeder:"on"},selfClass._actualPlayer&&selfClass._actualPlayer.length&&selfClass._actualPlayer.data("feeding-from")!==cthis.get(0)&&(args$jscomp$7_pargs.called_from="pause_media from player "+cthis.attr("data-source"),
selfClass._actualPlayer.get(0).api_change_media(cthis,args$jscomp$7_pargs)),setTimeout(function(){selfClass._actualPlayer.get(0)&&selfClass._actualPlayer.get(0).api_pause_media&&selfClass._actualPlayer.get(0).api_pause_media()},100)):media_pause(selfClass,function(){selfClass._sourcePlayer&&selfClass._sourcePlayer.get(0)&&selfClass._sourcePlayer.get(0).api_pause_media_visual&&selfClass._sourcePlayer.get(0).api_pause_media_visual({call_from:"pause_media in child player"})});selfClass.player_playing=
!1}function play_media_visual($dzsapStickToBottomPlaceholder_margs){selfClass.player_playing=!0;isNotRenderingEnterFrame=!1;cthis.addClass("is-playing");cthis.addClass("first-played");selfClass.$reflectionVisualObject&&selfClass.$reflectionVisualObject.addClass("is-playing");o.parentgallery&&o.parentgallery.addClass("player-is-playing");selfClass.classFunctionalityInnerPlaylist&&selfClass.classFunctionalityInnerPlaylist.player_determineSyncPlayersIndex(selfClass,selfClass._sourcePlayer);(0,_dzsap_helpers.view_player_globalDetermineSyncPlayersIndex)(selfClass);
(0,_dzsap_helpers.view_player_playMiscEffects)(selfClass);selfClass.isStickyPlayer&&(selfClass.$stickToBottomContainer.addClass("audioplayer-loaded"),$dzsapStickToBottomPlaceholder_margs=$(".dzsap-sticktobottom-placeholder"),selfClass.$stickToBottomContainer.addClass("audioplayer-loaded"),$dzsapStickToBottomPlaceholder_margs.eq(0).addClass("active"),$dzsapStickToBottomPlaceholder_margs.css({height:selfClass.$stickToBottomContainer.outerHeight()+"px"}));action_audio_play&&action_audio_play(cthis);
action_audio_play2&&action_audio_play2(cthis)}function play_media(pargs){var margs={api_report_play_media:!0,called_from:"default",retry_call:0};pargs&&(margs=$.extend(margs,pargs));selfClass.isSetupedMedia||setup_media({called_from:margs.called_from+"[play_media .. not setuped]"});"api_sync_players_prev"===margs.called_from&&(player_index_in_gallery=cthis.parent().children(".audioplayer,.audioplayer-tobe").index(cthis),o.parentgallery&&o.parentgallery.get(0)&&o.parentgallery.get(0).api_goto_item&&
o.parentgallery.get(0).api_goto_item(player_index_in_gallery));if((0,_dzsap_helpers.is_ios)()&&"waiting"===selfClass.spectrum_audioContext_buffer||"fetchingProtection"===selfClass.mediaProtectionStatus)return setTimeout(function(){pargs||(pargs={});pargs.call_from_aux="waiting audioCtx_buffer or ios";play_media(pargs)},500),!1;cthis.hasClass("media-setuped")||null!==selfClass._actualPlayer||console.log("[dzsap][warning] media not setuped, there might be issues",cthis.attr("id"));if(-1<margs.called_from.indexOf("feed_to_feeder")&&
!1===cthis.hasClass("dzsap-loaded")){init_loaded();var args=300;(0,_dzsap_helpers.is_android_good)()&&(args=0);if("with delay"!==margs.call_from_aux)return args?setTimeout(function(){margs.call_from_aux="with delay";play_media(margs)},args):play_media(margs),!1}(0,_dzsap_helpers.player_stopOtherPlayers)(dzsap_list,selfClass);destroyed_for_rebuffer&&(setup_media({called_from:"play_media() .. destroyed for rebuffer"}),(0,_dzs_helpers.GN)(selfClass.playFrom)&&seek_to(selfClass.playFrom,{call_from:"destroyed_for_rebuffer_playfrom"}),
destroyed_for_rebuffer=!1);"on"===o.google_analytics_send_play_event&&window._gaq&&!1===google_analytics_sent_play_event&&(window._gaq.push(["_trackEvent","ZoomSounds Play","Play","zoomsounds play - "]),google_analytics_sent_play_event=!0);!window.ga&&window.__gaTracker&&(window.ga=window.__gaTracker);"on"===o.google_analytics_send_play_event&&window.ga&&!1===google_analytics_sent_play_event&&(google_analytics_sent_play_event=!0,window.ga("send",{hitType:"event",eventCategory:"zoomsounds play - ",
eventAction:"play",eventLabel:"zoomsounds play - "}));selfClass._sourcePlayer&&selfClass._sourcePlayer.get(0)&&selfClass._sourcePlayer.get(0).api_pause_media_visual&&selfClass._sourcePlayer.get(0).api_play_media_visual({api_report_play_media:!1});if(selfClass._actualPlayer){args={type:selfClass.actualDataTypeOfMedia,fakeplayer_is_feeder:"on",call_from:"play_media_audioplayer"};try{"click_playpause"===margs.called_from&&o.parentgallery&&(o.parentgallery.get(0).api_regenerate_sync_players_with_this_playlist(),
selfClass._actualPlayer.get(0).api_regenerate_playerlist_inner());selfClass._actualPlayer&&selfClass._actualPlayer.length&&selfClass._actualPlayer.data("feeding-from")!==cthis.get(0)&&(args.called_from="play_media from player 22 "+cthis.attr("data-source")+" < -  old call from - "+margs.called_from,selfClass._actualPlayer.get(0).api_change_media&&selfClass._actualPlayer.get(0).api_change_media(cthis,args),!1===cthis.hasClass("first-played")&&cthis.data("promise-to-play-footer-player-from")&&(seek_to(cthis.data("promise-to-play-footer-player-from")),
setTimeout(function(){cthis.data("promise-to-play-footer-player-from","")},1E3)));setTimeout(function(){selfClass._actualPlayer.get(0)&&selfClass._actualPlayer.get(0).api_play_media&&selfClass._actualPlayer.get(0).api_play_media({called_from:"[feed_to_feeder]"})},100);"off"===selfClass.ajax_view_submitted&&ajax_submit_views.bind(selfClass)();return}catch(err){console.log("no fake player..",err)}}"youtube"===selfClass.audioType&&dzsap_youtube_playMedia(selfClass,margs,selfClass.youtube_currentId);
"youtube"===selfClass.audioType&&play_media_visual(margs);media_tryToPlay(selfClass,function(){play_media_visual(margs);"wave"===o.scrubbar_type&&"on"===o.skinwave_enableSpectrum&&(0,_dzsap_helpers.player_initSpectrum)(selfClass);selfClass._sourcePlayer?(window.dzsap_currplayer_focused=selfClass._sourcePlayer.get(0),selfClass._sourcePlayer.get(0)&&selfClass._sourcePlayer.get(0).api_pause_media_visual&&selfClass._sourcePlayer.get(0).api_try_to_submit_view()):(window.dzsap_currplayer_focused=cthis.get(0),
service_submitView());"on"===selfClass.keyboard_controls.play_trigger_step_back&&dzsap_currplayer_focused&&dzsap_currplayer_focused.api_step_back(selfClass.keyboard_controls.step_back_amount)},function(err){console.log("error autoplay playing -  ",err);setTimeout(function(){pause_media();console.log("trying to pause")},30)})}function service_submitView(){"auto"===selfClass.ajax_view_submitted&&(selfClass.ajax_view_submitted="off");"off"===selfClass.ajax_view_submitted&&ajax_submit_views.bind(selfClass)()}
var $=this.$,o=this.argOptions,cthis=$(this.argThis),selfClass=this;selfClass.cthis=cthis;selfClass.initOptions=o;var cthisId="ap1",cthisWidth,scrubbarWidth=0,scrubbarProgX=0,$scrubBgCanvas=null,isMuted=!1,isDestroyed=!1,google_analytics_sent_play_event=!1,destroyed_for_rebuffer=!1,media_isLoopActive=!1,isScrubShowingCurrentTime=!1,isListenersSetup=!1,currTime_outerWidth=0,player_index_in_gallery=-1,volume_lastVolume=1,last_vol_before_mute=1,inter_checkReady,inter_60_secs_contor=0,isResolveThumbHeight=
!1,volume_dragging=!1,volume_set_by_user=!1,is_under_400=!1,skin_minimal_button_size=0,scrubbar_moving=!1,scrubbar_moving_x=0,aux3=0,canvasWidth=100,canh=100,stringAudioElementHtml="",defaultVolume=1,action_audio_end=null,action_audio_play=null,action_audio_play2=null,action_audio_pause=null,isNotRenderingEnterFrame=!0,duration_viy=20,begin_viy=0,change_viy=0,draw_canvas_inter=0;window.dzsap_player_index++;selfClass.timeModel.getSampleTimesFromDom();(function init(){if(cthis.hasClass("dzsap-inited"))return!1;
selfClass.play_media_visual=play_media_visual;selfClass.play_media=play_media;selfClass.pause_media=pause_media;selfClass.pause_media_visual=pause_media_visual;selfClass.seek_to=seek_to;selfClass.reinit=reinit;selfClass.handle_end=media_handleEnd;selfClass.init_loaded=init_loaded;selfClass.scrubbar_reveal=scrubbar_reveal;selfClass.calculate_dims_time=calculate_dims_time;selfClass.check_multisharer=check_multisharer;selfClass.setup_structure_scrub=setup_structure_scrub;selfClass.setup_structure_sanitizers=
setup_structure_sanitizers;selfClass.destroy_cmedia=destroy_cmedia;selfClass.view_drawCurrentTime=view_drawCurrentTime;selfClass.setupStructure_thumbnailCon=setupStructure_thumbnailCon;selfClass.setup_pcm_random_for_now=view_wave_setupRandomPcm;selfClass.handleResize=view_handleResize;selfClass.destroy_media=destroy_media;cthis.css({opacity:""});cthis.addClass("dzsap-inited");window.dzsap_player_index++;o.parentgallery&&(selfClass.$parentPlaylist=o.parentgallery);selfClass.keyboard_controls=(0,_player_keyboard.tc)();
(0,_dzsap_helpers.configureAudioPlayerOptionsInitial)(cthis,o,selfClass);"on"==o.loop&&(media_isLoopActive=!0);_dzsap_helpers.player_detect_skinwave_mode.bind(selfClass)();"skin-default"===o.design_skin&&"default"===o.design_thumbh&&(cthis.height(),isResolveThumbHeight=!0);(0,_dzsap_helpers.dzsap_is_mobile)()&&($("body").addClass("is-mobile"),"on"===o.mobile_delete&&(0,_dzsap_helpers.player_delete)(selfClass),"on"===o.mobile_disable_fakeplayer&&selfClass.cthis.attr("data-fakeplayer",""));(0,_dzsap_helpers.player_viewApplySkinWaveModes)(selfClass);
(0,_dzsap_helpers.playerFunctions)(selfClass,"detectIds");cthis.attr("data-fakeplayer")&&(0,_dzsap_helpers.player_determineActualPlayer)(selfClass);selfClass.cthis.addClass("scrubbar-type-"+o.scrubbar_type);(0,_dzsap_helpers.player_determineHtmlAreas)(selfClass);"on"===window.dzsap_settings.syncPlayers_buildList&&(0,_dzsap_helpers.player_syncPlayers_buildList)();(0,_dzsap_helpers.player_getPlayFromTime)(selfClass);(0,_dzsap_helpers.player_adjustIdentifiers)(selfClass);(0,_dzsap_helpers.player_identifySource)(selfClass);
(0,_dzsap_helpers.player_identifyTypes)(selfClass);if("youtube"===selfClass.audioType){window.dzsap_get_base_url();var isGoingToSetupMediaNow_scriptUrl=window.dzsap_base_url?window.dzsap_base_url+"/parts/youtube/dzsap-youtube-functions.js":"";(0,_dzs_helpers.dv)(isGoingToSetupMediaNow_scriptUrl,window.dzsap_youtube_functions_inited).then(function(resolveStr){window.dzsap_youtube_functions_init(selfClass)})}selfClass.audioTypeSelfHosted_streamType="";"selfHosted"===selfClass.audioType&&(cthis.attr("data-streamtype")&&
"off"!==cthis.attr("data-streamtype")?(selfClass.audioTypeSelfHosted_streamType=cthis.attr("data-streamtype"),cthis.addClass("is-radio-type")):selfClass.audioTypeSelfHosted_streamType="");if(!cthis.hasClass("audioplayer")){cthisId=void 0!==cthis.attr("id")?cthis.attr("id"):"ap"+dzsap_globalidind++;selfClass.youtube_currentId="ytplayer_"+cthisId;cthis.removeClass("audioplayer-tobe");cthis.addClass("audioplayer");view_drawScrubProgress();setTimeout(function(){view_drawScrubProgress()},1E3);"off"===
o.cueMedia&&(cthis.addClass("cue-off"),o.autoplay="on");"soundcloud"===selfClass.audioType&&retrieve_soundcloud_url(selfClass);setup_structure(selfClass);"wave"!==o.scrubbar_type||"selfHosted"!==selfClass.audioType&&"soundcloud"!==selfClass.audioType&&"fake"!==selfClass.audioType||"on"!==o.skinwave_comments_enable||comments_setupCommentsInitial(selfClass);"on"===o.autoplay&&"on"===o.cueMedia&&(selfClass.increment_views=1);if("on"===o.cueMedia&&"soundcloud"!==selfClass.audioType){if((0,_dzsap_helpers.is_android)()||
(0,_dzsap_helpers.is_ios)())cthis.find(".playbtn").on("click",play_media);selfClass.data_source&&-1<selfClass.data_source.indexOf("{{generatenonce}}")?(selfClass.mediaProtectionStatus="fetchingProtection",(0,_dzsap_helpers.player_service_getSourceProtection)(selfClass).then(function(response){response&&(cthis.attr("data-source",response),setup_media({called_from:"nonce generated",newSource:response}),selfClass.mediaProtectionStatus="protectedMode")})):(isGoingToSetupMediaNow_scriptUrl=(0,_dzsap_helpers.player_isGoingToSetupMediaNow)(selfClass),
"selfHosted"!==selfClass.audioType||"icecast"!==selfClass.audioTypeSelfHosted_streamType&&"shoutcast"!==selfClass.audioTypeSelfHosted_streamType||(("icecast"===selfClass.audioTypeSelfHosted_streamType||selfClass.radio_isGoingToUpdateArtistName||selfClass.radio_isGoingToUpdateSongName)&&(0,_dzsap_helpers.player_icecastOrShoutcastRefresh)(selfClass),setInterval(function(){(0,_dzsap_helpers.player_icecastOrShoutcastRefresh)(selfClass)},1E4)),isGoingToSetupMediaNow_scriptUrl&&setup_media({called_from:"normal setup media .. --- icecast must wait"}))}else cthis.find(".playbtn").on("click",
handleClickForSetupMedia),cthis.find(".scrubbar").on("click",handleClickForSetupMedia),view_handleResize(null,{called_from:"init"});(0,_dzsap_helpers.player_determineStickToBottomContainer)(selfClass);(0,_dzsap_helpers.player_stickToBottomContainerDetermineClasses)(selfClass);selfClass.timeModel.initObjects();selfClass.setup_media=setup_media;cthis.get(0).classInstance=selfClass;cthis.get(0).api_init_loaded=init_loaded;cthis.get(0).api_destroy=destroy_it;cthis.get(0).api_play=play_media;cthis.get(0).api_set_volume=
volume_setVolume;cthis.get(0).api_get_last_vol=volume_getLast;cthis.get(0).api_get_source=function $cthis$get$api_get_source$(){return selfClass.data_source};cthis.get(0).api_click_for_setup_media=handleClickForSetupMedia;cthis.get(0).api_handleResize=view_handleResize;cthis.get(0).api_set_playback_speed=set_playback_speed;cthis.get(0).api_change_media=media_changeMedia(selfClass,$);cthis.get(0).api_seek_to_perc=seek_to_perc;cthis.get(0).api_seek_to=seek_to;cthis.get(0).api_seek_to_visual=seek_to_visual;
cthis.get(0).api_visual_set_volume=volume_setOnlyVisual;cthis.get(0).api_destroy_listeners=destroy_listeners;cthis.get(0).api_pause_media=pause_media;cthis.get(0).api_get_media_isLoopActive=function $cthis$get$api_get_media_isLoopActive$(){return media_isLoopActive};cthis.get(0).api_media_toggleLoop=media_toggleLoop;cthis.get(0).api_pause_media_visual=pause_media_visual;cthis.get(0).api_play_media=play_media;cthis.get(0).api_play_media_visual=play_media_visual;cthis.get(0).api_handle_end=media_handleEnd;
cthis.get(0).api_change_visual_target=change_visual_target;cthis.get(0).api_change_design_color_highlight=view_updateColorHighlight;cthis.get(0).api_draw_scrub_prog=view_drawScrubProgress;cthis.get(0).api_draw_curr_time=view_drawCurrentTime;cthis.get(0).api_get_times=selfClass.timeModel.refreshTimes;cthis.get(0).api_check_time=handleEnterFrame;cthis.get(0).api_sync_players_goto_next=syncPlayers_gotoNext;cthis.get(0).api_sync_players_goto_prev=syncPlayers_gotoPrev;cthis.get(0).api_regenerate_playerlist_inner=
function $cthis$get$api_regenerate_playerlist_inner$(){selfClass.classFunctionalityInnerPlaylist&&selfClass.classFunctionalityInnerPlaylist.playlistInner_setupStructureInPlayer()};cthis.get(0).api_step_back=function $cthis$get$api_step_back$(arg){arg||(arg=selfClass.keyboard_controls.step_back_amount);seek_to(selfClass.timeCurrent-arg)};cthis.get(0).api_step_forward=function $cthis$get$api_step_forward$(arg){arg||(arg=selfClass.keyboard_controls.step_back_amount);seek_to(selfClass.timeCurrent+arg)};
cthis.get(0).api_playback_speed=function $cthis$get$api_playback_speed$(argSpeed){selfClass.$mediaNode_&&selfClass.$mediaNode_.playbackRate&&(selfClass.$mediaNode_.playbackRate=argSpeed)};cthis.get(0).api_set_action_audio_play=function $cthis$get$api_set_action_audio_play$(arg){action_audio_play=arg};cthis.get(0).api_set_action_audio_pause=function $cthis$get$api_set_action_audio_pause$(arg){action_audio_pause=arg};cthis.get(0).api_set_action_audio_end=function $cthis$get$api_set_action_audio_end$(arg){action_audio_end=
arg;cthis.data("has-action-end","on")};cthis.get(0).api_set_action_audio_comment=function $cthis$get$api_set_action_audio_comment$(arg){selfClass.action_audio_comment=arg};cthis.get(0).api_try_to_submit_view=service_submitView;o.action_audio_play&&(action_audio_play=o.action_audio_play);o.action_audio_pause&&(action_audio_pause=o.action_audio_pause);o.action_audio_play2&&(action_audio_play2=o.action_audio_play2);o.action_audio_end&&(action_audio_end=o.action_audio_end,cthis.data("has-action-end",
"on"));handleEnterFrame({fire_only_once:!0});"skin-minimal"===o.design_skin&&handleEnterFrame({fire_only_once:!0});cthis.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, .tooltip-indicator--btn-footer-playlist",handle_mouse);cthis.on("mouseenter",handle_mouse);cthis.on("mouseleave",handle_mouse);selfClass.$conPlayPause.on("click",
handleClick_playPause);cthis.on("click",".skip-15-sec",function(){cthis.get(0).api_step_forward(15)});$(window).on("resize.dzsap",view_handleResize);view_handleResize(null,{called_from:"init"});selfClass._scrubbar&&selfClass._scrubbar.get(0)&&selfClass._scrubbar.get(0).addEventListener("touchstart",function(e){selfClass.player_playing&&(scrubbar_moving=!0)},{passive:!0});$(document).on("touchmove",function(e){if(scrubbar_moving)return scrubbar_moving_x=e.originalEvent.touches[0].pageX,aux3=scrubbar_moving_x-
selfClass._scrubbar.offset().left,0>aux3&&(aux3=0),aux3>selfClass._scrubbar.width()&&(aux3=selfClass._scrubbar.width()),seek_to_perc(aux3/selfClass._scrubbar.width(),{call_from:"touch move"}),!1});$(document).on("touchend",function(e){scrubbar_moving=!1});o.skinwave_comments_mode_outer_selector&&(selfClass.$commentsSelector=$(o.skinwave_comments_mode_outer_selector),selfClass.$commentsSelector.data?(selfClass.$commentsSelector.data("parent",cthis),window.dzsap_settings.comments_username&&selfClass.$commentsSelector.find(".comment_email,*[name=comment_user]").remove(),
selfClass.$commentsSelector.on("click",".dzstooltip--close,.comments-btn-submit",comments_selector_event),selfClass.$commentsSelector.on("focusin","input",comments_selector_event),selfClass.$commentsSelector.on("focusout","input",comments_selector_event)):console.log("%c, data not available .. ","color: #990000;",$(o.skinwave_comments_mode_outer_selector)));cthis.off("click",".btn-like");cthis.on("click",".btn-like",handleClickLike);(0,_dzsap_helpers.waitForScriptToBeAvailableThenExecute)(window.dzsap_part_starRatings_loaded,
function(){window.dzsap_init_starRatings_from_dzsap(selfClass)});setTimeout(function(){view_handleResize(null,{called_from:"init_timeout"});"canvas"===o.skinwave_wave_mode&&(calculate_dims_time(),setTimeout(function(){calculate_dims_time()},100))},100);cthis.find(".btn-menu-state").eq(0).on("click",handleClickMenuState);cthis.on("click",".prev-btn,.next-btn",handle_mouse)}})()};window.dzsap_singleton_ready_calls_is_called=!1;window.dzsap_get_base_url=function $window$dzsap_get_base_url$(){window.dzsap_base_url=
window.dzsap_settings&&window.dzsap_settings.pluginurl?window.dzsap_settings.pluginurl:(0,_dzs_helpers.SV)("dzsap_base_url","audioplayer.js")};window.dzsap_currplayer_focused=null;window.dzsap_currplayer_from_share=null;window.dzsap_mouseover=!1;window.dzsap_init_allPlayers=function $window$dzsap_init_allPlayers$($){$(".audioplayer.auto-init,.audioplayer-tobe.auto-init").each(function(){var $playerTarget=$(this);$playerTarget.hasClass("audioplayer-tobe")&&window.dzsap_init&&dzsap_init($playerTarget)})};
(function dzsap_jQueryInit(callback,reject$jscomp$0){return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context){return $jscomp$generator$context.return(new Promise(function(resolve,reject){if(window.jQuery)resolve("jQuery loaded");else{var script=document.createElement("script");script.onload=function $script$onload$(){window.jQuery?resolve("jQuery loaded"):reject("error loading")};script.src=_constants.OF.URL_JQUERY;document.head.appendChild(script)}setTimeout(function(){reject("error loading")},
15E3)}))})})().then(function(){register_dzsap_plugin();jQuery(document).ready(function($){var $feed_dzsapConfigs=jQuery(".dzsap-feed--dzsap-configs");$feed_dzsapConfigs.length&&(window.dzsap_apconfigs=JSON.parse($feed_dzsapConfigs.last().html()));window.dzsap_singleton_ready_calls_is_called||(0,_dzsap_helpers.dzsap_singleton_ready_calls)();window.dzsap_init_allGalleries($);(0,_dzsap_helpers.jQueryAuxBindings)($);window.dzsap_init_allPlayers($)});window.dzsap_player_isOneTimeSetuped||(dzsap_oneTimeSetups(),
window.dzsap_player_isOneTimeSetuped=!0)}).catch(function(err){console.log(err)});window.dzsap_init=function $window$dzsap_init$(selector,settings){jQuery(selector).audioplayer(Object.assign({},settings));window.dzsap_lasto=settings};(0,_dzsap_helpers.playerRegisterWindowFunctions)()}()})();}).call(this || window)
